:root {
  --ink: #14213d;
  --muted: #5d667a;
  --paper: #fffdf7;
  --surface: #ffffff;
  --soft: #f4f6ff;
  --line: #dfe3ee;
  --blue: #2447ff;
  --blue-dark: #1731c9;
  --yellow: #ffd84d;
  --coral: #ff6f61;
  --green: #39c98b;
  --pink: #ff89c6;
  --violet: #8b72ff;
  --orange: #ffad5a;
  --shadow: 0 18px 50px rgba(20, 33, 61, .10);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.58; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.035em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { width: min(calc(100% - 40px), var(--max)); min-height: 86px; margin: 0 auto; display: flex; align-items: center; gap: 42px; border-bottom: 1px solid rgba(20, 33, 61, .12); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 22px; font-weight: 860; letter-spacing: -.05em; }
.brand-mark { width: 38px; height: 34px; border-radius: 12px 12px 12px 4px; display: grid; place-items: center; color: var(--ink); background: var(--yellow); font-weight: 900; box-shadow: 4px 4px 0 var(--ink); }
.brand-word b { color: var(--blue); }
.site-header nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 750; }
.site-header nav a, .header-search { padding: 12px 0; }
.site-header nav a:hover, .header-search:hover { color: var(--blue); }
.header-search { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 750; background: white; }

.home-hero { min-height: 610px; padding: 92px 24px 72px; text-align: center; color: white; background: var(--blue); position: relative; overflow: hidden; }
.home-hero::before, .home-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.home-hero::before { width: 420px; height: 420px; left: -210px; bottom: -230px; background: var(--coral); }
.home-hero::after { width: 360px; height: 360px; right: -130px; top: -190px; background: var(--yellow); }
.home-hero > * { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.hero-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,216,77,.18); }
.home-hero h1 { margin: 28px 0 18px; font-size: clamp(52px, 7vw, 92px); letter-spacing: -.065em; }
.home-hero h1 em { color: var(--yellow); font-style: normal; }
.home-hero > p { max-width: 670px; margin: 0 auto 34px; font-size: 20px; color: #e4e8ff; }
.global-search { max-width: 780px; min-height: 70px; margin: 0 auto; padding: 8px 8px 8px 20px; display: flex; align-items: center; gap: 12px; border-radius: 18px; background: white; box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.global-search > span { color: var(--blue); font-size: 30px; transform: rotate(-15deg); }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 18px; }
.global-search button { border: 0; border-radius: 12px; padding: 15px 24px; color: white; background: var(--ink); font-weight: 820; cursor: pointer; }
.global-search button:hover { background: var(--blue-dark); }
.search-suggestions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; font-size: 13px; color: #dce3ff; }
.search-suggestions a { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.12); }
.search-suggestions a:hover { background: rgba(255,255,255,.23); }
.search-results { max-width: 780px; margin: 10px auto 0; text-align: left; color: var(--ink); border-radius: 18px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.search-results a { display: block; padding: 14px 18px; border-top: 1px solid var(--line); }
.search-results a:first-child { border-top: 0; }
.search-results a:hover { background: var(--soft); }
.search-results small { color: var(--blue); font-weight: 800; text-transform: uppercase; }
.search-results strong { display: block; }

.proof-strip { width: min(calc(100% - 40px), var(--max)); margin: -32px auto 70px; padding: 24px 30px; display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr; align-items: center; gap: 18px; position: relative; z-index: 3; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.proof-strip div { padding-right: 18px; border-right: 1px solid var(--line); }
.proof-strip strong { display: block; font-size: 28px; line-height: 1; color: var(--blue); }
.proof-strip span { font-size: 13px; color: var(--muted); }
.proof-strip p { margin: 0; text-align: right; font-size: 17px; }

.section-shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 72px 0; }
.soft-section { width: 100%; max-width: none; padding-left: max(20px, calc((100vw - var(--max)) / 2)); padding-right: max(20px, calc((100vw - var(--max)) / 2)); background: var(--soft); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 32px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(34px, 4vw, 52px); }
.section-heading > a { color: var(--blue); font-weight: 800; }
.kicker { display: block; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .16em; }

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.category-card { min-height: 148px; padding: 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 20px; background: white; transition: transform .2s, box-shadow .2s, border-color .2s; }
.category-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow); }
.category-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--ink); background: var(--soft); font-size: 25px; font-weight: 900; }
.category-card h3 { margin: 0 0 8px; font-size: 23px; }
.category-card p { margin: 0; color: var(--muted); font-size: 14px; }
.category-card > b { color: var(--blue); font-size: 22px; }
.category-card.blue .category-icon, .topic-hero.blue .topic-icon { background: #dce3ff; }
.category-card.violet .category-icon, .topic-hero.violet .topic-icon { background: #e9e3ff; }
.category-card.yellow .category-icon, .topic-hero.yellow .topic-icon { background: #fff1ad; }
.category-card.green .category-icon, .topic-hero.green .topic-icon { background: #d7f8e9; }
.category-card.coral .category-icon, .topic-hero.coral .topic-icon { background: #ffe0dc; }
.category-card.navy .category-icon, .topic-hero.navy .topic-icon { color: white; background: var(--ink); }
.category-card.pink .category-icon, .topic-hero.pink .topic-icon { background: #ffe0f0; }
.category-card.orange .category-icon, .topic-hero.orange .topic-icon { background: #ffe9d1; }

.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.content-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.content-card > a { height: 100%; padding: 26px; display: flex; flex-direction: column; }
.content-card h3 { margin: 18px 0 12px; font-size: 24px; }
.content-card p { color: var(--muted); font-size: 14px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 760; text-transform: uppercase; letter-spacing: .04em; }
.category-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.category-dot.violet { background: var(--violet); }.category-dot.yellow { background: #e7b800; }.category-dot.green { background: var(--green); }.category-dot.coral { background: var(--coral); }.category-dot.navy { background: var(--ink); }.category-dot.pink { background: var(--pink); }.category-dot.orange { background: var(--orange); }
.read-link { margin-top: auto; padding-top: 18px; color: var(--blue); font-size: 14px; font-weight: 850; }
.read-link b { display: inline-block; transition: transform .2s; }
a:hover .read-link b { transform: translateX(4px); }

.split-feature { margin-top: 70px; margin-bottom: 70px; padding: 58px; display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 70px; color: white; border-radius: 36px; background: var(--ink); overflow: hidden; }
.split-feature h2 { margin: 12px 0 18px; font-size: clamp(42px, 5vw, 66px); }
.split-feature p { max-width: 560px; color: #c7cede; font-size: 17px; }
.primary-button, .secondary-button { min-height: 48px; padding: 13px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 850; }
.primary-button { color: white; background: var(--blue); }
.primary-button:hover { background: var(--blue-dark); }
.split-feature .primary-button { color: var(--ink); background: var(--yellow); }
.secondary-button { border: 1px solid var(--line); background: white; }
.tool-preview { padding: 28px; border-radius: 24px; color: var(--ink); background: var(--yellow); transform: rotate(2deg); box-shadow: 16px 16px 0 var(--blue); }
.preview-label { font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.preview-expression { margin-top: 28px; font-size: 17px; }
.tool-preview > strong { display: block; margin: 5px 0 24px; font-size: 56px; letter-spacing: -.06em; }
.tool-preview > strong span { font-size: .55em; }
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.preview-grid i { padding: 8px; border-radius: 8px; text-align: center; font-style: normal; background: rgba(255,255,255,.45); }

.headline-list { border-top: 1px solid var(--ink); }
.headline-list > a { padding: 26px 4px; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.headline-list > a:hover h3 { color: var(--blue); }
.headline-list > a > span { color: var(--blue); font-weight: 900; }
.headline-list small { color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.headline-list h3 { margin: 4px 0 6px; font-size: 27px; }
.headline-list p { margin: 0; color: var(--muted); font-size: 14px; }

.method-banner { width: min(calc(100% - 40px), var(--max)); margin: 40px auto 100px; padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 38px; border-radius: 28px; background: var(--yellow); }
.method-banner h2 { margin: 7px 0 0; font-size: 35px; }
.method-banner p { margin: 0; }
.method-banner a { font-weight: 850; }

.breadcrumb { width: min(calc(100% - 40px), var(--max)); margin: 26px auto 0; display: flex; gap: 9px; color: var(--muted); font-size: 12px; }
.breadcrumb a:hover { color: var(--blue); }
.listing-hero { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 75px 0 56px; }
.listing-hero h1 { margin: 10px 0 16px; max-width: 800px; font-size: clamp(48px, 7vw, 78px); }
.listing-hero > p { max-width: 650px; color: var(--muted); font-size: 18px; }
.inline-search { max-width: 620px; min-height: 58px; margin-top: 28px; padding: 0 18px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 10px 30px rgba(20,33,61,.06); }
.inline-search span { color: var(--blue); font-size: 25px; }
.inline-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.listing-section { padding-top: 12px; }
.filter-row { margin-bottom: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.filter-row button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; font-size: 12px; font-weight: 750; }
.filter-row button:hover, .filter-row button.active { color: white; border-color: var(--blue); background: var(--blue); }
.filter-row small { opacity: .7; }
.empty-filter { padding: 40px; text-align: center; color: var(--muted); }

.topic-hero { width: min(calc(100% - 40px), var(--max)); margin: 45px auto 0; padding: 52px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; border-radius: 30px; background: var(--soft); }
.topic-icon { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 22px; font-size: 42px; font-weight: 900; background: white; }
.topic-hero h1 { margin: 7px 0 15px; font-size: clamp(46px, 6vw, 72px); }
.topic-hero p { max-width: 720px; color: var(--muted); font-size: 18px; }
.topic-counts { display: flex; gap: 10px; }
.topic-counts span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: 12px; font-weight: 760; }

.term-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.term-card { min-height: 210px; padding: 23px; border: 1px solid var(--line); border-radius: 19px; background: white; transition: border-color .2s, transform .2s; }
.term-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.term-card > span { color: var(--blue); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.term-card h3 { margin: 22px 0 10px; font-size: 22px; }
.term-card p { margin: 0; color: var(--muted); font-size: 13px; }
.term-page { width: min(calc(100% - 40px), 880px); margin: 50px auto 100px; }
.term-page header { position: relative; padding: 58px; border-radius: 30px; background: var(--soft); overflow: hidden; }
.term-page h1 { margin: 38px 0 20px; font-size: clamp(52px, 8vw, 86px); }
.term-definition { max-width: 700px; margin: 0; font-size: 22px; }
.term-letter { position: absolute; right: 28px; top: 0; color: rgba(36,71,255,.07); font-size: 190px; font-weight: 950; line-height: 1; }
.term-body { padding: 42px 58px; }
.term-body section { margin-bottom: 42px; }
.term-body h2 { margin-top: 8px; font-size: 31px; }
.term-body p { font-size: 17px; }
.example-box { padding: 28px; border-left: 5px solid var(--blue); background: var(--soft); }
.example-box > span { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.example-box p { margin: 10px 0 0; }
.term-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.term-links a { padding: 14px; display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; font-weight: 750; }
.term-links a:hover { border-color: var(--blue); color: var(--blue); }
.review-line { padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px!important; }

.article-layout { width: min(calc(100% - 40px), var(--max)); margin: 52px auto 80px; display: grid; grid-template-columns: minmax(0, 780px) 300px; gap: 64px; align-items: start; }
.article-header h1 { margin: 20px 0; font-size: clamp(46px, 6vw, 72px); }
.dek { color: var(--muted); font-size: 20px; }
.answer-box { margin: 36px 0; padding: 28px; border-radius: 18px; background: var(--yellow); box-shadow: 8px 8px 0 var(--ink); }
.answer-box > span { font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.answer-box p { margin: 10px 0 0; font-size: 18px; font-weight: 650; }
.article-index { margin: 42px 0; padding: 25px 30px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.article-index ol { margin: 12px 0 0; padding-left: 20px; columns: 2; }
.article-index li { padding: 4px 10px 4px 0; }
.article-index a:hover { color: var(--blue); }
.steps > h2, .faq > h2, .sources > h2 { margin-bottom: 28px; font-size: 36px; }
.step { padding: 25px 0; display: grid; grid-template-columns: 50px 1fr; gap: 18px; border-top: 1px solid var(--line); }
.step > span { color: var(--blue); font-weight: 900; }
.step h3 { margin: 0 0 8px; font-size: 24px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.watch-box { margin: 44px 0; padding: 30px; border-radius: 20px; background: #ffe7e3; }
.watch-box > div { display: flex; align-items: center; gap: 12px; }
.watch-box > div > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--coral); font-weight: 900; }
.watch-box h2 { margin: 0; font-size: 28px; }
.watch-box li { margin: 9px 0; }
.faq { margin-top: 55px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding: 18px 2px; cursor: pointer; font-weight: 800; }
details p { padding: 0 0 18px; color: var(--muted); }
.sources { margin-top: 54px; }
.sources ul { padding: 0; list-style: none; }
.sources a { display: flex; justify-content: space-between; padding: 15px 0; border-top: 1px solid var(--line); color: var(--blue); font-weight: 750; }
.article-update { margin-top: 48px; padding: 25px; border-radius: 18px; background: var(--soft); }
.article-update p { color: var(--muted); }
.article-update a { color: var(--blue); font-weight: 800; }
.article-aside { position: sticky; top: 24px; display: grid; gap: 14px; }
.aside-card, .share-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.aside-card .category-icon { margin-bottom: 20px; }
.aside-card small, .share-card small { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.aside-card h2 { margin: 0 0 10px; font-size: 25px; }
.aside-card p { color: var(--muted); font-size: 13px; }
.aside-card > a { color: var(--blue); font-size: 13px; font-weight: 800; }
.aside-card.compact > a { padding: 11px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--ink); }
.copy-link { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); cursor: pointer; font-weight: 800; }
.copy-feedback { display: block; min-height: 20px; margin-top: 6px; color: var(--green); font-size: 11px; }
.related-section { padding-bottom: 100px; }

.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-card { min-height: 270px; padding: 23px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 19px; background: white; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tool-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow); }
.tool-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--blue); font-size: 20px; font-weight: 900; }
.tool-category { margin-top: 16px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tool-card h3 { margin: 8px 0 10px; font-size: 21px; }
.tool-card p { color: var(--muted); font-size: 13px; }
.calc-intro { width: min(calc(100% - 40px), var(--max)); margin: 45px auto 35px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.calc-intro h1 { margin: 9px 0 12px; font-size: clamp(48px, 6vw, 72px); }
.calc-intro p { max-width: 650px; color: var(--muted); font-size: 18px; }
.calc-symbol { width: 90px; height: 90px; display: grid; place-items: center; border-radius: 24px; background: var(--yellow); box-shadow: 8px 8px 0 var(--ink); font-size: 45px; font-weight: 900; }
.calc-layout { width: min(calc(100% - 40px), var(--max)); margin: 0 auto 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calc-box, .result-box { min-height: 470px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.result-box { color: white; background: var(--ink); }
.box-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.result-box .box-heading { border-color: rgba(255,255,255,.18); }
.box-heading h2 { margin: 0; font-size: 24px; }
.box-heading > span { font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.fields { padding: 24px 0 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.field input { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--paper); }
.field input:focus { outline: 3px solid rgba(36,71,255,.16); border-color: var(--blue); }
.actions { display: flex; gap: 9px; margin-top: 8px; }
.local-note, .result-notice { margin: 20px 0 0; color: var(--muted); font-size: 11px; }
.local-note::first-letter { color: var(--green); }
.result-notice { color: #aeb8cd; }
.error { color: #b91c1c; font-size: 13px; }
.empty-result { min-height: 270px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-result > span { color: var(--yellow); font-size: 65px; font-weight: 900; }
.empty-result h3 { margin: 4px 0 5px; font-size: 25px; }
.empty-result p { color: #aeb8cd; }
.metric { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.metric span { display: block; color: #aeb8cd; font-size: 12px; }
.metric strong { display: block; margin-top: 3px; color: var(--yellow); font-size: 34px; }
#result-actions { margin-top: 20px; }
#result-actions .secondary-button { margin-right: 6px; color: var(--ink); }
.tool-content { width: min(calc(100% - 40px), var(--max)); margin: 0 auto 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tool-content article { padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.tool-content h2 { margin: 8px 0 15px; font-size: 32px; }
.tool-content h3 { margin-top: 26px; }
.tool-content p { color: var(--muted); }
.formula { padding: 20px; border-radius: 12px; color: white; background: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.source-note { margin-top: 20px; padding: 18px; border-radius: 12px; background: var(--soft); }
.source-note strong, .source-note a { display: block; }
.source-note a { margin-top: 8px; color: var(--blue); }

.legal-page { width: min(calc(100% - 40px), 820px); min-height: 65vh; margin: 65px auto 100px; }
.legal-page h1 { margin: 9px 0 30px; font-size: clamp(48px, 7vw, 76px); }
.legal-page p { color: var(--muted); font-size: 18px; }
.legal-page .secondary-button { margin-top: 20px; }
.not-found { min-height: 100vh; padding: 80px 24px; display: grid; place-items: center; align-content: center; text-align: center; background: var(--soft); }
.not-found > span { color: var(--blue); font-size: 90px; font-weight: 950; }
.not-found h1 { margin: 0 0 12px; font-size: 48px; }
.not-found p { color: var(--muted); }

.site-footer { padding: 62px max(20px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.2fr; gap: 45px; color: white; background: var(--ink); }
.site-footer .brand-word b { color: var(--yellow); }
.footer-brand p { color: #aeb8cd; }
.site-footer > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.site-footer > div strong { color: var(--yellow); margin-bottom: 6px; }
.site-footer a:hover { color: var(--yellow); }
.footer-note { color: #aeb8cd; font-size: 11px; }

@media (max-width: 980px) {
  .site-header { gap: 20px; }
  .site-header nav { display: none; }
  .header-search { margin-left: auto; }
  .proof-strip { grid-template-columns: repeat(3, 1fr); }
  .proof-strip p { grid-column: 1 / -1; text-align: left; }
  .category-grid, .calc-layout, .tool-content { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid, .term-grid { grid-template-columns: repeat(3, 1fr); }
  .split-feature { grid-template-columns: 1fr 350px; gap: 35px; padding: 42px; }
  .method-banner { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; grid-template-columns: repeat(3, 1fr); }
  .site-footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .site-header { width: calc(100% - 28px); min-height: 72px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 34px; height: 31px; }
  .header-search { padding: 8px 11px; }
  .home-hero { min-height: 560px; padding-top: 70px; }
  .home-hero h1 { font-size: 50px; }
  .home-hero > p { font-size: 17px; }
  .global-search { min-height: 62px; padding-left: 14px; }
  .global-search button { padding: 12px 14px; }
  .search-suggestions { display: none; }
  .proof-strip { grid-template-columns: 1fr; margin-top: -20px; }
  .proof-strip div { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .section-shell { width: calc(100% - 28px); padding: 55px 0; }
  .soft-section { width: 100%; padding-left: 14px; padding-right: 14px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2 { font-size: 37px; }
  .category-grid, .content-grid, .term-grid, .tool-grid { grid-template-columns: 1fr; }
  .category-card { min-height: auto; padding: 19px; }
  .content-card h3 { font-size: 23px; }
  .split-feature { width: calc(100% - 28px); margin-top: 40px; margin-bottom: 40px; padding: 30px; grid-template-columns: 1fr; border-radius: 25px; }
  .tool-preview { max-width: 360px; transform: none; }
  .headline-list > a { grid-template-columns: 38px 1fr; }
  .headline-list > a > b { display: none; }
  .headline-list h3 { font-size: 22px; }
  .method-banner { width: calc(100% - 28px); padding: 30px; }
  .breadcrumb { width: calc(100% - 28px); white-space: nowrap; overflow-x: auto; }
  .listing-hero, .topic-hero, .calc-intro, .calc-layout, .tool-content, .article-layout, .term-page, .legal-page { width: calc(100% - 28px); }
  .listing-hero h1 { font-size: 48px; }
  .topic-hero { padding: 28px; grid-template-columns: 1fr; }
  .topic-hero h1 { font-size: 46px; }
  .term-page header { padding: 35px 28px; }
  .term-page h1 { font-size: 50px; }
  .term-definition { font-size: 19px; }
  .term-body { padding: 35px 5px; }
  .term-links { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 44px; }
  .dek { font-size: 18px; }
  .article-index ol { columns: 1; }
  .answer-box { box-shadow: 5px 5px 0 var(--ink); }
  .article-aside { grid-template-columns: 1fr; }
  .calc-intro { align-items: flex-start; }
  .calc-symbol { display: none; }
  .calc-intro h1 { font-size: 45px; }
  .calc-box, .result-box { padding: 20px; }
  .fields { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 50px; }
}

@media print {
  .site-header, .site-footer, .breadcrumb, .actions, #result-actions, .article-aside { display: none!important; }
  body { background: white; }
  .calc-layout, .article-layout { width: 100%; display: block; }
  .calc-box { display: none; }
  .result-box { color: black; background: white; }
}
