/* ==========================================================================
   Player Management International: homepage styles
   Desktop is the original design (1440px artboard, 80px side margins).
   Breakpoints:
     1199px and below   small desktop / landscape tablet
     1023px and below   tablet (menu button replaces the nav)
      767px and below   mobile
   ========================================================================== */

:root {
  --cream: #F3EFE6;
  --tan: #EAE4D7;
  --ink: #121212;
  --red: #8C2F1B;
  --line: #D9D2C3;
  --muted: #5E584C;
  --body: #3A362E;
  --dark-line: #3D392F;
  --dark-muted: #B8AF9E;
  --dark-body: #CFC7B7;
  --on-red: #F4D9CF;

  --display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
em { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.page { max-width: 1440px; margin: 0 auto; background: var(--cream); }

/* ---------- Shared type ---------- */
.display {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.caption {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.red { color: var(--red); }
.nowrap { white-space: nowrap; }
.link-arrow { font-size: 15px; font-weight: 500; color: var(--red); }
.h2 { margin: 0; font-size: 60px; line-height: 1.04; letter-spacing: -1.5px; }
.lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body); max-width: 400px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 26px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  text-align: center;
}
.btn-red, .btn-red:hover { background: var(--red); color: #FFFFFF; }
.btn-outline, .btn-outline:hover { border: 1px solid var(--ink); color: var(--ink); }
.btn-dark, .btn-dark:hover { background: var(--ink); color: var(--cream); border: 0; cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  height: 108px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.logo { display: flex; align-items: center; }
.logo img { height: 64px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.site-nav .btn-nav { padding: 12px 20px; font-size: 15px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 80px var(--gutter) 48px; display: flex; flex-direction: column; gap: 36px; }
.hero h1 {
  margin: 0;
  font-size: min(82px, calc((100vw - 2 * var(--gutter)) * 0.078));
  line-height: 0.98;
  letter-spacing: -1.6px;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; }
.hero-row p { margin: 0; font-size: 21px; line-height: 1.5; color: var(--body); max-width: 700px; }
.hero-actions { display: flex; gap: 12px; flex-shrink: 0; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.facts div {
  padding: 18px 0;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--body);
}
.facts div + div { padding-left: 24px; border-left: 1px solid var(--ink); }

.hero-photo { padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 14px; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1280 / 540; object-fit: cover; }
.hero-photo figcaption { display: flex; justify-content: space-between; gap: 8px 24px; }

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.section-head--wide { gap: 64px; }
.section-title { display: flex; flex-direction: column; gap: 16px; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; }

/* ---------- The record ---------- */
.record {
  margin-top: 88px;
  padding: 88px var(--gutter);
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.record .eyebrow { color: var(--dark-muted); }
.record .h2 { max-width: 760px; }
.record .lede { color: var(--dark-body); }
.wins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--dark-line); }
.win { padding: 36px 32px 8px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--dark-line); }
.win:first-child { padding-left: 0; }
.win:last-child { padding-right: 0; border-right: 0; }
.win-year { font-size: 88px; line-height: 1; letter-spacing: -2px; }
.win-event { font-size: 18px; font-weight: 600; }
.win-who { font-size: 15px; color: var(--dark-muted); }

/* ---------- Partners ---------- */
.partners {
  padding: 88px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}
.partner-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  column-gap: 44px;
  row-gap: 20px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.partner-list li { white-space: nowrap; }
.partner-list li:not(:last-child)::after { content: "/"; color: var(--dark-muted); margin-left: 44px; }
.helmets { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }

/* ---------- Photo rows (shared) ----------
   Each figure sets --ar (aspect ratio), optional --w (relative width)
   and --pos (focal point) in its style attribute. */
.photo-row { display: flex; gap: 24px; }
.photo { flex: var(--w, 1) 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar, 3 / 2);
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

/* ---------- On track ---------- */
.on-track {
  padding: 72px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}
.on-track .h2 { max-width: 816px; }
.program { display: flex; flex-direction: column; gap: 20px; }
.program-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.program-head h3 { margin: 0; font-size: 34px; line-height: 1.1; letter-spacing: -0.6px; }

/* ---------- What we do ---------- */
.services {
  padding: 80px var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.services-intro { grid-column: span 4; display: flex; flex-direction: column; gap: 20px; }
.services-intro h2 { margin: 0; font-size: 52px; line-height: 1.05; letter-spacing: -1.2px; }
.services-intro .link-arrow { margin-top: 8px; }
.service { grid-column: span 4; display: flex; flex-direction: column; gap: 20px; padding-top: 44px; }
.service h3 { margin: 0; font-size: 22px; font-weight: 600; }
.service p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }
.service ul { margin: 0; padding: 0; list-style: none; font-size: 16px; }
.service li { padding: 14px 0; border-top: 1px solid var(--line); }
.service li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- More value. Less friction. ---------- */
.value {
  padding: 60px var(--gutter);
  background: var(--ink);
  color: var(--cream);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
}
.value h2 { grid-column: span 5; margin: 0; font-size: 56px; line-height: 1; letter-spacing: -1.3px; }
.value p { grid-column: span 7; margin: 0; font-size: 19px; line-height: 1.6; color: var(--dark-body); }

/* ---------- How we work ---------- */
.how { padding: 80px var(--gutter); background: var(--tan); display: flex; flex-direction: column; gap: 40px; }
.how-head { display: flex; flex-direction: column; gap: 14px; }
.how-head h2 { margin: 6px 0 0; font-size: 52px; line-height: 1.05; letter-spacing: -1.2px; }
.how-sub { font-size: 26px; line-height: 1.1; letter-spacing: -0.3px; color: var(--body); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.principle { display: flex; flex-direction: column; gap: 12px; }
.principle-num { font-weight: 600; font-size: 14px; color: var(--red); }
.principle h3 { margin: 0; font-size: 26px; line-height: 1.08; letter-spacing: -0.3px; }
.principle p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }

/* ---------- Principal + Latest news ---------- */
.people-news {
  padding: 80px var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.principal { grid-column: span 5; display: flex; flex-direction: column; gap: 22px; padding-right: 40px; }
.principal img { width: 240px; height: 240px; object-fit: cover; }
.principal h2 { margin: 0; font-size: 48px; line-height: 1.05; letter-spacing: -1px; }
.motto {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--red);
}
.principal p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); }
.news { grid-column: span 7; display: flex; flex-direction: column; }
.news-head { padding-bottom: 20px; }
.news-item { padding: 24px 0; border-top: 1px solid var(--line); display: flex; gap: 32px; align-items: baseline; }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-date { font-weight: 600; font-size: 13px; color: var(--muted); width: 96px; flex-shrink: 0; }
.news-title { font-size: 20px; font-weight: 400; line-height: 1.35; }

/* ---------- Contact ---------- */
.contact {
  margin: 0 var(--gutter) 56px;
  padding: 52px 80px;
  background: var(--red);
  color: #FFFFFF;
  border-radius: 2px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 64px;
}
.contact-intro { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.contact-title { display: flex; flex-direction: column; gap: 22px; }
.contact .eyebrow { color: var(--on-red); }
.contact h2 { margin: 0; font-size: 60px; line-height: 1.02; letter-spacing: -1.4px; }
.contact-place { color: var(--on-red); font-size: 16px; }
.contact-form {
  width: 560px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  align-content: start;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--on-red);
}
.field input, .field textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--cream);
  color: var(--ink);
  border: 0;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.field textarea { height: 92px; padding: 12px 14px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field-wide, .form-actions { grid-column: 1 / -1; }
.form-actions { padding-top: 4px; }
.form-actions .btn { padding: 15px 28px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--red); }


/* ==========================================================================
   Small desktop / landscape tablet: 1199px and below
   ========================================================================== */
@media (max-width: 1199px) {
  :root { --gutter: 48px; }

  /* Headline is sized to fit one line per sentence; allowing wrap is a safety net if the web font fails to load. */
  .hero h1 span { white-space: normal; }
  .hero-row p { flex: 1 1 auto; min-width: 0; }

  .section-head--wide { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head--wide .lede { max-width: 640px; }

  .program-head { flex-direction: column; align-items: flex-start; }

  .contact { flex-direction: column; gap: 40px; padding: 48px; }
  .contact-intro { flex-direction: row; align-items: flex-end; }
  .contact-form { width: 100%; }
}


/* ==========================================================================
   Tablet: 1023px and below
   ========================================================================== */
@media (max-width: 1023px) {
  :root { --gutter: 40px; }

  /* Header: menu button replaces the inline nav */
  .site-header { height: 84px; }
  .logo img { height: 50px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-right: -16px;
    background: none;
    border: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
  }
  .menu-toggle-icon { position: relative; width: 22px; height: 12px; }
  .menu-toggle-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, top 0.2s ease;
  }
  .menu-toggle-icon span:first-child { top: 0; }
  .menu-toggle-icon span:last-child { top: 10px; }
  .is-open .menu-toggle-icon span:first-child { top: 5px; transform: rotate(45deg); }
  .is-open .menu-toggle-icon span:last-child { top: 5px; transform: rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 32px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(18, 18, 18, 0.45);
  }
  .is-open .site-nav { display: flex; }
  .site-nav a:not(.btn) {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-stretch: 78%;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 28px;
    letter-spacing: -0.4px;
  }
  .site-nav .btn-nav { margin-top: 24px; padding: 16px 26px; font-size: 16px; }

  /* Hero */
  .hero { padding: 56px var(--gutter) 40px; gap: 32px; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-row p { font-size: 20px; max-width: 640px; }
  .hero-photo img { aspect-ratio: 4 / 2.4; }
  .hero-photo figcaption { flex-direction: column; }

  /* Section heads */
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .h2 { font-size: 52px; }
  .lede { max-width: 560px; }

  /* The record: 2 x 2 */
  .record { margin-top: 64px; padding: 64px var(--gutter); gap: 40px; }
  .wins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .win, .win:first-child, .win:last-child { padding: 28px 24px 28px 0; border-right: 0; }
  .win:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--dark-line); }
  .win:nth-child(n + 3) { border-top: 1px solid var(--dark-line); }
  .win-year { font-size: 72px; }

  /* Partners */
  .partners { padding: 64px var(--gutter); gap: 32px; }
  .partner-list { font-size: 28px; column-gap: 28px; row-gap: 14px; }
  .partner-list li:not(:last-child)::after { margin-left: 28px; }
  .helmets { padding-top: 8px; }
  .photo-row { gap: 16px; }

  /* On track */
  .on-track { padding: 64px var(--gutter); gap: 36px; }
  .program-head { flex-direction: column; align-items: flex-start; }
  .program-head h3 { font-size: 30px; }

  /* What we do */
  .services { padding: 64px var(--gutter); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .services-intro { grid-column: 1 / -1; }
  .services-intro h2 { font-size: 48px; }
  .services-intro .link-arrow { margin-top: 0; }
  .service { grid-column: span 1; padding-top: 0; }

  /* Value band */
  .value { padding: 56px var(--gutter); grid-template-columns: 1fr; row-gap: 24px; }
  .value h2, .value p { grid-column: 1 / -1; }
  .value h2 { font-size: 52px; }

  /* How we work */
  .how { padding: 64px var(--gutter); gap: 36px; }
  .how-head h2 { font-size: 48px; }
  .how-sub { font-size: 24px; }
  .principles { grid-template-columns: 1fr; gap: 0; }
  .principle {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 16px;
    row-gap: 10px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
  }
  .principle:last-child { border-bottom: 1px solid var(--line); }
  .principle-num { grid-row: span 2; padding-top: 6px; }

  /* Principal + news: stacked */
  .people-news { padding: 64px var(--gutter); grid-template-columns: 1fr; row-gap: 56px; }
  .principal, .news { grid-column: 1 / -1; }
  .principal { padding-right: 0; max-width: 640px; }
  .principal img { width: 200px; height: 200px; }

  /* Contact */
  .contact { margin-bottom: 40px; padding: 40px; }
  .contact h2 { font-size: 52px; }

  /* Footer */
  .site-footer { flex-direction: column-reverse; align-items: flex-start; padding: 28px var(--gutter) 32px; }
}


/* ==========================================================================
   Mobile: 767px and below
   ========================================================================== */
@media (max-width: 767px) {
  :root { --gutter: 20px; }

  .site-header { height: 72px; }
  .logo img { height: 42px; }
  .site-nav a:not(.btn) { font-size: 26px; }
  .site-nav .btn-nav { width: 100%; }

  /* Hero: headline wraps, buttons full width */
  .hero { padding: 40px var(--gutter) 32px; gap: 28px; }
  .hero h1 { font-size: clamp(36px, 11.6vw, 52px); line-height: 1; letter-spacing: -1px; }
  .hero h1 span { white-space: normal; }
  .hero-row { gap: 24px; }
  .hero-row p { font-size: 18px; }
  .hero-actions { flex-direction: column; width: 100%; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; border-bottom: 0; }
  .facts div, .facts div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--ink); font-size: 12px; }
  .hero-photo { gap: 12px; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 50%; }
  .hero-photo figcaption { gap: 6px; font-size: 11px; }

  .h2 { font-size: 40px; letter-spacing: -1px; }
  .lede { font-size: 17px; }
  .on-track .nowrap { white-space: normal; }

  /* The record: 2 x 2, tighter */
  .record { margin-top: 48px; padding: 52px var(--gutter); gap: 32px; }
  .win, .win:first-child, .win:last-child { padding: 22px 14px 22px 0; gap: 8px; }
  .win:nth-child(even) { padding-left: 14px; }
  .win-year { font-size: 52px; letter-spacing: -1px; }
  .win-event { font-size: 16px; }
  .win-who { font-size: 14px; }

  /* Partners */
  .partners { padding: 52px var(--gutter); gap: 28px; }
  .partner-list { font-size: 23px; column-gap: 14px; row-gap: 10px; }
  .partner-list li:not(:last-child)::after { margin-left: 14px; }
  .photo-row { flex-direction: column; gap: 24px; }
  .photo { flex: none; gap: 10px; }

  /* On track */
  .on-track { padding: 52px var(--gutter); gap: 32px; }
  .program { gap: 16px; }
  .program-head h3 { font-size: 28px; }

  /* What we do */
  .services { padding: 52px var(--gutter); grid-template-columns: 1fr; row-gap: 36px; }
  .services-intro h2 { font-size: 40px; letter-spacing: -1px; }
  .service h3 { font-size: 20px; }
  .service p { font-size: 16px; }

  /* Value band */
  .value { padding: 48px var(--gutter); }
  .value h2 { font-size: 42px; }
  .value p { font-size: 17px; }

  /* How we work */
  .how { padding: 52px var(--gutter); gap: 28px; }
  .how-head h2 { font-size: 40px; letter-spacing: -1px; }
  .how-sub { font-size: 21px; }
  .principle { grid-template-columns: 1fr; row-gap: 8px; }
  .principle-num { grid-row: auto; padding-top: 0; }
  .principle h3 { font-size: 24px; }

  /* Principal + news */
  .people-news { padding: 52px var(--gutter); row-gap: 48px; }
  .principal img { width: 160px; height: 160px; }
  .principal h2 { font-size: 40px; }
  .motto { font-size: 17px; }
  .principal p { font-size: 16px; }
  .news-item { flex-direction: column; gap: 6px; padding: 18px 0; }
  .news-date { width: auto; }
  .news-title { font-size: 18px; }

  /* Contact: full width block, single-column form */
  .contact { margin: 0 0 0; padding: 44px var(--gutter) 40px; border-radius: 0; gap: 32px; }
  .contact-intro { flex-direction: column; align-items: flex-start; gap: 14px; }
  .contact h2 { font-size: 42px; }
  .contact-form { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }

  .site-footer { gap: 20px; }
  .site-footer nav { gap: 12px 16px; }
}

/* ==========================================================================
   Inner pages: About, Services, Racing, Partners, News
   Built from the same tokens and type as the homepage.
   ========================================================================== */

/* Current page in the main nav */
.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* ---------- Page header ---------- */
.page-hero { padding: 72px var(--gutter) 48px; display: flex; flex-direction: column; gap: 32px; }
.page-hero-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; }
.page-hero-title { display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { margin: 0; font-size: 72px; line-height: 0.98; letter-spacing: -1.6px; }
.page-hero h1 span { display: block; }
.page-hero .intro { margin: 0; font-size: 19px; line-height: 1.55; color: var(--body); max-width: 460px; }
.hero-photo--page img { aspect-ratio: 1280 / 500; }

/* ---------- Generic sections ---------- */
.section { padding: 80px var(--gutter); display: flex; flex-direction: column; gap: 40px; }
.section--line { border-bottom: 1px solid var(--line); }
.section--tan { background: var(--tan); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark .eyebrow { color: var(--dark-muted); }
.section--dark .lede { color: var(--dark-body); }
.section-h2 { margin: 0; font-size: 52px; line-height: 1.05; letter-spacing: -1.2px; }
.split-head .section-h2 .red { display: block; }

/* Left heading, right content (12-column) */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.split-head { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; align-self: start; }
.split-body { grid-column: span 8; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.prose p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--body); max-width: 720px; }
.prose p + p { margin-top: 18px; }
.prose .big { font-size: 24px; line-height: 1.45; color: var(--ink); }

/* Three titled columns with top rules */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.item { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.section--dark .item { border-top-color: var(--dark-line); }
.cols-2 .item { padding: 24px 0 28px; }
.item h3 { margin: 0; font-size: 26px; line-height: 1.08; letter-spacing: -0.3px; }
.item p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.section--dark .item p { color: var(--dark-body); }

/* Big figures row */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-figure { font-size: 56px; line-height: 1; letter-spacing: -1.2px; }
.stat-label { font-size: 15px; line-height: 1.4; color: var(--body); }

/* ---------- Principal profile (About) ---------- */
.profile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: start; }
.profile-photo { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; }
.profile-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.profile-body { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 22px; }
.profile-body h2 { margin: 0; font-size: 60px; line-height: 1.02; letter-spacing: -1.4px; }

/* ---------- Services ---------- */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.audience { display: flex; flex-direction: column; gap: 20px; }
.audience img { width: 100%; aspect-ratio: 628 / 360; object-fit: cover; object-position: var(--pos, 50% 50%); }
.audience h3 { margin: 0; font-size: 34px; line-height: 1.1; letter-spacing: -0.6px; }
.audience p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); max-width: 560px; }
.audience ul { margin: 0; padding: 0; list-style: none; font-size: 16px; }
.audience li { padding: 14px 0; border-top: 1px solid var(--line); }
.audience li:last-child { border-bottom: 1px solid var(--line); }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service-cell { padding: 28px 28px 32px 0; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.service-cell:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.service-cell h3 { margin: 0; font-size: 24px; line-height: 1.1; letter-spacing: -0.3px; }
.service-cell p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--cream); }
.step-num { font-weight: 600; font-size: 14px; color: var(--dark-muted); }
.step h3 { margin: 0; font-size: 26px; line-height: 1.08; letter-spacing: -0.3px; }
.step p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--dark-body); }

.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li, .chip {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  color: var(--ink);
}

/* ---------- Racing ---------- */
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
.program-card { display: flex; flex-direction: column; gap: 14px; }
.program-card img { width: 100%; aspect-ratio: 628 / 380; object-fit: cover; object-position: var(--pos, 50% 50%); }
.program-card h3 { margin: 4px 0 0; font-size: 34px; line-height: 1.1; letter-spacing: -0.6px; }
.program-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }

.series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.series-col { display: flex; flex-direction: column; gap: 16px; }
.series-col h3 { margin: 0; font-size: 34px; line-height: 1.1; letter-spacing: -0.6px; }
.list-rows { margin: 0; padding: 0; list-style: none; }
.list-rows li { padding: 16px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 18px; font-weight: 600; }
.list-rows li:last-child { border-bottom: 1px solid var(--line); }
.list-rows li span { font-size: 14px; font-weight: 400; color: var(--muted); text-align: right; }

.roster { font-size: 28px; column-gap: 32px; row-gap: 14px; }
.roster li:not(:last-child)::after { margin-left: 32px; }

/* ---------- Partners ---------- */
.subnav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px var(--gutter);
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px 28px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a { padding: 4px 0; }
.subnav .subnav-label { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 0; }

.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.partner-cell { padding: 26px 28px 28px 0; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.partner-cell:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.partner-cell h3 { margin: 0; font-size: 30px; line-height: 1.08; letter-spacing: -0.5px; }

.athletes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.athlete { display: flex; flex-direction: column; gap: 14px; }
.athlete img { width: 100%; aspect-ratio: 628 / 420; object-fit: cover; object-position: var(--pos, 50% 50%); }
.athlete h3 { margin: 4px 0 0; font-size: 40px; line-height: 1.05; letter-spacing: -0.8px; }
.athlete p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); max-width: 560px; }

.group { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.group-head h3 { margin: 0; font-size: 34px; line-height: 1.1; letter-spacing: -0.6px; }
.count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.name-cols { margin: 0; padding: 0; list-style: none; columns: 4; column-gap: 24px; font-size: 16px; line-height: 1.4; }
.name-cols li { padding: 7px 0; break-inside: avoid; }
.name-cols--3 { columns: 3; }
.coach-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.coach-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.coach-list strong { font-size: 17px; font-weight: 600; }
.coach-list span { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- News ---------- */
.news-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; align-items: end; color: inherit; }
.news-feature:hover { color: inherit; }
.news-feature img { grid-column: span 7; width: 100%; aspect-ratio: 760 / 470; object-fit: cover; object-position: var(--pos, 50% 50%); }
.news-feature-body { grid-column: span 5; display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.news-feature h2 { margin: 0; font-size: 48px; line-height: 1.04; letter-spacing: -1px; }
.news-feature:hover h2 { color: var(--red); }
.news-feature p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.news-meta .tag { color: var(--red); }

.news-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { cursor: pointer; font-family: var(--sans); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.filters button:hover { border-color: var(--red); }

.news-archive { display: flex; flex-direction: column; }
.news-month { padding: 36px 0 12px; }
.news-archive .news-item { display: grid; grid-template-columns: 96px 1fr 260px; gap: 32px; align-items: baseline; }
.news-archive .news-month + .news-item { border-top-color: var(--ink); }
.news-archive .news-item:last-child { border-bottom: 1px solid var(--line); }
.news-tag { text-align: right; }
.news-more { align-self: flex-start; margin-top: 32px; cursor: pointer; background: transparent; font-family: var(--sans); }
.is-hidden { display: none !important; }

/* ---------- Closing call to action ---------- */
.cta-band {
  margin: 0 var(--gutter) 56px;
  padding: 52px 80px;
  background: var(--red);
  color: #FFFFFF;
  border-radius: 2px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 64px;
}
.cta-band .eyebrow { color: var(--on-red); }
.cta-band h2 { margin: 0; font-size: 60px; line-height: 1.02; letter-spacing: -1.4px; }
.cta-band-title { display: flex; flex-direction: column; gap: 22px; }
.btn-cream, .btn-cream:hover { background: var(--cream); color: var(--ink); }
.cta-band + .site-footer, .page > main + .site-footer { margin-top: 0; }


/* ---------- Inner pages: small desktop ---------- */
@media (max-width: 1199px) {
  .page-hero h1 { font-size: 64px; }
  .page-hero-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .page-hero .intro { max-width: 640px; }
  .name-cols { columns: 3; }
  .news-archive .news-item { grid-template-columns: 96px 1fr 220px; }
}

/* ---------- Inner pages: tablet ---------- */
@media (max-width: 1023px) {
  .site-nav a[aria-current="page"]:not(.btn) { text-decoration: none; }

  .page-hero { padding: 56px var(--gutter) 40px; gap: 28px; }
  .page-hero h1 { font-size: 56px; }
  .page-hero .intro { font-size: 18px; }
  .hero-photo--page img { aspect-ratio: 4 / 2.4; }

  .section { padding: 64px var(--gutter); gap: 36px; }
  .section-h2 { font-size: 46px; }

  .split { grid-template-columns: 1fr; row-gap: 24px; }
  .split-head, .split-body { grid-column: 1 / -1; }
  .prose .big { font-size: 22px; }

  .cols-3 { grid-template-columns: 1fr; gap: 0; }
  .cols-3 .item { padding: 22px 0 26px; }
  .cols-3 .item:last-child { border-bottom: 1px solid var(--line); }
  .section--dark .cols-3 .item:last-child { border-bottom-color: var(--dark-line); }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat + .stat { padding: 24px 20px 24px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat-figure { font-size: 48px; }

  .profile-photo { grid-column: span 5; }
  .profile-body { grid-column: 6 / span 7; }
  .profile-body h2 { font-size: 48px; }

  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cell, .service-cell:not(:nth-child(3n + 1)) { padding: 24px 24px 28px 0; border-left: 0; }
  .service-cell:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }

  .programs { gap: 40px 16px; }
  .program-card h3 { font-size: 28px; }

  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-cell, .partner-cell:not(:nth-child(3n + 1)) { padding: 22px 22px 24px 0; border-left: 0; }
  .partner-cell:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .partner-cell h3 { font-size: 26px; }
  .athletes { gap: 16px; }
  .athlete h3 { font-size: 34px; }
  .name-cols, .name-cols--3 { columns: 3; }
  .coach-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .news-feature img, .news-feature-body { grid-column: 1 / -1; }
  .news-feature h2 { font-size: 42px; }
  .news-archive .news-item { grid-template-columns: 80px 1fr; gap: 6px 24px; }
  .news-tag { grid-column: 2; text-align: left; }

  .cta-band { margin-bottom: 40px; padding: 40px; flex-direction: column; align-items: flex-start; }
  .cta-band h2 { font-size: 52px; }
}

/* ---------- Inner pages: mobile ---------- */
@media (max-width: 767px) {
  .page-hero { padding: 40px var(--gutter) 32px; gap: 24px; }
  .page-hero h1 { font-size: clamp(38px, 12vw, 52px); line-height: 1; letter-spacing: -1px; }
  .page-hero .intro { font-size: 17px; }
  .hero-photo--page img { aspect-ratio: 4 / 3; }

  .section { padding: 52px var(--gutter); gap: 28px; }
  .section-h2 { font-size: 38px; letter-spacing: -0.8px; }
  .prose p { font-size: 17px; }
  .prose .big { font-size: 20px; }

  .cols-2 { grid-template-columns: 1fr; }
  .cols-2 .item:last-child { border-bottom: 1px solid var(--line); }
  .item h3 { font-size: 24px; }

  .stat-figure { font-size: 40px; }
  .stat-label { font-size: 14px; }

  .profile { grid-template-columns: 1fr; }
  .profile-photo, .profile-body { grid-column: 1 / -1; }
  .profile-body h2 { font-size: 42px; }

  .audiences { grid-template-columns: 1fr; gap: 48px; }
  .audience h3 { font-size: 30px; }

  .service-grid { grid-template-columns: 1fr; }
  .service-cell, .service-cell:nth-child(even) { padding: 22px 0 24px; border-left: 0; }

  .steps { grid-template-columns: 1fr; gap: 28px; }

  .programs { grid-template-columns: 1fr; gap: 40px; }
  .series { grid-template-columns: 1fr; gap: 40px; }
  .series-col h3 { font-size: 30px; }
  .list-rows li { font-size: 16px; }
  .roster { font-size: 22px; column-gap: 14px; row-gap: 10px; }
  .roster li:not(:last-child)::after { margin-left: 14px; }

  .partner-grid { grid-template-columns: 1fr; }
  .partner-cell, .partner-cell:nth-child(even) { padding: 20px 0 22px; border-left: 0; }
  .athletes { grid-template-columns: 1fr; gap: 40px; }
  .athlete h3 { font-size: 32px; }
  .group-head h3 { font-size: 28px; }
  .name-cols, .name-cols--3 { columns: 2; column-gap: 16px; font-size: 15px; }
  .coach-list { grid-template-columns: 1fr; }

  .news-feature h2 { font-size: 34px; letter-spacing: -0.6px; }
  .news-archive .news-item { grid-template-columns: 1fr; gap: 6px; }
  .news-tag { grid-column: 1; }
  .news-more { width: 100%; }

  .cta-band { margin: 0; padding: 44px var(--gutter) 40px; border-radius: 0; }
  .cta-band h2 { font-size: 42px; }
  .cta-band .btn { width: 100%; }
}

/* ==========================================================================
   News article (single press release). Template: news-article.html
   Article copy lives in .article-body and is styled by element, so the
   output of the WordPress editor (paragraphs, headings, lists, links,
   quotes, image and gallery blocks) picks up these styles without classes.
   ========================================================================== */

.article-head { padding: 56px var(--gutter) 40px; display: flex; flex-direction: column; gap: 24px; }
.back-link { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 500; color: var(--red); }
.back-link:hover { color: var(--ink); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.article-meta .tag { color: var(--red); }
.article-head h1 { margin: 0; max-width: 1080px; font-size: 64px; line-height: 1; letter-spacing: -1.4px; text-wrap: balance; }
.article-dek { margin: 0; max-width: 820px; font-size: 21px; line-height: 1.5; color: var(--body); }

.article-hero img { aspect-ratio: 1280 / 600; object-position: var(--pos, 50% 50%); }

/* Rail (meta + share) beside the article column */
.article-layout {
  padding: 56px var(--gutter) 72px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
  border-bottom: 1px solid var(--line);
}
.article-rail { grid-column: 1 / span 3; align-self: start; position: sticky; top: 32px; display: flex; flex-direction: column; }
.rail-row { padding: 16px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.rail-row:last-child { border-bottom: 1px solid var(--line); }
.rail-row dt { margin: 0; }
.rail-row dd { margin: 0; font-size: 16px; line-height: 1.45; }
.share { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; font-weight: 500; }
.share a, .share button { color: var(--red); }
.share button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.share a:hover, .share button:hover { color: var(--ink); }

/* ---------- Article body ---------- */
.article-body { grid-column: 4 / span 7; min-width: 0; font-size: 19px; line-height: 1.7; color: #2B2822; }
.article-body > * { margin: 0; }
.article-body > * + * { margin-top: 24px; }
.article-body > p:first-child { font-size: 22px; line-height: 1.55; color: var(--ink); }
.article-body h2 {
  margin-top: 56px;
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.article-body h3 { margin-top: 40px; font-size: 21px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.article-body h2 + *, .article-body h3 + * { margin-top: 14px; }
.article-body a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { color: var(--ink); }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 0; list-style: none; }
.article-body li { position: relative; padding-left: 28px; }
.article-body li + li { margin-top: 10px; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 8px; height: 2px; background: var(--red); }
.article-body ol { counter-reset: item; }
.article-body ol li { counter-increment: item; }
.article-body ol li::before { content: counter(item, decimal-leading-zero); position: absolute; left: 0; top: 0.2em; font-size: 13px; font-weight: 600; color: var(--red); }

/* Pull quote (WordPress quote / pullquote blocks) */
.article-body blockquote,
.article-body .wp-block-pullquote {
  margin-top: 48px;
  margin-bottom: 48px;
  padding: 28px 0 0;
  border-top: 2px solid var(--ink);
}
.article-body blockquote p {
  margin: 0;
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.6px;
  color: var(--ink);
}
.article-body blockquote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Image blocks */
.article-body figure { display: flex; flex-direction: column; gap: 12px; }
.article-body figure img { width: 100%; height: auto; }
.article-body figcaption {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}
.article-body .wp-block-image,
.article-body .wp-block-gallery { margin-top: 40px; margin-bottom: 16px; }
/* "Wide" images extend past the text column on desktop */
.article-body .alignwide { margin-right: calc(-1 * (100% / 7 * 2 + 24px * 2 / 7)); }
.article-body .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article-body .wp-block-gallery > figcaption { grid-column: 1 / -1; }
.article-body .wp-block-gallery .wp-block-image { margin: 0; }
.article-body .wp-block-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Key figures inside an article */
.article-body .article-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.article-stats div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.article-stats div:not(:nth-child(3n + 1)) { padding-left: 16px; border-left: 1px solid var(--line); }
.article-stats dt { font-family: var(--display); font-stretch: 78%; font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -1px; color: var(--ink); }
.article-stats dd { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--body); }

/* End of article: tags + previous / next */
.article-foot { grid-column: 4 / span 7; display: flex; flex-direction: column; gap: 32px; }
.tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; font-weight: 500; }
.tags a:hover { border-color: var(--red); }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.post-nav a { padding: 22px 24px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.post-nav a + a { padding: 22px 0 24px 24px; border-left: 1px solid var(--line); text-align: right; }
.post-nav span:last-child { font-size: 17px; line-height: 1.4; }

/* Related releases */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related-card { display: flex; flex-direction: column; gap: 12px; }
.related-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: var(--pos, 50% 50%); }
.related-card h3 { margin: 4px 0 0; font-size: 19px; font-weight: 500; line-height: 1.35; }
.related-card:hover h3 { color: var(--red); }

/* ---------- Article: small desktop ---------- */
@media (max-width: 1199px) {
  .article-head h1 { font-size: 56px; }
  .article-rail { grid-column: 1 / span 3; }
  .article-body, .article-foot { grid-column: 4 / span 9; }
  .article-body .alignwide { margin-right: 0; }
}

/* ---------- Article: tablet ---------- */
@media (max-width: 1023px) {
  .article-head { padding: 40px var(--gutter) 32px; gap: 20px; }
  .article-head h1 { font-size: 48px; letter-spacing: -1px; }
  .article-dek { font-size: 19px; }
  .article-hero img { aspect-ratio: 4 / 2.4; }

  .article-layout { padding: 40px var(--gutter) 56px; grid-template-columns: 1fr; row-gap: 32px; }
  .article-rail { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .rail-row, .rail-row:last-child { padding: 14px 16px 14px 0; border: 0; }
  .rail-row + .rail-row { padding-left: 16px; border-left: 1px solid var(--line); }
  .article-body, .article-foot { grid-column: 1 / -1; max-width: 680px; }
  .article-body h2 { font-size: 30px; }
  .article-body blockquote p { font-size: 32px; }

  .related { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .related-card h3 { font-size: 17px; }
}

/* ---------- Article: mobile ---------- */
@media (max-width: 767px) {
  .article-head { padding: 32px var(--gutter) 28px; gap: 18px; }
  .article-head h1 { font-size: 36px; line-height: 1.02; letter-spacing: -0.6px; }
  .article-dek { font-size: 18px; }
  .article-hero img { aspect-ratio: 4 / 3; }

  .article-layout { padding: 32px var(--gutter) 48px; }
  .article-rail { grid-template-columns: 1fr 1fr; }
  .rail-row, .rail-row:last-child, .rail-row + .rail-row { padding: 12px 12px 12px 0; border: 0; }
  .rail-row:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .rail-row:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }

  .article-body { font-size: 18px; line-height: 1.65; }
  .article-body > p:first-child { font-size: 20px; }
  .article-body h2 { margin-top: 44px; font-size: 27px; }
  .article-body h3 { font-size: 19px; }
  .article-body blockquote p { font-size: 27px; }
  .article-body .wp-block-gallery { grid-template-columns: 1fr; gap: 12px; }
  .article-body .article-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-stats div, .article-stats div:not(:nth-child(3n + 1)) { padding: 16px 12px 16px 0; border-left: 0; }
  .article-stats div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .article-stats dt { font-size: 38px; }

  .post-nav { grid-template-columns: 1fr; }
  .post-nav a, .post-nav a + a { padding: 18px 0; border-left: 0; text-align: left; }
  .post-nav a + a { border-top: 1px solid var(--line); }

  .related { grid-template-columns: 1fr; gap: 32px; }
  .related-card h3 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-toggle-icon span { transition: none; }
}

/* WordPress integration */
body.admin-bar .site-header { top: 32px; }
.article-body img { max-width: 100%; height: auto; }
.pagination { padding: 32px 0; display:flex; gap:12px; }
.pagination .page-numbers { color:var(--ink); }
@media (max-width:782px){ body.admin-bar .site-header { top:46px; } }


/* PMI 0.2: full-width news releases and contact-form feedback */
.article-layout--full { display: block; }
.article-body--full { max-width: 980px; margin: 0 auto; }
.article-body--full .alignwide { margin-left: 0; margin-right: 0; }
.pmi-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-notice { grid-column: 1 / -1; padding: 14px 16px; margin-bottom: 18px; border: 1px solid var(--line); font-family: var(--sans); }
.form-notice--success { border-color: var(--ink); }
.form-notice--error { border-color: var(--red); }
