/* Shared explanatory figures. All essential information also exists as HTML. */
.section-figure { margin: 22px 0; min-width: 0; }
.section-figure > a { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.section-figure img { display: block; width: 100%; height: auto; aspect-ratio: auto; }
.section-figure figcaption { padding: 12px 2px 0; font-size: 14px; line-height: 1.7; color: var(--ink-soft); text-align: left; }
.section-figure figcaption strong { color: var(--ink); }
.section-figure .figure-note { display: block; margin-top: 6px; font-size: 12px; }
.section-figure > a:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 4px; }
.visual-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 24px; }
.visual-facts > div { border-left: 2px solid var(--line); padding-left: 12px; }
.visual-facts dt { font-size: 14px; font-weight: 700; color: var(--ink); }
.visual-facts dd { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.visual-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0; margin: 22px 0; list-style: none; }
.visual-steps > li { min-width: 0; }
.visual-steps .step-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.visual-steps .step-head h3 { font-size: 16px; line-height: 1.5; color: var(--ink); }
.visual-steps .step-num { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; background: var(--brand-deep); color: var(--paper); }
.visual-steps .section-figure { margin: 0 0 12px; }
.visual-steps > li > p { font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.visual-steps > li > p strong { color: var(--ink); }
.visual-steps > li:last-child { grid-column: 1 / -1; max-width: 560px; }
.visual-callout { margin: 16px 0; padding: 16px; border-left: 3px solid var(--brand); background: var(--bg); color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.visual-callout strong { color: var(--ink); }
@media (max-width: 420px) {
  .visual-steps { grid-template-columns: minmax(0, 1fr); }
  .visual-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .section-figure { margin: 18px 0; }
}
@media print {
  .section-figure, .visual-steps > li { break-inside: avoid; }
}

.visual-checklist { padding-left: 18px; margin: 12px 0; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.visual-checklist li + li { margin-top: 8px; }
.visual-checklist li::marker { color: var(--brand-deep); }
.visual-link { display: inline-block; margin: 12px 0; font-size: 13px; font-weight: 700; color: var(--brand-deep); text-underline-offset: 4px; }
.visual-process { list-style: none; padding: 0; margin: 24px 0; counter-reset: process; }
.visual-process li { position: relative; padding: 0 0 20px 40px; counter-increment: process; }
.visual-process li::before { content: counter(process); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; }
.visual-process strong { display: block; font-size: 14px; }
.visual-process span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.visual-process a { color: var(--brand-deep); }
.visual-steps + .visual-link { margin-bottom: 18px; }

/* Short, semantic reference tables for the guide. */
.guide-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 22px 0 10px; font-size: 14px; line-height: 1.65; text-align: left; }
.guide-table caption { text-align: left; font-weight: 700; color: var(--ink); padding-bottom: 12px; }
.guide-table th, .guide-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table thead th { background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; }
.guide-table th:first-child { width: 32%; }
.guide-table tbody th { font-weight: 600; color: var(--ink); }
.guide-table td { color: var(--ink-soft); }
.guide-table td strong { color: var(--ink); }
.guide-table.filter-compare th:first-child { width: 22%; }
.guide-details { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.guide-details summary { cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.6; }
.guide-details summary:focus-visible, .danger-sources summary:focus-visible { outline: 2px solid var(--brand-glow); outline-offset: 4px; }
.guide-details .guide-table { margin-top: 16px; font-size: 13px; }
.guide-details .guide-table th, .guide-details .guide-table td { padding-left: 6px; padding-right: 6px; }
.inline-link { display: inline; margin: 0; font-size: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Reused DANGER section: emotional illustration with searchable HTML copy. */
.warning-section { background: var(--ink); }
.warning-section > * { position: relative; }
.danger-lead { color: var(--brand-soft); font-size: 15px; line-height: 1.9; margin: 20px 0; }
.danger-lead strong { color: var(--paper); }
.danger-figure > a { border-color: var(--ink-soft); background: var(--ink); }
.danger-figure figcaption { color: var(--brand-soft); font-size: 13px; }
.danger-figure .figure-note { color: var(--brand-pool); font-size: 11px; }
.danger-grid { gap: 12px; margin-top: 24px; }
.danger-card { border-radius: 14px; padding: 18px; }
.danger-card h3 { line-height: 1.5; }
.danger-card p { font-size: 14px; line-height: 1.8; color: var(--brand-soft); }
.danger-card .danger-icon { font-size: 14px; font-weight: 700; }
.danger-action { font-size: 16px; line-height: 1.9; margin: 28px 0 16px; color: var(--brand-soft); }
.danger-action strong { color: var(--paper); }
.danger-cta { display: block; padding: 15px; text-align: center; border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.danger-cta:focus-visible { outline: 3px solid var(--brand-pool); outline-offset: 4px; }
.danger-sources { margin-top: 24px; color: var(--brand-pool); font-size: 12px; line-height: 1.8; }
.danger-sources summary { cursor: pointer; }
.danger-sources p { margin: 12px 0; }
.danger-sources ul { padding-left: 18px; }
.danger-sources a { color: var(--brand-soft); text-underline-offset: 3px; }
.hv { border-radius: 14px; }
.hv svg { border-radius: 10px; }
/* Raster home + SVG effects use the same coordinates; no redrawing of the home. */
.hv-scene { position: relative; aspect-ratio: 1536 / 755; margin: 0 -12px; overflow: hidden; isolation: isolate; background: var(--bg); }
.hv-scene .hv-home-image { display: block; position: absolute; width: 100%; height: auto; top: -12.582781%; left: 0; }
.hv-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; pointer-events: none; }
/* One switch design, two sizes, with matching colors/numbers for each linked pair. */
.hv .hv-switch { --hv-control: var(--brand-deep); --hv-track-width: 36px; --hv-track-height: 22px; --hv-thumb: 16px; --hv-travel: 14px; border: 1px solid color-mix(in srgb, var(--hv-control) 38%, var(--paper)); background: var(--paper); color: var(--ink); font-family: inherit; cursor: pointer; box-shadow: 0 2px 5px var(--brand-soft); transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.hv .hv-switch[data-control="window"] { --hv-control: var(--window-control); }
.hv .hv-switch[aria-checked="true"] { background: color-mix(in srgb, var(--hv-control) 12%, var(--paper)); border-color: var(--hv-control); color: var(--ink); transform: none; box-shadow: 0 1px 3px var(--brand-soft); }
.hv .hv-switch.nudge { animation: none; }
.hv .hv-switch .sw { display: block; position: relative; flex: none; width: var(--hv-track-width); height: var(--hv-track-height); margin: 0; border-radius: 100px; background: var(--muted); box-shadow: inset 0 1px 3px var(--ink-soft); transition: background .2s ease; }
.hv .hv-switch .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: var(--hv-thumb); height: var(--hv-thumb); border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px var(--ink-soft); transform: translateX(0); transition: transform .2s ease; }
.hv .hv-switch[aria-checked="true"] .sw { background: var(--hv-control); }
.hv .hv-switch[aria-checked="true"] .sw::after { background: var(--paper); transform: translateX(var(--hv-travel)); }
.hv .hv-pair { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--hv-control); color: var(--paper); font: 700 11px 'DM Sans', sans-serif; }
.hv .hv-switch.hv-linked, .hv .hv-switch:focus-visible { outline: 2px solid var(--hv-control); outline-offset: 3px; }
.hv-hotspot { position: absolute; z-index: 2; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.hv-hotspot .nm { white-space: nowrap; }
.hv-hotspot:disabled { display: none; }
.hv-window-spot { top: 30%; left: 2%; }
.hv-unit-spot { top: 27%; right: 2%; }
.hv-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.hv .hv-modes .hv-switch { display: flex; gap: 6px; align-items: center; min-width: 0; min-height: 46px; padding: 8px; border-top: 3px solid var(--hv-control); border-radius: 12px; text-align: left; }
.hv-control-label { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.hv .hv-modes .hv-pair { width: 16px; height: 16px; }
.hv .hv-modes .st { display: none; margin: 0 0 0 auto; color: var(--muted); opacity: 1; font-size: 12px; }
.hv .hv-modes [aria-checked="true"] .st { color: var(--hv-control); }
.hv .hv-modes .sw { margin-left: auto; }
.hv-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.hv-weather { display: flex; flex-direction: column; flex: none; gap: 2px; margin: 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.hv-weather > span:first-child { color: var(--ink-soft); font-weight: 600; }
.hv-header .hv-keys { justify-content: flex-end; gap: 3px 10px; margin: 0 0 0 auto; font-size: 11px; }
.hv-header .hv-keys span { white-space: nowrap; gap: 5px; }
.hv-header .hv-keys s { width: 11px; height: 7px; }
@media (min-width: 481px) {
  .hv .hv-modes .st { display: block; }
  .hv .hv-modes .sw { margin-left: 4px; }
}
.hv-example-note { margin: 12px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.hv-window-sash { opacity: 0; transform: translateY(0); transition: transform .7s ease, opacity .2s ease; }
.hv svg[data-win="open"] .hv-window-sash { opacity: 1; transform: translateY(-110px); }
.hv-scene svg[data-erv="on"] .flow, .hv-scene svg[data-win="open"] .win-in { animation-name: hvImageFlow; }
@keyframes hvImageFlow { to { stroke-dashoffset: -54; } }
@media (prefers-reduced-motion: reduce) {
  .hv *, .hv *::before, .hv *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 420px) {
  .warning-section { padding: 44px 20px; }
  .guide-table { font-size: 13px; }
  .guide-table th, .guide-table td { padding: 11px 8px; }
}
