/* ============================================================
   GTS — Great Teacher Simulator | Main Stylesheet
   ============================================================ */

:root {
  /* Light palette */
  --bg: #ffffff;
  --text: #0f0f13;
  --muted: #6b6b80;
  --surface: #f8f8fc;
  --border: #e2e2ec;
  --accent: #b11226;
  --accent-dark: #8f0d1e;
  --accent-hover: #d01530;
  --shadow: 0 4px 20px rgba(15, 15, 19, 0.07), 0 1px 4px rgba(15, 15, 19, 0.04);
  --shadow-lg: 0 16px 48px rgba(15, 15, 19, 0.13), 0 4px 16px rgba(15, 15, 19, 0.06);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1140px;
  --header-height: 72px;

  /* Dark palette (hero + portal) */
  --dark-bg: #0a0a0f;
  --dark-surface: #13131e;
  --dark-surface-2: #1a1a2a;
  --dark-border: #252538;
  --dark-text: #f0f0f8;
  --dark-muted: #8888a8;
}

/* ---- Reset ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  transition: color 150ms ease;
}

a:hover {
  color: var(--accent);
}

img,
svg {
  max-width: 100%;
  display: block;
}

/* ---- Accessibility ----------------------------------------- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -60px;
  background: var(--text);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  z-index: 200;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---- Layout ------------------------------------------------ */
.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 1.5rem 0;
}

/* ---- Typography -------------------------------------------- */
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 750;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ---- Navigation -------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 200ms ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(15, 15, 19, 0.08);
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: 0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--accent);
}

.nav-toggle {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 150ms ease;
}

.nav-toggle:hover {
  border-color: #aaa;
}

.nav-links {
  position: absolute;
  top: calc(var(--header-height) - 2px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.8rem 1.25rem 1.2rem;
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-links.open {
  display: flex;
}

.nav-links a {
  text-decoration: none;
  font-weight: 560;
  font-size: 0.95rem;
  display: inline-block;
  padding: 0.45rem 0.25rem;
  color: var(--text);
}

.nav-links a:hover {
  color: var(--accent);
}

/* Portal buttons in nav */
.nav-portal-links {
  list-style: none;
  margin: 0;
  padding: 0.8rem 1.25rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-portal-links li a {
  display: block;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 640;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.nav-portal-links .portal-teacher-link {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.nav-portal-links .portal-teacher-link:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.nav-portal-links .portal-student-link {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.nav-portal-links .portal-student-link:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ---- Hero (dark) ------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #07070d 0%, #12122a 55%, #0e1530 100%);
  color: var(--dark-text);
  padding-top: 4rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(177, 18, 38, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(60, 60, 180, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero h1 {
  color: var(--dark-text);
}

.lead {
  color: var(--dark-muted);
  max-width: 58ch;
  font-size: 1.05rem;
}

.hero-visual {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.72rem 1.2rem;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 120ms ease, box-shadow 150ms ease;
  letter-spacing: 0.01em;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(177, 18, 38, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 20px rgba(177, 18, 38, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--dark-text);
  border-color: var(--dark-border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--dark-text);
}

/* Light section secondary button */
.btn-secondary-light {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary-light:hover {
  border-color: #999;
  color: var(--text);
}

/* ---- Social proof ----------------------------------------- */
.social-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.social-proof p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ---- Feature cards ---------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cccce0;
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff0f2, #ffe0e4);
  border: 1px solid #ffc8cf;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Steps / How It Works --------------------------------- */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
  counter-reset: steps-counter;
}

.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: var(--bg);
  box-shadow: var(--shadow);
  counter-increment: steps-counter;
  position: relative;
  transition: border-color 200ms ease, transform 200ms ease;
}

.step:hover {
  border-color: #cccce0;
  transform: translateY(-2px);
}

.step::before {
  content: counter(steps-counter, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--border);
  letter-spacing: -0.04em;
  line-height: 1;
}

.icon {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff0f2, #ffe0e4);
  border: 1px solid #ffc8cf;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Demo section ----------------------------------------- */
.demo-wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.video-placeholder {
  flex: 1;
}

.video-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 200ms ease;
}

.video-frame:hover {
  transform: scale(1.01);
}

/* ---- Research --------------------------------------------- */
.research-copy {
  max-width: 72ch;
  color: var(--muted);
  font-size: 1rem;
}

.bullet-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.bullet-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* ---- Pricing ---------------------------------------------- */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.price-card.featured {
  border-color: var(--accent);
  border-width: 2px;
  position: relative;
}

.price-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -1px;
  right: 1.25rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 0 0 8px 8px;
}

.price-card.featured h3 {
  border-color: rgba(177, 18, 38, 0.2);
}

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.price-card ul li {
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-card ul li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pricing-cta {
  margin-top: 1.5rem;
}

/* Pricing section uses light buttons */
#pricing .btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

#pricing .btn-secondary:hover {
  border-color: #999;
  color: var(--text);
}

/* ---- About ------------------------------------------------- */
.about-wrap p {
  max-width: 72ch;
  color: var(--muted);
}

/* ---- Contact ---------------------------------------------- */
.contact-wrap p {
  max-width: 65ch;
  color: var(--muted);
}

#contact-form {
  margin-top: 1.25rem;
  max-width: 640px;
}

.field-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 640;
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.72rem 0.9rem;
  font: inherit;
  color: inherit;
  background: var(--bg);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:hover,
textarea:hover {
  border-color: #b0b0c0;
}

textarea {
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(177, 18, 38, 0.4);
  outline-offset: 2px;
}

.form-status {
  margin-top: 0.75rem;
  min-height: 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-dark);
}

/* ---- Footer ----------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  gap: 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-portal-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-portal-links a {
  font-size: 0.82rem;
  font-weight: 640;
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 150ms, color 150ms;
}

.footer-portal-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-note {
  color: #9999b0;
  margin: 0;
}

/* ---- Modal ------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 15, 0.72);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  width: min(100% - 2rem, 780px);
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: 0 24px 64px rgba(7, 7, 15, 0.4);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.modal-header h2 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.icon-button {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 150ms ease;
}

.icon-button:hover {
  background: #e8e8ef;
}

.modal-video-placeholder {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ---- Scroll reveal ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ------------------------------------------- */
@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    border: 0;
    padding: 0;
    gap: 0.15rem;
    background: transparent;
    box-shadow: none;
  }

  .nav-portal-links {
    position: static;
    display: flex;
    flex-direction: row;
    border: 0;
    padding: 0;
    gap: 0.5rem;
    background: transparent;
    border-top: none;
  }

  .nav-portal-links li a {
    display: inline-flex;
    padding: 0.38rem 0.75rem;
    font-size: 0.875rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-wrap {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Sessions / Debrief Dashboard ── */

.sessions-api-row {
  display: grid;
  gap: 0.35rem;
  max-width: 480px;
  margin-bottom: 1.4rem;
}

.sessions-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 120ms, background 120ms;
  background: var(--surface);
  margin-bottom: 1rem;
}

.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--accent);
  background: #fff8f8;
}

.drop-zone.drag-over {
  border-color: var(--accent);
  background: #fff5f6;
}

.drop-zone p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.drop-link {
  color: var(--accent);
  font-weight: 600;
}

.drop-filename {
  margin-top: 0.5rem !important;
  font-weight: 600;
  color: var(--text);
}

#tx-file-input {
  display: none;
}

.paste-fallback {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.paste-fallback summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.paste-fallback textarea {
  margin-top: 0.5rem;
}

.sessions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

/* Dashboard container */
.debrief-dashboard {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Summary stat bar */
.db-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--border);
}

.db-stat {
  background: #fff;
  padding: 0.9rem 1rem;
}

.db-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.2rem;
}

.db-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}

.db-stat-value.good { color: #1a7a3c; }
.db-stat-value.warn { color: #b07000; }
.db-stat-value.bad  { color: var(--accent); }

/* Coach feedback strip */
.db-feedback {
  border-bottom: 1px solid var(--border);
}

.db-feedback-inner {
  background: #fff9f9;
  padding: 0.9rem 1.2rem;
  border-left: 4px solid var(--accent);
}

.db-feedback-inner strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.db-feedback-inner p {
  margin: 0;
  color: #2a2a2a;
}

/* Tabs */
.db-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
}

.db-tab {
  border: none;
  background: none;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.db-tab:hover {
  color: var(--text);
}

.db-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: #fff;
}

/* Tab panels */
.db-panel {
  padding: 1.4rem;
  background: #fff;
  min-height: 180px;
}

/* Chart containers */
.chart-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.chart-wrap canvas {
  max-height: 320px;
}

/* Event lists (misconceptions, uptake) */
.db-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.db-event-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  background: #fafafa;
}

.db-event-item p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #2a2a2a;
}

.db-event-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-right: 0.5rem;
}

/* Transcript table */
.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.tx-table th,
.tx-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.tx-table th {
  font-weight: 700;
  background: var(--surface);
  position: sticky;
  top: 0;
}

.tx-row-teacher { background: #fff9f9; }
.tx-row-student  { background: #f9fbff; }

/* Tags */
.tx-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-right: 0.2rem;
  margin-bottom: 0.15rem;
  font-weight: 600;
  white-space: nowrap;
}

.tx-tag-mc        { background: #fde3e7; color: #8f0d1e; }
.tx-tag-q-closed  { background: #eeeeee; color: #333333; }
.tx-tag-q-focus   { background: #e6f0ff; color: #1a4a8f; }
.tx-tag-uptake    { background: #e6faf0; color: #1a7a3c; }

@media (min-width: 760px) {
  .db-summary {
    grid-template-columns: repeat(4, 1fr);
  }
}
