:root {
  --navy: #071c2c;
  --navy-2: #0b2b3f;
  --navy-3: #123f54;
  --emerald: #087a61;
  --emerald-dark: #05634f;
  --emerald-soft: #e6f3ee;
  --mint: #bfe5d7;
  --gold: #c79a45;
  --ivory: #fbf8f0;
  --paper: #fffdf8;
  --sand: #eee8dc;
  --line: #d9d3c8;
  --ink: #13252f;
  --muted: #5c6a70;
  --danger: #a33434;
  --success: #137052;
  --max: 1240px;
  --narrow: 780px;
  --nav-height: 76px;
  --section-space: clamp(32px, 4vw, 48px);
  --section-space-compact: clamp(24px, 3vw, 36px);
  --radius: 0;
  --font: Arial, Helvetica, sans-serif;
  --sans: var(--font);
  --serif: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
*, *::before, *::after { border-radius: 0 !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 24px); }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--emerald-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-3); }
button, input { font: inherit; }
button { cursor: pointer; }
em, i, cite, dfn, address, blockquote { font-style: normal; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.025em; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: 48px; }
h2 { font-size: 28px; }
h3 { font-size: 1.22rem; }
p { color: var(--muted); }
small { color: var(--muted); }
::selection { color: white; background: var(--emerald); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: fixed; left: -999px; top: 12px; z-index: 900; background: var(--paper); color: var(--navy); padding: .7rem 1rem; }
.skip-link:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.site-header { position: sticky; top: 0; z-index: 500; height: var(--nav-height); background: rgba(7, 28, 44, .98); color: white; }
.nav-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav-shell { width: min(var(--max), calc(100% - 40px)); height: 100%; margin: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: white; font-weight: 780; font-size: 1.03rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: white; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span span { color: #78d7bb; }
.desktop-nav { height: 100%; display: flex; align-items: center; gap: 5px; flex: 1; }
.desktop-nav > a, .nav-trigger { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 0; background: transparent; color: #d9e5e9; font-weight: 670; font-size: .84rem; text-decoration: none; }
.desktop-nav > a:hover { color: white; background: #12354a; }
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: #d9e5e9; background: transparent; }
.nav-chevron { position: relative; width: 13px; height: 9px; display: inline-block; color: #78d7bb; }
.nav-chevron i { position: absolute; top: 4px; width: 7px; height: 1.5px; background: currentColor; }
.nav-chevron i:first-child { left: 0; transform: rotate(40deg); transform-origin: right center; }
.nav-chevron i:last-child { right: 0; transform: rotate(-40deg); transform-origin: left center; }
.nav-group { position: relative; height: 100%; display: flex; align-items: center; }
.nav-menu { position: absolute; top: calc(100% - 6px); left: 0; width: 640px; display: none; grid-template-columns: 210px minmax(0, 1fr); gap: 8px; padding: 10px; border: 1px solid #294b5e; background: #092538; color: white; animation: nav-menu-in .16s ease-out; }
.nav-menu-convert { width: 610px; }
.nav-group.force-open .nav-menu { display: grid; }
.nav-menu-context { min-width: 0; padding: 17px 15px 15px; }
.nav-context-icon { width: 32px; height: 32px; display: block; margin-bottom: 15px; color: #78d7bb; }
.nav-context-icon svg, .nav-link-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-menu-context > strong { display: block; color: white; font-family: var(--serif); font-size: 1.2rem; line-height: 1.15; }
.nav-menu-context p { margin: 9px 0 15px; color: #9fb5bf; font-size: .72rem; line-height: 1.55; }
.nav-menu-start { display: inline-flex; align-items: center; gap: 8px; padding: 0; color: #bfe5d7; font-size: .72rem; font-weight: 780; text-decoration: none; }
.nav-menu-start:hover { color: white; }
.nav-menu-links { display: grid; align-content: start; gap: 2px; padding: 3px; }
.nav-menu-link { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 68px; padding: 10px 11px; color: white; text-decoration: none; }
.nav-menu-link:hover, .nav-menu-link.current { color: white; background: #10364b; }
.nav-link-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #78d7bb; }
.nav-link-icon svg { width: 25px; height: 25px; }
.nav-link-copy { min-width: 0; }
.nav-link-copy strong, .nav-link-copy small { display: block; }
.nav-link-copy strong { color: white; font-size: .8rem; line-height: 1.25; }
.nav-link-copy a { color: white; text-decoration: none; }
.nav-link-copy a:hover, .nav-link-copy a:focus-visible { color: white; text-decoration: underline; }
.nav-link-copy small { margin-top: 3px; color: #9fb5bf; font-size: .66rem; line-height: 1.4; }
@keyframes nav-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.nav-actions form { margin: 0; }
.nav-user-trigger { min-height: 40px; padding-inline: 12px; }
.nav-menu-user { right: 0; left: auto; width: 340px; grid-template-columns: 1fr; gap: 0; padding: 10px; background: #092538; }
.nav-user-heading { padding: 12px 13px 14px; }
.nav-user-heading strong, .nav-user-heading small { display: block; }
.nav-user-heading strong { color: white; font-family: var(--serif); font-size: 1.12rem; line-height: 1.15; }
.nav-user-heading small { margin-top: 5px; color: #9fb5bf; font-size: .66rem; line-height: 1.45; }
.nav-user-links { display: grid; gap: 2px; }
.nav-user-links > div { min-width: 0; padding: 9px 12px; }
.nav-user-links > div.current, .nav-user-links > div:hover { background: #10364b; }
.nav-user-links a, .nav-user-links small { display: block; }
.nav-user-links a { width: fit-content; color: white; font-size: .78rem; font-weight: 800; line-height: 1.3; text-decoration: none; }
.nav-user-links a:hover, .nav-user-links a:focus-visible { color: white; text-decoration: underline; }
.nav-user-links small { margin-top: 2px; color: #9fb5bf; font-size: .63rem; line-height: 1.35; }
.nav-user-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 7px; padding: 10px 12px; background: #10364b; }
.nav-user-footer a, .nav-user-footer button { border: 0; padding: 0; background: transparent; color: #c6d8de; font-size: .68rem; font-weight: 780; text-decoration: none; }
.nav-user-footer a:hover, .nav-user-footer button:hover { color: white; }
.text-button { border: 0; background: transparent; color: #dce8ec; text-decoration: none; padding: 8px; }
.text-button:hover { color: white; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 20px; border: 1px solid var(--emerald); background: var(--emerald); color: white; font-weight: 760; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.button:hover { background: var(--emerald-dark); border-color: var(--emerald-dark); color: white; }
.button-compact { min-height: 40px; padding: 8px 14px; font-size: .82rem; white-space: nowrap; background: #bfe5d7; border-color: #bfe5d7; color: #082a2a; }
.button-compact:hover { background: white; border-color: white; color: #082a2a; }
.button-secondary { color: var(--navy); background: transparent; border-color: #a8b1b3; }
.button-secondary:hover { color: var(--navy); background: #ece7dd; border-color: #8e999d; }
.button-light { color: var(--navy); background: var(--paper); border-color: var(--paper); }
.button-light:hover { color: var(--navy); background: #e8f4ef; border-color: #e8f4ef; }
.button-wide { width: 100%; }
.mobile-toggle { position: relative; width: 48px; height: 48px; min-width: 48px; min-height: 48px; display: none; align-items: center; justify-content: center; padding: 0; border: 0; background: #12384b; color: white; box-shadow: inset 0 0 0 1px #31596b; transition: background .15s, color .15s, box-shadow .15s; }
.mobile-toggle:hover, .mobile-toggle:focus-visible { background: #17465b; color: white; }
.mobile-toggle.open { background: var(--mint); color: var(--navy); box-shadow: none; }
.hamburger { position: relative; width: 22px; height: 16px; display: block; }
.hamburger i { position: absolute; left: 0; width: 22px; height: 2px; display: block; background: currentColor; transform-origin: center; transition: opacity .15s, transform .18s, top .18s; }
.hamburger i:nth-child(1) { top: 0; }
.hamburger i:nth-child(2) { top: 7px; }
.hamburger i:nth-child(3) { top: 14px; }
.mobile-toggle.open .hamburger i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.mobile-toggle.open .hamburger i:nth-child(2) { opacity: 0; transform: scaleX(.35); }
.mobile-toggle.open .hamburger i:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.mobile-panel { display: none; position: fixed; inset: var(--nav-height) 0 0; z-index: 490; overflow: auto; overscroll-behavior: contain; background: radial-gradient(circle at 90% 0, rgba(120, 215, 187, .11), transparent 34%), var(--navy); color: white; }
.mobile-panel.open { display: block; animation: mobile-panel-in .18s ease-out; }
.mobile-panel-inner { width: min(720px, calc(100% - 36px)); margin: auto; padding: 26px 0 44px; }
.mobile-menu-header { display: flex; align-items: center; gap: 14px; }
.mobile-menu-mark { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border: 1px solid #3c6273; background: #0b2b3f; }
.mobile-menu-mark img { width: 48px; height: 48px; object-fit: contain; }
.mobile-menu-header strong { display: block; font-family: var(--serif); font-size: 1.4rem; line-height: 1.1; }
.mobile-menu-header p { margin: 5px 0 0; color: #adc0c9; font-size: .76rem; line-height: 1.5; }
.mobile-trust { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 12px; }
.mobile-trust span { padding: 5px 9px; border: 1px solid #31566a; color: #c0d7dc; background: #0b293e; font-size: .64rem; font-weight: 750; }
.mobile-analyze-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--mint); background: var(--mint); color: #082a2a; text-decoration: none; }
.mobile-analyze-action:hover { color: #082a2a; background: #d5eee5; }
.mobile-analyze-action span { min-width: 0; }
.mobile-analyze-action strong, .mobile-analyze-action small { display: block; }
.mobile-analyze-action strong { font-size: .94rem; }
.mobile-analyze-action a { color: #082a2a; text-decoration: none; }
.mobile-analyze-action a:hover, .mobile-analyze-action a:focus-visible { color: #082a2a; text-decoration: underline; }
.mobile-analyze-action small { margin-top: 2px; color: #31544f; font-size: .7rem; line-height: 1.45; }
.mobile-menu-groups { display: grid; gap: 9px; margin-top: 14px; }
.mobile-menu-groups details { border: 1px solid #315064; background: #0b293e; overflow: hidden; }
.mobile-menu-groups details[open] { border-color: #467184; background: #0d3044; }
.mobile-menu-groups summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px; cursor: pointer; }
.mobile-menu-groups summary::-webkit-details-marker { display: none; }
.mobile-menu-groups summary span { min-width: 0; }
.mobile-menu-groups summary strong, .mobile-menu-groups summary small { display: block; }
.mobile-menu-groups summary strong { color: white; font-size: .92rem; }
.mobile-menu-groups summary small { margin-top: 2px; color: #98b2bd; font-size: .68rem; }
.mobile-menu-groups summary > i { width: 20px; height: 20px; flex: 0 0 20px; position: relative; border: 1px solid #496b7c; }
.mobile-menu-groups summary > i::before { content: ""; position: absolute; width: 5px; height: 5px; top: 5px; left: 6px; border-right: 1.5px solid #b8d7dc; border-bottom: 1.5px solid #b8d7dc; transform: rotate(45deg); transition: transform .15s, top .15s; }
.mobile-menu-groups details[open] summary > i::before { top: 8px; transform: rotate(225deg); }
.mobile-links { padding: 0 8px 8px; display: grid; gap: 6px; }
.mobile-link-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 11px; background: #12364b; color: white; }
.mobile-link-row:hover { background: #174259; color: white; }
.mobile-link-row > span { min-width: 0; }
.mobile-link-row a { color: white; text-decoration: none; }
.mobile-link-row a:hover, .mobile-link-row a:focus-visible { color: white; text-decoration: underline; }
.mobile-links strong, .mobile-links small { display: block; }
.mobile-links strong { font-size: .78rem; }
.mobile-links small { margin-top: 2px; color: #adbec7; font-size: .66rem; line-height: 1.4; }
.mobile-account { margin-top: 14px; padding: 16px; border: 1px solid #3a6475; background: #0b293e; }
.mobile-account > div:first-child strong { color: white; font-family: var(--serif); font-size: 1.05rem; }
.mobile-account p { margin: 5px 0 0; color: #a9bec7; font-size: .72rem; line-height: 1.5; }
.mobile-account-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.mobile-account-actions form { margin: 0; }
.mobile-account-actions a, .mobile-account-actions button { min-height: 38px; display: inline-flex; align-items: center; padding: 8px 11px; border: 1px solid #527284; background: transparent; color: white; font: 750 .7rem var(--font); text-decoration: none; }
.mobile-account-actions a:hover, .mobile-account-actions button:hover { border-color: #78b6aa; background: #12364b; color: white; }
.mobile-menu-note { margin: 15px auto 0; max-width: 560px; color: #89a5b0; font-size: .64rem; line-height: 1.55; text-align: center; }
@keyframes mobile-panel-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.flash-wrap { position: fixed; z-index: 700; top: calc(var(--nav-height) + 14px); right: 16px; width: min(400px, calc(100% - 32px)); }
.flash { padding: 13px 15px; margin-bottom: 8px; background: white; border: 1px solid var(--line); color: var(--ink); }
.flash-error { border-color: #d6a1a1; color: var(--danger); }
.flash-success { border-color: #8fc5af; color: var(--success); }
.flash-link { display: block; text-decoration: none; cursor: pointer; }
.flash-link span, .flash-link small { display: block; }
.flash-link small { margin-top: 4px; color: var(--ink); font-size: .68rem; font-weight: 750; }
.noscript-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; padding: 12px 20px; background: #eef3ef; }
.noscript-nav a { color: var(--emerald-dark); font-size: .78rem; font-weight: 750; }

.hero { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: var(--section-space) 0; display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { width: 100%; max-width: none; color: var(--navy); }
.hero-lead { width: 100%; max-width: none; margin: 24px 0; font-size: clamp(1.1rem, 1.7vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 22px; }
.plain-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: .8rem; }
.plain-checks li::before { content: "✓"; color: var(--emerald); font-weight: 900; margin-right: 6px; }
.hero-visual { margin: 0; }
.hero-visual img { width: 100%; }
.hero-visual figcaption, .article-lead-image figcaption { margin-top: 8px; color: #727d81; font-size: .7rem; }

.analyzer-band { background: var(--navy); color: white; padding: var(--section-space) max(20px, calc((100vw - var(--max)) / 2)); }
.analyzer-band h1, .analyzer-band h2, .analyzer-band strong { color: white; }
.analyzer-band .section-heading p { color: #b7c7ce; }
.analyzer-band-home { min-height: 0; padding-top: var(--section-space-compact); }
.analyzer-heading > div { width: 100%; }
.section-heading.analyzer-heading h1 { width: 100%; max-width: none; font-size: 48px; }
.section-heading.analyzer-heading p { width: 100%; max-width: none; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.analyzer-promises { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; padding: 0; color: #c4d6dc; font-size: .76rem; }
.analyzer-promises li::before { content: "✓"; margin-right: 6px; color: #78d7bb; font-weight: 900; }
.privacy-clarifier { width: 100%; max-width: none; margin: 8px 0 0; color: #a9bdc6; font-size: .7rem; line-height: 1.65; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading > div:first-child { width: 100%; min-width: 0; flex: 1; }
.section-heading h2 { color: inherit; }
.section-heading p { width: 100%; max-width: none; margin: 8px 0 0; }
.section-heading > a { font-weight: 750; white-space: nowrap; }
.analyzer-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; }
.upload-form { padding: 22px; background: var(--paper); color: var(--ink); }
.upload-zone { min-height: 238px; padding: 28px 18px; display: grid; place-items: center; align-content: center; gap: 8px; border: 2px dashed #94aaa7; background: #f5f5ed; cursor: pointer; text-align: center; }
.upload-zone:hover, .upload-zone.dragging { border-color: var(--emerald); background: var(--emerald-soft); }
.upload-zone:focus-within { outline: 3px solid #ffbf47; outline-offset: 3px; border-color: var(--emerald); }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-mark { width: 48px; height: 48px; display: grid; place-items: center; background: var(--emerald); color: white; font-size: 1.6rem; }
.upload-mark.file-selected { --file-color: var(--emerald); position: relative; width: 52px; height: 64px; border: 3px solid var(--file-color); background: var(--paper); color: var(--file-color); font-size: 0; }
.upload-mark.file-selected::before { position: absolute; top: -3px; right: -3px; width: 17px; height: 17px; border-bottom: 3px solid var(--file-color); border-left: 3px solid var(--file-color); background: #f5f5ed; content: ""; }
.upload-mark.file-selected::after { position: absolute; right: 5px; bottom: 7px; left: 5px; height: 17px; display: grid; place-items: center; background: var(--file-color); color: white; content: attr(data-format); font-size: .56rem; font-weight: 850; text-transform: uppercase; }
.upload-mark.file-selected[data-format="pdf"] { --file-color: #a82f2b; }
.upload-mark.file-selected[data-format="xls"], .upload-mark.file-selected[data-format="xlsx"], .upload-mark.file-selected[data-format="csv"] { --file-color: #147552; }
.upload-mark.file-selected[data-format="jpg"], .upload-mark.file-selected[data-format="png"], .upload-mark.file-selected[data-format="webp"], .upload-mark.file-selected[data-format="tiff"] { --file-color: #176c77; }
.upload-zone.has-file { border-style: solid; border-color: var(--emerald); background: var(--emerald-soft); }
.upload-zone strong { color: var(--ink); font-size: 1.02rem; }
.upload-zone > span:last-of-type { color: var(--muted); font-size: .78rem; }
.consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 9px; margin: 14px 0; color: var(--muted); font-size: .72rem; }
.consent input { margin-top: 4px; accent-color: var(--emerald); }
.privacy-note { margin: 12px 0 0; font-size: .7rem; text-align: center; }
.privacy-note strong { color: var(--ink); }
.tool-upload .privacy-note, .tool-upload .save-signin { color: #4f6068; }
.tool-upload .privacy-note a, .tool-upload .save-signin a { color: var(--emerald-dark); }
.save-account-fields { margin: 12px 0; padding: 12px; background: var(--emerald-soft); }
.save-choice { margin-top: 0; color: var(--ink); }
.save-choice strong { color: var(--ink); }
.tax-year-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .74rem; }
.tax-year-field input { width: 110px; padding: 7px 9px; border: 1px solid #aac1ba; background: white; color: var(--ink); }
.save-signin { margin: 12px 0; padding: 10px; background: #eef1ed; font-size: .72rem; text-align: center; }
.save-signin strong { color: var(--ink); }
.save-signin a { font-weight: 800; }
.analysis-preview { padding: 22px; border: 1px solid #31536a; background: #0b2a3f; }
.preview-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.preview-head span { color: #9fb6c1; font-size: .7rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metric-grid div { padding: 16px; background: #123b4f; }
.metric-grid span, .metric-grid strong { display: block; }
.metric-grid span { color: #a8bec7; font-size: .7rem; }
.metric-grid strong { margin-top: 5px; font-size: 1.25rem; }
.preview-ledger { margin-top: 10px; background: #f7f6ef; color: var(--ink); overflow: hidden; }
.preview-ledger div { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; padding: 13px; }
.preview-ledger div:nth-child(even) { background: #ebece5; }
.preview-ledger span { color: var(--muted); font-size: .72rem; }
.preview-ledger strong, .preview-ledger b { font-size: .78rem; color: var(--ink); }
.preview-ledger .credit { color: var(--success); }
.analysis-preview > p { color: #9fb5bf; font-size: .68rem; margin: 12px 0 0; }
.imported-body img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.content-section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: var(--section-space) 0; }
main > .content-section + .content-section,
main > .home-results + .content-section { padding-top: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-grid-wide { grid-template-columns: repeat(3, 1fr); }
.tool-card { padding: 22px; border: 1px solid var(--line); background: var(--paper); transition: border-color .15s, background .15s; }
.tool-card:hover { border-color: #8eb4aa; background: #f7fbf8; }
.tool-card h2, .tool-card h3 { margin: 0 0 10px; font-family: var(--serif); }
.tool-card h2 { font-size: 28px; }
.tool-card h3 { font-size: 1.35rem; }
.tool-card h2 a, .tool-card h3 a { color: var(--ink); text-decoration: none; }
.tool-card p { font-size: .84rem; }
.card-action { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 760; font-size: .78rem; }

.method-strip { padding: var(--section-space) max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(28px, 4vw, 48px); background: var(--sand); }
.method-strip > div:first-child, .method-strip > div:first-child h2, .method-strip > div:first-child p { width: 100%; max-width: none; }
.method-strip a { font-weight: 750; }
.method-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.method-points article { padding: 18px; border: 1px solid #d2c8b9; background: rgba(255,255,255,.45); }
.method-points p { margin: 7px 0 0; font-size: .8rem; }

.feature-story { display: grid; grid-template-columns: 1.12fr .88fr; gap: 36px; align-items: center; margin-bottom: 34px; }
.feature-story img { aspect-ratio: 3/2; object-fit: cover; }
.feature-story h3 { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 3rem); }
.feature-story h3 a { color: var(--ink); text-decoration: none; }
.feature-story > div > a { font-weight: 750; }
.story-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.story-list article { padding: 20px; background: #f0ece3; }
.story-list time { color: var(--muted); font-size: .68rem; }
.story-list h2, .story-list h3 { margin: 10px 0; font-family: var(--serif); }
.story-list h2 { font-size: 28px; }
.story-list h3 { font-size: 1.28rem; }
.story-list h2 a, .story-list h3 a { color: var(--ink); text-decoration: none; }
.story-list p { font-size: .8rem; }
.discovery-section .section-heading,
.discovery-section .section-heading > div,
.discovery-section .section-heading .section-answer { width: 100%; max-width: none; }
.discovery-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; width: 100%; margin-top: 22px; }
.discovery-actions a { font-size: .78rem; font-weight: 750; white-space: nowrap; }
.discovery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.discovery-grid article { padding: 20px; border: 1px solid var(--line); background: var(--paper); }
.discovery-grid h3 { margin-bottom: 9px; font-family: var(--serif); font-size: 1.2rem; }
.discovery-grid h3 a { color: var(--ink); text-decoration: none; }
.discovery-grid p { margin: 0; font-size: .8rem; }

.privacy-feature { padding: var(--section-space) max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: .82fr 1.18fr; gap: 36px; align-items: center; background: var(--emerald-dark); color: white; }
.privacy-feature h2 { color: white; }
.privacy-feature p { color: #d8ece5; }
.privacy-feature img { }
.privacy-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.privacy-actions > a:not(.button) { color: white; font-weight: 750; }

.page-hero { padding: var(--section-space) max(20px, calc((100vw - var(--max)) / 2)); background: #e8eee8; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 36px; align-items: center; }
.page-hero.compact { grid-template-columns: 1fr; min-height: 0; }
.page-hero > *, .page-hero.compact > div { width: 100%; min-width: 0; max-width: none; }
.page-hero.split img, .magazine-hero img { max-height: 480px; width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }
.page-hero h1, .page-hero p { width: 100%; max-width: none; }
.page-hero p { font-size: 1.1rem; }
.breadcrumb-bar { width: 100%; background: rgba(7, 28, 44, .98); border: 0; box-shadow: none; }
.breadcrumb-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 48px; margin: 0; padding: 6px 0; border: 0; color: #a9bdc6; font-size: .72rem; line-height: 1.4; }
.breadcrumb a { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px; color: #b9cbd2; font-weight: 700; text-decoration: none; }
.breadcrumb a:hover { color: white; background: rgba(255, 255, 255, .055); }
.breadcrumb-root-icon { width: 17px; height: 17px; fill: none; stroke: #78d7bb; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.breadcrumb [aria-current="page"] { min-height: 36px; display: inline-flex; align-items: center; padding: 7px 12px; background: rgba(120, 215, 187, .1); color: white; font-weight: 800; }
.breadcrumb-separator { color: #78d7bb; }
.breadcrumb-bar + .tool-hero,
.breadcrumb-bar + .topic-page .topic-header,
.breadcrumb-bar + .result-header { padding-top: clamp(28px, 3vw, 42px); }
.breadcrumb-bar + .article-page .article-header { padding-top: clamp(32px, 4vw, 48px); }

.tool-hero { padding: var(--section-space) max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); gap: 36px; align-items: center; background: #e9eee8; }
.tool-hero h1 { font-size: 48px; }
.tool-hero > div:first-child > p { width: 100%; max-width: none; font-size: 1.15rem; }
.tool-hero > * { width: 100%; min-width: 0; }
.tool-upload .upload-form { border: 1px solid #cad0c6; }
.tool-upload .upload-zone { min-height: 185px; }
.narrow-copy { width: 100%; max-width: none; }
.narrow-copy h2 { margin: 42px 0 12px; }
.task-introduction { margin-bottom: 24px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 38px; }
.summary-grid article { padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.summary-grid h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.22rem; }
.summary-grid p { margin: 0; font-size: .8rem; }
.home-includes-panel { position: relative; isolation: isolate; overflow: hidden; padding: var(--section-space) max(20px, calc((100vw - var(--max)) / 2)); background: radial-gradient(circle at 86% 12%, rgba(40, 150, 124, .28), transparent 25%), radial-gradient(circle at 5% 95%, rgba(38, 105, 133, .34), transparent 30%), linear-gradient(132deg, #061d2e 0%, #092c3e 54%, #08352f 100%); color: white; }
.home-includes-panel::before, .home-includes-panel::after { position: absolute; z-index: -1; content: ""; pointer-events: none; }
.home-includes-panel::before { top: -150px; right: 7%; width: 360px; height: 360px; background: rgba(113, 220, 191, .07); transform: rotate(18deg); }
.home-includes-panel::after { bottom: -185px; left: -90px; width: 400px; height: 400px; background: rgba(255, 255, 255, .035); transform: rotate(-14deg); }
.home-includes-shell { width: min(var(--max), 100%); margin: 0 auto; }
.home-includes-panel .section-heading { margin-bottom: 34px; }
.home-includes-panel .section-heading h2 { color: white; }
.home-includes-panel .section-heading p { color: #c2d3d9; }
.home-includes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-include-card { min-width: 0; min-height: 224px; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: 18px; padding: 24px; background: rgba(250, 249, 243, .97); color: var(--ink); }
.home-include-icon { width: 52px; height: 52px; display: grid; place-items: center; background: #d8efe8; color: var(--emerald-dark); }
.home-include-icon svg { width: 34px; height: 34px; display: block; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: square; stroke-linejoin: miter; }
.home-include-card h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.16; }
.home-include-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.68; }
.home-result-method { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: var(--section-space) 0; }
.home-result-method > p { width: 100%; max-width: none; }
.home-result-table { margin-top: 22px; }
.home-result-table table { min-width: 760px; }
.home-result-table td { font-size: .82rem; }
.source-guide-followup { width: 100%; max-width: none; margin: 22px 0 0; }
.index-followup { margin-top: 54px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.faq-grid article { padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.faq-grid h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 1.35rem; }
.faq-grid p { margin: 0; font-size: .84rem; }
.notice { margin: 36px 0; padding: 20px; background: #f2ecdf; }
.notice p { margin: 6px 0 0; }
.cta-panel { padding: 48px max(20px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; background: var(--navy); }
.cta-panel h2 { color: white; }
.cta-panel p { color: #b9cbd2; }

.hub-section { margin-bottom: var(--section-space); }
.hub-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 32px; align-items: start; margin-bottom: 22px; }
.hub-heading h2 a { color: inherit; text-decoration: none; }
.hub-heading h2 a:hover { color: var(--emerald-dark); }
.hub-stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hub-stories article { padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.hub-stories h3 { margin: 10px 0; font-family: var(--serif); font-size: 1.35rem; }
.hub-stories h3 a { color: var(--ink); text-decoration: none; }
.hub-stories p { font-size: .82rem; }
.hub-stories > article > a { font-weight: 750; font-size: .78rem; }
.hub-path { display: inline-flex; margin-top: 14px; font-size: .78rem; font-weight: 800; }

.article-page { padding-bottom: var(--section-space); }
.article-header { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: var(--section-space) 0 var(--section-space-compact); }
.article-header h1 { font-size: 48px; }
.article-header h1, .article-dek { width: 100%; max-width: none; }
.article-dek { margin: 22px 0; font-size: 1.25rem; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .72rem; }
.article-lead-image { width: min(var(--max), calc(100% - 40px)); margin: 0 auto 54px; }
.article-lead-image img { width: 100%; max-height: 620px; object-fit: cover; }
.article-layout { width: min(var(--max), calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 60px; align-items: start; }
.article-layout.single { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
.article-index { position: sticky; top: calc(var(--nav-height) + 24px); display: grid; gap: 9px; padding: 16px; border: 1px solid var(--line); background: #f2eee5; }
.article-index strong { margin-bottom: 5px; }
.article-index a { color: var(--muted); font-size: .74rem; text-decoration: none; }
.article-index a:hover { color: var(--emerald-dark); }
.article-body { min-width: 0; }
.page-direct-answer { text-wrap: pretty; }
.section-answer { color: var(--ink); font-weight: 520; }
.key-takeaway { margin: 0 0 38px; padding: 22px; background: var(--emerald-soft); color: var(--ink); font-size: 1.08rem; }
.article-body section { margin-bottom: 46px; }
.article-body h2 { margin-bottom: 16px; font-size: 28px; }
.article-body p { font-size: 1.02rem; }
.practical-workflow { padding: 24px; background: var(--emerald-soft); }
.practical-workflow > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.practical-workflow article { padding: 16px; border: 1px solid #b9d6cd; background: rgba(255,255,255,.58); }
.practical-workflow h3 { margin-bottom: 7px; font-family: var(--serif); }
.practical-workflow article p { margin: 0; font-size: .84rem; }
.glossary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.glossary-list article { padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.glossary-list h3 { margin-bottom: 7px; color: var(--emerald-dark); font-family: var(--serif); }
.glossary-list article p { margin: 0; font-size: .84rem; }
.source-list ul { padding-left: 20px; }
.source-list li { margin-bottom: 9px; }
.source-list a { font-weight: 750; }
.imported-body img { max-width: 100%; height: auto; }
.imported-body h1 { font-size: 48px; }
.article-summary { margin: 0 0 24px; padding: 26px 28px; background: var(--emerald-soft); }
.article-summary h2, .article-toc h2 { margin: 0 0 14px; }
.article-summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.article-summary li { position: relative; padding-left: 25px; }
.article-summary li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald-dark); font-weight: 900; }
.article-toc { margin: 0 0 46px; padding: 26px 28px; background: #f2eee5; }
.article-toc ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 36px; }
.article-toc li { margin: 0 0 9px; break-inside: avoid; }
.article-toc a { color: var(--emerald-dark); font-weight: 750; text-underline-offset: 3px; }
.article-next-read { margin-top: 52px; padding: 26px 28px; background: var(--navy); color: white; }
.article-next-read h3 { margin: 0 0 10px; color: white; font-family: var(--serif); font-size: 1.45rem; }
.article-next-read p { margin: 0; color: #c7d7dc; }
.article-next-read a { color: #8fe3c9; font-weight: 800; }
.related-guides { width: min(var(--max), calc(100% - 40px)); margin: var(--section-space) auto 0; }
.related-guides > div { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-guides article { padding: 20px; background: #efeae0; }
.related-guides h3 { font-family: var(--serif); }
.related-guides h3 a { color: var(--ink); text-decoration: none; }
.related-guides p { font-size: .8rem; }
.read-next > div { grid-template-columns: minmax(0, 1fr); }
.tool-learning-path { margin-top: 0; }
.topic-paths { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; }
.topic-paths a { font-weight: 750; }
.guide-tool { margin-top: var(--section-space); }

/* Each public tool uses the visual language of its actual output. */
.tool-experience { padding-bottom: 0; }
.tool-experience h1 { font-size: 48px; }
.tool-experience .page-direct-answer { font-size: 1.12rem; }
.tool-experience .tool-upload .upload-form { border: 1px solid #cad0c6; }
.tool-experience .tool-upload .upload-zone { min-height: 185px; }
.tool-output-contract { display: grid; gap: 4px; margin-top: 12px; padding: 13px 15px; background: #e5eee9; color: var(--ink); }
.tool-output-contract strong { font-size: .72rem; }
.tool-output-contract span { color: #4f6068; font-size: .68rem; line-height: 1.5; }
.tool-primary-image { width: min(var(--max), calc(100% - 40px)); margin: 36px auto 52px; }
.tool-primary-image img { display: block; width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }
.tool-content-section p, .tool-example p { font-size: 1rem; }
.tool-checks { padding: 26px; background: var(--navy); color: white; }
.tool-checks h2 { color: white; }
.tool-checks ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tool-checks li { position: relative; padding-left: 25px; color: #c8d8dd; }
.tool-checks li::before { content: "✓"; position: absolute; left: 0; color: #78d7bb; font-weight: 900; }
.tool-specific-limit { margin: 0; }
.tool-learning-path { width: min(var(--max), calc(100% - 40px)); margin: var(--section-space) auto 0; padding: 30px; background: #e9eee8; }
.tool-learning-path > div { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-learning-path article { padding: 20px; background: var(--paper); }
.tool-learning-path h3 { font-family: var(--serif); }
.tool-learning-path h3 a { color: var(--ink); text-decoration: none; }
.tool-learning-path p { margin-bottom: 0; font-size: .8rem; }
.tool-method-cta { margin-top: var(--section-space); padding: var(--section-space) max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 4vw, 56px); color: white; background: linear-gradient(120deg, var(--navy) 0%, #0a2a3e 68%, #0d3444 100%); }
.tool-method-copy { min-width: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 22px; }
.tool-method-mark { width: 56px; height: 56px; display: grid; place-items: center; color: #78d7bb; background: #0e3c4c; }
.tool-method-mark svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tool-method-cta h2 { margin-bottom: 12px; color: white; }
.tool-method-cta p { width: 100%; max-width: none; margin: 0; color: #c1d1d7; line-height: 1.75; }
.tool-method-cta .button-light { min-height: 58px; padding: 15px 24px; border-color: var(--mint); background: var(--mint); color: #082a2a; white-space: nowrap; }
.tool-method-cta .button-light:hover { border-color: #d5eee5; background: #d5eee5; color: #082a2a; }

.excel-hero { padding: 50px max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); gap: 44px; align-items: center; background: #e5eee9; }
.excel-intro h1, .excel-intro p { width: 100%; max-width: none; }
.workbook-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.workbook-facts span { padding: 7px 10px; border: 1px solid #9bbdb1; color: var(--emerald-dark); background: rgba(255,255,255,.55); font-size: .72rem; font-weight: 750; }
.workbook-preview { width: min(var(--max), calc(100% - 40px)); margin: 52px auto; border: 1px solid #b9c8c0; overflow: hidden; background: var(--paper); }
.workbook-bar { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 22px 24px 0; background: #eef3ef; }
.workbook-bar > div { display: flex; gap: 5px; }
.workbook-bar span { padding: 8px 12px; color: var(--muted); background: #dce6e0; font-size: .7rem; font-weight: 750; }
.workbook-bar span.active { color: white; background: var(--emerald-dark); }
.workbook-preview table { min-width: 860px; }
.workbook-preview th { background: #174f42; color: white; }
.workbook-preview > p { margin: 12px 24px 18px; font-size: .7rem; }
.excel-workflow { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; align-items: start; }
.excel-content { display: grid; gap: 34px; }
.excel-content section { padding: 26px; background: var(--paper); }
.excel-finish { width: min(var(--max), calc(100% - 40px)); margin: 52px auto 0; display: grid; gap: 42px; }
.excel-example { padding: 28px; background: #e9eee8; }

.csv-hero { padding: var(--section-space) max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr); gap: 36px; align-items: center; background: var(--navy); color: white; }
.csv-hero h1 { color: white; }
.csv-hero p { color: #bdcfd5; }
.csv-purpose { font-size: .82rem; }
.csv-sample { min-width: 0; border: 1px solid #31566a; overflow: hidden; background: #0b293e; }
.csv-sample > strong, .csv-sample > small { display: block; padding: 10px 14px; }
.csv-sample > strong { color: #78d7bb; font-size: .75rem; }
.csv-sample pre { margin: 0; padding: 18px 14px; overflow-x: auto; color: #e1ecef; background: #061925; font: .72rem/1.7 var(--font); }
.csv-sample > small { color: #8da8b2; }
.csv-action-row { width: min(var(--max), calc(100% - 40px)); margin: 52px auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: start; }
.csv-decision { padding: 28px; background: #e9eee8; }
.csv-field-contract { width: min(var(--max), calc(100% - 40px)); margin: 0 auto 52px; padding: 32px; background: #f2ecdf; }
.csv-field-contract dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 0; }
.csv-field-contract dl div { padding: 16px; background: rgba(255,255,255,.58); }
.csv-field-contract dt { font-weight: 800; }
.csv-field-contract dd { margin: 7px 0 0; color: var(--muted); font-size: .8rem; }
.csv-validation { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.csv-validation > section { padding: 24px; background: var(--paper); }
.csv-validation .csv-checks { grid-column: 1 / -1; }
.csv-evidence { width: min(var(--max), calc(100% - 40px)); margin: 48px auto 0; display: grid; gap: 34px; }

.image-reader-hero { padding: 50px max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); gap: 44px; align-items: center; background: #e9eee8; }
.capture-rules { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.capture-rules li { padding: 10px 12px; background: var(--paper); color: var(--ink); font-size: .76rem; font-weight: 700; }
.image-quality-board { width: min(var(--max), calc(100% - 40px)); margin: 52px auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.scan-page { position: relative; min-height: 360px; padding: 56px 40px; border: 2px solid #8eaaa4; background: var(--paper); }
.scan-corner { position: absolute; width: 28px; height: 28px; border-color: var(--emerald); }
.scan-corner.top-left { top: 16px; left: 16px; border-top: 4px solid; border-left: 4px solid; }
.scan-corner.top-right { top: 16px; right: 16px; border-top: 4px solid; border-right: 4px solid; }
.scan-corner.bottom-left { bottom: 16px; left: 16px; border-bottom: 4px solid; border-left: 4px solid; }
.scan-corner.bottom-right { bottom: 16px; right: 16px; border-bottom: 4px solid; border-right: 4px solid; }
.scan-line { width: 52%; height: 9px; margin-bottom: 12px; background: #becbc7; }
.scan-line.wide { width: 78%; height: 13px; background: #547068; }
.scan-row { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 9px; margin-top: 24px; }
.scan-row i { height: 9px; background: #d7dfdb; }
.image-review-flow { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; display: grid; gap: 38px; }
.image-review-flow .tool-content-section { padding-left: 28px; }
.image-error-example { width: min(var(--max), calc(100% - 40px)); margin: 52px auto; padding: 32px; background: var(--navy); }
.image-error-example h2 { color: white; }
.image-error-example p { color: #c3d4da; }
.image-verification { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: .75fr 1.25fr; gap: 28px; align-items: start; }
.page-review { padding: 26px; background: #e9eee8; }

.recurring-hero { padding: 50px max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); gap: 44px; align-items: center; background: #f2ecdf; }
.candidate-definition { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.candidate-definition strong { width: 100%; margin-bottom: 4px; }
.candidate-definition span { padding: 6px 9px; background: var(--paper); color: var(--emerald-dark); font-size: .7rem; font-weight: 750; }
.pattern-example { width: min(var(--max), calc(100% - 40px)); margin: 52px auto; display: grid; grid-template-columns: .55fr 1.45fr; gap: 34px; align-items: center; }
.pattern-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pattern-timeline article { position: relative; padding: 20px; background: #e9eee8; }
.pattern-timeline time, .pattern-timeline strong, .pattern-timeline span { display: block; }
.pattern-timeline time { color: var(--muted); font-size: .7rem; }
.pattern-timeline strong { margin: 7px 0; font-size: 1.35rem; }
.pattern-timeline span { color: var(--emerald-dark); font-size: .72rem; font-weight: 750; }
.recurring-evidence, .recurring-decision { width: min(var(--max), calc(100% - 40px)); margin: 0 auto 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.recurring-evidence section { padding: 26px; background: var(--paper); }
.recurring-experience > .tool-specific-limit { width: min(var(--max), calc(100% - 40px)); margin: 0 auto 44px; }
.candidate-confirmation { padding: 26px; background: #e9eee8; }
.recurring-example { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding-left: 28px; }

.cash-flow-hero { padding: 50px max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); gap: 44px; align-items: center; background: var(--navy); color: white; }
.cash-flow-hero h1 { color: white; }
.cash-flow-hero > div:first-child > p { color: #c3d4da; }
.excel-hero > *, .csv-hero > *, .image-reader-hero > *, .recurring-hero > *, .cash-flow-hero > * { width: 100%; min-width: 0; }
.cash-equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 24px; color: #d6e3e7; font-size: .7rem; }
.cash-equation span { padding: 9px; background: #12364b; text-align: center; }
.cash-equation b { color: #78d7bb; }
.cash-flow-preview { width: min(var(--max), calc(100% - 40px)); margin: 52px auto; }
.cash-preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.cash-preview-heading > div, .cash-preview-heading h2, .cash-preview-heading p { width: 100%; max-width: none; }
.cash-preview-heading p { margin-bottom: 0; font-size: .75rem; }
.cash-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.cash-metrics article { padding: 22px; background: #e9eee8; }
.cash-metrics span, .cash-metrics strong { display: block; }
.cash-metrics span { color: var(--muted); font-size: .72rem; }
.cash-metrics strong { margin-top: 7px; font-size: 1.3rem; }
.cash-boundary { width: min(var(--max), calc(100% - 40px)); margin: 0 auto 48px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.cash-boundary-copy { padding: 26px; background: var(--paper); }
.cash-calculation { width: min(var(--max), calc(100% - 40px)); margin: 0 auto 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cash-calculation > section { padding: 26px; background: #e9eee8; }
.cash-calculation .cash-example { background: #f2ecdf; }
.cash-review { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: .75fr 1.25fr; gap: 28px; align-items: start; }
.cash-timing { padding: 26px; background: var(--paper); }

/* Guide structures follow the reader's task. These are separate editorial layouts,
   not color variants of one article template. */
.format-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.format-shell .article-lead-image { width: 100%; margin: 0; }
.format-shell .article-lead-image img { max-height: 560px; }
.format-shell .article-body { width: 100%; margin-inline: 0; }
.format-shell .format-limit { margin: 0 0 42px; }
.format-shell .editorial-method { padding: 24px; background: #efeae0; }
.format-shell .editorial-method p:last-child { margin-bottom: 0; }

.orientation-grid { width: 100%; margin: 48px auto 0; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 58px; align-items: start; }
.orientation-body .orientation-step { padding-left: 22px; }
.orientation-practice { margin-bottom: 46px; }

.ledger-layout { width: min(var(--max), calc(100% - 40px)); }
.ledger-nav { position: static; display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 24px; background: var(--navy); border-color: var(--navy); }
.ledger-nav strong { width: 100%; color: white; }
.ledger-nav a { padding: 5px 9px; background: #12364b; color: #d8e6e9; }
.ledger-nav a:hover { color: white; }
.ledger-opening { display: grid; grid-template-columns: 1.06fr .94fr; gap: 24px; align-items: start; }
.ledger-opening .key-takeaway { background: #f2ecdf; }
.control-ledger { background: #e9eee8; }
.control-ledger > div { grid-template-columns: 1fr; }
.ledger-body { margin-top: 50px; }
.ledger-entry { display: grid; grid-template-columns: minmax(180px, .72fr) minmax(0, 1.28fr); gap: 30px; padding: 24px; background: var(--paper); }
.ledger-entry h2 { margin-bottom: 0; }
.ledger-entry p:first-of-type { margin-top: 0; }
.ledger-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }

.analysis-opening { display: grid; grid-template-columns: .72fr 1.28fr; gap: 28px; align-items: center; margin-bottom: 48px; }
.analysis-opening .key-takeaway { margin: 0; padding: 30px; background: var(--navy); color: white; }
.analysis-notebook { width: 100% !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.analysis-note, .analysis-notebook .format-limit { margin: 0 !important; padding: 24px; background: var(--paper); }
.analysis-notebook .format-limit { background: #f2ecdf; }
.measure-board { margin: 28px 0 48px; background: #dfeee8; }
.measure-board > div { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rules-opening { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.rulebook { background: var(--navy); color: white; }
.rulebook h2, .rulebook h3 { color: white; }
.rulebook .section-answer, .rulebook p { color: #c3d4da; }
.rulebook article { border-color: #31566a; background: #0e3146; }
.rules-nav { position: static; }
.rule-cards { width: 100% !important; margin-top: 52px !important; }
.rule-card { padding: 28px; background: #e9eee8; }
.rules-visual { margin: -16px 0 46px !important; }

.reference-opening { display: grid; grid-template-columns: 1.4fr .6fr; gap: 30px; align-items: start; }
.reference-opening .key-takeaway { background: #f2ecdf; }
.reference-desk { padding: 28px; background: var(--paper); }
.reference-nav { position: static; margin-top: 18px; background: #e9eee8; }
.reference-visual img { aspect-ratio: 4 / 5; object-fit: cover; }
.decoder-fields { margin: 46px 0; }
.decoder-fields > div { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reference-notes { width: 100% !important; }
.reference-note { padding-left: 28px; }

.comparison-layout > .key-takeaway { width: 100%; margin-inline: 0; text-align: center; }
.comparison-desk { margin: 0 0 42px; padding: 28px; background: var(--paper); }
.comparison-visual-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.comparison-visual-row .format-limit { margin: 0; }
.comparison-briefs { width: 100% !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 48px !important; }
.comparison-brief { padding: 24px; background: #e9eee8; }
.decision-workflow { margin: 16px 0 48px; background: #f2ecdf; }

.privacy-visual img { aspect-ratio: 16 / 6; }
.privacy-control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0; }
.privacy-control-row > * { margin: 0 !important; }
.privacy-control-row .format-limit { border-left-color: var(--emerald); }
.privacy-questions { background: var(--navy); color: white; }
.privacy-questions h2, .privacy-questions h3 { color: white; }
.privacy-questions p { color: #c3d4da; }
.privacy-questions article { border-color: #31566a; background: #0e3146; }
.privacy-controls { width: 100% !important; margin-top: 52px !important; }
.privacy-control { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr); gap: 34px; padding: 26px; background: #e9eee8; }
.privacy-control h2 { margin-bottom: 0; }

.checklist-opening { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
.acceptance-record { background: #e9eee8; }
.acceptance-record > div { grid-template-columns: 1fr; }
.acceptance-record article { position: relative; padding-left: 46px; }
.acceptance-record article::before { content: "✓"; position: absolute; left: 17px; top: 14px; color: var(--emerald); font-weight: 900; }
.checklist-visual img { aspect-ratio: 4 / 3; }
.checklist-tests { width: 100% !important; margin-top: 52px !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.checklist-test { margin: 0 !important; padding: 24px; background: var(--paper); }
.checklist-tests > .format-limit, .checklist-tests > .contextual-links, .checklist-tests > .source-list, .checklist-tests > .editorial-method { grid-column: 1 / -1; }

.records-cover { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; }
.records-cover .key-takeaway { background: #f2ecdf; }
.records-visual img { aspect-ratio: 4 / 5; }
.record-files { width: 100% !important; margin-top: 54px !important; }
.record-file { padding: 28px 30px; background: var(--paper); }
.record-file:nth-child(even) { margin-left: 60px; background: #e9eee8; }
.record-packet { margin: 20px 0 48px; background: #f2ecdf; }

@media (max-width: 1080px) {
  .orientation-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 34px; }
  .measure-board > div, .decoder-fields > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .csv-field-contract dl { grid-template-columns: repeat(2, 1fr); }
}

.topic-header { padding: var(--section-space) max(20px, calc((100vw - var(--max)) / 2)); background: #e8eee8; }
.topic-header-visual { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 48px; align-items: center; }
.topic-header-visual > * { width: 100%; min-width: 0; }
.topic-header-visual img { display: block; width: 100%; max-height: 480px; aspect-ratio: 40 / 21; object-fit: cover; }
.topic-header h1, .topic-header p { width: 100%; max-width: none; }
.topic-header p { margin: 20px 0 0; font-size: 1.12rem; }
.topic-scope { width: min(var(--max), calc(100% - 40px)); margin: 48px auto 20px; }
.topic-scope h2, .topic-scope p { width: 100%; max-width: none; }
.topic-scope p { margin-bottom: 0; }
.topic-introduction { width: min(var(--max), calc(100% - 40px)); margin: 20px auto 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.topic-introduction article { padding: 24px; background: var(--sand); }
.topic-introduction h2 { font-size: 28px; }
.topic-introduction p { margin-bottom: 0; }
.topic-questions { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 12px 0 48px; }
.editorial-introduction, .editorial-introduction h2, .editorial-introduction p { width: 100%; max-width: none; }
.editorial-introduction { margin-bottom: 52px; }
.topic-guides { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: var(--section-space-compact) 0 var(--section-space); }
.topic-guides > div:last-child { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.topic-guides article { padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.topic-guides h3 { margin: 12px 0; font-family: var(--serif); font-size: 1.45rem; }
.topic-guides h3 a { color: var(--ink); text-decoration: none; }
.topic-guides article > a:last-child { font-size: .76rem; font-weight: 800; }
.topic-tool { padding: 52px max(20px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--navy); color: white; }
.topic-tool h2 { color: white; }
.topic-tool > div, .topic-tool h2, .topic-tool p { width: 100%; max-width: none; }
.topic-tool p { color: #b9cbd2; }
.topic-method { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: var(--section-space) 0; }

.result-header { padding: 48px max(20px, calc((100vw - var(--max)) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 24px; background: #e7eee8; }
.result-header h1 { font-size: 48px; }
.result-header > div:first-child { min-width: 0; flex: 1; }
.result-header h1, .result-header > div:first-child > p { width: 100%; max-width: none; }
.result-actions { display: flex; gap: 9px; }
.result-shell { width: min(var(--max), calc(100% - 40px)); margin: auto; padding: var(--section-space-compact) 0 var(--section-space); }
.result-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.result-metrics article { padding: 18px; background: var(--navy); color: white; }
.result-metrics span, .result-metrics strong { display: block; }
.result-metrics span { color: #abc0c9; font-size: .72rem; }
.result-metrics strong { margin-top: 5px; font-size: 1.45rem; }
.warning-box { margin: 22px 0; padding: 20px; background: #f4ead8; }
.warning-box ul { margin-bottom: 0; }
.result-section { margin-top: 42px; }
.result-section > p { width: 100%; max-width: none; }
.table-wrap { overflow: auto; background: white; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e5e0d7; }
th { background: var(--navy); color: white; font-size: .7rem; }
td { font-size: .76rem; }
td small { display: block; margin-top: 4px; max-width: 280px; }
.confidence { display: inline-block; padding: 3px 7px; background: #e8ece9; font-size: .66rem; }
.confidence-high { color: var(--success); background: #dcefe7; }
.confidence-low { color: #8a5d18; background: #f4ead5; }
.candidate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.candidate-grid article { padding: 18px; border: 1px solid var(--line); background: white; }
.candidate-grid p { margin: 5px 0; font-size: .75rem; }
.candidate-grid strong, .candidate-grid span { display: block; }
.candidate-grid span { color: var(--muted); font-size: .7rem; }
.delete-result { margin-top: 42px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.delete-result .text-button { color: var(--danger); padding: 0; }
.delete-result span { color: var(--muted); font-size: .7rem; }

.policy-copy { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: var(--section-space) 0; }
.policy-copy section { margin-bottom: 44px; }
.policy-copy h2 { margin-bottom: 12px; }
.pricing-grid, .pricing-copy { width: min(var(--max), calc(100% - 40px)); margin-right: auto; margin-left: auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 18px; max-width: var(--max); }
.pricing-copy h2 { margin: 42px 0 12px; }
.pricing-card { min-width: 0; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); background: var(--paper); }
.pricing-card-premium { border-color: #8eb8aa; background: #f1f8f4; }
.pricing-card-plus { border-color: var(--emerald); background: #e8f4ee; }
.pricing-card-header { min-height: 134px; }
.pricing-grid h2 { margin-bottom: 22px; font-size: 28px; }
.pricing-grid .price { display: grid; gap: 1px; margin: 0; color: var(--navy); }
.pricing-grid .price strong { font-size: 1.7rem; line-height: 1.15; }
.pricing-grid .price span { color: var(--muted); font-size: .7rem; font-weight: 750; }
.pricing-summary { min-height: 126px; margin: 0 0 24px; }
.pricing-features { display: flex; flex: 1; flex-direction: column; }
.pricing-grid h3 { margin: 0 0 16px; font-size: 1rem; letter-spacing: -.015em; }
.pricing-grid ul { display: grid; gap: 13px; margin: 0 0 28px; padding: 0; color: var(--muted); list-style: none; }
.pricing-grid li { position: relative; margin: 0; padding-left: 28px; }
.pricing-grid li::before { content: "✓"; position: absolute; top: 0; left: 0; color: var(--emerald); font-weight: 900; }
.pricing-action { width: 100%; margin-top: auto; text-align: center; }
.billing-options { display: grid; gap: 10px; margin-top: auto; }
.billing-options p { display: grid; gap: 3px; margin: 0 0 4px; }
.billing-options p span { color: var(--muted); font-size: .7rem; }
.billing-options .pricing-action { margin: 0; }
.pricing-notice { width: min(var(--max), calc(100% - 40px)); margin: 28px auto 0; padding: 16px 20px; background: #e8f4ee; color: var(--navy); font-weight: 750; }
.login-shell, .error-shell { min-height: calc(100vh - var(--nav-height)); display: grid; place-items: center; padding: 48px 20px; text-align: center; }
.login-shell > div { max-width: 520px; padding: 34px; border: 1px solid var(--line); background: var(--paper); }
.login-shell img, .error-shell img { margin: auto; }
.login-shell h1, .error-shell h1 { margin-top: 18px; font-size: 48px; }
.google-button { width: 100%; gap: 10px; margin: 18px 0; }
.google-button-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; background: white; }
.google-button .google-button-icon img { width: 20px; height: 20px; margin: 0; }
.login-shell small { display: block; }
.login-shell > .login-card { width: min(1080px, 100%); max-width: none; display: grid; grid-template-columns: minmax(0, .85fr) minmax(380px, 1.15fr); gap: 34px; align-items: center; text-align: left; }
.login-copy { min-width: 0; }
.login-logo { margin: 0 !important; }
.login-purpose-visual { display: block; width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }
.error-shell > div { display: flex; gap: 10px; }

.site-footer { padding: var(--section-space) max(20px, calc((100vw - var(--max)) / 2)) 24px; background: #051724; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 44px; }
.footer-brand p { color: #a9bdc6; max-width: 430px; }
.footer-brand small { color: #849ca7; display: block; max-width: 500px; }
.footer-grid nav { display: grid; align-content: start; gap: 9px; }
.footer-grid nav strong { margin-bottom: 5px; }
.footer-grid nav a { color: #b6c7ce; font-size: .78rem; text-decoration: none; }
.footer-grid nav a:hover { color: white; }
.footer-base { margin-top: 42px; display: flex; justify-content: space-between; gap: 18px; color: #829aa5; font-size: .68rem; }

.positive { color: #82dfbe; }
.negative { color: #ffaaa2; }
.workspace-header h1, .workspace-header p { width: 100%; max-width: none; }
.workspace-empty h2, .workspace-empty p { width: 100%; max-width: none; }
.tax-review { min-width: 0; max-width: 100%; margin-top: 52px; padding: 34px; border: 1px solid var(--line); background: #f7f4ec; box-sizing: border-box; }
.tax-review .section-heading { margin-bottom: 22px; }
.tax-scope-note { padding: 16px 18px; background: #e8eee8; color: var(--ink); }
.tax-controls { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, .62fr) minmax(0, .82fr); gap: 12px; align-items: start; min-width: 0; max-width: 100%; margin-top: 18px; }
.tax-controls label { display: grid; grid-template-rows: auto 48px auto; gap: 7px; align-content: start; color: var(--ink); font-size: .72rem; font-weight: 800; }
.tax-controls input, .tax-controls select { width: 100%; height: 48px; min-height: 48px; padding: 9px 11px; border: 1px solid #a8b1b3; border-radius: 0; background: white; color: var(--ink); font: inherit; }
.tax-controls [data-tax-country-match] { color: var(--muted); font-size: .68rem; font-weight: 600; line-height: 1.45; }
.tax-controls [data-tax-country-match].is-match { color: var(--emerald-dark); }
.tax-input-suffix { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; height: 48px; min-height: 48px; border: 1px solid #a8b1b3; background: white; }
.tax-input-suffix input { min-width: 72px; border: 0; }
.tax-input-suffix b { padding: 0 10px; color: var(--muted); }
.tax-jurisdiction-guidance { margin-top: 18px; padding: 20px; border: 1px solid #b9c8c2; background: white; }
.tax-jurisdiction-guidance h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 1.35rem; }
.tax-jurisdiction-guidance p { margin: 7px 0; }
.tax-jurisdiction-guidance [data-tax-sources] { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.tax-jurisdiction-guidance a { font-size: .73rem; font-weight: 800; }
.tax-rule-catalog { margin-top: 18px; padding: 22px; background: #e7eee8; }
.tax-rule-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.tax-rule-heading h3, .tax-rule-heading p { margin: 0; }
.tax-rule-heading h3 { font-family: var(--serif); font-size: 1.35rem; }
.tax-rule-heading p { margin-top: 7px; color: var(--muted); font-size: .74rem; }
.tax-rule-heading > strong { flex: 0 0 auto; padding: 7px 10px; background: var(--navy); color: white; font-size: .7rem; }
.tax-rule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.tax-rule-list article { min-width: 0; padding: 18px; background: white; }
.tax-rule-list h4 { margin: 0; font-family: var(--sans); font-size: 1rem; }
.tax-rule-list article > b { display: block; margin-top: 10px; color: var(--emerald-dark); font-size: .74rem; }
.tax-rule-list article > p { margin: 10px 0 0; color: var(--muted); font-size: .72rem; }
.tax-rule-list details { margin-top: 13px; color: var(--muted); font-size: .68rem; }
.tax-rule-list summary { cursor: pointer; color: var(--emerald-dark); font-weight: 850; }
.tax-rule-list details p { margin: 8px 0 0; font-size: .68rem; }
.tax-rule-list details a { display: inline-block; margin-top: 10px; font-weight: 800; }
.tax-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); }
.tax-metrics article { min-width: 0; padding: 18px; background: var(--navy); color: white; }
.tax-metrics span, .tax-metrics strong, .tax-metrics small { display: block; }
.tax-metrics span { color: #b3c6ce; font-size: .7rem; }
.tax-metrics strong { margin: 7px 0; overflow-wrap: anywhere; font-size: 1.25rem; }
.tax-metrics small { color: #91a9b3; font-size: .64rem; }
.tax-candidate-table { width: 100%; max-width: 100%; margin-top: 18px; overflow-x: auto; }
.tax-candidate-table table { min-width: 1180px; }
.tax-candidate-table td:first-child, .tax-candidate-table th:first-child { width: 68px; text-align: center; }
.tax-candidate-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--emerald); }
.tax-candidate-table .tax-input-suffix { max-width: 120px; }
.tax-candidate-table .tax-input-suffix input { min-height: 38px; padding: 7px; }
.tax-candidate-table th:nth-child(3), .tax-candidate-table td:nth-child(3) { width: 38%; }
.tax-transaction-description { display: block; width: min(100%, 54ch); line-height: 1.45; white-space: normal; text-wrap: pretty; overflow-wrap: anywhere; word-break: normal; hyphens: none; }
.tax-candidate-table details { margin-top: 7px; color: var(--muted); font-size: .68rem; }
.tax-candidate-table summary { cursor: pointer; color: var(--emerald); font-weight: 800; }
.tax-candidate-table details p { margin: 6px 0 0; font-size: .68rem; }
.tax-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.tax-actions span, .tax-limit { color: var(--muted); font-size: .7rem; }
.tax-empty { margin-top: 18px; padding: 22px; border: 1px solid var(--line); background: white; }
.tax-empty h3 { font-family: var(--serif); }
.tax-method { margin-top: 30px; padding-top: 26px; }
.tax-method h3 { font-family: var(--serif); font-size: 1.45rem; }
.tax-method li { margin: 8px 0; }
.tax-method p { width: 100%; max-width: none; }

@media (max-width: 1080px) {
  .desktop-nav, .nav-actions > .text-button, .nav-actions > form, .nav-actions > .button, .nav-actions > .nav-user-group { display: none; }
  .nav-shell { justify-content: space-between; }
  .mobile-toggle { display: inline-flex; }
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .hero-copy { width: 100%; max-width: none; }
  .hero-visual img { max-height: 580px; object-fit: cover; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero, .tool-hero, .excel-hero, .csv-hero, .image-reader-hero, .recurring-hero, .cash-flow-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .topic-header-visual { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .page-hero > *, .tool-hero > *, .excel-hero > *, .csv-hero > *, .image-reader-hero > *, .recurring-hero > *, .cash-flow-hero > * { width: 100%; min-width: 0; }
  .page-hero.split img, .magazine-hero img { max-height: 520px; aspect-ratio: 16 / 7; }
  .topic-header-visual img { max-height: 520px; aspect-ratio: 16 / 7; }
  .login-shell > .login-card { grid-template-columns: 1fr; }
  .workspace-header, .result-header { align-items: start; flex-direction: column; }
  .workspace-actions, .result-actions { width: 100%; }
  .article-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 36px; }
  .dashboard-metrics { grid-template-columns: repeat(2, 1fr); }
  .recent-file-grid { grid-template-columns: repeat(2, 1fr); }
  .home-includes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --nav-height: 68px; }
  .nav-shell, .breadcrumb-shell { width: min(100% - 28px, var(--max)); }
  .breadcrumb { flex-wrap: nowrap; overflow-x: auto; padding-block: 9px; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .brand img { width: 38px; height: 38px; }
  .hero, .content-section, .article-header, .article-lead-image, .article-layout, .related-guides, .result-shell { width: calc(100% - 28px); }
  .hero { padding: var(--section-space) 0; }
  .hero h1 { font-size: 48px; }
  .hero-actions { display: grid; }
  .analyzer-band, .method-strip, .privacy-feature, .page-hero, .tool-hero, .cta-panel, .result-header { padding-left: 14px; padding-right: 14px; }
  .analyzer-layout, .method-strip, .privacy-feature, .page-hero, .tool-hero { grid-template-columns: 1fr; }
  .analyzer-band-home { min-height: auto; }
  .analyzer-heading h1 { font-size: 48px; }
  .analysis-preview { order: 2; }
  .metric-grid { grid-template-columns: 1fr; }
  .preview-ledger div { grid-template-columns: 64px 1fr; }
  .preview-ledger b { grid-column: 2; }
  .section-heading { align-items: start; flex-direction: column; }
  .home-includes-panel { padding: var(--section-space) 14px; }
  .home-includes-grid { grid-template-columns: 1fr; }
  .home-include-card { min-height: 0; }
  .home-result-method { width: calc(100% - 28px); padding: var(--section-space) 0; }
  .tool-grid, .tool-grid-wide, .story-list, .hub-stories, .related-guides > div, .candidate-grid, .summary-grid, .faq-grid, .discovery-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-header, .pricing-summary { min-height: 0; }
  .method-points { grid-template-columns: 1fr; }
  .feature-story { grid-template-columns: 1fr; }
  .privacy-feature > div { order: 2; }
  .privacy-actions { align-items: stretch; flex-direction: column; }
  .page-hero.compact { min-height: 0; }
  .page-hero.split img, .magazine-hero img { aspect-ratio: 16 / 9; }
  .topic-header-visual img, .tool-primary-image img { aspect-ratio: 16 / 9; }
  .login-purpose-visual { aspect-ratio: 16 / 9; }
  .tool-primary-image { width: calc(100% - 28px); margin: 28px auto 42px; }
  .tool-upload .upload-form { padding: 14px; }
  .hub-heading { grid-template-columns: 1fr; gap: 4px; }
  .article-header { padding-top: 44px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-index { position: static; }
  .article-toc ul { columns: 1; }
  .practical-workflow > div, .glossary-list, .topic-introduction, .topic-guides > div:last-child { grid-template-columns: 1fr; }
  .format-shell, .ledger-layout { width: calc(100% - 28px); }
  .orientation-grid, .ledger-opening, .analysis-opening, .rules-opening, .reference-opening, .comparison-visual-row, .privacy-control-row, .checklist-opening, .records-cover { grid-template-columns: 1fr; }
  .orientation-grid { gap: 28px; }
  .orientation-grid .article-index { order: 2; }
  .analysis-notebook, .comparison-briefs, .checklist-tests, .ledger-evidence { grid-template-columns: 1fr; }
  .ledger-entry, .privacy-control { grid-template-columns: 1fr; gap: 8px; }
  .ledger-entry h2, .privacy-control h2 { margin-bottom: 12px; }
  .measure-board > div, .decoder-fields > div { grid-template-columns: 1fr; }
  .reference-visual img, .records-visual img { aspect-ratio: 16 / 9; }
  .privacy-visual img { aspect-ratio: 16 / 9; }
  .checklist-tests > .format-limit, .checklist-tests > .contextual-links, .checklist-tests > .source-list, .checklist-tests > .editorial-method { grid-column: auto; }
  .record-file:nth-child(even) { margin-left: 0; }
  .excel-hero, .csv-hero, .image-reader-hero, .recurring-hero, .cash-flow-hero, .excel-workflow, .csv-action-row, .image-quality-board, .image-verification, .pattern-example, .recurring-evidence, .recurring-decision, .cash-boundary, .cash-calculation, .cash-review { grid-template-columns: 1fr; }
  .excel-hero, .csv-hero, .image-reader-hero, .recurring-hero, .cash-flow-hero { padding-left: 14px; padding-right: 14px; }
  .workbook-preview, .excel-workflow, .excel-finish, .csv-action-row, .csv-field-contract, .csv-validation, .csv-evidence, .image-quality-board, .image-review-flow, .image-error-example, .image-verification, .pattern-example, .recurring-evidence, .recurring-decision, .recurring-example, .recurring-experience > .tool-specific-limit, .cash-flow-preview, .cash-boundary, .cash-calculation, .cash-review, .tool-learning-path, .topic-introduction, .topic-questions, .topic-method, .policy-copy { width: calc(100% - 28px); }
  .csv-validation { grid-template-columns: 1fr; }
  .csv-validation .csv-checks { grid-column: auto; }
  .csv-field-contract dl, .pattern-timeline, .cash-metrics { grid-template-columns: 1fr 1fr; }
  .capture-rules { grid-template-columns: 1fr; }
  .cash-equation { grid-template-columns: 1fr; }
  .cash-equation b { text-align: center; }
  .cash-preview-heading { align-items: start; flex-direction: column; }
  .tool-learning-path > div { grid-template-columns: 1fr; }
  .tool-method-cta { grid-template-columns: 1fr; align-items: start; gap: 28px; padding-left: 14px; padding-right: 14px; }
  .tool-method-copy { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; }
  .tool-method-mark { width: 46px; height: 46px; }
  .tool-method-mark svg { width: 27px; height: 27px; }
  .tool-method-cta .button-light { width: 100%; }
  .topic-tool { align-items: start; flex-direction: column; }
  .result-header { flex-direction: column; align-items: start; }
  .result-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .result-metrics { grid-template-columns: 1fr 1fr; }
  .tax-review { padding: 24px 18px; }
  .tax-controls { grid-template-columns: 1fr; }
  .tax-rule-list { grid-template-columns: 1fr; }
  .tax-metrics { grid-template-columns: 1fr 1fr; }
  .delete-result { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .brand span { font-size: .91rem; }
  .mobile-toggle { width: 46px; height: 46px; min-width: 46px; min-height: 46px; }
  .mobile-panel-inner { width: calc(100% - 24px); padding-top: 20px; }
  .mobile-menu-header strong { font-size: 1.2rem; }
  .mobile-account-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mobile-account-actions a, .mobile-account-actions form, .mobile-account-actions button { width: 100%; justify-content: center; }
  .plain-checks { display: grid; }
  .home-include-card { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px 16px; }
  .home-include-icon { width: 44px; height: 44px; }
  .home-include-icon svg { width: 29px; height: 29px; }
  .upload-form { padding: 14px; }
  .analyzer-promises { display: grid; gap: 6px; }
  .upload-zone { min-height: 200px; }
  .result-metrics { grid-template-columns: 1fr; }
  .result-actions { grid-template-columns: 1fr; }
  .tax-metrics { grid-template-columns: 1fr; }
  .tax-actions { align-items: stretch; flex-direction: column; }
  .tax-rule-heading { display: grid; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-base { flex-direction: column; }
  .error-shell > div { flex-direction: column; }
  .workspace-shell { width: calc(100% - 28px); padding-top: 36px; }
  .workspace-header { align-items: start; flex-direction: column; }
  .workspace-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .flow-panel, .candle-panel { grid-column: auto; grid-row: auto; }
  .recurring-columns, .recent-file-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .dashboard-metrics { grid-template-columns: 1fr; }
  .workspace-actions { grid-template-columns: 1fr; }
  .chart-panel { padding: 16px; }
  .chart-panel canvas { height: 260px; }
  .chart-legend { grid-template-columns: 1fr; }
}

.upload-transfer-active { overflow: hidden; }
.upload-transfer-screen { position: fixed; z-index: 1400; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--navy); color: white; }
.upload-transfer-card { width: min(680px, 100%); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px 24px; align-items: center; padding: 38px; background: #0c3042; }
.upload-transfer-card h2 { margin: 0 0 8px; color: white; }
.upload-transfer-card p { max-width: none; margin: 0; color: #c3d3d8; }
.upload-transfer-icon { position: relative; width: 64px; height: 76px; display: grid; place-items: center; border: 3px solid #73dcc1; }
.upload-transfer-icon::before { position: absolute; top: -3px; right: -3px; width: 20px; height: 20px; border-bottom: 3px solid #73dcc1; border-left: 3px solid #73dcc1; background: #0c3042; content: ""; }
.upload-transfer-icon span { width: 29px; height: 3px; background: #73dcc1; box-shadow: 0 9px 0 #73dcc1, 0 18px 0 #73dcc1; animation: upload-lines 1.3s ease-in-out infinite; }
.upload-transfer-track { grid-column: 1 / -1; height: 8px; overflow: hidden; background: #224a5a; }
.upload-transfer-track span { display: block; width: 36%; height: 100%; background: #73dcc1; animation: upload-track 1.5s ease-in-out infinite; }
.upload-transfer-note { grid-column: 1 / -1; font-size: .76rem; text-align: center; }
.upload-error { padding: 12px 14px; background: #fff0ed; color: #8f2d28; font-size: .74rem; font-weight: 750; }
@keyframes upload-lines { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes upload-track { from { transform: translateX(-110%); } to { transform: translateX(310%); } }
@media (max-width: 560px) {
  .upload-transfer-screen { padding: 14px; }
  .upload-transfer-card { grid-template-columns: 54px minmax(0, 1fr); gap: 16px; padding: 24px 18px; }
  .upload-transfer-icon { width: 50px; height: 60px; }
  .upload-transfer-icon::before { width: 15px; height: 15px; }
  .upload-transfer-card h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

