/* English typography tweaks for section headings */
.index-about .about-h h5,
.index-service .service-h h5,
.index-agency .agency-h h5,
.index-info .info-h h5 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #3D1F2E;
}
.index-about .about-h p,
.index-service .service-h p,
.index-agency .agency-h p,
.index-info .info-h p {
    font-size: 17px;
    margin-top: 10px;
    color: #6A5650;
    letter-spacing: 0.5px;
}

/* ---- Header nav: keep on one line at 992-1199px (e.g. WeChat in-app browser) ---- */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-header { width: auto; }
    .logo-wrap img { max-height: 40px; width: auto; }
    .nav-wrap { float: right; width: auto; }
    .navbar-nav { white-space: nowrap; }
    .navbar-nav > li { float: none; display: inline-block; }
    .nav-type-2 .navbar-nav > li > a,
    .navbar-nav > li > a { padding: 0 9px; font-size: 13.5px; letter-spacing: 0; }
}
@media (min-width: 1200px) and (max-width: 1365px) {
    .navbar-nav > li > a { padding: 0 12px; font-size: 14.5px; }
}

/* ---- Homepage specialty tiles: icons + full titles ---- */
.index-skill img {
    width: 64px;
    height: 64px;
    max-width: 64px;
    object-fit: contain;
    margin: 0 auto 36px;
    display: block;
}
.index-skill ul li h5 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    min-height: 42px;
    padding: 0 6px;
    font-size: 15px;
    line-height: 21px;
}
@media (max-width: 1199px) {
    .index-skill ul li h5 { font-size: 14px; }
}
@media (max-width: 767px) {
    .index-skill img { width: 48px; height: 48px; margin-bottom: 24px; }
    .index-skill ul li h5 { font-size: 13px; line-height: 18px; }
}

/* =====================================================================
   Round 1 (2026-10-24): calm clinical style, homepage, list pages, footer
   Brand: navy #3D1F2E, teal #B8462E (from logo / template)
   ===================================================================== */
:root {
    --r1-navy: #3D1F2E;
    --r1-navy-2: #5E2F3F;
    --r1-teal: #B8462E;
    --r1-teal-text: #A23B22;   /* teal dark enough for text on white */
    --r1-ink: #2A1E1F;
    --r1-muted: #6A5650;
    --r1-line: #EDE3D8;
    --r1-soft: #FBF7F1;
}

/* Western system font stack (template default fell back to serif on iOS/macOS) */
html, body {
    font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
    color: var(--r1-ink);
    -webkit-font-smoothing: antialiased;
}
body { line-height: 1.6; }

.r1-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.r1-narrow { max-width: 820px; }
.r1-section { padding: 88px 0; background: #fff; }
.r1-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.r1-head h2 { font-size: 32px; line-height: 1.25; font-weight: 600; color: var(--r1-navy); margin: 0 0 12px; letter-spacing: .2px; }
.r1-head p { font-size: 17px; color: var(--r1-muted); margin: 0; }
.r1-more { text-align: center; margin: 40px 0 0; }
.r1-more a, .r1-item-more { color: var(--r1-teal-text); font-weight: 600; font-size: 16px; text-decoration: none; }
.r1-more a:hover, .r1-item-more:hover { color: var(--r1-navy); text-decoration: underline; }

/* Buttons */
.r1-btn { display: inline-block; padding: 14px 28px; border-radius: 4px; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.r1-btn:hover, .r1-btn:focus { text-decoration: none; }
.r1-btn-primary { background: var(--r1-teal); border-color: var(--r1-teal); color: #fff; }
.r1-btn-primary:hover, .r1-btn-primary:focus { background: #9E3B26; border-color: #9E3B26; color: #fff; }
.r1-btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.r1-btn-ghost:hover, .r1-btn-ghost:focus { background: #fff; color: var(--r1-navy); }
.r1-btn-sm { padding: 10px 18px; font-size: 14px; }
a:focus-visible, .r1-btn:focus-visible { outline: 3px solid #7fd3cc; outline-offset: 2px; }

/* Hero */
.r1-hero { background-color: var(--r1-navy); background-size: cover; background-position: center right; }
.r1-hero-shade { background: linear-gradient(90deg, rgba(61,31,46,.96) 0%, rgba(61,31,46,.90) 42%, rgba(61,31,46,.45) 75%, rgba(61,31,46,.25) 100%); }
.r1-hero .r1-wrap { min-height: 520px; display: flex; align-items: center; }
.r1-hero-text { max-width: 700px; padding: 72px 0; color: #fff; }
.r1-eyebrow { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #FFD9C7; margin: 0 0 18px; font-weight: 600; }
.r1-hero h1 { font-size: 46px; line-height: 1.15; font-weight: 700; color: #fff; margin: 0 0 22px; letter-spacing: -.3px; }
.r1-lede { font-size: 19px; line-height: 1.6; color: #e3ecf3; margin: 0 0 34px; }
.r1-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Specialty tiles */
.r1-specialties { background: var(--r1-soft); }
.r1-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.r1-tiles li a { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 32px 28px; background: #fff; border: 1px solid var(--r1-line); border-top: 4px solid var(--r1-teal); border-radius: 6px; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.r1-tiles li a:hover { box-shadow: 0 10px 28px rgba(61,31,46,.10); transform: translateY(-2px); }
.r1-tile-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--r1-navy); margin-bottom: 22px; }
.r1-tile-icon img { width: 38px; height: 38px; object-fit: contain; }
.r1-tile-name { font-size: 20px; font-weight: 600; color: var(--r1-navy); line-height: 1.3; margin-bottom: 14px; }
.r1-tile-more { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--r1-teal-text); }

/* Credentials */
.r1-creds { background: #fff; border-bottom: 1px solid var(--r1-line); }
.r1-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style: none; padding: 0; margin: 0 0 48px; }
.r1-stats li { border-left: 3px solid var(--r1-teal); padding-left: 20px; }
.r1-stats strong { display: block; font-size: 40px; line-height: 1.1; font-weight: 700; color: var(--r1-navy); margin-bottom: 10px; }
.r1-stats span { display: block; font-size: 15px; line-height: 1.5; color: var(--r1-muted); }
.r1-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; list-style: none; padding: 28px 0 0; margin: 0; border-top: 1px solid var(--r1-line); }
.r1-badges li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; color: var(--r1-ink); }
.r1-badges li:before { content: ""; position: absolute; left: 4px; top: 5px; width: 8px; height: 14px; border: solid var(--r1-teal); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.r1-source { margin: 28px 0 0; font-size: 13px; color: #74605A; }

/* Cards (patient stories, research) */
.r1-stories, .r1-news { background: var(--r1-soft); }
.r1-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.r1-card { display: block; background: #fff; border: 1px solid var(--r1-line); border-radius: 6px; overflow: hidden; text-decoration: none; transition: box-shadow .2s; }
.r1-card:hover { box-shadow: 0 10px 28px rgba(61,31,46,.10); text-decoration: none; }
.r1-card-img { display: block; aspect-ratio: 4 / 3; background: #F3ECE4; overflow: hidden; }
.r1-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r1-card-title { display: block; padding: 18px 20px 6px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--r1-navy); }
.r1-card-text { display: block; padding: 0 20px 20px; font-size: 14px; line-height: 1.55; color: var(--r1-muted); }
.r1-card-title:last-child { padding-bottom: 20px; }

/* About */
.r1-about { background: #fff; }
.r1-about-text { font-size: 18px; line-height: 1.75; color: var(--r1-ink); text-align: center; margin: 0; }

/* News list on homepage */
.r1-newslist { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; background: #fff; border: 1px solid var(--r1-line); border-radius: 6px; }
.r1-newslist li + li { border-top: 1px solid var(--r1-line); }
.r1-newslist a { display: block; padding: 24px 28px; text-decoration: none; }
.r1-newslist a:hover .r1-news-title { text-decoration: underline; }
.r1-newslist time { display: block; font-size: 13px; color: #74605A; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.r1-news-title { display: block; font-size: 19px; font-weight: 600; color: var(--r1-navy); margin-bottom: 6px; }
.r1-news-text { display: block; font-size: 15px; color: var(--r1-muted); }

/* ---- List pages (newslist.html): intro + thumbnail cards ---- */
.r1-list { padding: 8px 0 64px; }
.r1-list-intro { max-width: 820px; margin: 8px 0 40px; }
.r1-list-intro h1 { font-size: 36px; line-height: 1.2; font-weight: 700; color: var(--r1-navy); margin: 0 0 14px; }
.r1-list-intro p { font-size: 18px; line-height: 1.65; color: var(--r1-muted); margin: 0; }
.r1-items { display: flex; flex-direction: column; gap: 24px; }
.r1-item { display: flex; gap: 28px; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid var(--r1-line); border-radius: 6px; }
.r1-item-img { flex: 0 0 260px; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: #F3ECE4; }
.r1-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r1-item-body { flex: 1; min-width: 0; }
.r1-item h2 { font-size: 22px; line-height: 1.35; font-weight: 600; margin: 0 0 8px; }
.r1-item h2 a { color: var(--r1-navy); text-decoration: none; }
.r1-item h2 a:hover { text-decoration: underline; }
.r1-item time { display: block; font-size: 13px; color: #74605A; margin-bottom: 8px; }
.r1-item p { font-size: 16px; line-height: 1.65; color: var(--r1-muted); margin: 0 0 14px; }
.son-nav ul li a { font-family: inherit; font-size: 14px; color: var(--r1-navy); border-color: var(--r1-line); border-radius: 999px; padding: 7px 16px; margin: 0 6px 8px 0; display: inline-block; }
.son-nav ul li a.cur, .son-nav ul li a:hover { background-color: var(--r1-navy); border-color: var(--r1-navy); color: #fff; }
.r1-listpage .breadcrumb, .r1-listpage .breadcrumb a { font-size: 14px; color: #74605A; }

/* ---- Footer ---- */
.r1-footer { background: var(--r1-navy); color: #DDCEC2; padding: 64px 0 28px; font-size: 15px; }
.r1-footer a { color: #F2EAE2; text-decoration: none; }
.r1-footer a:hover { color: #fff; text-decoration: underline; }
.r1-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.r1-footer h2 { font-size: 19px; line-height: 1.4; color: #fff; font-weight: 600; margin: 0 0 12px; }
.r1-footer h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; color: #FFD9C7; font-weight: 600; margin: 0 0 16px; }
.r1-footer p { margin: 0 0 20px; line-height: 1.6; }
.r1-footer ul { list-style: none; padding: 0; margin: 0; }
.r1-footer li { margin-bottom: 10px; line-height: 1.5; }
.r1-footer .r1-btn-primary { color: #fff; }
.r1-footer .r1-btn-primary:hover { text-decoration: none; }
.r1-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #8fa3b5; }
.r1-footer-contact li { word-break: break-word; }
.r1-disclaimer { padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.r1-disclaimer p { margin: 0; font-size: 13px; line-height: 1.7; color: #aebdca; max-width: 980px; }
.r1-disclaimer strong { color: #F2EAE2; }
.r1-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 13px; }
.r1-footer-bottom p { margin: 0; }
.r1-legal a { margin-left: 18px; color: #DDCEC2; }
.r1-legal a:first-child { margin-left: 0; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .r1-tiles { grid-template-columns: repeat(2, 1fr); }
    .r1-stats { grid-template-columns: repeat(2, 1fr); }
    .r1-cards { grid-template-columns: repeat(2, 1fr); }
    .r1-footer-grid { grid-template-columns: 1fr 1fr; }
    .r1-hero h1 { font-size: 38px; }
}
@media (max-width: 767px) {
    .r1-wrap { padding: 0 20px; }
    .r1-section { padding: 56px 0; }
    .r1-head { margin-bottom: 32px; }
    .r1-head h2 { font-size: 26px; }
    .r1-head p { font-size: 16px; }
    .r1-hero-shade { background: rgba(61,31,46,.88); }
    .r1-hero .r1-wrap { min-height: 0; }
    .r1-hero-text { padding: 56px 0; }
    .r1-hero h1 { font-size: 30px; }
    .r1-lede { font-size: 17px; }
    .r1-cta .r1-btn { width: 100%; text-align: center; }
    .r1-tiles { grid-template-columns: 1fr; gap: 14px; }
    .r1-tiles li a { flex-direction: row; align-items: center; padding: 18px 20px; border-top-width: 1px; border-left: 4px solid var(--r1-teal); }
    .r1-tile-icon { width: 48px; height: 48px; margin: 0 16px 0 0; flex: 0 0 48px; }
    .r1-tile-icon img { width: 28px; height: 28px; }
    .r1-tile-name { font-size: 17px; margin: 0; flex: 1; }
    .r1-tile-more { display: none; }
    .r1-stats { gap: 24px 16px; }
    .r1-stats strong { font-size: 30px; }
    .r1-stats span { font-size: 14px; }
    .r1-badges { grid-template-columns: 1fr; }
    .r1-cards { grid-template-columns: 1fr; }
    .r1-about-text { font-size: 16px; text-align: left; }
    .r1-newslist a { padding: 20px; }
    .r1-list-intro h1 { font-size: 28px; }
    .r1-list-intro p { font-size: 16px; }
    .r1-item { flex-direction: column; gap: 16px; padding: 16px; }
    .r1-item-img { flex: none; width: 100%; }
    .r1-item h2 { font-size: 19px; }
    .r1-footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .r1-footer-bottom { flex-direction: column; }
    .r1-legal a { margin: 0 16px 0 0; }
    /* sub-navigation pills: one horizontal, swipeable row */
    .son-nav { width: 100%; float: none; }
    .son-nav ul { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 18px 0 10px; }
    .son-nav ul li { flex: 0 0 auto; clear: none; margin: 0; }
    .son-nav ul li a { display: inline-block; margin: 0; white-space: nowrap; }
}

/* =====================================================================
   Round 2 (2026-10-24): desktop header fix (992px and up)
   Logo left + nav right inside one white bar; the nav may shrink or wrap
   but always stays inside the white header and never overlays the hero.
   Mobile (<992px) keeps the template's collapse menu untouched.
   ===================================================================== */
@media (min-width: 992px) {
    /* header sticks to the top but takes up real space, so the hero starts below it */
    header.nav-type-2,
    header.nav-type-2.sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1200;
        height: auto;
        background: #fff;
        box-shadow: 0 1px 0 var(--r1-line), 0 2px 8px rgba(61,31,46,.06);
    }
    .nav-type-2 .navigation,
    .nav-type-2 .navigation.sticky {
        position: relative;
        height: auto;
        min-height: 80px;
        background: #fff;
        box-shadow: none;
        -webkit-transform: none;
        transform: none;
    }
    .nav-type-2 .navigation .container { width: auto; max-width: 1200px; padding: 0 24px; }
    .nav-type-2 .navigation .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        margin: 0;
        min-height: 80px;
    }
    .nav-type-2 .navigation .row:before,
    .nav-type-2 .navigation .row:after { display: none; }

    .nav-type-2 .navbar-header {
        float: none;
        flex: 0 0 auto;
        width: auto;
        padding: 0 24px 0 0;
    }
    .nav-type-2 .logo-container { float: none; padding: 0; }
    .nav-type-2 .logo-wrap > a { height: 80px; }
    .nav-type-2 .logo-wrap img { display: block; max-height: 52px; width: auto; }

    .nav-type-2 .nav-wrap {
        float: none;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        padding: 0;
    }
    .nav-type-2 .navbar-collapse { padding: 0; }
    .nav-type-2 .navbar-nav,
    .nav-type-2 .navbar-nav.navbar-right {
        float: none !important;
        display: flex;
        flex-wrap: wrap;               /* fallback: wrap inside the white bar */
        justify-content: flex-end;
        align-items: center;
        margin: 0;
        white-space: nowrap;
    }
    .nav-type-2 .navbar-nav > li { float: none; display: block; position: relative; }

    .nav-type-2 .navbar-nav > li > a,
    .navigation.sticky .navbar-nav > li > a {
        font-family: inherit;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0;
        color: var(--r1-navy);
        line-height: 24px;
        padding: 28px 13px;            /* 80px tall row */
        position: relative;
    }
    .nav-type-2 .navbar-nav > li:last-child > a { padding-right: 0; }
    /* teal underline for hover / current section */
    .nav-type-2 .navbar-nav > li > a:after {
        content: "";
        position: absolute;
        left: 13px;
        right: 13px;
        bottom: 20px;
        height: 2px;
        background: var(--r1-teal);
        transform: scaleX(0);
        transition: transform .2s ease-in-out;
    }
    .nav-type-2 .navbar-nav > li:last-child > a:after { right: 0; }
    .nav-type-2 .navbar-nav > li > a:hover,
    .nav-type-2 .navbar-nav > li > a:focus,
    .nav-type-2 .navbar-nav > li.active > a,
    .nav-type-2 .navbar-nav > li.active > a:hover,
    .nav-type-2 .navbar-nav > li.active > a:focus,
    .nav-type-2 .navbar-nav > li.dropdown:hover > a { color: var(--r1-teal-text); background: transparent; }
    .nav-type-2 .navbar-nav > li > a:hover:after,
    .nav-type-2 .navbar-nav > li.active > a:after,
    .nav-type-2 .navbar-nav > li.dropdown:hover > a:after { transform: scaleX(1); }

    /* second-level menus: open directly under the white bar */
    .nav-type-2 .navbar-nav .dropdown-menu { top: 100%; left: 0; z-index: 1300; }
    .nav-type-2 .navbar-nav > li:nth-last-child(-n+3) .dropdown-menu { left: auto; right: 0; }
    .nav-type-2 .dropdown-menu > li > a { font-family: inherit; color: var(--r1-ink); white-space: nowrap; }
    .nav-type-2 .dropdown-menu > li > a:hover,
    .nav-type-2 .dropdown-menu > li > a:focus { color: var(--r1-teal-text); }
}

/* 1200-1365px: a little tighter */
@media (min-width: 1200px) and (max-width: 1365px) {
    .nav-type-2 .navbar-nav > li > a,
    .navigation.sticky .navbar-nav > li > a { font-size: 14.5px; padding-left: 11px; padding-right: 11px; }
    .nav-type-2 .navbar-nav > li > a:after { left: 11px; right: 11px; }
}
/* 992-1199px (e.g. 1024 laptops, tablets landscape): smaller logo, font and gap */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-type-2 .navigation .container { padding: 0 16px; }
    .nav-type-2 .navbar-header { padding-right: 12px; }
    .nav-type-2 .logo-wrap img { max-height: 40px; }
    .nav-type-2 .navbar-nav > li > a,
    .navigation.sticky .navbar-nav > li > a { font-size: 13.5px; padding: 28px 7px; }
    .nav-type-2 .navbar-nav > li > a:after { left: 7px; right: 7px; }
}

/* =====================================================================
   Round 2c (2026-10-24): Option A: centre "9 PRS" mark, 64px, header 88px
   Badge image + HTML wordmark. Wordmark main line uses the badge blue
   #3D1F2E; nav links stay site navy. Overrides the 80px values above.
   ===================================================================== */
.r1-brand { display: flex !important; align-items: center; gap: 14px; text-decoration: none; }
.r1-brand:hover, .r1-brand:focus { text-decoration: none; }
.nav-type-2 .logo-wrap img.r1-brand-badge { display: block; flex: 0 0 auto; width: 64px; height: 64px; max-width: none; max-height: none; }
.r1-brand-text { display: flex; flex-direction: column; justify-content: center; white-space: nowrap; padding-bottom: 1px; }
.r1-brand-name { font-size: 22px; line-height: 1.1; font-weight: 700; color: #3D1F2E; letter-spacing: -.2px; }
.r1-brand-sub { margin-top: 6px; font-size: 13px; line-height: 1; font-weight: 600; color: var(--r1-teal); letter-spacing: 3.4px; text-transform: uppercase; }

@media (min-width: 992px) {
    .nav-type-2 .navigation, .nav-type-2 .navigation.sticky,
    .nav-type-2 .navigation .row { min-height: 88px; }
    .nav-type-2 .logo-wrap > a.r1-brand { height: 88px; }
    .nav-type-2 .navbar-header { padding-right: 24px; }
    .nav-type-2 .navbar-nav > li > a,
    .navigation.sticky .navbar-nav > li > a { font-size: 14.5px; padding: 32.0px 9px; }
    .nav-type-2 .navbar-nav > li > a:after { left: 9px; right: 9px; bottom: 24.0px; }
    .nav-type-2 .navbar-nav > li:last-child > a { padding-right: 0; }
    .nav-type-2 .navbar-nav > li:last-child > a:after { right: 0; }
}
@media (min-width: 1200px) and (max-width: 1365px) {
    .nav-type-2 .navbar-nav > li > a,
    .navigation.sticky .navbar-nav > li > a { font-size: 14px; padding-left: 8.5px; padding-right: 8.5px; }
    .nav-type-2 .navbar-nav > li > a:after { left: 8.5px; right: 8.5px; }
    .nav-type-2 .navbar-nav > li:last-child > a { padding-right: 0; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-type-2 .navigation, .nav-type-2 .navigation.sticky,
    .nav-type-2 .navigation .row { min-height: 80px; }
    .nav-type-2 .logo-wrap > a.r1-brand { height: 80px; }
    .nav-type-2 .navbar-header { padding-right: 10px; }
    .r1-brand { gap: 10px; }
    .nav-type-2 .logo-wrap img.r1-brand-badge { width: 50px; height: 50px; }
    .r1-brand-name { font-size: 17px; }
    .r1-brand-sub { font-size: 10.5px; letter-spacing: 2.4px; margin-top: 5px; }
    .nav-type-2 .navbar-nav > li > a,
    .navigation.sticky .navbar-nav > li > a { font-size: 13.5px; padding: 28.0px 6px; }
    .nav-type-2 .navbar-nav > li > a:after { left: 6px; right: 6px; bottom: 20.0px; }
    .nav-type-2 .navbar-nav > li:last-child > a { padding-right: 0; }
}
/* mobile: 48px mark, template hamburger untouched (only vertically re-centred) */
@media (max-width: 991px) {
    .logo-container { padding: 0 15px; }
    .nav-type-2 .logo-wrap > a.r1-brand { height: 72px; }
    .r1-brand { gap: 10px; }
    .nav-type-2 .logo-wrap img.r1-brand-badge { width: 48px; height: 48px; }
    .r1-brand-name { font-size: 17px; }
    .r1-brand-sub { font-size: 10.5px; letter-spacing: 2.6px; margin-top: 5px; }
    .navbar-toggle { margin-top: 19px; }
}
@media (max-width: 359px) {
    .nav-type-2 .logo-wrap img.r1-brand-badge { width: 42px; height: 42px; }
    .r1-brand-name { font-size: 15px; }
    .r1-brand-sub { font-size: 9.5px; letter-spacing: 2px; }
}
.r1-footer-badge { display: block; width: 72px; height: 72px; margin: 0 0 18px; }

/* Round 2c: heavier brand text */
.r1-brand-name { font-weight: 800; -webkit-text-stroke: .5px currentColor; letter-spacing: 0; }
.r1-brand-sub { font-weight: 700; -webkit-text-stroke: .35px currentColor; }
/* Round 2d: larger, centred sub line */
.r1-brand-text { align-items: center; text-align: center; }
.r1-brand-sub { font-size: 15px; letter-spacing: 4.2px; margin-top: 7px; padding-left: 4.2px; }
@media (min-width: 992px) and (max-width: 1199px) { .r1-brand-sub { font-size: 12px; letter-spacing: 3px; padding-left: 3px; } }
@media (max-width: 991px) { .r1-brand-sub { font-size: 12px; letter-spacing: 3px; padding-left: 3px; } }
/* Round 2e: tighter tracking, sub line at golden point */
.r1-brand-text { align-items: flex-start; text-align: left; }
.r1-brand-sub { font-size: 14px; letter-spacing: 2px; padding-left: 0; }
@media (min-width: 992px) and (max-width: 1199px) { .r1-brand-sub { font-size: 11.5px; letter-spacing: 1.6px; } }
@media (max-width: 991px) { .r1-brand-sub { font-size: 11.5px; letter-spacing: 1.6px; } }
.r1-brand-sub { margin-left: 21px; }
@media (max-width: 1199px) { .r1-brand-sub { margin-left: 13px; } }

/* ==========================================================
   Round 3: About block (homepage, two-column redesign)
   Markup: index.html section.r3-about. Older .r1-about-text rule is now unused.
   ========================================================== */
.r3-about { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fff 70%, var(--r1-soft) 100%); }
.r3-about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.r3-about-media { position: relative; padding: 0 0 36px 28px; }
.r3-about-accent { position: absolute; left: 0; top: 28px; width: 46%; height: 72%; border-radius: 10px; background: linear-gradient(135deg, var(--r1-teal) 0%, #0b7f8c 100%); opacity: .9; }
.r3-about-photo { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: 0 24px 48px rgba(61,31,46,.18); background: #F3ECE4; }
.r3-about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.r3-about-badge { position: absolute; right: -16px; bottom: 0; max-width: 250px; padding: 20px 22px; background: var(--r1-navy); color: #fff; border-radius: 8px; border-left: 4px solid var(--r1-teal); box-shadow: 0 14px 30px rgba(61,31,46,.25); }
.r3-about-badge strong { display: block; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: .3px; margin-bottom: 6px; }
.r3-about-badge span { display: block; font-size: 14px; line-height: 1.45; color: #c9d7e4; }
.r3-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--r1-teal-text); }
.r3-eyebrow:before { content: ""; width: 28px; height: 2px; background: var(--r1-teal); }
.r3-about-body h2 { margin: 0 0 20px; font-size: 36px; line-height: 1.2; font-weight: 700; color: var(--r1-navy); letter-spacing: .1px; }
.r3-about-lede { margin: 0 0 14px; font-size: 18px; line-height: 1.7; color: var(--r1-ink); }
.r3-about-text { margin: 0 0 28px; font-size: 16px; line-height: 1.7; color: var(--r1-muted); }
.r3-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; list-style: none; margin: 0 0 34px; padding: 26px 0 0; border-top: 1px solid var(--r1-line); }
.r3-facts li { display: flex; align-items: flex-start; gap: 14px; }
.r3-fact-icon { flex: 0 0 44px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #FBEDE6; }
.r3-fact-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--r1-teal-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.r3-fact-text { font-size: 14px; line-height: 1.45; color: var(--r1-muted); }
.r3-fact-text strong { display: block; font-size: 24px; line-height: 1.15; font-weight: 700; color: var(--r1-navy); margin-bottom: 3px; }
.r3-about-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.r3-link { font-size: 16px; font-weight: 600; color: var(--r1-teal-text); text-decoration: none; }
.r3-link:hover, .r3-link:focus { color: var(--r1-navy); text-decoration: underline; }
@media (min-width: 992px) and (max-width: 1199px) {
    .r3-about-grid { gap: 48px; }
    .r3-about-body h2 { font-size: 30px; }
    .r3-about-badge { right: -8px; }
}
@media (max-width: 991px) {
    .r3-about-grid { grid-template-columns: 1fr; gap: 48px; }
    .r3-about-media { max-width: 640px; width: 100%; margin: 0 auto; padding-right: 16px; }
    .r3-about-badge { right: 0; }
    .r3-about-body { max-width: 680px; margin: 0 auto; }
}
@media (max-width: 767px) {
    .r3-about-media { padding: 0 0 0 16px; }
    .r3-about-accent { top: 16px; height: 60%; }
    .r3-about-badge { position: relative; left: auto; right: auto; bottom: auto; max-width: none; margin: -30px 12px 0 24px; padding: 14px 18px; }
    .r3-about-badge strong { font-size: 22px; }
    .r3-about-badge span { font-size: 13px; }
    .r3-about-body h2 { font-size: 27px; }
    .r3-about-lede { font-size: 17px; }
    .r3-facts { gap: 18px 16px; }
    .r3-fact-icon { flex-basis: 38px; width: 38px; height: 38px; }
    .r3-fact-icon svg { width: 19px; height: 19px; }
    .r3-fact-text { font-size: 13px; }
    .r3-fact-text strong { font-size: 21px; }
    .r3-about-cta .r1-btn { width: 100%; text-align: center; }
}
@media (max-width: 359px) {
    .r3-facts { grid-template-columns: 1fr; }
}

/* =====================================================================
   Specialty Groups r1 (2026-10-27): directory (grouplist.html), group page (group.html),
   child-groups block on specialty list pages (newslist.html). All classes start with g-.
   ===================================================================== */
/* nav: divider line above the column whose URL name is specialty-groups (class set in head.htm / son-nav) */
.nav-type-2 .dropdown-menu > li.g-nav-specialty-groups { border-top: 1px solid var(--r1-line); margin-top: 6px; padding-top: 6px; }
.nav-type-2 .dropdown-menu > li.g-nav-specialty-groups > a { font-weight: 600; color: var(--r1-teal-text); }
.son-nav ul li.g-nav-specialty-groups a { border-style: dashed; }

/* shared */
.g-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--r1-teal-text); margin: 0 0 10px; }
.g-more a { color: var(--r1-teal-text); font-weight: 600; text-decoration: none; }
.g-more a:hover { text-decoration: underline; color: var(--r1-navy); }

/* ---------- directory ---------- */
.g-dir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; }
.g-dir > .g-dir-head { grid-column: 1 / -1; margin: 22px 0 -2px; }
.g-dir:has(.g-card) { margin-bottom: 40px; }
.g-help { margin-top: 40px; }
.g-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--r1-line); border-top: 4px solid var(--r1-teal); border-radius: 6px; overflow: hidden; }
.g-card-img { display: block; aspect-ratio: 16 / 9; background: #F3ECE4; overflow: hidden; }
.g-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.g-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.g-card h2, .g-card h3 { font-size: 21px; line-height: 1.3; font-weight: 600; margin: 0 0 10px; }
.g-card h2 a, .g-card h3 a { color: var(--r1-navy); text-decoration: none; }
.g-card h3 a:hover { text-decoration: underline; }
.g-card p { font-size: 15.5px; line-height: 1.6; color: var(--r1-muted); margin: 0 0 14px; }
.g-card-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--r1-navy); margin: 4px 0 8px; }
.g-card p.g-procs { font-size: 15px; line-height: 1.75; color: var(--r1-ink); margin: 0 0 18px; padding-left: 14px; border-left: 3px solid var(--r1-teal); }
.g-card p.g-procs:before { content: "Key procedures"; display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--r1-navy); margin-bottom: 4px; }
.g-card p.g-procs:empty { display: none; }
.g-card ul.g-procs { list-style: none; padding: 0; margin: 0 0 18px; }
.g-card ul.g-procs li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--r1-ink); margin-bottom: 6px; }
.g-card ul.g-procs li:before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--r1-teal); }
.g-lead { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--r1-line); margin-top: auto; }
.g-lead img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 15%; }
.g-lead span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: #74605A; }
.g-lead strong { display: block; font-size: 16px; color: var(--r1-navy); font-weight: 600; }
.g-rel-spec { font-size: 13.5px; color: var(--r1-muted); margin: 0 0 14px !important; }
.g-rel-spec a { color: var(--r1-teal-text); }
.g-card .r1-item-more { margin-top: 4px; }
.g-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; background: var(--r1-navy); color: #fff; border-radius: 6px; }
.g-help h2 { font-size: 22px; color: #fff; margin: 0 0 6px; font-weight: 600; }
.g-help p { margin: 0; color: #EAD9CF; font-size: 16px; }
.g-help .r1-btn { white-space: nowrap; }

/* ---------- group page hero ---------- */
.g-hero { background: linear-gradient(120deg, var(--r1-navy) 0%, var(--r1-navy-2) 100%); color: #fff; }
.g-hero .r1-wrap { padding-top: 40px; padding-bottom: 48px; }
.g-crumbs { font-size: 14px; color: #CDB5A9; margin-bottom: 26px; }
.g-crumbs a { color: #EADCD2; text-decoration: none; }
.g-crumbs a:hover { text-decoration: underline; }
.g-crumbs span { margin: 0 8px; opacity: .6; }
.g-hero .g-eyebrow { color: #FFC2A8; }
.g-hero h1 { font-size: 44px; line-height: 1.15; font-weight: 700; color: #fff; margin: 0 0 16px; max-width: 860px; }
.g-hero .g-lede { font-size: 19px; line-height: 1.6; color: #F0E4DC; max-width: 820px; margin: 0 0 30px; }
.g-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); }
.g-hero-lead { display: flex; align-items: center; gap: 14px; }
.g-hero-lead img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 2px solid rgba(255,255,255,.6); }
.g-hero-lead span { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #CDB5A9; }
.g-hero-lead strong { display: block; font-size: 18px; color: #fff; font-weight: 600; }
.g-hero-lead em { display: block; font-style: normal; font-size: 14px; color: #EAD9CF; }
.g-facts { display: flex; flex-wrap: wrap; gap: 20px 40px; list-style: none; margin: 0; padding: 0; }
.g-facts li { border-left: 3px solid var(--r1-teal); padding-left: 14px; }
.g-facts strong { display: block; font-size: 26px; line-height: 1.1; color: #fff; }
.g-facts span { font-size: 13.5px; color: #EAD9CF; }
.g-hero .r1-btn { margin-left: auto; }

/* ---------- group page body ---------- */
.g-page { background: #fff; }
.g-body { max-width: 1200px; margin: 0 auto; padding: 0 24px 64px; color: var(--r1-ink); }
.g-toc { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px 26px; flex-wrap: wrap; background: #fff; border-bottom: 1px solid var(--r1-line); padding: 16px 0; margin-bottom: 8px; }
.g-toc a { font-size: 15px; font-weight: 600; color: var(--r1-navy); text-decoration: none; }
.g-toc a:hover { color: var(--r1-teal-text); }
.g-sec { padding: 56px 0; border-bottom: 1px solid var(--r1-line); }
.g-sec h2 { font-size: 30px; line-height: 1.25; font-weight: 600; color: var(--r1-navy); margin: 0 0 24px; }
.g-sec h3 { font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--r1-navy); margin: 0 0 10px; }
.g-sec p { font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.g-overview { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.g-overview-fig { margin: 0; }
.g-overview-fig img { width: 100%; border-radius: 6px; display: block; box-shadow: 18px 18px 0 #FBEDE6; }
.g-overview-fig figcaption { font-size: 14px; color: #74605A; margin-top: 26px; }
.g-cond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-cond { background: var(--r1-soft); border-radius: 6px; padding: 24px 24px 18px; border-left: 4px solid var(--r1-teal); }
.g-cond ul, .g-list { list-style: none; padding: 0; margin: 0; }
.g-cond li, .g-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.55; margin-bottom: 9px; }
.g-cond li:before, .g-list li:before { content: ""; position: absolute; left: 3px; top: 6px; width: 6px; height: 11px; border: solid var(--r1-teal); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.g-tech { display: flex; flex-direction: column; gap: 22px; }
.g-tech-item { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 28px 32px; border: 1px solid var(--r1-line); border-radius: 6px; }
.g-tech-num { font-size: 40px; line-height: 1; font-weight: 700; color: var(--r1-teal); }
.g-tech-item h3 { font-size: 22px; margin-bottom: 12px; }
.g-tech-item p { font-size: 16.5px; }
.g-tech-item p:last-child { margin-bottom: 0; }
.g-chips-wrap { margin-top: 32px; }
.g-chips-title { font-size: 15px !important; text-transform: uppercase; letter-spacing: 1.5px; color: var(--r1-muted) !important; }
.g-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.g-chips li { font-size: 15px; padding: 8px 16px; border-radius: 999px; background: #FBEDE6; color: var(--r1-teal-text); font-weight: 600; }
.g-leader { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.g-leader-photo { margin: 0; position: sticky; top: 80px; }
.g-leader-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; display: block; box-shadow: -18px 18px 0 var(--r1-navy); }
.g-leader h2 { margin-bottom: 8px; }
.g-leader-titles { font-size: 16px !important; color: var(--r1-teal-text); font-weight: 600; margin-bottom: 22px !important; }
.g-leader h3 { margin-top: 28px; font-size: 17px; text-transform: uppercase; letter-spacing: 1.4px; }
.g-team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.g-member { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 22px; border: 1px solid var(--r1-line); border-radius: 6px; align-items: start; }
.g-member img { width: 150px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; display: block; }
.g-member h3 { margin: 0 0 2px; }
.g-role { font-size: 14.5px !important; color: var(--r1-teal-text); font-weight: 600; margin-bottom: 12px !important; }
.g-member p { font-size: 15px; line-height: 1.6; color: var(--r1-muted); margin-bottom: 10px; }
.g-focus { color: var(--r1-ink) !important; }
.g-focus span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--r1-navy); margin-bottom: 2px; }
.g-pubs { margin: 0; padding-left: 26px; list-style: decimal outside; }
.g-pubs li::marker { color: var(--r1-teal-text); font-weight: 700; }
.g-pubs li { display: list-item; list-style: inherit; font-size: 16px; line-height: 1.6; margin-bottom: 14px; padding-left: 6px; }
.g-pubs a { color: var(--r1-teal-text); white-space: nowrap; }
.g-recog { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.g-recog h2 { font-size: 26px; }
.g-recog a { color: var(--r1-teal-text); font-weight: 600; }
.g-lang { font-size: 13px; color: #74605A; margin-left: 6px; }
.g-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 56px 0 28px; padding: 40px 44px; border-radius: 8px; background: var(--r1-navy); color: #fff; }
.g-cta h2 { color: #fff; font-size: 26px; line-height: 1.3; margin: 0 0 8px; font-weight: 600; }
.g-cta p { color: #EAD9CF; font-size: 16.5px; margin: 0; max-width: 640px; }
.g-cta-btns { display: flex; gap: 12px; flex-shrink: 0; }
.g-btn-line { border-color: rgba(255,255,255,.7); color: #fff; }
.g-btn-line:hover { background: #fff; color: var(--r1-navy); }
.g-disclaimer { font-size: 14px; color: #74605A; line-height: 1.6; }

/* ---------- related groups block (specialty pages) ---------- */
.g-related { margin: 0; padding: 0; }
.g-related:has(.g-rel) { margin-top: 48px; padding: 36px 36px 30px; background: var(--r1-soft); border-radius: 8px; }
.g-rel-grid > .g-related-head { grid-column: 1 / -1; margin-bottom: 4px; }
.g-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.g-related h2 { font-size: 26px; font-weight: 600; color: var(--r1-navy); margin: 0 0 6px; }
.g-related-head p { font-size: 16px; color: var(--r1-muted); margin: 0; }
.g-related-head a { color: var(--r1-teal-text); font-weight: 600; white-space: nowrap; }
.g-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g-rel { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--r1-line); border-radius: 6px; padding: 18px; text-decoration: none !important; }
.g-rel img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 15%; flex-shrink: 0; }
.g-rel strong { display: block; font-size: 17px; color: var(--r1-navy); line-height: 1.3; margin-bottom: 4px; }
.g-rel span { display: block; font-size: 14px; color: var(--r1-muted); line-height: 1.5; }
.g-rel em { display: block; font-style: normal; font-size: 13px; color: var(--r1-teal-text); font-weight: 600; margin-top: 6px; }


/* ---------- v2: directory grouped by parent specialty ---------- */
.g-dir-intro .g-dir-note { display: inline-block; font-size: 15px; color: var(--r1-teal-text); background: #FBEDE6; border-radius: 4px; padding: 8px 14px; margin-top: 4px; }
.g-dir-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding-bottom: 12px; border-bottom: 2px solid var(--r1-navy); }
.g-dir-head .g-eyebrow { width: 100%; margin: 0; }
.g-dir-head h2 { font-size: 26px; font-weight: 600; color: var(--r1-navy); margin: 0; }
.g-dir-head a { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--r1-teal-text); }
.g-card-foot { margin-top: auto; }
.g-card-foot .g-lead { margin-top: 0; }
/* a specialty with a single group: the card spans the row, image on the left */
@media (min-width: 768px) {
  .g-dir > .g-dir-head + .g-card:last-child { grid-column: 1 / -1; flex-direction: row; border-top-width: 1px; border-left: 4px solid var(--r1-teal); }
  .g-dir > .g-dir-head + .g-card:last-child .g-card-img { flex: 0 0 44%; aspect-ratio: auto; min-height: 340px; }
  .g-dir > .g-dir-head + .g-card:last-child .g-card-img { position: relative; }
  .g-dir > .g-dir-head + .g-card:last-child .g-card-img img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important; object-position: center 25%; }
  .g-dir > .g-dir-head + .g-card:last-child .g-card-body { padding: 30px 34px; }
  .g-dir > .g-dir-head + .g-card:last-child h3 { font-size: 26px; }
  .g-dir > .g-dir-head + .g-card:last-child p { font-size: 16.5px; }
  .g-dir > .g-dir-head + .g-card:last-child .g-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--r1-line); padding-top: 4px; }
  .g-dir > .g-dir-head + .g-card:last-child .g-card-foot .g-lead { border-top: 0; }
}

/* ---------- v2: group page "Part of" line ---------- */
.g-partof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -12px 0 28px; font-size: 15px; }
.g-partof-label { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #CDB5A9; }
.g-partof-label + a { margin-right: 18px; }
.g-partof a { color: #fff; font-weight: 600; padding: 5px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; text-decoration: none; }
.g-partof a:hover { background: #fff; color: var(--r1-navy); }

/* ---------- v2: condition cards link out to condition pages ---------- */
.g-sec-intro { color: var(--r1-muted); max-width: 820px; }
.g-cond-grid { grid-template-columns: repeat(2, 1fr); }
.g-cond-links { font-size: 14px !important; line-height: 1.5 !important; margin: 14px 0 4px !important; color: var(--r1-muted); }
.g-cond-links a { display: inline-block; margin: 6px 12px 0 0; color: var(--r1-teal-text); font-weight: 600; }

/* ---------- v2: child groups block on specialty pages ---------- */
.g-rel { position: relative; align-items: center; transition: box-shadow .2s; }
.g-rel:hover { box-shadow: 0 6px 18px rgba(61,31,46,.10); }
.g-rel-go { margin-left: auto; font-size: 14px; color: var(--r1-teal-text); white-space: nowrap; font-weight: 600; }
@media (min-width: 992px) { .g-related-head + .g-rel:last-child { grid-column: span 2; } }
@media (max-width: 767px) {
  .g-dir-head a { margin-left: 0; }
  .g-cond-grid { grid-template-columns: 1fr; }
  .g-rel-go { display: none; }
  .g-partof-label + a { margin-right: 6px; }
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .g-dir, .g-cond-grid, .g-rel-grid { grid-template-columns: repeat(2, 1fr); }
  .g-overview, .g-leader, .g-recog { grid-template-columns: 1fr; gap: 32px; }
  .g-leader-photo { position: static; max-width: 320px; }
  .g-team { grid-template-columns: 1fr; }
  .g-cta, .g-help { flex-direction: column; align-items: flex-start; }
  .g-hero .r1-btn { margin-left: 0; }
}
@media (max-width: 767px) {
  .g-dir, .g-cond-grid, .g-rel-grid { grid-template-columns: 1fr; }
  .g-hero .r1-wrap { padding: 24px 20px 32px; }
  .g-hero h1 { font-size: 30px; }
  .g-hero .g-lede { font-size: 16.5px; }
  .g-facts strong { font-size: 22px; }
  .g-body { padding: 0 20px 40px; }
  .g-toc { position: static; flex-wrap: nowrap; overflow-x: auto; gap: 18px; white-space: nowrap; }
  .g-sec { padding: 40px 0; }
  .g-sec h2 { font-size: 24px; }
  .g-overview-fig img { box-shadow: 10px 10px 0 #FBEDE6; }
  .g-tech-item { grid-template-columns: 1fr; gap: 8px; padding: 22px 20px; }
  .g-tech-num { font-size: 30px; }
  .g-tech-item h3 { font-size: 19px; }
  .g-leader-photo img { box-shadow: -10px 10px 0 var(--r1-navy); }
  .g-member { grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; }
  .g-member img { width: 96px; }
  .g-cta { padding: 28px 22px; }
  .g-cta-btns { flex-direction: column; width: 100%; }
  .g-cta-btns .r1-btn { width: 100%; text-align: center; }
  .g-related:has(.g-rel) { padding: 24px 18px; }
  .g-related-head { flex-direction: column; align-items: flex-start; }
  .g-help { padding: 24px 20px; }
  .g-help .r1-btn { width: 100%; text-align: center; }
}

/* ---------- r1 deploy: hide empty optional parts ---------- */
.g-hero .g-lede:empty, .g-partof:empty, .g-facts:empty { display: none; }
.g-hero-lead em:empty { display: none; }

/* ---- r2 experts <-> specialty groups (2026-10-27) ----
   .xp-list   : Our Experts list (expertslist.html only)
   .xp-detail : expert profile page (expert.html only)
   .g-experts : automatic "Experts in this group" block on group pages (group.html) */
.index-agency .xp-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.index-agency .xp-list::before, .index-agency .xp-list::after { display: none; }
.index-agency .xp-list .agency-list { float: none; width: auto; margin: 0 !important; cursor: default; background: #fff; border: 1px solid #e3e8ee; border-radius: 6px; overflow: hidden; }
.index-agency .xp-list .agency-list:hover { box-shadow: 0 4px 16px rgba(61,31,46, .10); }
.index-agency .xp-list .agency-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 22%; min-height: 0; }
.index-agency .xp-list .agency-cover,
.index-agency .xp-list .agency-list:hover .agency-cover { position: static; display: block !important; height: auto; padding: 14px 16px 16px; background: none; color: #4A3638; text-align: left; }
.index-agency .xp-list .agency-cover h5 { margin: 0 0 4px; font-size: 17px; line-height: 1.35; font-weight: 600; }
.index-agency .xp-list .agency-cover h5 a { display: inline; padding: 0; background: none; color: #3D1F2E; font-size: inherit; font-weight: inherit; text-decoration: none; }
.index-agency .xp-list .agency-cover h5 a:hover { text-decoration: underline; }
.index-agency .xp-list .xp-card-role { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #A23B22; }
.index-agency .xp-list .xp-card-desc { margin: 6px 0 10px; font-size: 14px; line-height: 1.5; color: #6A5650; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.index-agency .xp-list .xp-card-more { display: inline; width: auto; padding: 0; background: none; color: #5E2F3F; font-size: 14px; font-weight: 600; }
.index-agency .xp-list .xp-card-more::after { content: " \2192"; }
/* group label (pill) – list cards and profile page */
.xp-pill, .index-agency .xp-list .agency-cover a.xp-pill { display: inline-block; width: auto; max-width: 100%; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; background: #FBEDE6; color: #A23B22; font-size: 12px; line-height: 1.45; font-weight: 700; text-decoration: none; white-space: normal; }
.xp-pill:hover, .index-agency .xp-list .agency-cover a.xp-pill:hover { background: #B8462E; color: #fff; text-decoration: none; }
.xp-detail .xp-groupbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 18px; padding: 14px 18px; background: #FBF7F1; border-left: 4px solid #B8462E; border-radius: 4px; }
.xp-detail .xp-groupbar-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #6A5650; }
.xp-detail .xp-pill-lg { margin: 0; font-size: 15px; padding: 5px 14px; }
.xp-detail .xp-groupbar-role { font-size: 14px; font-weight: 600; color: #3D1F2E; }
.xp-detail .xp-groupbar-role:empty { display: none; }
.xp-detail .xp-groupbar-more { margin-left: auto; font-size: 15px; font-weight: 600; color: #A23B22; text-decoration: none; }
.xp-detail .xp-groupbar-more:hover { color: #3D1F2E; text-decoration: underline; }
/* group page: automatic member block */
.g-experts { background: #FBF7F1; border-bottom: 1px solid #EDE3D8; }
.g-experts .r1-wrap { padding-top: 36px; padding-bottom: 40px; }
.g-experts h2 { font-size: 26px; line-height: 1.25; font-weight: 600; color: #3D1F2E; margin: 0 0 20px; }
.g-experts:not(:has(.g-ex-card)) { display: none; }
.g-ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 18px; }
.g-ex-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #EDE3D8; border-radius: 6px; overflow: hidden; text-decoration: none; color: #2A1E1F; }
.g-ex-card:hover { box-shadow: 0 4px 16px rgba(61,31,46, .12); text-decoration: none; }
.g-ex-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; display: block; background: #F5EFE8; }
.g-ex-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; flex: 1; }
.g-ex-body strong { font-size: 16px; line-height: 1.3; font-weight: 600; color: #3D1F2E; }
.g-ex-body em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #A23B22; }
.g-ex-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: #A23B22; }
@media (max-width: 991px) {
  .index-agency .xp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 12px; }
  .xp-detail .xp-groupbar-more { margin-left: 0; }
}
@media (max-width: 480px) {
  .index-agency .xp-list .agency-cover h5 { font-size: 15px; }
  .index-agency .xp-list .xp-card-desc { font-size: 13px; }
  .xp-pill, .index-agency .xp-list .agency-cover a.xp-pill { font-size: 11px; padding: 2px 8px; }
  .g-ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .g-experts h2 { font-size: 22px; }
}

/* ==========================================================================
   r3 (2026-10-27): compact avatar cards for "Experts in this group" (group.html),
   smaller leader photo, and hardening of the Our Experts list cards against the
   theme's old hover-overlay rules (main.css .agency-cover).
   ========================================================================== */
/* Avatar crop: the thumbs are 800x600 with the portrait centred (x 160-640).
   The img is scaled so a 420px square (x 190-610, y 35-455; stays inside the portrait, no grey padding)
   fills the circle; clip-path cuts the circle. --av = circle diameter. */
.g-ex-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.g-ex-card { --av: 104px; --pt: 22px; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--pt) + var(--av) + 14px) 12px 16px; background: #fff; border: 1px solid #EDE3D8; border-radius: 8px;
  overflow: hidden; text-decoration: none; color: #2A1E1F; transition: box-shadow .2s, transform .2s; }
.g-ex-card:hover { box-shadow: 0 6px 18px rgba(61,31,46, .12); transform: translateY(-2px); text-decoration: none; }
.g-ex-card img { position: absolute; left: 50%; top: calc(var(--pt) - var(--av) * .08333);
  width: calc(var(--av) * 1.90476); height: calc(var(--av) * 1.42857); max-width: none; margin: 0 0 0 calc(var(--av) * -.95238);
  aspect-ratio: auto; object-fit: fill; background: #F5EFE8; clip-path: circle(calc(var(--av) / 2) at 50% 40.833%); }
.g-ex-card::after { content: ""; position: absolute; left: 50%; top: var(--pt); width: var(--av); height: var(--av); margin-left: calc(var(--av) / -2);
  border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #E5D9CE; pointer-events: none; }
.g-ex-body { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; flex: 1; width: 100%; }
.g-ex-body strong { font-size: 15px; line-height: 1.3; font-weight: 600; color: #3D1F2E; }
.g-ex-body em { display: inline-block; margin-top: 2px; padding: 2px 9px; border-radius: 999px; background: #FBEDE6; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #A23B22; }
.g-ex-more { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: #A23B22; }
/* leader card: teal top rule + teal ring */
.g-ex-card:has(em) { border-top: 3px solid #B8462E; }
.g-ex-card:has(em)::after { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #B8462E; }
/* leader section photo: was 340px wide */
.g-leader { grid-template-columns: 260px 1fr; gap: 48px; }
@media (max-width: 991px) { .g-leader { grid-template-columns: 1fr; } .g-leader-photo { max-width: 240px; } }
@media (max-width: 480px) {
  .g-ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .g-ex-card { --av: 88px; --pt: 18px; padding-left: 8px; padding-right: 8px; padding-bottom: 14px; }
  .g-ex-body strong { font-size: 14px; }
}

/* Our Experts list: neutralise theme hover overlay (main.css) even at higher specificity */
.index-agency .agency.xp-list .agency-list,
.index-agency .agency.xp-list .agency-list:hover { float: none; width: auto; margin: 0 !important; cursor: default; transition: box-shadow .2s; }
.index-agency .agency.xp-list .agency-cover,
.index-agency .agency.xp-list .agency-list:hover .agency-cover { position: static !important; display: block !important; width: auto; height: auto !important;
  padding: 14px 16px 16px !important; background: none !important; background-color: transparent !important; color: #4A3638; text-align: left; }
.index-agency .agency.xp-list .agency-cover h5 { color: #3D1F2E; }
.index-agency .agency.xp-list .agency-cover p { color: #6A5650; }
.index-agency .agency.xp-list .agency-cover p.xp-card-role { color: #A23B22; }
.index-agency .agency.xp-list .agency-cover a.xp-card-more,
.index-agency .agency.xp-list .agency-cover h5 a { display: inline; width: auto; padding: 0; background: none !important; }
.index-agency .agency.xp-list .agency-cover a.xp-card-more { color: #5E2F3F; }
.index-agency .agency.xp-list .agency-cover a.xp-pill { border-radius: 12px; line-height: 1.35; padding: 3px 10px; }

/* ==========================================================================
   r4 (2026-10-27c): About the Platform (?about-platform/) and Department
   (?department/) single pages. Markup lives in the page body (admin 内容 → 单页),
   wrapped in <section class="ab-page">. UEditor-safe: no div, no li classes,
   every span has a class; UEditor adds <p> inside li and "list-paddingleft-2" on ul.
   Uses :has() to drop the template's demo banner and the old pill bar on these pages only.
   ========================================================================== */
body:has(.ab-page) { overflow-x: hidden; }
body:has(.ab-page) .post-pic { display: none; }
.aboutadd:has(.ab-page) { padding: 0; line-height: 1.6; }
.aboutadd:has(.ab-page) > .about-top { display: none; }
.aboutadd .con:has(.ab-page) { padding: 0; }

.ab-page { margin: 0 calc(50% - 50vw); color: var(--r1-ink); font-size: 17px; line-height: 1.65; }
.ab-page :where(section, figure) { margin: 0; padding: 0; }
.ab-page p { margin: 0 0 14px; text-indent: 0; }
.ab-page ul { list-style: none; margin: 0; padding: 0; }
.ab-page li { list-style: none; margin: 0; padding: 0; }
.ab-page li > p:last-child { margin-bottom: 0; }
.ab-page h1, .ab-page h2, .ab-page h3 { font-family: inherit; font-weight: 600; color: var(--r1-navy); }
.ab-page h2 { font-size: 32px; line-height: 1.25; margin: 0 0 28px; letter-spacing: .2px; }
.ab-page h3 { font-size: 19px; line-height: 1.35; margin: 0 0 10px; }
.ab-page a { color: var(--r1-teal-text); }
.ab-page a.r1-btn { color: #fff; text-decoration: none; }
.ab-wrap { max-width: 1200px; margin: 0 auto !important; padding: 0 24px !important; box-sizing: border-box; }
.ab-page .ab-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--r1-teal-text); margin: 0 0 10px !important; }
.ab-page .ab-note { font-size: 13.5px; color: #74605A; margin: 18px 0 0 !important; }
.ab-more a { font-weight: 600; text-decoration: none; }
.ab-more a:hover { text-decoration: underline; color: var(--r1-navy); }
.ab-more-center { text-align: center; margin-top: 30px !important; }
#maximg .ab-page img { height: auto; }

/* hero */
.ab-hero { background: linear-gradient(120deg, var(--r1-navy) 0%, var(--r1-navy-2) 100%); color: #fff; }
.ab-hero .ab-wrap { padding-top: 34px !important; padding-bottom: 52px !important; }
.ab-crumbs { font-size: 14px; color: #CDB5A9; margin: 0 0 18px !important; }
.ab-crumbs a { color: #EADCD2 !important; text-decoration: none; }
.ab-crumbs a:hover { text-decoration: underline; }
.ab-sep { margin: 0 8px; opacity: .6; }
.ab-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px !important; }
.ab-tab { display: inline-block; padding: 7px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 14px; font-weight: 600; color: #F0E4DC !important; text-decoration: none; transition: background-color .2s, color .2s; }
.ab-tab:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.ab-tab-cur, .ab-tab-cur:hover { background: #fff; border-color: #fff; color: var(--r1-navy) !important; }
.ab-hero .ab-eyebrow { color: #FFC2A8; }
.ab-hero h1 { font-size: 44px; line-height: 1.15; font-weight: 700; color: #fff; margin: 0 0 18px; max-width: 900px; }
.ab-lede { font-size: 19px; line-height: 1.6; color: #F0E4DC; max-width: 840px; margin: 0 0 30px !important; }
.ab-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 !important; }
.ab-btn-line { border-color: rgba(255,255,255,.7) !important; background: transparent; color: #fff !important; }
.ab-btn-line:hover { background: #fff; color: var(--r1-navy) !important; }
.ab-hero .ab-facts { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); }
.ab-hero .ab-note { color: #CDB5A9; margin-top: 16px !important; }
.ab-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin: 0 !important; }
.ab-hero-row .r1-btn { margin-left: auto; }
.ab-hero-lead { display: flex; align-items: center; gap: 14px; text-decoration: none !important; }
.ab-hero-lead .ab-av { --av: 64px; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.ab-mini { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #CDB5A9; }
.ab-hero-lead .ab-person-txt strong { display: block; font-size: 18px; color: #fff; font-weight: 600; }
.ab-hero-lead .ab-person-txt em { display: block; font-weight: 400; font-style: normal; font-size: 14px; color: #EAD9CF; }

/* key numbers */
.ab-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ab-facts li { border-left: 3px solid var(--r1-teal); padding-left: 16px; }
.ab-facts strong { display: block; font-size: 34px; line-height: 1.1; font-weight: 700; color: #fff; margin-bottom: 6px; }
.ab-facts .ab-txt { display: block; font-size: 14.5px; line-height: 1.5; color: #EAD9CF; }
.ab-page .ab-facts-light { margin-bottom: 36px; }
.ab-facts-light strong { color: var(--r1-navy); }
.ab-facts-light .ab-txt { color: var(--r1-muted); }

/* sections */
.ab-sec { padding: 64px 0; background: #fff; }
.ab-sec-soft { background: var(--r1-soft); }
.ab-sec-navy { background: var(--r1-navy); color: #F0E4DC; }
.ab-sec-navy h2 { color: #fff; }
.ab-sec-navy .ab-eyebrow { color: #FFC2A8; }
.ab-sec-navy .ab-note { color: #CDB5A9; }

/* cards */
.ab-cards { display: grid; gap: 24px; }
.ab-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ab-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ab-cards > li { display: flex; flex-direction: column; padding: 28px 28px 26px; background: #fff; border: 1px solid var(--r1-line); border-top: 4px solid var(--r1-teal); border-radius: 6px; }
.ab-cards > li p { font-size: 15.5px; line-height: 1.6; color: var(--r1-muted); }
.ab-cards > li .ab-more { margin-top: auto; padding-top: 4px; }
.ab-cards-line > li { border-top: 1px solid var(--r1-line); border-left: 4px solid var(--r1-teal); }
.ab-card-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--r1-teal-text); margin-bottom: 10px; }
.ab-cards > li p:has(> .ab-card-tag) { margin-bottom: 4px; }
.ab-card-zh { font-size: 15px !important; color: var(--r1-ink) !important; margin-top: -4px !important; }
.ab-person { display: flex; align-items: center; gap: 14px; margin: 6px 0 4px; text-decoration: none !important; }
.ab-person-txt strong { display: block; font-size: 19px; color: var(--r1-navy); font-weight: 600; line-height: 1.3; }
.ab-person-txt em { display: block; font-style: normal; font-size: 14px; color: var(--r1-teal-text); font-weight: 600; }
.ab-cards > li:has(.ab-person) { background: linear-gradient(180deg, #f3faf9 0%, #fff 60%); }
.ab-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto !important; padding-top: 6px; }
.ab-links a { font-size: 15px; font-weight: 600; text-decoration: none; }
.ab-links a:after { content: " →"; }
.ab-links a:hover { text-decoration: underline; color: var(--r1-navy); }

/* round avatar crop (800x600 thumbs, portrait centred) */
.ab-av { --av: 56px; position: relative; display: inline-block; flex: 0 0 auto; width: var(--av); height: var(--av); border-radius: 50%; overflow: hidden; background: #F5EFE8; vertical-align: middle; }
#maximg .ab-av img, .ab-av img { position: absolute; left: 50%; top: calc(var(--av) * -.08333); width: calc(var(--av) * 1.90476) !important; height: calc(var(--av) * 1.42857) !important; max-width: none !important; margin: 0 0 0 calc(var(--av) * -.95238); }

/* specialty tiles */
.ab-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ab-tiles li, .ab-tiles li > p { height: 100%; margin: 0; }
.ab-tiles a { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 24px 22px; background: #fff; border: 1px solid var(--r1-line); border-top: 4px solid var(--r1-teal); border-radius: 6px; text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
.ab-tiles a:hover { box-shadow: 0 8px 22px rgba(61,31,46, .12); transform: translateY(-2px); }
.ab-tiles strong { font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--r1-navy); margin-bottom: 8px; }
.ab-tiles strong:after { content: " →"; color: var(--r1-teal); }
.ab-tiles .ab-txt { font-size: 14.5px; line-height: 1.55; color: var(--r1-muted); }
.ab-tiles li:nth-child(n+7) a { background: var(--r1-navy); border-color: var(--r1-navy); border-top-color: var(--r1-teal); }
.ab-tiles li:nth-child(n+7) strong { color: #fff; }
.ab-tiles li:nth-child(n+7) .ab-txt { color: #EAD9CF; }

/* people */
.ab-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 780px; margin: 0 auto !important; }
.ab-people-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: none; }
.ab-people li > p { position: relative; height: 100%; margin: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--r1-line); border-radius: 8px; transition: box-shadow .2s, transform .2s; }
.ab-people li > p:hover { box-shadow: 0 6px 18px rgba(61,31,46, .12); transform: translateY(-2px); }
.ab-person-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 24px 12px 18px; text-decoration: none !important; flex: 1; }
.ab-person-card .ab-av { --av: 104px; margin-bottom: 12px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #E5D9CE; }
.ab-person-card strong { font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--r1-navy); }
.ab-person-card em { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: #FBEDE6; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--r1-teal-text); }
.ab-person-lead .ab-av { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--r1-teal); }
.ab-group-tag { display: block; margin: -4px 12px 16px; padding: 8px 10px; border-top: 1px solid var(--r1-line); font-size: 13px; line-height: 1.4; font-weight: 600; text-align: center; text-decoration: none !important; }
.ab-group-tag:before { content: "Specialty group: "; display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #74605A; font-weight: 700; }
.ab-group-tag:hover { color: var(--r1-navy); }

/* split layout */
.ab-split { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ab-split-rev { align-items: start; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.ab-split-main p { font-size: 17px; line-height: 1.7; }
.ab-fig img { display: block; width: 100%; border-radius: 6px; box-shadow: 18px 18px 0 #FBEDE6; }
.ab-sec-soft .ab-fig img { box-shadow: 18px 18px 0 #d9ecea; }
.ab-fig figcaption { font-size: 14px; line-height: 1.5; color: #74605A; margin-top: 28px; }
.ab-split-rev .ab-fig { position: sticky; top: 90px; }

/* principles */
.ab-checks li { position: relative; padding: 0 0 0 34px; margin-bottom: 16px; font-size: 16.5px; line-height: 1.6; }
.ab-checks li:before { content: ""; position: absolute; left: 6px; top: 5px; width: 8px; height: 14px; border: solid var(--r1-teal); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ab-checks strong { color: var(--r1-navy); }

/* recognition badges */
.ab-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ab-badges li { padding: 24px 24px 22px; background: var(--r1-soft); border-radius: 6px; border-left: 4px solid var(--r1-teal); }
.ab-badges strong { display: block; font-size: 20px; line-height: 1.3; color: var(--r1-navy); margin-bottom: 6px; }
.ab-badges .ab-txt { display: block; font-size: 15px; line-height: 1.55; color: var(--r1-muted); }
.ab-badges a { font-weight: 600; }

/* specialist groups panel */
.ab-groups { display: flex; align-items: center; gap: 32px; margin-top: 28px; padding: 30px 34px; background: var(--r1-soft); border-radius: 8px; }
.ab-groups-txt { flex: 1; }
.ab-groups-txt p { color: var(--r1-muted); font-size: 16px; }
.ab-groups-btn { margin: 0 !important; flex-shrink: 0; }
.ab-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0 !important; }
.ab-chip { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: #FBEDE6; color: var(--r1-teal-text); font-weight: 600; }

/* quotes */
.ab-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ab-quotes li { padding: 30px 32px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.04); }
.ab-quotes blockquote { margin: 0 0 18px; padding: 0; border: 0; font-size: 21px; line-height: 1.5; color: #fff; font-style: normal; }
.ab-quotes p { font-size: 14.5px; color: #CDB5A9; }
.ab-quotes p strong { display: block; color: #FFC2A8; font-size: 16px; }
.ab-intl { margin-top: 30px !important; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16); font-size: 16.5px; max-width: 920px; }

/* timeline */
.ab-timeline { position: relative; padding-left: 4px !important; }
.ab-timeline li { position: relative; padding: 0 0 18px 96px; font-size: 16px; line-height: 1.55; }
.ab-timeline li:before { content: ""; position: absolute; left: 70px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--r1-teal); box-shadow: 0 0 0 3px #FBEDE6; }
.ab-timeline li:after { content: ""; position: absolute; left: 75px; top: 20px; bottom: 0; width: 1px; background: var(--r1-line); }
.ab-timeline li:last-child:after { display: none; }
.ab-timeline strong { position: absolute; left: 0; top: 0; font-size: 17px; color: var(--r1-navy); }

/* closing call to action */
.ab-cta { padding: 56px 0; background: linear-gradient(120deg, var(--r1-navy) 0%, var(--r1-navy-2) 100%); color: #fff; text-align: center; }
.ab-cta h2 { color: #fff; font-size: 30px; margin-bottom: 10px; }
.ab-cta p { color: #EAD9CF; font-size: 17px; max-width: 680px; margin-left: auto; margin-right: auto; }
.ab-cta .ab-btns { justify-content: center; max-width: none; margin-top: 24px !important; }

@media (max-width: 991px) {
  .ab-hero h1 { font-size: 36px; }
  .ab-facts, .ab-tiles, .ab-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-cards-3, .ab-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-people-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-split, .ab-split-rev { grid-template-columns: 1fr; gap: 40px; }
  .ab-split-rev .ab-fig { position: static; max-width: 560px; }
  .ab-groups { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .ab-page { font-size: 16px; }
  .ab-wrap { padding: 0 18px !important; }
  .ab-hero .ab-wrap { padding-top: 22px !important; padding-bottom: 40px !important; }
  .ab-tabs { margin-bottom: 24px !important; }
  .ab-hero h1 { font-size: 30px; }
  .ab-lede { font-size: 17px; }
  .ab-hero-row .r1-btn { margin-left: 0; }
  .ab-page h2 { font-size: 25px; margin-bottom: 22px; }
  .ab-sec { padding: 44px 0; }
  .ab-cards-2, .ab-cards-3, .ab-cards-4, .ab-badges, .ab-quotes, .ab-tiles { grid-template-columns: 1fr; }
  .ab-cards > li { padding: 22px 20px; }
  .ab-facts { gap: 20px 16px; }
  .ab-facts strong { font-size: 27px; }
  .ab-facts .ab-txt { font-size: 13.5px; }
  .ab-people, .ab-people-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ab-person-card .ab-av { --av: 88px; }
  .ab-person-card strong { font-size: 14.5px; }
  .ab-quotes blockquote { font-size: 18px; }
  .ab-quotes li { padding: 24px 22px; }
  .ab-timeline li { padding-left: 74px; }
  .ab-timeline li:before { left: 52px; }
  .ab-timeline li:after { left: 57px; }
  .ab-timeline strong { font-size: 16px; }
  .ab-groups { padding: 24px 20px; }
  .ab-fig img { box-shadow: 10px 10px 0 #FBEDE6; }
  .ab-btns .r1-btn { flex: 1 1 auto; text-align: center; }
  .ab-cta h2 { font-size: 24px; }
}

/* ==========================================================================
   r5 (2026-10-28a): Specialty column landing pages (newslist.html when
   sort:tcode==4, e.g. ?facial-reconstruction/). Markup uses .sp-page.
   Hides the shared demo banner + old pill bar via :has(). News list pages
   (tcode!=4) keep the previous r1-list layout unchanged.
   ========================================================================== */
body:has(.sp-page) { overflow-x: hidden; }
body:has(.sp-page) .post-pic { display: none; }
.aboutadd:has(.sp-page) { padding: 0; line-height: 1.6; }
.aboutadd:has(.sp-page) > .about-top { display: none; }
.aboutadd .con:has(.sp-page) { padding: 0; }

.sp-page { margin: 0 calc(50% - 50vw); color: var(--r1-ink); font-size: 17px; line-height: 1.65; }
.sp-page :where(div, aside, header, article) { box-sizing: border-box; }
.sp-page p { margin: 0 0 14px; text-indent: 0; }
.sp-page h1, .sp-page h2, .sp-page h3 { font-family: inherit; font-weight: 600; color: var(--r1-navy); }
.sp-page h2 { font-size: 32px; line-height: 1.25; margin: 0 0 14px; letter-spacing: .2px; }
.sp-page h3 { font-size: 20px; line-height: 1.35; margin: 0 0 10px; }
.sp-page a { color: var(--r1-teal-text); }
.sp-page a.r1-btn { color: #fff; text-decoration: none; }
.sp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.sp-page .sp-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--r1-teal-text); margin: 0 0 10px; }
.sp-sec-lede { font-size: 17px; color: var(--r1-muted); max-width: 760px; margin: 0 0 32px; }

/* hero */
.sp-hero { background: linear-gradient(120deg, var(--r1-navy) 0%, var(--r1-navy-2) 100%); color: #fff; }
.sp-hero .sp-wrap { padding-top: 34px; padding-bottom: 52px; }
.sp-crumbs { font-size: 14px; color: #CDB5A9; margin: 0 0 18px; }
.sp-crumbs a { color: #EADCD2 !important; text-decoration: none; }
.sp-crumbs a:hover { text-decoration: underline; }
.sp-sep { margin: 0 8px; opacity: .6; }
.sp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.sp-tab { display: inline-block; padding: 7px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 14px; font-weight: 600; color: #F0E4DC !important; text-decoration: none; transition: background-color .2s, color .2s; }
.sp-tab:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.sp-tab-cur, .sp-tab-cur:hover { background: #fff; border-color: #fff; color: var(--r1-navy) !important; }
.sp-hero .sp-eyebrow { color: #FFC2A8; }
.sp-hero h1 { font-size: 44px; line-height: 1.15; font-weight: 700; color: #fff; margin: 0 0 18px; max-width: 900px; }
.sp-lede { font-size: 19px; line-height: 1.6; color: #F0E4DC; max-width: 840px; margin: 0 0 30px; }
.sp-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.sp-btn-line { border-color: rgba(255,255,255,.7) !important; background: transparent; color: #fff !important; }
.sp-btn-line:hover { background: #fff; color: var(--r1-navy) !important; }

/* sections */
.sp-sec { padding: 64px 0; background: #fff; }
.sp-sec-soft { background: var(--r1-soft); }

/* condition cards */
.sp-conds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sp-cond { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--r1-line); border-radius: 8px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.sp-cond:hover { box-shadow: 0 8px 22px rgba(61,31,46, .12); transform: translateY(-2px); }
.sp-cond-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #F3ECE4; }
.sp-cond-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-cond-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.sp-cond h3 a { color: var(--r1-navy); text-decoration: none; }
.sp-cond h3 a:hover { text-decoration: underline; }
.sp-cond p { font-size: 15.5px; line-height: 1.6; color: var(--r1-muted); margin: 0 0 16px; flex: 1; }
.sp-cond-more { font-weight: 600; text-decoration: none; margin-top: auto; }
.sp-cond-more:hover { text-decoration: underline; color: var(--r1-navy); }

/* group + experts */
.sp-groups .g-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sp-groups .g-related-head h2 { margin-bottom: 6px; }
.sp-groups .g-related-head p { font-size: 16px; color: var(--r1-muted); margin: 0; max-width: 640px; }
.sp-groups .g-related-head > a { color: var(--r1-teal-text); font-weight: 600; white-space: nowrap; text-decoration: none; }
.sp-groups .g-related-head > a:hover { text-decoration: underline; }
.sp-group-block { display: grid; gap: 28px; }
.sp-g-rel { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--r1-line); border-radius: 8px; padding: 22px 24px; text-decoration: none !important; transition: box-shadow .2s; }
.sp-g-rel:hover { box-shadow: 0 6px 18px rgba(61,31,46,.10); }
.sp-g-rel img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 15%; flex-shrink: 0; }
.sp-g-rel strong { display: block; font-size: 20px; color: var(--r1-navy); line-height: 1.3; margin-bottom: 4px; }
.sp-g-rel span { display: block; font-size: 15px; color: var(--r1-muted); line-height: 1.5; }
.sp-g-rel em { display: block; font-style: normal; font-size: 13.5px; color: var(--r1-teal-text); font-weight: 600; margin-top: 6px; }
.sp-g-rel .g-rel-go { margin-left: auto; font-size: 14px; color: var(--r1-teal-text); white-space: nowrap; font-weight: 600; }

.sp-experts-head { margin-bottom: 20px; }
.sp-experts-head p { color: var(--r1-muted); font-size: 16px; max-width: 720px; }
.sp-experts-head a { font-weight: 600; text-decoration: none; }
.sp-experts-head a:hover { text-decoration: underline; }
.sp-ex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-ex-grid:empty { display: none; }
.sp-ex { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 14px 18px; background: #fff; border: 1px solid var(--r1-line); border-radius: 8px; text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
.sp-ex:hover { box-shadow: 0 6px 18px rgba(61,31,46, .12); transform: translateY(-2px); }
.sp-ex-av { --av: 88px; position: relative; display: inline-block; width: var(--av); height: var(--av); border-radius: 50%; overflow: hidden; background: #F5EFE8; margin-bottom: 8px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #E5D9CE; }
.sp-ex:has(em) .sp-ex-av { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--r1-teal); }
#maximg .sp-ex-av img, .sp-ex-av img { position: absolute; left: 50%; top: calc(var(--av) * -.08333); width: calc(var(--av) * 1.90476) !important; height: calc(var(--av) * 1.42857) !important; max-width: none !important; margin: 0 0 0 calc(var(--av) * -.95238); }
.sp-ex strong { font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--r1-navy); }
.sp-ex em { display: inline-block; margin-top: 2px; padding: 2px 10px; border-radius: 999px; background: #FBEDE6; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--r1-teal-text); }

/* CTA */
.sp-cta { padding: 56px 0; background: linear-gradient(120deg, var(--r1-navy) 0%, var(--r1-navy-2) 100%); color: #fff; text-align: center; }
.sp-cta h2 { color: #fff; font-size: 30px; margin: 0 0 10px; }
.sp-cta p { color: #EAD9CF; font-size: 17px; max-width: 680px; margin-left: auto; margin-right: auto; }
.sp-cta .sp-btns { justify-content: center; margin-top: 24px; }

@media (max-width: 991px) {
  .sp-hero h1 { font-size: 36px; }
  .sp-conds { grid-template-columns: 1fr; }
  .sp-ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-g-rel .g-rel-go { display: none; }
}
@media (max-width: 767px) {
  .sp-page { font-size: 16px; }
  .sp-wrap { padding: 0 18px; }
  .sp-hero .sp-wrap { padding-top: 22px; padding-bottom: 40px; }
  .sp-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 24px; padding-bottom: 4px; }
  .sp-tab { flex: 0 0 auto; }
  .sp-hero h1 { font-size: 30px; }
  .sp-lede { font-size: 17px; }
  .sp-page h2 { font-size: 25px; }
  .sp-sec { padding: 44px 0; }
  .sp-groups .g-related-head { flex-direction: column; align-items: flex-start; }
  .sp-ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sp-ex-av { --av: 72px; }
  .sp-ex strong { font-size: 14.5px; }
  .sp-btns .r1-btn { flex: 1 1 auto; text-align: center; }
  .sp-cta h2 { font-size: 24px; }
  .sp-cond-body { padding: 18px 16px 16px; }
}

/* =========================================================
   Column redesign (Patient Stories / Research / News) + Second Opinion
   Added 2026-11-02 — keeps About (ab-*) and Specialty (sp-*) intact
   ========================================================= */
body:has(.col-page), body:has(.so-page) { overflow-x: hidden; }
body:has(.col-page) .post-pic,
body:has(.so-page) .post-pic { display: none; }
body:has(.col-page) .about-top,
.aboutadd:has(.col-page) > .about-top { display: none; }
.aboutadd:has(.col-page) { padding: 0; line-height: 1.6; }
.aboutadd .con:has(.col-page) { padding: 0; }
.main-box.aboutadd:has(.col-page),
.wrapper:has(.col-page) .main-box.aboutadd { max-width: none; width: auto; padding: 0; }
.wrapper:has(.col-page),
.cont:has(.col-page) { max-width: none; width: auto; padding: 0; margin: 0; }

.col-page, .so-page {
  margin: 0 calc(50% - 50vw);
  color: var(--r1-ink);
  font-size: 17px;
  line-height: 1.65;
}
.col-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.col-hero {
  background: linear-gradient(120deg, var(--r1-navy) 0%, var(--r1-navy-2) 100%);
  color: #fff;
}
.col-hero .col-wrap { padding-top: 34px; padding-bottom: 52px; }
.col-crumbs { font-size: 13px; color: #CDB5A9; margin: 0 0 22px; }
.col-crumbs a { color: #EAD9CF; text-decoration: none; }
.col-crumbs a:hover { color: #fff; text-decoration: underline; }
.col-sep { margin: 0 8px; opacity: .6; }
.col-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #FFC2A8; margin: 0 0 10px;
}
.col-hero h1 {
  font-size: 44px; line-height: 1.15; font-weight: 700; color: #fff;
  margin: 0 0 18px; max-width: 900px;
}
.col-lede {
  font-size: 18px; line-height: 1.65; color: #EAD9CF;
  margin: 0 0 28px; max-width: 760px;
}
.col-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.col-btn-line {
  background: transparent; border-color: rgba(255,255,255,.55); color: #fff;
}
.col-btn-line:hover, .col-btn-line:focus {
  background: #fff; color: var(--r1-navy); border-color: #fff;
}
.col-sec { padding: 56px 0; background: #fff; }
.col-sec h2 {
  font-size: 32px; line-height: 1.25; font-weight: 600;
  color: var(--r1-navy); margin: 0 0 12px;
}

.col-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.col-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--r1-line);
  border-radius: 8px; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.col-card:hover { box-shadow: 0 8px 22px rgba(61,31,46,.12); transform: translateY(-2px); }
.col-card-img {
  display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #F3ECE4;
}
.col-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-card-body {
  display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px;
}
.col-card h2, .col-row h2 {
  font-size: 20px; line-height: 1.35; font-weight: 600; margin: 0 0 10px;
}
.col-card h2 a, .col-row h2 a { color: var(--r1-navy); text-decoration: none; }
.col-card h2 a:hover, .col-row h2 a:hover { text-decoration: underline; }
.col-card p, .col-row p {
  font-size: 15.5px; line-height: 1.6; color: var(--r1-muted);
  margin: 0 0 16px; flex: 1;
}
.col-card-more {
  font-weight: 600; text-decoration: none; margin-top: auto; color: var(--r1-teal-text);
}
.col-card-more:hover { text-decoration: underline; color: var(--r1-navy); }

.col-rows { display: grid; gap: 22px; }
.col-row {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0;
  background: #fff; border: 1px solid var(--r1-line); border-radius: 8px;
  overflow: hidden; transition: box-shadow .2s;
}
.col-row:hover { box-shadow: 0 8px 22px rgba(61,31,46,.10); }
.col-row-img { display: block; background: #F3ECE4; min-height: 180px; }
.col-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-row-body { padding: 22px 26px; display: flex; flex-direction: column; }
.col-row time {
  display: block; font-size: 13px; color: #74605A; margin: 0 0 8px;
  letter-spacing: .3px;
}

.col-cta {
  padding: 56px 0;
  background: linear-gradient(120deg, var(--r1-navy) 0%, var(--r1-navy-2) 100%);
  color: #fff; text-align: center;
}
.col-cta h2 { color: #fff; font-size: 30px; margin: 0 0 10px; }
.col-cta p { color: #EAD9CF; font-size: 17px; max-width: 680px; margin-left: auto; margin-right: auto; }
.col-cta .col-btns { justify-content: center; margin-top: 24px; }

/* Second Opinion / Contact */
.so-prose { max-width: 820px; }
.so-prose h2 {
  font-size: 28px; line-height: 1.3; font-weight: 600;
  color: var(--r1-navy); margin: 36px 0 14px;
}
.so-prose h2:first-child { margin-top: 0; }
.so-prose p { margin: 0 0 14px; }
.so-prose ul { margin: 0 0 18px; padding-left: 1.2em; }
.so-prose li { margin: 0 0 8px; }
.so-prose img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0 6px; }
.so-form-sec { background: var(--r1-soft); }
.so-form-lede { color: var(--r1-muted); max-width: 720px; margin: 0 0 28px; }
.so-form {
  background: #fff; border: 1px solid var(--r1-line); border-radius: 10px;
  padding: 28px 28px 22px; max-width: 820px;
  box-shadow: 0 8px 24px rgba(61,31,46,.06);
}
.so-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px;
}
.so-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 500; color: var(--r1-navy); }
.so-field span em, .so-consent em { color: #c0392b; font-style: normal; }
.so-field input, .so-field select, .so-field textarea {
  width: 100%; border: 1px solid #E2D4C9; border-radius: 6px;
  padding: 12px 14px; font-size: 16px; line-height: 1.4; color: var(--r1-ink);
  background: #fff; box-sizing: border-box;
}
.so-field textarea { resize: vertical; min-height: 140px; }
.so-field input:focus, .so-field select:focus, .so-field textarea:focus {
  outline: none; border-color: var(--r1-teal); box-shadow: 0 0 0 3px rgba(11,162,152,.15);
}
.so-field-full { grid-column: 1 / -1; }
.so-note { font-size: 14px; color: #74605A; margin: 18px 0 12px; }
.so-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--r1-ink); margin: 0 0 16px; font-weight: 500;
}
.so-consent input { margin-top: 3px; flex-shrink: 0; }
.so-captcha-row { display: flex; gap: 12px; align-items: center; }
.so-captcha-row input { max-width: 180px; }
.so-captcha-row img {
  border-radius: 4px; border: 1px solid #E2D4C9; cursor: pointer; height: 40px;
}
.so-actions { margin: 8px 0 0; }

/* Article end CTA */
.art-so-cta {
  margin: 40px 0 12px; padding: 28px 28px 24px;
  background: linear-gradient(120deg, var(--r1-navy) 0%, var(--r1-navy-2) 100%);
  border-radius: 10px; color: #fff;
}
.art-so-cta h3 { color: #fff; font-size: 24px; margin: 0 0 10px; font-weight: 600; }
.art-so-cta p { color: #EAD9CF; margin: 0 0 18px; max-width: 640px; }
.art-so-cta p:last-child { margin-bottom: 0; }
.art-so-line {
  background: transparent; border-color: rgba(255,255,255,.55); color: #fff; margin-left: 8px;
}
.art-so-line:hover { background: #fff; color: var(--r1-navy); border-color: #fff; }

/* Header CTA */
.r1-nav-cta {
  display: inline-flex; align-items: center; align-self: center;
  margin: 8px 0 8px 12px; padding: 8px 16px;
  border-radius: 4px; background: var(--r1-teal); color: #fff !important;
  font-size: 13px; font-weight: 700; letter-spacing: .3px; text-decoration: none !important;
  white-space: nowrap; line-height: 1.2;
}
.r1-nav-cta:hover, .r1-nav-cta:focus { background: #9E3B26; color: #fff !important; }
#navbar-collapse {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
}

/* Mobile sticky CTA */
.r1-sticky-so {
  display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1040;
  background: var(--r1-teal); color: #fff !important; text-align: center;
  text-decoration: none !important; font-weight: 700; font-size: 15px;
  padding: 14px 16px; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(61,31,46,.25);
}
.r1-sticky-so span { display: block; }

@media (max-width: 991px) {
  .col-hero h1 { font-size: 36px; }
  .col-cards { grid-template-columns: 1fr; }
  .col-row { grid-template-columns: 1fr; }
  .col-row-img { min-height: 200px; aspect-ratio: 16 / 10; }
  .so-grid { grid-template-columns: 1fr; }
  .r1-nav-cta { margin: 4px 15px 12px; }
}
@media (max-width: 767px) {
  .col-wrap { padding: 0 18px; }
  .col-hero .col-wrap { padding-top: 22px; padding-bottom: 40px; }
  .col-hero h1 { font-size: 30px; }
  .col-lede { font-size: 17px; }
  .col-sec { padding: 44px 0; }
  .col-cta h2, .so-form-sec h2 { font-size: 24px; }
  .so-form { padding: 20px 16px 16px; }
  .col-btns .r1-btn { flex: 1 1 auto; text-align: center; }
  .r1-sticky-so { display: block; }
  body:has(.r1-sticky-so) .r1-footer { padding-bottom: 84px; }
  /* hide sticky on the SO form page itself */
  body:has(.so-page) .r1-sticky-so { display: none; }
}


/* =====================================================================
   Specialties polish + huiwen tiles (2026-11-03)
   Colored SVG tiles (opt2-cn-huiwen). Natural-height grid cards:
   do NOT use height:100% on the padded <a> (with content-box that
   overflows the grid row and overlaps the next row). Use flex:1 on a
   stretched <li> instead. Gap ~22px.
   ===================================================================== */
.r1-tiles {
  gap: 22px;
  align-items: stretch;
  grid-auto-rows: auto;
}
.r1-tiles > li {
  display: flex;
  min-height: 0;
  height: auto;
}
.r1-tiles li a {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.r1-tile-icon {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  margin-bottom: 16px;
}
.r1-tile-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: none;
  display: block;
}
.r1-tile-text { display: block; width: 100%; }
.r1-tile-name { margin-bottom: 8px; }
.r1-tile-desc {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--r1-muted);
  margin: 0 0 16px;
}
.r1-tile-more { margin-top: auto; }
.r1-tiles li a:hover {
  box-shadow: 0 14px 32px rgba(61,31,46,.12);
  transform: translateY(-3px);
}
@media (max-width: 767px) {
  .r1-tiles { gap: 14px; }
  .r1-tiles > li { display: flex; }
  .r1-tiles li a {
    flex-direction: row;
    align-items: center;
    height: auto;
  }
  .r1-tile-icon {
    width: auto;
    height: auto;
    margin: 0 14px 0 0;
    flex: 0 0 auto;
    border-radius: 0;
    background: transparent;
  }
  .r1-tile-icon img { width: 52px; height: 52px; }
  .r1-tile-text { flex: 1; min-width: 0; }
  .r1-tile-name { margin: 0 0 4px; }
  .r1-tile-desc {
    margin: 0;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .r1-tile-more { display: none; }
}
