:root {
  --navy: #552d27;
  --navy-2: #693c34;
  --blue: #b83c2d;
  --blue-soft: #fbe9e4;
  --sky: #F0897A;
  --coral: #D94F3D;
  --coral-soft: #fff0ed;
  --amber: #f2ad4a;
  --teal: #138a78;
  --teal-dark: #075f57;
  --teal-soft: #e8f7f3;
  --ink: #2A2622;
  --muted: #625950;
  --line: #e4d7ce;
  --paper: #FCFAF5;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(6, 43, 79, 0.09);
  --radius: 22px;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); line-height: 1.65; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.skip-link { position: fixed; top: 0; left: 1rem; z-index: 100; padding: .7rem 1rem; background: #fff; color: var(--navy); transform: translateY(-120%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(220,230,239,.85); background: rgba(246,249,252,.9); backdrop-filter: blur(18px); }
.header-inner { width: min(1180px, calc(100% - 48px)); height: 74px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; line-height: 1.15; }
.brand-mark { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: white; background: var(--navy); }
.brand-mark svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.brand b { display: block; font-size: .88rem; letter-spacing: .07em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; letter-spacing: .025em; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.data-date { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.icon-button { border: 1px solid var(--line); border-radius: 999px; background: white; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; cursor: pointer; font-weight: 700; font-size: .8rem; }
.icon-button:hover { border-color: var(--blue); color: var(--blue); }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

main { overflow: hidden; }
.overview { position: relative; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 42px; display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 52px; }
.overview::before { content: ""; position: absolute; width: 480px; height: 280px; top: -80px; right: -90px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(118,185,255,.17), transparent 68%); }
.eyebrow { display: flex; gap: 8px; margin-bottom: 18px; }
.eyebrow span { padding: 6px 10px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: .76rem; font-weight: 800; letter-spacing: .05em; }
.eyebrow span:last-child { color: #9c3d35; background: var(--coral-soft); }
h1, h2, h3, p { margin-top: 0; }
.overview h1 { margin-bottom: 16px; color: var(--navy); font-size: clamp(2.45rem, 5vw, 4.65rem); line-height: 1.16; letter-spacing: -.045em; }
.overview h1 em { color: var(--blue); font-style: normal; }
.overview-copy > p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.overview-note { justify-self: end; max-width: 350px; display: flex; gap: 13px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: 0 12px 30px rgba(6,43,79,.05); }
.status-dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: #1fa66f; box-shadow: 0 0 0 6px rgba(31,166,111,.12); }
.overview-note b { color: var(--navy); }
.overview-note p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }

.north-star { width: min(1180px, calc(100% - 48px)); margin: 0 auto 52px; display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 12px; }
.north-card { position: relative; min-height: 176px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.north-card.primary { color: white; border-color: transparent; background: linear-gradient(145deg, var(--navy), #7d3e34); box-shadow: var(--shadow); }
.north-card.primary::after { content: ""; position: absolute; width: 130px; height: 130px; right: -30px; bottom: -65px; border: 20px solid rgba(118,185,255,.18); border-radius: 50%; }
.card-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.primary .card-label { color: #fff0e9; }
.mini-icon { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-weight: 900; }
.primary .mini-icon { color: white; background: rgba(255,255,255,.13); }
.north-card strong { display: block; margin-top: 15px; color: var(--navy); font-size: clamp(1.75rem, 2.8vw, 2.55rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.north-card.primary strong { color: white; }
.north-card p { margin: 10px 0 0; color: var(--muted); font-size: .78rem; }
.north-card.primary p { color: #ffe3d9; }
.value-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 7px; font-size: .69rem; font-weight: 900; letter-spacing: .04em; }
.north-card .value-tag { position: absolute; right: 16px; bottom: 16px; }
.value-tag.fact { color: #0f5d9f; background: #e8f3ff; }
.value-tag.proposal { color: #a43c32; background: var(--coral-soft); }
.value-tag.estimate { color: #73500d; background: #fff4d8; }
.text-button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: .78rem; font-weight: 800; cursor: pointer; }
.confidence .text-button { position: absolute; left: 24px; bottom: 17px; }

.policy-tabs { width: min(1180px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.policy-tab { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px 18px 0 0; background: #edf3f8; color: var(--muted); text-align: left; cursor: pointer; }
.policy-tab:hover { color: var(--navy); background: white; }
.policy-tab.active { z-index: 2; color: var(--navy); border-color: var(--navy); border-bottom-color: white; background: white; box-shadow: 0 -10px 35px rgba(6,43,79,.06); }
.policy-tab:nth-child(2).active { border-color: var(--coral); border-bottom-color: white; }
.policy-tab:nth-child(3).active { border-color: var(--amber); border-bottom-color: white; }
.policy-tab:nth-child(4).active { border-color: var(--teal); border-bottom-color: white; }
.tab-number { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: white; background: var(--navy); font-size: .8rem; font-weight: 900; }
.policy-tab:nth-child(2) .tab-number { background: var(--coral); }
.policy-tab:nth-child(3) .tab-number { color: var(--navy); background: var(--amber); }
.policy-tab:nth-child(4) .tab-number { background: var(--teal); }
.policy-tab b, .policy-tab small { display: block; }
.policy-tab b { font-size: 1rem; }
.policy-tab small { margin-top: 3px; color: var(--muted); font-size: .75rem; }

.policy-panel { width: min(1240px, calc(100% - 24px)); margin: -1px auto 72px; padding: clamp(30px, 5vw, 58px); border: 1px solid var(--navy); border-radius: 24px; background: white; box-shadow: var(--shadow); }
#childcare-panel { border-color: var(--coral); }
#meal-panel { border-color: #d79a3e; }
#care-panel { border-color: var(--teal); }
.policy-panel[hidden] { display: none; }
.panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-kicker, .scenario-title span, .section-heading-small span, .flow-column > span { display: block; margin-bottom: 7px; color: var(--blue); font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
#childcare-panel .section-kicker, #childcare-panel .scenario-title span { color: var(--coral); }
#meal-panel .section-kicker, #meal-panel .scenario-title span { color: #bd7411; }
#care-panel .section-kicker, #care-panel .scenario-title span { color: var(--teal); }
.panel-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.75rem, 3.1vw, 2.8rem); line-height: 1.25; letter-spacing: -.035em; }
.evidence-badges { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }

.journey { display: grid; grid-template-columns: 1fr 92px 1fr; align-items: stretch; gap: 10px; margin-bottom: 28px; }
.journey-stage { position: relative; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: #fbfdff; }
.journey-stage.future { border-color: #b9d8fb; background: linear-gradient(145deg, #f2f8ff, #fff); }
.childcare-journey .journey-stage.future { border-color: #fac8c3; background: linear-gradient(145deg, #fff4f1, #fff); }
.meal-journey .journey-stage.future { border-color: #f1d6a5; background: linear-gradient(145deg, #fff8e9, #fff); }
.care-journey .journey-stage.future { border-color: #a9ded5; background: linear-gradient(145deg, #eefaf7, #fff); }
.journey-stage > span:first-child { display: block; margin-bottom: 14px; color: var(--muted); font-size: .73rem; font-weight: 900; letter-spacing: .09em; }
.journey-stage > .value-tag { position: absolute; right: 18px; top: 18px; }
.money-equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 9px; }
.money-equation div { min-width: 0; }
.money-equation b, .future-points b { display: block; color: var(--navy); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.2; font-variant-numeric: tabular-nums; }
.money-equation small, .future-points small { display: block; margin-top: 5px; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.money-equation i { color: #a9b7c4; font-size: 1.4rem; font-style: normal; }
.money-equation .gap b { color: var(--coral); }
.journey-stage p { margin: 20px 0 0; color: var(--muted); font-size: .86rem; }
.journey-stage h3 { margin: 0; color: var(--navy); font-size: 1.25rem; }
.future-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.future-points div { padding-left: 13px; border-left: 3px solid var(--blue); }
.childcare-journey .future-points div { border-color: var(--coral); }
.meal-journey .future-points div { border-color: var(--amber); }
.care-journey .future-points div { border-color: var(--teal); }
.journey-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--blue); }
.childcare-journey .journey-arrow { color: var(--coral); }
.meal-journey .journey-arrow { color: #bd7411; }
.care-journey .journey-arrow { color: var(--teal); }
.journey-arrow span { font-size: .66rem; font-weight: 900; }
.journey-arrow svg { width: 64px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.workspace-grid { display: grid; grid-template-columns: minmax(300px, .86fr) minmax(0, 1.14fr); gap: 20px; align-items: stretch; }
.scenario-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #f8fbfe; }
.scenario-title { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 10px; }
.scenario-title h3 { margin: 0; color: var(--navy); font-size: 1.13rem; }
.reset-button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--muted); cursor: pointer; font-size: .69rem; font-weight: 800; }
.reset-button:hover { color: var(--blue); border-color: var(--blue); }
.control-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.control-row span b, .control-row span small { display: block; }
.control-row span b { color: var(--navy); font-size: .84rem; }
.control-row span small { margin-top: 2px; color: var(--muted); font-size: .69rem; }
.control-row output { color: var(--blue); font-size: .84rem; font-weight: 900; font-variant-numeric: tabular-nums; }
#childcare-panel .control-row output { color: var(--coral); }
#meal-panel .control-row output { color: #b56d0e; }
#care-panel .control-row output { color: var(--teal-dark); }
.control-row input { grid-column: 1 / -1; width: 100%; accent-color: var(--blue); cursor: pointer; }
#childcare-panel .control-row input { accent-color: var(--coral); }
#meal-panel .control-row input { accent-color: var(--amber); }
#care-panel .control-row input { accent-color: var(--teal); }
.segmented-field { margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
.segmented-field legend { margin-bottom: 8px; color: var(--navy); font-size: .78rem; font-weight: 800; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 7px; border-radius: 7px; color: var(--muted); text-align: center; cursor: pointer; font-size: .74rem; font-weight: 800; }
.segmented input:checked + span { color: white; background: var(--navy); }
.segmented input:focus-visible + span { outline: 3px solid rgba(23,103,210,.28); }
.scenario-disclaimer { margin: 15px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.55; }
.results-stack { display: grid; grid-template-rows: auto auto 1fr; gap: 12px; }
.result-feature { min-height: 210px; padding: 30px; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: white; background: linear-gradient(145deg, var(--navy), #07518a); overflow: hidden; }
.result-feature.childcare-accent { background: linear-gradient(145deg, #7b2d31, #d9534a); }
.result-feature.meal-accent { background: linear-gradient(145deg, #5b3b0b, #b87517); }
.result-feature.care-accent { background: linear-gradient(145deg, #064b49, #138a78); }
.result-copy { position: relative; z-index: 1; }
.result-label { display: block; color: #cfe6fa; font-size: .78rem; font-weight: 800; }
.childcare-accent .result-label { color: #ffe2dd; }
.meal-accent .result-label { color: #ffebc5; }
.care-accent .result-label { color: #d7fff5; }
.result-feature strong { display: block; margin-top: 10px; font-size: clamp(2.3rem, 5.5vw, 4.6rem); line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.result-feature p { margin: 14px 0 0; color: #cfe0ee; font-size: .82rem; }
.childcare-accent p { color: #ffe2dd; }
.meal-accent p { color: #ffebc5; }
.care-accent p { color: #d7fff5; }
.donut { --value: 90; flex: 0 0 auto; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--sky) calc(var(--value) * 1%), rgba(255,255,255,.15) 0); }
.donut::before { content: ""; grid-area: 1 / 1; width: 102px; height: 102px; border-radius: 50%; background: #0a3c67; }
.donut.warm { background: conic-gradient(#ffc0b9 calc(var(--value) * 1%), rgba(255,255,255,.15) 0); }
.donut.warm::before { background: #a33d3c; }
.donut.meal-donut { background: conic-gradient(#ffd587 calc(var(--value) * 1%), rgba(255,255,255,.15) 0); }
.donut.meal-donut::before { background: #80500d; }
.donut.care-donut { background: conic-gradient(#80dbc8 calc(var(--value) * 1%), rgba(255,255,255,.15) 0); }
.donut.care-donut::before { background: #08665d; }
.donut span { z-index: 1; grid-area: 1 / 1; text-align: center; }
.donut b, .donut small { display: block; }
.donut b { font-size: 1.48rem; line-height: 1; }
.donut small { margin-top: 4px; color: #cfe0ee; font-size: .65rem; }
.result-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-card { padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.metric-card > span { color: var(--muted); font-size: .72rem; font-weight: 800; }
.metric-card strong { display: block; margin-top: 8px; color: var(--navy); font-size: 1.55rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric-card p { margin: 8px 0 0; color: var(--muted); font-size: .7rem; }
.metric-card.risk { border-color: #f6ccc8; background: #fff9f8; }
.metric-card.risk strong { color: #9f4139; }
.ai-strip { display: flex; align-items: center; gap: 16px; padding: 19px 21px; border-radius: 16px; background: var(--blue-soft); }
#childcare-panel .ai-strip { background: var(--coral-soft); }
#meal-panel .ai-strip { background: #fff5dd; }
#care-panel .ai-strip { background: var(--teal-soft); }
.ai-symbol { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: white; background: var(--blue); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
#childcare-panel .ai-symbol { background: var(--coral); }
#meal-panel .ai-symbol { color: var(--navy); background: var(--amber); }
#care-panel .ai-symbol { background: var(--teal); }
.ai-strip b { color: var(--navy); font-size: .86rem; }
.ai-strip p { margin: 3px 0 0; color: var(--muted); font-size: .72rem; }

.kpi-section { margin-top: 42px; padding-top: 33px; border-top: 1px solid var(--line); }
.section-heading-small { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.section-heading-small h3, .section-heading-small h2 { margin: 0; color: var(--navy); font-size: 1.45rem; line-height: 1.25; }
.section-heading-small p { max-width: 500px; margin: 0; color: var(--muted); font-size: .8rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; }
.kpi-grid article > span { color: var(--blue); font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
#childcare-panel .kpi-grid article > span { color: var(--coral); }
#meal-panel .kpi-grid article > span { color: #b56d0e; }
#care-panel .kpi-grid article > span { color: var(--teal-dark); }
.kpi-grid b { display: block; margin-top: 7px; color: var(--navy); font-size: .85rem; }
.kpi-grid p { margin: 5px 0 0; color: var(--muted); font-size: .69rem; line-height: 1.5; }

.data-alert { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 24px; padding: 17px 19px; border: 1px solid #f4c7c2; border-radius: 14px; background: #fff8f6; }
.alert-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--coral); font-weight: 900; }
.data-alert b { color: #7f312c; font-size: .86rem; }
.data-alert p { margin: 2px 0 0; color: var(--muted); font-size: .75rem; }
.data-alert a { color: var(--coral); font-size: .73rem; font-weight: 900; white-space: nowrap; }
.data-alert.care-alert { border-color: #b8ded7; background: #f2fbf8; }
.care-alert .alert-icon { background: var(--teal); }
.care-alert b { color: var(--teal-dark); }
.care-alert a { color: var(--teal-dark); }

.fact-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; border: 1px solid #ead8b7; border-radius: 16px; overflow: hidden; background: #fffaf0; }
.fact-ribbon article { padding: 18px; border-left: 1px solid #ead8b7; }
.fact-ribbon article:first-child { border-left: 0; }
.fact-ribbon span, .fact-ribbon strong, .fact-ribbon p { display: block; }
.fact-ribbon span { color: #9b681c; font-size: .67rem; font-weight: 900; letter-spacing: .05em; }
.fact-ribbon strong { margin-top: 5px; color: var(--navy); font-size: 1.2rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fact-ribbon p { margin: 5px 0 0; color: var(--muted); font-size: .67rem; }
.fact-ribbon.care-facts { border-color: #bbded8; background: #f1faf8; }
.care-facts article { border-color: #bbded8; }
.care-facts span { color: var(--teal-dark); }

.care-path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.care-path article { position: relative; padding: 19px; border: 1px solid #c9e5df; border-radius: 15px; background: #f5fbf9; }
.care-path article:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; top: 19px; right: -17px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--teal); background: white; font-size: .8rem; font-weight: 900; }
.care-path span, .care-path b { display: block; }
.care-path span { color: var(--teal); font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.care-path b { margin-top: 5px; color: var(--navy); font-size: .86rem; }
.care-path p { margin: 5px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.metric-card.care-metric { border-color: #b9ded7; background: #f6fcfa; }
.metric-card.care-metric strong { color: var(--teal-dark); }

.meal-insight-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; margin-top: 26px; }
.consumption-card, .quality-loop-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fbfdff; }
.consumption-card { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 30px; }
.consumption-card h3, .quality-loop-card h3 { margin: 0; color: var(--navy); font-size: 1.1rem; }
.consumption-card p { margin: 8px 0 0; color: var(--muted); font-size: .71rem; }
.bar-chart { display: grid; gap: 11px; }
.bar-chart > div { display: grid; grid-template-columns: 56px 1fr 54px; align-items: center; gap: 9px; }
.bar-chart span { color: var(--muted); font-size: .67rem; font-weight: 800; }
.bar-chart i { position: relative; height: 10px; border-radius: 99px; background: #edf1f4; overflow: hidden; }
.bar-chart i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--bar); border-radius: inherit; background: linear-gradient(90deg, var(--amber), #f5c468); }
.bar-chart b { color: var(--navy); text-align: right; font-size: .75rem; font-variant-numeric: tabular-nums; }
.quality-loop-card ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 16px 0 0; padding: 0; list-style: none; }
.quality-loop-card li { padding: 12px 9px; border-radius: 11px; background: #fff5dd; text-align: center; }
.quality-loop-card li span, .quality-loop-card li b, .quality-loop-card li small { display: block; }
.quality-loop-card li span { color: #b56d0e; font-size: .58rem; font-weight: 900; }
.quality-loop-card li b { margin-top: 4px; color: var(--navy); font-size: .77rem; }
.quality-loop-card li small { margin-top: 4px; color: var(--muted); font-size: .58rem; line-height: 1.35; }

.warm-dx { position: relative; width: min(1180px, calc(100% - 48px)); margin: 0 auto 72px; padding: clamp(32px, 5vw, 58px); border-radius: 28px; color: white; background: var(--navy); overflow: hidden; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 55px; }
.warm-dx::before, .warm-dx::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(118,185,255,.18); }
.warm-dx::before { width: 420px; height: 420px; left: -280px; top: -120px; }
.warm-dx::after { width: 300px; height: 300px; right: -190px; bottom: -200px; }
.section-kicker.light { color: var(--sky); }
.warm-dx h2 { margin: 0; font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.3; letter-spacing: -.035em; }
.warm-dx-heading > p { max-width: 450px; margin: 20px 0 0; color: #bed5e8; font-size: .88rem; }
.experience-flow { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 88px 1fr; align-items: center; gap: 13px; }
.flow-column { min-height: 230px; padding: 24px; border-radius: 18px; background: rgba(255,255,255,.08); }
.flow-column.after { background: white; color: var(--ink); }
.flow-column > span { color: #94c7fa; }
.flow-column.after > span { color: var(--coral); }
.flow-column b { display: block; font-size: 1.05rem; }
.flow-column p { margin: 16px 0 0; color: #bcd2e4; font-size: .78rem; line-height: 2; }
.flow-column.after p { color: var(--muted); }
.flow-center { text-align: center; }
.pulse-ring { width: 65px; height: 65px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: var(--sky); box-shadow: 0 0 0 8px rgba(118,185,255,.12), 0 0 0 16px rgba(118,185,255,.07); font-size: .82rem; font-weight: 900; }
.flow-center b, .flow-center small { display: block; }
.flow-center b { font-size: .78rem; }
.flow-center small { color: #9abbd7; font-size: .62rem; }

.data-section, .implementation, .sources { width: min(1180px, calc(100% - 48px)); margin: 0 auto 72px; }
.data-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 24px; }
.data-heading h2, .sources-head h2 { margin: 0; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: -.03em; }
.data-heading > p { margin: 0; color: var(--muted); font-size: .86rem; }
.data-table-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; box-shadow: 0 12px 30px rgba(6,43,79,.04); }
table { width: 100%; border-collapse: collapse; }
th { padding: 14px 17px; color: var(--muted); background: #f0f5f9; text-align: left; font-size: .72rem; letter-spacing: .04em; }
td { padding: 16px 17px; border-top: 1px solid var(--line); font-size: .79rem; vertical-align: top; }
th:first-child { width: 110px; } th:last-child { width: 100px; }
.policy-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; }
.policy-dot.blue { background: var(--blue); } .policy-dot.coral { background: var(--coral); } .policy-dot.amber { background: var(--amber); } .policy-dot.teal { background: var(--teal); }
.status { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: .65rem; font-weight: 900; white-space: nowrap; }
.status.pending { color: #71500f; background: #fff2cd; }
.status.critical { color: #983930; background: #ffe9e5; }

.implementation { padding: 38px; border-radius: 22px; background: white; border: 1px solid var(--line); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 30px 0 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 21px; left: 7%; right: 7%; height: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 18px; text-align: center; }
.timeline li > span { position: relative; z-index: 1; width: 44px; height: 44px; margin: 0 auto 16px; border: 2px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: white; font-size: .7rem; font-weight: 900; }
.timeline li.active > span { color: white; border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 7px var(--blue-soft); }
.timeline b { color: var(--navy); font-size: .85rem; }
.timeline p { margin: 6px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }

.sources-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.research-count { padding: 7px 11px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: .7rem; font-weight: 900; }
.source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
details { border: 1px solid var(--line); border-radius: 16px; background: white; overflow: hidden; }
summary { display: flex; align-items: center; gap: 13px; padding: 18px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary > span { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: white; background: var(--navy); font-size: .7rem; font-weight: 900; }
details:nth-child(2) summary > span { background: var(--coral); }
details:nth-child(3) summary > span { color: var(--navy); background: var(--amber); }
details:nth-child(4) summary > span { background: var(--teal); }
summary b, summary small { display: block; }
summary b { color: var(--navy); font-size: .78rem; line-height: 1.45; }
summary small { margin-top: 3px; color: var(--muted); font-size: .65rem; }
details > p { margin: 0; padding: 0 18px 18px 65px; color: var(--muted); font-size: .74rem; }
.source-note { margin: 14px 0 0; color: var(--muted); font-size: .7rem; }

footer { padding: 35px max(24px, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #c4d7e7; background: #031e37; }
footer b, footer span { display: block; }
footer b { color: white; font-size: .8rem; letter-spacing: .08em; }
footer span, footer p { margin: 3px 0 0; font-size: .67rem; }

dialog { width: min(540px, calc(100% - 32px)); padding: 32px; border: 0; border-radius: 22px; color: var(--ink); background: white; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(3,30,55,.65); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 18px; top: 14px; border: 0; background: transparent; color: var(--muted); font-size: 1.7rem; cursor: pointer; }
dialog h2 { color: var(--navy); }
.legend-list { display: grid; gap: 14px; }
.legend-list > div { display: grid; grid-template-columns: 75px 1fr; align-items: start; gap: 12px; }
.legend-list p { margin: 1px 0 0; color: var(--muted); font-size: .8rem; }
.dialog-note { margin: 22px 0 0; padding: 14px; border-radius: 12px; color: var(--muted); background: var(--paper); font-size: .74rem; }

:focus-visible { outline: 3px solid rgba(23,103,210,.32); outline-offset: 3px; }

@media (max-width: 960px) {
  .north-star { grid-template-columns: 1fr 1fr; }
  .fact-ribbon { grid-template-columns: 1fr 1fr; }
  .fact-ribbon article:nth-child(3) { border-top: 1px solid #ead8b7; border-left: 0; }
  .fact-ribbon article:nth-child(4) { border-top: 1px solid #ead8b7; }
  .journey { grid-template-columns: 1fr; }
  .journey-arrow { flex-direction: row; padding: 4px 0; }
  .journey-arrow svg { transform: rotate(90deg); width: 44px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .warm-dx { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .data-heading { grid-template-columns: 1fr; gap: 10px; }
  .meal-insight-grid { grid-template-columns: 1fr; }
  .care-path { grid-template-columns: 1fr 1fr; }
  .care-path article:nth-child(2)::after { display: none; }
}

@media (max-width: 680px) {
  .header-inner, .overview, .north-star, .policy-tabs, .warm-dx, .data-section, .implementation, .sources { width: min(100% - 28px, 1180px); }
  .header-inner { height: 66px; }
  .brand small, .data-date, .icon-button span { display: none; }
  .icon-button { width: 38px; height: 38px; justify-content: center; padding: 0; }
  .overview { grid-template-columns: 1fr; padding: 48px 0 28px; gap: 24px; }
  .overview h1 { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .overview-note { justify-self: stretch; max-width: none; }
  .north-star { grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 38px; }
  .north-card { min-height: 152px; padding: 18px; }
  .north-card strong { font-size: 1.72rem; }
  .card-label { font-size: .69rem; }
  .confidence .text-button { left: 18px; }
  .policy-tab { padding: 14px; border-radius: 15px 15px 0 0; }
  .tab-number { width: 34px; height: 34px; }
  .policy-tab small { display: none; }
  .policy-tab b { font-size: .82rem; line-height: 1.35; }
  .policy-tabs { grid-template-columns: 1fr 1fr; gap: 6px; }
  .policy-tab.active { border-bottom-color: var(--navy); }
  .policy-tab:nth-child(2).active { border-bottom-color: var(--coral); }
  .policy-tab:nth-child(3).active { border-bottom-color: var(--amber); }
  .policy-tab:nth-child(4).active { border-bottom-color: var(--teal); }
  .policy-panel { width: calc(100% - 14px); padding: 26px 16px; border-radius: 19px; margin-bottom: 48px; }
  .panel-heading { align-items: start; flex-direction: column; }
  .evidence-badges { justify-content: start; }
  .money-equation { grid-template-columns: 1fr auto 1fr; }
  .money-equation i:nth-of-type(2), .money-equation .gap { grid-row: 2; }
  .money-equation i:nth-of-type(2) { grid-column: 2; }
  .money-equation .gap { grid-column: 3; }
  .future-points { grid-template-columns: 1fr; }
  .workspace-grid { gap: 12px; }
  .result-feature { padding: 22px; min-height: 180px; }
  .result-feature strong { font-size: 2.7rem; }
  .donut { width: 104px; height: 104px; }
  .donut::before { width: 76px; height: 76px; }
  .donut b { font-size: 1.05rem; }
  .result-pair, .kpi-grid { grid-template-columns: 1fr; }
  .consumption-card { grid-template-columns: 1fr; gap: 18px; }
  .section-heading-small { align-items: start; flex-direction: column; gap: 9px; }
  .data-alert { grid-template-columns: auto 1fr; }
  .data-alert a { grid-column: 2; }
  .warm-dx { padding: 30px 20px; gap: 32px; }
  .experience-flow { grid-template-columns: 1fr; }
  .flow-center { display: flex; align-items: center; justify-content: center; gap: 14px; }
  .pulse-ring { width: 52px; height: 52px; margin: 0; }
  .data-table-wrap { overflow-x: auto; }
  table { min-width: 700px; }
  .implementation { padding: 28px 18px; }
  .timeline { grid-template-columns: 1fr; gap: 20px; }
  .timeline::before { top: 0; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 0; text-align: left; }
  .timeline li > span { margin: 0; }
  .source-grid { grid-template-columns: 1fr; }
  .sources-head { align-items: start; flex-direction: column; }
  footer { align-items: start; flex-direction: column; }
}

@media (max-width: 420px) {
  .north-star { grid-template-columns: 1fr; }
  .north-card { min-height: 135px; }
  .policy-tabs { grid-template-columns: 1fr; }
  .policy-tab { border-radius: 13px; }
  .policy-tab.active { border-bottom-color: var(--navy); }
  .policy-tab:nth-child(2).active { border-bottom-color: var(--coral); }
  .policy-tab:nth-child(3).active { border-bottom-color: var(--amber); }
  .policy-tab:nth-child(4).active { border-bottom-color: var(--teal); }
  .policy-tab { gap: 9px; }
  .tab-number { display: none; }
  .result-feature { align-items: start; flex-direction: column; }
  .donut { align-self: flex-end; margin-top: -22px; }
  .fact-ribbon { grid-template-columns: 1fr; }
  .fact-ribbon article { border-top: 1px solid #ead8b7; border-left: 0; }
  .fact-ribbon article:first-child { border-top: 0; }
  .quality-loop-card ol { grid-template-columns: 1fr 1fr; }
  .care-path { grid-template-columns: 1fr; }
  .care-path article::after { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Citizen simulator and evidence layers */
.citizen-simulator { width: min(1240px, calc(100% - 24px)); margin: 0 auto 72px; padding: clamp(30px, 5vw, 58px); border: 1px solid #b8cbe4; border-radius: 24px; background: linear-gradient(145deg, #f8fbff, #fff); box-shadow: var(--shadow); }
.simulator-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 30px; }
.simulator-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.75rem, 3.1vw, 2.8rem); line-height: 1.25; letter-spacing: -.035em; }
.simulator-heading h2 em { color: var(--blue); font-style: normal; }
.simulator-intro { max-width: 480px; }
.simulator-intro p { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.simulator-layout { display: grid; grid-template-columns: minmax(310px, .85fr) minmax(0, 1.15fr); gap: 18px; }
.simulator-controls, .simulator-results { padding: 24px; border-radius: 18px; background: white; border: 1px solid var(--line); }
.simulator-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-content: start; background: #f8fbfe; }
.simulator-control-head, .simulator-result-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 10px; }
.simulator-control-head span, .simulator-result-head > div > span { display: block; color: var(--blue); font-size: .68rem; font-weight: 900; letter-spacing: .15em; }
.simulator-control-head h3, .simulator-result-head h3 { margin: 2px 0 0; color: var(--navy); font-size: 1.2rem; }
.sim-field { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sim-field-wide { grid-column: 1 / -1; }
.sim-field span b, .sim-field span small { display: block; }
.sim-field span b { color: var(--navy); font-size: .78rem; }
.sim-field span small { color: var(--muted); font-size: .64rem; line-height: 1.35; }
.sim-field output { color: var(--blue); font-size: .78rem; font-weight: 900; }
.sim-field input, .sim-field select { grid-column: 1 / -1; width: 100%; }
.sim-field select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font-size: .78rem; }
.sim-field input { accent-color: var(--blue); }
.sim-choice { grid-column: span 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 7px 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); }
.sim-choice legend { grid-column: 1 / -1; margin-bottom: 4px; color: var(--navy); font-size: .72rem; font-weight: 800; line-height: 1.35; }
.sim-choice label { position: relative; }
.sim-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sim-choice span { display: block; padding: 7px 5px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; text-align: center; cursor: pointer; font-size: .7rem; font-weight: 800; }
.sim-choice input:checked + span { color: white; border-color: var(--navy); background: var(--navy); }
.sim-choice input:focus-visible + span { outline: 3px solid rgba(23,103,210,.28); }
.simulator-disclaimer { grid-column: 1 / -1; margin: 13px 0 0; color: var(--muted); font-size: .65rem; line-height: 1.55; }
.simulator-results { background: white; }
.simulator-result-head { align-items: center; }
.simulator-result-head h3 { font-size: 1.2rem; }
.simulator-result-head p { margin: 3px 0 0; color: var(--muted); font-size: .72rem; }
.sim-total { padding: 12px 16px; border-radius: 13px; color: white; background: var(--navy); text-align: right; }
.sim-total span, .sim-total strong, .sim-total small { display: block; }
.sim-total span { color: #c8def0; font-size: .62rem; font-weight: 800; }
.sim-total strong { margin-top: 3px; font-size: 1.75rem; line-height: 1; letter-spacing: -.04em; }
.sim-total small { margin-top: 5px; color: #c8def0; font-size: .61rem; }
.sim-axis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sim-axis { padding: 17px; border-radius: 14px; border: 1px solid var(--line); background: #fbfdff; }
.sim-axis > span, .sim-axis > b, .sim-axis > small { display: block; }
.sim-axis > span { font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.sim-axis strong { display: block; margin-top: 8px; color: var(--navy); font-size: clamp(1rem, 2vw, 1.42rem); line-height: 1.2; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sim-axis > b { margin-top: 7px; color: var(--navy); font-size: .78rem; }
.sim-axis p { min-height: 32px; margin: 4px 0 10px; color: var(--muted); font-size: .65rem; line-height: 1.4; }
.sim-axis > small { margin-top: 7px; color: var(--muted); font-size: .57rem; }
.sim-axis.money { border-color: #f0c8be; background: #f6faff; }
.sim-axis.money > span { color: var(--blue); }
.sim-axis.time { border-color: #f6cdc8; background: #fff9f7; }
.sim-axis.time > span { color: var(--coral); }
.sim-axis.safety { border-color: #c8e5df; background: #f6fcfa; }
.sim-axis.safety > span { color: var(--teal-dark); }
.sim-axis.opportunity { border-color: #ded2f5; background: #fbf9ff; }
.sim-axis.opportunity > span { color: #7251b7; }
.sim-meter { height: 7px; border-radius: 999px; background: #edf1f4; overflow: hidden; }
.sim-meter i { display: block; width: var(--meter); height: 100%; border-radius: inherit; background: var(--blue); transition: width .2s ease; }
.time .sim-meter i { background: var(--coral); }
.safety .sim-meter i { background: var(--teal); }
.opportunity .sim-meter i { background: #8162c5; }
.sim-breakdown { margin-top: 12px; padding: 15px 17px; border-radius: 14px; background: #f4f8fb; }
.sim-breakdown > div > span, .sim-breakdown > div > b { display: block; }
.sim-breakdown > div > span { color: var(--blue); font-size: .62rem; font-weight: 900; letter-spacing: .1em; }
.sim-breakdown > div > b { margin-top: 3px; color: var(--navy); font-size: .76rem; }
.sim-breakdown ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.sim-breakdown li { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; border-top: 1px solid #e4d7ce; color: var(--muted); font-size: .66rem; }
.sim-breakdown li strong { color: var(--navy); font-size: .7rem; white-space: nowrap; }
.simulator-caution { margin-top: 12px; padding: 14px 17px; border: 1px solid #ead8b7; border-radius: 14px; background: #fffaf0; }
.simulator-caution b { color: #8d5f1b; font-size: .76rem; }
.simulator-caution p { margin: 5px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.5; }
.simulator-caution a { display: inline-block; margin-top: 7px; color: #8d5f1b; font-size: .65rem; font-weight: 900; }
.sim-digital-details { margin-top: 12px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.sim-digital-details summary { color: var(--navy); cursor: pointer; font-size: .76rem; font-weight: 900; }
.sim-digital-details > p { margin: 8px 0 12px; color: var(--muted); font-size: .66rem; line-height: 1.5; }
.sim-digital-details ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sim-digital-details li { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.sim-digital-details li.is-relevant { border-color: #87add8; background: #f1f7ff; }
.sim-digital-details li > b { display: block; color: var(--navy); font-size: .7rem; }
.sim-digital-details li > b > span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; color: #fff; background: var(--blue); font-size: .62rem; }
.sim-digital-details li > b > em { margin-left: 5px; padding: 2px 6px; border-radius: 999px; color: #14529a; background: #dcecff; font-size: .55rem; font-style: normal; }
.sim-digital-details li p { margin: 6px 0 0; color: var(--muted); font-size: .62rem; line-height: 1.45; }
.sim-digital-details li p strong { color: var(--ink); }
.sim-digital-details li a { display: inline-block; margin-left: 3px; color: var(--blue); font-size: .59rem; font-weight: 800; }

.growth-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto 72px; padding: clamp(30px, 5vw, 52px); border-radius: 26px; color: white; background: linear-gradient(135deg, #123b5c, #194f66); box-shadow: var(--shadow); }
.growth-heading { display: grid; grid-template-columns: .9fr 1.1fr; align-items: end; gap: 45px; margin-bottom: 25px; }
.growth-heading h2 { margin: 0; color: white; font-size: clamp(1.75rem, 3.2vw, 2.8rem); line-height: 1.25; letter-spacing: -.035em; }
.growth-heading > p { margin: 0; color: #c9e0e9; font-size: .82rem; }
.growth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.growth-card { padding: 23px; border-radius: 18px; color: var(--ink); background: white; }
.growth-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .06em; }
.growth-card h3 { margin: 17px 0 18px; color: var(--navy); font-size: 1.35rem; line-height: 1.3; }
.growth-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.growth-metrics > div { padding: 11px; border-radius: 11px; background: #f4f8fb; }
.growth-metrics strong, .growth-metrics small { display: block; }
.growth-metrics strong { color: var(--navy); font-size: 1.05rem; line-height: 1.1; }
.growth-metrics small { margin-top: 5px; color: var(--muted); font-size: .58rem; line-height: 1.35; }
.growth-card > p { margin: 16px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.6; }
.growth-caution { display: block; margin-top: 11px; color: #8d5f1b; font-size: .61rem; line-height: 1.45; }
.expo-card { background: #fffaf0; }
.expo-card .growth-metrics > div { background: #fff1d3; }

.official-docs { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #f8fbfe; }
.official-docs-heading h3 { margin: 0; color: var(--navy); font-size: 1.15rem; }
.official-docs-heading p { margin: 5px 0 0; color: var(--muted); font-size: .71rem; }
.official-doc-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.official-doc-links a { display: block; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; text-decoration: none; }
.official-doc-links a:hover { border-color: var(--blue); box-shadow: 0 5px 14px rgba(6,43,79,.06); }
.official-doc-links b, .official-doc-links span { display: block; }
.official-doc-links b { color: var(--blue); font-size: .65rem; }
.official-doc-links span { margin-top: 3px; color: var(--muted); font-size: .64rem; line-height: 1.35; }

.policy-dot.violet { background: #8162c5; } .policy-dot.rose { background: #d15e86; } .policy-dot.navy { background: var(--navy); } .policy-dot.green { background: #2b927d; }
.status.verified { color: #126955; background: #e3f6ef; }
.status.partial { color: #70509d; background: #efe8ff; }
.casino-panel { border-color: #8162c5; }
.harassment-panel { border-color: #d15e86; }
.policy-tab:nth-child(5).active { border-color: #8162c5; border-bottom-color: white; }
.policy-tab:nth-child(6).active { border-color: #d15e86; border-bottom-color: white; }
.policy-tab:nth-child(5) .tab-number { background: #8162c5; }
.policy-tab:nth-child(6) .tab-number { background: #d15e86; }
.casino-alert { border-color: #d8ccf1; background: #fbf9ff; }
.casino-alert .alert-icon { background: #8162c5; }
.casino-alert b, .casino-alert a { color: #6747a7; }
.harassment-alert { border-color: #f0c8d6; background: #fff8fb; }
.harassment-alert .alert-icon { background: #d15e86; }
.harassment-alert b, .harassment-alert a { color: #9c3f62; }
.fact-ribbon.birth-facts, .fact-ribbon.childcare-facts { border-color: #f0c8be; background: #f6faff; }
.birth-facts article, .childcare-facts article { border-color: #f0c8be; }
.birth-facts span, .childcare-facts span { color: var(--blue); }
.fact-ribbon.meal-facts { border-color: #ead8b7; background: #fffaf0; }
.meal-facts article { border-color: #ead8b7; }
.casino-facts { border-color: #d8ccf1; background: #fbf9ff; }
.casino-facts article { border-color: #d8ccf1; }
.casino-facts span { color: #6747a7; }
.harassment-facts { border-color: #f0c8d6; background: #fff8fb; }
.harassment-facts article { border-color: #f0c8d6; }
.harassment-facts span { color: #9c3f62; }
.result-feature.casino-accent { background: linear-gradient(145deg, #38276b, #8162c5); }
.result-feature.harassment-accent { background: linear-gradient(145deg, #6b2544, #d15e86); }
.casino-accent .result-label, .casino-accent p { color: #eee8ff; }
.harassment-accent .result-label, .harassment-accent p { color: #ffe5f0; }
#casino-panel .ai-strip { background: #f1edff; }
#harassment-panel .ai-strip { background: #fff0f6; }
#casino-panel .ai-symbol { background: #8162c5; }
#harassment-panel .ai-symbol { background: #d15e86; }

@media (max-width: 1100px) { .policy-tabs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) {
  .simulator-layout { grid-template-columns: 1fr; }
  .simulator-heading, .growth-heading { grid-template-columns: 1fr; display: grid; gap: 12px; align-items: start; }
  .growth-grid { grid-template-columns: 1fr; }
  .official-doc-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .citizen-simulator, .growth-section { width: calc(100% - 28px); padding: 26px 16px; border-radius: 19px; }
  .simulator-controls, .simulator-results { padding: 18px; }
  .simulator-controls { grid-template-columns: 1fr; }
  .sim-field, .sim-field-wide, .sim-choice { grid-column: auto; }
  .simulator-heading { margin-bottom: 20px; }
  .simulator-result-head { align-items: start; flex-direction: column; }
  .sim-total { width: 100%; text-align: left; }
  .sim-axis-grid { grid-template-columns: 1fr; }
  .sim-digital-details ul { grid-template-columns: 1fr; }
  .growth-metrics { grid-template-columns: 1fr 1fr; }
  .growth-metrics > div:last-child { grid-column: 1 / -1; }
  .official-doc-links { grid-template-columns: 1fr; }
  .policy-tabs { grid-template-columns: 1fr 1fr; }
  .policy-tab:nth-child(5).active { border-bottom-color: #8162c5; }
  .policy-tab:nth-child(6).active { border-bottom-color: #d15e86; }
}
@media (max-width: 420px) {
  .policy-tabs { grid-template-columns: 1fr; }
  .sim-choice { grid-column: 1 / -1; }
  .growth-metrics { grid-template-columns: 1fr; }
  .growth-metrics > div:last-child { grid-column: auto; }
}

/* Keep the evidence view focused on the six policy panels. */
.transparency-section,
.data-section,
.sources,
.details-index { display: none !important; }

/* Election-period match flow: keep the first screen focused on one action. */
body:not(.show-details) .north-star,
body:not(.show-details) .citizen-simulator,
body:not(.show-details) .policy-tabs,
body:not(.show-details) .policy-panel,
body:not(.show-details) .transparency-section,
body:not(.show-details) .growth-section,
body:not(.show-details) .warm-dx,
body:not(.show-details) .data-section,
body:not(.show-details) .implementation,
body:not(.show-details) .sources { display: none !important; }
body:not(.show-details) .details-hero { display: none !important; }
body.show-details .overview,
body.show-details .north-star,
body.show-details .match-app,
body.show-details .citizen-simulator,
body.show-details .growth-section,
body.show-details .warm-dx,
body.show-details .implementation { display: none !important; }
body.show-details .details-hero { display: grid; }
body.show-details .policy-tabs,
body.show-details .policy-panel,
body.show-details .transparency-section,
body.show-details .data-section,
body.show-details .sources { display: block; }
body.show-details .policy-tabs { display: grid; }
body.show-details .policy-panel[hidden] { display: none; }
.details-hero { width: min(1180px, calc(100% - 48px)); margin: 0 auto 34px; padding: 48px 0 28px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr auto; align-items: end; gap: 20px 36px; }
.details-hero h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.16; letter-spacing: -.045em; }
.details-hero h2 em { color: var(--blue); font-style: normal; }
.details-hero p { max-width: 720px; margin: 15px 0 0; color: var(--muted); font-size: .96rem; }
.details-back { align-self: center; padding: 10px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); background: white; cursor: pointer; font-size: .82rem; font-weight: 900; white-space: nowrap; }
.details-back:hover { border-color: var(--blue); color: var(--blue); }
.details-index { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.details-index a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; text-decoration: none; font-size: .76rem; font-weight: 800; }
.details-index a:hover { color: var(--blue); border-color: var(--blue); }
body.show-details .policy-tabs { width: min(1180px, calc(100% - 48px)); margin-bottom: 0; }
body.show-details .policy-panel { width: min(1180px, calc(100% - 48px)); margin-bottom: 54px; }
body.show-details .transparency-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto 54px; border-radius: 18px; }
body.show-details .data-section,
body.show-details .sources { margin-bottom: 54px; }
body.show-details .sources-head { padding-top: 0; }
.match-app { width: min(920px, calc(100% - 48px)); margin: 0 auto 76px; padding: clamp(28px, 5vw, 54px); border: 1px solid #c9d8e7; border-radius: 24px; background: white; box-shadow: 0 20px 55px rgba(6,43,79,.08); }
.match-progress { display: flex; align-items: center; width: min(210px, 100%); margin-bottom: 28px; }
.match-progress span { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: #FDFAF5; font-size: .63rem; font-weight: 900; }
.match-progress span.active { color: white; border-color: var(--navy); background: var(--navy); }
.match-progress i { flex: 1; height: 1px; background: var(--line); }
.match-heading { max-width: 630px; }
.match-heading h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.15; letter-spacing: -.05em; }
.match-heading h2 em { color: var(--blue); font-style: normal; }
.match-heading p { margin: 16px 0 0; color: var(--muted); font-size: .78rem; }
.match-form { margin-top: 34px; }
.match-question { margin: 0; padding: 24px 0; border: 0; border-top: 1px solid var(--line); }
.match-question legend { width: 100%; margin-bottom: 14px; color: var(--navy); font-size: 1rem; font-weight: 900; }
.match-question legend span { margin-right: 8px; color: var(--blue); font-size: .7rem; letter-spacing: .12em; }
.match-options { display: grid; gap: 9px; }
.four-options { grid-template-columns: repeat(4, 1fr); }
.match-options label { position: relative; }
.match-options input { position: absolute; opacity: 0; pointer-events: none; }
.match-options label span { min-height: 78px; padding: 15px 13px; border: 1px solid var(--line); border-radius: 13px; display: flex; flex-direction: column; justify-content: center; color: var(--ink); background: #fbfdff; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.match-options label span:hover { border-color: #9fb9d2; transform: translateY(-1px); }
.match-options input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px rgba(23,103,210,.1); }
.match-options input:focus-visible + span { outline: 3px solid rgba(23,103,210,.28); }
.match-options b { color: var(--navy); font-size: .88rem; }
.match-options small { margin-top: 3px; color: var(--muted); font-size: .64rem; line-height: 1.3; }
.match-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.match-inputs label { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }
.match-inputs label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .68rem; font-weight: 800; }
.match-inputs select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: .76rem; }
.match-submit { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 190px; margin-top: 20px; padding: 14px 24px; border: 0; border-radius: 999px; color: white; background: var(--navy); cursor: pointer; font-size: .9rem; font-weight: 900; box-shadow: 0 10px 24px rgba(6,43,79,.18); }
.match-submit:hover { background: var(--blue); transform: translateY(-1px); }
.match-submit svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.match-result { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.match-result:not([hidden]) { animation: match-in .28s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes match-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.match-result-top { display: flex; align-items: start; justify-content: space-between; gap: 22px; }
.match-result-top h3 { max-width: 600px; margin: 0; color: var(--navy); font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.25; letter-spacing: -.035em; }
.match-result-top p { margin: 9px 0 0; color: var(--muted); font-size: .76rem; }
.match-score { flex: 0 0 auto; min-width: 92px; padding: 13px 12px; border-radius: 15px; color: white; background: var(--blue); text-align: center; }
.match-score strong, .match-score span { display: block; }
.match-score strong { font-size: 2.15rem; line-height: 1; letter-spacing: -.06em; }
.match-score span { margin-top: 4px; font-size: .58rem; font-weight: 900; letter-spacing: .08em; }
.match-result-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.match-main-card { padding: 24px; border-radius: 17px; color: white; background: linear-gradient(145deg, #552d27, #b83c2d); }
.match-main-card > span { color: #c9e5ff; font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.match-main-card > strong { display: block; margin-top: 11px; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.06em; }
.match-main-card > b { display: block; margin-top: 9px; font-size: .86rem; }
.match-main-card > p { margin: 8px 0 0; color: #c7dff1; font-size: .7rem; line-height: 1.5; }
.match-vote-card > h3 { margin: 13px 0 0; color: white; font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.35; letter-spacing: -.035em; }
.match-vote-card > strong { margin-top: 18px; font-size: clamp(1.45rem, 3vw, 2.45rem); line-height: 1.15; letter-spacing: -.045em; }
.match-vote-card > b { color: white; line-height: 1.55; }
.match-policy-list { display: grid; gap: 6px; margin-top: 18px; }
.match-policy-list div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.22); color: #d8e9f6; font-size: .66rem; }
.match-policy-list strong { color: white; font-size: .67rem; }
.match-next { padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: #f8fbfe; }
.match-next > span, .match-next > b { display: block; }
.match-next > span { color: var(--blue); font-size: .66rem; font-weight: 900; letter-spacing: .09em; }
.match-next > b { margin-top: 11px; color: var(--navy); font-size: 1.12rem; line-height: 1.3; }
.match-next p { margin: 9px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.match-recommendation { display: flex; flex-direction: column; align-items: flex-start; }
.match-recommendation > b { font-size: clamp(1.3rem, 3vw, 2rem); }
.match-recommendation .details-button { margin-top: 20px; }
.match-recommendation .details-button.secondary { margin-top: 9px; color: var(--muted); background: transparent; }
.details-button { margin-top: 20px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); background: white; cursor: pointer; font-size: .7rem; font-weight: 900; }
.details-button:hover { color: var(--blue); border-color: var(--blue); }
.share-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 17px 19px; border-radius: 15px; background: #f2f6fa; }
.share-box b { color: var(--navy); font-size: .8rem; }
.share-box p { margin: 3px 0 0; color: var(--muted); font-size: .66rem; }
.share-buttons { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.share-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: 9px; color: white; text-decoration: none; cursor: pointer; font-size: .66rem; font-weight: 900; }
.share-button span { font-size: .66rem; font-weight: 900; }
.share-button.x { background: #111; }
.share-button.line { background: #06c755; }
.share-button.copy { color: var(--navy); background: white; border: 1px solid var(--line); }
.share-copy-status { display: block; min-height: 1em; margin-top: 7px; color: var(--teal-dark); font-size: .64rem; }
.retry-button { display: block; margin: 18px auto 0; padding: 7px 10px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: .68rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.retry-button:hover { color: var(--blue); }
body.show-details .overview { padding-bottom: 36px; }
body.show-details .north-star { display: grid; }
body.show-details .secondary-content { display: block; }

@media (max-width: 760px) {
  .match-app { width: calc(100% - 28px); padding: 26px 18px; border-radius: 19px; }
  .four-options { grid-template-columns: 1fr 1fr; }
  .match-result-top { flex-direction: column; }
  .match-score { align-self: flex-start; }
  .match-result-grid { grid-template-columns: 1fr; }
  .share-box { align-items: start; flex-direction: column; }
  .share-buttons { justify-content: start; }
}
@media (max-width: 680px) {
  .details-hero { width: calc(100% - 28px); padding: 34px 0 22px; grid-template-columns: 1fr; }
  .details-back { justify-self: start; }
  .details-index { gap: 6px; }
  .details-index a { font-size: .72rem; }
  body.show-details .policy-tabs,
  body.show-details .policy-panel,
  body.show-details .transparency-section { width: calc(100% - 28px); }
}
@media (max-width: 420px) {
  .four-options, .match-inputs { grid-template-columns: 1fr; }
  .match-options label span { min-height: auto; }
  .match-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .match-options label span, .match-submit, .match-result:not([hidden]) { transition: none; animation: none; }
  .match-options label span:hover, .match-submit:hover { transform: none; }
}

/* Policy type diagnostic: one question at a time, with a quiet result card. */
.match-progress { width: min(360px, 100%); gap: 12px; margin-bottom: 28px; }
.match-progress > span { width: auto; height: auto; border: 0; border-radius: 0; color: var(--blue); background: transparent; font-size: .72rem; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.match-progress > i { position: relative; height: 4px; border-radius: 999px; background: #e8eef4; overflow: hidden; }
.match-progress > i b { display: block; width: 14.28%; height: 100%; border-radius: inherit; background: var(--blue); transition: width .2s ease; }
.match-question[hidden] { display: none; }
.two-options { grid-template-columns: 1fr 1fr; }
.match-nav { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.match-nav button[hidden] { display: none !important; }
.match-nav .match-next, .match-nav .match-prev { padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); background: white; cursor: pointer; font-size: .84rem; font-weight: 900; }
.match-nav .match-next { color: white; border-color: var(--navy); background: var(--navy); }
.match-nav .match-next:hover, .match-nav .match-submit:hover { background: var(--blue); }
.match-nav .match-prev:hover { border-color: var(--blue); color: var(--blue); }
.match-nav .match-submit { margin-top: 0; }
.match-type-card { margin-bottom: 26px; padding: 22px 24px; border: 1px solid #bfd5ec; border-radius: 16px; background: #f5f9fe; }
.match-type-card > span { display: block; color: var(--blue); font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.match-type-card > strong { display: block; margin-top: 7px; color: var(--navy); font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -.045em; }
.match-type-card > p { margin: 8px 0 0; color: var(--ink); font-size: .9rem; }
.match-type-card > small { display: block; margin-top: 10px; color: var(--muted); font-size: .7rem; }
.match-type-card > small.match-disclaimer { margin-top: 6px; color: var(--muted); }

/* 18 policy library: compact, formal cards with one active detail panel. */
.site-header, footer { display: none !important; }
.overview::before, .north-card.primary::after, .warm-dx::before, .warm-dx::after { display: none !important; }
.match-score { display: none !important; }
.policy-library { width: min(1180px, calc(100% - 48px)); margin: 0 auto 34px; }
.policy-group { margin: 0 0 38px; }
.policy-group-heading { display: flex; align-items: center; gap: 13px; margin: 0 0 13px; }
.policy-group-heading .section-kicker { margin-bottom: 2px; }
.policy-group-heading h3 { margin: 0; color: var(--navy); font-size: 1.42rem; line-height: 1.2; }
.policy-group-heading p { margin: 2px 0 0; color: var(--muted); font-size: .74rem; }
.policy-group-icon { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; display: grid; place-items: center; color: var(--navy); background: white; font-size: .9rem; font-weight: 900; }
.policy-group:nth-child(2) .policy-group-icon { color: #73500d; border-color: #ead8b7; background: #fffaf0; }
.policy-group:nth-child(3) .policy-group-icon { color: var(--teal-dark); border-color: #bbded8; background: #f1faf8; }
.policy-library .policy-tabs { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.policy-library .policy-tab { min-height: 92px; align-items: center; gap: 9px; padding: 16px 15px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: none; }
.policy-library .policy-tab:hover { border-color: #9fb9d2; box-shadow: 0 8px 18px rgba(6,43,79,.07); transform: translateY(-1px); }
.policy-library .policy-tab.active { border-color: var(--navy); background: #f6faff; box-shadow: 0 0 0 2px rgba(23,103,210,.09); }
.policy-library .policy-tab .policy-icon { flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; color: var(--blue); font-size: .68rem; font-weight: 900; }
.policy-library .policy-tab .tab-number { flex: 0 0 auto; width: 31px; height: 31px; border-radius: 9px; font-size: .67rem; }
.policy-library .policy-tab b { font-size: .84rem; line-height: 1.35; }
.policy-library .policy-tab small { font-size: .68rem; line-height: 1.35; }
.policy-library .policy-group:nth-child(2) .policy-tab .policy-icon { color: #b56d0e; }
.policy-library .policy-group:nth-child(3) .policy-tab .policy-icon { color: var(--teal); }
.brief-policy-panel { border-color: #71859a; }
.brief-policy-panel .panel-heading { margin-bottom: 22px; }
.brief-policy-panel .panel-heading h2 em { color: var(--blue); font-style: normal; }
.brief-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brief-policy-grid article { min-height: 170px; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdff; }
.brief-icon { width: 34px; height: 34px; border: 1px solid #b7cde0; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: #f1f7fd; font-size: .76rem; font-weight: 900; }
.brief-policy-grid h3 { margin: 14px 0 6px; color: var(--navy); font-size: 1rem; }
.brief-policy-grid p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }
body:not(.show-details) .policy-library { display: none !important; }
body.show-details .policy-library { display: block; }
body.show-details .policy-tabs { display: grid; }
body.show-details .policy-library { width: min(1180px, calc(100% - 48px)); margin-bottom: 34px; }
body.show-details .policy-panel { width: min(1180px, calc(100% - 48px)); }

@media (max-width: 880px) {
  .policy-library .policy-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .policy-library { width: calc(100% - 28px); }
  .policy-library .policy-tabs { grid-template-columns: 1fr; }
  .brief-policy-grid { grid-template-columns: 1fr; }
  body.show-details .policy-library { width: calc(100% - 28px); }
}
@media (max-width: 420px) {
  .two-options { grid-template-columns: 1fr; }
  .match-nav { align-items: stretch; flex-direction: column; }
  .match-nav .match-next, .match-nav .match-prev, .match-nav .match-submit { width: 100%; }
}

/* ヨコハマスタイル：淡い背景と細い罫線で、読みやすくフラットに。 */
:root {
  --paper: #FCFAF5;
  --navy: #151515;
  --ink: #232323;
  --muted: #666666;
  --line: #d7d7d7;
  --shadow: none;
}
body { background: var(--paper); }
.overview { padding-top: 54px; }
.overview-copy { max-width: 760px; }
.site-logo { display: block; width: min(420px, 86%); height: auto; margin: 0 0 28px; object-fit: contain; object-position: left center; }
.eyebrow span { border: 1px solid #cfe2f5; background: #f5faff; }
.eyebrow span:last-child { color: #b83c2d; border-color: #cfe2f5; background: #f5faff; }
.overview-note { border-color: #161616; border-radius: 22px; background: #ffffff; box-shadow: none; }
.match-app { border-color: #2A2622; border-radius: 28px; background: #ffffff; box-shadow: none; }
.match-submit, .match-nav .match-next { box-shadow: none; }
.match-type-card, .match-next, .share-box, .brief-policy-grid article { box-shadow: none; }
.match-main-card { background: #151515; }
.details-hero { border-bottom-color: #2A2622; }
.policy-library .policy-tab { flex-wrap: wrap; box-shadow: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.policy-library .policy-tab:hover, .policy-library .policy-tab:focus-visible { box-shadow: none; }
.policy-card-reveal { flex: 0 0 100%; max-height: 0; overflow: hidden; margin-top: 0; padding-top: 0; border-top: 1px solid transparent; color: var(--muted); font-size: .7rem; line-height: 1.55; opacity: 0; transition: max-height .22s ease, opacity .18s ease, margin-top .18s ease, padding-top .18s ease, border-color .18s ease; }
.policy-library .policy-tab:hover .policy-card-reveal,
.policy-library .policy-tab:focus-visible .policy-card-reveal,
.policy-library .policy-tab.active .policy-card-reveal { max-height: 96px; margin-top: 10px; padding-top: 10px; border-top-color: var(--line); opacity: 1; }
.policy-library .policy-tab.active { background: #f8fbff; }
.policy-library .policy-tab:focus-visible { outline: 3px solid rgba(23,103,210,.22); outline-offset: 2px; }
.policy-panel { box-shadow: none; border-color: #2A2622; }
.brief-policy-panel { border-color: #2A2622; }
.brief-policy-grid article { background: #ffffff; }
.official-docs, .data-table-wrap, .implementation { box-shadow: none; }

@media (max-width: 600px) {
  .site-logo { width: min(360px, 100%); margin-bottom: 22px; }
  .overview { padding-top: 36px; }
}

/* Campaign-facing first view: candidate, mission, vision, then the diagnostic. */
.campaign-overview { width: min(1180px, calc(100% - 48px)); min-height: 650px; padding: 58px 0 58px; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); align-items: center; gap: clamp(34px, 6vw, 84px); }
.campaign-overview .overview-copy { max-width: 680px; }
.campaign-label { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.campaign-label span { padding: 6px 10px; border: 1px solid #eed0c8; border-radius: 999px; color: var(--blue); background: #fff4f0; font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.campaign-label span:last-child { color: #222; border-color: #d7d7d7; background: #fff; }
.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; }
.brand-lockup .site-logo { width: min(390px, 100%); margin: 0 0 8px; }
.brand-lockup > span { color: var(--muted); font-size: .875rem; font-weight: 700; letter-spacing: .025em; }
.campaign-overview h1 { margin: 24px 0 18px; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.45; letter-spacing: -.025em; }
.campaign-overview h1 em { color: var(--blue); }
.overview-lead { max-width: 620px; margin: 0; color: var(--ink); font-size: clamp(1.08rem, 1.8vw, 1.3rem); font-weight: 800; line-height: 1.65; }
.overview-copy-note { max-width: 600px; margin: 13px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.hero-primary, .hero-secondary { display: inline-flex; align-items: center; gap: 12px; padding: 12px 17px; border-radius: 999px; text-decoration: none; font: inherit; font-size: .8rem; font-weight: 900; cursor: pointer; }
.hero-primary { color: white; background: var(--blue); }
.hero-primary:hover { background: #0d56b4; }
.hero-secondary { color: var(--navy); border: 1px solid #cbd8e4; background: white; }
.hero-secondary:hover { color: var(--blue); border-color: var(--blue); }
.hero-external { color: #a23d31; border-color: #e7b2a8; background: #fff8f5; }
.hero-external:hover { color: #fff; border-color: #b83c2d; background: #b83c2d; }
.hero-visual { display: grid; gap: 12px; align-self: stretch; align-content: center; }
.candidate-photo-card { position: relative; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; border: 1px solid #c9dceb; border-radius: 24px; background: #1a83e1; }
.candidate-photo-card::before, .candidate-photo-card::after { display: none; }
.candidate-photo-card img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; object-fit: contain; object-position: center; mix-blend-mode: normal; }
.candidate-caption { position: absolute; right: 18px; bottom: 16px; z-index: 2; padding: 10px 13px; border-left: 3px solid var(--blue); background: rgba(255,255,255,.92); }
.candidate-caption strong, .candidate-caption span { display: block; }
.candidate-caption strong { color: var(--navy); font-size: .92rem; }
.candidate-caption span { margin-top: 2px; color: var(--muted); font-size: .62rem; }
.campaign-overview .overview-note { justify-self: stretch; max-width: none; padding: 15px 17px; border-radius: 13px; box-shadow: none; }
.campaign-overview .overview-note p { font-size: .74rem; }
.mission-vision { width: min(1180px, calc(100% - 48px)); margin: 0 auto 82px; padding-top: 30px; border-top: 1px solid #2A2622; }
.mission-intro { display: grid; grid-template-columns: .82fr 1.18fr; align-items: end; gap: 28px; margin-bottom: 26px; }
.mission-intro h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.18; letter-spacing: -.045em; }
.mission-intro h2 em { color: var(--blue); font-style: normal; }
.mission-intro p { max-width: 620px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.mission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mission-card, .vision-card { min-height: 430px; padding: 27px; border: 1px solid #cfd9e3; border-radius: 18px; background: white; }
.vision-card { border-color: #b9d4ed; background: #f7fbff; }
.mission-card-label { display: inline-block; margin-bottom: 22px; color: var(--blue); font-size: .68rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.mission-card h3, .vision-card h3 { margin: 0 0 20px; color: var(--navy); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.4; letter-spacing: -.035em; }
.mission-card p, .vision-card p { margin: 0 0 12px; color: var(--muted); font-size: .8rem; line-height: 1.8; }
.mission-card .mission-closing, .vision-card .mission-closing { margin-top: 20px; color: var(--navy); font-weight: 900; }
.style-cycle { display: grid; grid-template-columns: 1fr .86fr; align-items: center; gap: 30px; margin-top: 12px; padding: 24px 26px; border: 1px solid #c7dbed; border-radius: 18px; background: #fff4f0; }
.style-cycle h3 { margin: 0 0 10px; color: var(--navy); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.4; }
.style-cycle p { max-width: 530px; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.75; }
.style-cycle img { display: block; width: min(100%, 360px); max-height: 360px; margin: 0 auto; object-fit: contain; }
body.show-details .mission-vision { display: none !important; }

@media (max-width: 820px) {
  .campaign-overview { grid-template-columns: 1fr; min-height: 0; padding-top: 42px; }
  .hero-visual { grid-template-columns: 1fr; align-items: stretch; }
  .candidate-photo-card { min-height: 0; }
  .mission-intro { grid-template-columns: 1fr; align-items: start; }
  .style-cycle { grid-template-columns: 1fr .7fr; }
}
@media (max-width: 600px) {
  .campaign-overview, .mission-vision { width: calc(100% - 28px); }
  .campaign-overview { padding-top: 34px; }
  .brand-lockup .site-logo { width: min(340px, 100%); }
  .campaign-overview h1 { margin-top: 22px; }
  .hero-visual { grid-template-columns: 1fr; }
  .candidate-photo-card { min-height: 0; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-card, .vision-card { min-height: 0; padding: 22px; }
  .style-cycle { grid-template-columns: 1fr; padding: 20px; }
  .style-cycle img { width: min(78%, 300px); }
}

/* Interactive policy controls: visible state, keyboard focus, and compact feedback. */
.policy-panel { scroll-margin-top: 24px; }
.option-list, .guard-checklist { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; border: 0; }
.option-list legend, .guard-checklist legend { margin-bottom: 2px; color: var(--navy); font-size: .76rem; font-weight: 900; }
.option-list label, .guard-checklist label { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.option-list label:hover, .guard-checklist label:hover { border-color: #9fb9d2; background: #f7fbff; }
.option-list label.is-selected, .guard-checklist label.is-selected { border-color: var(--blue); background: #f1f7fd; }
.option-list input, .guard-checklist input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.option-list label > span { display: flex; align-items: center; gap: 9px; min-width: 0; }
.option-list label b { display: grid; flex: 0 0 auto; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: white; background: var(--navy); font-size: .7rem; }
.option-list label i { color: var(--ink); font-size: .76rem; font-style: normal; line-height: 1.35; }
.guard-checklist label > span { color: var(--ink); font-size: .76rem; line-height: 1.35; }
.option-list input:focus-visible, .guard-checklist input:focus-visible { outline: 3px solid rgba(23,103,210,.24); outline-offset: 2px; }
.casino-panel .option-list input { accent-color: #7359b6; }
.casino-panel .option-list label.is-selected { border-color: #7359b6; background: #f6f2ff; }
.harassment-panel .guard-checklist input { accent-color: #b54c76; }
.harassment-panel .guard-checklist label.is-selected { border-color: #b54c76; background: #fff4f8; }
.option-orbit, .guard-seal { display: grid; flex: 0 0 88px; place-items: center; width: 88px; height: 88px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: white; background: rgba(255,255,255,.1); text-align: center; }
.option-orbit span, .guard-seal span { display: block; font-size: 2.15rem; font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.option-orbit small, .guard-seal small { display: block; margin-top: 3px; color: rgba(255,255,255,.78); font-size: .58rem; font-weight: 800; }
.option-matrix, .harassment-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.option-matrix article, .harassment-path article { min-height: 108px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.option-matrix article > span, .harassment-path article > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: white; background: var(--navy); font-size: .68rem; font-weight: 900; }
.option-matrix article b, .option-matrix article p, .harassment-path article b, .harassment-path article p { display: block; }
.option-matrix article b, .harassment-path article b { margin-top: 10px; color: var(--navy); font-size: .79rem; line-height: 1.3; }
.option-matrix article p, .harassment-path article p { margin: 5px 0 0; color: var(--muted); font-size: .66rem; line-height: 1.5; }
.casino-panel .option-matrix article > span { background: #7359b6; }
.harassment-panel .harassment-path article > span { background: #b54c76; }
.match-impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 18px; }
.match-impact-grid article { min-width: 0; padding: 10px 9px; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; background: rgba(255,255,255,.08); }
.match-impact-grid span, .match-impact-grid small { display: block; color: #b9cddd; font-size: .61rem; line-height: 1.25; }
.match-impact-grid strong { display: block; margin: 5px 0 3px; color: white; font-size: clamp(.72rem, 1.55vw, 1.04rem); line-height: 1.12; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.match-impact-grid small { color: #92aec5; font-size: .57rem; }
.match-scenario { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: rgba(5,32,56,.2); }
.match-scenario summary { color: #eaf5ff; cursor: pointer; font-size: .7rem; font-weight: 850; }
.match-scenario > p, .scenario-method-copy p { margin: 8px 0; color: #bdd2e3; font-size: .64rem; line-height: 1.6; }
.scenario-method-copy a { color: #b8dcff; font-weight: 800; }
.scenario-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.match-policy-option { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.06); }
.match-policy-option label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer; }
.match-policy-option:has(input:checked) { border-color: #a9d0f7; background: rgba(255,255,255,.15); }
.match-policy-option input { flex: 0 0 auto; width: 15px; height: 15px; accent-color: #8cc8ff; }
.match-policy-option label > span { display: block; flex: 1; min-width: 0; }
.match-policy-option b, .match-policy-option small { display: block; }
.match-policy-option b { color: white; font-size: .62rem; line-height: 1.35; }
.match-policy-option small { margin-top: 2px; color: #a9c1d4; font-size: .54rem; line-height: 1.3; }
.match-policy-option > a { color: #b8dcff; font-size: .55rem; white-space: nowrap; }
.scenario-method-copy { margin-top: 6px; }
.scenario-method-copy p + p { padding-top: 7px; border-top: 1px solid rgba(255,255,255,.13); }
.scenario-method-copy b { color: white; }
.policy-switch { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.policy-switch input { flex: 0 0 auto; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--blue); }
.policy-switch > span { display: block; min-width: 0; }
.sim-digital-details li .policy-switch b { line-height: 1.4; }
.sim-digital-details li .policy-switch b > span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; color: #fff; background: var(--blue); font-size: .62rem; }
.birth-delta-note { display: block; max-width: 480px; margin-top: 8px; color: var(--muted); font-size: .63rem; line-height: 1.5; }
.birth-delta-note b { color: var(--navy); }

@media (max-width: 600px) {
  .match-impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-policy-grid { grid-template-columns: 1fr; }
  .option-matrix, .harassment-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .option-orbit, .guard-seal { flex-basis: 72px; width: 72px; height: 72px; }
}

/* Final interaction pass: clear focus, comfortable touch targets, and a quieter result hierarchy. */
#mission, #match-app, #details-top { scroll-margin-top: 24px; }
.hero-primary, .hero-secondary, .match-nav button, .match-submit, .details-button, .details-back, .share-button { min-height: 44px; }
.details-button { display: inline-flex; align-items: center; }
.hero-primary, .hero-secondary { justify-content: center; transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease; }
.hero-primary:hover, .hero-secondary:hover { transform: translateY(-1px); }
.hero-primary:focus-visible, .hero-secondary:focus-visible, .match-nav button:focus-visible, .match-submit:focus-visible, .details-button:focus-visible, .details-back:focus-visible, .share-button:focus-visible, .details-index a:focus-visible { outline: 3px solid rgba(23,103,210,.32); outline-offset: 3px; }
.match-heading p { max-width: 560px; font-size: .9rem; line-height: 1.65; }
.match-question legend { line-height: 1.45; }
.match-options label span { min-height: 84px; }
.match-options small { font-size: .72rem; line-height: 1.45; }
.match-inputs label { transition: border-color .16s ease, background .16s ease; }
.match-inputs label:focus-within { border-color: var(--blue); background: #f7fbff; }
.match-inputs label span { font-size: .74rem; line-height: 1.45; }
.match-inputs select { min-height: 40px; font-size: .84rem; }
.match-vote-card > span, .match-recommendation > span { font-size: .75rem; letter-spacing: .07em; }
.match-vote-card > h3 { max-width: 620px; }
.match-vote-card > p { max-width: 620px; font-size: .78rem; }
.match-recommendation .details-button { width: 100%; max-width: 24rem; justify-content: center; }
.share-box b { font-size: .9rem; }
.share-box p { font-size: .75rem; }
.share-button { justify-content: center; font-size: .74rem; }

@media (max-width: 760px) {
  .match-result-grid { gap: 16px; }
  .match-main-card, .match-next { padding: 21px; }
  .match-policy-list div { display: grid; grid-template-columns: 1fr; gap: 3px; }
  .match-policy-list strong { text-align: left; line-height: 1.45; }
}

@media (max-width: 600px) {
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-primary, .hero-secondary { width: 100%; }
  .match-heading p { font-size: .86rem; }
  .match-options label span { min-height: 76px; padding: 13px 12px; }
  .match-result { margin-top: 28px; padding-top: 25px; }
  .match-vote-card > h3 { font-size: 1.3rem; }
  .match-vote-card > strong { font-size: 1.8rem; }
}

/* Shared policy comparison: concrete examples and consistent criteria. */
.match-policy-guide > strong { font-size: 1.35rem; line-height: 1.5; }
.match-policy-guide > b, .match-policy-guide > p { font-size: 1rem; line-height: 1.75; }
.match-policy-guide .match-policy-list { gap: 20px; margin-top: 24px; }
.match-policy-guide .match-policy-list > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 20px; font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.match-policy-guide .match-policy-list h4 { margin: 0; color: #c9e5ff; font-size: .95rem; line-height: 1.5; }
.match-policy-guide .match-policy-list strong { font-size: 1rem; line-height: 1.65; text-align: left; }
.match-policy-guide .match-policy-list p { margin: 0; color: #d8e9f6; }
.match-policy-guide .match-policy-list .match-policy-checklist { padding: 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.05); }
.match-policy-guide .match-policy-checklist p { font-size: .875rem; line-height: 1.65; }

.match-policy-guide > strong[hidden] { display: none; }
.match-policy-guide .match-policy-checklist p { font-size: 1rem; }
.match-policy-guide .match-policy-checklist .match-policy-example-note { font-size: .875rem; }

/* Approved brand and canonical policy copy. */
:root { --navy:#2A2622; --navy-2:#552d27; --blue:#b83c2d; --blue-soft:#fbe9e4; --sky:#F0897A; --coral:#D94F3D; --ink:#2A2622; --muted:#625950; --paper:#FCFAF5; }
h1,h2,h3 { font-weight:900; }
.overview h1,.overview h1 em,.section-kicker,.panel-heading h2,.mission-intro-title h2 { color:#D94F3D; }
.overview h1 em { font-size:.58em; display:inline-block; line-height:1.5; }
.official-brand { display:inline-flex; align-items:center; gap:14px; margin-bottom:8px; }
.official-brand b { color:#2A2622; font-size:clamp(1.6rem,4vw,2.4rem); font-weight:900; }
.official-brand>i { display:flex; align-items:flex-end; gap:3px; }
.official-brand>i>i { display:block; width:34px; height:34px; border-radius:50%; background:#D94F3D; }
.official-brand>i>i:nth-child(2) { width:24px; height:24px; background:#F0897A; }
.official-brand>i>i:nth-child(3) { width:15px; height:15px; background:#FBD0C6; }
.public-promise,.canonical-policy { padding:24px; border:1px solid var(--line); border-radius:18px; background:white; margin-bottom:24px; }
.canonical-policy { max-width:900px; }
.canonical-policy p,.canonical-policy li,.public-promise p { font-size:1rem; line-height:1.85; color:#2A2622; }
.canonical-policy h3 { margin:24px 0 8px; font-size:1.15rem; }
.canonical-policy ul { padding-left:1.3rem; }
.canonical-short { font-weight:700; }
.policy-subtitle { font-weight:700; }
.analysis-label { font-size:.875rem; color:#625950; padding:14px 18px; background:#fff0e9; border-radius:10px; }
.district-policy { margin:32px 0; }
.district-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.district-grid details { padding:20px; background:white; border:1px solid var(--line); border-radius:14px; }
.district-grid summary,.public-promise summary { cursor:pointer; font-size:1rem; font-weight:900; }
.district-grid h3 { font-size:1rem; margin:20px 0 6px; }
.district-grid p { font-size:1rem; }
.official-footer,.expo-special { width:min(1180px,calc(100% - 48px)); margin:36px auto; padding:28px; border-top:2px solid #D94F3D; }
.official-footer p,.expo-special p { font-size:1rem; line-height:1.85; }
.official-footer a { text-decoration:underline; overflow-wrap:anywhere; }
body:not(.show-details) .expo-special { display:none; }
.policy-tab { min-width:0; }
.policy-tab b,.policy-tab small { white-space:normal; overflow-wrap:anywhere; }
@media(max-width:700px) { .district-grid {grid-template-columns:1fr;} .canonical-policy,.public-promise {padding:18px;} .official-footer,.expo-special {width:calc(100% - 28px);padding:20px 0;} }

.details-promise {width:min(1180px,calc(100% - 48px));margin:24px auto;} body:not(.show-details) .details-promise {display:none;}

/* Supplied brand assets and result infographics, October 2026. */
.official-logo { display:block; width:min(100%,390px); height:auto; aspect-ratio:1437/411; object-fit:contain; margin:0 0 10px; }
.candidate-photo-card { background:#dde1d7; }
.candidate-photo-card img { object-fit:cover; object-position:65% 45%; }
.candidate-caption span { font-size:.76rem; }
.baseline-source { display:flex; flex-wrap:wrap; gap:6px 14px; color:var(--muted); font-size:.8rem; margin:12px 0 22px; }
.baseline-source a { color:var(--blue); text-underline-offset:3px; }
.baseline-source span { margin-left:auto; }
.canonical-details { margin-top:20px; border-top:1px solid var(--line); padding-top:14px; }
.canonical-details summary,.reading-guide summary,.retention-visual summary { cursor:pointer; font-weight:800; min-height:36px; }
.canonical-details[open] summary { margin-bottom:18px; }
.policy-infographic,.scenario-infographic,.retention-visual { margin:0 0 22px; padding:22px; background:#fff; border:1px solid var(--line); border-radius:18px; overflow-wrap:anywhere; }
.policy-infographic figcaption,.scenario-infographic figcaption,.retention-visual figcaption { font-size:.88rem; color:var(--navy); font-weight:900; margin-bottom:18px; }
.policy-action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.policy-action-grid > div { display:flex; align-items:center; gap:12px; min-width:0; padding:16px; border-radius:12px; background:#faf4e9; }
.policy-action-grid.three-actions { grid-template-columns:repeat(3,minmax(0,1fr)); }
.policy-action-grid span { flex-shrink:0; display:grid; place-items:center; width:34px; height:34px; border-radius:50%; color:#fff; background:#D94F3D; font-size:.8rem; font-weight:900; }
.policy-action-grid b { font-size:.93rem; line-height:1.5; }
.scenario-infographic { background:#fffcf5; padding:24px; }
.scenario-infographic svg,.visual-axis svg,.household-cost-piece svg,.ward-pin svg { width:32px; height:32px; color:#D94F3D; }
.grant-visual { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.grant-visual>div { display:grid; gap:8px; padding:18px; background:#fff; border:1px solid #e1dfd6; border-radius:14px; }
.grant-visual>div.proposed { border-color:#df776b; background:#fff3ef; }
.grant-visual b { font-size:1.07rem; color:var(--navy); }
.grant-visual span,.grant-visual small { font-size:.8rem; }
.visual-caption,.scenario-infographic .visual-caption { font-size:.8rem; line-height:1.65; color:var(--muted); margin:16px 0 0; }
.visual-compare h4 { margin:0 0 14px; font-size:1rem; }
.visual-bar-row { display:grid; grid-template-columns:36px minmax(0,1fr) auto; align-items:center; gap:12px; margin:14px 0; }
.visual-bar-row>span { font-size:.82rem; }
.visual-bar-row>i { display:block; height:16px; border-radius:8px; background:#ece9e2; }
.visual-bar-row em { display:block; height:100%; border-radius:8px; background:#a4aaa4; }
.visual-bar-row.proposed em { background:#D94F3D; }
.visual-bar-row b { min-width:82px; text-align:right; font-size:1.15rem; font-variant-numeric:tabular-nums; }
.visual-bar-row.proposed b { color:#bd3f2f; }
.visual-compare p { font-size:.8rem; line-height:1.6; color:var(--muted); }
.visual-total { display:grid; gap:4px; border-top:1px solid #e6d9cc; padding-top:16px; margin-top:18px; }
.visual-total>span { font-size:.85rem; }
.visual-total>b { font-size:1.8rem; color:#bd3f2f; font-variant-numeric:tabular-nums; }
.visual-total small { color:var(--muted); line-height:1.6; }
.visual-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0; padding:0; list-style:none; }
.visual-steps li { position:relative; min-width:0; display:flex; flex-direction:column; gap:9px; padding:18px 12px; background:white; border:1px solid #e8ddd0; border-radius:12px; }
.visual-steps li>span { display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#D94F3D; color:white; font-size:.72rem; font-weight:900; }
.visual-steps li>b { font-size:1rem; line-height:1.45; color:var(--navy); }
.visual-steps li>small { font-size:.76rem; line-height:1.5; color:var(--muted); }
.visual-steps li:not(:last-child)::after { content:'›'; position:absolute; z-index:1; right:-12px; top:45%; color:#D94F3D; font-size:1.6rem; }
.diagnosis-visual { margin:22px 0; padding:24px; background:#fff8ed; border:1px solid #eadccc; border-radius:18px; }
.visual-kicker { font-size:.76rem; font-weight:900; color:#a43b2f; }
.diagnosis-visual h4 { margin:8px 0 20px; font-size:1.25rem; line-height:1.45; }
.visual-axis-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:0 0 18px; }
.visual-axis { display:grid; justify-items:center; gap:7px; min-width:0; padding:14px 6px; border:1px solid #e7dfd3; border-radius:14px; background:white; }
.visual-axis.selected { border:2px solid #D94F3D; background:#fff0e8; padding:13px 5px; }
.visual-axis small { font-size:.68rem; color:var(--muted); }
.visual-axis b { font-size:.9rem; }
.ward-result { display:flex; align-items:flex-start; gap:18px; padding:26px; margin:20px 0; border:1px solid #e8d6c8; border-radius:18px; background:#fff7ed; }
.ward-pin { display:grid; place-items:center; flex-shrink:0; width:56px; height:56px; background:#fff; border-radius:50%; }
.ward-copy { min-width:0; flex:1; }
.ward-copy h3 { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 14px; margin:7px 0 10px; font-size:1.55rem; }
.ward-copy h3 small { font-size:.76rem; color:var(--muted); font-weight:700; }
.ward-message { font-size:1.12rem; font-weight:800; line-height:1.65; margin:0 0 18px; }
.ward-area-chips { display:flex; flex-wrap:wrap; gap:6px; }
.ward-area-chips span { border:1px solid #e2d9cb; border-radius:999px; padding:6px 10px; font-size:.72rem; color:#665f55; background:#fff; }
.ward-area-chips span.selected { background:#D94F3D; color:white; border-color:#D94F3D; font-weight:900; }
.ward-attribution { display:block; margin-top:14px; color:var(--muted); font-size:.72rem; }
.ward-result.compact { padding:20px; }
.ward-result.compact .ward-message { font-size:1rem; }
.household-visual { display:grid; grid-template-columns:minmax(0,1fr) 15px minmax(0,1fr) 15px minmax(0,1fr); gap:8px; padding:20px; margin-top:16px; background:#fff7eb; border-radius:16px; border:1px solid #e9d7c8; }
.household-cost-piece { display:flex; flex-direction:column; gap:8px; min-width:0; justify-content:center; }
.household-cost-piece>span { font-size:.8rem; font-weight:800; }
.household-cost-piece>b { font-size:clamp(1rem,2vw,1.65rem); color:var(--navy); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.household-cost-piece>small { font-size:.7rem; color:var(--muted); line-height:1.5; }
.household-cost-piece.total>b { color:#bd3f2f; }
.visual-plus { align-self:center; color:#ad6553; font-weight:900; }
.guard-dots { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0 0 18px; }
.guard-dots>span { display:flex; align-items:center; gap:8px; font-size:.76rem; background:white; padding:10px; border-radius:10px; border:1px solid #ddd; }
.guard-dots b { color:#999; font-size:1rem; }
.guard-dots .selected { border-color:#dd8575; background:#fff0e8; }
.guard-dots .selected b { color:#b54232; }
.retention-equation { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.retention-equation>span { display:flex; flex-direction:column; gap:4px; font-size:.8rem; }
.retention-equation b { font-size:clamp(1.4rem,3vw,2.4rem); line-height:1.2; color:var(--navy); font-variant-numeric:tabular-nums; }
.retention-equation i { font-style:normal; color:var(--muted); }
.retention-equation .highlight b { color:#bd3f2f; }
.retention-track { display:flex; margin-top:22px; height:24px; border-radius:12px; overflow:hidden; }
.retention-track span:first-child { background:#8caaa9; }
.retention-track span:last-child { background:#D94F3D; }
.retention-visual p,.retention-visual details { font-size:.88rem; line-height:1.65; }
.reading-guide { padding:20px; background:#fff8ed; border:1px solid var(--line); border-radius:14px; margin-top:18px; }
.reading-guide p { line-height:1.7; font-size:.95rem; }
.reading-guide>small { color:var(--muted); }
.percentile-example { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:14px 0; }
.percentile-example span { display:flex; gap:12px; align-items:center; padding:14px; border-radius:10px; background:#fff; }
.percentile-example b { color:#bd3f2f; }
.match-policy-list>details { display:block; padding:16px 0; border-top:1px solid #e1dbd1; }
.match-policy-list>details>summary { cursor:pointer; font-size:1rem; font-weight:900; min-height:32px; line-height:1.6; }
.match-policy-list>details[open]>summary { margin-bottom:12px; }
.match-policy-list>details>p,.match-policy-list>details>strong { font-size:.95rem; line-height:1.75; }
@media(max-width:700px) {
  .official-logo { width:min(100%,320px); }
  .candidate-photo-card img { object-position:65% 45%; }
  .baseline-source span { margin-left:0; width:100%; }
  .policy-infographic,.scenario-infographic,.retention-visual,.diagnosis-visual { padding:18px; }
  .policy-action-grid,.grant-visual { grid-template-columns:1fr; }
  .policy-action-grid.three-actions { grid-template-columns:1fr; }
  .visual-steps { grid-template-columns:1fr; }
  .visual-steps li { display:grid; grid-template-columns:30px minmax(0,1fr); padding:15px; gap:4px 10px; }
  .visual-steps li>span { grid-row:span 2; }
  .visual-steps li>small { grid-column:2; }
  .visual-steps li:not(:last-child)::after { display:none; }
  .ward-result { gap:12px; padding:20px 16px; }
  .ward-pin { width:40px; height:40px; }
  .ward-message { font-size:1rem; }
  .household-visual { grid-template-columns:1fr; gap:10px; padding:18px; }
  .household-cost-piece { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:5px 12px; }
  .household-cost-piece>svg { grid-row:span 3; }
  .household-cost-piece>small,.household-cost-piece>b { grid-column:2; }
  .household-cost-piece.total { border-top:1px solid #e5c6b4; padding-top:14px; grid-template-columns:1fr; }
  .household-cost-piece.total>* { grid-column:1; }
  .visual-plus { display:none; }
  .visual-axis-row { gap:6px; }
  .visual-axis small { font-size:.62rem; }
  .guard-dots { grid-template-columns:1fr; }
  .percentile-example { grid-template-columns:1fr; }
}

/* Diagnosis result contrast and copy readability, revised from the supplied screenshots. */
.match-main-card { color:#2A2622; background:#fff8ed; border:1px solid #eadccd; }
.match-main-card > span { color:#a23d31; font-size:.82rem; letter-spacing:.025em; }
.match-vote-card > h3 { color:#2A2622; font-size:clamp(1.35rem,2.4vw,1.9rem); line-height:1.45; letter-spacing:-.02em; }
.match-vote-card > b { color:#403932; font-size:.98rem; line-height:1.6; }
.match-main-card > p { color:#554c44; font-size:.92rem; line-height:1.75; }
.match-policy-list { gap:9px; margin-top:20px; }
.match-policy-guide .match-policy-list > details,
.match-policy-guide .match-policy-list > .match-policy-checklist {
  display:block; width:100%; min-width:0; margin:0; padding:0; overflow:hidden;
  border:1px solid #e8dbca; border-radius:13px; background:#fff; color:#2A2622;
}
.match-policy-guide .match-policy-list > details > summary,
.match-policy-guide .match-policy-list > .match-policy-checklist > summary {
  display:block; min-height:48px; padding:14px 44px 14px 16px; position:relative;
  color:#2A2622; background:#fff; font-size:.98rem; line-height:1.55;
}
.match-policy-guide .match-policy-list > details > summary::after,
.match-policy-guide .match-policy-list > .match-policy-checklist > summary::after {
  content:"＋"; position:absolute; right:16px; top:50%; transform:translateY(-50%); color:#b54232; font-weight:800;
}
.match-policy-guide .match-policy-list > details[open] > summary::after,
.match-policy-guide .match-policy-list > .match-policy-checklist[open] > summary::after { content:"−"; }
.match-policy-guide .match-policy-list > details[open] > summary,
.match-policy-guide .match-policy-list > .match-policy-checklist[open] > summary {
  margin:0; border-bottom:1px solid #eee5da; background:#fff8ed;
}
.match-policy-guide .match-policy-list > details > strong,
.match-policy-guide .match-policy-list > details > p,
.match-policy-guide .match-policy-list > .match-policy-checklist > p {
  display:block; margin:14px 16px; color:#403932; font-size:.94rem; line-height:1.75;
}
.match-policy-guide .match-policy-list > .match-policy-checklist > p.match-policy-example-note { color:#655b52; font-size:.84rem; }
.diagnosis-visual { color:#2A2622; }
.diagnosis-visual h4 { color:#2A2622; }
.visual-axis b { color:#2A2622; }
.visual-axis small { color:#5e554c; font-size:.76rem; line-height:1.4; }
.diagnosis-visual .visual-caption { color:#50483f; font-size:.88rem; line-height:1.65; }
.match-recommendation > b { font-size:clamp(1.2rem,2.2vw,1.55rem); line-height:1.5; letter-spacing:-.015em; }
.match-recommendation p { font-size:.9rem; line-height:1.7; }
@media(max-width:700px) {
  .match-vote-card > h3 { font-size:1.35rem; }
  .match-recommendation > b { font-size:1.35rem; }
  .match-policy-guide .match-policy-list > details > summary,
  .match-policy-guide .match-policy-list > .match-policy-checklist > summary { font-size:.94rem; }
}

/* District policy accordion: prevent an open region from stretching its neighbors. */
.district-policy { margin: 36px 0 42px; }
.district-policy > h2 { margin: 0 0 18px; color: var(--navy); font-size: clamp(1.55rem, 2.7vw, 2.15rem); line-height: 1.3; }
.district-grid { align-items: start; gap: 14px; }
.district-grid details { align-self: start; padding: 0; overflow: hidden; background: #fff; transition: border-color .16s ease, background .16s ease; }
.district-grid details[open] { border-color: #e7b2a8; background: #fffaf7; }
.district-grid summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; color: var(--navy); line-height: 1.4; list-style: none; }
.district-grid summary::-webkit-details-marker { display: none; }
.district-grid summary::after { content: "＋"; flex: 0 0 auto; color: #b83c2d; font-size: 1.1rem; font-weight: 700; }
.district-grid details[open] summary { border-bottom: 1px solid #f0e1d9; }
.district-grid details[open] summary::after { content: "−"; }
.district-grid details > h3, .district-grid details > p { margin-left: 20px; margin-right: 20px; }
.district-grid details > h3 { margin-top: 18px; margin-bottom: 4px; padding-top: 14px; border-top: 1px solid #efe3d8; color: var(--navy); font-size: .98rem; }
.district-grid details > h3:first-of-type { margin-top: 0; padding-top: 18px; border-top: 0; }
.district-grid details > p { margin-top: 0; margin-bottom: 0; padding-bottom: 16px; color: var(--muted); font-size: .94rem; line-height: 1.65; }
@media (max-width: 700px) {
  .district-policy { margin: 28px 0 34px; }
  .district-grid summary { padding: 15px 16px; }
  .district-grid details > h3, .district-grid details > p { margin-left: 16px; margin-right: 16px; }
}

/* The vision and district guidance belong to the full policy view. */
body:not(.show-details) .mission-vision { display: none !important; }
body.show-details .mission-vision { display: block !important; margin-top: 0; }

/* Shared footer: keep contact details visible and easy to scan in both views. */
.official-footer { display: block !important; width: 100%; margin: 64px 0 0; padding: 34px 24px 38px; border-top: 4px solid #D94F3D; background: #2A2622; color: #fff8ed; }
.official-footer-inner { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .95fr); gap: 20px 48px; }
.official-footer strong { display: block; color: #fff; font-size: 1.1rem; letter-spacing: .03em; }
.official-footer .office-address { margin: 10px 0 0; color: #f5ddd3; font-size: .9rem; line-height: 1.75; }
.official-footer .office-address b { color: #fff; }
.official-footer-links { display: grid; gap: 8px; align-content: start; }
.official-footer-links a { width: fit-content; color: #fff; font-size: .9rem; line-height: 1.55; text-underline-offset: 3px; overflow-wrap: anywhere; }
.official-footer-links a:hover { color: #f8b1a4; }
.official-footer-note { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); color: #d9c5bd; font-size: .75rem; line-height: 1.65; }
@media (max-width: 700px) {
  .official-footer { margin-top: 44px; padding: 28px 16px 32px; }
  .official-footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .official-footer-note { grid-column: auto; margin-top: 0; }
}

/* Policy detail cleanup: reduce repeated labels and keep expanded guidance compact. */
.brief-policy-panel { padding: clamp(24px, 3.2vw, 40px); }
.brief-policy-panel .panel-heading { margin-bottom: 18px; }
.brief-policy-panel .canonical-policy { max-width: none; margin-bottom: 18px; padding: 20px 22px; }
.brief-policy-panel .canonical-policy > h3 { margin-top: 18px; }
.brief-policy-panel .canonical-policy > p { max-width: 880px; }
.brief-policy-panel .canonical-details {
  margin-top: 16px; padding: 12px 16px 16px;
  border: 1px solid #eadccd; border-radius: 14px;
  background: #fffaf5;
}
.brief-policy-panel .canonical-details summary { min-height: 32px; line-height: 1.45; }
.brief-policy-panel .canonical-details[open] summary { margin-bottom: 10px; }
.brief-policy-panel .canonical-details h3 { margin: 14px 0 5px; font-size: 1.02rem; line-height: 1.45; }
.brief-policy-panel .canonical-details p { max-width: 920px; margin: 0 0 12px; line-height: 1.75; }
.brief-policy-panel .canonical-details ul { margin: 0; padding-left: 1.3rem; }
.brief-policy-panel .canonical-details li { margin: 4px 0; line-height: 1.65; }
.brief-policy-panel .policy-infographic { margin-top: 18px; }
@media (max-width: 700px) {
  .brief-policy-panel { padding: 20px 16px; }
  .brief-policy-panel .canonical-policy { padding: 17px 16px; }
  .brief-policy-panel .canonical-details { padding: 11px 13px 14px; }
}
