:root {
  --bg: #fbfaf6;
  --paper: #fffefa;
  --ink: #071d2b;
  --muted: #52646a;
  --line: #ded9cf;
  --deep: #082434;
  --teal: #0b6365;
  --mint: #e7f2ee;
  --blue: #e7f1f6;
  --gold: #f5d372;
  --clay: #e7c7b0;
  --rust: #c85b2e;
  --risk: #8e3d35;
  --shadow: 0 22px 60px rgba(7, 29, 43, 0.10);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); overflow-x: clip; max-width: 100%; }
body { margin: 0; background: linear-gradient(90deg, rgba(8,36,52,.035) 1px, transparent 1px), linear-gradient(rgba(8,36,52,.035) 1px, transparent 1px), radial-gradient(circle at 70% 0, rgba(231,241,246,.9), transparent 34%), var(--bg); background-size: 48px 48px, 48px 48px, auto; overflow-x: clip; max-width: 100%; }
a { color: inherit; }
.container { width: min(1360px, calc(100% - 56px)); margin: 0 auto; min-width: 0; }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,254,250,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand strong { display: block; font-size: 18px; font-weight: 850; letter-spacing: 0; }
.brand small { display: block; color: var(--muted); font-weight: 750; font-size: 12px; margin-top: 2px; }
.brand-mark { width: 54px; height: 54px; flex: 0 0 auto; color: var(--deep); }
.brand-mark svg { width: 100%; height: 100%; }
.mark-sheet { fill: #fffefa; stroke: currentColor; stroke-width: 4; stroke-linejoin: round; }
.mark-fold, .mark-mattress, .mark-check { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.mark-check { stroke: var(--teal); }
.mark-spark { fill: var(--gold); stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.nav-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; font-weight: 800; color: #435853; }
.nav-links a { text-decoration: none; }
.search-link { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.search-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid #b9c9c9; border-radius: var(--radius); background: var(--paper); color: var(--deep); text-decoration: none; font-weight: 850; cursor: pointer; font-size: 15px; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; }
.button.primary { background: var(--teal); color: white; border-color: var(--teal); box-shadow: 0 10px 24px rgba(11,99,101,.18); }
.text-link { color: var(--deep); font-weight: 850; text-decoration: none; }
.share-panel { position: fixed; right: 18px; bottom: 18px; z-index: 6; display: grid; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,254,250,.95); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.share-panel span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; text-align: center; }
.share-panel button, .share-panel a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 11px; border: 1px solid #b9c9c9; border-radius: 7px; background: #fff; color: var(--deep); font: inherit; font-size: 13px; font-weight: 900; text-decoration: none; cursor: pointer; }
.share-panel button:first-of-type { background: var(--teal); border-color: var(--teal); color: #fff; }
.share-panel svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.share-panel small { min-height: 14px; color: var(--teal); font-size: 11px; font-weight: 900; text-align: center; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(48px, 7vw, 84px); line-height: .94; letter-spacing: 0; margin-bottom: 24px; font-weight: 900; overflow-wrap: anywhere; }
h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1; margin-bottom: 14px; font-weight: 900; }
h3 { font-size: 20px; margin-bottom: 12px; font-weight: 900; }
p, li { font-size: 18px; line-height: 1.65; }
.lede { font-size: 21px; line-height: 1.45; color: var(--muted); max-width: 860px; }

.home-hero-band { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,254,250,.78), rgba(255,254,250,.42)); }
.hero-stage { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .85fr) minmax(300px, .62fr); gap: 0; min-height: 500px; align-items: stretch; }
.home-composition { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(330px, .75fr); gap: 32px; padding: 34px 0 64px; }
.home-left, .home-rail, .side-stack { min-width: 0; }
.hero-main, .article-card, .content-article, .planner-module, .panel, .rail-card, .field-rules, .section, .expert-strip { background: rgba(255,253,247,.9); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-main { padding: 42px 34px 34px 0; box-shadow: none; border: 0; background: transparent; align-self: center; }
.hero-main h1 { font-size: clamp(50px, 6.1vw, 76px); line-height: .96; margin-bottom: 20px; }
.hero-main .lede { font-size: 19px; line-height: 1.42; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.step-strip-wrap { border-top: 1px solid var(--line); background: rgba(255,254,250,.9); }
.hero-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 auto; }
.hero-steps div { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 18px; padding: 22px 28px; border-right: 1px solid var(--line); background: transparent; }
.hero-steps div:last-child { border-right: 0; }
.hero-steps b { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: white; font-size: 14px; margin: 2px 0 0; grid-row: span 2; }
.hero-steps strong { display: block; color: var(--deep); font-size: 18px; line-height: 1.22; margin-bottom: 4px; }
.hero-steps span { display: block; color: var(--muted); font-size: 15px; line-height: 1.42; font-weight: 650; }
.pillar-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 30px; }
.pillar-row a { min-width: 0; padding: 18px 14px; text-decoration: none; border-right: 1px solid var(--line); }
.pillar-row a:last-child { border-right: 0; }
.pillar-row b { display: block; font-size: 14px; color: var(--deep); }
.pillar-row span { display: block; margin-top: 8px; font-size: 12px; line-height: 1.35; color: var(--muted); font-weight: 700; }
.habitat-figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-media { border-radius: 0; border-top: 0; border-bottom: 0; min-height: 500px; box-shadow: none; }
.habitat-figure picture, .side-image picture { display: block; }
.habitat-figure img, .side-image img { width: 100%; height: auto; display: block; }
.hero-media img { height: 100%; min-height: 500px; object-fit: cover; }
.habitat-figure figcaption { padding: 14px 16px; font-size: 13px; line-height: 1.45; color: #40534e; font-weight: 750; }

.problem-chooser { padding: 22px 0 22px 34px; align-self: center; }
.problem-chooser h2 { font-size: 27px; line-height: 1.08; margin-bottom: 8px; }
.problem-chooser p { font-size: 15px; line-height: 1.38; color: var(--muted); margin-bottom: 14px; }
.problem-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,254,250,.78); }
.problem-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.problem-row:last-child { border-bottom: 0; }
.problem-row strong { display: block; font-size: 16px; color: var(--deep); }
.problem-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.problem-row svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; color: var(--deep); }
.problem-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); border: 1px solid #c5d7de; position: relative; }
.problem-0 .problem-icon { background: #fff3c4; border-color: #edc45b; }
.problem-1 .problem-icon { background: #f8dfd1; border-color: #d77a4e; }
.problem-2 .problem-icon { background: #dcefe9; border-color: #a7cbc0; }
.problem-3 .problem-icon { background: #e5f1fb; border-color: #aacce4; }
.problem-4 .problem-icon { background: #f4d3c9; border-color: #c85b2e; }
.problem-5 .problem-icon { background: #ead6d4; border-color: #8e3d35; }
.problem-icon::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: currentColor; color: rgba(8,36,52,.72); }

.home-rail { display: flex; flex-direction: column; gap: 18px; }
.coverage-engine, .panel, .rail-card { padding: 24px; }
.keyword-map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
.keyword-map div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.keyword-map div:last-child { border-bottom: 0; }
.keyword-map strong { color: var(--deep); }
.keyword-map span, .panel span, .guide-card small, .guide-card em { color: var(--muted); font-size: 13px; line-height: 1.4; font-weight: 750; }
.panel ul { margin: 0; padding-left: 20px; }
.panel li { font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.panel li strong { display: block; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust-grid span { padding: 12px; border: 1px solid var(--line); border-radius: 6px; text-align: center; background: #fff; color: var(--ink); }

.planner-module { padding: 30px; margin-top: 24px; background: linear-gradient(135deg, rgba(231,242,238,.82), rgba(255,254,250,.92)); }
.module-head, .section-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.source-chip { padding: 8px 12px; border-radius: 999px; background: var(--mint); color: var(--deep); font-size: 12px; font-weight: 900; }
.planner-shell { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 24px; }
.tool-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
label { font-weight: 900; color: var(--ink); }
select, input { width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; min-height: 44px; padding: 0 12px; font: inherit; font-size: 15px; font-weight: 750; color: var(--ink); }
.planner-output { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.result-card { border-left: 5px solid var(--teal); background: var(--mint); padding: 16px; margin-bottom: 16px; }
.result-card div { margin-bottom: 12px; }
.result-card b { display: block; font-size: 13px; text-transform: uppercase; color: var(--deep); margin-bottom: 4px; }

.home-below { padding: 28px 0 64px; }
.starter-row { display: grid; grid-template-columns: minmax(280px, .56fr) minmax(0, 1fr); gap: 28px; margin-bottom: 24px; }
.starter-panel { background: linear-gradient(135deg, #e7f2ee, #f6fbf8); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.starter-panel h2, .starter-guides h2 { font-size: 28px; }
.starter-panel p { font-size: 16px; color: var(--muted); }
.starter-guides { min-width: 0; }
.starter-card-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.starter-card-row .guide-card { min-height: 166px; background: rgba(255,254,250,.86); }
.field-rules { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; padding: 30px; margin-bottom: 24px; }
.field-rules ol { margin: 0; padding: 0; list-style: none; }
.field-rules li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.field-rules li:last-child { border-bottom: 0; }
.section { padding: 28px; margin-bottom: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.guide-card { display: flex; flex-direction: column; gap: 10px; min-height: 190px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,254,250,.84); text-decoration: none; height: 100%; box-shadow: 0 12px 30px rgba(7,29,43,.05); }
.guide-card span { font-size: 12px; color: var(--muted); font-weight: 900; }
.guide-card strong { font-size: 21px; line-height: 1.12; font-weight: 900; }
.guide-card small { font-size: 14px; }
.guide-card em { margin-top: auto; color: var(--deep); font-style: normal; font-weight: 900; }
.safety-grid, .day-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.safety-grid div, .day-grid div { border: 1px solid var(--line); border-top: 3px solid var(--risk); border-radius: var(--radius); padding: 18px; background: rgba(255,255,255,.75); min-width: 0; }
.day-grid div { border-top-color: var(--teal); background: var(--mint); }
.expert-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; overflow: hidden; }
.expert-strip div { padding: 20px; border-right: 1px solid var(--line); }
.expert-strip div:last-child { border-right: 0; }
.expert-strip strong { display: block; color: var(--deep); margin-bottom: 8px; }
.expert-strip span { color: var(--muted); font-size: 14px; line-height: 1.5; font-weight: 750; }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding: 34px 0; align-items: start; }
.article-card { padding: 48px 42px; }
.article-card h1 { font-size: clamp(44px, 6vw, 82px); }
.breadcrumb { display: flex; gap: 10px; margin-bottom: 22px; color: var(--muted); font-weight: 850; }
.breadcrumb a { text-decoration: none; color: var(--deep); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag-row span, .filter-row button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--mint); color: var(--deep); font-size: 13px; font-weight: 900; }
.article-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.article-meta span { min-width: 0; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); background: rgba(255,255,255,.72); padding: 10px 12px; color: #334844; font-size: 13px; line-height: 1.35; font-weight: 850; }
.check-card div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; background: var(--mint); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.check-card b { font-size: 32px; line-height: 1; color: var(--deep); }
.check-card span { color: var(--muted); font-weight: 800; line-height: 1.4; }
.content-article { padding: 42px; }
.content-article section { margin-top: 34px; }
.content-article h2 { font-size: 34px; }
.content-article p, .content-article li { color: #283835; }
.field-rule { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 20px; padding: 18px; border-left: 5px solid var(--teal); background: var(--mint); border-radius: var(--radius); margin: 26px 0; font-size: 18px; line-height: 1.5; }
.rich-steps li { margin-bottom: 12px; }
.three-step-answer { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; margin: 24px 0; }
.three-step-answer h2 { font-size: 28px; margin-bottom: 16px; }
.three-step-answer ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; counter-reset: steps; }
.three-step-answer li { counter-increment: steps; min-width: 0; border-left: 4px solid var(--teal); background: var(--mint); border-radius: var(--radius); padding: 14px; font-size: 15px; line-height: 1.45; }
.three-step-answer li::before { content: counter(steps); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--deep); color: white; font-size: 13px; font-weight: 900; margin-bottom: 10px; }
.three-step-answer strong { display: block; color: var(--deep); font-size: 16px; line-height: 1.25; margin-bottom: 6px; }
.three-step-answer span { display: block; color: #283835; }
.expert-block { background: rgba(229,240,236,.65); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.evidence-panel { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(0, 1fr); gap: 24px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: linear-gradient(135deg, rgba(231,241,246,.72), rgba(255,254,250,.9)); }
.evidence-panel h2, .case-notes h2 { font-size: 28px; }
.evidence-panel p { font-size: 16px; color: var(--muted); }
.evidence-panel ul { margin: 0; padding: 0; list-style: none; }
.evidence-panel li { border-bottom: 1px solid var(--line); padding: 0 0 13px; margin-bottom: 13px; }
.evidence-panel li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.evidence-panel strong, .case-grid strong { display: block; color: var(--deep); font-size: 16px; line-height: 1.25; margin-bottom: 5px; }
.evidence-panel span, .case-grid span { display: block; color: #334844; font-size: 15px; line-height: 1.5; font-weight: 650; }
.case-notes { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: rgba(255,253,247,.92); }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case-grid div { min-width: 0; border: 1px solid var(--line); border-top: 4px solid var(--clay); border-radius: var(--radius); background: #fff; padding: 16px; }
.diagnostic-list { list-style: none; padding: 0; margin: 0; }
.diagnostic-list li { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.diagnostic-list li:last-child { border-bottom: 0; }
.source-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.source-links a { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--deep); text-decoration: none; font-weight: 850; }
.source-links.expanded { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.source-links.expanded a { display: block; }
.source-links.expanded span { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.phrase-panel { background: var(--blue); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.phrase-panel strong { color: var(--deep); }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 900; font-size: 18px; }
.side-stack { display: flex; flex-direction: column; gap: 18px; }
.side-image { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.link-list { display: flex; flex-direction: column; }
.link-list a { padding: 12px 0; border-bottom: 1px solid var(--line); color: #2471a3; text-decoration: none; font-weight: 900; }
.trust-page h2 { margin-top: 8px; }
.trust-page section { border-top: 1px solid var(--line); padding-top: 24px; }

.index-page { padding: 50px 0; }
.index-page h1 { max-width: 900px; }
.search-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.filter-row button { cursor: pointer; }
.filter-row .active { background: var(--deep); color: white; }
.guide-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-footer { background: #071d2b; color: #f4f0e8; padding: 42px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.6; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 18px; color: rgba(255,255,255,.65); font-size: 13px; }

@media (max-width: 980px) {
  .container { width: 100%; max-width: 720px; padding-left: 16px; padding-right: 16px; }
  main, header, footer, section, article, aside, figure, img { max-width: 100%; }
  .home-left, .home-rail, .hero-main, .habitat-figure, .planner-module, .field-rules, .section, .article-card, .content-article, .starter-panel, .starter-guides, .problem-chooser { width: 100%; max-width: calc(100vw - 32px); }
  .hero-main h1, .hero-main p, .habitat-figure figcaption { max-width: calc(100vw - 64px); overflow-wrap: break-word; }
  .content-article p, .content-article li, .three-step-answer span { max-width: calc(100vw - 64px); overflow-wrap: break-word; }
  .hero-stage, .home-composition, .page-layout, .planner-shell, .field-rules, .footer-grid, .starter-row, .starter-card-row { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { min-height: 0; padding-top: 20px; }
  .hero-main { padding: 34px 0 20px; }
  .hero-media { min-height: 250px; border: 1px solid var(--line); border-radius: var(--radius); }
  .hero-media img { min-height: 250px; max-height: 360px; }
  .problem-chooser { padding: 22px 0 28px; }
  .hero-steps, .pillar-row, .card-grid, .safety-grid, .day-grid, .expert-strip, .source-links.expanded, .three-step-answer ol, .article-meta, .evidence-panel, .case-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-steps div { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 16px; }
  .hero-steps div:last-child { border-bottom: 0; }
  .tool-form { grid-template-columns: minmax(0, 1fr); }
  .nav { align-items: flex-start; padding: 12px 0; flex-direction: column; }
  .nav-links { gap: 10px 14px; justify-content: flex-start; width: 100%; font-size: 13px; }
  .nav-links a { flex: 0 1 auto; }
  .nav-links a:nth-last-child(-n+2) { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: min(100%, calc(100vw - 64px)); white-space: normal; text-align: center; }
  .article-card, .content-article { padding: 28px 22px; }
  .diagnostic-list li, .field-rule, .field-rules li { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 18px; line-height: 1.5; }
  h1 { font-size: clamp(34px, 10vw, 44px); line-height: 1.05; }
  .article-card h1 { font-size: clamp(34px, 10vw, 44px); }
  .starter-panel { padding: 24px; }
  .starter-card-row .guide-card { min-height: 0; }
  .share-panel { left: 16px; right: 16px; bottom: 12px; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px; }
  .share-panel span { text-align: left; padding-left: 2px; }
  .share-panel button, .share-panel a { justify-content: center; min-width: 0; padding: 0 8px; }
  .share-panel small { grid-column: 1 / -1; min-height: 0; }
}

@media (max-width: 520px) {
  .container {
    max-width: 100vw;
  }
  .article-card, .content-article, .rail-card, .panel, .side-image {
    max-width: calc(100vw - 32px);
    overflow: hidden;
  }
  .article-card h1, .article-card .lede, .tag-row, .article-meta {
    width: min(100%, 300px);
    max-width: 300px;
  }
  .article-card h1 {
    font-size: clamp(32px, 9vw, 38px);
    line-height: 1.08;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .article-card .lede {
    font-size: 17px;
  }
  .tag-row span {
    font-size: 12px;
    padding: 7px 10px;
  }
  .check-card div {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .rail-card.check-card {
    width: min(100%, 300px);
  }
  .check-card span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .check-card b {
    font-size: 28px;
  }
  .hero-main h1, .hero-main p, .habitat-figure figcaption {
    width: min(100%, 300px);
    max-width: 300px;
  }
  .hero-actions .button {
    width: min(100%, 300px);
  }
  .share-panel b {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}
