/* ==========================================================================
   STYLE: WARM EDITORIAL (Swiss Typographical & Warm Paper Canvas)
   Strictly aligned with .agents/skills/style-warm-editorial/SKILL.md
   Inspiration: Substack, ReadCV, Kinfolk, Classic Swiss Typography
   ========================================================================== */

:root {
  /* Surface & Canvas Tokens */
  --canvas-parchment: #FBF9F5;       /* Warm off-white paper canvas */
  --surface-paper: #FFFFFF;          /* Clean paper sheet */
  --surface-inset: #F3EFE6;          /* Quotes, footnotes, code excerpts, active filters */
  --divider-hairline: #E5E0D8;       /* 1px subtle hairline rule */
  
  /* Ink & Typography Tokens */
  --ink-primary: #1C1917;            /* Deep ink / Rich charcoal-black */
  --ink-secondary: #44403C;          /* Warm charcoal for reading body */
  --caption-stone: #78716C;          /* Earth stone for dates, metadata */
  --caption-muted: #A8A29E;          /* Muted borders, inactive elements */
  
  /* Editorial Accent Tokens */
  --accent-sage: #2E5A44;            /* Academic deep forest / sage */
  --accent-sage-bg: #EDF3EF;         /* Soft sage tint */
  --accent-terracotta: #C25E3E;      /* Editorial terracotta / rust */
  --accent-terracotta-bg: #FAF0EC;   /* Soft terracotta tint */
  --accent-ochre: #A16207;           /* Warm antique ochre */
  --accent-ochre-bg: #FEF9EE;        /* Soft ochre tint */
  --accent-cobalt: #1E3A5F;          /* Judicial deep navy */
  --accent-cobalt-bg: #F0F4F8;       /* Soft navy tint */

  /* Shadows (Soft Editorial Ambient Elevation) */
  --shadow-editorial: 0 4px 20px -2px rgba(28, 25, 23, 0.04);
  --shadow-subtle: 0 1px 3px 0 rgba(28, 25, 23, 0.03);
  --shadow-card: 0 2px 8px -1px rgba(28, 25, 23, 0.05);
  --shadow-popover: 0 16px 36px -4px rgba(28, 25, 23, 0.1);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Typography Families */
  --font-serif: 'Newsreader', Charter, Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
}

/* BASE RESET & CANVASES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--canvas-parchment);
  color: var(--ink-secondary);
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: -0.01em;
}

/* EDITORIAL MASTHEAD (TOP APP BAR) */
.editorial-masthead {
  background: var(--surface-paper);
  border-bottom: 1px solid var(--divider-hairline);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-subtle);
}

.masthead-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.masthead-brand {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.masthead-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink-primary);
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.1;
}

.masthead-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--caption-stone);
}

.masthead-badge {
  display: inline-flex;
  align-items: center;
  background: var(--surface-inset);
  border: 1px solid var(--divider-hairline);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
}

/* SWISS MINIMALIST ROLE TABS */
.editorial-tabs {
  display: flex;
  background: var(--surface-inset);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--divider-hairline);
  gap: 0.2rem;
}

.editorial-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--caption-stone);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.editorial-tab-btn:hover {
  color: var(--ink-primary);
}

.editorial-tab-btn.active {
  background: var(--surface-paper);
  color: var(--ink-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.06);
  border: 1px solid var(--divider-hairline);
}

/* EDITORIAL CONTENT CONTAINER */
.editorial-container {
  max-width: 1320px;
  margin: 2rem auto 4rem auto;
  padding: 0 1.5rem;
}

/* BROADSHEET COURSE GAZETTE BANNER */
.gazette-meta-strip {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-editorial);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.gazette-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.gazette-col {
  display: flex;
  flex-direction: column;
}

.gazette-caption {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--caption-stone);
  margin-bottom: 0.15rem;
}

.gazette-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-primary);
  line-height: 1.3;
}

.gazette-value-sans {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.gazette-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent-sage-bg);
  color: var(--accent-sage);
  border: 1px solid #C8DDD0;
}

/* TIMELINE RADAR - SWISS APPARATUS */
.editorial-radar-card {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-editorial);
}

.editorial-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--divider-hairline);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.editorial-section-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radar-subtext {
  font-size: 0.75rem;
  color: var(--caption-stone);
}

.radar-grid-editorial {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 0.85rem;
}

.radar-slot {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.radar-slot:hover {
  border-color: var(--ink-secondary);
  background: #FCFCFA;
  transform: translateY(-1px);
}

.radar-slot.active {
  border-color: var(--ink-primary);
  background: var(--surface-inset);
  box-shadow: 0 0 0 1px var(--ink-primary);
}

.slot-roman {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.slot-date {
  font-size: 0.68rem;
  color: var(--caption-stone);
  font-family: var(--font-mono);
}

.slot-body {
  margin: 0.5rem 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.slot-presenter {
  font-weight: 600;
  color: var(--ink-primary);
}

.slot-moderator {
  color: var(--caption-stone);
  font-size: 0.72rem;
}

/* WARM EDITORIAL STATUS BADGES */
.badge-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  width: fit-content;
}

.badge-editorial.selesai {
  background: var(--accent-sage-bg);
  color: var(--accent-sage);
  border: 1px solid #C8DDD0;
}

.badge-editorial.draft {
  background: var(--accent-ochre-bg);
  color: var(--accent-ochre);
  border: 1px solid #EFE0C2;
}

.badge-editorial.terkunci {
  background: var(--accent-terracotta-bg);
  color: var(--accent-terracotta);
  border: 1px solid #F3CEC3;
}

.badge-editorial.belum {
  background: var(--surface-inset);
  color: var(--caption-stone);
  border: 1px solid var(--divider-hairline);
}

/* GLOBAL SEARCH & FILTER TOOLBAR */
.editorial-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.editorial-input {
  flex: 1;
  min-width: 260px;
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--ink-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.editorial-input:focus {
  border-color: var(--ink-primary);
}

.editorial-select {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-primary);
  outline: none;
  cursor: pointer;
}

/* EDITORIAL ARTICLE/CARD SHEET */
.editorial-sheet {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-editorial);
  margin-bottom: 2rem;
}

.sheet-header-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--divider-hairline);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.sheet-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--caption-stone);
  margin-bottom: 0.35rem;
}

.sheet-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--ink-primary);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.sheet-prose {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin-top: 0.35rem;
}

/* AUTHENTICATION GATE (PINTU MASUK PIN MODERATOR) */
.auth-gate-card {
  background: var(--surface-inset);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  max-width: 620px;
  margin: 2rem auto;
  text-align: center;
  box-shadow: var(--shadow-editorial);
}

.auth-gate-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.auth-gate-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink-primary);
  margin-bottom: 0.5rem;
}

.auth-gate-desc {
  font-size: 0.88rem;
  color: var(--caption-stone);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.auth-gate-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 440px;
  margin: 0 auto;
}

.auth-gate-input {
  flex: 1;
  min-width: 220px;
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-primary);
  text-align: center;
  text-transform: uppercase;
  outline: none;
}

.auth-gate-input:focus {
  border-color: var(--ink-primary);
}

.auth-gate-hint {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--caption-stone);
  border-top: 1px dashed var(--divider-hairline);
  padding-top: 1rem;
}

/* STATS MATRIX (DOSEN) */
.editorial-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.kpi-tile {
  background: var(--surface-inset);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--caption-stone);
  margin-bottom: 0.5rem;
}

.kpi-numeral {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--ink-primary);
  line-height: 1;
}

.kpi-caption {
  font-size: 0.75rem;
  color: var(--caption-stone);
  margin-top: 0.5rem;
}

/* BUTTONS (ARTISANAL & TACTILE) */
.btn-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

.btn-ink {
  background: var(--ink-primary);
  color: #FFFFFF;
}

.btn-ink:hover {
  background: #2D2A26;
  transform: translateY(-1px);
}

.btn-stone {
  background: var(--surface-inset);
  color: var(--ink-primary);
  border-color: var(--divider-hairline);
}

.btn-stone:hover {
  background: #EAE5D9;
  border-color: #D3CDC2;
}

.btn-terracotta {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

.btn-terracotta:hover {
  background: #AB4E30;
}

.btn-outline-ink {
  background: transparent;
  color: var(--ink-primary);
  border-color: var(--ink-primary);
}

.btn-outline-ink:hover {
  background: var(--surface-inset);
}

.btn-sm-editorial {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

/* EDITORIAL DATA TABLES (ZERO VERTICAL BORDERS, CRISP HAIRLINES) */
.editorial-table-frame {
  overflow-x: auto;
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-paper);
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.editorial-table th {
  background: var(--surface-inset);
  color: var(--caption-stone);
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--divider-hairline);
}

.editorial-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--divider-hairline);
  vertical-align: middle;
  color: var(--ink-secondary);
}

.editorial-table tr:hover td {
  background: #FCFCFA;
}

.row-presenter-editorial td {
  background: #FAF8F2 !important;
}

.row-moderator-editorial td {
  background: #F4F7F5 !important;
}

.name-block {
  display: flex;
  flex-direction: column;
}

.student-editorial-name {
  font-weight: 600;
  color: var(--ink-primary);
  font-size: 0.9rem;
}

.student-editorial-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--caption-stone);
}

/* CODE CHIPS */
.chip-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  background: var(--surface-inset);
  color: var(--ink-primary);
  border: 1px solid var(--divider-hairline);
  min-width: 55px;
}

.chip-code.filled {
  background: var(--accent-sage-bg);
  color: var(--accent-sage);
  border-color: #B5D4C0;
}

.chip-code.absent {
  background: var(--accent-terracotta-bg);
  color: var(--accent-terracotta);
  border-color: #F1BDB1;
}

/* TALLY BUTTONS (MODERATOR DESK) */
.tally-action-cluster {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.tally-pill {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-xs);
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-mono);
  color: var(--ink-primary);
  transition: all 0.12s ease;
}

.tally-pill:hover {
  background: var(--surface-inset);
  border-color: var(--ink-secondary);
}

.tally-pill:active {
  transform: scale(0.96);
}

.tally-pill.tally-t {
  border-color: #BED8F0;
  color: #19466D;
  background: #F2F7FC;
}

.tally-pill.tally-t:hover {
  background: #E2EEF8;
}

.tally-pill.tally-m {
  border-color: #C8DDD0;
  color: var(--accent-sage);
  background: var(--accent-sage-bg);
}

.tally-pill.tally-m:hover {
  background: #DEEBE2;
}

.tally-pill.tally-x {
  border-color: #F3CEC3;
  color: var(--accent-terracotta);
  background: var(--accent-terracotta-bg);
}

.tally-pill.tally-reset {
  color: var(--caption-stone);
}

.tally-pill.tally-reset:hover {
  color: var(--accent-terracotta);
  border-color: #F3CEC3;
}

/* NOTE CARD & EVIDENCE FRAME */
.evidence-frame {
  background: var(--surface-inset);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.evidence-thumb-frame {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--divider-hairline);
  object-fit: cover;
  box-shadow: var(--shadow-subtle);
}

/* FLOATING DRAFT / SUBMIT CONSOLE FOR MODERATOR */
.moderator-dock {
  position: sticky;
  bottom: 1.5rem;
  background: var(--ink-primary);
  color: #FFFFFF;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-popover);
  margin-top: 2rem;
  z-index: 40;
}

.dock-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.dock-label {
  color: var(--caption-stone);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dock-btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* LEADERBOARD & TRANSPARENCY BANNER */
.transparency-masthead-card {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--shadow-editorial);
}

.leaderboard-trio {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.leaderboard-capsule {
  background: var(--surface-inset);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-xs);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.leaderboard-rank {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink-primary);
  font-style: italic;
}


/* ==========================================================================
   GATEWAY / ONBOARDING ROUTER (3-DOOR ZERO-CONFUSION APPARATUS)
   ========================================================================== */
.gateway-hero {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-editorial);
  text-align: center;
  position: relative;
}

.gateway-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-inset);
  border: 1px solid var(--divider-hairline);
  color: var(--caption-stone);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.gateway-hero-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--ink-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.gateway-hero-desc {
  font-size: 1rem;
  color: var(--ink-secondary);
  max-width: 680px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

/* Sesi Barometer Spotlight inside Hero */
.gateway-session-spotlight {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--canvas-parchment);
  border: 1px solid var(--divider-hairline);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-align: left;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.spotlight-item {
  display: flex;
  flex-direction: column;
}

.spotlight-caption {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--caption-stone);
}

.spotlight-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-primary);
}

/* 3-Door Cards Grid */
.gateway-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.gateway-card {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-editorial);
  transition: all 0.2s ease-in-out;
  position: relative;
  text-align: left;
}

.gateway-card:hover {
  transform: translateY(-4px);
  border-color: var(--caption-stone);
  box-shadow: var(--shadow-popover);
}

.gateway-card-header {
  margin-bottom: 1rem;
}

.gateway-card-icon {
  font-size: 2.25rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.gateway-card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.75rem;
}

.tag-student {
  background: var(--accent-sage-bg);
  color: var(--accent-sage);
  border: 1px solid #C8DDD0;
}

.tag-moderator {
  background: var(--accent-ochre-bg);
  color: var(--accent-ochre);
  border: 1px solid #EADBB6;
}

.tag-lecturer {
  background: var(--surface-inset);
  color: var(--ink-primary);
  border: 1px solid var(--divider-hairline);
}

.gateway-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.gateway-card-sub {
  font-size: 0.85rem;
  color: var(--caption-stone);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.gateway-card-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.gateway-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.gateway-card-features li strong {
  color: var(--ink-primary);
}

.gateway-card-btn {
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
  text-decoration: none;
  border: none;
}

/* Quick Rules Strip on Gateway */
.gateway-rules-strip {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-editorial);
}

.gateway-rules-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--divider-hairline);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.gateway-rules-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink-primary);
  font-weight: 500;
}

.gateway-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.rule-box {
  background: var(--surface-inset);
  padding: 1rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--divider-hairline);
}

.rule-box-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink-primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rule-box-desc {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

/* ROLE NAVIGATION BANNER (STICKY ON TOP OF ACTIVE SCREENS) */
.role-nav-banner {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-subtle);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-role-back {
  background: var(--surface-inset);
  border: 1px solid var(--divider-hairline);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-role-back:hover {
  background: var(--ink-primary);
  color: #FFFFFF;
}

.role-nav-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
}

.role-nav-current {
  font-weight: 700;
  color: var(--ink-primary);
}

/* STUDENT SEARCH HIGHLIGHT CALLOUT */
.student-search-spotlight {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-editorial);
}

.student-search-input-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.student-search-input-big {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  padding: 0.9rem 1.25rem 0.9rem 2.75rem;
  border: 2px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-paper);
  color: var(--ink-primary);
  transition: border-color 0.15s ease;
}

.student-search-input-big:focus {
  outline: none;
  border-color: var(--accent-sage);
  box-shadow: 0 0 0 3px rgba(46, 90, 68, 0.1);
}

.student-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: var(--caption-stone);
}

.sample-search-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--caption-stone);
}

.sample-chip {
  background: var(--surface-inset);
  border: 1px solid var(--divider-hairline);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.1s ease;
}

.sample-chip:hover {
  background: var(--ink-primary);
  color: #FFFFFF;
}

/* RESPONSIVE BREAKPOINTS (SWISS EDITORIAL RULE) */
@media (max-width: 900px) {
  .gateway-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .editorial-masthead {
    padding: 1rem;
  }
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .editorial-tabs {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }
  .editorial-tab-btn {
    flex: 1;
    justify-content: center;
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .gazette-columns {
    flex-direction: column;
    gap: 0.75rem;
  }
  .sheet-header-block {
    flex-direction: column;
  }
  .moderator-dock {
    flex-direction: column;
    align-items: stretch;
  }
  .dock-btns {
    justify-content: flex-end;
  }
}

/* VIEW PANELS */
.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--ink-primary);
  color: #FFFFFF;
  border: 1px solid var(--divider-hairline);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-popover);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  animation: slideIn 0.25s ease-out;
}

@keyframes slideIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   FEATURE 1: EQUITY RADAR (HARVARD TEACHLY & EQUITY MAPS)
   ========================================================================== */
.equity-radar-box {
  background: #FFFDF9;
  border: 1px solid #EEDCC6;
  border-left: 4px solid var(--accent-terracotta);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.equity-radar-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.equity-radar-icon {
  font-size: 1.6rem;
}

.equity-radar-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-primary);
  margin-bottom: 0.15rem;
}

.equity-radar-desc {
  font-size: 0.8rem;
  color: var(--caption-stone);
  line-height: 1.4;
}

.badge-equity {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  background: var(--accent-terracotta-bg);
  color: var(--accent-terracotta);
  border: 1px solid #F3D0C5;
}

/* ==========================================================================
   FEATURE 3: SOCRATIC MODERATOR PROMPT BANK (PARLAY IDEAS)
   ========================================================================== */
.socratic-drawer-card {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-editorial);
  overflow: hidden;
}

.socratic-drawer-header {
  padding: 1rem 1.5rem;
  background: var(--surface-inset);
  border-bottom: 1px solid var(--divider-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.socratic-drawer-header:hover {
  background: #EFEAE0;
}

.socratic-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.socratic-prompt-list {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.socratic-prompt-item {
  background: var(--canvas-parchment);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  transition: all 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.socratic-prompt-item:hover {
  border-color: var(--caption-stone);
  background: #FCFCFA;
}

.socratic-prompt-text {
  font-size: 0.88rem;
  color: var(--ink-primary);
  line-height: 1.5;
  font-style: italic;
}

.socratic-prompt-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-sage);
  background: var(--accent-sage-bg);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  border: 1px solid #C8DDD0;
}

/* ============================================================================
   FEATURE 5: ARGUMENT QUALITY TAGGING (+M⭐ / HOTS)
   ============================================================================ */
.tally-pill.tally-m-star {
  background: #FFF8E7;
  color: #8C6200;
  border-color: #E6CA65;
  font-weight: 700;
}

.tally-pill.tally-m-star:hover:not(:disabled) {
  background: #FFE8A3;
  border-color: #C69214;
  transform: translateY(-1px);
}

.chip-code.has-star {
  border-color: #E6CA65 !important;
  background: #FFFDF5 !important;
  color: #8C6200 !important;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(140, 98, 0, 0.1);
}

/* ============================================================================
   FEATURE 4: 48-HOUR DISPUTE & TRANSPARENCY WINDOW (KRITIK / PEERCEPTIV)
   ============================================================================ */
.dispute-panel-card {
  background: var(--surface-inset);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.dispute-panel-header {
  padding: 1rem 1.25rem;
  background: #F4EFEA;
  border-bottom: 1px solid var(--divider-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dispute-panel-header:hover {
  background: #EDE6DF;
}

.dispute-panel-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dispute-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 10px;
  background: var(--accent-terracotta);
  color: #fff;
  letter-spacing: 0.04em;
}

.dispute-count-badge.zero {
  background: var(--accent-sage);
}

.dispute-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--divider-hairline);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
  background: var(--canvas-parchment);
}

.dispute-item:last-child {
  border-bottom: none;
}

.dispute-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.dispute-status-pill.pending {
  background: #FFF3CD;
  color: #856404;
  border: 1px solid #FFEEBA;
}

.dispute-status-pill.accepted {
  background: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
}

.dispute-status-pill.rejected {
  background: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C6CB;
}

/* MODAL BACKDROP & DIALOG (EDITORIAL WARMTH) */
.editorial-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 27, 24, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.editorial-modal-card {
  background: var(--canvas-parchment);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-md);
  max-width: 580px;
  width: 100%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.editorial-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--divider-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-inset);
}

.editorial-modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

.editorial-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--divider-hairline);
  background: var(--surface-inset);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================================
   FEATURE: MODULAR COURSE SELECTOR BAR (FR-14)
   ========================================================================== */
.course-selector-bar {
  background: #FAF7F2;
  border-bottom: 1px solid var(--divider-hairline);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.course-selector-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.course-selector-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.course-dropdown {
  background: var(--surface-paper);
  border: 1.5px solid var(--divider-hairline);
  border-radius: var(--radius-xs);
  padding: 0.45rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 280px;
}

.course-dropdown:hover, .course-dropdown:focus {
  border-color: var(--accent-sage);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 90, 68, 0.1);
}

.course-selector-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FEATURE: TWO-ROUND DIALECTICAL DISCUSSION CONSOLE (FR-13)
   ========================================================================== */
.dialectical-console {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-editorial);
}

.dialectical-header {
  background: var(--surface-inset);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--divider-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.dialectical-title-cluster {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dialectical-rounds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

@media (max-width: 900px) {
  .dialectical-rounds-grid {
    grid-template-columns: 1fr;
  }
}

.round-card {
  background: var(--canvas-parchment);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.round-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--divider-hairline);
}

.round-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
}

.round-badge.round-1 {
  background: #FFF3CD;
  color: #856404;
  border: 1px solid #FFEEBA;
}

.round-badge.round-2 {
  background: var(--accent-sage-bg);
  color: var(--accent-sage);
  border: 1px solid #C8DDD0;
}

.round-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-top: 0.2rem;
}

.round-subtitle {
  font-size: 0.78rem;
  color: var(--caption-stone);
  margin-top: 0.15rem;
}

.q-item-box {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-xs);
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.q-item-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.q-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.q-num-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--surface-inset);
  color: var(--ink-primary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
}

.q-text-body {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.q-booking-tray {
  background: #FAF7F2;
  border-top: 1px dashed var(--divider-hairline);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.booking-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.5rem;
  background: var(--surface-paper);
  border: 1px solid #EBE5DB;
  border-radius: var(--radius-xs);
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}

.booking-item-name {
  font-weight: 600;
  color: var(--ink-primary);
}

.btn-approve-group {
  display: flex;
  gap: 0.35rem;
}

.btn-approve-m {
  background: var(--accent-sage);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-approve-hots {
  background: #B38600;
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-approve-t {
  background: var(--accent-cobalt);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-skip-q {
  background: transparent;
  color: var(--caption-stone);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-xs);
  padding: 0.25rem 0.45rem;
  font-size: 0.72rem;
  cursor: pointer;
}

.btn-approve-m:hover, .btn-approve-hots:hover, .btn-approve-t:hover {
  opacity: 0.9;
}

/* Presenter Target Cards (Round 2) */
.presenter-roster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.presenter-target-card {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-xs);
  padding: 0.85rem;
}

.presenter-target-name {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.presenter-target-meta {
  font-size: 0.75rem;
  color: var(--caption-stone);
  margin-bottom: 0.5rem;
}

.targeted-q-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.targeted-q-item {
  background: #FAF7F2;
  border: 1px solid #EBE5DB;
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}




/* ============================================================================
   PLUG & PLAY GOOGLE SHEETS & STANDARDIZED SCORE CODIFICATION (P, M, T, J, J+, A)
   ============================================================================ */
.btn-emerald {
  background: #1B5E20;
  color: #FFFFFF;
}

.btn-emerald:hover {
  background: #144618;
  transform: translateY(-1px);
}

.tally-pill.tally-p {
  border-color: #D3C5E5;
  color: #4B286D;
  background: #F6F2FA;
}

.tally-pill.tally-p:hover:not(:disabled) {
  background: #EBDFF5;
}

.tally-pill.tally-m-mod {
  border-color: #EADBB6;
  color: var(--accent-ochre);
  background: var(--accent-ochre-bg);
}

.tally-pill.tally-m-mod:hover:not(:disabled) {
  background: #F7ECD2;
}

.tally-pill.tally-j {
  border-color: #C8DDD0;
  color: var(--accent-sage);
  background: var(--accent-sage-bg);
}

.tally-pill.tally-j:hover:not(:disabled) {
  background: #DEEBE2;
}

.tally-pill.tally-j-plus {
  border-color: #E6CA65;
  color: #8C6200;
  background: #FFF8E7;
  font-weight: 700;
}

.tally-pill.tally-j-plus:hover:not(:disabled) {
  background: #FFE8A3;
  border-color: #C69214;
}

.tally-pill.tally-a {
  border-color: #F3CEC3;
  color: var(--accent-terracotta);
  background: var(--accent-terracotta-bg);
}

.tally-pill.tally-a:hover:not(:disabled) {
  background: #FADBD3;
}

.pnp-callout-card {
  background: #F4F9F5;
  border: 1px solid #CDE5D3;
  border-radius: var(--radius-xs);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: #1F4529;
}

.pnp-template-strip {
  background: #FFFDF5;
  border: 1px dashed #E6CA65;
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: #664B00;
}

/* ============================================================================
   EDUCATIONAL ONBOARDING HUB STYLES (WARM EDITORIAL)
   ============================================================================ */
.edu-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2.5rem auto;
  padding-top: 1rem;
}

.edu-hero-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 500;
  color: var(--ink-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.edu-hero-desc {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin: 0 auto 1.75rem auto;
}

.edu-callout-card {
  background: #FFFDF5;
  border: 1.5px solid #E6CA65;
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.75rem;
  text-align: left;
  box-shadow: 0 2px 8px rgba(140, 98, 0, 0.05);
}

.edu-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 820px) {
  .edu-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.edu-card {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-editorial);
  text-align: left;
}

.edu-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--caption-stone);
  margin-bottom: 0.5rem;
}

.edu-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 0.75rem;
}

.edu-card-prose {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.edu-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.83rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.edu-feature-list li strong {
  color: var(--ink-primary);
}

.edu-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.edu-mini-table th {
  border-bottom: 1.5px solid var(--divider-hairline);
  padding: 0.4rem 0.5rem;
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--caption-stone);
}

.edu-mini-table td {
  border-bottom: 1px solid var(--divider-hairline);
  padding: 0.45rem 0.5rem;
}

.tally-badge-p { color: #4B286D; background: #F6F2FA; padding: 1px 6px; border-radius: 4px; }
.tally-badge-m { color: var(--accent-ochre); background: var(--accent-ochre-bg); padding: 1px 6px; border-radius: 4px; }
.tally-badge-t { color: #19466D; background: #F2F7FC; padding: 1px 6px; border-radius: 4px; }
.tally-badge-j { color: var(--accent-sage); background: var(--accent-sage-bg); padding: 1px 6px; border-radius: 4px; }
.tally-badge-plus { color: #8C6200; background: #FFF8E7; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.tally-badge-a { color: var(--accent-terracotta); background: var(--accent-terracotta-bg); padding: 1px 6px; border-radius: 4px; }

.edu-step-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.83rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.edu-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.edu-footer-cta {
  background: var(--surface-paper);
  border: 1px solid var(--divider-hairline);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-editorial);
}
