/* 920 S5-A/B presentation only. Load after style.css and tokens-wh.css. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--wh-font); font-size: var(--wh-fs-body); line-height: 1.65; color: var(--wh-ink); background: var(--wh-bg); }
button, input, select, textarea { font: inherit; }
a { color: var(--wh-brand); text-underline-offset: 3px; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--wh-focus); outline-offset: 4px; }
header.wh-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px max(24px, calc((100vw - 1152px) / 2)); border-color: var(--wh-border); box-shadow: var(--wh-shadow-sm); }
header.wh-header > a { font-size: 19px; color: var(--wh-brand); letter-spacing: -.6px; }
header.wh-header nav { margin: 0; gap: 24px; font-size: var(--wh-fs-body); }
header.wh-header nav a { color: var(--wh-muted); font-weight: 600; }
header.wh-header nav a[aria-current="page"] { color: var(--wh-brand); text-decoration: underline; text-decoration-thickness: 2px; }
main#app { max-width: 1200px; padding: 28px 24px 64px; width: 100%; min-width: 0; }
body.wh-page-detail main#app, body.wh-page-apply main#app { max-width: 920px; }
h1, .wh-title { font-size: var(--wh-fs-h1); line-height: 1.35; letter-spacing: -.7px; }
h2 { font-size: var(--wh-fs-h2); line-height: 1.4; letter-spacing: -.35px; }
p { overflow-wrap: anywhere; }
.wh-hero { position: relative; padding: 30px 32px; margin: 0 0 28px; border: 1px solid var(--wh-border); border-radius: 20px; background: var(--wh-brand-soft); box-shadow: var(--wh-shadow-sm); }
.wh-eyebrow, .wh-hero .eyebrow { margin: 0 0 8px; font-size: var(--wh-fs-caption); font-weight: 800; color: var(--wh-brand); letter-spacing: 1px; }
.wh-hero h1 { margin: 0 0 10px; }
.wh-hero p { margin: 8px 0 16px; color: var(--wh-muted); }
.wh-hero-search, .wh-hero form { display: flex; align-items: center; gap: 8px; max-width: 650px; }
.wh-hero-search input, .wh-hero form input { flex: 1; min-width: 0; }
.wh-workspace { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: start; }
.wh-map-panel, .wh-results-panel { min-width: 0; }
.wh-map-panel { background: var(--wh-surface); border: 1px solid var(--wh-border); border-radius: var(--wh-radius-card); padding: 20px; box-shadow: var(--wh-shadow-md); position: sticky; top: 100px; }
.wh-map-panel h2, .wh-results-panel h2 { margin: 0 0 12px; }
.wh-map-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.wh-map-toolbar .wh-btn { margin: 0; }
.wh-map-canvas { margin: 12px 0; border-radius: 10px; background: var(--wh-bg); padding: 8px; }
.wh-map-canvas svg { display: block; width: 100%; height: auto; max-height: 440px; }
.wh-map-canvas svg [role="button"] { cursor: pointer; stroke: var(--wh-surface); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.wh-map-canvas svg [role="button"]:hover, .wh-map-canvas svg [role="button"]:focus-visible { stroke: var(--wh-focus); stroke-width: 3; outline: none; }
.wh-map-canvas svg [aria-pressed="true"] { stroke: var(--wh-focus); stroke-width: 3; }
.wh-region-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.wh-region-buttons button { min-height: 40px; padding: 7px 10px; font-size: var(--wh-fs-caption); border: 1px solid var(--p-control-border); color: var(--wh-brand); background: var(--wh-surface); border-radius: 8px; cursor: pointer; }
.wh-region-buttons button[aria-pressed="true"] { background: var(--wh-brand); color: var(--wh-surface); border-color: var(--wh-brand); }
.wh-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; font-size: var(--wh-fs-caption); color: var(--wh-muted); }
.wh-map-toggle { display: none; }
.wh-map-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--wh-fs-caption); color: var(--wh-muted); }
.wh-map-legend i { display: inline-block; width: 16px; height: 16px; border: 1px solid var(--p-control-border); }
.wh-filter-panel { gap: 10px; padding: 16px; background: var(--wh-surface); border: 1px solid var(--wh-border); border-radius: var(--wh-radius-card); }
.wh-select, .wh-search { min-height: 44px; max-width: 100%; border: 1px solid var(--p-control-border); font-size: var(--wh-fs-body); padding: 10px 12px; color: var(--wh-ink); }
.wh-search::placeholder { color: var(--wh-muted); opacity: 1; }
.wh-filter-panel .wh-search { flex: 1 1 160px; min-width: 0; }
.wh-checkbox-label { gap: 7px; font-size: var(--wh-fs-caption); min-height: 36px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--wh-brand); }
.wh-subtitle, .wh-card-meta, .wh-hint, .wh-subsidy-extra, .wh-subsidy-notes, .wh-period-label, .wh-source-notice, .wh-disclaimer { font-size: var(--wh-fs-caption); color: var(--wh-muted); }
.wh-subtitle { margin: 8px 0 16px; }
.wh-compare-bar { flex-wrap: wrap; gap: 10px; font-size: var(--wh-fs-caption); padding: 0 0 8px; }
.wh-list { gap: 16px; }
.wh-card { padding: 22px; border-color: var(--wh-border); border-radius: var(--wh-radius-card); box-shadow: var(--wh-shadow-sm); }
.wh-card-title { font-size: 20px; line-height: 1.45; letter-spacing: -.35px; color: var(--wh-ink); margin-bottom: 8px; }
.wh-card-title:hover { color: var(--wh-brand); text-decoration: underline; }
.wh-card-meta { margin: 6px 0; }
.wh-card-provider { font-weight: 600; color: var(--wh-muted); font-size: var(--wh-fs-caption); }
.wh-badges { gap: 7px; margin: 8px 0; }
.wh-badge { font-size: var(--wh-fs-caption); line-height: 1.5; padding: 4px 9px; color: var(--wh-brand); background: var(--wh-brand-soft); font-weight: 600; }
.wh-badge--private { color: var(--wh-accent); background: var(--wh-accent-soft); }
.wh-badge--public { color: var(--wh-brand); background: var(--wh-brand-soft); }
.wh-badge--closed { color: var(--p-rose); background: var(--p-rose-pale); }
.wh-badge--pending, .wh-period-item--pending { color: var(--p-violet); background: var(--p-violet-pale); }
.wh-card-axes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.wh-card-axes > * { display: block; padding: 9px 10px; border-radius: 8px; min-width: 0; overflow-wrap: anywhere; font-size: var(--wh-fs-caption); line-height: 1.55; }
.wh-axis--eligibility { color: var(--wh-brand); background: var(--wh-brand-soft); }
.wh-axis--deadline { color: var(--p-rose); background: var(--p-rose-pale); }
.wh-axis--selfpay { color: var(--wh-accent); background: var(--wh-accent-soft); }
.wh-axis--settlement { color: var(--p-violet); background: var(--p-violet-pale); }
.wh-back, .wh-link { color: var(--wh-brand); font-size: var(--wh-fs-body); }
.wh-title { margin: 12px 0 16px; }
.wh-section { border-color: var(--wh-border); border-radius: var(--wh-radius-card); padding: 24px; margin-bottom: 20px; box-shadow: var(--wh-shadow-sm); }
.wh-section h2 { font-size: var(--wh-fs-h2); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--wh-brand-soft); }
.wh-row { gap: 16px; padding: 12px 0; font-size: var(--wh-fs-body); border-color: var(--wh-border); }
.wh-row-label { flex-basis: 110px; font-size: var(--wh-fs-caption); font-weight: 700; color: var(--wh-muted); }
.wh-subsidy-item { padding: 14px; font-size: var(--wh-fs-body); border-color: var(--wh-border); background: var(--wh-bg); }
.wh-subsidy-head { color: var(--wh-brand); }
.wh-raw-support, .wh-nonmonetary-list, .wh-period-item, .wh-source-line { font-size: var(--wh-fs-body); color: var(--wh-ink); line-height: 1.7; }
.wh-nonmonetary-list li { margin: 7px 0; }
.wh-source-notice { color: var(--p-rose); background: var(--p-rose-pale); padding: 10px 12px; }
.wh-btn { min-height: 44px; padding: 10px 16px; border-color: var(--p-control-border); font-size: var(--wh-fs-body); color: var(--wh-brand); font-weight: 600; line-height: 1.5; }
.wh-btn:hover { background: var(--wh-brand-soft); }
.wh-btn--primary { background: var(--wh-brand); color: var(--wh-surface); border-color: var(--wh-brand); }
.wh-btn--primary:hover { background: var(--wh-brand-hover); }
.wh-btn--disabled, .wh-btn:disabled { background: var(--wh-bg); color: var(--wh-muted); cursor: not-allowed; border-color: var(--wh-border); }
.wh-btn--small { font-size: var(--wh-fs-caption); min-height: 40px; padding: 8px 10px; }
.wh-deadline, .wh-checklist { font-size: var(--wh-fs-body); padding: 18px; border-color: var(--wh-border); border-radius: var(--wh-radius-card); }
.wh-checklist-item { font-size: var(--wh-fs-body); margin: 10px 0; }
.wh-compare-table { max-width: 100%; border-color: var(--wh-border); border-radius: var(--wh-radius-card); box-shadow: var(--wh-shadow-sm); }
.wh-compare-row { grid-template-columns: 120px repeat(var(--wh-compare-columns, 4), minmax(180px, 1fr)); border-color: var(--wh-border); min-width: min-content; }
.wh-compare-row--header { background: var(--wh-brand-soft); }
.wh-compare-cell { font-size: var(--wh-fs-body); padding: 16px; overflow-wrap: anywhere; }
.wh-compare-cell--label { color: var(--wh-muted); font-size: var(--wh-fs-caption); background: var(--wh-bg); }
.wh-error { color: var(--p-rose); }
@media (max-width: 760px) {
  header.wh-header { padding: 14px 16px; gap: 12px; }
  header.wh-header > a { font-size: 18px; }
  header.wh-header nav { gap: 16px; font-size: var(--wh-fs-caption); }
  main#app { padding: 20px 16px 40px; }
  .wh-hero { padding: 24px 20px; margin-bottom: 20px; border-radius: 16px; }
  .wh-hero-search, .wh-hero form { flex-wrap: wrap; }
  .wh-hero-search input, .wh-hero form input { flex-basis: 100%; }
  .wh-workspace { display: flex; flex-direction: column; gap: 20px; }
  .wh-map-panel, .wh-results-panel { width: 100%; }
  .wh-map-panel { position: static; padding: 16px; }
  .wh-map-panel h2, .wh-results-panel h2 { font-size: var(--wh-fs-h2); }
  .wh-map-canvas svg { max-height: 330px; }
  .wh-map-toggle { display: inline-block; }
  .wh-map-panel.is-collapsed .wh-map-body { display: none; }
  .wh-filter-panel { padding: 12px; }
  .wh-select { width: 100%; }
  .wh-card { padding: 18px; }
  .wh-card-title { font-size: 19px; }
  .wh-section { padding: 18px; }
  .wh-row { gap: 10px; }
  .wh-row-label { flex-basis: 78px; }
  .wh-compare-cell { padding: 12px; }
  .wh-compare-row { grid-template-columns: 92px repeat(var(--wh-compare-columns, 4), minmax(170px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Integration hooks for the inline reference maps and accessible controls. */
.wh-map-canvas .wh-map-region.wh-density-0 { fill: var(--wh-density-0) !important; }
.wh-map-canvas .wh-map-region.wh-density-1 { fill: var(--wh-density-1) !important; }
.wh-map-canvas .wh-map-region.wh-density-2 { fill: var(--wh-density-2) !important; }
.wh-map-canvas .wh-map-region.wh-density-3 { fill: var(--wh-density-3) !important; }
.wh-map-canvas .wh-map-region.wh-density-4 { fill: var(--wh-density-4) !important; }
.wh-map-legend .wh-density-0 { background: var(--wh-density-0); }
.wh-map-legend .wh-density-1 { background: var(--wh-density-1); }
.wh-map-legend .wh-density-2 { background: var(--wh-density-2); }
.wh-map-legend .wh-density-3 { background: var(--wh-density-3); }
.wh-map-legend .wh-density-4 { background: var(--wh-density-4); }
.wh-axis strong, .wh-axis span { display: block; }
.wh-axis strong { margin-bottom: 3px; }
.wh-detail-search label { display: block; font-size: var(--wh-fs-caption); font-weight: 700; margin: 10px 0 6px; }
.wh-detail-search input { width: 100%; max-width: 100%; min-width: 0; }
.wh-skip { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; color: var(--wh-surface); background: var(--wh-brand); border-radius: 8px; font-weight: 700; }
.wh-skip:focus { top: 12px; }

.wh-hero .wh-eyebrow { font-family: var(--wh-font); font-size: var(--wh-fs-caption); font-weight: 700; letter-spacing: .12em; text-transform: lowercase; color: var(--wh-brand); }
