/* Marin Tree Safety Guide for Families. Builds on /components/shared-styles.css. */
.guide-page {
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --forest: #12351f;
  --leaf: #1a8d48;
  --leaf-dark: #156b38;
  --sage: #eef4ee;
  --cream: #faf7ef;
  --line: #dfe5dd;
  --focus: #e5841b;
  --routine: #1d6b40; --routine-bg: #e5f3ea;
  --evaluate: #7a5200; --evaluate-bg: #fcf1d7;
  --keepaway: #a03a0f; --keepaway-bg: #fde7dc;
  --emergency: #9b1c1c; --emergency-bg: #fde2e2;
  background: #fff;
}
.guide { color: var(--ink); }
.guide p, .guide li, .guide dd { font-size: 17px; line-height: 1.65; }
.guide a:not(.btn) { color: var(--leaf-dark); text-decoration: underline; text-underline-offset: 2px; }
.guide a:not(.btn):hover { color: var(--forest); }
.guide :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.guide [id] { scroll-margin-top: 96px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.narrow { max-width: 820px; }
.print-only { display: none; }

/* ── Hero: the hook on the left, the live map on the right ── */
.guide-hero { position: relative; background: linear-gradient(180deg, #f3f7f1 0%, var(--cream) 100%); padding: 100px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 36px; align-items: start; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.guide .breadcrumb a { color: var(--ink-soft); }
.eyebrow { font-family: 'Montserrat', sans-serif; font-size: 13px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf-dark); margin-bottom: 10px; }
.guide-hero h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; color: var(--forest); line-height: 1.06; letter-spacing: -0.01em; margin-bottom: 18px; }
.hero-alarm { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: center; background: #fff; border: 1px solid #f1c9b4; border-left: 6px solid var(--emergency); border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(155,28,28,.08); }
.alarm-value { font-family: 'Montserrat', sans-serif; font-size: 60px !important; font-weight: 800; line-height: .95 !important; color: var(--emergency); font-variant-numeric: tabular-nums; }
.alarm-value span { display: block; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.alarm-text { font-size: 16px !important; line-height: 1.5 !important; color: var(--ink); }
.guide-lede { font-size: 18px !important; max-width: 620px; color: var(--ink); margin-bottom: 20px; }
.guide-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 14px; }
.guide-hero-actions .btn { min-height: 50px; font-size: 16px; }
.guide-text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 16px; min-height: 44px; }
.hero-sources { font-size: 13px !important; color: var(--ink-soft); line-height: 1.5 !important; }
.hero-map { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 16px 12px; box-shadow: 0 14px 36px rgba(18,53,31,.10); }
.hero-map-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 6px; }
.hero-map h2 { font-size: 19px !important; margin: 0 !important; }
.hero-map .map-controls { margin: 0; gap: 8px; }
.hero-map .map-controls select { min-height: 40px; font-size: 14px; padding: 6px 10px; max-width: 220px; }
.hero-map .map-controls label { font-size: 14px; }
.hero-map .map-howto { font-size: 13px !important; margin-bottom: 8px; }
.hero-map .map-layout { display: block; position: relative; }
.hero-map .map-frame { border-radius: 12px; }
.hero-map .map-side { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; margin-top: 8px; }
.hero-map .map-readout { flex: 1 1 220px; min-height: 0; padding: 8px 12px; border-radius: 10px; }
.hero-map .map-readout p { font-size: 13px !important; line-height: 1.4 !important; }
.hero-map .map-readout-title { font-size: 15px !important; margin-bottom: 2px; }
.hero-map .map-legend { flex: 1 1 220px; border: 0; padding: 4px 0; }
.hero-map .map-legend ul { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.hero-map .map-legend li { font-size: 12.5px !important; gap: 4px; }
.hero-map .legend-swatch svg { width: 16px; height: 16px; }
.hero-map .legend-title { font-size: 12.5px !important; margin-bottom: 4px; }
.map-note { font-size: 13px !important; color: var(--ink-soft); margin-top: 6px; }

/* ── Sections ── */
.guide-section { padding: 76px 0; }
.guide-section h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--forest); margin-bottom: 14px; line-height: 1.15; }
.guide-section h3 { font-size: 20px; color: var(--forest); margin: 0 0 8px; }
.section-intro { max-width: 760px; color: var(--ink-soft); margin-bottom: 30px; }
.source-note { font-size: 14px !important; color: var(--ink-soft); line-height: 1.5 !important; }

.copy-link, .share-link { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; min-height: 36px; }
.copy-link::before, .share-link::before { content: ""; width: 14px; height: 14px; margin-right: 6px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E") center/contain no-repeat; }
.copy-link.is-copied::after, [data-copy-link].is-copied::after { content: " – copied"; font-weight: 400; }

/* ── Yard ── */
.guide-section--yard { background: var(--sage); padding-top: 0; }
.safety-note { display: flex; gap: 10px; align-items: flex-start; max-width: 860px; background: #fff; border: 1px solid #f2d3b3; border-left: 5px solid var(--accent); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 15px !important; line-height: 1.5 !important; }
.safety-note svg { flex: none; color: var(--accent-dark); margin-top: 3px; }
.yard-panel { background: #fff; border-radius: 16px; padding: 22px; border: 1px solid var(--line); min-height: 200px; }
.yard-panel h3 { font-size: 21px; display: flex; gap: 10px; align-items: center; }
.yard-panel h3:focus { outline: none; }
.yard-panel h3:focus-visible { outline: 3px solid var(--focus); }
.yard-panel .panel-mode-intro { color: var(--ink-soft); font-size: 16px; }
.panel-spot-list { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.panel-spot-list button { width: 100%; text-align: left; display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: 600 15px 'Open Sans', sans-serif; color: var(--ink); }
.panel-spot-list button:hover { background: var(--sage); }
.panel-back { background: none; border: 0; color: var(--leaf-dark); font: 600 15px 'Open Sans', sans-serif; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0; margin-top: 8px; }
.mode-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 22px; }
.js .mode-panels { display: none; }
.mode-panel { background: #fff; border-radius: 12px; padding: 18px; border: 1px solid var(--line); }
.mode-spots { font-weight: 600; }

.level { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; padding: 3px 10px 3px 4px; border-radius: 999px; line-height: 1.4; }
.level-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 800; }
.level-routine { color: var(--routine); background: var(--routine-bg); border: 2px solid var(--routine); }
.level-routine .level-icon { background: var(--routine); }
.level-evaluate { color: var(--evaluate); background: var(--evaluate-bg); border: 2px dashed var(--evaluate); }
.level-evaluate .level-icon { background: var(--evaluate); border-radius: 5px; }
.level-keepaway { color: var(--keepaway); background: var(--keepaway-bg); border: 4px double var(--keepaway); }
.level-keepaway .level-icon, .action-keepaway .level-icon { background: var(--keepaway); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-radius: 0; }
.level-emergency { color: #fff; background: repeating-linear-gradient(135deg, var(--emergency) 0 8px, #7f1515 8px 16px); border: 2px solid var(--emergency); }
.level-emergency .level-icon { background: #fff; color: var(--emergency); }
.level-key { margin: 26px 0 8px; }
.level-key-title { font-weight: 700; margin-bottom: 8px; }
.level-key ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.level-key li { font-size: 15px !important; color: var(--ink-soft); }
.yard-list-title { margin-top: 36px !important; }
.js .yard-list-title { margin-top: 40px !important; }
.yard-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.spot { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.spot h4 { font-size: 18px; color: var(--forest); display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.spot-num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 14px; }
.spot-level { margin-bottom: 10px; font-size: 15px !important; }
.spot-level-note { color: var(--ink-soft); font-size: 14px; }
.spot dl { display: grid; gap: 2px; }
.spot dt { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-top: 8px; }
.spot dd { margin: 0; font-size: 16px !important; }
.spot:target { box-shadow: 0 0 0 3px var(--focus); }
.yard-panel .spot { border: 0; padding: 0; }

/* ── Map ── */
.guide-section--map { background: #fff; }
.map-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.map-controls label { font-weight: 700; }
.map-controls select { min-height: 46px; font: 16px 'Open Sans', sans-serif; padding: 8px 12px; border-radius: 10px; border: 2px solid var(--leaf-dark); background: #fff; color: var(--ink); max-width: 100%; }
html:not(.js) .map-controls, html:not(.js) .map-howto { display: none; }
.map-howto { font-size: 15px !important; color: var(--ink-soft); margin-bottom: 16px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.map-swipe-hint { display: none; font-size: 14px !important; color: var(--ink-soft); margin: 0 0 8px; }
.map-frame { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #f4f7f2; }
.map-svg { display: block; width: 100%; height: auto; }
.map-bg { fill: #eef3f6; }
.map-city { fill: #f8faf5; stroke: #b9c7b4; stroke-width: 4; }
.map-hoods { fill: none; stroke: #c9d3c5; stroke-width: 2; }
.map-places { pointer-events: none; }
.map-place { font: 600 26px 'Open Sans', sans-serif; fill: #4b5b4d; paint-order: stroke; stroke: #f8faf5; stroke-width: 7px; stroke-linejoin: round; }
.map-leader { stroke: #4b5b4d; stroke-width: 2.5; fill: none; }
.map-leader-dot { fill: #fff; stroke: #4b5b4d; stroke-width: 2.5; }
.map-bay { font: italic 600 28px 'Open Sans', sans-serif; fill: #7d93a3; }
.map-scale line { stroke: #4b5563; stroke-width: 3; }
.map-scale text, .map-north text { font: 600 22px 'Open Sans', sans-serif; fill: #4b5563; }
.map-north path { fill: #4b5563; }
.hex { cursor: pointer; outline: none; }
.hex polygon { stroke: #fff; stroke-width: 3; transition: opacity .2s; }
.hex .hex-count { font: 800 30px 'Montserrat', sans-serif; pointer-events: none; }
.hex.is-hidden { display: none; }
.hex:hover polygon, .hex.is-active polygon, .hex:focus-visible polygon { stroke: #e5841b; stroke-width: 8; }
.hex:focus-visible { outline: none; }
.band-0 polygon { fill: #d9efe0; } .band-0 .hex-count { fill: #12351f; }
.band-1 polygon { fill: #a6d8b6; } .band-1 .hex-count { fill: #12351f; }
.band-2 polygon { fill: #5fb382; } .band-2 .hex-count { fill: #0b2414; }
.band-3 polygon { fill: #24814f; } .band-3 .hex-count { fill: #fff; }
.band-4 polygon { fill: #0f4f2e; } .band-4 .hex-count { fill: #fff; }
.map-side { display: grid; gap: 16px; }
.map-readout { background: var(--sage); border-radius: 14px; padding: 16px 18px; min-height: 120px; }
.map-readout p { font-size: 15px !important; }
.map-readout-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 20px !important; color: var(--forest); margin-bottom: 6px; }
.map-legend { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.legend-title { font-weight: 700; margin-bottom: 8px; font-size: 15px !important; }
.map-legend ul { list-style: none; display: grid; gap: 6px; }
.map-legend li { display: flex; align-items: center; gap: 10px; font-size: 15px !important; }
.legend-swatch svg { width: 24px; height: 24px; display: block; }
.legend-swatch polygon { stroke: #fff; stroke-width: 1; }
.legend-swatch.band-0 polygon { fill: #d9efe0; stroke: #9cc7aa; }
.legend-swatch--empty polygon { fill: #f8faf5; stroke: #b9c7b4; stroke-dasharray: 2 2; }
.legend-note { font-size: 13px !important; color: var(--ink-soft); margin-top: 10px; }
.map-disclaimer { margin: 22px 0 10px; padding: 16px 18px; background: var(--cream); border-left: 5px solid var(--leaf-dark); border-radius: 8px; max-width: 980px; }
.map-disclaimer strong { font-weight: 600; }
.map-table { margin-top: 20px; max-width: 760px; }

/* ── Charts ── */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.chart-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.chart-card--wide { grid-column: 1 / -1; }
.chart-takeaway { color: var(--ink-soft); font-size: 16px !important; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .bar path { fill: var(--leaf); }
.chart-svg .bar:hover path { fill: var(--forest); }
.chart-svg .bar--partial path { fill: var(--hatch); stroke: var(--leaf-dark); stroke-width: 1.5; }
.chart-svg .hatch-bg { fill: #e5f3ea; }
.chart-svg .hatch-line { stroke: var(--leaf-dark); stroke-width: 3; }
.chart-value { font: 700 13px 'Open Sans', sans-serif; fill: var(--ink); }
.chart-tick { font: 12px 'Open Sans', sans-serif; fill: var(--ink-soft); }
.chart-baseline { stroke: #9ca3af; stroke-width: 1; }
.chart-key { font-size: 14px !important; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.key-swatch--hatch { width: 18px; height: 14px; flex: none; border: 1.5px solid var(--leaf-dark); background: repeating-linear-gradient(45deg, #e5f3ea 0 3px, var(--leaf-dark) 3px 5px); border-radius: 2px; }
.hbar-chart { list-style: none; display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(150px, 260px) 1fr 110px; align-items: center; gap: 12px; }
.hbar-label { font-size: 15px; font-weight: 600; }
.hbar-track { height: 18px; background: #eef2ee; border-radius: 4px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--leaf); border-radius: 0 4px 4px 0; }
.hbar--muted .hbar-fill { background: repeating-linear-gradient(45deg, #c7cec9 0 4px, #e5e9e6 4px 8px); }
.hbar-value { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hbar-share { font-weight: 400; color: var(--ink-soft); }
.status-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 32px; max-width: 720px; }
.status-list div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 0; }
.status-list dt { font-weight: 600; }
.status-list dd { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 20px; color: var(--forest); margin: 0; }
.status-list dd span { font: 400 15px 'Open Sans', sans-serif; color: var(--ink-soft); }
.data-details { margin-top: 4px; }
.data-details summary { cursor: pointer; font-weight: 600; color: var(--leaf-dark); min-height: 44px; display: flex; align-items: center; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
.data-table caption { text-align: left; font-size: 14px; color: var(--ink-soft); padding-bottom: 6px; }
.data-table th, .data-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--sage); font-size: 14px; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-details .data-table { display: block; max-height: 420px; overflow: auto; }

/* ── Action guide ── */
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.action-card { border-radius: 14px; padding: 20px; border: 2px solid; }
.action-card h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.action-card h3 .level-icon { width: 28px; height: 28px; font-size: 15px; flex: none; }
.action-card ul { margin: 10px 0 12px 20px; }
.action-card li, .action-card p { font-size: 16px !important; }
.action-routine { border-color: var(--routine); background: var(--routine-bg); }
.action-routine .level-icon { background: var(--routine); }
.action-evaluate { border: 2px dashed var(--evaluate); background: var(--evaluate-bg); }
.action-evaluate .level-icon { background: var(--evaluate); border-radius: 6px; }
.action-keepaway { border: 5px double var(--keepaway); background: var(--keepaway-bg); }
.action-emergency { border-color: var(--emergency); background: linear-gradient(var(--emergency-bg), var(--emergency-bg)) padding-box, repeating-linear-gradient(135deg, var(--emergency) 0 10px, #7f1515 10px 20px) border-box; border: 6px solid transparent; }
.action-emergency .level-icon { background: var(--emergency); }
.action-card h3 { color: var(--ink); }
.action-next { border-top: 1px solid rgba(0,0,0,.1); padding-top: 10px; }
.official-contacts { margin-top: 28px; background: #fff; border: 2px solid var(--emergency); border-radius: 14px; padding: 22px; }
.official-contacts ul { margin: 8px 0 12px 20px; display: grid; gap: 8px; }

/* ── FAQ ── */
.faq { display: grid; gap: 8px; max-width: 900px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 16px; color: var(--forest); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--leaf-dark); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 14px; font-size: 16px !important; }
.map-note { position: relative; margin-top: 6px; }
.map-help { background: none; border: 0; padding: 4px 0; min-height: 32px; font: 600 13px 'Open Sans', sans-serif; color: var(--leaf-dark); text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.map-help::before { content: "?"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: var(--leaf-dark); color: #fff; font-size: 11px; font-weight: 800; text-decoration: none; }
.map-help-tip { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 20; width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--leaf-dark); border-radius: 10px; padding: 10px 14px; box-shadow: 0 12px 28px rgba(18,53,31,.18); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.map-help-tip p { font-size: 13.5px !important; line-height: 1.5 !important; margin-bottom: 6px; }
.map-help-tip .map-disclaimer { margin: 0 0 6px; padding: 0; background: none; border: 0; font-weight: 600; max-width: none; }
.map-note:hover .map-help-tip, .map-note:focus-within .map-help-tip { opacity: 1; visibility: visible; transform: none; }

/* ── Methodology ── */
.method-details { background: var(--cream); border-radius: 14px; padding: 18px 22px; margin-top: 14px; }
.method-details summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; color: var(--forest); }
.method-details h3 { margin-top: 18px; font-size: 18px; }
.method-details ul { margin: 8px 0 0 20px; }
.method-details code { background: #fff; padding: 1px 5px; border-radius: 4px; font-size: 15px; }

/* ── Cite ── */
.guide-section--cite { background: var(--sage); }
.citation { margin: 18px 0; background: #fff; border-radius: 14px; padding: 20px; border: 1px solid var(--line); }
.citation figcaption { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 8px; }
.citation blockquote { font-size: 17px; line-height: 1.6; margin: 0 0 12px; overflow-wrap: anywhere; }
.btn-outline-green { background: #fff; color: var(--leaf-dark); border: 2px solid var(--leaf-dark); min-height: 46px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 26px; }
.share-row .btn { min-height: 48px; }
.downloads { margin: 10px 0 0 20px; display: grid; gap: 8px; }
.share-status { min-height: 24px; font-weight: 600; color: var(--leaf-dark); }
[hidden] { display: none !important; }

/* ── Review ── */
.guide-section--review { padding-top: 56px; }
.review-wrap { display: flex; gap: 22px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 40px; }
.review-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.review-line { font-weight: 600; margin-bottom: 4px; }
.review-meta { font-size: 15px !important; color: var(--ink-soft); margin-bottom: 14px; }
.review-cta { font-size: 19px !important; font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--forest); line-height: 1.4 !important; margin-bottom: 8px; }

/* ── Yard: full-bleed animated scene ── */
.yard-hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.yard-head { padding: 40px 16px 16px; max-width: 760px; }
.yard-head h2 { margin-bottom: 8px; }
.yard-intro { color: var(--ink-soft); margin-bottom: 14px; }
.yard-stage { position: relative; width: 100%; aspect-ratio: 1200 / 760; overflow: hidden; background: #cfe3ea; }
.yard-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.yard-panel { margin: 16px; }
.mode-tabs { display: none; flex-wrap: wrap; gap: 8px; }
.js .mode-tabs { display: flex; }
.mode-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--leaf-dark); background: #fff; color: var(--forest); font: 600 15px 'Open Sans', sans-serif; cursor: pointer; }
.mode-tabs button[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.mode-tabs button[aria-selected="true"]::after { content: "✓"; font-weight: 700; }
.yard-caption { font-size: 14px !important; color: var(--ink-soft); margin: 14px 0 6px; }
.yard-modes .mode-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.js .yard-modes .mode-panels { display: none; }
.mode-panel { background: #fff; border-radius: 12px; padding: 18px; border: 1px solid var(--line); }
.mode-spots { font-weight: 600; }

/* Hotspots live inside the SVG, so they stay on target however the scene is cropped. */
.guide a.hotspot { cursor: pointer; outline: none; text-decoration: none !important; transition: opacity .25s; }
.hotspot-body { --hs: 1; transform: scale(var(--hs)); transform-box: fill-box; transform-origin: center; transition: transform .2s; }
.hotspot-hit { fill: transparent; }
.hotspot-mark { fill: #fff; stroke: var(--forest); stroke-width: 4; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.hotspot-inner-ring { fill: none; stroke: var(--keepaway); stroke-width: 2.5; }
.hotspot-num { font: 800 21px 'Montserrat', sans-serif; fill: var(--forest); pointer-events: none; }
.hotspot--routine .hotspot-mark { stroke: var(--routine); }
.hotspot--evaluate .hotspot-mark { stroke: var(--evaluate); stroke-dasharray: 7 4; }
.hotspot--keepaway .hotspot-mark { stroke: var(--keepaway); stroke-width: 3; }
.hotspot--emergency .hotspot-mark { stroke: var(--emergency); fill: var(--emergency-bg); }
.hotspot:hover .hotspot-mark, .hotspot[aria-current="true"] .hotspot-mark { fill: var(--forest); }
.hotspot:hover .hotspot-num, .hotspot[aria-current="true"] .hotspot-num { fill: #fff; }
.hotspot:hover .hotspot-inner-ring, .hotspot[aria-current="true"] .hotspot-inner-ring { stroke: #fff; }
.hotspot[aria-current="true"] .hotspot-body { --hs: 1.15; }
.hotspot:focus-visible .hotspot-hit { fill: none; stroke: var(--focus); stroke-width: 6; }
.hotspot.is-dim { opacity: .55; }

/* Seasons. Layers carry opacity="0" in the markup (so exports stay neutral); CSS reveals the active one. */
.yard-svg .season { transition: opacity .9s ease; }
.yard-stage[data-mode="kids"] .season-kids,
.yard-stage[data-mode="storm"] .season-storm,
.yard-stage[data-mode="fire"] .season-fire { opacity: 1; }
.yard-stage[data-mode="storm"] .lawn-wet { opacity: .16; }
.yard-stage[data-mode="fire"] .haze { opacity: .9; }
.yard-svg .hill-far, .yard-svg .hill-near, .yard-svg .hill-trees, .yard-svg .clouds { transition: fill .9s ease, opacity .9s ease; }
.yard-stage[data-mode="storm"] .hill-far { fill: #8fa199; }
.yard-stage[data-mode="storm"] .hill-near { fill: #7d9a78; }
.yard-stage[data-mode="storm"] .clouds { opacity: 0; }
.yard-stage[data-mode="fire"] .hill-far { fill: #d6c49a; }
.yard-stage[data-mode="fire"] .hill-near { fill: #c8b07a; }
.yard-stage[data-mode="fire"] .hill-trees { fill: #8f9a6a; }
.yard-stage[data-mode="fire"] .clouds { opacity: .5; }
.yard-svg .tufts { transition: stroke .9s ease; }
.yard-stage[data-mode="fire"] .tufts { stroke: #b9984a; }
.yard-stage[data-mode="storm"] .tufts { stroke: #5f8a55; }
.yard-stage[data-mode="storm"] .ground-shadows { opacity: .05; }
.yard-stage[data-mode="fire"] .hill-ridge { stroke: #efe0b8; }
.yard-stage[data-mode="storm"] .hill-ridge { opacity: .2; }

/* Motion: gentle, transform-only, and off for anyone who prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .yard-svg .sway { transform-box: view-box; }
  .yard-svg .sway-oak { transform-origin: 598px 620px; animation: sway 7s ease-in-out infinite; }
  .yard-svg .sway-pine { transform-origin: 1090px 626px; animation: sway 8.5s ease-in-out -2s infinite; }
  .yard-svg .sway-far { transform-origin: -280px 500px; animation: sway 9s ease-in-out -4s infinite; }
  .yard-stage[data-mode="storm"] .sway-oak { animation: sway-storm 2.6s ease-in-out infinite; }
  .yard-stage[data-mode="storm"] .sway-pine { animation: sway-storm 2.2s ease-in-out -.6s infinite; }
  .yard-stage[data-mode="storm"] .sway-far { animation: sway-storm 3s ease-in-out -1s infinite; }
  @keyframes sway { 0%, 100% { transform: rotate(-.6deg); } 50% { transform: rotate(.6deg); } }
  @keyframes sway-storm { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.8deg); } }
  .yard-svg .drift { animation: drift 90s linear infinite; }
  .yard-svg .drift-b { animation-duration: 120s; animation-delay: -50s; }
  .yard-svg .drift-c { animation-duration: 105s; animation-delay: -80s; }
  .yard-stage[data-mode="storm"] .drift { animation-duration: 30s; }
  @keyframes drift { from { transform: translateX(-700px); } to { transform: translateX(1300px); } }
  .yard-svg .flock { animation: flock 40s linear infinite; }
  @keyframes flock { from { transform: translate(-200px, 20px); } to { transform: translate(1800px, -60px); } }
  .yard-svg .rain-fall { animation: rain .55s linear infinite; }
  @keyframes rain { from { transform: translate(0, 0); } to { transform: translate(-24px, 190px); } }
  .yard-svg .leaf { transform-box: fill-box; transform-origin: center; animation: leaf 7s linear infinite; }
  .yard-svg .leaf-1 { animation-duration: 8s; animation-delay: -1.2s; } .yard-svg .leaf-2 { animation-duration: 6.4s; animation-delay: -2.6s; }
  .yard-svg .leaf-3 { animation-duration: 9s; animation-delay: -4s; } .yard-svg .leaf-4 { animation-duration: 7.5s; animation-delay: -5.1s; }
  .yard-svg .leaf-5 { animation-duration: 6.8s; animation-delay: -3.3s; } .yard-svg .leaf-6 { animation-duration: 8.6s; animation-delay: -6.2s; }
  .yard-svg .leaf-7 { animation-duration: 7.2s; animation-delay: -.5s; }
  @keyframes leaf { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(900px, 120px) rotate(400deg); } 100% { transform: translate(1900px, 300px) rotate(820deg); } }
  .yard-stage[data-mode="fire"] .haze { animation: haze 8s ease-in-out infinite; }
  @keyframes haze { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
  /* Every season: grass moves a little */
  .yard-svg .tuft { transform-box: fill-box; transform-origin: 50% 100%; animation: tuft 3.4s ease-in-out infinite; }
  .yard-svg .tufts > g:nth-child(3n) .tuft { animation-delay: -1.1s; }
  .yard-svg .tufts > g:nth-child(3n+1) .tuft { animation-delay: -2.3s; }
  .yard-stage[data-mode="storm"] .tuft { animation-duration: 1.2s; }
  .yard-stage[data-mode="fire"] .tuft { animation-duration: 2.2s; }
  @keyframes tuft { 0%, 100% { transform: skewX(-6deg); } 50% { transform: skewX(8deg); } }

  /* Spring: sun rays, butterflies, a squirrel on the fence, drifting petals, a gentle swing */
  .yard-svg .sun-rays { animation: spin 60s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .yard-svg .bfly-wings { transform-box: fill-box; transform-origin: center; animation: flap .32s ease-in-out infinite alternate; }
  @keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.18); } }
  .yard-svg .bfly-a { animation: flutter-a 14s ease-in-out infinite; }
  .yard-svg .bfly-b { animation: flutter-b 17s ease-in-out -5s infinite; }
  .yard-svg .bfly-c { animation: flutter-c 12s ease-in-out -3s infinite; }
  @keyframes flutter-a { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(70px, -50px); } 45% { transform: translate(150px, -10px); } 70% { transform: translate(80px, 30px); } 85% { transform: translate(20px, -20px); } }
  @keyframes flutter-b { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-60px, -70px); } 50% { transform: translate(-130px, -20px); } 75% { transform: translate(-50px, 25px); } }
  @keyframes flutter-c { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(50px, -40px); } 60% { transform: translate(-30px, -60px); } 80% { transform: translate(-40px, 0); } }
  .yard-svg .squirrel-run { animation: squirrel 18s linear infinite; }
  @keyframes squirrel { 0% { transform: translateX(0); opacity: 0; } 4% { opacity: 1; } 30% { transform: translateX(260px); } 42% { transform: translateX(260px); } 78% { transform: translateX(540px); } 96% { opacity: 1; } 100% { transform: translateX(800px); opacity: 0; } }
  .yard-svg .squirrel-hop { animation: hop .36s ease-in-out infinite alternate; }
  @keyframes hop { from { transform: translateY(0); } to { transform: translateY(-6px); } }
  .yard-svg .petal { transform-box: fill-box; transform-origin: center; animation: petal 16s linear infinite; }
  .yard-svg .petal-1 { animation-duration: 19s; animation-delay: -6s; } .yard-svg .petal-2 { animation-duration: 14s; animation-delay: -9s; }
  .yard-svg .petal-3 { animation-duration: 21s; animation-delay: -3s; } .yard-svg .petal-4 { animation-duration: 18s; animation-delay: -13s; }
  @keyframes petal { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 8% { opacity: 1; } 50% { transform: translate(900px, -40px) rotate(300deg); } 92% { opacity: 1; } 100% { transform: translate(1800px, 30px) rotate(620deg); opacity: 0; } }
  .yard-svg .swing-seat { transform-box: view-box; }
  .yard-svg .seat-a { transform-origin: 830px 456px; }
  .yard-svg .seat-b { transform-origin: 876px 456px; }
  .yard-stage[data-mode="kids"] .seat-a { animation: swing-gentle 3.4s ease-in-out infinite; }
  .yard-stage[data-mode="kids"] .seat-b { animation: swing-gentle 3.4s ease-in-out -1.7s infinite; }
  @keyframes swing-gentle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

  /* Storm: seats and wires thrash, lightning, rings in the puddles */
  .yard-stage[data-mode="storm"] .seat-a { animation: swing-storm 1.5s ease-in-out infinite; }
  .yard-stage[data-mode="storm"] .seat-b { animation: swing-storm 1.3s ease-in-out -.4s infinite; }
  @keyframes swing-storm { 0%, 100% { transform: rotate(-4deg); } 40% { transform: rotate(13deg); } 70% { transform: rotate(6deg); } }
  .yard-stage[data-mode="storm"] .wires { animation: wires 1.8s ease-in-out infinite; }
  @keyframes wires { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
  .yard-svg .flash { animation: flash 12s linear infinite; }
  .yard-svg .bolt { animation: bolt 12s linear infinite; }
  @keyframes flash { 0%, 61%, 63.5%, 65%, 67%, 100% { opacity: 0; } 62% { opacity: .3; } 66% { opacity: .22; } }
  @keyframes bolt { 0%, 61%, 67.5%, 100% { opacity: 0; } 61.5%, 66.5% { opacity: 1; } }
  .yard-svg .ripple { transform-box: fill-box; transform-origin: center; animation: ripple 1.6s ease-out infinite; }
  .yard-svg .ripple-1 { animation-delay: -.5s; } .yard-svg .ripple-2 { animation-delay: -1.1s; } .yard-svg .ripple-3 { animation-delay: -.3s; }
  .yard-svg .ripple-4 { animation-delay: -.9s; } .yard-svg .ripple-5 { animation-delay: -1.4s; }
  @keyframes ripple { from { transform: scale(.4); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }

  /* Wind gusts in the storm and in fire weather */
  .yard-svg .gust { animation: gust 5s ease-in-out infinite; }
  .yard-svg .gust-1 { animation-delay: -1.6s; } .yard-svg .gust-2 { animation-delay: -3.1s; } .yard-svg .gust-3 { animation-delay: -4.2s; }
  .yard-stage[data-mode="storm"] .gust { animation-duration: 2.6s; }
  @keyframes gust { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: .9; } 75% { opacity: .7; } 100% { transform: translateX(1500px); opacity: 0; } }

  /* Fire season: dry leaves drop from the oak, dust drifts, heat shimmers over the grass, the low sun glows */
  .yard-svg .fall-leaf { animation: leaf-fall 9s ease-in infinite; }
  .yard-svg .fall-1 { animation-delay: -2s; animation-duration: 10s; } .yard-svg .fall-2 { animation-delay: -4.5s; }
  .yard-svg .fall-3 { animation-delay: -6.5s; animation-duration: 11s; } .yard-svg .fall-4 { animation-delay: -1s; animation-duration: 8s; }
  .yard-svg .fall-5 { animation-delay: -7.8s; } .yard-svg .fall-6 { animation-delay: -3.4s; animation-duration: 12s; }
  @keyframes leaf-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 8% { opacity: 1; } 35% { transform: translate(26px, 120px) rotate(140deg); } 65% { transform: translate(-14px, 250px) rotate(260deg); } 88% { opacity: 1; } 100% { transform: translate(18px, 380px) rotate(400deg); opacity: 0; } }
  .yard-svg .fleck { animation: fleck 22s linear infinite; }
  .yard-svg .fleck-1 { animation-duration: 28s; animation-delay: -9s; } .yard-svg .fleck-2 { animation-duration: 25s; animation-delay: -15s; }
  .yard-svg .fleck-3 { animation-duration: 31s; animation-delay: -4s; } .yard-svg .fleck-4 { animation-duration: 26s; animation-delay: -19s; }
  .yard-svg .fleck-5 { animation-duration: 24s; animation-delay: -12s; } .yard-svg .fleck-6 { animation-duration: 29s; animation-delay: -22s; }
  .yard-svg .fleck-7 { animation-delay: -6s; }
  @keyframes fleck { 0% { transform: translate(0, 0); } 50% { transform: translate(900px, -30px); } 100% { transform: translate(1800px, 10px); } }
  .yard-svg .shimmer { animation: shimmer 4.5s ease-in-out infinite; }
  .yard-svg .shimmer-1 { animation-delay: -1.2s; } .yard-svg .shimmer-2 { animation-delay: -2.6s; } .yard-svg .shimmer-3 { animation-delay: -3.5s; }
  @keyframes shimmer { 0%, 100% { transform: translateX(-30px); opacity: 0; } 50% { transform: translateX(30px); opacity: .9; } }
  .yard-svg .sun-glow-pulse { transform-box: fill-box; transform-origin: center; animation: glow 6s ease-in-out infinite; }
  @keyframes glow { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.1); opacity: 1; } }
  .hotspot.is-focus .hotspot-mark { animation: spot-pulse 2.4s ease-out 1; }
  @keyframes spot-pulse { 0% { stroke-width: 4; } 30% { stroke-width: 9; } 100% { stroke-width: 4; } }
}
/* Animations pause while the scene is off screen (set by guide.js). */
.yard-stage.is-paused * { animation-play-state: paused !important; }

/* ── Findings row and map context ── */
.map-context { margin: 26px 0 8px; max-width: 860px; }
.map-context h3 { font-size: 20px; }
.map-controls .copy-link { margin-left: 4px; }
.map-view-toggle { display: inline-flex; border: 2px solid var(--leaf-dark); border-radius: 999px; overflow: hidden; margin-right: 8px; }
.map-view-toggle button { min-height: 44px; padding: 6px 14px; background: #fff; border: 0; font: 600 15px 'Open Sans', sans-serif; color: var(--forest); cursor: pointer; }
.map-view-toggle button[aria-checked="true"] { background: var(--forest); color: #fff; }
.map-areas .area { stroke: #fff; stroke-width: 3; cursor: pointer; outline: none; }
.map-areas .area:hover, .map-areas .area.is-active, .map-areas .area:focus-visible { stroke: #e5841b; stroke-width: 7; }
.rate-0 { fill: #e3eef6; } .rate-1 { fill: #a9c9e0; } .rate-2 { fill: #5d97c2; } .rate-3 { fill: #245f8f; } .rate--1 { fill: #f1f1ee; }
.legend-swatch.rate-0 rect { fill: #e3eef6; stroke: #a9c9e0; } .legend-swatch.rate-1 rect { fill: #a9c9e0; } .legend-swatch.rate-2 rect { fill: #5d97c2; } .legend-swatch.rate-3 rect { fill: #245f8f; }
.area-label { font: 700 24px 'Open Sans', sans-serif; fill: #13283a; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 6px; stroke-linejoin: round; pointer-events: none; }
.area-rate { font: 800 30px 'Montserrat', sans-serif; }
.map-svg.is-rate .map-hexes, .map-svg.is-rate .map-places { display: none; }

@media (max-width: 699px) {
  /* Bigger touch targets: the scene is scaled down roughly threefold on phones. */
  .hotspot-body { --hs: 1.9; }
  .hotspot[aria-current="true"] .hotspot-body { --hs: 2.1; }
}
@media (min-width: 700px) and (max-width: 1199px) {
  .hotspot-body { --hs: 1.3; }
  .yard-head { padding-left: 24px; padding-right: 24px; }
  .yard-panel { margin: 16px 24px; }
}
@media (min-width: 1200px) {
  /* Stage, head and panel share one grid area; the scene's extra 560 units of
     sky and lawn on the left sit under the controls. Height keeps the house
     clear of the left column: h ≤ 760/1200 × (viewport − column width). */
  .yard-hero { grid-template-columns: calc(max(24px, 50vw - 600px) + 400px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: clamp(620px, min(88vh, calc((50vw + 330px) * .6333)), 860px); }
  .yard-stage { grid-column: 1 / -1; grid-row: 1 / -1; aspect-ratio: auto; height: 100%; }
  .yard-head, .yard-panel { grid-column: 1; position: relative; z-index: 1; }
  .yard-head { grid-row: 1; margin: 24px 0 0 max(24px, 50vw - 600px); padding: 20px 22px 16px; max-width: 400px; background: rgba(255,255,255,.88); border-radius: 18px 18px 0 0; backdrop-filter: blur(6px); }
  .yard-head h2 { font-size: 26px; }
  .yard-head .yard-intro { font-size: 15px !important; line-height: 1.5 !important; margin-bottom: 10px; }
  .js .yard-head .mode-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .yard-head .mode-tabs button { flex-direction: column; justify-content: center; gap: 4px; border-radius: 12px; padding: 8px 6px; font-size: 13px; line-height: 1.2; text-align: center; min-height: 64px; }
  .yard-head .mode-tabs button[aria-selected="true"]::after { content: none; }
  .yard-panel { padding: 16px 20px; }
  .yard-panel h3 { font-size: 19px; }
  .yard-panel { grid-row: 2; margin: 0 0 24px max(24px, 50vw - 600px); max-width: 400px; border-radius: 0 0 18px 18px; border-top: 0; overflow: auto; min-height: 0; background: rgba(255,255,255,.96); }
  .js .yard-panel { min-height: 0; }
}

/* ── Revision 4 ── */
/* Level marks: the same shapes as the numbered spots in the yard. */
.legend-mark { display: inline-block; flex: none; width: 18px; height: 18px; box-sizing: border-box; vertical-align: -3px; }
.legend-mark--routine { border-radius: 50%; border: 3px solid var(--routine); background: #fff; }
.legend-mark--evaluate { border-radius: 5px; border: 3px dashed var(--evaluate); background: #fff; }
.legend-mark--keepaway { border-radius: 50%; border: 5px double var(--keepaway); background: #fff; }
.legend-mark--emergency { background: var(--emergency); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.level-legend { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 12px 0 4px; }
.level-legend li { display: flex; align-items: center; gap: 8px; font-size: 14px !important; font-weight: 600; line-height: 1.3; }
.legend-faded { font-size: 13px !important; color: var(--ink-soft); }
.spot-details { margin: 10px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.spot-details summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; color: var(--forest); }
.spot-details .yard-list { padding-bottom: 14px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.spot-details .spot { padding: 14px 16px; }
.spot-details .spot p { font-size: 15px !important; }
.yard-panel .spot p { font-size: 15.5px !important; line-height: 1.55 !important; margin-bottom: 8px; }
.spot .level { padding: 3px 10px; }

/* Section nav: a sidebar on wide screens, a sticky bar on smaller ones. */
.section-nav { background: #fff; z-index: 30; }
.section-nav-title { font-family: 'Montserrat', sans-serif; font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.section-nav ol { list-style: none; }
.guide .section-nav a { display: block; text-decoration: none !important; color: var(--ink-soft); font-weight: 600; font-size: 14px; border-radius: 8px; padding: 7px 10px; }
.guide .section-nav a:hover { color: var(--forest); background: var(--sage); }
.guide .section-nav a[aria-current="true"] { color: #fff; background: var(--forest); }
@media (max-width: 1279px) {
  .section-nav { position: sticky; top: 62px; border-bottom: 1px solid var(--line); box-shadow: 0 4px 12px rgba(18,53,31,.06); }
  .section-nav-title { display: none; }
  .section-nav ol { display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; }
  .section-nav ol::-webkit-scrollbar { display: none; }
  .guide .section-nav a { white-space: nowrap; padding: 6px 12px; background: var(--sage); }
}
@media (min-width: 1280px) {
  .section-nav { position: fixed; top: 108px; left: calc(max(0px, 50vw - 600px) + 24px); width: 196px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(18,53,31,.08); opacity: 0; visibility: hidden; transform: translateX(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .section-nav.is-visible { opacity: 1; visibility: visible; transform: none; }
  .guide-body .container { padding-left: 252px; }
  .guide-body .container.narrow { max-width: 1072px; }
}

/* What to do */
.action-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.action-card { padding: 16px 18px; }
.action-card h3 { font-size: 17px !important; gap: 8px; }
.action-card p { font-size: 15px !important; line-height: 1.5 !important; }
.action-keepaway { border-width: 4px; }
.action-emergency { border-width: 5px; }
.contacts { list-style: none; display: grid; gap: 6px; margin: 18px 0 8px; padding: 14px 18px; border: 2px solid var(--emergency); border-radius: 14px; background: #fff; }
.contacts li { font-size: 15.5px !important; }
.subhead { margin-top: 30px !important; }
.table-scroll { overflow-x: auto; }
.diy-table td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.diy-table th[scope="row"] { min-width: 170px; }

/* Data */
.guide-section--data { background: var(--sage); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 6px 0 20px; }
.stat-tile { background: #fff; border-radius: 14px; padding: 14px 16px; border: 1px solid var(--line); }
.stat-value { font-family: 'Montserrat', sans-serif; font-size: 34px !important; font-weight: 800; line-height: 1 !important; color: var(--leaf-dark); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.stat-label { font-size: 14px !important; line-height: 1.4 !important; color: var(--ink-soft); }
.guide-section--data .chart-card { margin-bottom: 18px; }
.chart-scroll { overflow-x: auto; }
.chart-svg--month { min-width: 680px; }
.chart-svg--month .bar rect { fill: var(--leaf); }
.chart-svg--month .bar--event rect { fill: var(--forest); }
.chart-svg--month .bar:hover rect { fill: var(--accent, #e5841b); }
.chart-svg--month .chart-tick { font-size: 11px; }
.chart-year { font: 700 13px 'Open Sans', sans-serif; fill: var(--ink); }
.chart-year-rule { stroke: #c9d3c5; stroke-width: 1; }
.chart-event circle { fill: #e5841b; }
.chart-event line { stroke: #e5841b; stroke-width: 2; }
.chart-event text { font: 800 13px 'Montserrat', sans-serif; fill: #fff; }
.event-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 8px 18px; margin-top: 6px; }
.event-list li { display: flex; gap: 10px; font-size: 14.5px !important; line-height: 1.45 !important; }
.event-num { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e5841b; color: #fff; font: 800 13px 'Montserrat', sans-serif; margin-top: 1px; }
.chart-tooltip { position: fixed; z-index: 60; pointer-events: none; max-width: 280px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 4px solid #e5841b; border-radius: 10px; padding: 8px 12px; font-size: 14px; line-height: 1.45; box-shadow: 0 10px 24px rgba(18,53,31,.16); }
.chart-tooltip strong { display: block; font-family: 'Montserrat', sans-serif; color: var(--forest); }
.chart-svg .bar { cursor: default; }

/* Warning signs and hiring */
.signs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px 22px; }
.signs div { border-top: 1px solid var(--line); padding-top: 10px; }
.signs dt { font-weight: 700; color: var(--forest); }
.signs dd { margin: 0; font-size: 15.5px !important; color: var(--ink-soft); }
.hire-list { margin: 0 0 0 20px; display: grid; gap: 8px; max-width: 860px; }
.method-details p { font-size: 15.5px !important; margin-top: 10px; }
.resource-links { margin: 16px 0 0; font-size: 15px !important; }

@media (max-width: 1100px) {
  .action-grid, .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .action-grid, .stat-row { grid-template-columns: minmax(0, 1fr); }
  .level-legend { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}


/* ── Map views: reports and deaths ── */
.map-switch { display: inline-flex; border: 2px solid var(--forest); border-radius: 999px; overflow: hidden; }
.map-switch button { min-height: 38px; padding: 6px 14px; border: 0; background: #fff; color: var(--forest); font: 700 13.5px 'Open Sans', sans-serif; cursor: pointer; }
.map-switch button[data-view="deaths"] { color: var(--emergency); }
.map-switch button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.map-switch button[data-view="deaths"][aria-pressed="true"] { background: var(--emergency); }
.map-view--reports .map-controls { margin: 4px 0 6px; }
.bay-water { fill: #dbe9f1; }
.county { fill: #f6f4ec; stroke: #c3c8bb; stroke-width: 2.5; }
.county-label { font: 700 26px 'Open Sans', sans-serif; letter-spacing: .12em; fill: #9aa394; }
.sr-marker polygon { fill: var(--leaf-dark); stroke: #fff; stroke-width: 3; }
.sr-marker text { font: 800 32px 'Montserrat', sans-serif; fill: var(--forest); paint-order: stroke; stroke: #f6f4ec; stroke-width: 6px; stroke-linejoin: round; }
.death { cursor: pointer; outline: none; }
.death-dot { fill: var(--emergency); stroke: #fff; stroke-width: 4; }
.death--calm .death-dot { fill: #fff; stroke: var(--emergency); stroke-width: 6; }
.death-pulse { fill: none; stroke: var(--emergency); stroke-width: 3; opacity: 0; }
.death:hover .death-dot, .death.is-active .death-dot, .death:focus-visible .death-dot { stroke: #e5841b; stroke-width: 7; }
.death-label { font: 700 32px 'Open Sans', sans-serif; fill: #5b2323; paint-order: stroke; stroke: #f6f4ec; stroke-width: 6px; stroke-linejoin: round; pointer-events: none; }
.legend-death, .legend-star { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--emergency); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--emergency); vertical-align: -2px; }
.legend-death--calm { background: #fff; border: 3px solid var(--emergency); box-shadow: none; }
.legend-star { border-radius: 0; background: var(--leaf-dark); box-shadow: none; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.map-view--deaths .map-readout { background: #fdecec; }
.map-view--deaths .map-readout-title { color: var(--emergency); }
.alarm-text strong { color: var(--emergency); }
@media (prefers-reduced-motion: no-preference) {
  .death-pulse { animation: death-pulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  .death:nth-child(3n) .death-pulse { animation-delay: -.9s; }
  .death:nth-child(3n+1) .death-pulse { animation-delay: -1.7s; }
  @keyframes death-pulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
}
@media (max-width: 640px) {
  .map-switch { width: 100%; }
  .map-switch button { flex: 1; padding: 6px 8px; font-size: 12.5px; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .chart-grid, .action-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 999px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 640px) {
  .breadcrumb ol { font-size: 13px; }
  .guide-hero { padding: 92px 0 28px; }
  .guide-section { padding: 48px 0; }
  .guide p, .guide li, .guide dd { font-size: 16px; }
  .guide-lede { font-size: 17px !important; }
  .alarm-value { font-size: 48px !important; }
  .hero-map { padding: 12px 10px 10px; border-radius: 16px; }
  .hero-map .map-controls select { max-width: 100%; }
  .hbar { grid-template-columns: minmax(0, 1fr) 96px; }
  .hbar-label { grid-column: 1 / -1; }
  .review-wrap { flex-direction: column; }
  .chart-value { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .guide *, .guide *::before, .guide *::after { transition: none !important; animation: none !important; }
}

/* ── Print: a clean page. "Print the checklist" prints only the checklist. ── */
@media print {
  #shared-header, #shared-footer, #shared-popup-form, .header, .footer, .skip-link, .section-nav, .mode-tabs, .yard-panel, .hotspot, .map-controls, .map-howto, [data-copy-link], .copy-link, .share-row, .print-btn, .btn { display: none !important; }
  .guide-section, .guide-hero { padding: 18px 0 !important; background: #fff !important; }
  .guide p, .guide li, .guide dd { font-size: 11pt !important; }
  .js .mode-panels { display: grid; }
  .chart-card, .spot, .finding, .action-card, .checklist li { break-inside: avoid; }
  .data-details > *:not(summary) { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; word-break: break-all; }
  .resource-group a::after { content: " (" attr(href) ")"; }
  .print-only { display: block; }
  body.print-checklist .guide > *:not(#checklist) { display: none !important; }
  body.print-checklist #checklist { padding: 0 !important; }
  body.print-checklist .checklist-wrap { display: block; }
  body.print-checklist .checklist { gap: 5pt; }
  body.print-checklist .checklist li { border: 1px solid #999; padding: 5pt 8pt 5pt 36pt; font-size: 10.5pt !important; line-height: 1.4 !important; }
  body.print-checklist .section-intro, body.print-checklist .not-assessment { margin-bottom: 8pt; font-size: 10.5pt !important; }
  body.print-checklist h2 { font-size: 20pt; margin-bottom: 6pt; }
  body.print-checklist .checklist li::before { left: 8pt; top: 5pt; width: 18pt; height: 18pt; content: ""; border: 1.5pt solid #000; border-radius: 3pt; }
  body.print-checklist .print-footer { margin-top: 12pt; font-size: 9pt !important; }
}

/* Compact checklist in the yard panel so it fits without scrolling. */
.yard-panel .panel-spot-list { gap: 5px; margin-top: 8px; }
.yard-panel .panel-spot-list button { min-height: 40px; padding: 5px 10px; font-size: 14px; }
.yard-panel .panel-spot-list .spot-num { width: 26px; height: 26px; font-size: 13px; }
.yard-panel .panel-mode-intro { margin-bottom: 6px; }
@media (min-width: 1200px) {
  /* The selected tab already names the check, so the list skips its heading. */
  .yard-panel > h3 { display: none; }
  .yard-panel .panel-spot-list { gap: 4px; }
  .yard-panel .panel-spot-list button { min-height: 36px; padding: 4px 10px; font-size: 13.5px; }
  .yard-panel > p { font-size: 14.5px !important; line-height: 1.45 !important; margin-bottom: 4px; }
}
@media (min-width: 1200px) {
  .yard-panel .panel-spot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .yard-panel .panel-spot-list button { align-items: flex-start; min-height: 44px; padding: 6px 8px; font-size: 13px; line-height: 1.3; gap: 7px; }
  .yard-panel .panel-spot-list .spot-num { width: 22px; height: 22px; font-size: 12px; }
}
