/* ==========================================================================
   PodCLASS Theme — Concept 2 "Modern & Professional" (navy / teal)
   Brand pack: PodCLASS_Concept_2_Brand_Pack
   Fonts (Google): Montserrat (600/700) + Inter (400/500/600)
   @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Inter:wght@400;500;600;800&display=swap');
   ========================================================================== */

:root {
  --navy:   #0D1B2A;
  --navy-2: #16283B;
  --teal:   #00B4B0;
  --teal-d: #018F8C;
  --mint:   #BDEFEA;
  --mint-2: #EAFBF9;
  --grey:   #56677A;
  --line:   #E6E8EB;
  --white:  #FFFFFF;
  --text:   #243447;

  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow: 0 18px 45px rgba(13, 27, 42, 0.12);

  /* legacy aliases used across site/schools pages */
  --blue: var(--teal);
  --blue-d: var(--teal-d);
  --yellow: var(--teal);
  --red: var(--navy);
  --tint: var(--mint-2);
  --ink: var(--navy);
  --paper: var(--white);
  --coral: var(--navy);
  --font-marker: var(--font-display);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--navy); margin: 0 0 18px; letter-spacing: -0.3px; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--grey); }
.lead { font-size: 1.2rem; }
a { color: var(--teal); }

.accent { color: var(--teal); }
.accent-y { color: var(--teal); }

/* legacy .marker (schools pages): quiet display accent */
.marker { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; transform: none !important; }

/* highlight (legacy .hl usage safe) */
.hl, .hl--coral, .hl--blue { background: none; padding: 0; color: var(--teal); }
.scribble::after { display: none; }
.scribble { white-space: normal; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; position: relative; }
.section--cloud, .section--tint { background: linear-gradient(135deg, var(--white), var(--mint-2)); }
.section--ink { background: var(--navy); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink p { color: #A9BACB; }

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 840px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---- Kicker label ---- */
.kicker { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 14px; }
.section--ink .kicker { color: var(--mint); }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 14px 24px; }
.nav-logo img { height: 42px; display: block; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--navy); text-decoration: none; padding: 9px 14px; border-radius: 8px; }
.nav-links a:hover { background: var(--mint-2); color: var(--teal-d); }
.nav--dark { background: rgba(13,27,42,0.94); border-bottom: 1px solid #223650; }
.nav--dark .nav-links a { color: #D7E1EE; }
.nav--dark .nav-links a:hover { background: #1B2E47; color: var(--mint); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; padding: 0 28px; border-radius: var(--radius-pill); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary, .btn--blue, .btn--yellow, .btn-coral, .btn--coral { background: var(--teal); border-color: var(--teal); color: var(--white); box-shadow: 0 10px 26px rgba(0,180,176,.28); }
.btn-primary:hover, .btn--blue:hover, .btn--yellow:hover { background: var(--teal-d); border-color: var(--teal-d); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); box-shadow: none; }
.section--ink .btn-ghost { color: var(--white); border-color: #ffffff44; }

/* ---- Cards ---- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.card--tape::before { display: none; }
.tilt-l, .tilt-r { transform: none; }
.card--blue { border-top: 4px solid var(--teal); }
.card--coral { border-top: 4px solid var(--navy); }
.card--yellow { border-top: 4px solid var(--mint); }

.step-num { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--white); background: var(--teal); display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; transform: none; border: none; margin-bottom: 14px; }

/* ---- Stat tiles ---- */
.stat { background: var(--mint-2); border-radius: var(--radius); padding: 22px 24px; }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: 2.3rem; color: var(--teal-d); line-height: 1; }
.stat .t { font-size: 0.9rem; color: var(--grey); margin-top: 8px; }

/* ---- Waveform motif ---- */
.wavebar { display: flex; align-items: flex-end; gap: 9px; }
.wavebar b { display: block; width: 14px; border-radius: 7px 7px 0 0; background: var(--teal); }

/* ---- Chips / stickers (legacy) ---- */
.chip, .sticker { display: inline-flex; align-items: center; justify-content: center; text-align: center; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; background: var(--mint-2); color: var(--teal-d); border: none; box-shadow: none; padding: 8px 16px; border-radius: var(--radius-pill); transform: none !important; }
.chip--blue { background: var(--mint-2); color: var(--teal-d); }
.sticker--round { width: auto; height: auto; border-radius: var(--radius-pill); padding: 8px 16px; font-size: 0.85rem; }
.sticker--yellow { background: var(--mint-2); color: var(--teal-d); }
.sticker--coral { background: #EDEFF2; color: var(--navy); }
.sticker--blue { background: var(--mint-2); color: var(--teal-d); }
.sticker--mint { background: var(--mint-2); color: var(--teal-d); }

/* ---- Ticker → clean divider strip ---- */
.ticker { background: var(--navy); border: none; overflow: hidden; transform: none; }
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker span { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.95rem; color: #7E93A9; padding: 14px 28px; white-space: nowrap; }
.ticker span:nth-child(even) { color: var(--mint); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- Episode players (public + schools) ---- */
.cassette { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; display: flex; align-items: center; gap: 16px; transform: none !important; }
.cassette .reels { display: flex; align-items: flex-end; gap: 4px; flex: none; height: 30px; }
.cassette .reel { width: 6px; height: 22px; border: none; border-radius: 3px; background: var(--teal); }
.cassette .reel:first-child { height: 14px; background: var(--mint); }
.cassette:hover .reel, .cassette.playing .reel { animation: eq 0.9s ease-in-out infinite alternate; }
.cassette.playing .reel:first-child { animation-delay: .2s; }
@keyframes eq { from { transform: scaleY(0.5); } to { transform: scaleY(1.15); } }
.cassette h4 { font-family: var(--font-display); margin: 0; font-size: 1.02rem; color: var(--navy); text-transform: none; }
.cassette small { font-family: var(--font-body); color: var(--grey); }
.cassette .play { margin-left: auto; flex: none; width: 46px; height: 46px; border: none; border-radius: 50%; background: var(--teal); color: #fff; font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 16px rgba(0,180,176,.35); font-family: inherit; padding: 0; }
.cassette .play:hover { background: var(--teal-d); transform: none; box-shadow: 0 6px 16px rgba(0,180,176,.45); }

/* ---- Forms ---- */
.input, textarea.input { width: 100%; padding: 15px 18px; font-family: var(--font-body); font-size: 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); box-shadow: none; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,180,176,.15); }
.input::placeholder { font-family: var(--font-body); color: #93A3B5; }

/* ---- Footer ---- */
.footer { background: var(--navy); color: #A9BACB; border-top: none; padding: 52px 0; font-size: 0.92rem; }
.footer a { color: var(--mint); }

/* ---- Admin table (schools/admin) ---- */
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { font-family: var(--font-display); font-weight: 700; font-size: .8rem; background: var(--mint-2); }
.code-badge { font-family: var(--font-display); font-weight: 700; background: var(--navy); color: var(--mint); padding: 5px 12px; border-radius: 8px; letter-spacing: 1px; display: inline-block; }
.mini { font-size: .85rem; padding: 9px 16px; box-shadow: none; min-height: 40px; }
.ep { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-size: .93rem; }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .section { padding: 60px 0; }
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.55rem; }
  .nav-inner { padding: 10px 14px; gap: 8px; flex-wrap: wrap; justify-content: center; }
  .nav-logo img { height: 34px; }
  .nav-links { gap: 0; flex-wrap: wrap; justify-content: center; }
  .nav-links a { font-size: 0.82rem; padding: 7px 9px; }
  .sticker { position: static !important; margin: 14px 10px 0 0; }
  .arrow-doodle { display: none; }
  .cassette { padding: 14px 14px; gap: 12px; }
  .cassette .play { width: 42px; height: 42px; }
  .ticker span { font-size: 0.8rem; padding: 10px 18px; }
  .btn { padding: 0 22px; font-size: 0.95rem; }
  .stat .n { font-size: 1.9rem; }
}
