/* =========================================================
   Thảo Lan's Study Desk - Harmonized Pillar Theme System
   - Warm Cream Desk Base (#faf7f2)
   - Pillar 1 (Recruiters & Founders / About): Terracotta Orange
   - Pillar 2 (Learners & Peers / Learning Space): Pastel Slate Blue
   - Pillar 3 (Curated Knowledge, Builders & Study With Me): Soft Sage Green
   ========================================================= */

:root {
  --bg-desk: #faf7f2;
  --bg-card: #ffffff;
  --bg-subtle: #f3ede2;

  /* Pillar 1: Terracotta / Warm Orange (Recruiters & Founders / About Me) */
  --orange-soft: #f7e9e1;
  --orange-border: #eccfc0;
  --orange-main: #c86446;
  --orange-hover: #b25236;
  --orange-dark: #6b2e1c;

  /* Pillar 2: Pastel Slate Blue (Learners & Peers / Learning Space & Debates) */
  --blue-soft: #e6eff6;
  --blue-border: #c6d9ea;
  --blue-main: #3b6e9c;
  --blue-hover: #2f5a80;
  --blue-dark: #1e3b56;

  /* Pillar 3: Soft Sage Green (Curated Knowledge, Builders & Study With Me) */
  --green-soft: #e6efe9;
  --green-border: #c7ddd0;
  --green-main: #3d6b56;
  --green-hover: #2f5544;
  --green-dark: #1f3b2e;

  /* Amber Highlight (Micro-hook Timer Badge) */
  --amber-soft: #fbf1dc;
  --amber-main: #b87a1e;

  /* Active Theme Tokens (Defaults to Terracotta / Orange) */
  --theme-soft: var(--orange-soft);
  --theme-border: var(--orange-border);
  --theme-main: var(--orange-main);
  --theme-hover: var(--orange-hover);
  --theme-dark: var(--orange-dark);

  --text-primary: #262320;
  --text-secondary: #5c564f;
  --text-muted: #8a8177;

  --border-light: #e7dfd3;
  --border-strong: #d5c9b8;

  --shadow-card: 0 4px 20px rgba(38, 35, 32, 0.05);
  --shadow-hover: 0 10px 28px rgba(38, 35, 32, 0.09);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Newsreader', 'Georgia', 'Times New Roman', serif;
}

/* Page-Level Pillar Overrides */
body[data-theme="blue"] {
  --theme-soft: var(--blue-soft);
  --theme-border: var(--blue-border);
  --theme-main: var(--blue-main);
  --theme-hover: var(--blue-hover);
  --theme-dark: var(--blue-dark);
}

body[data-theme="green"] {
  --theme-soft: var(--green-soft);
  --theme-border: var(--green-border);
  --theme-main: var(--green-main);
  --theme-hover: var(--green-hover);
  --theme-dark: var(--green-dark);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-desk);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(rgba(138, 129, 119, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Top Navigation Bar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--theme-soft);
  border: 1px solid var(--theme-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--text-primary);
  color: #ffffff;
  font-weight: 600;
}

.nav-link[data-pillar="about"]:hover {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.nav-link[data-pillar="learn"]:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.nav-link[data-pillar="digest"]:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.btn-cv-nav {
  background: var(--orange-main);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-cv-nav:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

/* --- Main Layout Container --- */
.container {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px 72px;
  flex: 1;
}

/* --- Typography & Badges --- */
.desk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  line-height: 1.35;
}

body[data-theme="orange"] .desk-kicker,
body[data-theme="blue"] .desk-kicker,
body[data-theme="green"] .desk-kicker {
  background: var(--theme-soft);
  border-color: var(--theme-border);
  color: var(--theme-dark);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.hero-title .highlight {
  color: var(--theme-main);
}

.hero-lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 660px;
  line-height: 1.65;
  margin-bottom: 26px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--theme-main);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--theme-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
}

/* --- Cards & Surfaces --- */
.desk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

/* --- 90-Second Micro-Learning Hook Card (Pastel Blue Lab Accent) --- */
.micro-hook {
  background: var(--bg-card);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 44px;
  position: relative;
}

.hook-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.hook-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border: 1px solid var(--blue-border);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.lang-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 3px 9px;
  border-radius: 6px;
}

.hook-question {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.quiz-opt {
  text-align: left;
  background: var(--bg-desk);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  line-height: 1.45;
}

.quiz-opt:hover:not(:disabled) {
  border-color: var(--blue-main);
  background: var(--blue-soft);
}

.quiz-opt.correct {
  background: var(--green-soft);
  border-color: var(--green-main);
  color: var(--green-dark);
  font-weight: 600;
}

.quiz-opt.wrong {
  background: #fbeae7;
  border-color: #d66853;
  color: #6b2418;
}

.hook-feedback {
  display: none;
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--blue-soft);
  border-left: 4px solid var(--blue-main);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-primary);
}

.hook-feedback.visible {
  display: block;
}

.bookmark-nudge {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--blue-border);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* --- 3-Card Visitor Router Grid (Pillar Color-Coded) --- */
.router-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.router-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.router-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.router-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.router-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.router-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.55;
}

.router-cta {
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Pillar 1 Card: Orange / Terracotta */
.router-card.pillar-orange .router-icon {
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
}
.router-card.pillar-orange:hover {
  border-color: var(--orange-main);
}
.router-card.pillar-orange .router-cta {
  color: var(--orange-main);
}

/* Pillar 2 Card: Pastel Slate Blue */
.router-card.pillar-blue .router-icon {
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
}
.router-card.pillar-blue:hover {
  border-color: var(--blue-main);
}
.router-card.pillar-blue .router-cta {
  color: var(--blue-main);
}

/* Pillar 3 Card: Soft Sage Green */
.router-card.pillar-green .router-icon {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
}
.router-card.pillar-green:hover {
  border-color: var(--green-main);
}
.router-card.pillar-green .router-cta {
  color: var(--green-main);
}

/* --- Study With Me / Community Strip (Sage Green Pillar) --- */
.community-strip {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.community-strip h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--green-dark);
}

.community-strip p {
  font-size: 14px;
  color: #2c4d3e;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-actions .btn-secondary {
  border-color: var(--green-border);
  color: var(--green-dark);
}

.community-actions .btn-secondary:hover {
  background: #d9e8df;
}

/* --- About Me / Multi-Persona CV (Orange / Terracotta Pillar) --- */
.persona-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 24px;
}

.persona-pill {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.persona-pill:hover {
  border-color: var(--orange-border);
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.persona-pill.active {
  background: var(--orange-main);
  border-color: var(--orange-main);
  color: #ffffff;
}

.cv-download-banner {
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.cv-download-info strong {
  display: block;
  font-size: 15.5px;
  color: var(--orange-dark);
}

.cv-download-info span {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.cv-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  margin-bottom: 32px;
}

.timeline-item {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.role-title {
  font-weight: 700;
  font-size: 16px;
}

.role-period {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.role-org {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-main);
  margin-bottom: 8px;
}

.role-bullets {
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.role-bullets li {
  margin-bottom: 6px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.skill-tag {
  background: var(--orange-soft);
  border: 1px solid var(--orange-border);
  color: var(--orange-dark);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.lab-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border: 1px solid var(--blue-border);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.now-box {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.now-box h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--green-dark);
}

.now-list {
  padding-left: 18px;
  font-size: 14.5px;
  color: #29493a;
}

.now-list li {
  margin-bottom: 6px;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-desk);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
  }
  .desk-kicker {
    font-size: 12px;
    padding: 5px 12px;
  }
  .router-grid {
    grid-template-columns: 1fr;
  }
  .cv-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 24px 16px 56px;
  }
}


/* --- Crisp Inline SVG Desk Lamp Logo --- */
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--theme-soft);
  border: 1px solid var(--theme-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- About Me Compact Square Profile Photo Slot --- */
.about-hero-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 6px;
}

.about-hero-text {
  flex: 1;
  min-width: 0;
}

.profile-frame {
  width: 208px;
  height: 208px;
  border-radius: 22px;
  background: var(--orange-soft);
  border: 2px solid var(--orange-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
  line-height: 1.25;
}

.profile-fallback span {
  font-size: 26px;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .about-hero-wrap {
    flex-direction: column-reverse;
    gap: 14px;
  }
  .profile-frame {
    width: 148px;
    height: 148px;
    border-radius: 18px;
  }
}


/* --- Desk Lamp Avatar Placeholder (208x208px) --- */
.profile-fallback svg {
  width: 132px;
  height: 132px;
  display: block;
}

.profile-fallback-caption {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-dark);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* --- Lens Narrative Callout & Chronological Career Progression --- */
.lens-story-box {
  background: var(--bg-desk);
  border-left: 3.5px solid var(--orange-main);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.65;
}

.company-group {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.company-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.company-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.company-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--orange-main);
  letter-spacing: -0.01em;
}

.company-tenure {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.progression-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 2px solid var(--orange-border);
  padding-left: 16px;
  margin-left: 4px;
}

.role-step {
  position: relative;
}

.role-step::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange-main);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 1.5px var(--orange-border);
}

.role-step.older::before {
  background: var(--orange-soft);
  border: 2px solid var(--orange-main);
  box-shadow: none;
}

.role-badge-growth {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border: 1px solid var(--orange-border);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .profile-fallback svg {
    width: 96px;
    height: 96px;
  }
}


/* --- L&D Carousel (3 visible on desktop, 4th revealed via arrow) --- */
.lab-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lab-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 2px 0;
}

.lab-carousel-track::-webkit-scrollbar {
  display: none;
}

.lab-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 245px;
  scroll-snap-align: start;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lab-card-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--blue-dark);
}

.lab-card-body {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.lab-card-era {
  display: inline-block;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue-main);
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--blue-border);
  color: var(--blue-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
  transition: all 0.18s ease;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--blue-soft);
  border-color: var(--blue-main);
  transform: scale(1.04);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.inline-link {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link:hover {
  color: var(--green-main);
}

.inline-link-blue {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link-blue:hover {
  color: var(--blue-main);
}

@media (max-width: 820px) {
  .lab-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 560px) {
  .lab-card {
    flex: 0 0 86%;
  }
}


/* =========================================================
   Shared Header PDF Icon, Live Quiz Stage & Unified Desk Footer
   ========================================================= */

.pdf-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Shared Interactive Quiz & Learning Stage Components */
.featured-topic,
.home-quiz-stage {
  background: var(--bg-card);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.topic-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.topic-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.latest-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border: 1px solid var(--blue-border);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.type-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: 6px;
}

.topic-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.featured-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.48;
  color: var(--text-primary);
  margin-bottom: 10px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.featured-question-rest {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 10px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.featured-context {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.quiz-choice-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.quiz-choice-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-desk);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.16s ease;
  line-height: 1.45;
}

.quiz-choice-label:hover {
  border-color: var(--blue-main);
  background: var(--blue-soft);
}

.quiz-choice-label.selected {
  border-color: var(--blue-main);
  background: var(--blue-soft);
  font-weight: 600;
}

.quiz-choice-label.is-correct {
  background: var(--green-soft);
  border-color: var(--green-main);
  color: var(--green-dark);
  font-weight: 600;
}

.quiz-choice-label.is-wrong {
  background: #fbeae7;
  border-color: #d66853;
  color: #6b2418;
}

.quiz-choice-label input {
  margin-top: 3px;
  accent-color: var(--blue-main);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.short-answer-wrap {
  margin-bottom: 16px;
}

.desk-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-desk);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-primary);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.desk-input:focus {
  outline: none;
  border-color: var(--blue-main);
  background: #ffffff;
}

.quiz-eval-box {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--blue-soft);
  border-left: 4px solid var(--blue-main);
  font-size: 14.5px;
  line-height: 1.6;
}

.quiz-eval-box.correct-state {
  background: var(--green-soft);
  border-left-color: var(--green-main);
}

.quiz-eval-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.notify-card {
  margin-top: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--blue-border);
  border-radius: var(--radius-md);
}

.notify-card h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.notify-privacy {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.55;
}

.notify-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.otp-verify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--blue-border);
}

.otp-input {
  width: 150px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-align: center;
}

.identity-pill-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12.5px;
  font-family: inherit;
  padding: 0;
}

/* Unified Site-Wide Desk Footer */
.desk-footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
  margin-top: 40px;
  padding: 36px 20px 42px;
}

.desk-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-mantra {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-note {
  max-width: 560px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-desk);
  transition: all 0.16s ease;
  cursor: pointer;
  font-family: inherit;
}

.footer-link:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

/* Non-clickable Coming Soon Pill (Desktop Hover + Mobile Tap) */
.coming-soon-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--border-strong);
  background: transparent;
  cursor: default;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.coming-soon-pill::after {
  content: "Coming soon";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 20;
}

.coming-soon-pill:hover::after,
.coming-soon-pill.is-tapped::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bookmark-hint-toast {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-top: 4px;
  display: none;
}

.bookmark-hint-toast.visible {
  display: inline-block;
}

@media (max-width: 768px) {
  .notify-form-grid {
    grid-template-columns: 1fr;
  }

  .featured-topic,
  .home-quiz-stage {
    padding: 18px 16px;
  }

  .featured-title {
    font-size: 15px;
  }
}
