@font-face {
  font-family: Roboto;
  src: url("assets/Roboto.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("assets/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "PRE Helvetica";
  src: local("Helvetica xoxo Neue LT Pro 67 Medium Condensed"),
       local("HelveticaNeueLTPro-MdCn");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f6f6f6;
  --white: #fff;
  --ink: #121315;
  --muted: #484c53;
  --muted-light: #666b75;
  --navy: #1c2f67;
  --deep-navy: #111c3c;
  --light-blue: #e4ebff;
  --blue-border: #ccd4ee;
  --line: #eaebed;
  --light-text: #d2d4d8;
  --lime: #9fce22;
  --score-red: #e77b84;
  --score-gray: #b5b5b5;
  --shadow: 0 4px 8px rgb(0 0 0 / 8%);
  --edge: clamp(20px, 4.45vw, 64px);
  --display: "PRE Helvetica", Inter, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px / 24px Roboto, Arial, sans-serif;
}
[hidden] { display: none !important; }
p, h1, h2, h3, dl, dd { margin: 0; }
img { display: block; }
a { color: inherit; }
button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
button:focus-visible, a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
h1, h2, h3, .brand, .research-stats dd {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: none;
  font-synthesis: none;
}
h1 { font-size: 48px; line-height: 56px; }
h2 { font-size: 40px; line-height: 48px; }
h3 { font-size: 32px; line-height: 40px; }
.shell {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--edge);
}
.inset { margin-inline: 40px; }
.eyebrow { font-size: 13px; line-height: 16px; font-weight: 700; text-transform: uppercase; }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.card { border-radius: 32px; box-shadow: var(--shadow); }
.research-card, .insight { border: 1px solid var(--line); background: var(--white); }

.site-header {
  min-height: 80px;
  padding-block: 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--navy);
}
.brand {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px clamp(18px, 3.34vw, 48px);
  font-weight: 700;
}
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero-wrap { padding-block: 24px 40px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 702px) minmax(0, 360px);
  align-items: center;
  gap: clamp(28px, calc(22vw - 196.8px), 120px);
  padding: 56px clamp(28px, 4.45vw, 64px);
  border: 1px solid var(--blue-border);
  border-radius: 32px;
  background: var(--light-blue);
}
.hero-art { width: 100%; max-width: 360px; height: auto; justify-self: center; }
.hero .eyebrow { margin-bottom: 32px; color: var(--navy); }
.hero-description { margin-top: 16px; color: var(--muted); }
.data-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  font-weight: 700;
}
.data-badge > [aria-hidden="true"] { flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.data-badge .cms-label { min-width: 0; overflow-wrap: anywhere; }

.research, .topic, .contact { padding-block: 64px; scroll-margin-top: 16px; }
.research > h2 { margin-bottom: 32px; }
.research-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  color: var(--muted);
}
.research-title { display: flex; align-items: center; gap: 24px; }
.research-title img { flex: none; }
.research-title h3, .insight h3 { color: var(--ink); }
.research-title p { margin-top: 8px; font-weight: 700; }
.research-description { margin-top: 24px; min-height: 96px; }
.research-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(24px, 5vw, 72px);
  margin-block: 40px;
}
.research-stats > div { display: flex; flex-direction: column-reverse; justify-content: start; gap: 8px; }
.research-stats dd { display: flex; align-items: center; gap: 12px; color: var(--navy); font-size: 32px; line-height: 40px; }
.research-stats dt { font-weight: 700; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 24px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--light-blue);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--blue-border); }
.research-card > .button { margin-top: auto; }

.section-intro > :is(p, .cms-rich-block) {
  max-width: 936px;
  min-height: 72px;
  margin-top: 16px;
  color: var(--muted);
  font-family: Inter, sans-serif;
}
.index-card {
  --score-accent: var(--lime);
  margin-top: 56px;
  padding: 40px 40px 32px;
  color: var(--white);
  background: var(--deep-navy);
}
.index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
}
.index-description { min-height: 72px; margin-top: 16px; color: var(--light-text); }
.index-score { display: flex; align-items: end; gap: 12px; margin-top: 56px; font-weight: 700; }
.index-score-icon { flex: 0 0 40px; height: 40px; margin-right: -4px; background: var(--score-accent); mask: url("assets/index-up.svg") center / contain no-repeat; }
.index-score[data-score-direction="down"] .index-score-icon { transform: scaleY(-1); }
.index-score[data-score-direction="flat"] .index-score-icon { mask-image: url("assets/trend-stable.svg"); }
.index-score strong { font-size: 48px; line-height: 40px; letter-spacing: -.01em; }
.index-score-unit { font-size: 28px; line-height: 28px; }
[data-score-color="green"] { --score-accent: var(--lime); }
[data-score-color="red"] { --score-accent: var(--score-red); }
[data-score-color="gray"] { --score-accent: var(--score-gray); }
.index-change {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--muted);
}
.chart { display: grid; gap: 24px; }
.chart-label { display: flex; justify-content: space-between; gap: 8px; font-weight: 500; }
.chart-track { height: 12px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--white); }
.chart-track span { display: block; height: 100%; }
.bar-2024 { width: 38.7224%; background: var(--score-gray); }
.bar-2025 { width: 39.769%; background: var(--score-accent); }
.index-source {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  color: var(--light-text);
  font-size: 13px;
  line-height: 26px;
  text-align: right;
}
.index-pair { margin-top: 56px; }
.index-pair .index-card { display: flex; flex-direction: column; margin-top: 0; }
.index-pair .index-grid { flex: 1; grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 32px; }
.index-pair .index-grid > :first-child { align-self: start; }
.index-pair .index-score, .index-pair .index-source { margin-top: 32px; }

.insight-grid { margin-top: 36px; }
.insight { display: flex; flex-direction: column; gap: 32px; padding: 32px 40px 24px; color: var(--muted); }
.insight[id] { scroll-margin-top: 24px; }
.insight > .eyebrow { padding-bottom: 16px; border-bottom: 1px solid var(--light-text); }
.price { color: var(--ink); font-size: 40px; line-height: 40px; font-weight: 700; }
.trend {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 4px 16px 4px 4px;
  border-radius: 999px;
  background: var(--line);
}
.trend.positive { background: #e3f1bb; color: #3b5300; }
.trend.negative { background: #fce4e5; color: #8b2635; }
.trend-text { padding-inline: 12px; }
.trend-with-icon img { filter: grayscale(1) brightness(.82); }
.trend-icon { flex: 0 0 24px; height: 24px; background: currentColor; mask: var(--trend-mask) center / contain no-repeat; }
.trend-icon-up { --trend-mask: url("assets/index-up.svg"); }
.trend-icon-down { --trend-mask: url("assets/trend-down.svg"); }
.trend-icon-right { --trend-mask: url("assets/trend-stable.svg"); }
.trend > span:not(.trend-icon) { min-width: 0; overflow-wrap: anywhere; }
.insight h3 { margin-top: 24px; font-size: 24px; line-height: 32px; }
.insight h3[tabindex] { scroll-margin-top: 24px; }
.insight-description { margin-top: 8px; }
.insight-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.citation { font: 400 13px / 26px Inter, sans-serif; color: var(--muted-light); }
.copy { flex: none; }
.more-row { margin-top: 36px; display: flex; justify-content: center; padding-block: 16px; }
.more { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); }
.more-icon { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; background: var(--navy); }
.more:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.more[aria-expanded="true"] img { transform: rotate(45deg); }
.topic-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding: 24px 32px;
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  background: var(--light-blue);
  color: var(--navy);
}
.topic-summary img {
  flex: 0 0 24px;
}

.contact-card {
  padding: 40px;
  border: 1px solid var(--blue-border);
  border-radius: 32px;
  background: var(--light-blue);
}
.contact-card > :is(p, .cms-rich-block) { max-width: 864px; margin-top: 16px; color: var(--muted); }
.cms-rich-block > * + * { margin-top: 10px; }
.cms-rich-block :is(ul, ol) { padding-inline-start: 24px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 24px; color: var(--navy); font-style: normal; font-weight: 700; }
.contact-links a { overflow-wrap: anywhere; text-underline-offset: 4px; }

.site-footer { background: var(--deep-navy); color: var(--light-text); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  padding-inline: calc(var(--edge) + 40px);
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.footer-links a { color: var(--blue-border); text-decoration: none; }
.footer-links a[href]:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-pre { display: inline-flex; align-items: center; gap: 6px; }

dialog {
  width: min(620px, calc(100% - 32px));
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgb(17 28 60 / 55%); }
dialog form { text-align: right; margin-bottom: 16px; }
dialog h2 { font-size: 32px; line-height: 40px; }
dialog p { margin-top: 16px; }
dialog a { color: var(--navy); overflow-wrap: anywhere; }
.citation-dialog {
  width: min(872px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(20px, 4.45vw, 40px);
  overflow: auto;
}
.citation-dialog[open] { display: grid; gap: clamp(20px, 4vw, 40px); }
.citation-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.citation-dialog h2 { font: 700 clamp(24px, 4vw, 32px) / 1.25 Inter, sans-serif; }
.citation-dialog p { margin: 0; }
.citation-dialog #citation-help { margin-top: 16px; color: var(--muted); }
.citation-dialog-header form { flex: none; margin: 0; }
.citation-dialog-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--navy); }
.citation-dialog-close:hover { background: var(--light-blue); }
.citation-text {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 3.6vw, 32px);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  background: var(--light-blue);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.citation-dialog-copy { min-height: 46px; padding: 10px 16px; color: var(--white); background: var(--navy); }
.citation-dialog-copy:hover { background: var(--deep-navy); }
.citation-copy-icon { width: 24px; height: 24px; background: currentColor; mask: url("assets/copy.svg") center / contain no-repeat; }
.citation-dialog #citation-status:not(.visually-hidden) { margin-top: 12px; }
.visually-hidden { position: fixed; inset: 0 auto auto 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 1200px) {
  .insight:not(.extra-insights .insight) { min-height: 435px; }
}
@media (max-width: 1150px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 32%); }
  .hero h1 { font-size: clamp(34px, 4.15vw, 48px); line-height: 1.17; }
  .research-card, .insight { padding-inline: 28px; }
  .research-stats { column-gap: 20px; }
}
@media (max-width: 800px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .site-header nav { justify-content: flex-start; }
  .hero-wrap { padding-block: 16px 24px; }
  .hero { padding: 32px 24px; gap: 20px; }
  .research, .topic, .contact { padding-block: 36px; }
  .inset { margin-inline: 0; }
  h2 { font-size: 32px; line-height: 40px; }
  .two-up { grid-template-columns: 1fr; gap: 24px; }
  .research-description { min-height: 0; }
  .research-stats { margin-block: 28px; }
  .index-card { margin-top: 28px; padding: 28px; }
  .index-pair { margin-top: 28px; }
  .index-grid { grid-template-columns: 1fr; gap: 32px; }
  .index-description { min-height: 0; }
  .index-score, .index-source { margin-top: 32px; }
  .footer-inner { padding: 18px var(--edge); }
}
@media (max-width: 520px) {
  .hero { grid-template-columns: 1fr; }
  .hero .eyebrow { margin-bottom: 20px; }
  .hero h1 br { display: none; }
  .hero-art { width: min(100%, 260px); }
  .research-title { gap: 16px; }
  .research-title img { width: 48px; height: 48px; }
  .research-card, .insight, .index-card, .contact-card, .topic-summary { padding: 22px; }
  .research-title h3 { font-size: 26px; line-height: 32px; }
  .research-stats dd { font-size: 26px; gap: 6px; }
  .insight-footer { flex-wrap: wrap; }
  .footer-inner { flex-wrap: wrap; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
