/* Azea Research — Michael's Visual Spec B. Landing pages only. */
@font-face {
  font-family: "Azea Serif";
  src: url("/assets/LibreBaskerville-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ed-bg: #FFFFFF;
  --ed-mint: #E8F2EF;
  --ed-card: #F3EDE3;
  --ed-footer-bg: #F2F3F3;
  --ed-ink: #121A1A;
  --ed-muted: #6B7575;
  --ed-teal: #0B4F4A;
  --ed-teal-soft: #D5E6E3;
  --ed-line: #D9DEDE;
  --ed-sans: Arial, "Noto Sans CJK TC", "PingFang TC", "Hiragino Kaku Gothic ProN", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ed-serif: "Azea Serif", Georgia, "Noto Serif CJK TC", "Songti TC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body.editorial-home {
  margin: 0;
  color: var(--ed-ink);
  background: var(--ed-bg);
  font: 400 16px/1.55 var(--ed-sans);
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ed-teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ed-teal);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
.ed-wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.spec-b-main { width: 100%; }
.ed-skip-link {
  position: fixed;
  top: -96px;
  left: 24px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 4px;
  background: var(--ed-teal);
  color: var(--ed-bg);
  font-size: 14px;
  font-weight: 600;
}
.ed-skip-link:focus { top: 8px; }

/* The permanent header has exactly two rows. */
.ed-header { width: 100%; background: var(--ed-bg); }
.ed-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 56px;
  min-height: 56px;
}
.ed-brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; }
.ed-brand:hover { text-decoration: none; }
.ed-brand .ed-symbol { width: 32px; flex: 0 0 auto; }
.ed-brand .ed-wordmark { width: 216px; flex: 0 1 auto; }
.ed-languages { display: flex; align-items: center; gap: 16px; margin-left: auto; flex: 0 0 auto; font-size: 12px; line-height: 1.3; font-weight: 500; }
.ed-languages a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; color: var(--ed-ink); white-space: nowrap; border-bottom: 2px solid var(--ed-bg); }
.ed-languages a:hover { color: var(--ed-teal); text-decoration: underline; }
.ed-languages [aria-current] { color: var(--ed-teal); border-bottom-color: var(--ed-teal); }
.ed-menu-toggle { display: none; }
.ed-nav-row { height: 48px; border-bottom: 1px solid var(--ed-line); }
.ed-primary-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 47px; min-height: 47px; font-size: 13px; line-height: 1.3; font-weight: 500; }
.ed-primary-nav > a, .ed-topic-menu > summary { display: inline-flex; align-items: center; min-height: 40px; color: var(--ed-ink); white-space: nowrap; }
.ed-primary-nav > a:hover, .ed-topic-menu > summary:hover { color: var(--ed-teal); }
.ed-nav-short { display: none; }
.ed-topic-menu { position: relative; flex: 0 0 auto; }
.ed-topic-menu summary { list-style: none; gap: 8px; }
.ed-topic-menu summary::-webkit-details-marker { display: none; }
.ed-topic-menu summary::after { content: "▾"; color: var(--ed-teal); font-size: 10px; }
.ed-topic-panel { position: absolute; z-index: 30; top: 100%; left: 0; min-width: 240px; max-width: calc(100vw - 48px); padding: 8px; border: 1px solid var(--ed-line); border-radius: 4px; background: var(--ed-bg); box-shadow: none; }
.ed-topic-panel a { display: block; padding: 12px 16px; color: var(--ed-teal); font-size: 13px; white-space: normal; }
.ed-topic-panel a:hover { background: var(--ed-mint); }

/* The data tool is the first screen and the primary destination. */
.spec-b-hero, .ed-data-feature { margin: 0; padding-block: 56px; background: var(--ed-mint); }
.spec-b-hero-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.ed-eyebrow { display: block; margin-bottom: 16px; color: var(--ed-teal); font-size: 13px; line-height: 1.3; font-weight: 500; }
.spec-b-hero h1 { margin: 0 0 16px; color: var(--ed-ink); font-family: var(--ed-serif); font-size: 32px; line-height: 1.2; font-weight: 600; }
.spec-b-hero p { max-width: 42ch; margin: 0 0 24px; font-size: 16px; line-height: 1.55; }
.ed-button-link { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-height: 44px; padding-inline: 20px; border: 0; border-radius: 4px; background: var(--ed-teal); color: var(--ed-bg); font-size: 14px; line-height: 1; font-weight: 600; box-shadow: none; }
.ed-button-link:hover { background: var(--ed-ink); color: var(--ed-bg); text-decoration: none; }
.ed-data-period { min-width: 0; padding-left: 48px; border-left: 1px solid var(--ed-line); }
.ed-data-period > span, .ed-data-period > strong, .spec-b-range { display: block; color: var(--ed-ink); font-family: var(--ed-serif); font-size: 56px; line-height: 1.05; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ed-data-period p { max-width: 36ch; margin: 16px 0 0; color: var(--ed-muted); font-size: 15px; }

/* Sections follow the same eight-point spacing rhythm. */
.ed-section { margin-top: 72px; }
.ed-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.ed-section-heading h2 { margin: 0; color: var(--ed-ink); font-family: var(--ed-serif); font-size: 30px; line-height: 1.2; font-weight: 600; }
.ed-section-heading > span { color: var(--ed-muted); font-size: 12px; line-height: 1.3; font-weight: 500; }
.ed-text-link { color: var(--ed-teal); font-size: 14px; line-height: 1.3; font-weight: 500; }

/* One focal article and two subordinate numerical summaries. */
.spec-b-focus-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; }
.ed-lead { min-width: 0; }
.ed-chart-link, .spec-b-chart-card { display: block; overflow: hidden; border-radius: 8px; background: var(--ed-card); }
.ed-chart-link:hover { text-decoration: none; }
.ed-chart-link img, .ed-lead-chart { width: 100%; height: auto; background: var(--ed-card); }
.spec-b-chart-caption { margin: 8px 0 16px; color: var(--ed-muted); font-size: 12px; line-height: 1.3; }
.ed-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 8px; color: var(--ed-muted); font-size: 12px; line-height: 1.3; font-weight: 500; }
.ed-meta > span { color: var(--ed-teal); }
.ed-meta time { color: var(--ed-muted); font-variant-numeric: tabular-nums; }
.ed-lead h2, .ed-lead h3 { margin: 0 0 16px; color: var(--ed-ink); font-family: var(--ed-sans); font-size: 22px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.ed-lead h2 a, .ed-lead h3 a { color: var(--ed-ink); }
.ed-lead-note { margin-bottom: 0; color: var(--ed-muted); font-size: 15px; line-height: 1.55; }
.spec-b-facts { display: grid; grid-template-rows: 1fr 1fr; gap: 0; align-self: stretch; }
.spec-b-fact { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 24px 0; min-width: 0; color: var(--ed-ink); }
.spec-b-fact:first-child { padding-top: 0; }
.spec-b-fact + .spec-b-fact { border-top: 1px solid var(--ed-line); }
.spec-b-fact:hover { text-decoration: none; }
.spec-b-fact-value { display: block; margin-bottom: 16px; color: var(--ed-teal); font-family: var(--ed-serif); font-size: 48px; line-height: 1.05; font-weight: 500; font-variant-numeric: tabular-nums; }
.spec-b-fact-label, .spec-b-fact > p { display: block; max-width: 32ch; margin: 0; color: var(--ed-ink); font-size: 15px; line-height: 1.55; font-weight: 400; }
.spec-b-fact:hover .spec-b-fact-label { text-decoration: underline; text-underline-offset: 4px; }
.spec-b-fact .ed-meta { margin: 8px 0 0; }

/* Latest research: a single link across every compact four-column row. */
.ed-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ed-filter { min-height: 40px; padding: 8px 16px; border: 1px solid var(--ed-teal-soft); border-radius: 4px; background: var(--ed-bg); color: var(--ed-teal); font-size: 13px; line-height: 1.3; font-weight: 500; }
.ed-filter:hover { border-color: var(--ed-teal); background: var(--ed-mint); }
.ed-filter[aria-pressed="true"] { border-color: var(--ed-teal); background: var(--ed-teal); color: var(--ed-bg); }
.ed-result-count { margin: 0 0 8px; color: var(--ed-muted); font-size: 12px; line-height: 1.3; }
.ed-research-item { display: grid; grid-template-columns: 112px 140px minmax(0, 1fr) 140px; align-items: center; column-gap: 24px; min-height: 88px; padding: 16px 0; border-bottom: 1px solid var(--ed-line); color: var(--ed-ink); }
.ed-research-item:first-child { border-top: 1px solid var(--ed-line); }
.ed-research-item:hover { color: var(--ed-ink); text-decoration: none; }
.ed-item-meta { display: contents; }
.ed-item-date { color: var(--ed-muted); font-size: 12px; line-height: 1.3; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ed-item-topic { min-width: 0; color: var(--ed-teal); font-size: 12px; line-height: 1.3; font-weight: 500; overflow-wrap: anywhere; }
.ed-research-item h3, .ed-item-title { min-width: 0; margin: 0; color: var(--ed-ink); font-family: var(--ed-sans); font-size: 22px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.ed-research-item:hover .ed-item-title, .ed-research-item:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.ed-item-figure { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; text-align: right; }
.spec-b-number { color: var(--ed-teal); font-family: var(--ed-sans); font-size: 24px; line-height: 1.05; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec-b-metric-label { max-width: 100%; color: var(--ed-muted); font-size: 12px; line-height: 1.3; font-weight: 500; overflow-wrap: anywhere; }

/* Report titles share the ink color; only document links carry teal. */
.ed-section-note { margin: 0 0 24px; color: var(--ed-muted); font-size: 15px; line-height: 1.55; }
.ed-reports-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.ed-report { min-width: 0; padding: 24px; border: 1px solid var(--ed-line); border-radius: 4px; background: var(--ed-bg); }
.ed-report .ed-meta { margin: 0 0 16px; }
.ed-meta .spec-b-report-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border: 1px solid var(--ed-teal); border-radius: 4px; background: var(--ed-teal-soft); color: var(--ed-teal); font-size: 12px; line-height: 1.3; font-weight: 500; }
.ed-report h3 { margin: 0 0 16px; color: var(--ed-ink); font-family: var(--ed-sans); font-size: 22px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.ed-report h3 a, .ed-report h3 a:hover { color: var(--ed-ink); }
.ed-report .ed-text-link { display: inline-block; padding-block: 4px; }
.ed-home-updated { margin-top: 24px; margin-bottom: 0; color: var(--ed-muted); font-size: 12px; line-height: 1.3; }

.ed-footer { margin-top: 72px; padding-top: 48px; background: var(--ed-footer-bg); }
.ed-footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .75fr) minmax(0, 1fr); gap: 48px; }
.ed-footer-grid > div { min-width: 0; }
.ed-footer-brand { display: inline-block; }
.ed-footer-brand img { width: 216px; height: auto; }
.ed-footer-grid p { max-width: 40ch; margin: 16px 0 0; color: var(--ed-muted); font-size: 15px; line-height: 1.55; }
.ed-footer h2 { margin: 0 0 16px; color: var(--ed-ink); font-family: var(--ed-sans); font-size: 13px; line-height: 1.3; font-weight: 600; }
.ed-footer-grid > div > a:not(.ed-footer-brand) { display: block; width: fit-content; max-width: 100%; margin-bottom: 8px; color: var(--ed-teal); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.ed-footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; padding-block: 24px; border-top: 1px solid var(--ed-line); color: var(--ed-muted); font-size: 12px; line-height: 1.3; font-weight: 500; }

@media (max-width: 900px) {
  .ed-primary-nav { gap: 16px; font-size: 12px; }
  .spec-b-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ed-data-period { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--ed-line); }
  .ed-data-period > span, .ed-data-period > strong, .spec-b-range { font-size: 48px; }
  .spec-b-focus-grid { gap: 32px; }
  .ed-research-item { grid-template-columns: 96px 112px minmax(0, 1fr) 112px; column-gap: 16px; }
  .ed-research-item h3, .ed-item-title { font-size: 20px; }
  .ed-footer-grid { gap: 32px; }
}

@media (max-width: 620px) {
  body.editorial-home { font-size: 14px; }
  .ed-wrap { width: calc(100% - 48px); }
  .ed-masthead { height: 56px; min-height: 56px; gap: 16px; }
  .ed-brand { gap: 4px; }
  .ed-brand .ed-symbol { width: 20px; }
  .ed-brand .ed-wordmark { width: clamp(100px, 30vw, 117px); }
  .ed-languages { gap: 8px; font-size: 11px; }
  .ed-languages a { min-height: 32px; }
  .ed-primary-nav { height: 47px; min-height: 47px; gap: 8px; font-size: 11px; }
  .ed-primary-nav > a, .ed-topic-menu > summary { min-height: 40px; }
  .ed-topic-menu summary { gap: 4px; }
  .ed-topic-menu summary::after { font-size: 8px; }
  .ed-nav-full { display: none; }
  .ed-nav-short { display: inline; }
  .ed-topic-panel { min-width: 224px; }
  .ed-topic-panel a { padding: 12px; font-size: 13px; }
  .spec-b-hero, .ed-data-feature { padding-block: 48px; }
  .spec-b-hero-grid { display: block; }
  .ed-eyebrow { margin-bottom: 16px; font-size: 12px; }
  .spec-b-hero h1 { font-size: 27px; line-height: 1.2; }
  .spec-b-hero p { max-width: none; margin-bottom: 24px; font-size: 14px; }
  .ed-button-link { font-size: 14px; }
  .ed-data-period { margin-top: 32px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--ed-line); }
  .ed-data-period > span, .ed-data-period > strong, .spec-b-range { font-size: 44px; }
  .ed-data-period p { max-width: none; margin: 16px 0 0; font-size: 13px; }
  .ed-section { margin-top: 64px; }
  .ed-section-heading { gap: 16px; margin-bottom: 24px; }
  .ed-section-heading h2 { font-size: 26px; }
  .ed-section-heading > span { font-size: 12px; }
  .ed-section-heading > .ed-text-link { max-width: 112px; text-align: right; font-size: 12px; }
  .spec-b-focus-grid { display: block; }
  .ed-lead h2, .ed-lead h3 { margin-bottom: 16px; font-size: 19px; line-height: 1.3; }
  .ed-lead-note { font-size: 14px; }
  .spec-b-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; gap: 24px; margin-top: 32px; }
  .spec-b-fact, .spec-b-fact:first-child { justify-content: flex-start; padding: 24px 0 0; border-top: 1px solid var(--ed-line); }
  .spec-b-fact-value { margin-bottom: 16px; font-size: 40px; }
  .spec-b-fact-label, .spec-b-fact > p { font-size: 13px; }
  .spec-b-fact .ed-meta { font-size: 12px; }
  .ed-filter { min-height: 40px; padding: 8px 12px; font-size: 12px; }
  .ed-research-item { grid-template-columns: minmax(0, 1fr) 88px; gap: 12px 16px; min-height: 88px; padding-block: 16px; }
  .ed-item-meta { display: flex; align-items: baseline; flex-wrap: wrap; grid-column: 1 / -1; gap: 8px 16px; }
  .ed-item-date, .ed-item-topic { font-size: 12px; }
  .ed-research-item h3, .ed-item-title { grid-column: 1; font-size: 18px; line-height: 1.3; }
  .ed-item-figure { grid-column: 2; align-self: start; padding-top: 2px; }
  .spec-b-number { font-size: 22px; }
  .spec-b-metric-label { font-size: 12px; }
  .ed-section-note { font-size: 14px; }
  .ed-reports-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ed-report { padding: 24px; }
  .ed-report h3 { font-size: 19px; }
  .ed-footer { margin-top: 64px; padding-top: 48px; }
  .ed-footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ed-footer-grid p { font-size: 14px; }
  .ed-footer-bottom { display: block; margin-top: 32px; padding-block: 24px; font-size: 12px; }
  .ed-footer-bottom span { display: block; }
}

@media (max-width: 360px) {
  .ed-masthead { gap: 8px; }
  .ed-languages { gap: 6px; }
  .spec-b-facts { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .spec-b-fact-value { font-size: 40px; }
}

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