/* TOC Americas 2026 News hub — built on Assets/style-snapshot/tocevents-americas-com--why-attend/
   tokens.css and the §8 recommendations in its SNAPSHOT.md (WF02 SPEC §15).
   Colours, type and spacing below are TOC's measured values — do not change
   without re-checking against that snapshot or a TOC-supplied style guide. */

:root {
  /* colour — from tokens.css, unchanged values */
  --c-brand-primary: #0058a2; /* links, card titles, CTA button */
  --c-brand-accent: #ce0e2d;  /* section titles, pre-titles */
  --c-navy: #122c62;          /* article headlines */
  --c-navy-deep: #0a214a;
  --c-ink: #000000;
  --c-surface: #ffffff;
  --c-surface-alt: #e7e7e7;   /* section band */
  --c-warm-grey: #515048;

  /* type */
  --f-sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* display headings scale down on mobile (snapshot §8); desktop sizes below */
  --fs-display: 2rem;      /* 32px mobile h1 */
  --fs-h2: 1.5rem;          /* 24px mobile h2 */
  --fs-lead: 1.125rem;      /* 18px */
  --fs-body: 1rem;          /* 16px */
  --fs-small: 0.875rem;     /* 14px */

  --lh-heading: 1.25;
  --lh-lead: 1.75;
  --lh-body: 1.5;

  /* spacing — 4px steps from tokens.css */
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-16: 4rem;

  --container-max: 1320px;
  --radius-pill: 80px;
  --border-focus: 3px solid #0a214a;
}

@media (min-width: 768px) {
  :root {
    --fs-display: 2.5rem;  /* 40px */
    --fs-h2: 2rem;         /* 32px */
  }
}

@media (min-width: 1200px) {
  :root {
    --fs-display: 3.125rem; /* 50px — matches the measured desktop page */
    --fs-h2: 2.5rem;        /* 40px */
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-surface);
}

img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* Skip link — visually hidden until focused (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-navy-deep);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  z-index: 100;
}
.skip-link:focus {
  left: var(--sp-4);
  top: var(--sp-4);
}

/* Visible focus states everywhere (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: var(--border-focus);
  outline-offset: 2px;
}

a { color: var(--c-brand-primary); text-decoration: underline; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--f-sans);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  margin: 0 0 var(--sp-4);
}
h1 { font-size: var(--fs-display); color: var(--c-navy); }
h2 { font-size: var(--fs-h2); color: var(--c-brand-accent); }
h3 { font-size: 1.25rem; color: var(--c-brand-primary); }

p { margin: 0 0 var(--sp-4); }

/* --- header --- */
.site-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-surface-alt);
  padding: var(--sp-3) 0;
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  font-weight: var(--fw-semibold);
  color: var(--c-navy);
}
.site-header__logo { width: 120px; height: auto; }
.site-header__title { font-size: var(--fs-small); }
.site-nav { flex: 1 1 100%; order: 3; }
.site-nav ul { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: var(--fs-small); }
.site-nav__group-label { color: var(--c-warm-grey); margin-right: var(--sp-2); }
@media (min-width: 992px) {
  .site-nav { flex: 1 1 auto; order: 0; }
}

.lang-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 2px solid var(--c-brand-primary);
  border-radius: var(--radius-pill);
  color: var(--c-brand-primary);
  text-decoration: none;
  font-weight: var(--fw-semibold);
  padding: var(--sp-2) var(--sp-4);
}
.lang-switch:hover { background: var(--c-brand-primary); color: #fff; }

/* --- main / cards --- */
main { padding: var(--sp-8) 0; min-height: 50vh; }

.notice {
  background: #fff6e5;
  border: 1px solid #e0b84b;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-small);
  border-radius: 4px;
}

section { margin-bottom: var(--sp-10); }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-surface-alt);
  padding: var(--sp-4);
}
.card__kicker { font-size: var(--fs-small); color: var(--c-warm-grey); margin: 0 0 var(--sp-2); text-transform: uppercase; letter-spacing: 0.02em; }
.card__title { font-size: 1.25rem; margin: 0 0 var(--sp-2); }
.card__title a { text-decoration: none; color: var(--c-brand-primary); }
.card__standfirst { font-size: var(--fs-small); color: var(--c-ink); }
.card__meta { font-size: var(--fs-small); color: var(--c-warm-grey); }

.tag {
  display: inline-block;
  font-size: var(--fs-small);
  color: var(--c-brand-primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--c-brand-primary);
}
.tag--muted { color: var(--c-warm-grey); border-bottom: none; }

.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-6);
  border-radius: var(--radius-pill);
  background: var(--c-brand-primary);
  color: #fff;
  text-decoration: none;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
}
.pill:hover { background: var(--c-navy-deep); }
.pill--outline { background: #fff; color: var(--c-brand-primary); border: 2px solid var(--c-brand-primary); }
.pill--outline:hover { background: var(--c-brand-primary); color: #fff; }
.pill-list--wrap { max-width: 960px; }

/* buttons / CTA */
.cta-block { margin: var(--sp-8) 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-pill);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  text-decoration: none;
  border: 2px solid transparent;
}
.btn--primary { background: var(--c-brand-primary); color: #fff; }
.btn--primary:hover { background: var(--c-navy-deep); }
.btn--outline { background: #fff; color: var(--c-warm-grey); border-color: var(--c-warm-grey); }

/* article page */
.article__kicker { font-size: var(--fs-small); color: var(--c-brand-accent); text-transform: uppercase; letter-spacing: 0.02em; }
.article__title { max-width: 40ch; }
.article__standfirst { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--c-warm-grey); max-width: 60ch; }
.article__meta { font-size: var(--fs-small); color: var(--c-warm-grey); }
.article__tags { font-size: var(--fs-small); }
.article__body { max-width: 70ch; }
.article__body p { max-width: 70ch; }

.speakers ul { list-style: none; margin: 0; padding: 0; }
.speakers li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--c-surface-alt); }

.also-in { font-size: var(--fs-small); background: var(--c-surface-alt); display: inline-block; padding: var(--sp-2) var(--sp-4); }

/* footer */
.site-footer {
  background: var(--c-navy-deep);
  color: #fff;
  padding: var(--sp-8) 0;
  margin-top: var(--sp-16);
  font-size: var(--fs-small);
}
.site-footer__logo { margin-bottom: var(--sp-4); }
.site-footer a { color: #dfe2ff; }

/* holding page */
.holding__inner {
  max-width: 640px;
  margin: 10vh auto;
  text-align: center;
  padding: 0 var(--sp-4);
}
.holding__tagline { font-size: var(--fs-lead); color: var(--c-warm-grey); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Hero photo: flush left, same width as the text column (Rainbow, 2026-10-18) */
.article__hero { margin: var(--sp-6, 1.5rem) 0; max-width: 70ch; }
.article__hero img { width: 100%; height: auto; display: block; }
.article__credit { margin-top: var(--sp-2, 0.5rem); font-size: var(--fs-small, 0.875rem); color: var(--c-warm-grey); text-align: left; }
