:root {
  --ink: #17251e;
  --muted: #5f6c65;
  --paper: #f7f5ef;
  --card: #fffef9;
  --green: #164f36;
  --green-dark: #0b3524;
  --lime: #c9f06a;
  --line: #d9ddd5;
  --orange: #ef7754;
  --italy-red: #b64b3e;
  --blue: #b9dfe4;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(23, 37, 30, 0.1);
  --font-sans: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Arial", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
}
body::before { content: ""; position: fixed; z-index: 200; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #16834d 0 33.33%, #fff 33.33% 66.66%, var(--italy-red) 66.66%); }
.hero-copy, .section-heading > *, .method-grid > *, .history-panel > * { min-width: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; color: white; background: var(--green); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  width: min(1440px, calc(100% - 64px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 37, 30, .18);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
.brand-mark { width: 31px; height: 27px; display: flex; align-items: flex-end; gap: 3px; padding: 4px; border-radius: 8px; background: var(--green); transform: rotate(-2deg); }
.brand-mark i { width: 5px; display: block; border-radius: 3px 3px 1px 1px; background: var(--lime); }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 19px; }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a { color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.source-link { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 700; text-decoration: none; }
.nav-toggle { display: none; width: 40px; height: 40px; padding: 0; align-items: center; justify-content: center; gap: 5px; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  width: min(1320px, calc(100% - 64px));
  min-height: 420px;
  margin: 0 auto;
  padding: 60px 0 45px;
  display: flex;
  align-items: center;
}
.hero-copy { width: min(1050px, 100%); }
.eyebrow { margin: 0 0 18px; color: var(--green); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 22px; height: 2px; margin: 0 8px 3px 0; background: currentColor; }
.hero h1, .section-heading h2, .method-grid h2 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.065em; line-height: .98; }
.hero h1 { max-width: 930px; font-size: clamp(4rem, 7vw, 6.8rem); }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-intro { max-width: 760px; margin: 26px 0; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.hero-proof { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); font-size: .76rem; }
.hero-proof span { display: flex; align-items: baseline; gap: 6px; }
.hero-proof b { color: var(--green); font-family: var(--font-display); font-size: 1.15rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 13px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-primary { color: white; background: var(--green); border-color: var(--green); box-shadow: 0 10px 25px rgba(22, 79, 54, .2); }
.button-primary span { color: var(--lime); font-size: 1.2rem; }
.button-quiet { border-color: transparent; }
.button:hover { transform: translateY(-1px); }

.hero-panel { position: relative; min-height: 490px; overflow: hidden; border-radius: 48% 48% 38% 45% / 40% 44% 48% 47%; background: var(--green); box-shadow: var(--shadow); isolation: isolate; }
.hero-panel::before { content: ""; position: absolute; inset: 15%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(201,240,106,.16), transparent 62%); }
.hero-panel::after { content: ""; position: absolute; width: 42%; height: 42%; right: -9%; top: -6%; border-radius: 50%; background: var(--lime); opacity: .9; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; }
.orbit-one { inset: 11%; }
.orbit-two { inset: 27% 5%; transform: rotate(28deg); }
.metric-main { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; }
.metric-main span { font-family: var(--font-display); font-size: clamp(4rem, 7vw, 6.5rem); font-weight: 700; line-height: 1; letter-spacing: -.08em; }
.metric-main small { margin-top: 8px; color: rgba(255,255,255,.72); font-size: .87rem; }
.metric-float { position: absolute; min-width: 102px; padding: 14px 18px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; color: white; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.metric-float b { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; }
.metric-float span { color: rgba(255,255,255,.65); font-size: .75rem; }
.metric-top { left: 9%; top: 18%; }
.metric-bottom { right: 8%; bottom: 18%; }
.source-seal { position: absolute; left: 10%; bottom: 10%; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--green-dark); background: var(--lime); font-size: .68rem; font-weight: 800; line-height: 1.05; text-align: center; transform: rotate(-9deg); }
.source-seal span { font-size: .48rem; letter-spacing: .08em; }

.accounts-section, .topics-section, .analysis-section, .catalog-section, .atlas-section, .coverage-section, .method-section { padding: 110px max(32px, calc((100% - 1320px) / 2)); }
.accounts-section { padding-top: 20px; background: #e9eee7; }
.history-copy label { width: fit-content; min-width: 220px; padding: 8px 13px 7px; display: flex; flex-direction: column; border: 1px solid #bdc9be; border-radius: 12px; background: rgba(255,255,255,.65); }
.history-copy label span { color: #76827b; font-size: .61rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.history-copy select { border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 800; cursor: pointer; }
.sankey-shell { overflow: hidden; border: 1px solid #cad3c9; border-radius: 30px; background: var(--card); box-shadow: 0 18px 55px rgba(23,37,30,.07); }
.sankey-toolbar { min-height: 52px; padding: 0 25px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: #77847c; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sankey-toolbar > div { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.sankey-toolbar .sankey-toolbar-actions { gap: 15px; color: #77847c; }
.sankey-year { padding: 3px 9px; display: flex; align-items: center; gap: 6px; border: 1px solid #cbd4ca; border-radius: 999px; background: white; }
.sankey-year span { color: #77847c; font-size: .59rem; }
.sankey-year select { border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .7rem; font-weight: 800; cursor: pointer; }
.sankey-toolbar-actions button { padding: 5px 9px; border: 1px solid #cbd4ca; border-radius: 999px; color: var(--green); background: white; font-size: .65rem; font-weight: 800; cursor: pointer; }
.sankey-toolbar-actions .value-switch { border-color: #cbd4ca; }
.sankey-toolbar-actions .value-switch button { font-size: .65rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(201,240,106,.23); }
.sankey-scroll { padding: 14px 14px 0; overflow-x: auto; }
.sankey { width: 100%; min-width: 820px; height: auto; display: block; }
.sankey .flow { opacity: .72; transition: opacity .2s; }
.sankey .flow:hover { opacity: .94; }
.sankey .flow.selected { opacity: 1; stroke: var(--italy-red); stroke-width: 2px; }
.sankey-target { cursor: pointer; }
.sankey g.sankey-target:hover .node, .sankey g.sankey-target:focus .node { filter: brightness(.88); stroke: #fff; stroke-width: 2px; }
.sankey g.sankey-target.selected .node { stroke: var(--italy-red); stroke-width: 3px; }
.sankey g.sankey-target:focus { outline: none; }
.sankey .node { rx: 5px; }
.sankey .node-label { fill: var(--ink); font-family: var(--font-sans); font-size: 13px; font-weight: 800; }
.sankey .node-value { fill: #66736c; font-family: var(--font-sans); font-size: 12px; font-weight: 600; }
.sankey .column-label { fill: #829087; font-family: var(--font-sans); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.sankey .center-label { fill: white; font-family: var(--font-display); font-size: 18px; font-weight: 800; text-anchor: middle; }
.sankey .center-value { fill: var(--lime); font-family: var(--font-sans); font-size: 13px; font-weight: 800; text-anchor: middle; }
.sankey-detail { position: relative; padding: 36px; display: grid; grid-template-columns: .34fr .66fr; gap: 35px 48px; border-top: 1px solid var(--line); background: #f2f5ee; }
.sankey-detail[hidden] { display: none; }
.detail-close { position: absolute; z-index: 2; right: 18px; top: 16px; width: 34px; height: 34px; border: 1px solid #cbd5cb; border-radius: 50%; color: var(--ink); background: white; font-size: 1.25rem; cursor: pointer; }
.detail-copy { padding-right: 12px; }
.detail-kicker { margin: 0 0 7px; color: var(--green); font-size: .63rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.detail-copy h3 { margin: 0; font-family: var(--font-display); font-size: 2rem; line-height: 1.05; letter-spacing: -.05em; }
.detail-copy > strong { margin: 12px 0; display: block; color: var(--green); font-family: var(--font-display); font-size: 2.25rem; line-height: 1; letter-spacing: -.05em; }
.detail-copy > p:not(.detail-kicker) { margin: 0 0 14px; color: var(--muted); font-size: .78rem; }
.detail-change { margin: 16px 0; padding: 11px 0; display: flex; flex-direction: column; border-block: 1px solid #d5ddd3; }
.detail-change span { color: #78867d; font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-change b { color: var(--ink); font-size: .82rem; }
.detail-copy a { color: var(--green); font-size: .7rem; font-weight: 800; }
.detail-history svg { width: 100%; height: auto; display: block; overflow: visible; }
.detail-grid { stroke: #d5ddd3; stroke-width: 1; }
.detail-line { fill: none; stroke: var(--green); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.detail-dot { fill: white; stroke: var(--italy-red); stroke-width: 4; }
.detail-axis-label { fill: #78867d; font-family: var(--font-sans); font-size: 10px; }
.detail-value-label { fill: var(--ink); font-family: var(--font-sans); font-size: 11px; font-weight: 800; }
.detail-breakdown { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid #d5ddd3; }
.detail-breakdown h4 { margin: 0 0 16px; font-family: var(--font-display); font-size: 1rem; }
.detail-breakdown ul { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 13px 32px; list-style: none; }
.detail-breakdown li > div { display: flex; justify-content: space-between; gap: 18px; font-size: .72rem; }
.detail-breakdown li b { flex: none; }
.detail-breakdown li em { padding: 2px 4px; border-radius: 4px; color: #8a4d39; background: #f3ddd6; font-size: .55rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.detail-breakdown li > i { height: 5px; margin-top: 5px; display: block; overflow: hidden; border-radius: 999px; background: #dde4dc; }
.detail-breakdown li > i span { height: 100%; display: block; border-radius: inherit; background: var(--green); }
.detail-breakdown > p { margin: 15px 0 0; color: #7d8981; font-size: .65rem; }
.account-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.account-kpi { min-height: 145px; padding: 22px 24px; border-right: 1px solid var(--line); }
.account-kpi:last-child { border-right: 0; }
.account-kpi small { color: #78847d; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.account-kpi strong { margin: 9px 0 3px; display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1; letter-spacing: -.05em; }
.account-kpi p { margin: 0; color: var(--muted); font-size: .72rem; }
.account-kpi .positive { color: var(--green); }
.account-kpi .negative { color: #a54836; }
.history-panel { margin-top: 18px; padding: 38px; display: grid; grid-template-columns: .32fr .68fr; gap: 55px; border-radius: 30px; color: white; background: var(--green-dark); }
.history-copy .eyebrow { color: var(--lime); }
.history-copy h3 { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1; letter-spacing: -.055em; }
.history-copy > p:not(.eyebrow) { margin: 0 0 28px; color: rgba(255,255,255,.65); font-size: .87rem; }
.history-copy label { width: 100%; color: var(--ink); background: white; border-color: transparent; }
.history-visual { min-width: 0; }
.history-visual svg { width: 100%; height: auto; display: block; overflow: visible; }
.history-grid { stroke: rgba(255,255,255,.13); stroke-width: 1; }
.history-zero { stroke: rgba(255,255,255,.55); stroke-width: 1; stroke-dasharray: 5 5; }
.history-line { fill: none; stroke: var(--lime); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.history-area { fill: url(#history-area-gradient); }
.history-hit { fill: transparent; cursor: pointer; }
.history-point { fill: var(--green-dark); stroke: var(--lime); stroke-width: 2.5; pointer-events: none; transition: r .15s; }
.history-time-point { outline: none; }
.history-time-point:hover .history-point, .history-time-point:focus .history-point { r: 6; }
.history-axis-label { fill: rgba(255,255,255,.58); font-family: var(--font-sans); font-size: 11px; }
.history-value-label { fill: white; font-family: var(--font-sans); font-size: 11px; font-weight: 800; }
.history-comparison { margin-top: 14px; padding-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid rgba(255,255,255,.15); }
.history-comparison div { display: flex; flex-direction: column; }
.history-comparison span { color: rgba(255,255,255,.5); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.history-comparison b { color: white; font-size: .86rem; }
.history-comparison small { color: rgba(255,255,255,.58); font-size: .68rem; }
.account-source-note { margin-top: 18px; padding: 21px 5px 0; display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: start; color: var(--muted); font-size: .75rem; }
.account-source-note p { max-width: 770px; margin: 0; }
.account-source-note a { display: block; color: var(--green); font-weight: 800; text-align: right; }

.topics-section { background: var(--paper); }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.topic-card { min-height: 210px; padding: 27px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(23,37,30,.08); }
.topic-card.topic-featured { grid-column: span 2; color: white; background: var(--green); border-color: var(--green); }
@media (min-width: 1051px) {
  .topic-grid > .topic-card:last-child:not(.topic-featured) { grid-column: 2; }
}
.topic-card small { margin: 0 0 15px; color: var(--green); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.topic-featured small { color: var(--lime); }
.topic-card h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.12; letter-spacing: -.04em; }
.topic-featured h3 { max-width: 620px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.topic-card p { margin: 0 0 22px; color: var(--muted); font-size: .82rem; }
.topic-featured p { max-width: 620px; color: rgba(255,255,255,.68); }
.topic-card b { margin-top: auto; display: flex; justify-content: space-between; color: var(--green); font-size: .76rem; }
.topic-featured b { color: var(--lime); }
.analysis-section { padding-top: 20px; background: var(--paper); }
.analysis-section .section-heading { margin-bottom: 38px; }
.analysis-toolbar { margin-bottom: 24px; display: flex; align-items: center; gap: 11px; }
.analysis-toolbar > span { color: #77847c; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.analysis-toolbar .value-switch { border: 1px solid var(--line); }
.driver-panel { overflow: hidden; border: 1px solid #cad3c9; border-radius: 30px; background: var(--card); box-shadow: 0 18px 55px rgba(23,37,30,.06); }
.driver-head { padding: 31px 34px 25px; display: flex; align-items: end; justify-content: space-between; gap: 35px; border-bottom: 1px solid var(--line); }
.analysis-number { margin: 0 0 9px; color: var(--green); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.driver-head h3, .analysis-card h3 { margin: 0; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.02; letter-spacing: -.05em; }
.driver-head > div:first-child > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: .79rem; }
.analysis-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.analysis-controls label { min-width: 155px; padding: 7px 11px 6px; display: flex; flex-direction: column; border: 1px solid #cad3c9; border-radius: 12px; background: white; }
.analysis-controls span { color: #78847d; font-size: .57rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.analysis-controls select { border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .78rem; font-weight: 800; cursor: pointer; }
.driver-summary { padding: 24px 34px; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: #f1f5ed; }
.driver-summary div { padding: 0 20px; display: flex; flex-direction: column; border-right: 1px solid #d5ddd3; }
.driver-summary div:first-child { padding-left: 0; }
.driver-summary div:last-child { padding-right: 0; border-right: 0; }
.driver-summary span { color: #77847c; font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.driver-summary b { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.04em; }
.driver-summary small { color: var(--muted); font-size: .7rem; }
.driver-list { margin: 0; padding: 28px 34px 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 42px; list-style: none; counter-reset: drivers; }
.driver-list li { min-width: 0; counter-increment: drivers; }
.driver-row { display: grid; grid-template-columns: 1fr auto; gap: 15px; align-items: end; }
.driver-row span { min-width: 0; overflow: hidden; font-size: .76rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.driver-row b { font-size: .76rem; }
.driver-row small { grid-column: 1 / -1; color: var(--muted); font-size: .64rem; }
.driver-track { position: relative; height: 7px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: linear-gradient(90deg, #edf0ea 0 49.6%, #bcc6bc 49.6% 50.4%, #edf0ea 50.4%); }
.driver-track i { position: absolute; top: 0; bottom: 0; max-width: 49.5%; background: var(--green); }
.driver-track i.positive { left: 50%; border-radius: 0 999px 999px 0; }
.driver-track i.negative { right: 50%; border-radius: 999px 0 0 999px; background: var(--italy-red); }
.analysis-boundary { margin: 0; padding: 17px 34px 20px; color: #6f7d74; font-size: .7rem; border-top: 1px solid var(--line); }
.analysis-pair { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.analysis-card { min-width: 0; padding: 22px 26px 0; overflow: hidden; border: 1px solid #cad3c9; border-radius: 26px; background: #eef3eb; }
.analysis-card-value { margin: 23px 0 8px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.analysis-card-value div { display: flex; flex-direction: column; }
.analysis-card-value span { color: #77847c; font-size: .59rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.analysis-card-value b { font-family: var(--font-display); font-size: clamp(1.35rem, 2.5vw, 2.15rem); line-height: 1.05; letter-spacing: -.05em; }
.analysis-card-value small { color: var(--muted); font-size: .68rem; }
.analysis-card svg { width: 100%; height: auto; display: block; overflow: visible; }
.analysis-play-hint { width: max-content; margin: 13px auto -13px; padding: 6px 11px; color: var(--green); border: 1px solid rgba(22,79,54,.16); border-radius: 999px; background: rgba(255,255,255,.54); font-size: .65rem; font-weight: 800; }
.analysis-play-hint span { display: inline-block; margin-right: 4px; animation: nudge 1.8s ease-in-out infinite; }
.analysis-play-chart { touch-action: manipulation; }
.analysis-area { fill: rgba(22,79,54,.1); }
.analysis-line { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.analysis-dot { fill: white; stroke: var(--italy-red); stroke-width: 4; }
.analysis-zero { stroke: rgba(23,37,30,.2); stroke-width: 1.5; stroke-dasharray: 3 5; }
.analysis-hit { fill: transparent; cursor: pointer; }
.analysis-time-point { outline: none; }
.analysis-time-point .analysis-dot { transition: r .16s, filter .16s; pointer-events: none; }
.analysis-time-point:hover .analysis-dot, .analysis-time-point:focus .analysis-dot { r: 7; filter: drop-shadow(0 4px 5px rgba(23,37,30,.25)); }
.analysis-time-point.selected .analysis-dot { fill: var(--italy-red); }
.analysis-year-bubble { fill: var(--ink); pointer-events: none; }
.analysis-year-label { fill: white; font-size: 11px; font-weight: 800; pointer-events: none; }
.analysis-grid { stroke: #d4ddd2; stroke-width: 1; }
.analysis-axis { fill: #76847b; font-family: var(--font-sans); font-size: 10px; }
.analysis-card .analysis-boundary { margin: 0 -32px; background: rgba(255,255,255,.36); }
.analysis-card-dark { color: white; border-color: var(--green-dark); background: var(--green-dark); }
.analysis-card-dark .analysis-number { color: var(--lime); }
.analysis-card-dark .analysis-card-value span, .analysis-card-dark .analysis-card-value small { color: rgba(255,255,255,.6); }
.analysis-card-dark .analysis-line { stroke: var(--lime); }
.analysis-card-dark .analysis-area { fill: rgba(201,240,106,.12); }
.analysis-card-dark .analysis-zero { stroke: rgba(255,255,255,.3); }
.analysis-card-dark .analysis-grid { stroke: rgba(255,255,255,.15); }
.analysis-card-dark .analysis-axis { fill: rgba(255,255,255,.55); }
.analysis-card-dark .analysis-dot { stroke: var(--italy-red); fill: var(--green-dark); }
.analysis-card-dark .analysis-time-point.selected .analysis-dot { fill: var(--italy-red); }
.analysis-card-dark .analysis-year-bubble { fill: var(--lime); }
.analysis-card-dark .analysis-year-label { fill: var(--green-dark); }
.analysis-card-dark .analysis-play-hint { color: var(--lime); border-color: rgba(201,240,106,.25); background: rgba(255,255,255,.05); }
.analysis-card-dark .analysis-boundary { color: rgba(255,255,255,.64); border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.035); }
.analysis-provenance { margin: 16px 4px 0; color: var(--muted); font-size: .68rem; }
.analysis-provenance a { color: var(--green); font-weight: 800; }
@keyframes nudge { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
@keyframes stage-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.analysis-explorer { margin-top: 92px; }
.explorer-intro { margin-bottom: 25px; display: grid; grid-template-columns: 1fr .65fr; gap: 50px; align-items: end; }
.explorer-intro .eyebrow { margin-bottom: 10px; }
.explorer-intro h3 { margin: 0; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.8rem); letter-spacing: -.06em; line-height: .98; }
.explorer-intro > p { margin: 0; color: var(--muted); }
.question-deck { padding: 4px 2px 16px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(172px, 1fr); gap: 9px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; }
.question-card { min-height: 76px; padding: 14px 16px; display: flex; align-items: center; scroll-snap-align: start; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; background: var(--card); text-align: left; cursor: pointer; transition: transform .18s, color .18s, background .18s, border-color .18s; }
.question-card:hover { transform: translateY(-3px) rotate(-.4deg); border-color: #9daf9f; }
.question-card b { font-family: var(--font-display); font-size: .83rem; line-height: 1.15; }
.question-card[aria-selected="true"] { color: white; border-color: var(--green); background: var(--green); box-shadow: 0 10px 25px rgba(22,79,54,.16); transform: translateY(-3px) rotate(.6deg); }
.analysis-playground { overflow: hidden; border: 1px solid #c7d2c7; border-radius: 32px; background: var(--card); box-shadow: var(--shadow); }
.playground-head { padding: 32px 34px 25px; display: flex; align-items: end; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.playground-head h3 { max-width: 720px; margin: 0; font-family: var(--font-display); font-size: clamp(1.9rem, 3.5vw, 3.3rem); letter-spacing: -.055em; line-height: 1; }
.playground-head > div:first-child > p:last-child { max-width: 700px; margin: 11px 0 0; color: var(--muted); font-size: .82rem; }
.playground-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.playground-controls label { min-width: 150px; max-width: 290px; padding: 7px 11px 6px; display: flex; flex-direction: column; border: 1px solid #cad3c9; border-radius: 12px; background: white; }
.playground-controls span { color: #78847d; font-size: .56rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.playground-controls select, .playground-controls input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .76rem; font-weight: 800; cursor: pointer; }
.playground-controls input[type="range"] { width: 155px; accent-color: var(--green); }
.playground-stage { min-height: 430px; padding: 36px 34px; display: grid; place-items: center; background: radial-gradient(circle at 12% 12%, rgba(201,240,106,.14), transparent 25%), linear-gradient(155deg, #f4f7ef, #fffef9 58%, #f8eee8); }
.playground-stage > * { animation: stage-in .32s ease-out both; }
.playground-readout { padding: 23px 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.playground-readout > div { min-height: 82px; padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; background: var(--card); }
.playground-readout span { color: var(--muted); font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.playground-readout b { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 2rem); letter-spacing: -.045em; line-height: 1.05; }
.playground-readout small { color: var(--muted); font-size: .68rem; }
.playground-foot { padding: 17px 34px 20px; display: grid; grid-template-columns: 1fr auto; gap: 30px; color: var(--muted); background: #f4f1e9; font-size: .68rem; }
.playground-foot p { margin: 0; }
.playground-foot a { color: var(--green); font-weight: 800; }

/* Un piccolo vocabolario di forme riusato dalle storie. */
.flow-steps { width: min(100%, 1020px); display: grid; grid-template-columns: repeat(var(--steps, 4), 1fr); gap: 34px; align-items: center; }
.flow-step { position: relative; min-width: 0; padding: 22px 16px; border: 1px solid #ced8cc; border-radius: 22px; background: rgba(255,255,255,.86); text-align: center; box-shadow: 0 12px 28px rgba(23,37,30,.06); }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -27px; color: var(--italy-red); font-size: 1.5rem; font-weight: 900; transform: translateY(-50%); }
.flow-step span { display: block; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.flow-step b { display: block; margin: 8px 0 2px; font-family: var(--font-display); font-size: clamp(1.2rem, 2.7vw, 2.1rem); letter-spacing: -.05em; line-height: 1; }
.flow-step small { color: var(--muted); font-size: .68rem; }
.flow-step.accent { color: white; border-color: var(--green); background: var(--green); transform: rotate(-1deg) scale(1.03); }
.flow-step.accent span, .flow-step.accent small { color: rgba(255,255,255,.66); }
.bubble-columns { width: 100%; display: flex; gap: 30px; align-items: flex-start; justify-content: center; }
.bubble-columns > .bubble-group { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.bubble-columns > .bubble-group:first-child:not(:last-child) { padding-right: 30px; border-right: 1px dashed var(--line); }
.bubble-group > p { margin: 0 0 18px; color: #77847c; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bubble-field { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.data-bubble { --size: 150px; width: var(--size); height: var(--size); padding: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: var(--ink); background: #dce9d2; text-align: center; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.data-bubble.down { background: #f2d9cf; }
.data-bubble:hover, .data-bubble:focus, .data-bubble.selected { z-index: 2; outline: 0; transform: translateY(-7px) rotate(2deg); box-shadow: 0 15px 28px rgba(23,37,30,.14); }
.data-bubble.up.selected { color: white; background: var(--green); }
.data-bubble.down.selected { color: white; background: var(--italy-red); }
.data-bubble b { font-family: var(--font-display); font-size: clamp(.95rem, 1.8vw, 1.4rem); letter-spacing: -.035em; line-height: 1; }
.data-bubble span { max-width: 120px; margin-top: 6px; font-size: .64rem; font-weight: 700; line-height: 1.15; }
.stack-board { width: min(100%, 980px); }
.stack-total { margin-bottom: 15px; display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.stack-total b { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4.5rem); letter-spacing: -.06em; line-height: 1; }
.stack-total span { color: var(--muted); font-size: .74rem; }
.stack-bar { min-height: 105px; display: flex; overflow: hidden; border-radius: 28px; background: #e6e9e3; box-shadow: inset 0 0 0 1px rgba(23,37,30,.08); }
.stack-slice { min-width: 3px; padding: 14px 8px; display: flex; align-items: center; justify-content: center; color: white; border: 0; background: var(--green); font-weight: 800; cursor: pointer; transition: filter .16s, min-width .16s; }
.stack-slice:nth-child(3n+2) { background: #558c78; }
.stack-slice:nth-child(3n) { color: var(--ink); background: var(--blue); }
.stack-slice:hover, .stack-slice:focus, .stack-slice.selected { z-index: 1; outline: 3px solid white; outline-offset: -5px; filter: brightness(1.12); }
.stack-slice span { overflow: hidden; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.stack-legend { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-legend button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; font-size: .65rem; font-weight: 800; cursor: pointer; }
.stack-legend button.selected { color: white; border-color: var(--green); background: var(--green); }
.tax-category-panel { margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.tax-category-panel p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.tax-category-panel p + p { margin-top: 6px; }
.tax-category-label { color: var(--ink) !important; font-weight: 800; }
.tax-category-label span { margin-left: 6px; color: var(--green); font-weight: 800; }
.meter-board { width: min(100%, 930px); }
.meter-line { position: relative; height: 22px; margin: 70px 25px 48px; border-radius: 999px; background: linear-gradient(90deg, #d6e9dc, var(--lime) 50%, #efc6ba); box-shadow: inset 0 2px 4px rgba(23,37,30,.12); }
.meter-marker { position: absolute; top: 50%; width: 72px; height: 72px; display: grid; place-items: center; border: 7px solid white; border-radius: 50%; color: white; background: var(--green); box-shadow: 0 12px 25px rgba(23,37,30,.2); transform: translate(-50%, -50%); }
.meter-marker b { font-family: var(--font-display); font-size: 1rem; }
.meter-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; font-weight: 700; }
.big-story-number b { display: block; font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6.5rem); letter-spacing: -.075em; line-height: .86; }
.big-story-number span { color: var(--muted); }
.households-chart { width: min(100%, 620px); height: auto; display: block; overflow: visible; }
.households-break { stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .55; }
.trend-section { padding: 0 max(32px, calc((100% - 1320px) / 2)) 110px; background: var(--paper); }
.inflation-panel {
  position: relative; margin: 0 25px; padding: 0 44px 0 40px; display: grid; grid-template-columns: .56fr .44fr; gap: 42px; align-items: center;
  max-height: 0; opacity: 0; overflow: hidden; border: 1px solid transparent; border-radius: 22px; background: var(--card);
  transition: max-height .4s ease, opacity .3s ease, padding .4s ease, margin .4s ease, border-color .3s ease;
}
.inflation-panel.open { max-height: 640px; opacity: 1; margin: 18px 25px; padding: 28px 44px 28px 40px; border-color: #cad3c9; }
.inflation-panel > * { min-width: 0; }
.inflation-panel-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.inflation-panel-close:hover { color: var(--ink); }
.inflation-panel .eyebrow { margin-bottom: 14px; }
.inflation-panel h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.1; letter-spacing: -.04em; }
.inflation-note-copy > p:not(.eyebrow):not(.inflation-note-source) { margin: 0; color: var(--muted); font-size: .85rem; }
.inflation-note-source { margin: 16px 0 0; color: var(--muted); font-size: .72rem; }
.inflation-note-source a { color: var(--green); font-weight: 800; }
.inflation-note-demo .flow-steps { width: 100%; }

.catalog-section { background: #fffefa; }
.section-heading { margin-bottom: 52px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 60px; align-items: end; }
.section-heading h2, .method-grid h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.section-heading > p { max-width: 500px; margin: 0; color: var(--muted); }
.theme-strip { display: grid; grid-template-columns: repeat(6, 1fr); border-block: 1px solid var(--line); }
.theme-pill { min-height: 138px; padding: 19px 14px; display: flex; flex-direction: column; align-items: flex-start; border: 0; border-right: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.theme-pill:last-child { border-right: 0; }
.theme-pill:hover { background: #f4f6ed; }
.theme-pill span { color: #89938d; font-size: .68rem; }
.theme-pill strong { margin: auto 0; font-family: var(--font-display); font-size: .9rem; line-height: 1.25; }
.theme-pill small { color: var(--green); font-weight: 800; }
.catalog-tools { margin: 48px 0 21px; display: grid; grid-template-columns: 1.7fr repeat(3, .65fr); gap: 12px; }
.catalog-tools > label:not(.search-field) { position: relative; display: flex; flex-direction: column; padding: 9px 14px 7px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.catalog-tools label > span { color: #849087; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.catalog-tools select { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .86rem; font-weight: 700; cursor: pointer; }
.search-field { height: 59px; display: flex; align-items: center; gap: 13px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.search-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,79,54,.1); }
.search-field svg { width: 20px; fill: none; stroke: var(--green); stroke-width: 1.8; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-field kbd { padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: #869188; background: var(--paper); font-family: inherit; font-size: .7rem; }
.results-line { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; }
.results-line p { margin: 0; }
.results-line strong { color: var(--ink); }
.reset-button { border: 0; color: var(--green); background: transparent; font-size: .8rem; font-weight: 700; cursor: pointer; }
.result-actions { display: flex; align-items: center; gap: 14px; }
.view-switch { padding: 3px; display: flex; border: 1px solid var(--line); border-radius: 999px; background: white; }
.view-switch button { padding: 5px 10px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: .7rem; font-weight: 800; cursor: pointer; }
.view-switch button.active { color: white; background: var(--green); }
.dataset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dataset-card { min-height: 365px; padding: 25px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: transform .2s, box-shadow .2s, border-color .2s; }
.dataset-card:hover { transform: translateY(-3px); border-color: #bdc8bf; box-shadow: 0 16px 35px rgba(23,37,30,.08); }
.dataset-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.content-badge { padding: 5px 9px; border-radius: 999px; color: var(--green); background: #e7f0e9; font-size: .65rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.dataset-meta time { color: #7d8982; font-size: .7rem; }
.edition-count { color: #7d8982; font-size: .7rem; font-weight: 700; }
.dataset-card h3 { margin: 22px 0 12px; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; letter-spacing: -.03em; }
.dataset-card > p { margin: 0; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .86rem; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.dataset-facts { margin-top: auto; padding-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); }
.dataset-facts span { display: flex; flex-direction: column; color: var(--muted); font-size: .75rem; }
.dataset-facts b { color: #89928d; font-size: .59rem; letter-spacing: .08em; text-transform: uppercase; }
.card-link { margin-top: 18px; padding: 0; display: flex; justify-content: space-between; border: 0; color: var(--green); background: transparent; font-size: .82rem; font-weight: 800; cursor: pointer; text-align: left; }
.load-more { margin: 34px auto 0; background: white; }
.empty-state { padding: 70px 20px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-state span { font-size: 2rem; }
.empty-state h3 { margin-bottom: 0; font-family: var(--font-display); }
.empty-state p { margin-top: 4px; color: var(--muted); }

.atlas-section { background: #e9eee7; }
.atlas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.atlas-card { padding: 30px; border: 1px solid #cad3c9; border-radius: var(--radius); background: rgba(255,255,255,.55); }
.atlas-card-head { display: flex; justify-content: space-between; align-items: center; }
.atlas-card-head span { color: var(--green); font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; }
.atlas-card-head p { max-width: 60%; margin: 0; color: #718078; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-align: right; text-transform: uppercase; }
.atlas-card h3 { margin: 22px 0 25px; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.15; letter-spacing: -.045em; }
.atlas-card dl { margin: 0; border-top: 1px solid #cad3c9; }
.atlas-card dl div { padding: 12px 0; display: grid; grid-template-columns: 120px 1fr; gap: 15px; border-bottom: 1px solid #cad3c9; }
.atlas-card dt { color: #75827b; font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.atlas-card dd { margin: 0; font-size: .78rem; }
.atlas-use, .atlas-limit { margin: 20px 0 0; font-size: .8rem; }
.atlas-use b, .atlas-limit b { display: block; color: var(--green); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; }
.atlas-limit { color: #79513d; }
.atlas-limit b { color: var(--orange); }
.atlas-evidence { margin-top: 20px; color: #75827b; font-size: .65rem; }
.atlas-evidence code { display: inline-block; margin: 3px 2px; padding: 2px 4px; border-radius: 4px; color: var(--green); background: #dce5dc; font-size: .6rem; }

.connections-section { padding: 110px max(32px, calc((100% - 1320px) / 2)); color: white; background: var(--green-dark); }
.section-heading.light .eyebrow { color: var(--lime); }
.section-heading.light > p { color: rgba(255,255,255,.62); }
.connection-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.connection-card { position: relative; min-height: 200px; padding: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.connection-card.featured { grid-column: span 2; background: var(--lime); color: var(--green-dark); }
.card-kicker { margin: 0 0 25px; color: var(--lime); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.featured .card-kicker { color: var(--green); }
.connection-card h3 { max-width: 500px; margin: 0 0 15px; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.16; letter-spacing: -.04em; }
.connection-card p:not(.card-kicker) { color: rgba(255,255,255,.65); font-size: .9rem; }
.featured p:not(.card-kicker) { color: rgba(11,53,36,.72); }
.connection-tags { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.connection-tags span { padding: 7px 10px; border: 1px solid rgba(11,53,36,.2); border-radius: 999px; font-size: .72rem; font-weight: 700; }

.coverage-section { background: var(--paper); }
.coverage-table { border-top: 2px solid var(--ink); }
.coverage-row { min-height: 88px; padding: 20px 7px; display: grid; grid-template-columns: 1.25fr .45fr 1fr; gap: 30px; align-items: center; border-bottom: 1px solid var(--line); }
.coverage-row > strong { font-family: var(--font-display); font-size: 1rem; }
.coverage-row p { margin: 0; color: var(--muted); font-size: .87rem; }
.coverage-head { min-height: auto; padding-block: 12px; color: #7d8881; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status { width: fit-content; padding: 5px 10px; border-radius: 999px; font-size: .67rem; font-weight: 800; }
.status.direct { color: #1f6844; background: #dcebdd; }
.status.derived { color: #7a5421; background: #f5e6c2; }
.status.limited { color: #8a4835; background: #f5dbd3; }

.method-section { color: white; background: #13221b; }
.method-section .eyebrow { color: var(--lime); }
.method-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; }
.method-copy > p { margin: 0 0 36px; color: rgba(255,255,255,.65); font-size: 1.02rem; }
.method-copy dl { margin: 0; border-top: 1px solid rgba(255,255,255,.15); }
.method-copy dl div { padding: 17px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.15); }
.method-copy dt { color: rgba(255,255,255,.5); font-size: .78rem; }
.method-copy dd { margin: 0; font-size: .78rem; font-weight: 700; text-align: right; }

footer { padding: 30px max(32px, calc((100% - 1320px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: rgba(255,255,255,.55); background: #0a1610; font-size: .75rem; }
.footer-brand { color: white; }
footer p { margin: 0; }
footer > a:last-child { color: var(--lime); text-decoration: none; }

dialog { width: min(760px, calc(100% - 32px)); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: 26px; color: var(--ink); background: var(--card); box-shadow: 0 40px 100px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(7,24,15,.7); backdrop-filter: blur(4px); }
#dialog-content { padding: 42px; }
.dialog-close { position: sticky; z-index: 2; float: right; top: 16px; right: 16px; width: 38px; height: 38px; margin: 16px 16px -54px 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: white; font-size: 1.5rem; cursor: pointer; }
.dialog-theme { margin: 0 45px 12px 0; color: var(--green); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
dialog h2 { margin: 0 45px 8px 0; font-family: var(--font-display); font-size: 2rem; line-height: 1.12; letter-spacing: -.05em; }
.dataset-code { width: fit-content; margin: 13px 0; padding: 5px 8px; border-radius: 5px; color: var(--green); background: #e9f0e9; font-family: monospace; font-size: .72rem; }
.dialog-description { color: var(--muted); }
.dialog-facts { margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); }
.dialog-facts div { padding: 15px 5px; display: flex; flex-direction: column; }
.dialog-facts span { color: #7e8983; font-size: .67rem; text-transform: uppercase; }
.dialog-facts i { padding: 2px 4px; border-radius: 3px; color: #8a5a29; background: #f4e6ca; font-size: .52rem; font-style: normal; }
.dialog-facts b { font-size: .88rem; }
dialog h3 { margin-top: 30px; font-family: var(--font-display); }
.resource-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.resource-list li { padding: 12px 0; display: grid; grid-template-columns: 45px 1fr 24px; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.format-icon { display: grid; place-items: center; width: 42px; height: 35px; border-radius: 7px; color: var(--green); background: #e9f1e9; font-size: .58rem; font-weight: 800; }
.resource-list b, .resource-list small { display: block; }
.resource-list b { font-size: .78rem; }
.resource-list small { color: var(--muted); font-size: .68rem; }
.resource-list a { color: var(--green); font-weight: 800; text-decoration: none; }
.edition-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.edition-list li { border-bottom: 1px solid var(--line); }
.edition-list button { width: 100%; padding: 11px 0; display: flex; justify-content: space-between; gap: 15px; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.edition-list span { font-size: .77rem; }
.edition-list small { flex: none; color: var(--green); font-size: .65rem; }
.edition-note { color: var(--muted); font-size: .72rem; }
.dialog-tags { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 6px; }
.dialog-tags span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .66rem; }
.api-link { margin-top: 28px; display: inline-block; color: var(--green); font-size: .8rem; font-weight: 800; }
.toast { position: fixed; z-index: 50; right: 20px; bottom: 20px; padding: 14px 18px; border-radius: 10px; color: white; background: #8c3927; box-shadow: var(--shadow); }

@media (max-width: 1050px) {
  .hero h1 { font-size: clamp(3.5rem, 7vw, 5rem); }
  .theme-strip { grid-template-columns: repeat(3, 1fr); }
  .theme-pill:nth-child(3) { border-right: 0; }
  .theme-pill:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .catalog-tools { grid-template-columns: 1fr 1fr; }
  .dataset-grid { grid-template-columns: 1fr 1fr; }
  .history-panel { grid-template-columns: .4fr .6fr; gap: 35px; }
  .inflation-panel { grid-template-columns: 1fr; gap: 24px; }
  .inflation-panel.open { max-height: 900px; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .driver-list { grid-template-columns: 1fr; }
  .flow-steps { gap: 20px; }
  .flow-step:not(:last-child)::after { right: -17px; }
}

@media (max-width: 760px) {
  .site-header { width: calc(100% - 32px); height: 70px; position: relative; }
  .site-header nav, .source-link { display: none; }
  .nav-toggle { display: flex; }
  .site-header nav.open {
    display: flex; flex-direction: column; gap: 2px; position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 60;
  }
  .site-header nav.open a { padding: 12px 14px; border-radius: 12px; color: var(--ink); font-size: 1rem; }
  .site-header nav.open a:hover, .site-header nav.open a:focus-visible { background: var(--paper); }
  .hero { width: calc(100% - 32px); min-height: auto; padding: 45px 0 32px; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 5.5rem); }
  .hero-intro { font-size: 1rem; }
  .hero-copy, .hero-intro { width: 100%; max-width: calc(100vw - 32px); overflow-wrap: break-word; }
  .accounts-section, .topics-section, .analysis-section, .catalog-section, .atlas-section, .coverage-section, .method-section, .connections-section { padding: 75px 16px; }
  .accounts-section { padding-top: 16px; }
  .analysis-section { padding-top: 0; }
  .trend-section { padding: 0 16px 75px; }
  .sankey-toolbar { padding: 10px 14px; flex-wrap: wrap; gap: 8px 14px; }
  .sankey-toolbar .sankey-toolbar-actions { flex-wrap: wrap; }
  .sankey-hint { display: none; }
  .account-kpis { grid-template-columns: 1fr; }
  .account-kpi { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .account-kpi:last-child { border-bottom: 0; }
  .account-source-note { grid-template-columns: 1fr; gap: 13px; }
  .account-source-note a { text-align: left; }
  .history-panel { padding: 27px 20px; grid-template-columns: 1fr; gap: 35px; }
  .inflation-panel { padding: 22px 20px; grid-template-columns: 1fr; gap: 22px; }
  .inflation-panel.open { margin: 14px 16px; padding: 22px 40px 22px 20px; max-height: 1000px; }
  .driver-head { padding: 25px 20px 20px; align-items: stretch; flex-direction: column; }
  .analysis-controls { display: grid; grid-template-columns: 1fr; }
  .analysis-controls label { min-width: 0; }
  .driver-summary { padding: 21px 20px; grid-template-columns: 1fr; gap: 14px; }
  .driver-summary div, .driver-summary div:first-child, .driver-summary div:last-child { padding: 0; border: 0; }
  .driver-list { padding: 23px 20px 12px; gap: 17px; }
  .analysis-boundary { padding-inline: 20px; }
  .analysis-pair { grid-template-columns: 1fr; }
  .analysis-card { padding: 26px 20px 0; }
  .analysis-card .analysis-boundary { margin-inline: -20px; }
  .analysis-explorer { margin-top: 65px; }
  .explorer-intro { grid-template-columns: 1fr; gap: 16px; }
  .question-deck { grid-auto-columns: 145px; }
  .playground-head { padding: 25px 20px 20px; align-items: stretch; flex-direction: column; }
  .playground-controls { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .playground-controls label { min-width: 0; max-width: none; }
  .playground-stage { min-height: 390px; padding: 28px 20px; }
  .playground-readout { padding: 1px; grid-template-columns: 1fr; }
  .playground-readout > div { min-height: 70px; }
  .playground-foot { padding: 17px 20px 20px; grid-template-columns: 1fr; gap: 10px; }
  .flow-steps { --steps: 1 !important; width: 100%; grid-template-columns: 1fr; gap: 26px; }
  .flow-step { padding: 16px; }
  .flow-step:not(:last-child)::after { content: "↓"; inset: auto auto -25px 50%; transform: translateX(-50%); }
  .data-bubble { --size: 125px; }
  .bubble-columns { flex-direction: column; align-items: stretch; gap: 26px; }
  .bubble-columns > .bubble-group:first-child:not(:last-child) { padding-right: 0; padding-bottom: 20px; border-right: 0; border-bottom: 1px dashed var(--line); }
  .stack-bar { min-height: 85px; border-radius: 20px; }
  .stack-slice span { writing-mode: vertical-rl; }
  .big-story-number { text-align: center; }
  .sankey-detail { padding: 28px 20px; grid-template-columns: 1fr; }
  .detail-breakdown { grid-column: auto; }
  .detail-breakdown ul { grid-template-columns: 1fr; }
  .history-comparison { grid-template-columns: 1fr; gap: 12px; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card.topic-featured { grid-column: span 1; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 38px; }
  .section-heading h2, .method-grid h2 { font-size: 2.8rem; }
  .theme-strip { grid-template-columns: 1fr 1fr; }
  .theme-pill { min-height: 115px; border-bottom: 1px solid var(--line); }
  .theme-pill:nth-child(odd) { border-right: 1px solid var(--line); }
  .theme-pill:nth-child(even) { border-right: 0; }
  .catalog-tools { grid-template-columns: 1fr; }
  .dataset-grid { grid-template-columns: 1fr; }
  .atlas-grid { grid-template-columns: 1fr; }
  .atlas-card dl div { grid-template-columns: 1fr; gap: 3px; }
  .result-actions { align-items: flex-end; flex-direction: column; }
  .dataset-card { min-height: 340px; }
  .connection-board { grid-template-columns: 1fr; }
  .connection-card.featured { grid-column: span 1; }
  .coverage-head { display: none; }
  .coverage-row { padding-block: 22px; grid-template-columns: 1fr; gap: 8px; }
  .method-grid { grid-template-columns: 1fr; gap: 40px; }
  footer { padding: 35px 16px; flex-direction: column; align-items: flex-start; }
  #dialog-content { padding: 34px 23px; }
  dialog h2 { font-size: 1.65rem; }
  .dialog-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
