/* RaahSetu English — Modern Mobile-First PWA Styles */

:root {
  --navy: #14213D;
  --navy-dark: #0A1128;
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --teal-light: #F0FDFA;
  --gold: #F59E0B;
  --gold-dark: #B45309;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --white: #FFFFFF;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate-800);
  background-color: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  border-bottom: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand-logo {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: var(--slate-600);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-dark);
  background-color: var(--teal-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-teal {
  background-color: var(--teal-dark);
  color: var(--white);
}

.btn-teal:hover {
  background-color: var(--navy);
}

.btn-gold {
  background-color: var(--gold-dark);
  color: var(--white);
  border-color: var(--gold-dark);
  font-weight: 600;
}

.btn-gold:hover {
  background-color: #92400E;
  border-color: #92400E;
}

.btn-secondary {
  background-color: var(--slate-100);
  color: var(--navy);
  border-color: var(--slate-200);
}

.btn-secondary:hover {
  background-color: var(--slate-200);
}

.btn-outline {
  background-color: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}

.btn-outline:hover {
  background-color: var(--teal-light);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

/* App Views Container */
.app-view {
  display: none;
  padding: 40px 0 60px;
}

.app-view.active {
  display: block;
}

/* View Header */
.view-header {
  margin-bottom: 28px;
}

.view-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.view-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.view-desc {
  font-size: 15px;
  color: var(--slate-600);
  margin-top: 6px;
  max-width: 720px;
}

/* Filter Controls Bar */
.filter-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.search-box {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--slate-800);
  margin-bottom: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-box:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 12px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 90px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-700);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-pill.active {
  background-color: var(--teal-dark);
  color: var(--white);
  border-color: var(--teal-dark);
}

/* Results Counter & Stats */
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--slate-600);
  margin-bottom: 20px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* Career Card */
.career-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.career-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.card-top {
  margin-bottom: 16px;
}

.card-eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.group-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-600);
  background-color: var(--slate-100);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.riasec-badges {
  display: flex;
  gap: 4px;
}

.riasec-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background-color: #FEF3C7;
  color: #92400E;
}

.career-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
}

.career-prereqs {
  font-size: 12.5px;
  color: var(--slate-600);
  line-height: 1.45;
  margin-bottom: 12px;
}

.maths-status {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.maths-041 {
  background-color: #FEE2E2;
  color: #991B1B;
}

.maths-flex {
  background-color: var(--teal-light);
  color: var(--teal-dark);
}

.exams-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}

.exam-tag {
  font-size: 11px;
  background-color: var(--slate-100);
  color: var(--slate-700);
  padding: 2px 6px;
  border-radius: 4px;
}

.cost-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 16px;
  background-color: var(--slate-50);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cost-comparison-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--slate-200);
}

.cost-comparison-table tr:last-child td {
  border-bottom: none;
}

.cost-lbl {
  color: var(--slate-600);
  font-weight: 500;
}

.cost-val {
  text-align: right;
  font-weight: 700;
  color: var(--navy);
}

/* Document Kit Card */
.doc-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.doc-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 8px;
}

.badge-reservation { background-color: #FEF3C7; color: #92400E; }
.badge-academic { background-color: var(--teal-light); color: var(--teal-dark); }
.badge-identity { background-color: #E0E7FF; color: #3730A3; }
.badge-affidavit { background-color: #F3E8FF; color: #6B21A8; }

.doc-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.doc-info-block {
  font-size: 13px;
  color: var(--slate-700);
  margin-bottom: 14px;
  line-height: 1.5;
}

.doc-info-item {
  margin-bottom: 8px;
}

.doc-info-item strong {
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}

.validity-alert {
  background-color: #FFFBEB;
  border-left: 3px solid var(--gold);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12.5px;
  color: #78350F;
  margin-bottom: 14px;
}

.checklist-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.doc-checklist {
  list-style: none;
  font-size: 12.5px;
  color: var(--slate-600);
  margin-bottom: 16px;
}

.doc-checklist li {
  margin-bottom: 4px;
  padding-left: 16px;
  position: relative;
}

.doc-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: bold;
}

/* Modal / Drawer */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--slate-100);
  border: none;
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
}

.modal-close-btn:hover {
  background: var(--slate-200);
}

/* Offline state notification */
.offline-banner {
  background-color: #FEF3C7;
  color: #92400E;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  display: none;
}

.offline-banner.visible {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 8px;
  }
  .brand-logo {
    font-size: 20px;
  }
  .header-inner .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 6px;
    gap: 8px;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    white-space: nowrap;
    font-size: 13px;
    padding: 6px 10px;
    flex-shrink: 0;
  }
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .career-card {
    min-width: 0;
    padding: 18px 16px;
  }
  .reader-wrapper {
    padding: 20px 16px;
  }
  .container {
    padding: 0 16px;
  }
}

/* Scientific Diagrams (NCERT Visual Upgrade) */
figure.fig.dia {
  margin: 24px 0;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.fig-wrapper {
  background: #ffffff;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fig-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.fig-caption {
  padding: 16px 20px;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  font-size: 14px;
}

.fig-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.fig-desc {
  color: var(--slate-600);
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}

.fig-legend {
  margin: 0;
  padding-left: 20px;
  color: var(--slate-700);
  font-size: 13.5px;
  line-height: 1.6;
}

.fig-legend li {
  margin-bottom: 6px;
}

.fig-legend li strong {
  color: var(--navy);
}

.chapter-diagrams-container {
  margin: 28px 0;
}

.diagrams-heading {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal-light);
}
/* Additional styles for Notes Reader (#notes) and Exam Matrix (#exams) */

/* Subject Grid */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.subject-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subject-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.subject-card.active {
  border-color: var(--teal);
  background-color: var(--teal-light);
}

.subject-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-dark);
  background-color: var(--teal-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 8px;
}

.subject-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.subject-desc {
  font-size: 13px;
  color: var(--slate-600);
}

/* Chapter List */
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.chapter-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chapter-item:hover {
  border-color: var(--teal);
  background-color: var(--slate-50);
}

.chapter-num-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--teal-dark);
  background-color: var(--teal-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 16px;
}

.chapter-info {
  flex-grow: 1;
}

.chapter-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.chapter-meta {
  font-size: 12px;
  color: var(--slate-600);
}

/* Reader View */
.reader-wrapper {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
}

.reader-back-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-200);
}

.chapter-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate-800);
}

.chapter-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 16px;
}

.chapter-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.chapter-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.chapter-body h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 14px;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 6px;
}

.chapter-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 20px 0 8px;
}

.chapter-body p {
  margin-bottom: 14px;
}

.chapter-body ul, .chapter-body ol {
  margin: 0 0 16px 24px;
}

.chapter-body li {
  margin-bottom: 6px;
}

.tw {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 500px;
}

.data-table th {
  background-color: var(--slate-50);
  color: var(--navy);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--slate-200);
  font-weight: 700;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
}

.mermaid-wrap {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
  overflow-x: auto;
  text-align: center;
}

/* Exam Matrix Cards */
.exam-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.exam-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.exam-name {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 6px;
}

.exam-timing {
  font-size: 12.5px;
  color: #B45309;
  background-color: #FEF3C7;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 12px;
}

.exam-rule-box {
  background-color: #F8FAFC;
  border-left: 3px solid var(--teal);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--slate-700);
  margin-bottom: 12px;
}

/* ==========================================================================
   Step 1: Press Feedback (Tactile Response on all Tappable Elements)
   ========================================================================== */
.tap,
button,
.btn,
.nav-route-btn,
.bottom-nav-item,
.filter-pill,
.career-card,
.certificate-card,
.exam-card,
.subj-tab,
.ch-row {
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tap:active,
button:active,
.btn:active,
.nav-route-btn:active,
.bottom-nav-item:active,
.filter-pill:active,
.career-card:active,
.certificate-card:active,
.exam-card:active,
.subj-tab:active,
.ch-row:active {
  transform: scale(0.97);
}

.row:active,
.ch-row:active {
  background-color: var(--teal-light);
}

@media (prefers-reduced-motion: reduce) {
  .tap,
  button,
  .btn,
  .nav-route-btn,
  .bottom-nav-item,
  .filter-pill,
  .career-card,
  .certificate-card,
  .exam-card,
  .subj-tab,
  .ch-row {
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Step 2: Home Hierarchy, Editorial Hairline Rows & Dark Theme
   ========================================================================== */

/* Hero Section */
.hero {
  padding: 56px 0 48px;
  background: var(--white);
  text-align: center;
  border-bottom: 1px solid var(--slate-200);
}

.hero-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto 18px;
}

.hero-subhead {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--slate-600);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-trust-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: var(--slate-600);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-check {
  color: var(--teal);
  font-weight: 700;
}

/* Section Containers & Editorial Headings */
.section-home {
  padding: 48px 0;
  border-bottom: 1px solid var(--slate-200);
}

.section-heading-wrap {
  margin-bottom: 28px;
}

.section-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 6px;
}

.section-desc {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.5;
}

/* Hairline Rows (Replaces card clusters & shadows with min 48px tap target) */
.hairline-group {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--slate-200);
}

.hairline-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--slate-200);
  min-height: 48px;
  transition: background-color 0.1s ease;
}

.hairline-badge {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-track-a {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge-track-b {
  background-color: var(--teal-light);
  color: var(--teal-dark);
}

.hairline-step-num {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-dark);
  min-width: 48px;
  flex-shrink: 0;
  line-height: 1.2;
  padding-top: 2px;
}

.hairline-content {
  flex: 1;
}

.hairline-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.35;
}

.hairline-desc {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.55;
}

/* Dark Mode Foundation (#0B1120 Base, #1E293B Surface, WCAG AA Compliant) */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0B1120;
    color: #E2E8F0;
  }

  header {
    background: rgba(11, 17, 32, 0.95);
    border-bottom-color: #1E293B;
  }

  .brand-logo {
    color: #F8FAFC;
  }

  .nav-links a {
    color: #94A3B8;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #2DD4BF;
    background-color: #132E35;
  }

  .hero {
    background: #0B1120;
    border-bottom-color: #1E293B;
  }

  .hero-title,
  .section-title,
  .hairline-title,
  .view-title {
    color: #F8FAFC;
  }

  .hero-subhead,
  .section-desc,
  .hairline-desc,
  .hero-trust-list,
  .view-desc {
    color: #94A3B8;
  }

  .section-home,
  .hairline-group,
  .hairline-row {
    border-color: #1E293B;
  }

  .badge-track-a {
    background-color: #38240D;
    color: #FCD34D;
  }

  .badge-track-b {
    background-color: #0F3532;
    color: #5EEAD4;
  }

  .hairline-step-num {
    color: #2DD4BF;
  }

  .filter-card,
  .career-card,
  .certificate-card,
  .exam-card,
  .chapter-list-card,
  .chapter-item {
    background: #1E293B;
    border-color: #334155;
    color: #E2E8F0;
  }

  .career-title,
  .exam-name,
  .cert-title,
  .chapter-item-title {
    color: #F8FAFC;
  }

  .career-summary,
  .exam-desc,
  .cert-authority,
  .chapter-meta {
    color: #94A3B8;
  }

  .search-box {
    background: #0F172A;
    border-color: #334155;
    color: #F8FAFC;
  }

  .filter-pill {
    background: #0F172A;
    border-color: #334155;
    color: #94A3B8;
  }

  .filter-pill.active {
    background-color: var(--teal);
    color: #FFFFFF;
    border-color: var(--teal);
  }

  .btn-secondary {
    background-color: #1E293B;
    color: #F8FAFC;
    border-color: #334155;
  }

  .btn-outline {
    color: #2DD4BF;
    border-color: #0D9488;
  }

  .btn-outline:hover {
    background-color: #132E35;
  }

  .modal-dialog {
    background: #1E293B;
    border-color: #334155;
    color: #E2E8F0;
  }

  .detail-box {
    background: #0F172A;
    border-color: #334155;
  }

  .detail-title {
    color: #F8FAFC;
  }

  .detail-desc {
    color: #94A3B8;
  }

  footer {
    border-top-color: #1E293B;
    background-color: #0B1120;
  }

  footer .footer-inner a {
    color: #94A3B8 !important;
  }

  .row:active,
  .ch-row:active,
  .hairline-row:active {
    background-color: #132E35;
  }
}

/* ==========================================================================
   Step 3: Mobile Bottom Navigation Bar (Thumb Reach, Safe-Area Aware)
   ========================================================================== */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }

  header .nav-links {
    display: none !important;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    border-top: 1px solid var(--slate-200);
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    min-height: 48px;
    text-decoration: none;
    color: var(--slate-600);
    gap: 3px;
    padding: 4px 0;
    position: relative;
    transition: color 0.15s ease;
  }

  .bottom-nav-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: transform 0.15s ease;
  }

  .bottom-nav-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  .bottom-nav-item.active {
    color: var(--teal-dark);
  }

  .bottom-nav-item.active .bottom-nav-label {
    font-weight: 700;
  }

  .bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 5px;
    width: 44px;
    height: 28px;
    background-color: var(--teal-light);
    border-radius: 9999px;
    z-index: -1;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 768px) {
  .bottom-nav {
    background-color: #0B1120;
    border-top-color: #1E293B;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  }

  .bottom-nav-item {
    color: #94A3B8;
  }

  .bottom-nav-item.active {
    color: #2DD4BF;
  }

  .bottom-nav-item.active::before {
    background-color: #132E35;
  }
}

/* ==========================================================================
   Step 4: View Transitions API (Direction-Aware Screen Slide & Nav Pill)
   ========================================================================== */
header {
  view-transition-name: rs-top;
}

.bottom-nav {
  view-transition-name: rs-bottom-nav;
}

@media (min-width: 769px) {
  .nav-links a.active {
    view-transition-name: rs-navpill;
  }
}

@media (max-width: 768px) {
  .bottom-nav-item.active {
    view-transition-name: rs-navpill;
  }
}

::view-transition-old(rs-top),
::view-transition-new(rs-top),
::view-transition-old(rs-bottom-nav),
::view-transition-new(rs-bottom-nav) {
  animation: none;
}

::view-transition-group(rs-navpill) {
  animation-duration: 0.3s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

::view-transition-old(root) {
  animation: vt-out 0.12s cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: vt-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s both;
}

html.vt-back::view-transition-old(root) {
  animation-name: vt-out-back;
}

html.vt-back::view-transition-new(root) {
  animation-name: vt-in-back;
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateX(-14px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}

@keyframes vt-out-back {
  to {
    opacity: 0;
    transform: translateX(14px);
  }
}

@keyframes vt-in-back {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ==========================================================================
   Step 5: Memorable Element (CBSE Pathway Map) & One Reward Moment (Toast)
   ========================================================================== */

/* Memorable Element: CBSE Career Progression Pathway */
.career-route-section {
  background: var(--white);
}

.route-map-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 0 10px;
}

.route-map-svg {
  min-width: 680px;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  display: block;
}

@media (prefers-color-scheme: dark) {
  .career-route-section {
    background: #0B1120;
  }
  .route-map-svg line[stroke="#CBD5E1"] {
    stroke: #334155;
  }
  .route-map-svg text.svg-label {
    fill: #F8FAFC !important;
  }
  .route-map-svg text.svg-sublabel {
    fill: #94A3B8 !important;
  }
}

/* One Reward Moment: Shortlist Celebration Toast (350ms Pure Transform + Opacity) */
.reward-toast {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background-color: var(--navy);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2000;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reward-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .reward-toast {
    background-color: #1E293B;
    border-color: #334155;
    color: #F8FAFC;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reward-toast {
    transition: opacity 0.2s ease !important;
    transform: translateX(-50%) translateY(0) !important;
  }
}

/* ==========================================================================
   Step 9: Offline-First Mock Test Runner Module (#mocks)
   ========================================================================== */

.mock-test-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}

.mock-test-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.mock-card-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.mock-card-desc {
  font-size: 13.5px;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 16px;
}

.mock-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.mock-meta-pill {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid var(--slate-200);
}

.mock-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--slate-200);
  padding-top: 14px;
}

/* History Card */
.mock-history-container {
  margin-top: 24px;
}

.mock-history-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.mock-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

.mock-history-info {
  flex: 1;
  min-width: 240px;
}

.mock-history-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mock-score-badge {
  font-size: 18px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.mock-score-badge.score-positive {
  background: #ECFDF5;
  color: #065F46;
}

.mock-score-badge.score-negative {
  background: #FEE2E2;
  color: #991B1B;
}

/* Runner Header */
.mock-runner-wrapper {
  background: var(--slate-50);
  min-height: 85vh;
  padding-bottom: 60px;
}

.mock-runner-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mock-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.mock-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.mock-exit-link {
  color: var(--slate-600);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--slate-100);
  white-space: nowrap;
}

.mock-exit-link:hover {
  background: var(--slate-200);
  color: var(--navy);
}

.mock-runner-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.mock-header-sub {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.mock-marks-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-700);
  background: var(--slate-100);
  padding: 2px 8px;
  border-radius: 4px;
}

.mock-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mock-timer {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--slate-100);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-timer.timer-warning {
  background: #FEF3C7;
  color: #92400E;
  border-color: #F59E0B;
}

.mock-timer.timer-danger {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #EF4444;
  animation: timerPulse 1s infinite alternate;
}

@keyframes timerPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

/* Runner Body Layout */
.mock-runner-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  margin-top: 24px;
  align-items: flex-start;
}

.mock-question-panel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.mock-question-header {
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.mock-q-counter {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.mock-question-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--slate-800);
  line-height: 1.65;
  margin-bottom: 24px;
}

.mock-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.mock-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--slate-200);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  min-height: 52px;
}

.mock-option-card:hover {
  border-color: var(--teal);
  background: var(--slate-50);
}

.mock-option-card.selected {
  border-color: var(--teal-dark);
  background: #F0FDFA;
}

.mock-radio-input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal-dark);
  cursor: pointer;
  flex-shrink: 0;
}

.mock-opt-badge {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  width: 26px;
  height: 26px;
  background: var(--slate-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-option-card.selected .mock-opt-badge {
  background: var(--teal-dark);
  color: var(--white);
}

.mock-opt-text {
  font-size: 15px;
  color: var(--slate-800);
  line-height: 1.45;
  flex: 1;
}

.mock-q-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--slate-200);
  padding-top: 20px;
}

/* Palette Panel */
.mock-palette-panel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}

.mock-palette-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--slate-600);
  margin-bottom: 16px;
  background: var(--slate-50);
  padding: 10px 12px;
  border-radius: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.dot-answered { background: #047857; }
.legend-dot.dot-review { background: #D97706; }
.legend-dot.dot-unanswered { background: var(--slate-300); }

.mock-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mock-palette-btn {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.mock-palette-btn.unanswered {
  background: var(--slate-100);
  color: var(--slate-700);
  border-color: var(--slate-200);
}

.mock-palette-btn.answered {
  background: #047857;
  color: #FFFFFF;
}

.mock-palette-btn.review {
  background: #D97706;
  color: #FFFFFF;
}

.mock-palette-btn.active {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--navy);
  transform: scale(1.05);
}

/* Scorecard & Diagnostics */
.mock-scorecard-hero {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.scorecard-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.scorecard-main-box {
  grid-column: span 2;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scorecard-big-num {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.scorecard-stat-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-box-val {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-box-label {
  font-size: 12px;
  color: var(--slate-600);
  font-weight: 500;
}

/* Chapter Weak Area Breakdown */
.mock-weak-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.mock-chapter-diag-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mock-chapter-diag-card.needs-revision {
  border-left: 4px solid #D97706;
}

.mock-chapter-diag-card.mastered {
  border-left: 4px solid #047857;
}

/* Solutions Cards */
.mock-solution-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mock-sol-header {
  padding: 16px 20px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mock-sol-qtext {
  padding: 20px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--slate-800);
  line-height: 1.6;
}

.mock-sol-options {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-sol-opt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  font-size: 14px;
}

.mock-sol-opt-row.opt-correct {
  border-color: #059669;
  background: #ECFDF5;
  color: #065F46;
  font-weight: 600;
}

.mock-sol-opt-row.opt-wrong {
  border-color: #DC2626;
  background: #FEE2E2;
  color: #991B1B;
  font-weight: 600;
}

.opt-letter {
  font-weight: 700;
  color: var(--navy);
  width: 20px;
}

.opt-body {
  flex: 1;
}

.opt-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-correct {
  background: #047857;
  color: #FFFFFF;
}

.tag-wrong {
  background: #B91C1C;
  color: #FFFFFF;
}

.mock-sol-box {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  padding: 20px;
}

.sol-formula-bar {
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  margin-bottom: 14px;
  color: var(--navy);
}

.sol-formula-bar code {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 13.5px;
}

.sol-steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--slate-700);
  line-height: 1.55;
  margin-bottom: 14px;
}

.sol-step-item {
  padding-left: 4px;
}

.sol-trap-box {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #92400E;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}

/* Mobile Responsiveness for Mocks */
@media (max-width: 768px) {
  .mock-runner-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
  }
  .mock-runner-title {
    max-width: 220px;
    font-size: 14px;
  }
  .mock-question-panel {
    padding: 18px 14px;
  }
  .mock-palette-panel {
    position: static;
    margin-top: 12px;
  }
  .mock-palette-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .scorecard-main-box {
    grid-column: span 1;
  }
  .scorecard-title {
    font-size: 20px;
  }
  .mock-history-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .mock-history-score-wrap {
    align-items: flex-start;
    width: 100%;
    border-top: 1px solid var(--slate-200);
    padding-top: 10px;
    margin-top: 6px;
  }
}

/* ==========================================================================
   High-Yield Topics & Syllabus Traps Drawer (#exams)
   ========================================================================== */
.high-yield-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.high-yield-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border-bottom: 1px solid var(--slate-200);
  gap: 16px;
  user-select: none;
}

.high-yield-header:hover {
  background: #F1F5F9;
}

.high-yield-title-wrap {
  flex: 1;
}

.high-yield-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--navy);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.high-yield-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.high-yield-subtitle {
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.4;
  margin: 0;
}

.high-yield-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--teal);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.high-yield-toggle-btn:hover {
  background: var(--teal-dark);
}

.high-yield-body {
  padding: 20px;
  background: var(--white);
}

.high-yield-subheading {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.high-yield-intro {
  font-size: 13px;
  color: var(--slate-600);
  margin-bottom: 14px;
  line-height: 1.5;
}

.divergence-section {
  margin-bottom: 24px;
}

.divergence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.divergence-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.divergence-retained {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  color: #92400E;
}

.divergence-deleted {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.divergence-header {
  margin-bottom: 10px;
}

.divergence-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  padding: 2px 6px;
  border-radius: 4px;
}

.divergence-retained .divergence-tag {
  background: #FEF3C7;
  color: #B45309;
}

.divergence-deleted .divergence-tag {
  background: #FEE2E2;
  color: #B91C1C;
}

.divergence-list {
  padding-left: 18px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.divergence-list li {
  margin-bottom: 6px;
}

.divergence-action {
  font-size: 12px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  font-weight: 500;
}

.protocol-section {
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.rule-box {
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--teal);
  padding: 14px;
  border-radius: var(--radius-sm);
}

.rule-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.rule-desc {
  font-size: 12.5px;
  color: var(--slate-700);
  line-height: 1.5;
  margin: 0;
}

.subject-weightage-section {
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
}

.subject-weightage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.weightage-subj-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.weightage-tab-btn {
  padding: 6px 14px;
  border: 1px solid var(--slate-300);
  border-radius: 20px;
  background: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.15s ease;
}

.weightage-tab-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.weightage-tab-btn.active {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

.subject-focus-banner {
  background: #F1F5F9;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--slate-800);
  line-height: 1.5;
  margin-bottom: 16px;
}

.weightage-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weightage-chapter-card {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.chapter-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chapter-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.chapter-class-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--slate-100);
  padding: 2px 6px;
  border-radius: 4px;
}

.chapter-weightage-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.weightage-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-jee {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.badge-neet {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.formula-box {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--slate-700);
  line-height: 1.5;
  background: #F8FAFC;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.trap-box {
  margin-top: 8px;
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  padding: 8px 12px;
  font-size: 12px;
  color: #92400E;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .high-yield-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .high-yield-toggle-btn {
    width: 100%;
    justify-content: center;
  }
  .divergence-grid, .rules-grid {
    grid-template-columns: 1fr;
  }
}

/* Document Kit Tabs & Scholarships & Low-Cost Plan B */
.kit-tab-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.kit-tab-btn {
  padding: 8px 18px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.15s ease;
}

.kit-tab-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.kit-tab-btn.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.scholarship-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.scholarship-group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scholarship-group-desc {
  font-size: 13px;
  color: var(--slate-600);
  margin-bottom: 14px;
  line-height: 1.5;
}

.prereq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.prereq-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 12.5px;
}

.prereq-step {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.prereq-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.scholarship-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.sch-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sch-card-header {
  margin-bottom: 10px;
}

.sch-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.sch-card-meta {
  font-size: 11.5px;
  color: var(--slate-600);
  font-weight: 500;
  line-height: 1.4;
}

.sch-amount-badge {
  display: inline-block;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0;
}

.sch-detail-item {
  font-size: 12.5px;
  color: var(--slate-700);
  margin-bottom: 6px;
  line-height: 1.45;
}

.lowcost-card {
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  border-left: 4px solid #2563EB;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--slate-700);
}

.caution-card {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-left: 4px solid #F59E0B;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  color: #92400E;
}

.c10-exclusion-box {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  color: #991B1B;
  margin-bottom: 16px;
  line-height: 1.5;
}

.stream-subject-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.stream-subject-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.unit-item {
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}

.unit-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}








