@font-face {
  font-family: Shell Noto;
  src: url("./assets/noto-sans-tc.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf6ed;
  --light: #fffaf1;
  --ink: #16281b;
  --muted: #455443;
  --green: #e4ecd3;
  --line: #c6cdb6;
  --orange: #ab470d;
  --orange-hover: #8d370c;
  --brush: #eb7520;
  --radius: 16px;
  font: 16px/1.58 "Shell Noto", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: #a4ae91 var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: #f8bf80; color: var(--ink); }
:focus-visible { outline: 3px solid #9d4110; outline-offset: 4px; }
[hidden] { display: none !important; }
[data-icon] { display: inline-flex; flex: 0 0 auto; vertical-align: middle; }
[data-icon] svg { width: 1.25em; height: 1.25em; }
.container { width: min(100% - 52px, 1320px); margin-inline: auto; }
.skip { position: fixed; z-index: 20; padding: .5rem 1rem; top: -5rem; background: var(--light); }
.skip:focus { top: .5rem; }
.sprite {
  display: block;
  background-image: url("./assets/shell-illustrations.webp");
  background-repeat: no-repeat;
  background-size: var(--crop-size) auto;
  background-position: var(--crop-x) var(--crop-y);
}
.mascot { --crop-size: 1199%; --crop-x: 2.7298%; --crop-y: .2421%; aspect-ratio: 100/73; width: 77px; }
.hero-art { --crop-size: 168.8732%; --crop-x: 100%; --crop-y: 8.2519%; aspect-ratio: 710/391; }
.art-survival { --crop-size: 487.3984%; --crop-x: 4.3022%; --crop-y: 54.8709%; aspect-ratio: 246/111; }
.art-down { --crop-size: 485.4251%; --crop-x: 34.979%; --crop-y: 54.9085%; aspect-ratio: 247/110; }
.art-rent { --crop-size: 485.4251%; --crop-x: 65.2311%; --crop-y: 55.298%; aspect-ratio: 247/104; }
.art-shock { --crop-size: 487.3984%; --crop-x: 95.5929%; --crop-y: 55.2239%; aspect-ratio: 246/106; }
.art-salary { --crop-size: 560.2804%; --crop-x: 2.132%; --crop-y: 79.9296%; aspect-ratio: 214/176; }
.art-cash { --crop-size: 618.0412%; --crop-x: 42.4876%; --crop-y: 79.8593%; aspect-ratio: 194/175; }
.art-floorplan { --crop-size: 596.5174%; --crop-x: 81.4629%; --crop-y: 79.9472%; aspect-ratio: 201/175; }

.header { background: #faf7ee; border-bottom: 1px solid #ede6d5; position: relative; z-index: 3; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; flex-shrink: 0; }
.brand .mascot { mix-blend-mode: multiply; }
.wordmark { display: grid; justify-items: center; line-height: 1.12; white-space: nowrap; }
.wordmark strong { font-size: clamp(1.45rem, 2.55vw, 2.15rem); letter-spacing: -.035em; font-weight: 950; }
.wordmark small { font-size: .84rem; font-weight: 800; letter-spacing: .09em; margin-top: .23rem; }
.header .wordmark { color: #0c3216; }
.header .wordmark-accent { color: #ac460a; }
.nav { display: flex; flex: 1; align-items: center; justify-content: space-evenly; border-left: 1px solid var(--line); gap: .65rem; padding-left: 1.05rem; }
.nav a { display: flex; align-items: center; gap: .4rem; font-weight: 850; white-space: nowrap; text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--orange); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; width: fit-content; min-height: 44px; padding: .55em 1.05em; border: 1px solid transparent; border-radius: 999px; background: linear-gradient(175deg, #b84e10, #a3410d); color: #fffaf0; font-weight: 850; text-align: center; line-height: 1.25; text-decoration: none; }
.button:hover { background: var(--orange-hover); }
.button-outline { background: var(--light); color: var(--orange); border-color: var(--orange); }
.button-outline:hover { background: #fae7d4; }
.nav-cta { white-space: nowrap; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; background: var(--light); width: 44px; height: 44px; align-items: center; justify-content: center; }

.hero { background: radial-gradient(ellipse at 20% 15%, #fff8e8 0%, #f4ebd8 61%, #dce3d5 100%); overflow: hidden; }
.hero-inner { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(380px, 34.25vw, 475px); }
.hero-copy { position: relative; z-index: 1; width: 51%; padding: 1.65rem 0 1.5rem clamp(0rem, 3.6vw, 3.2rem); }
.hero h1 { transform: rotate(-3deg); transform-origin: left center; width: max-content; max-width: 104%; color: #132619; font-size: clamp(3.8rem, 6.65vw, 5.85rem); line-height: .99; letter-spacing: -.04em; font-weight: 950; text-shadow: 1px 2px #fffbef; margin-bottom: .9rem; }
.hero-emphasis { position: relative; padding-left: .26em; isolation: isolate; }
.hero-emphasis::after, .brush::after { content: ""; position: absolute; pointer-events: none; z-index: -1; background: var(--brush); border-radius: 80% 90% 38% 25%; transform: rotate(-3deg); }
.hero-emphasis::after { width: 51%; height: .13em; bottom: -.035em; right: 5%; }
.hero-lead { font-size: clamp(1.05rem, 2.08vw, 1.65rem); font-weight: 900; letter-spacing: .015em; line-height: 1.45; }
.hero-description { max-width: 36ch; font-weight: 600; margin: .52rem 0 .85rem; line-height: 1.48; }
.hero-cta { font-size: clamp(1.02rem, 1.82vw, 1.42rem); border: 3px solid #fff9e5; min-height: 53px; padding-inline: 1em; box-shadow: 0 3px 13px #7d3b1230; }
.promises { display: flex; flex-wrap: wrap; gap: .28rem .8rem; padding: 0 .1rem; margin: .55rem 0 0; list-style: none; color: #354837; font-size: .875rem; font-weight: 750; }
.promises li { display: flex; align-items: center; gap: .23em; white-space: nowrap; }
.promises [data-icon] { color: #3c6744; }
.hero-art { position: absolute; width: min(66%, 890px); right: calc((100% - 100vw) / 2); bottom: 0; mask-image: linear-gradient(to right, transparent 6%, #000 18%); }
.brush { position: relative; isolation: isolate; white-space: nowrap; }
.brush::after { left: 1%; width: 98%; height: .17em; bottom: -.17em; }

.home-tools { padding-top: .9rem; }
.tools-heading { text-align: center; font-size: clamp(2rem, 3.55vw, 3rem); line-height: 1.18; font-weight: 950; letter-spacing: -.037em; margin-bottom: 1.2rem; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.tool-card { display: flex; flex-direction: column; align-items: stretch; position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); border: 1px solid #d6dfc1; background: radial-gradient(ellipse at 55% 39%, #eef0d9, #dfe8cb 72%, #d5e2c2); padding: .8rem .95rem .4rem; }
.tool-card h3 { font-size: clamp(1.24rem, 2.27vw, 1.95rem); font-weight: 950; letter-spacing: -.025em; line-height: 1.25; }
.tool-card p { margin-top: .38rem; margin-bottom: .36rem; min-height: 3.7em; line-height: 1.35; font-weight: 650; }
.tool-art { width: min(100%, 320px); margin: auto auto 0; mask-image: linear-gradient(to bottom, transparent, #000 11% 91%, transparent), linear-gradient(to right, transparent, #000 7% 93%, transparent); mask-composite: intersect; }
.tool-card .button { border: 2px solid #fffdf4; margin: -.14rem 0 0 auto; z-index: 1; padding: .38em 1.1em; min-height: 39px; }
.tool-card:focus-within { overflow: visible; }

.home-lab { padding-top: 1.4rem; }
.section-heading { display: flex; align-items: baseline; gap: .65rem; margin-bottom: 1.1rem; }
.section-heading h2, .trap-heading h2 { font-size: clamp(1.55rem, 2.62vw, 2.3rem); font-weight: 950; letter-spacing: -.035em; line-height: 1.16; }
.section-heading p { color: var(--muted); padding-left: .53rem; }
.section-icon { align-self: center; font-size: 1.9rem; }
.lab-icon { transform: rotate(-13deg); color: var(--orange); }
.text-link { color: var(--orange); font-weight: 820; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.text-link [data-icon] { font-size: .8em; }
.section-heading > .text-link { margin-left: auto; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.article-card { display: grid; grid-template-columns: 54% 1fr; align-items: stretch; min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: clip; background: #fbf8ee; }
.article-card:not(:has(.article-art)) { grid-template-columns: 1fr; }
.article-video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border: 0; border-radius: 12px; }
.article-art { width: 100%; align-self: center; border-radius: 9px; }
.article-copy { display: flex; flex-direction: column; align-items: flex-start; padding: .64rem .66rem; }
.article-copy h3 { font-size: clamp(1.02rem, 1.56vw, 1.35rem); font-weight: 920; line-height: 1.28; letter-spacing: -.022em; }
.article-title-link { text-decoration: none; display: inline-block; }
.article-title-link:hover { color: var(--orange); text-decoration: underline; }
.article-art-link { display: block; align-self: center; text-decoration: none; }
.article-copy p { font-size: .89rem; line-height: 1.45; margin: .4rem 0 .58rem; }
.article-copy .article-category { color: var(--muted); font-size: .77rem; font-weight: 800; margin: 0 0 .24rem; }
.article-copy .text-link { margin-top: auto; font-size: .9rem; }

.home-traps { padding-block: 1.6rem 1.1rem; }
.ad-band { display: none; margin-block: 1.3rem .2rem; }
.ad-slot {
  --creative-width: 970px;
  --creative-height: 90px;
  inline-size: min(100%, var(--creative-width));
  margin-inline: auto;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #e6dfcc;
  background: #f5f0e4;
  overflow: clip;
}
.ad-slot-label { display: block; block-size: 24px; text-align: center; font-size: .78rem; color: var(--muted); line-height: 24px; }
.ad-slot-surface { block-size: var(--creative-height); overflow: clip; }
.ad-slot-surface > :is(ins, iframe) { display: block; inline-size: 100%; block-size: 100%; border: 0; }
.trap-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem; padding: .7rem .9rem; background: #eaeada; border-radius: var(--radius); }
.trap-heading { display: flex; align-items: flex-start; gap: .45rem; }
.trap-heading h2 { font-size: clamp(1.19rem, 2.15vw, 1.8rem); }
.trap-heading p { margin-top: .55rem; font-size: .88rem; }
.warning-icon svg { fill: #ffc85d; }
.trap-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; border-radius: 10px; background: #faf8ef; }
.trap-links a { display: grid; align-content: center; justify-items: center; padding: .5rem .25rem; gap: .2rem; font-size: .86rem; font-weight: 850; text-decoration: none; text-align: center; }
.trap-links a + a { border-left: 1px solid var(--line); }
.trap-links a:hover { color: var(--orange); }
.trap-links [data-icon] { font-size: 1.65rem; }
.trap-cta { font-size: .91rem; white-space: nowrap; }
.footer { background: #243629; color: #fff9eb; }
.footer-inner { display: flex; align-items: center; gap: 1.1rem; padding-block: .72rem; }
.footer-brand .mascot { width: 55px; border-radius: 45%; mix-blend-mode: normal; }
.footer-brand strong { font-size: 1.25rem; }
.footer-brand small { font-size: .72rem; }
.footer .wordmark-accent { color: #ffb253; }
.footer-inner p { font-size: .875rem; padding-left: 1rem; border-left: 1px solid #abb49f; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-left: auto; font-size: .91rem; }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { text-decoration: underline; }
.footer :focus-visible { outline-color: #ffc278; }

.page { padding-block: 1.4rem 3.5rem; min-height: 68vh; }
.crumb { display: flex; gap: .35rem; align-items: center; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.crumb a:hover { color: var(--orange); }
.page-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(125px, 245px); align-items: end; gap: 1rem; margin: 1.6rem 0 1.55rem; }
.page-header:not(:has(.sprite)) { grid-template-columns: 1fr; }
.page-header h1 { font-size: clamp(2.15rem, 5.5vw, 4rem); font-weight: 950; line-height: 1.15; letter-spacing: -.035em; }
.page-header p { margin-top: .7rem; max-width: 63ch; color: var(--muted); font-size: 1.06rem; }
.page-header .sprite { width: 100%; border-radius: var(--radius); }
.tool-page .page-header .sprite { mask-image: linear-gradient(to right, transparent, #000 10% 89%, transparent); }
.tool-page, .read-page { max-width: 1120px; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: 1rem; }
.calculator { background: var(--light); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(.95rem, 2.4vw, 1.5rem); }
.calculator h2, .results h2 { font-size: 1.35rem; font-weight: 920; line-height: 1.3; }
.presets { display: flex; flex-wrap: wrap; gap: .38rem; margin: .72rem 0 1rem; }
.presets button { text-align: left; border: 1px solid var(--line); background: #edf0dd; color: var(--ink); border-radius: 999px; padding: .35em .7em; font-size: .87rem; font-weight: 750; }
.presets button:hover { background: #dbe5c6; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .82rem .7rem; }
.field { display: flex; flex-direction: column; gap: .28rem; min-width: 0; }
.field label { font-weight: 780; line-height: 1.35; }
.field small { font-size: .86em; font-weight: 650; color: var(--muted); }
input[type="number"], .field select { width: 100%; min-width: 0; min-height: 43px; padding: .42rem .55rem; border: 1px solid #aab29b; border-radius: 8px; background: #fffcf6; font-variant-numeric: tabular-nums; caret-color: var(--orange); }
.program-toggle { display: flex; align-items: center; gap: .55rem; font-weight: 820; margin-block: .9rem; }
.program-toggle input { width: 1.25rem; height: 1.25rem; flex: none; }
.qingan-options { margin-block: .55rem .85rem; }
.qingan-options .field:has(select) { justify-content: space-between; }
.program-report { margin-top: .8rem; border-block-start: 1px solid #bccaab; padding-block-start: .65rem; }
.program-report h3 { font-size: 1.05rem; }
.program-report p, .program-report li { margin-top: .25rem; font-size: .93rem; }
.program-report ul { margin: .4rem 0 0; padding-inline-start: 1.2rem; }
.phase-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: .15rem .5rem; }
input[aria-invalid="true"] { border-color: #a53827; }
input[type="range"], input[type="checkbox"], progress { accent-color: #547451; }
.field input[type="range"] { width: 100%; margin: .1rem 0; }
.calculator details { margin-top: 1rem; padding-top: .7rem; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 825; }
.calculator details .fields { margin-top: .62rem; }
.form-error { color: #932f23; font-weight: 750; margin: .7rem 0 0; }
.calculator-note { color: var(--muted); font-size: .9rem; margin-top: .85rem; }
.results { min-width: 0; background: #e8edd7; border-radius: var(--radius); border: 1px solid #cbd5b9; padding: clamp(.95rem, 2.4vw, 1.5rem); }
.results[aria-busy="true"] { visibility: hidden; }
.result-banner { background: #d8e6c8; padding: .75rem .9rem; border-radius: 11px; }
.result-banner:has(.result-art) { display: grid; grid-template-columns: 1fr minmax(76px, 28%); gap: .45rem; align-items: center; }
.result-art { width: 100%; mix-blend-mode: multiply; mask-image: radial-gradient(ellipse at 50% 54%, #000 45%, transparent 77%); }
.result-banner[data-tone="warn"] { background: #f8e1aa; }
.result-banner[data-tone="danger"] { background: #f3d8cf; color: #742d20; }
.result-banner p { margin-top: .2rem; line-height: 1.45; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: .85rem 0; }
.metrics div { min-width: 0; background: #faf8ee; padding: .55rem .65rem; border-radius: 9px; }
.metrics dt { color: var(--muted); font-weight: 750; font-size: .9rem; }
.metrics dd { margin: .08rem 0 0; font-size: clamp(1.1rem, 2.8vw, 1.65rem); font-weight: 900; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.results figure { margin: .9rem 0 .6rem; padding: .7rem; background: var(--light); border-radius: 10px; }
.results canvas { display: block; max-width: 100%; width: 100%; height: auto; }
.results figcaption { font-size: .87rem; color: var(--muted); margin-top: .25rem; }
.results figcaption span { display: inline-block; font-weight: 800; margin-right: .85rem; }
.results figcaption span::before { content: ""; display: inline-block; width: .7rem; height: .18rem; vertical-align: .23em; margin-right: .25rem; background: var(--series); }
.results .button { margin-top: .65rem; }
.related { margin-top: 1.1rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .9rem; }
.related strong { font-weight: 900; }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: .8rem; }
.prose h2 { margin-top: 1.5rem; font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 900; line-height: 1.3; }
.prose .callout { background: #e8edd7; padding: .75rem 1rem; border-radius: 12px; }
.prose .callout h2 { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.48rem; }
.prose li + li { margin-top: .4rem; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: .7rem; }
.guide-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; padding: .85rem; border-radius: 12px; border: 1px solid var(--line); background: #fdf9ef; text-decoration: none; }
.guide-card:hover { border-color: var(--orange); }
.guide-card [data-icon] { font-size: 1.4rem; color: var(--orange); }
.guide-card strong { display: block; font-weight: 900; }
.guide-card span:not([data-icon]) { color: var(--muted); }
.checklist { background: #fdf9ef; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.checklist progress { width: 100%; height: .7rem; }
.checklist h2 { margin-top: 0; }
.checklist ol { padding: 0; list-style: none; }
.checklist label { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .65rem; padding: .45rem 0; cursor: pointer; }
.checklist input { width: 1.15rem; height: 1.15rem; margin: .23rem 0 0; }
.checklist label strong { display: block; }
.checklist .button { margin-top: .65rem; }
.checklist-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.print-only { display: none; }
.decision-section, .editorial-start, .recent-tools { margin-bottom: 1.4rem; }
.decision-section h2, .editorial-start h2, .recent-tools h2, .tool-next-steps h2 { font-size: clamp(1.26rem, 3vw, 1.65rem); line-height: 1.28; font-weight: 920; }
.tool-next-steps { padding-top: 1.25rem; }
.tool-next-steps p { margin-top: .4rem; }
.table-scroll { overflow-x: auto; margin-top: .65rem; border: 1px solid var(--line); border-radius: 12px; background: #fffaf1; }
.decision-table { width: 100%; border-collapse: collapse; text-align: left; line-height: 1.45; }
.decision-table caption { text-align: left; font-weight: 850; padding: .55rem .7rem; }
.decision-table th, .decision-table td { padding: .66rem .72rem; vertical-align: top; border-top: 1px solid #e3e3d4; }
.decision-table thead th { background: #e8edd7; color: var(--ink); }
.decision-table th[scope="row"] { font-weight: 850; }
.decision-table td:last-child a { white-space: normal; }
.case-table td { font-variant-numeric: tabular-nums; }
.case-table td:nth-child(2), .case-table td:nth-child(3) { min-width: 5.8rem; }
.editorial-start { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #e8edd7; }
.editorial-start ol { padding-inline-start: 1.35rem; margin: .55rem 0 0; }
.editorial-start li + li { margin-top: .32rem; }
.pitch-list { margin: .6rem 0 0; }
.pitch-list div { display: grid; grid-template-columns: minmax(0, 13rem) 1fr; gap: .25rem .8rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.pitch-list dt { font-weight: 900; }
.pitch-list dd { margin: 0; }
.pitch-list dd a { display: inline-block; margin-left: .4rem; }
.recent-tools ul { display: inline-flex; flex-wrap: wrap; padding: 0; margin: .35rem .7rem .4rem 0; gap: .25rem .8rem; list-style: none; }
.recent-tools .button { min-height: 36px; font-size: .86rem; }
.tools-footnote { display: flex; flex-wrap: wrap; gap: .35rem .8rem; margin-top: .9rem; color: var(--muted); }
.article-byline { font-size: .9rem; font-weight: 650; color: var(--muted); }
.editorial-page .prose .text-link { white-space: normal; }
.article-contents { border-inline-start: 3px solid var(--line); }
.article-contents ol { padding-inline-start: 1.7rem; }
.article-contents li + li { margin-top: .28rem; }
.article-section h2 { scroll-margin-top: 1rem; }
.article-section > p { margin-top: .65rem; }
.article-references, .article-note, .article-update { color: var(--muted); font-size: .91rem; }
.article-update { margin-top: 1rem; border-top: 1px solid var(--line); padding: .75rem 0; }
.action-callout { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .8rem; }
.article-section + .action-callout { margin-top: 1.15rem; }
.action-callout p { color: var(--muted); }
.faq-item { border-bottom: 1px solid var(--line); padding: .65rem .3rem; }
.faq-item p { margin: .45rem .85rem 0; }
.tool-method { margin-top: 1.8rem; }
.grace-result { margin: .75rem 0; padding: .65rem .75rem; background: #faf8ee; border-radius: 9px; font-variant-numeric: tabular-nums; }

@media (min-width: 1321px) {
  .hero-art { right: max(-130px, calc((100% - 100vw) / 2)); }
}
@media (max-width: 1010px) {
  .container { width: calc(100% - 36px); }
  .ad-slot { --creative-width: 728px; }
  .nav { padding-left: .6rem; }
  .nav a { font-size: .92rem; }
  .header-inner { gap: .7rem; }
  .nav-cta { font-size: .88rem; }
  .hero-copy { padding-left: clamp(.1rem, 2.25vw, 1.5rem); }
  .trap-panel { grid-template-columns: auto 1fr; }
  .trap-cta { grid-column: 2; justify-self: end; }
}
@media (max-width: 790px) {
  .ad-slot { --creative-width: 320px; --creative-height: 100px; }
  .header-inner { min-height: 62px; }
  .header .mascot { width: 60px; }
  .nav-cta { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: .65rem 1rem; background: var(--light); border: 1px solid var(--line); }
  .nav.open { display: grid; grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: .45rem; }
  .hero-inner { min-height: 340px; }
  .hero-copy { width: 56%; }
  .hero h1 { font-size: clamp(2.9rem, 7.5vw, 3.9rem); }
  .hero-art { width: 64%; }
  .desktop-break { display: none; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .tool-card p { min-height: 2.8em; }
  .section-heading { flex-wrap: wrap; }
  .section-heading p { order: 1; width: 100%; padding: 0; }
  .article-card { grid-template-columns: 1fr; }
  .article-copy { padding: .65rem; }
  .trap-panel { grid-template-columns: 1fr; }
  .trap-cta { grid-column: auto; }
}
@media (max-width: 560px) {
  .decision-table th, .decision-table td { padding: .58rem .4rem; }
  .decision-table { font-size: .88rem; }
  .decision-section .decision-table td:nth-child(2) { width: 42%; }
  .case-table td:nth-child(2), .case-table td:nth-child(3) { min-width: 4.2rem; }
  .pitch-list div { grid-template-columns: 1fr; }
  .container { width: calc(100% - 28px); }
  .header-inner { gap: .4rem; }
  .header .mascot { width: 47px; }
  .header .wordmark strong { font-size: 1.22rem; }
  .wordmark small { font-size: .72rem; }
  .nav-cta { font-size: .79rem; padding-inline: .6em; min-height: 38px; }
  .nav-cta [data-icon] { display: none; }
  .menu-toggle { width: 37px; height: 37px; }
  .hero-inner { display: flex; align-items: stretch; flex-direction: column; }
  .hero-copy { width: 100%; padding: 1.55rem 0 .75rem .28rem; }
  .hero h1 { font-size: clamp(2.95rem, 11.15vw, 4.4rem); margin-bottom: .83rem; }
  .hero-lead { font-size: 1.08rem; }
  .hero-description { font-size: .95rem; margin-block: .43rem .67rem; }
  .hero-cta { min-height: 46px; }
  .promises { font-size: .81rem; gap: .18rem .55rem; }
  .hero-art { position: relative; width: calc(100% + 28px); margin-inline: -14px; right: auto; mask-image: linear-gradient(to right, transparent 4%, #000 11%); }
  .home-tools { padding-top: 1rem; }
  .tool-card { padding: .62rem .55rem .4rem; }
  .tool-card h3 { font-size: clamp(1.02rem, 4.7vw, 1.42rem); }
  .tool-card p { font-size: .9rem; min-height: 4.1em; }
  .tool-card .button { font-size: .87rem; padding-inline: .65em; align-self: center; margin-left: 0; min-height: 37px; }
  .section-heading { gap: .32rem; }
  .section-heading .text-link { font-size: .85rem; }
  .section-icon { font-size: 1.48rem; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 43% 1fr; }
  .article-copy h3 { font-size: 1.18rem; }
  .trap-panel { padding: .75rem; }
  .trap-links { grid-template-columns: repeat(2, minmax(0, 1fr)); background: transparent; gap: .3rem; }
  .trap-links a { display: flex; gap: .35rem; padding: .45rem; text-align: left; background: #faf8ef; border-radius: 7px; }
  .trap-links a + a { border-left: 0; }
  .trap-links [data-icon] { font-size: 1.05rem; }
  .footer-inner { flex-wrap: wrap; gap: .55rem; }
  .footer-inner p { font-size: .78rem; padding-left: .5rem; }
  .footer-inner nav { width: 100%; margin-left: 0; }
  .page { padding-block: 1rem 2.4rem; }
  .calculator-layout { grid-template-columns: 1fr; }
  .page-header { grid-template-columns: 1fr; margin-top: 1.1rem; }
  .page-header .sprite { max-width: 250px; }
  :is(.tool-page, .editorial-page) .page-header .sprite { display: none; }
}

@media print {
  @page { size: A4; margin: 13mm; }
  body:has(.guide-page) { background: white; }
  body:has(.guide-page) :is(.header, .footer, .skip, .crumb, .checklist-actions, #check-progress, #check-storage, progress, .page-header .sprite) { display: none !important; }
  .guide-page { width: 100%; padding: 0; min-height: 0; font-size: 10.5pt; }
  .guide-page .page-header { display: block; margin: 0 0 .7rem; }
  .guide-page .page-header h1 { font-size: 20pt; }
  .guide-page .page-header p { font-size: inherit; margin-top: .25rem; }
  .guide-page .prose { max-width: none; }
  .guide-page .prose > :not(.checklist) { display: none; }
  .guide-page .checklist { padding: 0; border: 0; background: white; }
  .guide-page .checklist h2 { font-size: 14pt; }
  .guide-page .checklist li { break-inside: avoid; }
  .guide-page .checklist label { padding: .2rem 0; }
  .guide-page .print-only { display: block; margin: .4rem 0; }
}

/* Illustrated casebook and accessible, responsive financial figures. */
.feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.15rem; }
.feature-cover { display:block; width:100%; height:auto; aspect-ratio:1200 / 630; }
.feature-card { min-width:0; overflow:hidden; background:var(--light); border:1px solid var(--line); border-radius:13px; }
.feature-card .cover-link { display:block; }
.feature-card > div { padding:1rem 1.1rem 1.2rem; }
.feature-card h3 { font-size:1.15rem; line-height:1.44; margin:.25rem 0 .5rem; }
.feature-card p:last-child { color:var(--muted); font-size:1rem; }
.editorial-page > .feature-cover { width:min(100%,860px); border-radius:14px; margin-bottom:1.4rem; }
.editorial-page .page-header { max-width:56rem; }
.editorial-page .prose { width:min(100%,52rem); max-width:none; }
.editorial-page .article-section p { max-width:48rem; line-height:1.85; }
.fieldbook-nav { display:flex; flex-wrap:wrap; gap:.65rem; margin:1rem 0 2rem; }
.fieldbook-nav a { border:1px solid var(--line); border-bottom:3px solid #7a8b62; color:var(--ink); padding:.5rem .9rem; border-radius:8px; font-weight:700; background:var(--light); }
.fieldbook-group { scroll-margin-top:1.5rem; margin-bottom:2.75rem; }
.fieldbook-group > h2 { margin:0 0 1rem; font-size:clamp(1.4rem,3.5vw,2.1rem); }
.topic-index-link { margin:1rem 0; }
.page .text-link { white-space:normal; overflow-wrap:anywhere; }
.case-figure { margin:1.25rem 0 1.7rem; padding:clamp(.9rem,2.8vw,1.6rem); border:1.5px solid #acb898; border-radius:16px 12px 18px 11px; background:#fffaf0; break-inside:avoid; }
.figure-heading { display:flex; gap:.65rem; align-items:center; border-bottom:1px solid #c8cdb9; padding-bottom:.65rem; }
.figure-heading .mascot { flex:0 0 43px; width:43px; }
.figure-heading h3 { font-size:clamp(1.06rem,2.5vw,1.35rem); line-height:1.45; }
.case-figure .chart-rows,.case-figure .figure-steps { margin:1rem 0 0; padding:0; list-style:none; display:grid; gap:.85rem; }
.chart-rows li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.15rem 1rem; align-items:end; }
.chart-rows li b { font-variant-numeric:tabular-nums; color:#6e3a15; }
.bar-track { display:block; position:relative; grid-column:1/-1; height:12px; border-radius:3px; background:#ebe8da; overflow:hidden; }
.bar-track::after { content:""; position:absolute; top:0; bottom:0; left:clamp(0px,var(--zero),calc(100% - 1px)); width:1px; background:#384638; }
.bar-fill { position:absolute; top:1px; bottom:1px; background:#668566; border-radius:2px; }
.chart-rows li:nth-child(even) .bar-fill { background:#879a65; }
.chart-rows li .bar-fill.negative { background:#ba672e; }
.case-figure figcaption { border-top:1px solid #d6d7c6; padding-top:.65rem; margin-top:1rem; font-size:.91rem; color:var(--muted); line-height:1.65; }
.figure-steps li { padding:.5rem .75rem; border-left:4px solid #d38c48; background:#f0eedf; }
.figure-steps b,.figure-steps span { display:block; }
@media(min-width:1011px){ .tool-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:880px){ .feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px){ .feature-grid { grid-template-columns:1fr; } .feature-card > div { padding:.8rem .9rem 1rem; } }
@media print { .case-figure { border-color:#777; } .bar-fill,.bar-track { print-color-adjust:exact; } }
