/* ===========================================================
   70 ans de vol en planeur au Pic Saint-Loup — CVVM
   =========================================================== */

:root {
  --sky-900: #0b3350;
  --sky-800: #0f4066;
  --sky-700: #14507f;
  --sky-600: #1c6699;
  --sky-100: #e8f1f8;
  --amber: #d9622b;
  --amber-dark: #b84e1e;
  --parchment: #f6f1e6;
  --parchment-dark: #ece3cf;
  --ink: #22282f;
  --ink-soft: #4a535c;
  --paper: #ffffff;
  --line: #dfe4e8;
  --frame: #e7e7e5;
  --shadow: 0 10px 30px rgba(11, 51, 80, 0.12);
  --radius: 14px;
  --max: 1120px;
  --nav-h: 56px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Stop iOS Safari inflating text in landscape */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: hidden would make <body> a scroll container
     and break the sticky topnav. */
  overflow-x: clip;
}

/* Anchor targets must not land under the sticky nav */
section[id], header[id], footer[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--sky-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
/* height:auto is required: every <img> carries intrinsic width/height
   attributes (anti-CLS) that max-width would otherwise distort. */
img { max-width: 100%; height: auto; display: block; }

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

a { color: var(--sky-700); }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 51, 80, 0.96);
  backdrop-filter: blur(6px);
  color: #fff;
}
.topnav .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.topnav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.05rem;
}
.topnav .brand img { width: 34px; height: 34px; border-radius: 50%; }
.topnav nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  overflow-x: auto;
  font-size: 0.92rem;
}
.topnav nav a {
  color: #dce9f4;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.topnav nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.topnav nav a:active { background: rgba(255,255,255,0.2); color: #fff; }

/* Burger button — only shown on phones (see the responsive block) */
.nav-toggle {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #fff;
  cursor: pointer;
}
.nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(255,255,255,0.14); }
/* One bar plus two pseudo-elements; they fold into a cross when open. */
.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle .bar { position: relative; transition: background-color 0.18s ease; }
.nav-toggle .bar::before, .nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 0.18s ease;
}
.nav-toggle .bar::before { top: -7px; }
.nav-toggle .bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  /* svh: avoids the height jump when the mobile URL bar retracts */
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  background: #0b3350;
  overflow: hidden;
}
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,26,42,0.35) 0%, rgba(6,26,42,0.15) 35%, rgba(6,26,42,0.85) 100%);
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
  width: 100%;
}
.hero .kicker {
  color: #ffd9b3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  margin-bottom: 0.3em;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.hero .sub {
  color: #eaf2f8;
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 640px;
  margin-bottom: 22px;
}
.hero .years {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  border-top: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  padding: 6px 0;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--parchment); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-dark);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section-head p { color: var(--ink-soft); }

/* ---------- Président intro ---------- */
.president-block {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.president-block img { border-radius: 10px; }
.president-block .signoff {
  margin-top: 18px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--sky-800);
}
.quote-block {
  border-left: 3px solid var(--amber);
  padding-left: 16px;
  margin: 20px 0;
  font-style: italic;
  color: var(--ink-soft);
}
.tagline-box {
  margin-top: 18px;
  display: inline-block;
  background: var(--sky-900);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: "Playfair Display", serif;
  font-style: italic;
}

/* ---------- Timeline (history) ---------- */
.timeline {
  position: relative;
  margin-top: 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--amber), var(--sky-600));
}
.tl-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 56px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--amber);
}
.tl-year {
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--amber-dark);
  font-size: 1.4rem;
  margin-bottom: 2px;
}
.tl-item h3 { margin-bottom: 4px; }
.tl-source {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 14px;
}
.tl-body { color: var(--ink); }
.tl-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.tl-gallery figure { margin: 0; }
.tl-gallery img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: var(--frame);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.tl-gallery.tall img { height: 260px; }
.tl-gallery figcaption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 6px;
  text-align: center;
}
.press-clip {
  background: var(--parchment-dark);
  border: 1px solid #d9cca8;
  border-radius: 10px;
  padding: 14px;
}
.press-clip img { border-radius: 6px; margin-bottom: 8px; }
.press-clip .cap { font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }
.highlight-box {
  background: #fdf1e2;
  border: 1px solid #f0d9b0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 14px;
  font-size: 0.95rem;
}
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

/* ---------- Fleet cards ---------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.fleet-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.fleet-card img { width: 100%; height: 170px; object-fit: contain; background: var(--frame); }
.fleet-card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.fleet-card h4 { font-size: 1.05rem; margin-bottom: 10px; }
.fleet-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
}
.fleet-card dt { font-weight: 600; color: var(--sky-800); }
.fleet-card dd { margin: 0; }
.fleet-card .finesse {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 700;
  color: var(--amber-dark);
  font-size: 0.92rem;
}
.fleet-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 22px;
}
.fleet-card.in-service { border: 2px solid var(--amber); }
.badge-active {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  vertical-align: middle;
}

/* ---------- Presidents ---------- */
.presidents-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.president-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 28px;
}
.president-card:nth-child(even) { flex-direction: row-reverse; }
.president-card > div { flex: 1; min-width: 0; }
.president-card img {
  width: 240px;
  max-width: 34%;
  height: auto;
  align-self: stretch;
  object-fit: contain;
  background: var(--frame);
  border-radius: 10px;
  flex-shrink: 0;
}
.president-card .years { color: var(--amber-dark); font-weight: 600; font-size: 0.85rem; }
.president-card h4 { margin-bottom: 2px; }
.president-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }
.president-founders {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ---------- Grands vols ---------- */
.map-figure { text-align: center; margin-bottom: 40px; }
.map-figure img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; }
.map-figure figcaption { color: var(--ink-soft); font-size: 0.9rem; margin-top: 10px; }
.flight-grid {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.flight-card {
  background: var(--sky-900);
  color: #eaf2f8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.flight-card img { width: 100%; height: min(58vh, 480px); object-fit: contain; background: var(--sky-900); display: block; }
.flight-card .body { padding: 26px 30px 30px; }
.flight-card h4 { color: #fff; }
.flight-card .stat {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.82rem;
  margin-right: 6px;
  margin-bottom: 10px;
}
.flight-card p { color: #cfe0ec; font-size: 0.93rem; }

/* ---------- Today / team ---------- */
.today-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.today-gallery figure { margin: 0; }
.today-gallery img { width: 100%; height: 200px; object-fit: contain; background: var(--frame); border-radius: 10px; box-shadow: var(--shadow); }
.today-gallery figcaption { font-size: 0.82rem; color: var(--ink-soft); text-align: center; margin-top: 6px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 30px 0;
  text-align: center;
}
.stat-tile {
  background: var(--sky-100);
  border-radius: 12px;
  padding: 18px 10px;
}
.stat-tile .num {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--sky-800);
  display: block;
}
.stat-tile .label { font-size: 0.82rem; color: var(--ink-soft); }
.person-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-top: 26px;
}
.person-card img {
  width: 200px;
  max-width: 34%;
  height: 160px;
  object-fit: contain;
  background: var(--frame);
  border-radius: 10px;
  flex-shrink: 0;
}
.person-card p { margin-bottom: 0; font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer {
  background: var(--sky-900);
  color: #cfe0ec;
}
footer .wrap { padding: 56px var(--gutter) 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 36px;
}
footer h4 { color: #fff; font-size: 1.05rem; }
footer ul { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
footer li { margin-bottom: 8px; }
footer a { color: #cfe0ec; }
footer a:hover { color: #fff; }
.footer-cta {
  display: inline-block;
  margin-top: 10px;
  background: var(--amber);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.footer-cta:hover { background: var(--amber-dark); }
.sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}
.sponsors img { height: 44px; width: auto; border-radius: 4px; background: #fff; padding: 4px 8px; }
.qr-block { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.qr-block img { width: 64px; height: 64px; border-radius: 6px; background: #fff; padding: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: #93aec1;
  text-align: center;
}

/* ---------- misc ---------- */
.credit-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 50px;
}

/* ---------- Lightbox ---------- */
img.zoomable { cursor: zoom-in; transition: opacity 0.15s ease; }
img.zoomable:hover { opacity: 0.88; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: rgba(246, 241, 230, 0.97);
  cursor: zoom-out;
  overflow: auto;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(11, 51, 80, 0.25);
  cursor: default;
}
.lightbox-caption {
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: center;
  max-width: 90vw;
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
}
.lightbox-close:hover { color: var(--amber); }

/* ===========================================================
   Responsive — desktop down to phone
   Key idea: below tablet width, images drop their fixed height
   (object-fit: contain) and take their natural ratio back. Otherwise
   portrait photos shrink to a thumbnail lost in a grey frame.
   =========================================================== */

/* ---- Tablet landscape ---- */
@media (max-width: 1024px) {
  section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .flight-card .body { padding: 22px 24px 26px; }
}

/* ---- Tablet portrait ---- */
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .two-col { grid-template-columns: 1fr; }
  .president-block {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .president-block img { width: 180px; margin: 0 auto; }
  .president-card { gap: 20px; padding: 18px; }

  /* Galleries: one image per row, at its natural ratio. The desktop fixed
     heights line 3 columns up neatly, but below that they crush portrait
     photos (a 365x555 shot fell to 125 px wide inside a 190 px frame). */
  .tl-gallery, .today-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
    /* Archive scans are low-res (often < 700 px): cap the column so they
       are not blown up out of proportion on a tablet. */
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
  .tl-gallery img,
  .tl-gallery.tall img,
  .today-gallery img {
    height: auto;
    max-height: 62vh;
    max-height: 62svh;
    object-fit: contain;
  }
  .flight-card img { height: auto; max-height: 46vh; max-height: 46svh; }
}

/* ---- Phone ---- */
@media (max-width: 700px) {
  :root {
    --gutter: 16px;
    --nav-h: 60px;
    --radius: 12px;
  }
  /* Lift the whole type scale: every size on the site is in rem */
  html { font-size: 17px; }

  section { padding: 44px 0; }
  .section-head { margin-bottom: 30px; }

  /* Nav: collapsed behind a burger button. The 7 links would otherwise wrap
     into 3-4 stacked lines and swallow the sticky bar. */
  .topnav .wrap { gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .topnav .brand { font-size: 1rem; }
  .topnav .brand img { width: 30px; height: 30px; }
  .nav-toggle { display: inline-flex; }

  /* Panel drops out of the sticky bar (.topnav is the containing block) */
  .topnav nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px var(--gutter) 14px;
    font-size: 1rem;
    background: rgba(11, 51, 80, 0.98);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 30px rgba(6, 26, 42, 0.35);
    /* Stays scrollable if the links ever outgrow a short screen */
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s 0.18s;
  }
  .topnav nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .topnav nav a { padding: 12px; }

  /* Hero */
  .hero { min-height: 80vh; min-height: 80svh; }
  .hero .wrap { padding-bottom: 38px; }
  .hero .sub { margin-bottom: 18px; }

  /* Timeline: the 56px indent ate a sixth of the screen */
  .timeline::before { left: 7px; }
  .tl-dot { left: 0; top: 6px; width: 16px; height: 16px; border-width: 3px; }
  .tl-item { padding-left: 28px; margin-bottom: 42px; }
  .tl-year { font-size: 1.3rem; }
  .tl-source { font-size: 0.85rem; }

  .tl-gallery figcaption, .today-gallery figcaption { font-size: 0.86rem; }

  .president-block { padding: 20px 18px; }
  .quote-block { padding-left: 14px; }

  /* Presidents: photo centred above the text */
  .president-card,
  .president-card:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .president-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    align-self: center;
    max-height: 46vh;
    max-height: 46svh;
  }
  .president-card p { font-size: 0.94rem; }

  /* Grands vols */
  .flight-card .body { padding: 20px 18px 24px; }
  .flight-card p { font-size: 0.95rem; }
  .flight-grid { gap: 26px; }
  .map-figure { margin-bottom: 30px; }

  /* Chef pilote */
  .person-card { flex-direction: column; align-items: stretch; padding: 18px; }
  .person-card img { width: 100%; max-width: 100%; height: auto; max-height: 46vh; max-height: 46svh; }

  .stat-tile { padding: 16px 8px; }
  .stat-tile .num { font-size: 1.7rem; }
  .stat-tile .label { font-size: 0.85rem; }

  .highlight-box { padding: 14px; font-size: 0.97rem; }
  .press-clip { padding: 12px; }
  .press-clip .cap, .map-figure figcaption { font-size: 0.86rem; }

  /* Footer */
  footer .wrap { padding: 40px var(--gutter) 26px; }
  .footer-cta { padding: 12px 22px; }
  .sponsors img { height: 38px; }
  .footer-bottom { margin-top: 30px; }

  /* Lightbox: comfortable tap target on the close button */
  .lightbox { padding: 60px 12px 24px; }
  .lightbox img { max-width: 100%; }
  .lightbox-close {
    top: 4px;
    right: 4px;
    font-size: 2.2rem;
    min-width: 48px;
    min-height: 48px;
  }
  .lightbox-caption { font-size: 0.9rem; max-width: 100%; }
}

/* ---- Single column of cards ---- */
@media (max-width: 580px) {
  .fleet-grid { grid-template-columns: 1fr; gap: 18px; }
  .fleet-card img { height: auto; max-height: 50vh; max-height: 50svh; }
  .fleet-card .body { padding: 14px 16px 16px; }
  .fleet-card h4 { font-size: 1.1rem; }
  .fleet-card dl { font-size: 0.9rem; }
}

/* ---- Small phones (<= 360 px wide) ---- */
@media (max-width: 380px) {
  :root { --gutter: 13px; }
  .tl-item { padding-left: 24px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .president-card img { max-width: 170px; }
}

/* Honour the system "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    /* also clears the delayed visibility on the nav panel */
    transition-delay: 0s !important;
  }
}
