:root{
  /* Netter-inspired palette (primaries first). */
  --oxford:#0C2340;        /* primary text, headers */
  --prussian:#12233E;      /* nav background, accents */
  --cerulean:#479EC3;      /* primary accent */
  --carolina:#418FDE;      /* secondary accent */
  --alice:#E9ECEF;         /* light background */
  --goldenrod:#FFB819;     /* highlight/accent */
  --muted-red:#D1495B;     /* reserve */
  --eucalyptus:#4CA585;    /* reserve */
  --neutral:#C4C4C4;       /* neutral UI */
  --dark-gray:#666666;     /* body text */

  --space-1: .5rem; --space-2: .75rem; --space-3: 1rem; --space-4: 1.5rem; --space-5: 2rem;
  --radius: 16px;
  --shadow: 0 10px 20px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

html,body{height:100%;}
body{
  margin:0; font-family:var(--font); color:var(--dark-gray);
  background:linear-gradient(180deg, #fff 0, var(--alice) 100%);
}

/* ----------------- Top Nav ----------------- */
.app-header{
  position:sticky; top:0; z-index:10;
  backdrop-filter:saturate(180%) blur(8px);
  background:rgba(233,236,239,.8); border-bottom:1px solid #dde3ea;
}
.nav{max-width:1100px; margin:0 auto; display:flex; align-items:center; gap:var(--space-3); padding:var(--space-2) var(--space-3);}
.brand{font-size:1rem; letter-spacing:.02em; font-weight:700; color:var(--oxford);}
.tabs{display:flex; gap:.25rem; overflow:auto; scrollbar-width:none;}
.tab{
  white-space:nowrap; padding:.4rem .7rem; border-radius:999px;
  border:1px solid #d6dde5; background:#fff; font-size:.85rem; color:#314254; cursor:pointer;
}
.tab[aria-selected="true"]{background:var(--prussian); color:white; border-color:var(--prussian);}
.tab:hover:not([aria-selected="true"]) { background: var(--cerulean); color:#fff; border-color:var(--cerulean); transition: all .15s ease-in-out; }
.tab:focus-visible { outline: 3px solid var(--cerulean); outline-offset: 2px; transition: outline .15s ease-in-out; }
.spacer{flex:1}
.progress{font-size:.8rem; color:#445;}

/* ----------------- Layout ----------------- */
.shell{max-width:1100px; margin:0 auto; padding:var(--space-4) var(--space-3) var(--space-5);}
section.panel{display:none;}
section.panel[aria-hidden="false"]{display:block;}

.card{background:#fff; border:1px solid #e5e9f0; border-radius:var(--radius); box-shadow:var(--shadow); padding:var(--space-4);}
.lede{font-size:1.2rem; line-height:1.5;}
h1,h2,h3{color:var(--oxford); margin:.2rem 0 .6rem;}
h1{font-size:1.8rem;} h2{font-size:1.3rem;} h3{font-size:1.05rem; color:var(--prussian)}

.viz{
  height:380px; border-radius:12px; border:1px dashed #d8dde3;
  background:linear-gradient(180deg,#fff, #f9fbfc);
  margin-bottom:48px; 
}
.row{display:grid; grid-template-columns:1.2fr 1fr; gap:var(--space-4);}
@media (max-width: 900px){ .row{grid-template-columns:1fr;} }

/* Prev/Next */
.pager{display:flex; justify-content:space-between; align-items:center; margin-top: var(--space-5);}
.btn{appearance:none; border:none; border-radius:12px; padding:.8rem 1rem; font-weight:600; box-shadow:var(--shadow); cursor:pointer;}
.btn:disabled{opacity:.4; cursor:not-allowed;}
.btn-primary{background:var(--carolina); color:#fff;}
.btn-secondary{background:#fff; border:1px solid #d6dde5;}

/* Legend + tokens */
.legend{display:flex; gap:1rem; flex-wrap:wrap;}
.dot{width:12px; height:12px; border-radius:999px; display:inline-block; margin-right:.4rem; vertical-align:middle;}
.dot-me{background:var(--cerulean);} .dot-mer{background:var(--goldenrod);} .dot-dnm{background:var(--prussian);}

/* Tooltips */
.tooltip{
  position:absolute; pointer-events:none; background:#fff; border:1px solid #d6dde5;
  border-radius:10px; padding:.5rem .6rem; font-size:.85rem; box-shadow:var(--shadow);
  transition: opacity 0.1s ease-in-out;
}
svg, .viz svg, .chart svg { overflow: visible; } /* allow long ticks to extend */

/* Accessibility helpers */
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}

/* ----------------- Tab 1 (Intro / Circles) ----------------- */
.intro-section{ text-align:center; padding:16px 10px 8px; color:var(--oxford); max-width:1100px; margin:0 auto; }
.intro-section h1{ font-size:2rem; margin:0 0 .25rem; letter-spacing:.2px; }
.intro-section h2{ font-size:1.05rem; color:#479EC3; margin:0 0 .75rem; font-weight:700; }
.intro-section .intro-body{
  margin: 12px auto 10px;
  line-height: 1.45;
  max-width: 760px;
  text-align: center;
}
.intro-section .micro-note {
  text-align: center;
  margin: 6px 0 18px;
  font-weight: 600;
  color: var(--oxford);
  opacity: .9;
}

/* Instructional micro-note (left-aligned, aligned with title/subtitle/filter) */
.micro-note-left {
  text-align: left;
  font-weight: 600;
  color: var(--oxford);
  opacity: 0.9;
  margin: 6px 0 10px 0;   
  max-width: 820px;
  padding-left: 0;       
}

/* Circles */
.circle-container{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:1.4rem; }
.flip-card{ width:140px; height:140px; perspective:1000px; cursor:pointer; border:none; background:transparent; }
.flip-card.center{ width:180px; height:180px; }
.flip-inner{ position:relative; width:100%; height:100%; transform-style:preserve-3d; transition:transform .7s; }
.flip-card:hover .flip-inner{ transform:rotateY(180deg); }
.flip-front, .flip-back{
  position:absolute; inset:0; border-radius:50%; overflow:hidden;
  backface-visibility:hidden; -webkit-backface-visibility:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
}
.flip-front img{ width:100%; height:100%; object-fit:cover; }
.flip-back{ background:var(--cerulean); color:#fff; transform:rotateY(180deg); display:flex; align-items:center; justify-content:center; padding:14px; font-size:.9rem; }

/* Keyboard/focus */
.flip-card:focus-visible{ outline: 3px solid var(--goldenrod); outline-offset: 3px; }
.flip-card:hover, .flip-card:focus { outline: 3px solid #479EC3; outline-offset: 4px; }

/* Responsive circle sizing */
@media (max-width:680px){
  .flip-card{ width:120px; height:120px; }
  .flip-card.center{ width:150px; height:150px; }
  .intro-section h1{ font-size:1.6rem; }
}
/* Optional larger variant */
.big-circles .flip-card{ width:160px; height:160px; }
.big-circles .flip-card.center{ width:200px; height:200px; }

/* Details panel (below circles, centered) */
.details-panel{
  background:#f9fafc;
  border:1px solid #e6edf4;
  border-top: 1px solid #e5ebf2;
  border-radius:16px;
  padding:16px 18px;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  margin-top: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.details-panel h3{ margin:0 0 .5rem; font-size:1.1rem; color:var(--oxford); }
.details-grid{
  display:grid;
  grid-template-columns: auto 1fr;
  gap:.35rem .8rem;
  margin:.25rem 0 0;
}
.details-grid dt{ font-weight:700; color:var(--prussian); }
.details-grid dd{ margin:0; }

/* (Legacy layout) */
.intro-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items:start; max-width:1100px; margin:0 auto;
}
@media (max-width: 900px){ .intro-grid{ grid-template-columns: 1fr; } }

/* ----------------- Tab 2 (Problem) ----------------- */
.problem-section {
  text-align: center;
  padding: 1rem 1.5rem 2rem; 
}

.section-title {
  font-size: clamp(24px, 2.2vw, 28px);
  font-weight: 800;
  color: var(--oxford);
  margin: 6px 0 4px;
}

.section-subtitle {
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 700;
  color: #479EC3;
  margin: 0 0 14px;
}

/* --- Tab 2 (The Challenge): Align title, subtitle, and paragraphs --- */
#panel-challenge .section-title,
#panel-challenge .section-subtitle,
#panel-challenge .problem-intro {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 840px;  
}

/* Slightly tighten vertical spacing to match later tabs */
#panel-challenge .section-title {
  margin-top: 0.25rem;
  margin-bottom: 4px;
}

#panel-challenge .section-subtitle {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--cerulean);  
  font-weight: 700;
  font-size: 1.05rem;     
  line-height: 1.45;
}

.hero-figure {
  margin: 14px auto 22px; 
  max-width: 720px;
}

.hero-img {
  width: 75%;             
  max-width: 720px;
  display: block;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(20,48,80,.08);
}

.problem-intro {
  text-align: left;
  max-width: 840px;
  margin: 0 auto 14px;
  color: var(--oxford);
}
.problem-intro p { margin: 6px 0; line-height: 1.5; }
.problem-intro p.tight { margin: 6px 0; }
.problem-intro p.italic { font-style: italic; opacity: 0.9; }

/* Highlighted “Put simply” line — bold, italic, Oxford blue */
#panel-challenge .highlight-quote {
  font-weight: 700;
  font-style: italic;
  color: var(--oxford);
  margin: 10px 0;
  display: block;
}

.hero-figure { margin: 18px auto 6px; max-width: 980px; }
.hero-img {
  width: 75%;                /* was 100% */
  max-width: 720px;          /* prevents it from getting too wide on large screens */
  display: block;
  margin: 0 auto;            /* keep centered */
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(20,48,80,.08);
}
.epigram { margin-top: 8px; font-weight: 600; color: var(--prussian); }

/* Optional: small flourish on image hover */
.fish-illustration img {
  max-width: 85%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-top: 1rem;
  transition: transform 0.3s ease;
}
.fish-illustration img:hover { transform: scale(1.02); }

/* ── Tab 2 (The Challenge) — align left like Tab 1 ───────────────────── */

#panel-challenge .section-title,
#panel-challenge .section-subtitle,
#panel-challenge .problem-intro {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;       /* matches paragraph width from other tabs */
}

/* Tighten title spacing to align visually with Tab 1 */
#panel-challenge .section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--oxford);
  margin-top: 0.25rem;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

/* Subtitle matches color and size of Tab 1 subtitle */
#panel-challenge .section-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cerulean);    
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.45;
}

/* Paragraph block style */
#panel-challenge .problem-intro p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--oxford);
  margin: 8px 0;
}

/* Maintain image centered beneath the text (optional contrast) */
#panel-challenge .hero-figure {
  text-align: center;
  margin: 16px auto 22px;
  max-width: 720px;
}

#panel-challenge .card {
  padding: 1.25rem 1.5rem 2rem;  /* same internal rhythm as Tab 1 */
}

/* ── Tab 3 (Early Signals) — final alignment + polish ───────────────────────────── */

/* Match top spacing to Tabs 1–2 */
#panel-problem .card,
section#panel-problem {
  padding-top: 1.25rem !important; 
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 2rem;
}

/* Title + subtitle */
#panel-problem h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--oxford);
  margin-top: 0.25rem;       
  margin-bottom: 4px;
  text-align: left;
  letter-spacing: .2px;
}

#panel-problem .lede {
  font-size: 1.05rem;
  font-weight: 700;
  color: #479EC3;
  margin-top: 0;
  margin-bottom: 14px;
  text-align: left;
  line-height: 1.45;
}

/* Filter row */
#panel-problem .filter-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 10px;
}
#panel-problem .filter-row label {
  font-weight: 700;
  color: var(--oxford);
}
#panel-problem .filter-row select {
  padding: 6px 10px;
  border: 1px solid #d6dde5;
  border-radius: 8px;
  background: #fff;
}

/* Chart container */
#panel-problem .viz {
  border: none;
  background: transparent;
  box-shadow: none;
  margin-top: 6px;
  margin-bottom: 28px;
}

/* Body text under chart */
#panel-problem .chart-description {
  font-size: 0.95rem;
  color: var(--oxford);
  line-height: 1.55;
  max-width: 820px;
  margin: 10px auto 0;
  text-align: left;
}

/* ——— Tab 3 (Early Signals) — align title position with Tabs 1 & 2 ——— */

/* Add an extra “inner” top padding layer to the Tab 3 card only */
section#panel-problem > .card {
  /* base card padding is var(--space-4) = 1.5rem; add ~1rem more */
  padding-top: calc(var(--space-4) + 1rem) !important;
}

/* Keep the title’s own margin compact (we’re adding space via the card) */
section#panel-problem > .card > h1 {
  margin-top: 0;          /* don’t fight the new padding */
  margin-bottom: 4px;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--oxford);
  text-align: left;
  letter-spacing: .2px;
}

/* Subtitle: match Tabs 1–2 sizing/color and left-align */
section#panel-problem > .card > .lede {
  font-size: 1.05rem;     /* same as Tab 1 subtitle */
  font-weight: 700;
  color: #479EC3;         /* cerulean */
  line-height: 1.45;
  margin: 0 0 14px;
  text-align: left;
}

/* Chart container tidy */
section#panel-problem .viz {
  border: none;
  background: transparent;
  box-shadow: none;
  margin-top: 6px;
  margin-bottom: 28px;
}

/* Paragraph under the chart: match Tab 2 body copy */
section#panel-problem .chart-description {
  font-size: 0.95rem;
  color: var(--oxford);
  line-height: 1.55;
  max-width: 820px;
  margin: 10px auto 0;
  text-align: left;
}

/* Filter row (kept for completeness) */
section#panel-problem .filter-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 10px;
}
section#panel-problem .filter-row label {
  font-weight: 700;
  color: var(--oxford);
}
section#panel-problem .filter-row select {
  padding: 6px 10px;
  border: 1px solid #d6dde5;
  border-radius: 8px;
  background: #fff;
}

/* --- Tab 3: remove extra outer gap above the card (panel-level) --- */
section#panel-problem {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Keep the inner spacing we want inside the card  */
section#panel-problem > .card {
  padding-top: calc(var(--space-4) + 1rem) !important; 
}

/* (Already added earlier) title + subtitle rules remain as-is */
section#panel-problem > .card > h1 { margin-top: 0; margin-bottom: 4px; }
section#panel-problem > .card > .lede { margin-top: 0; margin-bottom: 14px; }

/* Tab 3: richer paragraph + bullets under the chart */
#panel-problem .chart-description {
  max-width: 820px;
  margin: 10px auto 0;
  color: var(--oxford);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: left;
}

#panel-problem .chart-description .chart-subhead {
  margin: 14px 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--oxford);
}

#panel-problem .chart-description .chart-subhead.key {
  text-transform: uppercase;
  letter-spacing: .02em;
}

#panel-problem .chart-description .chart-bullets {
  margin: 6px 0 12px 1.2rem;   /* small left indent for bullets */
  padding: 0;
}

#panel-problem .chart-description .chart-bullets li {
  margin: 6px 0;
  line-height: 1.55;
}

/* --- Tab 4 (LASSI) — final spacing + fixed layout box --- */
#panel-lassi .viz {
  position: relative;
  display: block;
  overflow: hidden;          /* keeps SVG inside */
  border: none;
  background: transparent;
  box-shadow: none;
  height: 520px;             /* fixed height to prevent layout jump */
  margin: 8px 0 24px;        /* consistent breathing room */
}

/* --- Tab 4 (LASSI) — final spacing + fixed layout box --- */
#panel-lassi .viz {
  position: relative;
  display: block;
  overflow: hidden;          /* keeps SVG inside */
  border: none;
  background: transparent;
  box-shadow: none;
  height: 520px;             /* fixed height to prevent layout jump */
  margin: 8px 0 24px;        /* consistent breathing room */
}

@media (max-width: 900px) {
  #panel-lassi .viz {
    height: 620px;
  }
}

#panel-lassi .lassi-help {
  font-weight: 600;
  color: var(--oxford);
  text-align: left;
  margin: 0 0 12px 0;         /* small breathing room */
}

#panel-lassi .chart-description {
  max-width: 820px;
  margin: 8px auto 0;
  color: var(--oxford);
  line-height: 1.55;
  text-align: left;
  font-size: 0.95rem;
}

#panel-lassi .lassi-bands {
  max-width: 820px;
  margin: 8px auto 0;
  padding-left: 1.2rem;
  color: var(--oxford);
  font-size: 0.95rem;
  line-height: 1.5;
}
#panel-lassi .lassi-bands li {
  margin-bottom: 4px;
}

/* ── LASSI Treemap Tooltip Polish ───────────────────────────── */
.tooltip {
  max-width: 340px;
  border-radius: 12px;
  border: 1px solid #d6dde5;
  box-shadow: 0 8px 22px rgba(20,48,80,0.1), 0 2px 8px rgba(0,0,0,0.04);
  background: #ffffff;
  padding: 0.85rem 1rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--oxford);
}

/* Make LASSI tooltips feel more structured */
.tooltip strong,
.tooltip b {
  color: var(--oxford);
}

.tooltip ul {
  margin: 0.3rem 0 0.4rem 1rem;
  padding: 0;
  list-style-type: disc;
}

.tooltip li {
  margin-bottom: 0.25rem;
}

/* Blue accent border (matches Tab 1–3 highlights) */
.tooltip::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(71,158,195,0.15); /* var(--cerulean) tint */
  border-radius: 12px;
  pointer-events: none;
}

/* ── Tab 4 (Self-Regulation / LASSI) — match Tabs 1–3 ─────────────────────────── */
#panel-lassi .card {
  padding: 1.25rem 1.5rem 2rem;
}

#panel-lassi h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--oxford);
  margin-top: 0.25rem;
  margin-bottom: 4px;
  text-align: left;
  letter-spacing: .2px;
}

#panel-lassi .lede {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cerulean);
  margin-top: 0;
  margin-bottom: 14px;
  text-align: left;
  line-height: 1.45;
}

#panel-lassi .chart-description { max-width: 820px; margin-left: auto; margin-right: auto; text-align: left; }

/* --- Tab 4 (LASSI) — final spacing + fixed layout box --- */
#panel-lassi .viz {
  position: relative;
  display: block;
  overflow: hidden;          /* keeps SVG inside */
  border: none;
  background: transparent;
  box-shadow: none;
  height: 520px;             /* fixed height to prevent layout jump */
  margin: 8px 0 24px;        /* consistent breathing room */
}

@media (max-width: 900px) {
  #panel-lassi .viz {
    height: 620px;
  }
}

@media (max-width: 900px){
  #panel-lassi .viz{ height: 620px; }  /* extra room on narrower screens */
}

/* subtitle + body copy match Tabs 1–3 */
#panel-lassi h1{
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--oxford);
  margin: 6px 0 4px;
  text-align: left;
  letter-spacing: .2px;
}
#panel-lassi .lede{
  font-size: 1.05rem;
  font-weight: 700;
  color: #479EC3;
  margin: 0 0 14px;
  line-height: 1.45;
  text-align: left;
}
#panel-lassi .chart-description{
  max-width: 820px;
  margin: 10px auto 0;
  color: var(--oxford);
  line-height: 1.55;
  text-align: left;
}

/* ── Tab 6 (Coaching Needs) — match Tabs 1–4 ─────────────────────────── */
#panel-needs .card { padding: 1.25rem 1.5rem 2rem; }

#panel-needs h1{
  font-size: 1.8rem; font-weight: 800; color: var(--oxford);
  margin-top: .25rem; margin-bottom: 4px; text-align: left; letter-spacing: .2px;
}
#panel-needs .lede{
  font-size: 1.05rem; font-weight: 700; color: var(--cerulean);
  margin: 0 0 14px; text-align: left; line-height: 1.45;
}

/* Remove dashed frame for this chart, keep consistent spacing/height */
#panel-needs .viz{
  border: none; background: transparent; box-shadow: none;
  margin: 6px 0 28px; height: 460px;
}
@media (max-width: 900px){ #panel-needs .viz{ height: 520px; } }

/* Controls row style (dropdown + slider) */
#panel-needs .filter-row{
  display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; margin:0 0 8px;
}
#panel-needs .filter-row label{
  font-weight:700; color: var(--oxford);
}
#panel-needs .filter-row select{
  padding:6px 10px; border:1px solid #d6dde5; border-radius:8px; background:#fff;
}

/* Micro note (instruction) aligns with title/subtitle */
#panel-needs .micro-note-left{
  text-align:left; font-weight:600; color:var(--oxford); opacity:.9;
  margin: 0 0 10px; max-width:820px; padding-left:0;
}

/* Body text under chart */
#panel-needs .chart-description{
  max-width:820px; margin:10px auto 0; color:var(--oxford);
  font-size:.95rem; line-height:1.55; text-align:left;
}

#panel-needs .viz {
  margin-bottom: 50px; /* was 28px — gives extra space before the paragraph */
}

#panel-needs .chart-description b {
  display: inline-block;
  margin-bottom: 4px;
}

/* Tab 7 (Workload): tidy the chart container + spacing */
#panel-workload .viz {
  border: none;
  background: transparent;
  box-shadow: none;
  height: 520px;      
  margin: 8px 0 28px; 
}

/* Keep the micro-instruction aligned under the subtitle */
#panel-workload .micro-note-left {
  margin: 6px 0 10px;
}

/* Paragraph block under the chart */
#panel-workload .chart-description {
  max-width: 820px;
  margin: 10px auto 0;
  color: var(--oxford);
  line-height: 1.55;
  font-size: 0.95rem;
  text-align: left;
}

/* ── Tab 7 (Coaching Workload) — match style & tighten spacing ───────────── */
#panel-workload .card {
  padding: 1.25rem 1.5rem 2rem;
}

#panel-workload h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--oxford);
  margin: 6px 0 4px;
  text-align: left;
  letter-spacing: .2px;
}

#panel-workload .lede {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cerulean);   /* same subtitle color as other tabs */
  margin: 0 0 14px;         /* same bottom spacing as others */
  line-height: 1.45;
  text-align: left;
}

/* Beeswarm container: no dashed frame, smaller gap below */
#panel-workload .viz {
  border: none;
  background: transparent;
  box-shadow: none;
  height: 440px;            /* fits your swarm + axis nicely */
  margin-bottom: 22px;      /* ↓ tighten space to paragraph */
}

@media (max-width: 900px){
  #panel-workload .viz { height: 520px; }
}

/* Paragraphs under the chart (keep consistent look) */
#panel-workload .chart-description {
  max-width: 820px;
  margin: 8px auto 0;       /* gentle space above, no big gaps */
  color: var(--oxford);
  line-height: 1.55;
  text-align: left;
  font-size: 0.95rem;
}

/* If you show the “micro-instruction” line above the chart */
#panel-workload .micro-note-left {
  margin: 6px 0 10px 0;
  font-weight: 600;
  color: var(--oxford);
  opacity: .9;
  max-width: 820px;
  padding-left: 0;
  text-align: left;
}

/* Workload (tab 7) container height */
#panel-workload .viz { height: 560px; }   /* was ~480–520px */
@media (max-width: 900px){ #panel-workload .viz { height: 640px; } }

#panel-workload .card { padding: 1.25rem 1.5rem 2rem; }
#panel-workload h1 { font-size:1.8rem; font-weight:800; color:var(--oxford); margin:.25rem 0 4px; text-align:left; }
#panel-workload .lede {
  font-size:1.05rem; font-weight:700; color:#479EC3;  
  margin:0 0 14px; line-height:1.45; text-align:left;
}
#panel-workload .viz { margin-bottom: 24px; }          /* trim extra gap */
#panel-workload .chart-description { max-width:820px; margin: 8px auto 0; }

.checkin-section h1 { margin-bottom: 4px; }
.checkin-section h2 { margin-top: 0; margin-bottom: 10px; }
.checkin-section p  { margin-top: 0; }

/* ── Tab 5 (Student Check-In) — match Tabs 1–4 ───────────────────────────── */

#panel-checkin .card {
  padding: 1.25rem 1.5rem 2rem;     /* same inner spacing rhythm */
}

/* Title */
#panel-checkin h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--oxford);
  margin-top: 0.25rem;
  margin-bottom: 4px;
  text-align: left;
  letter-spacing: .2px;
}

/* Subtitle (lede) */
#panel-checkin h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cerulean);
  line-height: 1.45;
  margin: 0 0 14px;
  text-align: left;
}

/* Body paragraph block */
#panel-checkin .intro-body {
  max-width: 820px;
  margin: 0 auto 8px;
  color: var(--oxford);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: left;
}

/* “Hover and click…” line — identical to Tab 1 style */
#panel-checkin .micro-note {
  text-align: center;
  margin: 6px 0 18px;
  font-weight: 600;
  color: var(--oxford);
  opacity: 0.9;
}

/* Circle row alignment — mirrors Tab 1 layout */
#panel-checkin .circle-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
}

/* Details panel */
#panel-checkin .details-panel {
  background: #f9fafc;
  border: 1px solid #e6edf4;
  border-top: 1px solid #e5ebf2;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  margin-top: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

#panel-checkin .details-panel h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
  color: var(--oxford);
}

#panel-checkin .details-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem .8rem;
  margin: .25rem 0 0;
}

#panel-checkin .details-grid dt {
  font-weight: 700;
  color: var(--prussian);
}

#panel-checkin .details-grid dd {
  margin: 0;
}

/* --- Tab 1 (Intro) — align text like Tab 5 --- */
#panel-intro .intro-body {
  margin: 12px auto 16px;  /* slightly more bottom space (was ~10px) */
  line-height: 1.55;       /* smooth rhythm for a 2–3 sentence paragraph */
  max-width: 760px;
  text-align: left;        /* align with other tabs for consistency */
  color: var(--oxford);
}

#panel-intro .intro-section h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--oxford);
  margin: 0 0 4px;
  letter-spacing: 0.2px;
  text-align: left;
}

#panel-intro .intro-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cerulean);
  margin: 0 0 14px;
  text-align: left;
  line-height: 1.45;
}

#panel-intro .intro-section .intro-body {
  margin: 0 0 14px;
  line-height: 1.55;
  max-width: 820px;
  color: var(--oxford);
  text-align: left;
}

/* Keep this centered instruction below circles */
#panel-intro .intro-section .micro-note {
  text-align: center;
  margin: 10px 0 18px;
  font-weight: 600;
  color: var(--oxford);
  opacity: 0.9;
}

/* Highlighted keywords (“when” / “why”) — bold, italic, Oxford blue */
#panel-intro .highlight-when,
#panel-intro .highlight-why {
  font-weight: 700;
  font-style: italic;
  color: var(--oxford);
}

/* ===== Unify page headers (Tabs 1 & 2) to match Tab 5 ===== */

/* --- Tab 1 (Meet the students) --- */
.intro-section{
  text-align: left;                 /* was center */
  padding: 1.25rem 1.5rem 2rem;     /* same rhythm as other tabs */
  max-width: 1100px;
  margin: 0 auto;
}
.intro-section h1{
  font-size: 1.8rem;                /* match other pages */
  font-weight: 800;
  color: var(--oxford);
  margin: .25rem 0 4px;
  letter-spacing: .2px;
}
.intro-section h2{
  font-size: 1.05rem;
  font-weight: 700;
  color: #479EC3;                   /* cerulean */
  margin: 0 0 14px;
  line-height: 1.45;
}
.intro-section .intro-body{
  max-width: 820px;
  margin: 0 0 12px 0;               /* left aligned block (no centering) */
  line-height: 1.55;
  color: var(--oxford);
  text-align: left;
}

/* keep the micro-note centered under the circles */
.intro-section .micro-note{ text-align:center; }

/* --- Tab 2 (The Challenge) --- */
.problem-section{
  text-align: left;                 /* align like Tab 1/5  */
  padding: 1.25rem 1.5rem 2rem;     /* same card spacing   */
}
.section-title{
  font-size: 1.8rem;                /* unify size */
  font-weight: 800;
  color: var(--oxford);
  margin: .25rem 0 4px;
  letter-spacing: .2px;
}
.section-subtitle{
  font-size: 1.05rem;
  font-weight: 700;
  color: #479EC3;
  margin: 0 0 14px;
  line-height: 1.45;
}

/* image sits just below the subtitle, same block feel */
.hero-figure{ margin: 6px 0 16px; }
.hero-img{
  width: 75%;
  max-width: 720px;
  margin: 0;                        /* no auto-centering gap */
  display: block;
}

/* body copy block */
.problem-intro{
  max-width: 820px;
  margin: 0 0 14px 0;
  color: var(--oxford);
  line-height: 1.55;
}
.problem-intro p{ margin: 6px 0; }
.problem-intro p.italic{
  font-style: italic;
  font-weight: 700;
  color: var(--oxford);             /* Oxford blue italic bold */
}

/* --- tiny utility used on Tab 1 for “when / why” accents --- */
.accent-oxford{
  color: var(--oxford);
  font-style: italic;
  font-weight: 700;
}