/* components.css — merged from day1.css + day2.css + day3.css.
 *
 * These were three additive layers loaded in that order. Merging them into one
 * file is behaviour-preserving: a duplicate selector resolves to the last
 * definition either way, so day3 still wins. tools/merge-css.js produced this
 * file; day1/2/3.css are the inputs and were deleted after verification.
 *
 * Cascade is now: site.css -> components.css -> apple-nav.css
 */

/* ============================================================
   Part 1 of 3 — day1.css (hero, team)
   ============================================================ */

:root {
  --navy: #034078;
  --lime: #BCEC00;
}

/* AGENTS.md §7: overflow-x:hidden here is what silently clipped the mobile
   nav. It is intentional to stop horizontal scroll - but it also means a
   layout overflow shows up as a cut-off edge, not a scrollbar. Measure
   document.body.scrollWidth against innerWidth when a layout looks clipped. */
html, body { overflow-x: hidden; }

/* The `hidden` attribute is semantic HTML, so it must always win.
   The UA rule `[hidden] { display: none }` has specificity 0,1,0 - identical
   to any single class. So any author rule that sets `display` on the element
   wins by source order, and the element stays fully visible with `hidden` on
   it. This is not hypothetical: it shipped twice. `.team-photo { display:flex }`
   and `.case-note { display:grid }` both silently defeated the attribute.
   Worse, counting attributes reports success while the page still shows the
   content:
       document.querySelectorAll(".case-note[hidden]").length   // 3  <- looked fine
       getComputedStyle(el).display                            // "grid" <- it was live
   Never verify `hidden` by counting attributes. Read computed style.
   !important is the conventional fix (normalize.css ships this same rule) and
   is safe here because hiding is the only correct behaviour for the attribute. */
[hidden] { display: none !important; }

/* KPI numerals: navy owns numerals, tabular, unit at ~38% */
.meta-value, .kpi-num {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.kpi-unit { font-size: 38%; font-weight: 600; }

/* Hero report-come-alive (direction c): pure CSS/SVG, no backend */
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s7); align-items: center; }
.hero-visual {
  position: relative; min-height: 340px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  padding: var(--s5);
}
.hero-visual svg.report { width: 62%; margin: 24px auto 0; }
.float-card {
  position: absolute; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 10px 14px; font-size: 0.8rem; color: var(--ink-2);
  box-shadow: 0 10px 24px rgba(15,22,32,0.08);
  animation: floatUp 6s cubic-bezier(0.22,0.61,0.36,1) infinite;
}
.float-card strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.float-card .kpi-num { font-family: var(--ff-display); font-size: 1.3rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.fc1 { left: 6%; top: 12%; animation-delay: 0s; }
.fc2 { right: 6%; top: 34%; animation-delay: 1.5s; }
.fc3 { left: 12%; bottom: 10%; animation-delay: 3s; }
.float-card .lime-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 6px; }
@keyframes floatUp {
  0%, 100% { transform: translateY(0); opacity: 0.94; }
  50% { transform: translateY(-12px); opacity: 1; }
}

/* Hingst zone: team placeholders */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.team-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: var(--s5); }
.team-photo {
  display: flex; align-items: center; justify-content: center;
  height: 160px; background: var(--surface); border: 1px dashed var(--line-2);
  border-radius: var(--radius); margin-bottom: var(--s4);
  font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ink-3);
}
.team-card h3 { margin-bottom: var(--s2); }
.team-card p { font-size: 0.92rem; color: var(--ink-2); }

@media (max-width: 900px) {

  .hero-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {

  .team-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {

  .float-card { animation: none; }
}


/* ============================================================
   End of merged layer
   ============================================================ */

:root {
  --card-r: 18px; /* Apple rhythm; brand radius stays 2px elsewhere */
}

/* i18n fade: 180ms, mirrors index-i18n.html pattern */
.i18n-fade { opacity: 0; transition: opacity 180ms ease; }
main { transition: opacity 180ms ease; }

/* ------------------------------------------------------- article template */
.article-hero { text-align: center; padding: var(--s8) 0 var(--s6); }
.article-hero h1 { max-width: 24ch; margin-left: auto; margin-right: auto; }
.article-hero .hero-lede { margin-left: auto; margin-right: auto; text-align: center; }
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: var(--s4);
}
.article-body { max-width: 760px; margin: 0 auto; }
.article-body section { margin-bottom: var(--s7); }
.viewport-idea { margin-bottom: var(--s8); }
.end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: center;
  margin: var(--s5) 0 var(--s4);
}
.end-actions .btn { min-height: 48px; }
.btn-consult {
  /* Visually demoted secondary per PRD R15. */
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.btn-consult:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.end-note { font-size: 0.78rem; color: var(--ink-3); }

/* ------------------------------------------------------- footnotes (Apple) */
.footnotes {
  max-width: 760px;
  margin: var(--s7) auto 0;
  border-top: 1px solid var(--line);
  padding-top: var(--s4);
  font-size: 0.78rem;
  color: var(--ink-3);
}
.footnotes ol { margin: 0; padding-left: 18px; }
.footnotes li { margin-bottom: 6px; }

/* ------------------------------------------------------- mobile (390px) */
@media (max-width: 620px) {
  .header-inner { gap: var(--s3); }
  .article-hero { padding: var(--s6) 0 var(--s5); }
  .end-actions { flex-direction: column; align-items: stretch; }
  .end-actions .btn { width: 100%; }
  html, body { overflow-x: hidden; } /* vertical-only scroll */
}

/* ============================================================
   End of merged layer
   ============================================================ */

:root {
  /* Report tokens (brandbook §C) remapped onto the site's var names */
  --navy: #034078;
  --navy2: #064078;
  --paleblue: #b9d6f2;
  --lime: #bcec00;
  --ink: #152233;
  --ink-2: #3a4759;
  --ink-3: #6f7b8c;
  --paper: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --line: #dfe4ec;
  --line-2: #eef1f5;
  --accent: #034078;
  --accent-soft: rgba(3, 64, 120, 0.08);
  --brass: #034078;
  --warn: #a45f10;
  --ok: #0f8a7a;
  --teal: #0f8a7a;
  --blue: #4a86c5;
  --coral: #cf5347;
  --violet: #6f5aa8;
  --text: #152233;
  --text2: #3a4759;
  --muted: #6f7b8c;

  /* Report type system (brandbook §D): Inter body, Inter Display H1/H2/KPI,
     Roboto 700 wordmark only. No serif display, no mono stack. */
  --ff-display: "Inter Display", Inter, system-ui, sans-serif;
  --ff-text: Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ff-mono: Inter, system-ui, sans-serif;

  --maxw: 1240px;
}

body {
  background: linear-gradient(180deg, #eaf1f8 0%, #f5f5f5 340px) no-repeat, var(--paper);
  font-family: var(--ff-text);
}

h1, h2 {
  font-family: "Inter Display", Inter, system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: -0.028em;
  color: var(--navy);
}
h3 { font-family: Inter, system-ui, sans-serif; font-weight: 600; letter-spacing: -0.008em; }

a { color: var(--navy); }
a:hover { color: var(--navy2); }
:focus-visible { outline-color: var(--navy); }

/* Report eyebrow: navy + lime rule (brandbook §D) */
.eyebrow { color: var(--navy); }
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  background: var(--lime);
  margin-left: 10px;
  vertical-align: middle;
}

/* KPI numerals: Inter Display, tabular, navy (brandbook §D) */
.meta-value, .kpi-num, .float-card .kpi-num {
  font-family: "Inter Display", Inter, system-ui, sans-serif;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- buttons
   Report .btn: ghost pill idle, navy fill active. Black buttons killed. */
.btn {
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-family: inherit;
  min-height: 44px;
}
.btn:hover { border-color: var(--paleblue); color: var(--navy); background: #fff; }
.btn.on, .btn-primary, .btn-accent {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 2px 8px -2px rgba(3, 64, 120, 0.4);
}
.btn.on:hover, .btn-primary:hover, .btn-accent:hover {
  background: var(--navy2);
  border-color: var(--navy2);
  color: #fff;
}
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--paleblue); color: var(--navy); }
.section-ink .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.section-ink .btn-primary:hover { background: var(--paleblue); color: var(--navy); border-color: var(--paleblue); }
.btn-consult {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.btn-consult:hover { border-color: var(--paleblue); color: var(--navy); background: #fff; }

/* ----------------------------------- methodology strip */
.method-strip { background: #fff; border-top: 1px solid var(--line); }
.method-strip-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}
.method-strip-in b { color: var(--navy); }
.method-strip-in a { font-weight: 600; white-space: nowrap; }

/* ----------------------------------- dark navy footer (index-i18n.html) */
footer.sitefoot { background: #0a1c33; color: #c9d8ea; margin-top: 0; }
.foot-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 36px;
  align-items: start;
}
.foot-mark { width: 54px; height: 54px; }
.foot-wm {
  font-family: Roboto, "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.018em;
  color: #fff;
  margin-top: 10px;
}
.foot-brand p { font-size: 13.5px; color: #8fa8c4; max-width: 32ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h4 {
  margin: 2px 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fa8c4;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
}
.foot-cols a {
  display: block;
  color: #dbe6f3;
  text-decoration: none;
  font-size: 14px;
  margin: 9px 0;
  min-height: 0;
}
.foot-cols a:hover { color: #fff; text-decoration: underline; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.foot-base-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #8fa8c4;
}
.foot-base-in a { color: #c9d8ea; text-decoration: none; }
.foot-base-in a:hover { color: #fff; text-decoration: underline; }

/* ----------------------------------- responsive (report breakpoints) */
[id] { scroll-margin-top: 96px; }

@media (max-width: 700px) {

  .foot-in { grid-template-columns: 1fr; padding: 44px 20px 32px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* Old chrome selectors are dead after the markup swap; keep print hiding on new ones */
@media print {
  header.gn, .gn-m-menu, footer.sitefoot, .method-strip, .hero-actions, .chat { display: none; }
  body { background: #fff; }
}
