/* Private-client trial: neutral surfaces, monochrome photography and a red signal.
   Retain the site's Chinese reading font, content and native navigation controls. */
:root {
  --paper: #ffffff;
  --white: #ffffff;
  --surface: #f2f3f4;
  --ink: #221f20;
  --secondary: #626164;
  --accent: #a52f3e;
  --accent-ink: #ffffff;
  --field: #f2f3f4;
  --field-ink: #221f20;
  --rule: #d7d7da;
  --form-border: #929095;
  --error: #a52f3e;
  --signal: #dc3931;
  --ui-font: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}
html { scroll-padding-top: 116px; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--rule); background: #fff; }
.header-main { position: relative; min-height: 92px; gap: 28px; }
.wordmark { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--ink); line-height: 1.15; }
.brand-name { padding-bottom: 5px; border-bottom: 3px solid var(--signal); font-size: 30px; font-weight: 650; }
.wordmark-description { display: block; margin-top: 5px; font-size: 10px; letter-spacing: .08em; }
.header-utility { position: static; gap: 26px; font-family: var(--ui-font); font-size: 14px; }
.header-utility > a,.business-menu > summary { color: var(--ink); }
.header-utility > a[aria-current],.header-utility > a:hover { color: var(--accent); }
.header-utility .nav-contact { display: inline-flex; align-items: center; gap: 20px; padding: 13px 20px; border: 0; background: var(--accent); color: #fff; }
.header-utility .nav-contact:hover { color: #fff; background: var(--ink); }
.business-menu > summary { font-size: inherit; }
.business-menu > summary[aria-current] { color: var(--accent); }
.business-menu-panel { top: calc(100% - 1px); width: 660px; border: 1px solid var(--rule); border-top: 3px solid var(--signal); background: #fff; box-shadow: 0 18px 40px #00000015; }
.business-menu-panel a:hover { color: var(--accent); }
.header-search-menu { flex-shrink: 0; }
.header-search-menu > summary { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-left: 1px solid var(--rule); cursor: pointer; list-style: none; }
.header-search-menu > summary::-webkit-details-marker { display: none; }
.header-search-menu > summary .ui-icon { width: 23px; height: 23px; }
.header-search-menu > .header-search { position: absolute; z-index: 3; top: 100%; right: 0; width: min(420px, calc(100vw - 2 * var(--margin))); padding: 22px; border: 1px solid var(--rule); border-top: 3px solid var(--signal); background: #fff; box-shadow: 0 18px 40px #00000015; }
.header-search-menu:not([open]) > .header-search { display: none; }
.header-search-menu .header-search input { min-height: 46px; padding-right: 48px; font-family: var(--ui-font); font-size: 14px; background: #fff; }
.header-search-menu .header-search button { top: 22px; right: 22px; bottom: 22px; width: 44px; }

/* One quiet hero uses an existing, credited photograph rather than new illustrations. */
.portal-intro.client-hero { position: relative; display: flex; align-items: center; min-height: clamp(500px, 43vw, 620px); margin-inline: calc(-1 * var(--margin)); padding: 68px var(--margin) 84px; overflow: hidden; isolation: isolate; color: #fff; background: #221f20; }
.client-hero-media { position: absolute; z-index: -2; inset: 0; margin: 0; }
.client-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; filter: grayscale(1); }
.client-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #111111df 0%, #1111119c 55%, #11111138 100%); }
.client-hero-copy { max-width: 960px; }
.client-eyebrow { margin-bottom: 22px; color: #efedef; font-family: var(--ui-font); font-size: 15px; letter-spacing: .12em; }
.client-hero h1 { max-width: 960px; font-size: clamp(38px, 4.1vw, 60px); font-weight: 550; line-height: 1.5; letter-spacing: -.03em; }
.client-hero h1::after { content: ''; display: block; width: 70px; height: 5px; margin-top: 26px; background: var(--signal); }
.client-description { max-width: 40em; margin-top: 27px; color: #e7e5e6; font-size: 16px; line-height: 1.9; }
.client-hero-credit { position: absolute; right: var(--margin); bottom: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 5px 8px; background: #161616c9; font-family: var(--ui-font); font-size: 11px; color: #eceaeb; }
.client-hero-credit .ui-icon { width: 13px; height: 13px; }

/* White, cool gray and charcoal give each part a distinct place in the page. */
.portal-shell > .portal-section { padding-block: 64px 72px; }
.home-guides { --section-paper: #fff; }
.home-tools { --section-paper: #f2f3f4; }
.home-business { --section-paper: #252426; --ink: #fff; --secondary: #c9c7cb; --accent: #fff; --rule: #545156; color: #fff; }
.topic-reading { --section-paper: #fafafa; }
.portal-section-heading { align-items: flex-start; margin-bottom: 36px; }
.portal-section-heading h2 { font-size: 32px; font-weight: 550; line-height: 1.5; }
.portal-section-heading h2::after { content: ''; display: block; width: 54px; height: 4px; margin-top: 17px; background: var(--signal); }
.portal-section-heading > a { min-height: 42px; padding: 8px 0; border-bottom: 2px solid var(--signal); font-family: var(--ui-font); font-size: 13px; color: var(--ink); }
.portal-section-heading > a:hover { text-decoration: none; }
.home-guides .portal-section-heading { margin-bottom: 24px; }
.home-section-intro { margin-bottom: 35px; }
.guide-journey { gap: 32px; }
.journey-stage { border-color: var(--rule); padding-top: 23px; }
.journey-step { font-family: var(--ui-font); font-size: 13px; font-weight: 600; }
.journey-stage h3 { font-size: 27px; margin-top: 22px; }
.journey-stage > .text-link,.tool-card > a { padding-bottom: 9px; border-bottom: 2px solid var(--signal); text-decoration: none; font-family: var(--ui-font); color: var(--ink); }
.journey-stage > .text-link:hover .ui-icon,.tool-card > a:hover .ui-icon { transform: translateX(3px); }
.journey-stage .ui-icon,.tool-card .ui-icon { transition: transform 180ms ease; }
.home-tools .tool-cards { gap: 28px; }
.home-tools .tool-card { min-width: 0; padding: 30px; border: 0; background: #fff; }
.home-tools .tool-card h3 { font-size: 27px; }
.home-tools .tool-card > a { padding-top: 26px; }
.home-tools .tool-card .eyebrow { font-family: var(--ui-font); font-size: 12px; letter-spacing: .02em; }
.business-groups { gap: 38px 44px; }
.home-business .business-group { border-color: #545156; }
.home-business .business-group > p { color: var(--secondary); }
.home-business .business-group nav a { color: #f2f0f3; font-family: var(--ui-font); font-size: 13px; }
.home-business a:hover { color: #ff9c98; }
.topic-reading-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 64px; }
.topic-reading-row { display: block; min-width: 0; padding-block: 25px 12px; }
.topic-reading-row h3 { margin-bottom: 16px; font-family: var(--ui-font); font-size: 19px; font-weight: 550; color: var(--accent); }
.topic-article-list { margin: 0; padding: 0; list-style: none; }
.topic-article-list li + li { border-top: 1px solid var(--rule); }
.topic-latest-article { min-height: 52px; padding-block: 14px; font-size: 17px; line-height: 1.8; }
.topic-latest-article:hover { color: var(--accent); }

/* The same visual language carries through the existing reading and service UI. */
.page-breadcrumb,.reading-meta,.article-meta,.service-rules-checked,.tool-private { font-family: var(--ui-font); }
.article-aside-inner,.service-rules-layout > aside { top: 116px; }
.page-intro,.archive-intro,.tool-page-intro { padding-top: 52px; padding-bottom: 40px; }
:is(.page-intro,.archive-intro,.tool-page-intro) h1::after { content: ''; display: block; width: 58px; height: 4px; margin-top: 22px; background: var(--signal); }
.service-photo img { filter: grayscale(1); }
.tool-card { border-color: var(--rule); }
.tool-result { border-top: 4px solid var(--signal); background: var(--surface); }
.tool-result dl > div,.cashflow-example,.cashflow-example .cashflow-final { border-color: var(--rule); }
.cashflow-chart polyline { stroke: var(--ink); }
.cashflow-chart .cash-zero { stroke: var(--rule); }
.cashflow-chart .cash-target { stroke: var(--secondary); }
.path-options > a[aria-selected=true] { background: var(--accent); color: #fff; }
.button { font-family: var(--ui-font); font-size: 14px; }
.article-cover img { filter: none; }
.portal-footer-topics { margin: 0; padding: 34px var(--margin); border: 0; background: var(--surface); }
.portal-footer-topics h2 { font-family: var(--ui-font); font-size: 14px; }
.footer-topic-links { gap: 12px 28px; font-family: var(--ui-font); font-size: 13px; }
.site-footer { --ink: #fff; --secondary: #c9c7cb; --accent: #fff; --rule: #555257; padding-top: 46px; background: #221f20; color: #fff; }
.footer-top p,.footer-bottom { color: var(--secondary); }
.footer-name { display: inline-block; padding-bottom: 5px; border-bottom: 3px solid var(--signal); }
.footer-bottom { padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--ui-font); font-size: 12px; }

@media (max-width: 1100px) {
  .header-main { gap: 18px; }
  .header-main .wordmark-description { display: block; }
  .header-utility { gap: 20px; font-size: 13px; }
  .header-utility .nav-contact { padding-inline: 15px; gap: 10px; }
  .home-tools .tool-card { padding: 24px; }
}
@media (max-width: 980px) {
  .header-utility { display: none; }
  .header-search-menu { margin-left: auto; }
  .navigation { display: block; margin-left: 0; }
  .navigation summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; font-family: var(--ui-font); font-size: 14px; }
  .navigation summary::-webkit-details-marker { display: none; }
  .navigation summary .ui-icon { transition: transform 180ms ease; }
  .navigation[open] summary .ui-icon { transform: rotate(45deg); }
  .navigation nav { display: none; }
  .navigation[open] nav { position: absolute; z-index: 5; inset: 100% calc(-1 * var(--margin)) auto; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; max-height: calc(100dvh - 92px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 26px var(--margin); border-block: 1px solid var(--rule); background: #fff; box-shadow: 0 18px 40px #00000015; font-family: var(--ui-font); }
  .mobile-nav-group { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
  .mobile-nav-group > p { margin-bottom: 10px; padding-left: 10px; font-size: 12px; color: var(--secondary); }
  .navigation .mobile-nav-group a { padding: 10px; font-size: 14px; }
  .mobile-nav-actions { grid-column: 1 / -1; display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 1px solid var(--rule); }
  .navigation .mobile-nav-actions .nav-contact { margin-left: auto; padding: 10px 16px; color: #fff; background: var(--accent); }
  .header-search-menu > .header-search { z-index: 6; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 98px; }
  .header-main { min-height: 78px; gap: 16px; }
  .brand-name { font-size: 27px; }
  .wordmark-description { font-size: 9px; }
  .header-search-menu > summary { border-left: 0; min-width: 36px; }
  .navigation[open] nav { max-height: calc(100dvh - 78px); }
  .portal-intro.client-hero { min-height: 480px; padding-block: 48px 64px; }
  .client-hero h1 { font-size: 32px; line-height: 1.65; }
  .client-hero::before { background: linear-gradient(90deg, #111111d9, #11111195); }
  .client-eyebrow { font-size: 12px; margin-bottom: 18px; }
  .client-hero h1::after { width: 54px; height: 4px; margin-top: 20px; }
  .client-description { max-width: 24em; font-size: 14px; margin-top: 22px; }
  .client-hero-credit { font-size: 10px; bottom: 16px; }
  .portal-shell > .portal-section { padding-block: 40px 46px; }
  .portal-section-heading { gap: 16px; margin-bottom: 28px; }
  .portal-section-heading h2 { font-size: 25px; }
  .portal-section-heading h2::after { width: 42px; height: 3px; margin-top: 13px; }
  .portal-section-heading > a { font-size: 11px; min-height: 36px; }
  .home-section-intro { margin-bottom: 27px; }
  .guide-journey { gap: 0; }
  .journey-stage { padding: 24px 0 28px 42px; }
  .journey-step { top: 28px; font-size: 11px; }
  .journey-stage h3 { margin-top: 0; font-size: 24px; }
  .home-tools .tool-cards { gap: 20px; }
  .home-tools .tool-card { padding: 26px; }
  .home-tools .tool-card h3 { font-size: 25px; }
  .business-groups { gap: 32px; }
  .business-group h3 { font-size: 23px; }
  .topic-reading-groups { grid-template-columns: 1fr; gap: 12px; }
  .topic-reading-row { padding-block: 22px 8px; }
  .topic-reading-row h3 { margin-bottom: 12px; font-size: 18px; }
  .topic-latest-article { font-size: 16px; }
  .footer-top { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-stage .ui-icon,.tool-card .ui-icon,.navigation summary .ui-icon { transition: none; }
}
@media print {
  .site-header,.client-hero-credit { display: none; }
  .client-hero-media,.client-hero::before { display: none; }
  .portal-intro.client-hero { min-height: 0; color: #000; background: #fff; }
  .client-eyebrow,.client-description { color: #000; }
}
