/* ============================================================
   GrammarBound — Feature Carousel (real-map edition)
   Editorial coverflow whose cards are genuine Leaflet maps
   (carto-light tiles + real catchment geometry), with animated
   overlays that replay while a card is active (.is-entering).
   ============================================================ */

:root {
  --gb-navy: #060F3C;
  --gb-indigo: #1F3A8A;
  --brass: #C99B43;
  --brass-d: #A6741F;
  --brass-ink: #16244C;
  --brass-tint: #F4EFE2;
  --brass-line: #E4D5A8;
  --slate: #7C8AA0;
  --rose: #9C5570;
  --olive: #5E7245;
  --ink: #0F172A;
  --ink-muted: #475569;
  --ink-faint: #64748B;
  --line: #E2E8F0;
  --paper: #FFFFFF;
}

/* ── Section shell ─────────────────────────────────────────── */
/* Carousel is the last section before the footer on both pages — keep a
   comfortable gap beneath the controls / essentials row. */
.gbc-section { padding: 8px 0 64px; }
/* Left-aligned to match the neighbouring section heads on both pages
   (index .cs3-head, features .cs-head): a ≤760px block flush to the left
   of the centred 1240px content column. */
.gbc-head { max-width: 1240px; margin: 0 auto 30px; padding: 0 24px; }
.gbc-head > * { max-width: 760px; }
.gbc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brass-d);
}
.gbc-eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--brass); flex-shrink: 0; }
.gbc-head h2 {
  font-family: "Spectral", Georgia, serif; font-weight: 500;
  font-size: 36px; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--ink); margin: 16px 0 12px; text-wrap: balance;
}
.gbc-head h2 em { font-style: italic; font-weight: 400; }
.gbc-head p { font-size: 16px; line-height: 1.6; color: var(--ink-muted); margin: 0; text-wrap: pretty; }

/* ── Coverflow stage ───────────────────────────────────────── */
.gbc {
  --card-w: 460px;
  --card-h: 436px;
  position: relative; width: 100%; user-select: none;
}
.gbc-viewport {
  position: relative;
  height: calc(var(--card-h) + 64px);
  perspective: 1700px;
  overflow: hidden;
  touch-action: pan-y;
}
.gbc-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.gbc-card {
  position: absolute; top: 50%; left: 50%;
  width: var(--card-w); height: var(--card-h);
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
  transition: transform 0.6s cubic-bezier(0.22,0.61,0.27,1),
              opacity 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease;
  will-change: transform, opacity;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.gbc-card.is-live {
  cursor: default; border-color: var(--brass-line);
  box-shadow: 0 30px 70px -34px rgba(10,22,82,0.45), 0 2px 8px rgba(15,23,42,0.06);
}
.gbc-card[data-state="hidden"] { opacity: 0; pointer-events: none; }
.gbc-boot .gbc-card { transition: none !important; }

/* Media = the live map */
.gbc-media {
  position: relative; height: 232px; flex-shrink: 0;
  background: #EDEAE0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.gbc-card.is-live .gbc-media { border-bottom-color: var(--brass-line); }

/* Body */
.gbc-body { flex: 1; min-height: 0; padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.gbc-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.gbc-kicker::before { content: ""; width: 5px; height: 5px; background: var(--slate); }
.gbc-card.is-live .gbc-kicker { color: var(--brass-d); }
.gbc-card.is-live .gbc-kicker::before { background: var(--brass); }
.gbc-card h3 {
  font-family: "Spectral", Georgia, serif; font-weight: 600;
  font-size: 22px; line-height: 1.18; letter-spacing: -0.01em; color: var(--ink); margin: 0;
}
.gbc-card p {
  font-size: 13.5px; line-height: 1.55; color: var(--ink-muted); margin: 0; text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.gbc-cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--brass-d); text-decoration: none;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, gap 0.2s ease;
}
.gbc-card.is-live .gbc-cta { opacity: 1; transform: none; }
.gbc-cta:hover { gap: 11px; }
.gbc-cta svg { width: 13px; height: 13px; }

/* ── Controls ──────────────────────────────────────────────── */
.gbc-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.gbc-arrow {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.18s ease;
}
.gbc-arrow:hover { border-color: var(--brass); color: var(--brass-d); background: var(--brass-tint); }
.gbc-arrow:active { transform: scale(0.94); }
.gbc-arrow svg { width: 18px; height: 18px; }
.gbc-dots { display: flex; align-items: center; gap: 9px; }
.gbc-dot {
  width: 8px; height: 8px; border-radius: 999px; border: 0; background: #CBD5E1;
  cursor: pointer; padding: 0; transition: all 0.25s ease;
}
.gbc-dot:hover { background: var(--slate); }
.gbc-dot.is-active { background: var(--brass); width: 26px; }
.gbc-progress { width: 100%; max-width: 160px; height: 2px; margin: 14px auto 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.gbc-progress > span { display: block; height: 100%; width: 0; background: var(--brass); border-radius: 2px; }
.gbc[data-playing="true"] .gbc-progress > span { animation: gbc-prog var(--dur, 5500ms) linear forwards; }
@keyframes gbc-prog { from { width: 0; } to { width: 100%; } }

/* ── Editorial coverflow transform (translateZ keeps centre on top
      inside preserve-3d) ──────────────────────────────────────── */
.gbc[data-mode="editorial"] .gbc-card {
  transform: translateX(calc(var(--off) * 252px)) translateZ(calc(var(--adj) * -60px)) scale(calc(1 - var(--adj) * 0.16));
  opacity: calc(1 - var(--adj) * 0.42);
  filter: saturate(calc(1 - var(--adj) * 0.5));
}
.gbc[data-mode="editorial"] .gbc-card.is-live { opacity: 1; filter: none; }

/* ════════════════════════════════════════════════════════════
   MAP MEDIA
   ════════════════════════════════════════════════════════════ */
.gb-map { position: absolute; inset: 0; background: #EDEAE0; }
.leaflet-container { font-family: "IBM Plex Mono", ui-monospace, monospace !important; background: #EDEAE0 !important; }
.leaflet-container .leaflet-control-attribution { display: none; }
/* Tiles fade up once they load */
.leaflet-tile { transition: opacity 0.4s ease; }

/* Vector layers (catchments / tiers / rings / heat) — visible by default,
   replayed from hidden when the card is entering, staggered by class. */
.gb-vec { opacity: 1; }
.gbc-card.is-entering .gb-vec--a { animation: gb-vfade 0.7s ease 0.15s both; }
.gbc-card.is-entering .gb-vec--b { animation: gb-vfade 0.7s ease 0.35s both; }
.gbc-card.is-entering .gb-vec--c { animation: gb-vfade 0.7s ease 0.55s both; }
.gbc-card.is-entering .gb-route { animation: gb-vfade 0.7s ease 0.75s both; }
@keyframes gb-vfade { from { opacity: 0; } to { opacity: 1; } }
.gbc-card.is-entering .gb-overlap { animation: gb-vfade 0.7s ease 0.7s both; }
/* Overlapping catchments multiply so shared streets read darker */
.gb-mult { mix-blend-mode: multiply; }

/* Heat blobs bloom in, then breathe gently while live */
.gb-heat { transform-box: fill-box; transform-origin: center; }
.gbc-card.is-entering .gb-heat--0 { animation: gb-bloom 0.8s cubic-bezier(0.34,1.3,0.64,1) 0.2s both; }
.gbc-card.is-entering .gb-heat--1 { animation: gb-bloom 0.8s cubic-bezier(0.34,1.3,0.64,1) 0.4s both; }
.gbc-card.is-entering .gb-heat--2 { animation: gb-bloom 0.8s cubic-bezier(0.34,1.3,0.64,1) 0.6s both; }
.gbc-card.is-live:not(.is-entering) .gb-heat { animation: gb-breathe 5s ease-in-out infinite; }
@keyframes gb-bloom { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes gb-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ── Markers (Leaflet divIcons) ─────────────────────────────── */
.gb-mk { background: none !important; border: 0 !important; }
.gb-drop { display: block; }
.gb-drop--school svg { display: block; filter: drop-shadow(0 3px 5px rgba(6,15,60,0.28)); }
.gb-car { display: block; transform-origin: center; will-change: transform; filter: drop-shadow(0 2px 3px rgba(6,15,60,0.3)); }
.gbc-card.is-entering .gb-drop--school { animation: gb-mdrop 0.75s cubic-bezier(0.34,1.5,0.64,1) 0.55s both; }
@keyframes gb-mdrop { 0% { transform: translateY(-30px); opacity: 0; } 55% { opacity: 1; } 78% { transform: translateY(4px); } 100% { transform: translateY(0); opacity: 1; } }

.gb-drop--home { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.gb-drop--home-l { width: 150px; justify-content: flex-end; }
.gb-home-dot {
  width: 15px; height: 15px; flex-shrink: 0; border-radius: 50%;
  background: #fff; border: 4px solid var(--rose);
  box-shadow: 0 2px 6px rgba(6,15,60,0.30);
}
.gb-home-tag {
  font-family: "IBM Plex Mono", monospace; font-size: 9.5px; font-weight: 600;
  color: var(--rose); background: #fff; border: 1px solid #E7D3DB;
  border-radius: 7px; padding: 3px 7px; line-height: 1.2;
  box-shadow: 0 4px 12px -8px rgba(15,23,42,0.4);
}
.gb-home-tag u { display: block; text-decoration: none; font-weight: 500; color: var(--ink-faint); font-size: 8.5px; }
.gbc-card.is-entering .gb-drop--home { animation: gb-mdrop 0.7s cubic-bezier(0.34,1.5,0.64,1) 0.9s both; }

/* Score chips for the mock-exam map */
.gb-score {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 4px 8px; white-space: nowrap; box-shadow: 0 5px 14px -8px rgba(15,23,42,0.4);
}
.gb-score .gb-score-pin { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.gb-score b { font-weight: 700; color: var(--ink); }
.gb-score em { font-style: normal; font-weight: 700; }
.gb-score u { text-decoration: none; color: var(--ink-quiet, #94A3B8); font-weight: 500; }
.gb-score svg { margin-left: 1px; }
.gb-score--in { color: #166534; border-color: #C2E6CE; }
.gb-score--in .gb-score-pin, .gb-score--in em { color: #16A34A; background: #16A34A; }
.gb-score--in em { background: none; }
.gb-score--out { color: #9A3412; border-color: #ECC9B5; }
.gb-score--out .gb-score-pin { background: #C2724E; }
.gb-score--out em { color: #C2724E; }
.gb-pop { display: inline-flex; transform-origin: center bottom; }
.gbc-card.is-entering .gb-pop { animation: gb-pop 0.5s cubic-bezier(0.34,1.5,0.64,1) var(--d, 0ms) both; }
@keyframes gb-pop { from { opacity: 0; transform: scale(0.5) translateY(6px); } to { opacity: 1; transform: none; } }

/* Tagged school marker (commute bands) */
.gb-drop--school.gb-school-tagged { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.gb-school-pin { display: block; line-height: 0; }
.gb-school-tag {
  font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 3px 7px;
  line-height: 1.2; box-shadow: 0 4px 12px -8px rgba(15,23,42,0.4); color: #334155;
}
.gb-school-tag u { display: block; text-decoration: none; font-weight: 500; color: var(--ink-faint); font-size: 8px; margin-top: 1px; }
.gb-school-tag.gb-band--a { color: var(--gb-indigo); border-color: #CAD4EA; }
.gb-school-tag.gb-band--c { color: var(--brass-d); border-color: var(--brass-line); }

/* Priority-order panel (tier analysis) */
.gb-tierlist {
  position: absolute; z-index: 485; left: 6%; bottom: 7%;
  background: rgba(255,255,255,0.95); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 10px 7px; box-shadow: 0 6px 18px -10px rgba(15,23,42,0.34);
  font-family: "IBM Plex Mono", monospace; pointer-events: none;
}
.gbc-card.is-entering .gb-tierlist { animation: gb-fade 0.5s ease 0.9s both; }
.gb-tl-h { font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px; }
.gb-tl-row { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 600; color: #334155; line-height: 1.45; }
.gb-tl-row + .gb-tl-row { margin-top: 2px; }
.gb-tl-n { width: 13px; height: 13px; flex-shrink: 0; border-radius: 50%; background: #16244C; color: #fff; font-size: 8px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.gb-tl-p .gb-tl-n { background: var(--brass-d); }
.gb-tl-p { color: var(--brass-d); }
.gb-tl-sw { width: 12px; height: 12px; flex-shrink: 0; border-radius: 3px; }

/* ── Floating HTML chips ───────────────────────────────────── */
.gb-chip {
  position: absolute; z-index: 480;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 6px 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  color: #334155; line-height: 1.3; box-shadow: 0 6px 18px -10px rgba(15,23,42,0.32);
  opacity: 1; white-space: nowrap; pointer-events: none;
}
.gbc-card.is-entering .gb-chip { animation: gb-fade 0.5s ease both; }
.gbc-card.is-entering .gb-c1 { animation-delay: 0.2s; }
.gbc-card.is-entering .gb-c2 { animation-delay: 1.0s; }
@keyframes gb-fade { from { opacity: 0; } to { opacity: 1; } }
.gb-chip span { display: block; font-weight: 500; color: var(--ink-faint); font-size: 9px; margin-top: 2px; }
.gb-chip b { color: var(--ink); font-weight: 700; }

.gb-chip--search { left: 50%; top: 8%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; color: var(--gb-indigo); }
.gb-type { overflow: hidden; white-space: nowrap; display: inline-block; max-width: 64px; }
.gbc-card.is-entering .gb-type { animation: gb-type 0.7s steps(8) 0.45s both; }
@keyframes gb-type { from { max-width: 0; } to { max-width: 64px; } }
.gb-chip--verdict { left: 50%; bottom: 8%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; color: #166534; border-color: #BBE6C8; background: #F2FBF4; }
.gb-chip--verdict b { color: #166534; }
.gb-ok { width: 8px; height: 8px; border-radius: 999px; background: #22A559; flex-shrink: 0; display: inline-block; }
.gb-no { width: 8px; height: 8px; border-radius: 999px; background: #C2724E; flex-shrink: 0; display: inline-block; }

.gb-chip--toggle { left: 7%; top: 8%; display: inline-flex; gap: 0; padding: 3px; background: #EEF1F5; border-color: #DCE2EA; }
.gb-chip--toggle span { padding: 3px 9px; border-radius: 6px; color: var(--ink-faint); margin: 0; font-size: 10px; }
.gb-chip--toggle span.on { background: #fff; color: var(--gb-indigo); box-shadow: 0 1px 3px rgba(15,23,42,0.12); }

.gb-chip--read { right: 7%; top: 8%; color: var(--brass-d); }
.gb-chip--read b { display: block; font-size: 16px; margin-top: 1px; letter-spacing: -0.01em; }

.gb-chip--legend { left: 50%; bottom: 7%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; color: var(--ink-faint); font-size: 9.5px; }
.gb-chip--legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.gb-chip--legend i + i, .gb-chip--legend i { margin-left: 6px; }
.gb-chip--legend i:first-child { margin-left: 0; }

.gb-chip--label { left: 7%; top: 8%; max-width: 60%; white-space: normal; }
.gb-chip--score-you { left: 7%; top: 38%; color: var(--gb-indigo); }
.gb-chip--score-you b { display: block; font-size: 16px; margin-top: 1px; color: var(--ink); }

.gb-chip--heatkey { left: 50%; bottom: 7%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; color: var(--ink-faint); font-size: 9.5px; }
.gb-heatbar { width: 64px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #7C8AA0, #C99B43 55%, #B45309); display: inline-block; }

/* ── PDF report sheet overlay (mirrors the real Admissions Index Report) ── */
.gb-report {
  position: absolute; z-index: 490; right: 5%; top: 7%; bottom: 7%; width: 62%;
  background: #fff; border: 1px solid #E7E2D4; border-radius: 9px;
  box-shadow: 0 22px 44px -22px rgba(10,22,82,0.5), 0 2px 8px rgba(15,23,42,0.08);
  padding: 0; display: flex; flex-direction: column; overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
}
.gbc-card.is-entering .gb-report { animation: gb-rise 0.7s cubic-bezier(0.22,0.7,0.3,1) 0.35s both; }
@keyframes gb-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Masthead */
.gb-rep-mast { display: flex; align-items: flex-start; justify-content: space-between; padding: 7px 10px 5px; border-bottom: 1.5px solid var(--gb-navy); }
.gb-rep-wm { font-family: "Spectral", Georgia, serif; font-size: 12px; font-weight: 600; color: var(--gb-navy); line-height: 1; display: inline-flex; align-items: center; }
.gb-rep-wm i { font-style: italic; }
.gb-rep-glyph { width: 13px; height: 13px; margin-left: 2px; transform: translateY(0.5px); }
.gb-rep-ref { font-size: 6.5px; line-height: 1.35; color: var(--ink-faint); text-align: right; letter-spacing: 0.02em; }
.gb-rep-h1 { font-family: "Spectral", Georgia, serif; font-size: 11px; font-weight: 500; color: var(--ink); padding: 5px 10px 0; letter-spacing: -0.01em; }
.gb-rep-h1 b { font-weight: 600; }

/* Meta strip */
.gb-rep-meta { display: flex; gap: 0; margin: 5px 10px 0; border: 1px solid #EEEADB; border-radius: 5px; overflow: hidden; }
.gb-rep-meta span { flex: 1; padding: 3px 6px; font-size: 7px; font-weight: 600; color: #334155; line-height: 1.3; }
.gb-rep-meta span + span { border-left: 1px solid #EEEADB; }
.gb-rep-meta u { display: block; text-decoration: none; font-weight: 500; color: var(--ink-faint); font-size: 6px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1px; }

/* Category blocks */
.gb-rep-cat { margin: 5px 10px 0; border: 1px solid #EEEADB; border-radius: 5px; overflow: hidden; }
.gb-rep-cat-head { display: flex; align-items: center; gap: 6px; padding: 3px 7px; color: #fff; font-size: 7px; font-weight: 500; }
.gb-rep-cat-head b { font-weight: 700; letter-spacing: 0.04em; }
.gb-rep-cat-head i { margin-left: auto; font-style: normal; font-weight: 700; background: rgba(255,255,255,0.28); border-radius: 3px; padding: 0 4px; }
.gb-rep-r { display: flex; align-items: center; gap: 6px; padding: 2.5px 7px; font-size: 7.5px; color: #334155; }
.gb-rep-r + .gb-rep-r { border-top: 1px dashed #EEF0F2; }
.gb-rep-no { width: 12px; height: 12px; flex-shrink: 0; border-radius: 3px; color: #fff; font-size: 7px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.gb-rep-sch { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-rep-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.gb-rep-mins { color: var(--ink-faint); font-weight: 600; width: 22px; text-align: right; }
.gb-rep-pr { color: var(--brass-d); font-weight: 600; width: 50px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-rep-pr--n { color: #94A3B8; }

/* Footer */
.gb-rep-foot { margin-top: auto; padding: 5px 10px 5px; display: flex; align-items: center; justify-content: space-between; font-size: 7px; color: var(--ink-faint); border-top: 1px solid #EFEADC; }
.gb-rep-pg { color: var(--brass-d); }

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .gbc-card { transition: none; }
  .gb-vec, .gb-heat, .gb-chip, .gb-drop, .gb-pop, .gb-report { opacity: 1 !important; transform: none !important; }
  .gb-type { max-width: 64px !important; }
  .gbc-card .gbc-cta { opacity: 1 !important; transform: none !important; }
  .gbc[data-playing="true"] .gbc-progress > span { animation: none; width: 100%; }
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 920px) {
  .gbc { --card-w: 400px; --card-h: 420px; }
  .gbc[data-mode="editorial"] .gbc-card { transform: translateX(calc(var(--off) * 200px)) translateZ(calc(var(--adj) * -60px)) scale(calc(1 - var(--adj) * 0.18)); }
}
@media (max-width: 620px) {
  .gbc { --card-w: 300px; --card-h: 416px; }
  .gbc-media { height: 200px; }
  .gbc-head h2 { font-size: 27px; }
  .gbc[data-mode="editorial"] .gbc-card {
    transform: translateX(calc(var(--off) * 116px)) translateZ(calc(var(--adj) * -120px)) scale(calc(1 - var(--adj) * 0.16));
    opacity: calc(1 - var(--adj) * 0.6);
  }
  .gbc-card[data-abs="2"] { opacity: 0 !important; }
  .gb-report { width: 64%; }
}

/* ── "And the essentials" slim row (the two tools not in the carousel) ──
   Lifted from the prototype harness so the .slim-* styles ship with the
   carousel rather than living in a per-page <style> block. */
.slim-rule { max-width: 880px; margin: 34px auto 0; padding: 0 24px; display: flex; align-items: center; gap: 14px; }
.slim-rule::before, .slim-rule::after { content: ""; flex: 1; height: 1px; background: #DCD7C8; }
.slim-rule span { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #94908A; }
.slim-grid { max-width: 880px; margin: 18px auto 0; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.slim-card { display: flex; gap: 15px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.slim-card .ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--brass-tint); color: var(--gb-indigo); display: inline-flex; align-items: center; justify-content: center; }
.slim-card h4 { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: 16px; color: var(--ink); margin: 1px 0 5px; }
.slim-card p { font-size: 13px; line-height: 1.5; color: var(--ink-muted); margin: 0; }
@media (max-width: 620px) {
  .slim-grid { grid-template-columns: 1fr; }
}
