/* ============================================================
   VB DEPOT · www.vbdepot.com
   Retro-tech premium : monospace subtile + bleu IDE années 90
   ============================================================ */

:root {
  --fg: #17202b;
  --fg-soft: #3d4a5a;
  --page: #f6f4ee;
  --card: #ffffff;
  --line: #ddd7c8;
  --line-soft: #e9e4d7;

  --navy-950: #070f1c;
  --navy-900: #0a1626;
  --navy-800: #0e2138;
  --navy-700: #143053;
  --navy-600: #1b4272;

  --ide-blue: #1b41a8;      /* mot-clé VB6, revu premium */
  --ide-blue-soft: #35619b;
  --cyan: #5cb6d8;
  --cyan-glow: #8fd6ef;
  --green: #2e7d4f;         /* commentaire VB */
  --maroon: #8a2d2b;        /* chaînes */
  --amber: #b97a22;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-1: 0 1px 2px rgba(10, 22, 38, .06), 0 8px 24px -12px rgba(10, 22, 38, .18);
  --shadow-2: 0 2px 4px rgba(10, 22, 38, .08), 0 22px 48px -20px rgba(10, 22, 38, .32);
  --radius: 12px;
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--fg);
  background:
    radial-gradient(1100px 500px at 85% -200px, rgba(27, 66, 114, .06), transparent 70%),
    var(--page);
}

::selection { background: var(--navy-700); color: #eaf6fc; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ide-blue); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

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

.mono { font-family: var(--mono); }

/* ============ TOPBAR ============ */

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 22, 38, .94);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid rgba(140, 214, 239, .18);
}

.bar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 62px; position: relative;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .5px;
  color: #dff2fa;
  background: linear-gradient(160deg, var(--navy-600), var(--navy-800));
  border: 1px solid rgba(140, 214, 239, .35);
  border-top-color: rgba(140, 214, 239, .65);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 12px -4px rgba(0, 0, 0, .55);
}

.brand-txt {
  font-family: var(--mono); font-size: 17px; letter-spacing: .3px;
  color: #f1f6fa;
}
.brand-txt em { font-style: normal; color: var(--cyan-glow); }
.brand-txt .tld { color: rgba(241, 246, 250, .45); font-size: 13px; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.nav a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(233, 243, 250, .78);
  padding: 8px 10px; border-radius: 6px;
  border: 1px solid transparent;
}
.nav a:hover { color: #ffffff; background: rgba(140, 214, 239, .1); text-decoration: none; border-color: rgba(140, 214, 239, .18); }
.nav a[aria-current="page"] { color: #ffffff; background: rgba(140, 214, 239, .14); border-color: rgba(140, 214, 239, .3); }

.navtog, .navburger { display: none; }
.navburger span, .navburger span::before, .navburger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: #dfeef7; border-radius: 2px; position: absolute; left: 2px;
}
.navburger span { top: 26px; }
.navburger span::before { left: 0; top: -6px; }
.navburger span::after { left: 0; top: 6px; }

@media (max-width: 980px) {
  .navtog { display: none; }
  .navburger {
    display: block; width: 40px; height: 52px; position: relative; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 100%; left: -24px; right: -24px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--navy-900); border-bottom: 1px solid rgba(140, 214, 239, .2);
    padding: 10px 24px 16px;
  }
  .nav a { padding: 11px 12px; font-size: 13px; }
  .navtog:checked ~ .nav { display: flex; }
}

/* ============ HERO (home) ============ */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% -12%, rgba(92, 182, 216, .22), transparent 62%),
    radial-gradient(1400px 700px at 110% 118%, rgba(27, 66, 114, .5), transparent 65%),
    linear-gradient(158deg, var(--navy-950) 0%, var(--navy-900) 38%, var(--navy-700) 100%);
  color: #e9f2f8;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px);
  background-size: 24px 24px;
  mask-image: linear-gradient(185deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.25) 55%, transparent 80%);
}
.hero-in {
  position: relative;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center;
  padding: 84px 0 92px;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--cyan-glow); margin-bottom: 22px;
}
.hero-eyebrow::before { content: "▚ "; color: rgba(143, 214, 239, .6); }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 5vw, 60px); line-height: 1.06; letter-spacing: -.015em;
  color: #f5fafd; margin-bottom: 22px;
}
.hero h1 .accent { color: var(--cyan-glow); font-style: italic; }
.hero-standfirst {
  font-size: clamp(17px, 1.7vw, 20px); line-height: 1.65; color: rgba(233, 243, 250, .82);
  max-width: 54ch; margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 13px 22px; border-radius: 8px; cursor: pointer;
  border: 1px solid; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #eaf6fc; background: linear-gradient(170deg, var(--navy-600), var(--navy-800));
  border-color: rgba(140, 214, 239, .5); border-top-color: rgba(140, 214, 239, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 24px -10px rgba(0, 0, 0, .6);
}
.btn-primary:hover { color: #ffffff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 14px 30px -10px rgba(0,0,0,.7); }
.btn-ghost {
  color: rgba(233, 243, 250, .85); background: transparent;
  border-color: rgba(233, 243, 250, .28);
}
.btn-ghost:hover { color: #ffffff; border-color: rgba(233, 243, 250, .55); }

.hero-facts {
  display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px;
  font-family: var(--mono); font-size: 12px; color: rgba(233, 243, 250, .55);
}
.hero-facts b { display: block; font-size: 22px; color: #f5fafd; font-weight: 600; }
.hero-facts span { letter-spacing: .8px; text-transform: uppercase; }

/* --- fenêtre terminal dans le hero --- */

.term {
  border-radius: 10px; overflow: hidden;
  background: #101823;
  border: 1px solid rgba(140, 214, 239, .3);
  box-shadow: var(--shadow-2), 0 0 0 6px rgba(255, 255, 255, .02);
}
.term-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .8px; color: #cfe4f0;
  background: linear-gradient(180deg, var(--navy-600), var(--navy-800));
  border-bottom: 1px solid rgba(10, 22, 38, .9);
}
.term-dots { display: inline-flex; gap: 7px; }
.term-dots i {
  width: 11px; height: 11px; border-radius: 2.5px;
  border: 1px solid rgba(255, 255, 255, .35);
}
.term-dots i:nth-child(1) { background: #9fb8cc; }
.term-dots i:nth-child(2) { background: var(--cyan); }
.term-dots i:nth-child(3) { background: #d06a5c; }
.term-body { padding: 20px 22px 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.85; }

/* ============ CODE (palette IDE VB6 revisitée) ============ */

pre.code {
  font-family: var(--mono); font-size: 13.5px; line-height: 1.75;
  background: #f0efe8; color: #1d2430;
  border: 1px solid #d8d3c4; border-left: 4px solid var(--ide-blue);
  border-radius: 8px; padding: 18px 20px; overflow-x: auto;
  box-shadow: inset 0 1px 0 #fff;
}
pre.code .k { color: var(--ide-blue); font-weight: 600; }        /* keyword  */
pre.code .c { color: var(--green); font-style: italic; }         /* comment  */
pre.code .s { color: var(--maroon); }                             /* string   */
pre.code .n { color: var(--amber); }                              /* number   */
pre.code .f { color: #5a3fa0; }                                  /* function */

code {
  font-family: var(--mono); font-size: .82em;
  background: #eceada; border: 1px solid #ddd8c8; border-radius: 5px;
  padding: .12em .38em; color: #243044; white-space: nowrap;
}
pre code { background: none; border: 0; padding: 0; white-space: pre; }

/* ============ SECTIONS génériques ============ */

.section { padding: 72px 0; }
.section.tint {
  background:
    radial-gradient(800px 380px at 8% -80px, rgba(92, 182, 216, .10), transparent 70%),
    #efeadf;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sec-head { max-width: 720px; margin-bottom: 42px; }
.sec-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--ide-blue-soft); margin-bottom: 12px;
}
.sec-head h2 {
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.012em;
  color: var(--navy-900);
}
.sec-head p { margin-top: 14px; color: var(--fg-soft); font-size: 17px; }

/* ============ GRILLES CARTES ============ */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 24px; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #c9c2ad; text-decoration: none; }
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--cyan));
  opacity: 0; transition: opacity .18s ease;
}
.card:hover::after { opacity: 1; }

.card-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--ide-blue-soft);
}
.card h3 { font-size: 21.5px; line-height: 1.22; color: var(--navy-900); letter-spacing: -.01em; }
.card h3 a { color: inherit; }
.card p { color: var(--fg-soft); font-size: 15.5px; line-height: 1.62; flex: 1; }
.card-more {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ide-blue);
}
.card-more::after { content: " →"; }

.card-num {
  font-family: var(--mono); font-size: 11px; color: rgba(23, 32, 43, .35);
  letter-spacing: 1px;
}

/* carte dialecte (4 blocs) */
.dialect .card { padding-top: 30px; }
.dialect .badge {
  display: inline-flex; align-self: flex-start;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px;
  padding: 5px 10px; border-radius: 6px;
  background: var(--navy-900); color: var(--cyan-glow);
  border: 1px solid rgba(140, 214, 239, .35);
}
.dialect .card.alive .badge { background: #143053; }
.dialect .card.legacy .badge { background: #5d4a1e; color: #f2ddb0; border-color: rgba(242, 221, 176, .3); }

/* ============ BANDE CITATION ============ */

.quoteband {
  background:
    radial-gradient(700px 340px at 15% 0%, rgba(92, 182, 216, .16), transparent 60%),
    var(--navy-900);
  color: #e9f2f8; padding: 66px 0;
  border-top: 1px solid var(--navy-950);
}
.quoteband blockquote {
  max-width: 860px; margin: 0 auto; text-align: center;
  font-size: clamp(21px, 2.6vw, 28px); line-height: 1.42; font-style: italic; letter-spacing: -.008em;
}
.quoteband cite {
  display: block; margin-top: 20px; font-style: normal;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan-glow);
}

/* ============ ARTICLE ============ */

.article-wrap { padding: 54px 0 80px; }
.article { max-width: 760px; margin: 0 auto; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--ide-blue-soft); margin-bottom: 18px;
}
.article h1 {
  font-size: clamp(33px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -.018em;
  color: var(--navy-950); margin-bottom: 20px;
}
.standfirst {
  font-size: clamp(18.5px, 2vw, 21px); line-height: 1.58; color: var(--fg-soft);
  margin-bottom: 22px; font-style: italic;
}
.meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(23, 32, 43, .5); margin-bottom: 26px;
}
.meta span::before { content: "▪ "; color: var(--cyan); }

.pathbar {
  font-family: var(--mono); font-size: 12px; color: #d9ecf5;
  background: linear-gradient(180deg, var(--navy-600), var(--navy-800));
  border: 1px solid rgba(140, 214, 239, .25);
  border-radius: 7px; padding: 7px 14px; margin-bottom: 44px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.pathbar::before { content: "C:"; color: rgba(217, 236, 245, .55); }

.article h2 {
  font-size: clamp(24px, 2.8vw, 30px); line-height: 1.18; letter-spacing: -.012em;
  color: var(--navy-900); margin: 54px 0 18px; padding-top: 10px;
}
.article h2 .idx {
  font-family: var(--mono); font-size: .55em; font-weight: 600;
  color: var(--cyan); letter-spacing: 2px; vertical-align: .45em; margin-right: 14px;
}
.article h3 {
  font-family: var(--sans); font-size: 19px; font-weight: 650; color: var(--navy-800);
  margin: 34px 0 12px;
}
.article p { margin-bottom: 20px; }
.article ul, .article ol { margin: 0 0 22px 26px; }
.article li { margin-bottom: 10px; }
.article li::marker { color: var(--ide-blue-soft); font-family: var(--mono); font-size: .85em; }

.article blockquote {
  border-left: 3px solid var(--cyan);
  background: linear-gradient(90deg, rgba(92, 182, 216, .08), transparent 80%);
  padding: 18px 26px; margin: 30px 0;
  font-style: italic; font-size: 19px; color: var(--navy-800);
  border-radius: 0 8px 8px 0;
}

/* encart "fenêtre" façon IDE */
.note {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  margin: 30px 0; box-shadow: var(--shadow-1); background: var(--card);
}
.note-title {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: #d9ecf5; padding: 8px 14px;
  background: linear-gradient(180deg, var(--navy-600), var(--navy-800));
}
.note-title .term-dots i { width: 9px; height: 9px; }
.note-body { padding: 18px 22px; font-size: 15.5px; line-height: 1.66; color: var(--fg-soft); }
.note-body p + p { margin-top: 10px; }

/* tableau */
.tablewrap { overflow-x: auto; margin: 30px 0; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 15px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow-1);
}
table.data th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  text-align: left; color: #d9ecf5;
  background: linear-gradient(180deg, var(--navy-600), var(--navy-800));
  padding: 11px 16px;
}
table.data td { padding: 12px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }
table.data td:first-child { font-family: var(--mono); font-size: 13px; color: var(--ide-blue); white-space: nowrap; }
table.data tr:nth-child(even) td { background: rgba(239, 234, 223, .45); }

/* maillage : bloc connexes */
.related {
  margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--line);
}
.related h2 { font-size: 17px !important; margin: 0 0 20px !important; font-family: var(--mono);
  letter-spacing: 2px; text-transform: uppercase; color: var(--fg-soft) !important; }
.related .grid-3 { gap: 16px; }
.related .card { padding: 20px; box-shadow: none; }
.related .card h3 { font-size: 16.5px; }

.prevnext {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 26px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.prevnext a {
  color: var(--ide-blue); max-width: 46%;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; background: var(--card);
}
.prevnext a:hover { border-color: var(--ide-blue-soft); text-decoration: none; background: #fbfaf6; }
.prevnext .next { margin-left: auto; text-align: right; }
.prevnext small { display: block; color: rgba(23,32,43,.45); margin-bottom: 4px; letter-spacing: 2px; }

/* ============ TIMELINE ============ */

.tl { position: relative; margin: 40px 0 10px; }
.tl::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 96px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--navy-700) 85%, transparent);
}
.tl-item { position: relative; padding: 0 0 34px 150px; }
.tl-item:last-child { padding-bottom: 6px; }
.tl-year {
  position: absolute; left: 0; top: -2px; width: 76px; text-align: right;
  font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--navy-800);
  letter-spacing: .5px;
}
.tl-item::after {
  content: ""; position: absolute; left: 91px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--page); border: 3px solid var(--ide-blue);
  box-shadow: 0 0 0 4px rgba(27, 65, 168, .12);
}
.tl-item h3 { margin: 0 0 6px; font-size: 18.5px; color: var(--navy-900); }
.tl-item p { font-size: 15.5px; color: var(--fg-soft); line-height: 1.62; margin: 0; }

@media (max-width: 640px) {
  .tl::before { left: 12px; }
  .tl-item { padding: 0 0 30px 44px; }
  .tl-year { position: static; display: block; text-align: left; margin-bottom: 4px; }
  .tl-item::after { left: 7px; }
}

/* ============ SNIPPETS ============ */

.snip { margin: 42px 0; }
.snip-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
}
.snip-head h3 { font-size: 20px; margin: 0; color: var(--navy-900); }
.snip-head .file { font-family: var(--mono); font-size: 12px; color: rgba(23,32,43,.5); }

/* ============ FOOTER ============ */

.foot { background: var(--navy-950); color: rgba(233, 243, 250, .72); margin-top: 40px; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding: 58px 24px 46px;
}
.foot-brand p { font-size: 14.5px; line-height: 1.65; color: rgba(233, 243, 250, .55); margin-top: 14px; max-width: 34ch; }
.foot h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--cyan-glow); margin-bottom: 16px;
}
.foot ul { list-style: none; }
.foot li { margin-bottom: 9px; }
.foot a { color: rgba(233, 243, 250, .72); font-size: 14.5px; }
.foot a:hover { color: #ffffff; }

.statusbar {
  display: flex; align-items: center; gap: 0;
  border-top: 1px solid rgba(140, 214, 239, .16);
  background: var(--navy-900);
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: rgba(217, 236, 245, .55);
}
.statusbar > div { padding: 9px 18px; }
.statusbar .cell-l { border-right: 1px solid rgba(140, 214, 239, .14); }
.statusbar .cell-mid {
  flex: 1; text-align: center; text-transform: uppercase; letter-spacing: 2.4px;
  color: rgba(143, 214, 239, .55);
}
.statusbar .cell-r { border-left: 1px solid rgba(140, 214, 239, .14); }

/* ============ MISC ============ */

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 99; }

.toc {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 26px; margin: 34px 0; box-shadow: var(--shadow-1);
}
.toc::before {
  content: "Table of contents"; display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--fg-soft); margin-bottom: 12px;
}
.toc ol { margin-left: 20px; font-size: 15px; }
.toc a { text-decoration-color: rgba(27, 65, 168, .3); }

.figu { margin: 34px 0; }
.figu figcaption {
  font-family: var(--mono); font-size: 12px; color: rgba(23, 32, 43, .5);
  margin-top: 10px; letter-spacing: .4px;
}

.divider-dots {
  text-align: center; color: var(--cyan); letter-spacing: 12px; margin: 44px 0 10px;
  font-family: var(--mono); user-select: none;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 44px; padding: 64px 0 72px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .statusbar .cell-mid { display: none; }
  .prevnext { flex-direction: column; }
  .prevnext a { max-width: 100%; }
}

/* ============ PHOTO PIPELINE ============ */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 76% center; opacity: .45; }
.card-media { margin: -26px -26px 4px; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 168px; object-fit: cover; display: block; }
