/* Shared FFT appearance. Content, photographs and downloadable documents retain their original colors. */
:root {
  color-scheme: light;
  --appearance-canvas: #f7f7f4;
  --appearance-surface: #ffffff;
  --appearance-subtle: #eff1ee;
  --appearance-ink: #202a30;
  --appearance-muted: #606d74;
  --appearance-border: #dce1de;
  --appearance-control-border: #788890;
  --appearance-action: #486b80;
  --appearance-action-hover: #38586b;
  --appearance-action-ink: #ffffff;
  --appearance-gold: #8b681d;
  --appearance-gold-soft: #f1ecdf;
  --appearance-success: #25664d;
  --appearance-success-soft: #e8f1eb;
  --appearance-danger: #a4373e;
  --appearance-danger-soft: #f9e9e8;
  --appearance-shadow: 0 8px 28px rgb(20 30 35 / 8%);
}
:root[data-color-scheme='dark'] {
  color-scheme: dark;
  --appearance-canvas: #121416;
  --appearance-surface: #1a1d20;
  --appearance-subtle: #22272b;
  --appearance-ink: #edf0f1;
  --appearance-muted: #a3adb2;
  --appearance-border: #343b40;
  --appearance-control-border: #68777f;
  --appearance-action: #a9c8d8;
  --appearance-action-hover: #c3dce8;
  --appearance-action-ink: #17262e;
  --appearance-gold: #d3b46e;
  --appearance-gold-soft: #302b20;
  --appearance-success: #9bd4b6;
  --appearance-success-soft: #20332b;
  --appearance-danger: #f3a4a9;
  --appearance-danger-soft: #3b2529;
  --appearance-shadow: 0 8px 28px rgb(0 0 0 / 22%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-color-scheme]) {
    color-scheme: dark;
    --appearance-canvas: #121416; --appearance-surface: #1a1d20; --appearance-subtle: #22272b;
    --appearance-ink: #edf0f1; --appearance-muted: #a3adb2; --appearance-border: #343b40; --appearance-control-border: #68777f;
    --appearance-action: #a9c8d8; --appearance-action-hover: #c3dce8; --appearance-action-ink: #17262e;
    --appearance-gold: #d3b46e; --appearance-gold-soft: #302b20;
    --appearance-success: #9bd4b6; --appearance-success-soft: #20332b;
    --appearance-danger: #f3a4a9; --appearance-danger-soft: #3b2529;
  }
}
/* Map legacy components to semantic colors instead of altering media. */
:root {
  --firm-canvas: var(--appearance-canvas); --firm-canvas-image: none;
  --firm-surface: var(--appearance-surface); --firm-header: var(--appearance-subtle);
  --firm-blue: var(--appearance-action); --firm-blue-hover: var(--appearance-action-hover);
  --firm-blue-ink: var(--appearance-action); --firm-blue-soft: var(--appearance-subtle); --firm-shadow: none;
  --text-strong: var(--appearance-ink); --text-body: var(--appearance-ink); --text-muted: var(--appearance-muted);
  --text-on-dark: var(--appearance-ink); --text-on-dark-muted: var(--appearance-muted);
  --ink: var(--appearance-ink); --body: var(--appearance-ink); --text: var(--appearance-ink); --muted: var(--appearance-muted);
  --navy: var(--appearance-ink); --navy-ink: var(--appearance-ink);
  --navy-600: var(--appearance-action); --navy-700: var(--appearance-action); --navy-800: var(--appearance-ink); --navy-900: var(--appearance-ink); --navy-950: var(--appearance-ink);
  --white: var(--appearance-surface); --gray-25: var(--appearance-surface); --gray-50: var(--appearance-subtle); --gray-100: var(--appearance-subtle);
  --gray-200: var(--appearance-border); --gray-300: var(--appearance-border); --gray-500: var(--appearance-muted); --gray-600: var(--appearance-muted);
  --gold-100: var(--appearance-gold-soft); --gold-200: var(--appearance-border); --gold-300: var(--appearance-gold);
  --gold-500: var(--appearance-gold); --gold-600: var(--appearance-gold); --gold-700: var(--appearance-gold);
  --border-subtle: var(--appearance-border); --line: var(--appearance-border);
  --success: var(--appearance-success); --warning-soft: var(--appearance-gold-soft); --danger: var(--appearance-danger); --danger-soft: var(--appearance-danger-soft);
  --surface-soft: var(--appearance-subtle); --color-primary: var(--appearance-action);
  --radius-md: 8px; --radius-lg: 12px;
}
html, body { background: var(--appearance-canvas); color: var(--appearance-ink); }
a { color: var(--appearance-action); }
:is(button, a, summary, input, select, textarea):focus-visible { outline: 2px solid var(--appearance-action); outline-offset: 3px; }
input, select, textarea { accent-color: var(--appearance-action); }
::selection { background: var(--appearance-action); color: var(--appearance-action-ink); }
.site-header { background: var(--appearance-canvas); border-bottom: 1px solid var(--appearance-border); box-shadow: none; }
.site-header .container { gap: 20px; }
.site-header .brand { min-width: 0; }
.brand, .footer-brand, .brand .brand-lockup, .footer-brand .brand-lockup,
.brand .brand-lockup > span, .footer-brand .brand-lockup > span,
.brand .brand-lockup strong, .footer-brand .brand-lockup strong { color: var(--appearance-ink); }
.appearance-control { display: none; }
.appearance-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.appearance-control select { min-height: 40px; max-width: 112px; padding: 8px 6px; border: 1px solid var(--appearance-control-border); border-radius: 8px; background: var(--appearance-surface); color: var(--appearance-ink); font: inherit; box-shadow: none; cursor: pointer; }
.appearance-control--standalone { justify-content: flex-end; margin-bottom: 16px; }
.site-header .header-portal { margin-left: 0; order: 3; flex-shrink: 0; white-space: nowrap; }
.site-header .lang-switch { margin-left: auto; order: 2; text-decoration: none; }
.site-header .nav-toggle { order: 4; }
.site-nav .appearance-control { width: 100%; justify-content: space-between; padding-top: 20px; margin-top: 16px; border-top: 1px solid var(--appearance-border); }
.site-nav .appearance-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.site-nav { gap: 20px; }
.site-nav a:not(.btn) { color: var(--appearance-muted); }
.site-nav a:not(.btn):hover, .site-nav a[aria-current='page'] { background: var(--appearance-subtle); color: var(--appearance-ink); border-radius: 8px; }
.site-nav a[aria-current='page'] { border-bottom: 0; box-shadow: none; }
/* Match portal navigation: a quiet color change with no selection underline. */
:is(.site-nav a, .public-phone-link, button[aria-pressed], [role='tab']) {
  transition: background-color 120ms ease, color 120ms ease;
}
:is(button[aria-pressed], [role='tab']):is(:hover, [aria-pressed='true'], [aria-selected='true']) {
  background: var(--appearance-subtle); color: var(--appearance-ink); box-shadow: none; transform: none;
}
@media (prefers-reduced-motion: reduce) {
  :is(.site-nav a, .public-phone-link, button[aria-pressed], [role='tab']) { transition: none; }
}
.site-nav.open, .lang-switch, .chat-language .language-button { background: var(--appearance-surface); box-shadow: none; }
.lang-switch, .chat-language .language-button { border: 1px solid var(--appearance-border); border-radius: 8px; }
.site-header .nav-toggle { width: 44px; min-width: 44px; min-height: 44px; border: 1px solid var(--appearance-border); border-radius: 8px; background: var(--appearance-surface); }
.lang-switch:hover, .chat-language .language-button:hover { background: var(--appearance-subtle); }
.nav-toggle span { background: var(--appearance-ink); }
.public-nav-panel { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
.public-nav-panel[hidden] { display: none; }
.public-sidebar-heading { padding: 12px 16px 4px; margin: 0; color: var(--appearance-muted); font-size: 13px; font-weight: 600; }
.site-nav .public-sidebar-back:not(.btn) {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 16px; margin-bottom: 12px;
  background: var(--appearance-subtle); color: var(--appearance-action); border: 1px solid var(--appearance-control-border); border-radius: 8px; font-weight: 600;
}
.site-nav .public-sidebar-back:not(.btn):hover { border: 1px solid var(--appearance-action); background: var(--appearance-surface); color: var(--appearance-ink); }
.site-nav [data-sidebar-context] a[aria-current='location'] { background: var(--appearance-subtle); color: var(--appearance-ink); }
body[data-public-navigation='sidebar'] main [id] { scroll-margin-top: 96px; }
.hero, .contact-merge-hero, .section, .section-alt, .article-hero, .article-body, .client-feedback { background: transparent; }
.hero h1, .hero h2, .hero h3, .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--appearance-ink); }
.hero p, .hero .lead, .hero .eyebrow, .eyebrow, .step::before, .hero-service-number,
.article-hero .topic-label, .article-hero .article-meta, .breadcrumb, .breadcrumb a,
.contact-rocky-link, .contact-rocky-link:hover, .on-dark-link, .on-dark-link:hover { color: var(--appearance-muted); }
.hero-inner { padding-block: 76px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.1; letter-spacing: -.025em; }
.section { padding-block: 64px; }
.cred-strip { background: transparent; border-block: 1px solid var(--appearance-border); }
.cred, .hero-service-link { border-color: var(--appearance-border); }
.hero-service-panel, .card, .form-card, .audience-path-card, .audience .chip, .testimonial-card,
.about-story-panel, .capability-grid article, .safety-card, .step, .service-family-card,
.service-standalone-card, .service-scope, .featured-article article, .article-list-item,
.founder-intro, .public-disclosure, .article-toc, details.faq-item, .faq-list details {
  background: var(--appearance-surface); color: var(--appearance-ink); border: 1px solid var(--appearance-border); border-radius: 10px; box-shadow: none;
}
.hero-service-panel > .eyebrow, .home-service-grid .card > .eyebrow { background: transparent; margin: 0 0 20px; padding: 0; border-radius: 0; color: var(--appearance-muted); }
.card .ic { background: transparent; color: var(--appearance-action); }
/* Repeated choices read as one list; only forms and focused content need a panel. */
.home-service-grid .card, .service-family-card, .service-standalone-card {
  background: transparent; border: 0; border-top: 1px solid var(--appearance-border);
  border-radius: 0; padding: 24px 0; box-shadow: none;
}
.home-service-grid { column-gap: 32px; row-gap: 12px; }
.home-service-grid .card h3 { margin-bottom: 12px; }
.home-service-grid .card p { color: var(--appearance-muted); }
.home-service-grid .card .card-link { align-self: flex-start; padding-block: 8px; }
.faq-list details, details.faq-item {
  background: transparent; border: 0; border-bottom: 1px solid var(--appearance-border);
  border-radius: 0; box-shadow: none;
}
.service-detail-row, .service-detail-row:first-child, .service-detail-row:last-child {
  background: transparent; border: 0; border-top: 1px solid var(--appearance-border); border-radius: 0; padding: 28px 0; box-shadow: none;
}
.service-detail-row + .service-detail-row { margin-top: 0; }
.step { background: transparent; border: 0; border-top: 1px solid var(--appearance-border); border-radius: 0; padding-inline: 0; }
.article-list-item, .article-list-item + .article-list-item, .featured-article article { background: transparent; border: 0; border-top: 1px solid var(--appearance-border); border-radius: 0; padding-inline: 0; }
.form-section legend { background: transparent; padding: 0; border-radius: 0; }
.support-ribbon, .cta-band { background: var(--appearance-subtle); border: 0; border-radius: 0; color: var(--appearance-ink); }
.cta-band h2, .cta-band p { color: var(--appearance-ink); }
.site-footer { background: transparent; border-top: 1px solid var(--appearance-border); }
.footer-bottom { border-color: var(--appearance-border); }
.site-footer h4 { color: var(--appearance-ink); }
.founder-intro:hover, .founder-intro:hover .founder-intro-cta, .capability-grid article:hover { background: var(--appearance-subtle); color: var(--appearance-action); }
.founder-intro img, .about-portrait { border-width: 1px; }
.btn { min-height: 44px; border-radius: 8px; box-shadow: none; }
html[lang='zh'] .btn { letter-spacing: normal; }
.btn-primary, .btn-accent, .button-primary, .field-submit, .action-button--primary, .start-chat-button, .send-button, .download-button {
  background: var(--appearance-action); border-color: var(--appearance-action); color: var(--appearance-action-ink); box-shadow: none;
}
.btn-primary:hover, .btn-accent:hover, .button-primary:hover, .field-submit:hover, .action-button--primary:focus-visible,
.start-chat-button:hover, .send-button:hover, .download-button:hover { background: var(--appearance-action-hover); color: var(--appearance-action-ink); }
.btn-secondary, .btn-ghost, .btn-outline-light, .button-secondary, .field-skip,
.action-button, .conversation-reply, .quote-choice-button, .slot-button, .icon-button {
  background: var(--appearance-surface); border-color: var(--appearance-border); color: var(--appearance-action); box-shadow: none;
}
.action-button--primary { background: var(--appearance-action); color: var(--appearance-action-ink); }
.btn-secondary:hover, .btn-ghost:hover, .btn-outline-light:hover, .icon-button:hover,
.quote-choice-button--selected, .quote-service:has(input:checked), .field-card .quote-step-option:has(input:checked) { background: var(--appearance-subtle); color: var(--appearance-action); border-color: var(--appearance-action); }
.field input, .field select, .field textarea, .form-card input:not([type='checkbox']):not([type='radio']),
.form-card textarea, .form-card select, .field-card select, .field-card textarea, .field-card input:not([type='checkbox']):not([type='radio']),
.quote-section-field input, .quote-section-field select, .composer textarea, #slot {
  background: var(--appearance-surface); color: var(--appearance-ink); border: 1px solid var(--appearance-control-border); border-radius: 8px; box-shadow: none;
}
input::placeholder, textarea::placeholder { color: var(--appearance-muted); opacity: 1; }
.field input:not([type='checkbox']):not([type='radio']), .field select,
.form-card input:not([type='checkbox']):not([type='radio']), .form-card select { min-height: 44px; }
.table-wrap { border: 1px solid var(--appearance-border); border-radius: 8px; box-shadow: none; }
thead, .article-copy th, .quote-line-item-table th { background: var(--appearance-subtle); color: var(--appearance-ink); }
.article-copy blockquote, .article-disclaimer, .notice-banner, .notice { background: var(--appearance-subtle); border-color: var(--appearance-border); color: var(--appearance-ink); }
.article-toc { border: 0; border-left: 2px solid var(--appearance-border); border-radius: 0; background: transparent; padding-block: 0; }
.public-disclosure > summary, .article-toc-title { color: var(--appearance-ink); }
.public-disclosure > summary {
  min-height: 44px;
  border-radius: 9px;
  overflow-wrap: anywhere;
}
.public-disclosure > summary:hover,
.public-disclosure[open] > summary {
  background: var(--appearance-subtle);
}
.public-disclosure[open] > .public-disclosure-body {
  padding-top: 16px;
  border-top: 1px solid var(--appearance-border);
}
/* The dedicated receptionist and booking pages share the same surfaces. */
.chat-shell { border: 1px solid var(--appearance-border); border-radius: 12px; background: var(--appearance-surface); box-shadow: none; }
.chat-header, .composer, .composer-note, .summary-dialog { background: var(--appearance-surface); color: var(--appearance-ink); border-color: var(--appearance-border); }
.chat-log { background: var(--appearance-canvas); }
.chat-controls { flex-wrap: wrap; }
.chat-controls .appearance-control select { max-width: 100px; font-size: 12px; }
.privacy-details, .privacy-strip, .current-quote-summary, .quote-result, .quote-result__extras,
.summary-disclaimer, .prototype-warning, .download-panel, .chat-turnstile-region { background: var(--appearance-subtle); border-color: var(--appearance-border); color: var(--appearance-muted); box-shadow: none; }
.privacy-details summary, .privacy-strip > span, .current-quote-summary summary { color: var(--appearance-muted); }
.message-bubble, .field-card, .resource-card { background: var(--appearance-surface); border-color: var(--appearance-border); color: var(--appearance-ink); }
.message--user .message-bubble { background: var(--appearance-subtle); color: var(--appearance-ink); border-color: var(--appearance-border); }
.message--user .message-bubble strong { color: var(--appearance-ink); }
.message--user .message-meta { color: var(--appearance-muted); }
.friendly-tagline { background: var(--appearance-success-soft); color: var(--appearance-success); }
.inline-notice { background: var(--appearance-gold-soft); color: var(--appearance-gold); border-color: var(--appearance-gold); }
.inline-notice--danger { background: var(--appearance-danger-soft); color: var(--appearance-danger); border-color: var(--appearance-danger); }
.booking-pending-warning, .status.error, .download-status.error { color: var(--appearance-danger); }
.send-button:disabled, .button-primary:disabled, .composer textarea:disabled { background: var(--appearance-subtle); color: var(--appearance-muted); }
.toast, .chat-latest-button { background: var(--appearance-ink); color: var(--appearance-canvas); border-color: var(--appearance-border); }
@media (max-width: 650px) {
  .site-header .site-nav [data-phone-shortcut] { display: none; }
  .site-nav { max-height: calc(100dvh - 76px); overflow-y: auto; border-bottom: 1px solid var(--appearance-border); }
  .site-nav a:not(.btn) { display: flex; align-items: center; min-height: 44px; padding: 12px 16px; width: 100%; border: 0; border-radius: 8px; }
  .site-nav a:not(.btn):hover, .site-nav a[aria-current='page'] { background: var(--appearance-subtle); color: var(--appearance-ink); }
  .site-nav.open { align-items: stretch; }
  .site-nav.open { gap: 8px; border-radius: 0; }
}
@media (min-width: 651px) {
  .site-header .nav-toggle { display: none; }
  body[data-public-navigation='sidebar'] { --public-sidebar-width: 240px; }
  body[data-public-navigation='sidebar'] > main,
  body[data-public-navigation='sidebar'] > .site-footer {
    margin-left: var(--public-sidebar-width); min-width: 0;
    /* Keep text clear of the 28px sidebar edge control. */
    --container-pad-x: 36px;
  }
  .site-header .container { max-width: none; }
  .site-header .site-nav {
    position: fixed; inset: 76px auto 0 0; width: var(--public-sidebar-width);
    display: flex; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 28px 20px; overflow-y: auto;
    background: var(--appearance-canvas); border-right: 1px solid var(--appearance-border);
  }
  .site-nav a:not(.btn), html[lang='zh'] .site-nav a:not(.btn) {
    display: flex; align-items: center; min-height: 48px; padding: 12px 16px;
    font-family: var(--font-body); font-size: 16px; font-weight: 400; letter-spacing: normal;
    border: 0; border-radius: 8px;
  }
  .site-nav a:not(.btn):hover, .site-nav a[aria-current='page'] {
    background: var(--appearance-subtle); color: var(--appearance-ink); border: 0;
  }
  .site-nav > .btn { margin-top: 20px; }
}
.public-navigation-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.site-nav a { gap: 12px; }
.public-phone-navigation { display: none; }
.public-sidebar-toggle { display: none; }
/* Modal windows share the portal backdrop; menus remain clear and opaque. */
dialog::backdrop {
  background: #102b4855;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
body[data-public-navigation='sidebar'] > main,
body[data-public-navigation='sidebar'] > .site-footer { transition: margin-left 180ms ease; }
.site-header .site-nav { transition: width 180ms ease; }
@media (min-width: 651px) {
  html[data-sidebar-collapsed='true'] body[data-public-navigation='sidebar'] { --public-sidebar-width: 72px; }
  html[data-sidebar-collapsed='true'] body .site-header .site-nav { padding: 20px 8px; }
  html[data-sidebar-collapsed='true'] body .site-nav .public-sidebar-heading { display: none; }
  html[data-sidebar-collapsed='true'] body .site-nav .public-navigation-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  html[data-sidebar-collapsed='true'] body .site-header .site-nav a:not(.btn),
  html[lang='zh'][data-sidebar-collapsed='true'] body .site-header .site-nav a:not(.btn) {
    justify-content: center; min-height: 48px; padding: 12px 8px;
  }
  .public-sidebar-toggle {
    display: flex; align-items: center; justify-content: center;
    position: fixed; z-index: 1001; top: 46dvh; left: var(--public-sidebar-width);
    width: 28px; min-width: 28px; min-height: 56px; padding: 2px; margin: 0;
    border: 1px solid var(--appearance-border); border-radius: 0 6px 6px 0;
    background: var(--appearance-canvas); color: var(--appearance-ink); box-shadow: none;
    cursor: pointer; transition: left 180ms ease;
  }
  .public-sidebar-toggle:hover { background: var(--appearance-subtle); }
  .public-sidebar-toggle:focus-visible { outline: 2px solid var(--appearance-action); outline-offset: 2px; }
  .public-sidebar-toggle svg { width: 24px; height: 24px; }
  .public-sidebar-toggle[aria-expanded='false'] svg { transform: rotate(180deg); }
}
@media (max-width: 650px) {
  body[data-public-navigation='sidebar'] { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .public-phone-navigation {
    position: fixed; inset: auto 0 0; z-index: 1100;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
    padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: var(--appearance-surface); color: var(--appearance-ink); border-top: 1px solid var(--appearance-border);
  }
  .public-phone-navigation .public-phone-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 100%; min-width: 0; min-height: 56px; margin: 0; padding: 6px 2px;
    background: transparent; color: var(--appearance-muted); border: 0; border-radius: 8px; box-shadow: none;
    font: 500 11px/1.25 var(--font-body); text-decoration: none; text-align: center; cursor: pointer;
  }
  .public-phone-navigation .nav-toggle span { width: auto; height: auto; margin: 0; background: transparent; }
  .public-phone-navigation .public-phone-link:is(:hover, [aria-current], [aria-expanded='true'], [data-current]) {
    background: var(--appearance-subtle); color: var(--appearance-ink);
  }
  .public-phone-navigation .public-phone-link:focus-visible { outline-offset: -2px; }
  .site-header .site-nav {
    display: none; position: fixed; inset: auto 12px calc(80px + env(safe-area-inset-bottom, 0px)) auto;
    width: min(360px, calc(100vw - 24px)); max-height: calc(100dvh - 176px - env(safe-area-inset-bottom, 0px));
    padding: 8px; overflow-y: auto; overscroll-behavior: contain;
    background: var(--appearance-surface); border: 1px solid var(--appearance-border); border-radius: 12px;
    opacity: 1; backdrop-filter: none; box-shadow: var(--appearance-shadow);
  }
  .site-header .site-nav.open { display: flex; flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-public-navigation='sidebar'] > main,
  body[data-public-navigation='sidebar'] > .site-footer,
  .site-header .site-nav, .public-sidebar-toggle { transition: none; }
}
@media (max-width: 720px) {
  .hero-inner { padding-block: 44px; }
  .section { padding-block: 44px; }
  .site-header .container { gap: 10px; }
  .appearance-control select { min-height: 44px; max-width: 92px; font-size: 12px; }
  .chat-header { gap: 12px; }
}
@media (max-width: 420px) {
  .site-header .brand .brand-lockup strong { max-width: 155px; font-size: 12px; white-space: normal; }
  .site-header .brand > img { width: 32px; flex-basis: 32px; }
  .site-header .container { gap: 8px; }
  .chat-header { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .site-header .brand .brand-lockup strong { display: none; }
  .site-header .brand .brand-lockup > span { font-size: 16px; }
  .site-header .header-portal { font-size: 13px; min-height: 44px; padding: 10px 12px; }
}
@media print {
  .public-phone-navigation, .public-sidebar-toggle { display: none; }
  body[data-public-navigation='sidebar'] { padding-bottom: 0; }
  body[data-public-navigation='sidebar'] > main, body[data-public-navigation='sidebar'] > .site-footer { margin-left: 0; }
  .site-header .site-nav { display: none; }
  :root, :root[data-color-scheme] { color-scheme: light !important; --appearance-canvas: #fff; --appearance-surface: #fff; --appearance-subtle: #f3f3f3; --appearance-ink: #202a30; --appearance-muted: #606d74; --appearance-border: #ccc; --appearance-action: #486b80; --appearance-action-ink: #fff; --appearance-gold: #8b681d; --appearance-gold-soft: #f1ecdf; }
  .appearance-control { display: none; }
}
@media (forced-colors: active) {
  .appearance-control select, .btn, .card, .chat-shell { border: 1px solid ButtonText; }
}

/* One page standard (owner decision, November 5, 2026): the sidebar always shows
   the main menu. A group's pages (the services; the parts of About and Contact)
   are tabs at the top of the page, in the same place on each of its pages. */
.public-page-tabs { padding: 14px 0; border-bottom: 1px solid var(--appearance-border); background: var(--appearance-surface); }
.public-page-tabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; width: fit-content; max-width: 100%; padding: 3px; border-radius: 10px; background: var(--appearance-subtle); }
.public-page-tab { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; color: var(--appearance-muted); font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.public-page-tab:hover { color: var(--appearance-ink); background: color-mix(in srgb, var(--appearance-surface) 60%, transparent); }
.public-page-tab:is([aria-current='page'], [aria-current='location']) { color: var(--appearance-ink); background: var(--appearance-surface); box-shadow: 0 0 0 1px var(--appearance-border), 0 1px 2px rgb(16 32 48 / 6%); font-weight: 600; }
.public-page-tab:focus-visible { outline: 2px solid var(--appearance-action); outline-offset: 1px; }
@media (max-width: 650px) {
  .public-page-tabs { padding: 10px 0; }
  .public-page-tabs-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: auto; }
  .public-page-tabs-row::-webkit-scrollbar { display: none; }
  .public-page-tab { flex: 0 0 auto; min-height: 44px; }
}

/* One title position on every Services tab (owner decision, November 5, 2026). */
.public-tabbed-hero .hero-inner { padding-block: 0; min-height: 0; max-width: var(--container-max); }
.public-tabbed-hero .hero-inner > .eyebrow:first-child { display: none; }
.public-tabbed-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 42px); }
.public-tabbed-hero p { max-width: 780px; margin: 0; }

@media (min-width: 651px) {
  html[data-sidebar-collapsed='true'] .site-nav a[title]:is(:hover, :focus-visible)::after {
    content: attr(title);
    pointer-events: none;
    position: fixed;
    left: 76px;
    z-index: 1002;
    width: max-content;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--appearance-canvas);
    color: var(--appearance-ink);
    border: 1px solid var(--appearance-border);
  }
}

/* ---------- Design rounds, November 2026 (docs/DESIGN-ROUNDS.md) ---------- */
/* Round 1. One small label style above a heading, wherever it sits. */
.eyebrow, .hero .eyebrow, .hero-inner > .eyebrow, .section-head .eyebrow,
.cta-band .eyebrow, .container > .eyebrow { font-size: 14px; line-height: 1.5; letter-spacing: normal; }
/* Every service on the Services page gets the same heading. */
.service-family-card h3, .service-standalone-card h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }

/* Round 2. Phones: the same parts, laid out for a narrow screen. */
.cred small { display: block; line-height: 1.5; margin-top: 2px; }
/* Buttons that follow each other in a form never touch. */
.form-card form > button.btn-outline { margin: 0 12px 12px 0; }
@media (max-width: 920px) {
  /* Who you will work with: one compact row once the hero is a single column
     (phones and upright tablets). */
  .founder-intro { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 16px; max-width: 520px; padding: 16px; }
  .founder-intro img { width: 88px; margin: 0; }
  .founder-intro > div { padding: 0; gap: 4px; text-align: left; }
  .founder-intro strong { font-size: 20px; }
}
@media (max-width: 650px) {
  .founder-intro { max-width: none; }
  /* Footer: the two lists of links sit side by side. */
  .site-footer .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .site-footer .footer-main > :first-child, .site-footer .footer-main > :last-child { grid-column: 1 / -1; }
  .usability-compact-hero .contact-start-actions .btn { flex: 1 1 100%; }
}

/* Round 3. One look for a text link that leads somewhere: same size, weight
   and colour on every page; the underline appears on hover and focus. */
.text-link, .card .card-link, .article-read-link, .site-footer .footer-cta,
.founder-intro .founder-intro-cta, .testimonials-footer > a,
.featured-article > div > .text-link, .featured-article > div > p > .text-link,
html[lang='zh'] .article-read-link {
  color: var(--appearance-action) !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: normal;
  text-decoration: none;
}
:is(.text-link, .card .card-link, .article-read-link, .site-footer .footer-cta, .testimonials-footer > a):is(:hover, :focus-visible),
.founder-intro:is(:hover, :focus-visible) .founder-intro-cta {
  color: var(--appearance-action-hover) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* A topic above an article title is a label, like the one above a section. */
.topic-label, html[lang='zh'] .topic-label { color: var(--appearance-muted); font-size: 14px; font-weight: 500; letter-spacing: normal; }

/* Round 4. Below the home page, every page starts its title in the same
   place and at the same size; the menu and the tabs already name the page. */
.hero:not(.usability-compact-hero) > .hero-inner.hero-sub, .hero.hero-sub > .container { max-width: var(--container-max); min-height: 0; padding-block: 28px 20px; }
.hero.hero-sub.usability-compact-hero { padding: 0; }
.hero-sub h1, .contact-merge-hero h1, .usability-compact-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
.hero-sub > .eyebrow:first-child, .hero.hero-sub > .container > .eyebrow:first-child { display: none; }
.hero-sub > p, .hero.hero-sub > .container > p { max-width: 780px; margin: 0; }
.hero-sub > .cta-row { margin-top: 20px; }
@media (max-width: 650px) {
  .hero:not(.usability-compact-hero) > .hero-inner.hero-sub, .hero.hero-sub > .container { padding-top: 22px; }
}

/* Round 5. Content starts at the same left edge as the page title. */
.portal-guide > * { max-width: 760px; }
.portal-guide ul { padding-left: 20px; }
.portal-guide li { margin-bottom: 8px; }
.portal-guide-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.articles-index .container { max-width: var(--container-max); }
.articles-index .article-list-item { max-width: 980px; }
@media (min-width: 801px) {
  .about-profile-header { margin-inline: 0; }
}

/* Round 6. Contact form: labels read as labels, help text as help. */
.field label, html[lang='zh'] .field label { font-size: 14px; font-weight: 600; letter-spacing: normal; color: var(--appearance-ink); }
.field .field-help, .field-help { margin: 4px 0 0; color: var(--appearance-muted); font-size: 14px; line-height: 1.5; }
.field-help a { color: var(--appearance-action); text-decoration: underline; text-underline-offset: 3px; }
.contact-email > a { color: var(--appearance-action); font-size: 15px; font-weight: 600; text-decoration: none; }
.contact-email > a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
.form-card form > [role='status']:empty { display: none; }
.form-card form > [role='status'] { margin: 0 0 12px; color: var(--appearance-muted); font-size: 15px; }

/* Round 7. Service pages: a steady rhythm from one block to the next. */
.eyebrow + h2 { margin-top: 10px; }
.section.service-overview { padding-block: 40px 48px; }
.section.service-details { padding-block: 0 48px; }
.section.service-quote-factors { padding-block: 16px 40px; }
.service-quote-factors .service-intro-grid > div:first-child > p:not(.eyebrow) { max-width: 760px; margin: 14px 0 0; font-size: 17px; line-height: 1.65; }
.service-detail-row h2 + p, .service-detail-row p + p { max-width: 46ch; }
.service-detail-row p:not(.eyebrow) + p:not(.eyebrow) { margin-top: 12px; }
@media (max-width: 650px) {
  .section.service-overview { padding-block: 28px 36px; }
  .section.service-details { padding-bottom: 36px; }
  .section.service-quote-factors { padding-block: 8px 28px; }
}

/* Round 8. Articles: the page lines up with the rest of the site. */
@media (min-width: 651px) {
  /* A closing band written after the page's main part still clears the sidebar. */
  body[data-public-navigation='sidebar'] > section { margin-left: var(--public-sidebar-width); min-width: 0; transition: margin-left 180ms ease; }
}
@media (prefers-reduced-motion: reduce) { body[data-public-navigation='sidebar'] > section { transition: none; } }
@media print { body[data-public-navigation='sidebar'] > section { margin-left: 0; } }
/* The article starts at the page's left edge, with the title at the size
   every other page uses. The breadcrumb already names the topic. */
.article-hero-inner, .article-shell { max-width: var(--container-max); }
.article-hero-inner { padding-block: 28px 8px; }
.article-shell { padding-top: 24px; }
.article-hero h1 { max-width: 920px; margin: 0 0 14px; font-size: clamp(28px, 3vw, 42px); line-height: 1.12; }
.article-hero .breadcrumb { margin-bottom: 14px; }
.article-hero .breadcrumb + .topic-label { display: none; }
.article-toc-title { letter-spacing: normal; }
.article-end-nav a { color: var(--appearance-action); font-size: 15px; font-weight: 600; text-decoration: none; }
.article-end-nav a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 650px) {
  /* The byline stacks cleanly instead of leaving a dot at the end of a line. */
  .article-meta { flex-direction: column; gap: 2px; }
  .article-meta > span[aria-hidden='true'] { display: none; }
}

/* Round 9. Line breaks: a heading or a button label splits into even lines,
   and a paragraph does not leave one word (or one character) on its last
   line. Browsers that do not know these values keep their usual wrapping. */
h1, h2, h3, h4, summary, .btn, .public-page-tab, .testimonial-card blockquote { text-wrap: balance; }
p, li, dd, small, .cred small { text-wrap: pretty; }
@media (max-width: 480px) {
  /* On a phone each hero button gets a full row, so its label stays on one line. */
  .hero .cta-row { grid-template-columns: minmax(0, 1fr); }
}

/* Round 10. Upright tablets (651 to 920 pixels wide). */
@media (max-width: 920px) {
  /* Articles: the topic and date sit above the title, so the title keeps its width. */
  .articles-index .article-list-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .articles-index .article-list-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
}

/* Round 11. FFT Assistant (Rocky): readable in every theme and size. */
/* Phone, light theme: the panel under the chat kept the old navy background
   under the new dark text and could not be read. It uses the page canvas. */
.context-panel { background: transparent; }
/* The title leaves room for the conversation beside it. */
.context-panel h1, html[lang='zh-Hans'] .context-panel h1 { max-width: 520px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; letter-spacing: normal; }
/* Hovering a main button darkens it, as on every other page (it turned gold). */
.action-button--primary:hover, .start-chat-button:hover {
  background: var(--appearance-action-hover); border-color: var(--appearance-action-hover); color: var(--appearance-action-ink);
}
/* Conversation text is 16 pixels on a desktop too; small print stays legible. */
.message-bubble p, .composer textarea, .chat-input { font-size: 16px; }
.message-bubble { line-height: 1.55; }
.message-meta { font-size: 12px; }
.composer-note { color: var(--appearance-muted); font-size: 12.5px; line-height: 1.5; }
.privacy-details summary { font-size: 13px; }
/* The four ways to start are buttons to press, not small underlined links. */
.capability-links { gap: 8px; }
.capability-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--appearance-border); border-radius: 8px; background: var(--appearance-surface);
  color: var(--appearance-action); font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.capability-links a:is(:hover, :focus-visible) { background: var(--appearance-subtle); border-color: var(--appearance-control-border); }
.capability-example { font-size: 14px; color: var(--appearance-muted); }
@media (max-width: 650px) { .capability-links a { min-height: 44px; } }

/* Round 12. Booking, waiting for the email link: one fact per line. The time
   asked for stands out as its own line under the "not booked yet" sentence. */
.message-bubble p + p { margin-top: 10px; }
.message--pending .message-bubble p:first-child + p, .message--confirmed .message-bubble p:first-child + p,
.message--booking-choice .message-bubble p:first-child + p { padding: 8px 12px; border-radius: 8px; background: var(--appearance-surface); border: 1px solid var(--appearance-border); font-weight: 600; }

/* Round 13. An estimate, a request waiting for its email link, a sent
   request and a confirmed call are told apart at a glance: the estimate is a
   card with its amount; the other three carry a coloured edge and a first
   line in bold (amber: not booked yet; blue: sent; green: confirmed). */
.message--pending .message-bubble, .message--sent .message-bubble, .message--confirmed .message-bubble { border-left-width: 4px; }
.message--pending .message-bubble { border-left-color: var(--appearance-gold); background: var(--appearance-gold-soft); }
.message--sent .message-bubble { border-left-color: var(--appearance-action); }
.message--confirmed .message-bubble { border-left-color: var(--appearance-success); background: var(--appearance-success-soft); }
:is(.message--sent, .message--confirmed) .message-bubble p:first-child { font-weight: 600; }
.message--confirmed .message-bubble p:first-child::before { content: '\2713\00a0'; color: var(--appearance-success); }
.quote-result { border-left: 4px solid var(--appearance-gold); }

/* Round 14. Booking: choosing and confirming a time. */
/* Times and choices are as easy to read as the conversation around them. */
.action-button, .conversation-reply { min-height: 40px; font-size: 15px; }
.slot-button strong { font-size: 15px; }
.slot-button span { font-size: 13px; color: var(--appearance-muted); }
/* Pointing at a time tints it with the page's own colours. It used the old
   cream, which left light text on a light button in the dark theme. */
.slot-button:hover, .slot-button:focus-visible { background: var(--appearance-subtle); border-color: var(--appearance-control-border); color: var(--appearance-ink); }
/* The private booking pages use the same title size as the site. */
main.container > h1, main.section > .container > h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.12; }

/* Round 15. Phones: a link that stands on its own is at least 44 pixels tall,
   so it is easy to tap. Links inside a sentence are unchanged. */
@media (max-width: 650px) {
  .text-link, .card .card-link, .article-read-link, .testimonial-more, .testimonials-footer > a,
  .article-end-nav a, .site-footer .footer-cta, .footer-bottom a, #back-to-site, .contact-form-fallback a {
    display: inline-flex; align-items: center; gap: .3em; min-height: 44px;
  }
  .footer-bottom { align-items: center; padding-bottom: 12px; }
  .site-footer li { margin-bottom: 0; }
  .site-footer li > a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer li:not(:has(> a)) { padding-block: 10px; }
  .capability-example summary { display: list-item; padding-block: 12px; }
  .featured-article > div > p:has(> .text-link) { margin-bottom: 0; }
}
@media (max-width: 650px) {
  .site-header .brand, .context-panel .brand { min-height: 44px; }
  .chat-controls .icon-button, .chat-controls .language-button { min-width: 44px; min-height: 44px; }
  .privacy-details summary { min-height: 44px; display: flex; align-items: center; }
}

/* Round 16. Home page: less repetition, shorter on a phone. */
/* Each quotation already sits under "Client feedback" and above the note
   that explains the excerpts, so its own "Client feedback · Anonymous
   excerpt" line is kept for screen readers and not shown three times. */
.testimonial-card figcaption { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.testimonial-card { position: relative; }
.testimonial-card blockquote { margin-bottom: 0; }
/* One shape for the closing band on every page: a heading, a line, a button. */
.cta-band .gold-rule { display: none; }
@media (max-width: 600px) {
  /* The five steps: number beside its text, not above it. */
  .steps { gap: 0; }
  .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; padding-block: 16px; }
  .step::before { grid-row: 1 / span 2; align-self: start; margin: 0; font-size: 22px; line-height: 1.2; }
  .step b { margin-bottom: 4px; }
  .cta-band .container { padding-block: 44px; gap: 24px; }
}

/* Round 17. Pointing at a link or a quiet button: one behaviour everywhere.
   Several links still turned the old gold, which is hard to read on the
   light page (the footer links, an article's byline, breadcrumb and contents). */
.site-footer a:hover, .breadcrumb a:hover, .article-toc a:hover, .article-meta a:hover,
.article-service-note a:hover, .article-end-nav a:hover, .assessment-link:hover,
.article-copy a:hover, .notice-banner a:hover, .field-help a:hover {
  color: var(--appearance-action-hover);
}
.article-list-body h2 a:hover, .featured-article article h3 a:hover { color: var(--appearance-action); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--appearance-subtle); color: var(--appearance-action); border-color: var(--appearance-control-border); }
/* The portrait keeps its dark backdrop in the dark theme (it turned white). */
:root[data-color-scheme='dark'] :is(.about-portrait, .founder-intro img) { background: #22272b; }

/* Round 18. Printing a page (articles above all): the content, the name of
   the firm and the notice at the foot; no buttons, tabs or menus. */
@media print {
  .site-header { position: static; border: 0; }
  .site-header .lang-switch, .site-header .header-portal, .public-skip-link, .public-page-tabs,
  .cta-band, .site-footer .footer-main, .footer-bottom a, .article-end-nav, .article-toc,
  .hero .cta-row, .contact-start-actions, .service-scope .btn, .testimonials-footer > a { display: none !important; }
  .hero-inner, .section, .article-shell, .article-hero-inner { padding-block: 12px; }
  h1, h2, h3 { break-after: avoid; }
  table, figure, blockquote, .article-disclaimer, .testimonial-card, .service-detail-row { break-inside: avoid; }
  /* A printed reference still says where it leads. */
  .article-copy a[href^='http']::after { content: ' (' attr(href) ')'; font-size: .85em; font-weight: 400; overflow-wrap: anywhere; }
  .public-disclosure > summary { list-style: none; }
}

/* Round 19. Chinese pages: type set the way Chinese is usually set. */
/* Headings sit close to their natural spacing (they were tracked out by 6%). */
html[lang^='zh'] :is(h1, h2, h3, h4), html[lang^='zh'] .hero h1, html[lang^='zh'] .article-toc-title,
html[lang^='zh'] .context-panel h1 { letter-spacing: 0.02em; }
/* A thin gap between Chinese and a number or Latin word ("预约15分钟" reads
   like "预约 15 分钟") wherever the text has none, and no punctuation mark
   starts a line. Browsers that do not know these keep their usual setting. */
html[lang^='zh'] body { text-autospace: normal; line-break: strict; }

/* Round 20. Last details. */
/* One focus ring: the blue outline every control already gets. Text boxes
   also drew the old gold border and glow inside it. */
.composer textarea:focus, .field :is(input, select, textarea):focus, .business-quantity input:focus,
:is(input, select, textarea):focus { border-color: var(--appearance-control-border); box-shadow: none; }
/* Small print that is still meant to be read. */
.step p { font-size: 15.5px; line-height: 1.55; }
.cred small { font-size: 14px; }
.disclaimer { font-size: 13px; }
.testimonials-note { font-size: 14.5px; }

/* Update, November 16, 2026 (owner decision): the mascot is retired. The
   assistant page and the chat show the site logo and the name
   "fft.tax Assistant" / "fft.tax 智能助手". A logo does not bob or tilt. */
.assistant-mark, .message-avatar { animation: none; }
.assistant-mark { width: 40px; height: 40px; }
.assistant-mark img { width: 40px; height: 40px; filter: none; }
.message-avatar { width: 28px; height: 28px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.message-avatar img { width: 28px; height: 28px; transform: none; }
.rocky-hero { display: block; }
#chat-title, .chat-header h2 { letter-spacing: normal; text-transform: none; }
html[lang^='zh'] .context-panel h1 { word-break: keep-all; }

/* Update, November 16, 2026 (owner decision): on Contact the inquiry form is
   folded behind a button the same size as "Book a free 15-minute call". The
   arrow says it opens; it turns over, and the button stays tinted, while the
   form is open. */
.contact-form-toggle { gap: 8px; }
.contact-form-toggle-icon { flex: none; width: 18px; height: 18px; transition: transform 150ms ease; }
.contact-form-toggle[aria-expanded='true'] { background: var(--appearance-subtle); border-color: var(--appearance-control-border); }
.contact-form-toggle[aria-expanded='true'] .contact-form-toggle-icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .contact-form-toggle-icon { transition: none; } }
/* The button above already says "Tell us what's going on". */
.form-card > .contact-form-intro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-card[data-contact-panel] { position: relative; }
/* While the form is folded away, "What happens next" takes the page. */
.contact-layout:has(> .form-card[hidden]) { grid-template-columns: minmax(0, 1fr); }
.contact-layout:has(> .form-card[hidden]) .contact-sidebar { position: static; max-width: 920px; }
.contact-layout:has(> .form-card[hidden]) .contact-sidebar h2 { margin-top: 0; }
@media (min-width: 801px) {
  .contact-layout:has(> .form-card[hidden]) .contact-next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .contact-layout:has(> .form-card[hidden]) .contact-next-steps li { margin-bottom: 0; }
}
/* Home: three ways to start, in one row when there is room. */
.home-hero-grid .cta-row { gap: 12px; }
.home-hero-grid .cta-row .btn { padding-inline: 18px; }
@media (min-width: 921px) { .home-hero-grid { grid-template-columns: minmax(0, 1fr) 264px; } }

/* Round 21. One way in, named the same everywhere: the footer's closing link
   and the Contact tab both say "Tell us what's going on" and open the form. */
.contact-secondary-links { display: block; color: var(--appearance-muted); font-size: 15px; }
.contact-secondary-links a { color: var(--appearance-action); font-size: inherit; font-weight: 600; text-decoration: none; }
.contact-secondary-links a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 650px) { .contact-secondary-links a { display: inline-flex; align-items: center; min-height: 44px; } }
/* A closing question is never larger than the page's own title. */
.cta-band h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; margin-top: 8px; }

/* Round 22. Lists and rules. */
/* One marker for a list of what we do: a short dash, on every service page,
   in the "What we cover" card, on the Services page and in the portal guide. */
.service-scope ul, .service-family-card ul, .service-standalone-card ul, .portal-guide ul { list-style: none; padding-left: 0; }
:is(.service-scope, .service-family-card, .service-standalone-card, .portal-guide) ul > li { position: relative; padding-left: 24px; }
:is(.service-scope, .service-family-card, .service-standalone-card, .portal-guide) ul > li::before,
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 9px; height: 2px; background: var(--appearance-gold); }
/* Dividing lines are the page's quiet line; the heavy gold rules are gone. */
.article-service-note { border-color: var(--appearance-border); border-width: 1px; }
.article-service-note a { color: var(--appearance-action); text-decoration: none; }
.article-service-note a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 800px) {
  .service-scope, .related-service { border-top: 1px solid var(--appearance-border); }
  .service-overview .service-scope { border: 1px solid var(--appearance-border); padding: 24px; }
}
@media (max-width: 650px) {
  /* The footer's lists sit closer together on a phone. */
  .site-footer .footer-main { row-gap: 20px; }
  .site-footer h4 { margin-bottom: 4px; }
  .footer-legal { padding-top: 16px; }
}

/* Round 23. The assistant page without the mascot. */
/* No decorative bar above the title. */
.rocky-hero__copy::before { display: none; }
/* Once a conversation starts, the site name and the way back share one row. */
@media (min-width: 1000px) {
  html:not(.is-embedded) body.conversation-started .context-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
}
@media (max-width: 700px) {
  /* On a phone the chat comes first and already carries the name, so the
     panel under it is only the site name and the way back. The page title
     stays in the page for screen readers. */
  .context-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 28px; }
  .context-panel .brand { margin-bottom: 0; }
  .context-panel .rocky-hero { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .context-panel .rocky-hero :is(.lead, .hero-actions) { display: none; }
}

/* Round 24. Articles. */
@media (min-width: 651px) {
  /* The closing band starts on the same left edge as the article above it. */
  body[data-public-navigation='sidebar'] > section { --container-pad-x: 36px; }
}
/* The band's text gives way before its button drops to a second row. */
.cta-band .container > div { flex: 1 1 320px; min-width: 0; }
.cta-band .container > .btn { flex: none; }
/* "At a glance" reads as the summary it is: a tinted panel before the text. */
.article-summary { padding: 20px 24px; border: 1px solid var(--appearance-border); border-radius: 10px; background: var(--appearance-surface); }
.article-summary { margin-bottom: 20px; }
.article-summary > p:first-child { margin-top: 0; }
.article-summary > ul { margin-bottom: 0; }
.article-summary li:last-child { margin-bottom: 0; }
/* A wide table scrolls inside its own frame; a soft edge on the right shows
   there is more to see, and the heading row uses the page's colours. */
.article-table-wrap { border-color: var(--appearance-border); border-radius: 8px; background:
  linear-gradient(to right, var(--appearance-surface) 30%, transparent) left center / 40px 100% no-repeat local,
  linear-gradient(to left, var(--appearance-surface) 30%, transparent) right center / 40px 100% no-repeat local,
  linear-gradient(to right, var(--appearance-border), transparent) left center / 14px 100% no-repeat scroll,
  linear-gradient(to left, var(--appearance-border), transparent) right center / 14px 100% no-repeat scroll; }
.article-copy th { background: var(--appearance-subtle); color: var(--appearance-ink); }
.article-copy th, .article-copy td { border-color: var(--appearance-border); }
.article-copy tbody tr:nth-child(even) { background: transparent; }
.article-copy table { background: transparent; }
/* On a phone the contents list is one tidy column with room to tap. */
@media (max-width: 650px) {
  .article-toc { padding: 16px 18px; }
  .article-toc li { padding-block: 4px; }
  .article-copy th, .article-copy td { padding: 10px 12px; }
}

/* Round 25. Last details. */
/* About: "What working with us is like" is a list of points, like the list of
   services on the home page: a line above each, no box around it. */
.grid-3 > .card { background: transparent; border: 0; border-top: 1px solid var(--appearance-border); border-radius: 0; box-shadow: none; padding: 20px 0 8px; }
.grid-3 > .card h3 { margin-bottom: 8px; font-size: 19px; }
.grid-3 > .card p { margin: 0; color: var(--appearance-muted); }
.grid.grid-3 { column-gap: 32px; row-gap: 12px; }
/* A page's closing note reads as a note. */
.section > .container > .section-lead:only-child { max-width: 760px; color: var(--appearance-muted); font-size: 17px; }
.section:has(> .container > .section-lead:only-child) { padding-block: 36px; }
@media (max-width: 650px) {
  /* Tabs that run past the edge of a phone fade out there, so it is clear
     the row scrolls. */
  .public-page-tabs-row { background:
    linear-gradient(to right, var(--appearance-subtle) 30%, transparent) left center / 28px 100% no-repeat local,
    linear-gradient(to left, var(--appearance-subtle) 30%, transparent) right center / 28px 100% no-repeat local,
    linear-gradient(to right, var(--appearance-border), transparent) left center / 12px 100% no-repeat scroll,
    linear-gradient(to left, var(--appearance-border), transparent) right center / 12px 100% no-repeat scroll,
    var(--appearance-subtle); }
}
