:root {
  --blue-950: #0b1f3a;
  --blue-900: #102a4c;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --green-600: #059669;
  --green-500: #10b981;
  --green-50: #ecfdf5;
  --orange-500: #f59e0b;
  --orange-50: #fffbeb;
  --ink: #162033;
  --muted: #667085;
  --soft: #98a2b3;
  --line: #e4e9f0;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 76, 0.05);
  --shadow: 0 12px 32px rgba(16, 42, 76, 0.08);
  --font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.3); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(228, 233, 240, 0.9); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px); }
.header-inner { width: min(1180px, calc(100% - 40px)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 36px; height: 36px; padding: 8px; display: flex; align-items: end; gap: 3px; border-radius: 10px; background: linear-gradient(145deg, var(--blue-700), var(--blue-950)); box-shadow: 0 5px 12px rgba(29, 78, 216, 0.2); }
.brand-mark i { flex: 1; border-radius: 2px 2px 1px 1px; background: #fff; opacity: 0.95; }
.brand-mark i:nth-child(1) { height: 38%; }
.brand-mark i:nth-child(2) { height: 67%; background: #8be0c4; }
.brand-mark i:nth-child(3) { height: 100%; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name strong { font-size: 16px; letter-spacing: -0.01em; color: var(--blue-950); }
.brand-name small { margin-top: 3px; font-size: 10px; color: var(--soft); letter-spacing: 0.08em; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; color: #475467; }
.site-nav > a { transition: color 0.18s ease; }
.site-nav > a:hover { color: var(--blue-600); }
.site-nav .nav-cta { padding: 9px 15px; border-radius: 9px; color: #fff; background: var(--blue-600); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18); }
.site-nav .nav-cta:hover { color: #fff; background: var(--blue-700); }
.nav-toggle { display: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; }

/* Shared */
.button { min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 700; transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--blue-600); box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2); }
.button.primary:hover { background: var(--blue-700); }
.button.secondary { color: var(--blue-900); border-color: #d4dce8; background: #fff; }
.button.secondary:hover { border-color: #b5c3d6; box-shadow: var(--shadow-sm); }
.section-kicker, .tool-label { display: inline-flex; align-items: center; margin-bottom: 8px; color: var(--blue-600); font-size: 13px; font-weight: 700; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; color: var(--blue-950); font-size: 32px; line-height: 1.3; letter-spacing: -0.035em; text-wrap: balance; }
.section-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 14px; }
.text-link { color: var(--blue-600); font-size: 14px; font-weight: 700; }
.text-link span { margin-left: 4px; transition: margin-left 0.18s ease; }
.text-link:hover span { margin-left: 8px; }
.empty-note { padding: 28px; border: 1px dashed #cbd5e1; border-radius: var(--radius); background: #fff; color: var(--muted); text-align: center; }

/* Homepage hero */
.hero { width: min(1180px, calc(100% - 40px)); margin: 32px auto 0; padding: 62px 62px 58px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr); align-items: center; gap: 76px; overflow: hidden; position: relative; border: 1px solid #dbe5f2; border-radius: 24px; background: linear-gradient(125deg, #f7fbff 0%, #eef5ff 52%, #f6fbfa 100%); }
.hero::after { content: ""; position: absolute; right: -140px; top: -180px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, 0.11), rgba(16, 185, 129, 0) 70%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #cde2ff; border-radius: 999px; background: rgba(255, 255, 255, 0.75); color: var(--blue-700); font-size: 12px; font-weight: 700; }
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12); }
.hero h1 { margin: 22px 0 0; color: var(--blue-950); font-size: clamp(44px, 5vw, 64px); line-height: 1.12; letter-spacing: -0.055em; text-wrap: balance; }
.hero h1 em { color: var(--blue-600); font-style: normal; }
.hero-lead { max-width: 580px; margin: 22px 0 0; color: #526176; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 18px; margin: 25px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.trust-list li { display: flex; align-items: center; gap: 6px; }
.trust-list li::before { content: "✓"; width: 17px; height: 17px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--green-50); color: var(--green-600); font-size: 10px; font-weight: 900; }
.hero-instrument { position: relative; z-index: 1; overflow: hidden; border: 1px solid #e1e7ef; border-radius: 18px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 24px 55px rgba(16, 42, 76, 0.13); }
.instrument-head { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eef1f5; color: #475467; font-size: 12px; }
.instrument-head span { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.instrument-head span i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px var(--green-50); }
.instrument-head b { padding: 4px 8px; border-radius: 6px; color: var(--green-600); background: var(--green-50); font-size: 10px; }
.instrument-total { padding: 24px 22px 18px; }
.instrument-total small { color: var(--muted); font-size: 12px; }
.instrument-total strong { display: block; margin-top: 2px; color: var(--blue-950); font-size: 35px; line-height: 1.35; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.instrument-total strong span { margin-right: 3px; color: var(--blue-600); font-size: 20px; }
.instrument-total p { margin: 2px 0 0; color: var(--soft); font-size: 11px; }
.instrument-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 22px; overflow: hidden; border: 1px solid #edf0f4; border-radius: 10px; background: #edf0f4; }
.instrument-summary div { padding: 12px 14px; background: #fafbfc; }
.instrument-summary small { display: block; color: var(--soft); font-size: 10px; }
.instrument-summary strong { color: #344054; font-size: 13px; font-variant-numeric: tabular-nums; }
.instrument-bars { padding: 18px 22px; }
.instrument-bars > div { margin: 10px 0; display: grid; grid-template-columns: 58px 1fr 32px; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.instrument-bars i { height: 6px; overflow: hidden; border-radius: 99px; background: #eef2f6; }
.instrument-bars i b { height: 100%; display: block; border-radius: 99px; background: var(--blue-600); }
.instrument-bars > div:nth-child(2) i b { background: var(--green-500); }
.instrument-bars em { color: #475467; font-style: normal; text-align: right; }
.hero-instrument > a { padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eef1f5; color: var(--blue-600); font-size: 12px; font-weight: 700; }

/* Tool directory */
.tool-index, .knowledge-preview { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0; }
.tool-group { scroll-margin-top: 90px; margin-top: 30px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.group-intro { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.group-icon { width: 42px; height: 42px; flex: 0 0 auto; position: relative; border-radius: 11px; background: var(--blue-50); }
.group-icon::before, .group-icon::after { content: ""; position: absolute; border: 2px solid var(--blue-600); }
.group-icon::before { left: 11px; top: 12px; width: 17px; height: 13px; border-radius: 4px; }
.group-icon::after { left: 15px; top: 9px; width: 9px; height: 4px; border-bottom: 0; border-radius: 3px 3px 0 0; }
.group-icon-fangdai { background: #eef4ff; }
.group-icon-fangdai::before { transform: rotate(45deg); border-radius: 2px; }
.group-icon-chedai { background: var(--green-50); }
.group-icon-chedai::before, .group-icon-chedai::after { border-color: var(--green-600); }
.group-intro h3 { margin: 0; color: var(--blue-950); font-size: 20px; }
.group-intro p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tool-card { min-height: 86px; padding: 17px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 22px; align-items: center; gap: 12px; border: 1px solid #e7ebf1; border-radius: 12px; background: #fff; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: #b8cdf8; box-shadow: 0 8px 22px rgba(37, 99, 235, 0.09); }
.tool-card-icon { width: 38px; height: 38px; position: relative; border-radius: 10px; background: var(--blue-50); }
.tool-card-icon::before { content: ""; position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; border: 2px solid var(--blue-600); border-radius: 50%; }
.tool-card-icon::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 7px; height: 2px; transform: rotate(45deg); background: var(--blue-600); }
.tool-card h4 { margin: 0; overflow: hidden; color: #26364d; font-size: 14px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.tool-card p { margin: 4px 0 0; overflow: hidden; color: var(--soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tool-arrow { color: #a0aec0; font-size: 17px; transition: transform 0.18s ease, color 0.18s ease; }
.tool-card:hover .tool-arrow { transform: translateX(3px); color: var(--blue-600); }

/* Method & articles */
.method-strip { padding: 0 20px; }
.method-inner { width: min(1180px, 100%); margin: 0 auto; padding: 44px 48px; display: grid; grid-template-columns: 0.85fr 1.45fr; align-items: center; gap: 56px; border-radius: 20px; color: #fff; background: linear-gradient(115deg, var(--blue-950), #143f6b); box-shadow: var(--shadow); }
.method-inner .section-kicker { color: #93c5fd; }
.method-inner h2 { margin: 0; font-size: 28px; line-height: 1.4; letter-spacing: -0.025em; }
.method-inner > div > p { margin: 9px 0 0; color: #b9c7d8; font-size: 13px; }
.method-inner ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; list-style: none; }
.method-inner li { display: flex; gap: 10px; }
.method-inner li b { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; color: #b7e8d7; background: rgba(16, 185, 129, 0.15); font-size: 11px; }
.method-inner li strong { display: block; margin-bottom: 5px; font-size: 13px; }
.method-inner li span { color: #aabacf; font-size: 11px; line-height: 1.6; }
.article-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.article-grid > a { min-height: 190px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.article-grid > a:hover { transform: translateY(-3px); border-color: #c5d5f6; box-shadow: var(--shadow); }
.article-grid small { color: var(--blue-600); font-size: 11px; font-weight: 700; }
.article-grid h3 { margin: 12px 0 8px; color: #26364d; font-size: 17px; line-height: 1.55; }
.article-grid p { margin: 0; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* Footer */
.site-footer { margin-top: 40px; padding: 54px 20px 24px; color: #c9d4e3; background: var(--blue-950); }
.footer-grid { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 56px; }
.footer-grid section { display: flex; flex-direction: column; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-grid section:first-child p { max-width: 370px; margin: 13px 0 0; color: #93a4ba; font-size: 13px; }
.footer-grid h2 { margin: 0 0 8px; color: #fff; font-size: 13px; }
.footer-grid a { color: #aab8ca; font-size: 12px; }
.footer-grid a:hover { color: #fff; }
.filing { color: #718399; font-size: 11px; }
.footer-bottom { width: min(1180px, 100%); margin: 40px auto 0; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid #263b57; color: #718399; font-size: 11px; }

/* Tool pages */
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 70px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 25px; color: var(--soft); font-size: 12px; }
.breadcrumbs a:hover { color: var(--blue-600); }
.breadcrumbs b { color: #475467; font-weight: 500; }
.tool-hero { margin-bottom: 24px; padding: 26px 30px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: 40px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.tool-label { margin-bottom: 6px; }
.tool-hero h1 { margin: 0; color: var(--blue-950); font-size: 36px; line-height: 1.3; letter-spacing: -0.035em; text-wrap: balance; }
.tool-hero > div > p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.tool-hero aside { padding: 16px 18px; display: flex; align-items: flex-start; gap: 13px; border-radius: 12px; background: var(--blue-50); }
.formula-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--blue-600); background: #fff; font-size: 17px; font-weight: 800; box-shadow: var(--shadow-sm); }
.tool-hero aside small { display: block; color: var(--blue-600); font-size: 10px; font-weight: 700; }
.tool-hero aside strong { display: block; margin-top: 3px; color: #26364d; font-size: 13px; }
.tool-hero aside p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.calculator-workbench { min-height: 500px; overflow: hidden; border: 1px solid #dce3ec; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.calculator-loading { min-height: 500px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; }
.calculator-loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-600); animation: pulse 0.9s infinite alternate; }
@keyframes pulse { to { opacity: 0.3; transform: scale(0.65); } }
.calculator-grid { display: grid; grid-template-columns: 370px minmax(0, 1fr); min-height: 560px; }
.calculator-inputs { padding: 28px; border-right: 1px solid var(--line); background: #f8fafc; }
.calculator-inputs h2, .calculator-results h2 { margin: 0 0 22px; color: var(--blue-950); font-size: 20px; line-height: 1.4; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 12px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #344054; font-size: 12px; font-weight: 650; }
.input-wrap { min-height: 44px; display: flex; overflow: hidden; border: 1px solid #cfd8e5; border-radius: 9px; background: #fff; transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.input-wrap:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12); }
.input-wrap input, .input-wrap select { width: 100%; min-width: 0; padding: 10px 11px; border: 0; outline: 0; color: #1d2939; background: transparent; font-size: 14px; font-variant-numeric: tabular-nums; }
.input-wrap span { padding: 0 10px; display: flex; align-items: center; border-left: 1px solid #e5e9ef; color: var(--soft); background: #fafbfc; font-size: 11px; }
.field-help { color: var(--soft); font-size: 10px; }
.advanced-toggle { width: 100%; margin: 20px 0 3px; padding: 11px 0; border: 0; border-top: 1px solid var(--line); color: var(--blue-600); background: transparent; text-align: left; font-size: 12px; font-weight: 700; cursor: pointer; }
.advanced-fields[hidden] { display: none; }
.calculate-button { width: 100%; margin-top: 22px; padding: 13px; border: 0; border-radius: 10px; color: #fff; background: var(--blue-600); font-size: 14px; font-weight: 750; cursor: pointer; box-shadow: 0 7px 15px rgba(37, 99, 235, 0.18); transition: background-color 0.18s ease, transform 0.18s ease; }
.calculate-button:hover { transform: translateY(-1px); background: var(--blue-700); }
.form-error { min-height: 18px; margin-top: 8px; color: #c4320a; font-size: 11px; }
.calculator-results { min-width: 0; padding: 28px 30px 30px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.result-actions { display: flex; gap: 8px; }
.result-actions button { padding: 7px 10px; border: 1px solid #d8e0ea; border-radius: 7px; color: #475467; background: #fff; font-size: 11px; cursor: pointer; transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease; }
.result-actions button:hover { border-color: #b7c8e8; color: var(--blue-600); background: var(--blue-50); }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.metric { min-width: 0; padding: 17px 18px; border: 1px solid #e5eaf0; border-radius: 11px; background: #fafbfc; }
.metric.accent { border-color: #bfdbfe; background: var(--blue-50); }
.metric.warning { border-color: #fde2a8; background: var(--orange-50); }
.metric small { display: block; color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin-top: 5px; overflow-wrap: anywhere; color: var(--blue-950); font-size: clamp(22px, 2vw, 29px); line-height: 1.25; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.metric.accent strong { color: var(--blue-700); }
.result-chart { height: 170px; margin: 20px 0; padding: 17px; overflow: hidden; border: 1px solid #e5eaf0; border-radius: 11px; background: #fff; }
.result-chart svg { width: 100%; height: 100%; overflow: visible; }
.result-note { margin: 0; padding: 12px 14px; border-left: 3px solid var(--blue-500); border-radius: 0 8px 8px 0; color: #526176; background: var(--blue-50); font-size: 11px; }
.schedule-wrap { max-height: 330px; margin-top: 19px; overflow: auto; border: 1px solid #e3e8ef; border-radius: 10px; }
.schedule-table { width: 100%; border-collapse: collapse; color: #475467; font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.schedule-table th { position: sticky; top: 0; padding: 10px; color: #fff; background: var(--blue-900); text-align: right; }
.schedule-table th:first-child, .schedule-table td:first-child { text-align: left; }
.schedule-table td { padding: 9px 10px; border-bottom: 1px solid #edf0f4; text-align: right; }
.schedule-table tbody tr:nth-child(even) { background: #fafbfc; }
.tool-explainer, .related-tools { padding: 60px 0 0; }
.tool-explainer > div:first-child { margin-bottom: 23px; }
.tool-explainer h2, .related-tools h2 { margin: 0; color: var(--blue-950); font-size: 27px; letter-spacing: -0.03em; }
.explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.explain-grid article { padding: 21px; display: flex; gap: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.explain-grid b { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--blue-600); background: var(--blue-50); font-size: 11px; }
.explain-grid h3 { margin: 1px 0 5px; color: #26364d; font-size: 14px; }
.explain-grid p { margin: 0; color: var(--muted); font-size: 11px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-grid a { padding: 17px; display: grid; grid-template-columns: 38px 1fr 20px; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.related-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-50); }
.related-grid small { display: block; color: var(--soft); font-size: 10px; }
.related-grid strong { display: block; margin-top: 2px; color: #26364d; font-size: 13px; }
.related-grid em { color: var(--blue-600); font-style: normal; }

/* Knowledge and content */
.narrow { max-width: 960px; }
.editorial-header { padding: 34px 38px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(115deg, #fff, #f1f6ff); }
.editorial-header h1, .article-page h1 { margin: 0; color: var(--blue-950); font-size: 38px; line-height: 1.35; letter-spacing: -0.035em; text-wrap: balance; }
.editorial-header > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 4px; }
.category-nav a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: #475467; background: #fff; font-size: 12px; }
.category-nav a[aria-current="page"] { border-color: var(--blue-600); color: #fff; background: var(--blue-600); }
.article-list { display: grid; gap: 11px; padding-top: 20px; }
.article-list > a { padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.article-list > a:hover { border-color: #c5d5f6; box-shadow: var(--shadow-sm); }
.article-list small { grid-column: 1; color: var(--blue-600); font-size: 10px; font-weight: 700; }
.article-list h2 { grid-column: 1; margin: 5px 0 3px; color: #26364d; font-size: 18px; }
.article-list p { grid-column: 1; margin: 0; color: var(--muted); font-size: 12px; }
.article-list span { grid-column: 2; grid-row: 1 / 4; align-self: center; color: var(--blue-600); font-size: 12px; font-weight: 700; }
.article-page { width: min(800px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 70px; }
.article-page header { padding: 30px 0 28px; border-bottom: 1px solid var(--line); }
.article-page header .section-kicker, .article-page header .eyebrow { color: var(--blue-600); font-size: 12px; font-weight: 700; }
.article-meta { display: flex; gap: 18px; margin-top: 15px; color: var(--soft); font-size: 11px; }
.article-deck { margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.article-body { padding-top: 28px; color: #344054; font-size: 16px; line-height: 1.95; }
.article-body h2 { scroll-margin-top: 90px; margin: 42px 0 12px; color: var(--blue-950); font-size: 24px; }
.article-body h3 { margin: 30px 0 10px; color: #26364d; font-size: 19px; }
.article-body a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.article-body blockquote { margin: 24px 0; padding: 14px 18px; border-left: 3px solid var(--blue-500); color: #526176; background: var(--blue-50); }
.article-sources { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-sources h2 { color: var(--blue-950); font-size: 20px; }
.article-sources li { margin: 10px 0; }
.article-sources a { color: var(--blue-600); font-weight: 650; }
.article-sources span { display: block; color: var(--soft); font-size: 11px; }
.article-disclaimer { margin-top: 38px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #f8fafc; font-size: 11px; }
.static-page header { padding-top: 20px; }
.error-page { width: min(760px, calc(100% - 40px)); min-height: 62vh; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.error-page h1 { margin: 0; color: var(--blue-950); font-size: 46px; }
.error-page p { color: var(--muted); }

@media (max-width: 980px) {
  .site-nav { display: none; position: absolute; left: 20px; right: 20px; top: 62px; padding: 16px; flex-direction: column; align-items: stretch; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 9px 10px; }
  .nav-toggle { display: block; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding: 48px; }
  .hero-instrument { max-width: 620px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-inner { grid-template-columns: 1fr; gap: 28px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid section:last-child { grid-column: 2 / 4; }
  .tool-hero { grid-template-columns: 1fr; gap: 18px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .calculator-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .header-inner { width: calc(100% - 28px); min-height: 62px; }
  .brand-name strong { font-size: 14px; }
  .brand-name small { display: none; }
  .brand-mark { width: 33px; height: 33px; }
  .hero { width: calc(100% - 28px); margin-top: 14px; padding: 32px 20px 22px; gap: 30px; border-radius: 17px; }
  .hero h1 { margin-top: 17px; font-size: 40px; }
  .hero-lead { margin-top: 16px; font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .trust-list { gap: 10px 14px; }
  .hero-instrument { border-radius: 14px; }
  .instrument-total strong { font-size: 30px; }
  .tool-index, .knowledge-preview { width: calc(100% - 28px); padding: 54px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 22px; }
  .section-heading h2 { font-size: 27px; }
  .tool-group { padding: 20px 14px; border-radius: 14px; }
  .group-intro { align-items: flex-start; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 78px; }
  .method-strip { padding: 0 14px; }
  .method-inner { padding: 30px 20px; border-radius: 16px; }
  .method-inner h2 { font-size: 24px; }
  .method-inner ol { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .article-grid > a { min-height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-grid section:first-child, .footer-grid section:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .page-shell { width: calc(100% - 28px); padding-top: 20px; }
  .breadcrumbs { margin-bottom: 16px; }
  .tool-hero { padding: 21px 18px; }
  .tool-hero h1 { font-size: 29px; }
  .tool-hero aside { padding: 13px; }
  .calculator-workbench { border-radius: 14px; }
  .calculator-inputs, .calculator-results { padding: 22px 17px; }
  .field-grid { grid-template-columns: 1fr; }
  .metric-grid { gap: 8px; }
  .metric { padding: 14px 12px; }
  .metric strong { font-size: 20px; }
  .result-head { align-items: flex-start; flex-direction: column; gap: 0; }
  .result-actions { margin-bottom: 16px; }
  .result-chart { height: 145px; padding: 10px; }
  .tool-explainer, .related-tools { padding-top: 48px; }
  .tool-explainer h2, .related-tools h2 { font-size: 24px; }
  .explain-grid, .related-grid { grid-template-columns: 1fr; }
  .editorial-header { padding: 25px 20px; }
  .editorial-header h1, .article-page h1 { font-size: 30px; }
  .article-list > a { grid-template-columns: 1fr; }
  .article-list span { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .article-page { width: calc(100% - 32px); padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
