/* Hallmark · shape: Index-First · genre: editorial · theme: Ink (deal 3/3, seed free-zero-login-indian-learning-4eaf·a7dd020b·2026-11-19·r0) · redesign: full
 * hero: Counter (/), Banner (/courses) · nav: slab · footer: letter close · imagery: none · signature: full-width live filterable course shelf in the hero · ink: paper · job: try · draw: 59d408
 * hero-review: fix · 4 findings · 4 resolved · finish-review: subagent · 7 findings · 7 resolved · gap: none
 * axes: light/grotesk-sans/chromatic-teal · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 · weakest: R, cut the old card chrome, tracked eyebrows, and login CTA so the live ShikshaAdhyaya course shelf leads */
/* Hallmark · waive 22 · ink and greys at zero chroma · Ink is a notice board printed in plain black on ShikshaAdhyaya */
/* Hallmark · dropped /auth/login, /auth/logout, {loginHref}, _csrf · ShikshaAdhyaya is 100% free with zero login required */
/* Hallmark · reworded "SEBI RA Exam (NISM-Series-XV (Sep 2026))" to "Zero-login study, school to SEBI RA" · ShikshaAdhyaya multi-course vision */
/* Hallmark · reworded "More Courses on FinPrep Academy" to "School, NET, CAT, and SEBI RA" · ShikshaAdhyaya rebrand */
/* Hallmark · reworded "Published Courses" to "ShikshaAdhyaya course shelf" · multi-course catalog rebrand */
/* Hallmark · reworded "NISM-Series-XV Exam Facts (2026)" to "NISM-Series-XV exam facts" · F26 stub-word fix */
/* Hallmark · reworded "SEBI RA Exam Syllabus Overview" to "SEBI RA 15-chapter syllabus" · concise section head */
/* Hallmark · reworded "SEBI RA Exam" to "Open now: certifications" · multi-course catalog section */
@import url("./fonts.css");
@import url("./tokens.css");
@import url("./base.css");

html,
body {
  overflow-x: clip;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: calc(-1 * var(--space-3xl));
  z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-control);
  background: var(--color-ink);
  color: var(--color-paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible {
  top: var(--space-md);
}

/* Slab navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: var(--color-paper-2);
  border-bottom: var(--rule-hair) solid var(--color-ink);
}

.header-inner {
  min-height: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-link:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}

.brand-logo {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.nowrap {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-micro) var(--ease-out);
}
.nav-link:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}
.nav-link[aria-current="page"] {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
}

.nav-mobile {
  display: none;
  position: relative;
}
.nav-mobile-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-control);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.nav-mobile-summary::-webkit-details-marker {
  display: none;
}
.nav-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-xs));
  min-width: 13rem;
  padding: var(--space-xs);
  border: var(--rule-hair) solid var(--color-ink);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  display: flex;
  flex-direction: column;
  z-index: var(--z-dropdown);
}
.nav-mobile-panel .nav-link {
  padding-inline: var(--space-sm);
  border-radius: var(--radius-control);
}
.nav-mobile-panel .nav-link:hover {
  background: var(--color-paper-2);
}

/* Controls — all eight states */
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding-inline: var(--space-lg);
  border: var(--rule-hair) solid var(--color-ink);
  border-radius: var(--radius-control);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.action:hover {
  background: var(--color-ink-2);
  color: var(--color-paper);
}
.action:active {
  transform: translateY(1px);
}
.action:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.action:disabled,
.action[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.action[aria-busy="true"] {
  cursor: progress;
}

.action--quiet {
  background: var(--color-paper-2);
  border-color: var(--color-rule);
  color: var(--color-ink);
}
.action--quiet:hover {
  background: var(--color-paper-3);
  color: var(--color-ink);
}

.action--on-ink {
  background: var(--color-paper);
  border-color: var(--color-paper);
  color: var(--color-ink);
}
.action--on-ink:hover {
  background: var(--color-paper-2);
  color: var(--color-ink);
}

.action--quiet-on-ink {
  background: transparent;
  border-color: var(--color-muted);
  color: var(--color-paper);
}
.action--quiet-on-ink:hover {
  background: var(--color-ink-2);
  color: var(--color-paper);
}

/* State pills — teal means open/live, outlined means planned */
.state-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.state-pill--open {
  background: var(--color-accent-soft);
  color: var(--color-accent-soft-ink);
}
.state-pill--planned {
  background: transparent;
  box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule);
  color: var(--color-muted);
}

/* Hero — Index-First Counter posture on / */
.hero-counter {
  min-height: calc(100svh - var(--space-2xl));
  min-height: calc(100dvh - var(--space-2xl));
  display: flex;
  align-items: center;
  padding-block: var(--space-lg);
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.ledger-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.ledger-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-xl);
  align-items: end;
}

.ledger-head h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 4.2vw + 0.75rem, 4.5rem);
  line-height: 1.02;
}

.ledger-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.lead-sub {
  color: var(--color-ink-2);
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

/* Bare ruled-paper course shelf (full 12-column Index-First Counter) */
.shelf-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.shelf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.shelf-search {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1 1 20rem;
  max-width: 30rem;
}

.shelf-search-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-2);
  white-space: nowrap;
}

.shelf-legend {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.shelf-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding-inline: var(--space-md);
  border: var(--rule-hair) solid var(--color-muted);
  border-radius: var(--radius-control);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: var(--text-md);
  outline: 2px solid transparent;
  outline-offset: -3px;
}
.shelf-input::placeholder {
  color: var(--color-muted);
}
.shelf-input:focus-visible {
  outline-color: var(--color-focus);
}
.shelf-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.shelf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule-hair) solid var(--color-ink);
}

.shelf-row {
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.shelf-link {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-sm);
  padding-inline: var(--space-xs);
  text-decoration: none;
  color: var(--color-ink);
  transition: background-color var(--dur-micro) var(--ease-out);
}
.shelf-link:hover {
  background: var(--color-paper-2);
}
.shelf-link:active {
  background: var(--color-paper-3);
}

.shelf-row-title {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-ink);
}

.shelf-row-scope {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-muted);
}

.shelf-empty {
  padding-block: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* Page sections & rhythm */
.page-section {
  padding-block: var(--section-gap);
  background: var(--color-paper);
}
.page-section--tight {
  padding-block: var(--section-gap-s);
}
.page-section--deep {
  padding-block: var(--section-gap-l);
}
.page-section--band {
  padding-block: var(--section-gap-s);
  background: var(--color-paper-2);
  border-top: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.page-section--ink {
  padding-block: var(--section-gap-s);
  background: var(--color-ink);
  color: var(--color-paper);
}
.page-section--ink h2,
.page-section--ink p {
  color: var(--color-paper);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--gap-columns);
  align-items: end;
  margin-bottom: var(--space-2xl);
}
.section-head-note {
  color: var(--color-ink-2);
  justify-self: end;
}
.section-head-action {
  justify-self: end;
}

/* Segmented track switcher inside Ink tinted well */
.track-well {
  padding: var(--space-xl);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
}

.track-well .track-tab {
  background: var(--color-paper);
}

.track-well .track-tab[aria-selected="true"] {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-paper);
}

.track-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.track-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-control);
  background: var(--color-paper-2);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.track-tab:hover {
  background: var(--color-paper-3);
}
.track-tab:active {
  transform: translateY(1px);
}
.track-tab[aria-selected="true"] {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-paper);
}

/* Full-width ruled data table */
.index-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.index-table {
  width: 100%;
  border-collapse: collapse;
  border-top: var(--rule-hair) solid var(--color-ink);
}
.index-table th,
.index-table td {
  padding-block: var(--space-md);
  padding-inline: var(--space-sm);
  text-align: left;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  vertical-align: middle;
}
.index-table th:first-child,
.index-table td:first-child {
  padding-left: 0;
}
.index-table th:last-child,
.index-table td:last-child {
  padding-right: 0;
  text-align: right;
}
.index-table th {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}
.index-table td {
  font-size: var(--text-md);
  color: var(--color-ink-2);
}
.index-table .col-title {
  font-weight: 600;
  color: var(--color-ink);
}
.index-table .col-title a {
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}
.index-table .col-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}
.index-table .col-metric {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--color-ink);
}
.index-table .col-note {
  font-size: var(--text-sm);
  white-space: nowrap;
  color: var(--color-ink-2);
}

/* Ruled syllabus index */
.syllabus-ruled {
  border-top: var(--rule-hair) solid var(--color-ink);
}
.syllabus-item {
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.syllabus-summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-md);
  padding-inline: var(--space-xs);
  cursor: pointer;
}
.syllabus-summary::-webkit-details-marker {
  display: none;
}
.syllabus-summary:hover {
  background: var(--color-paper-3);
}
.syllabus-num {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
}
.syllabus-title {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-ink);
}
.syllabus-meta {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
  white-space: nowrap;
}
.syllabus-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1;
  color: var(--color-ink);
}
.syllabus-toggle::before {
  content: '+';
}
.syllabus-item[open] .syllabus-toggle::before {
  content: '\2212';
}
.syllabus-body {
  padding-left: var(--space-xl);
  padding-right: var(--space-md);
  padding-bottom: var(--space-md);
}
.syllabus-summary-copy {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  margin-bottom: var(--space-sm);
}
.syllabus-links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule-hair) solid var(--color-rule-2);
}
.syllabus-links li {
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
}
.syllabus-lesson-a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
}
.syllabus-lesson-a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}
.syllabus-lesson-dur {
  font-family: var(--font-outlier);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
  white-space: nowrap;
}

/* Figures strip (patterns.md) */
.figures-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--rule-hair) solid var(--color-ink);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  margin-bottom: var(--space-2xl);
}
.figure-cell {
  padding-block: var(--space-xl);
  padding-inline: var(--space-lg);
  border-left: var(--rule-hair) solid var(--color-rule);
}
.figure-cell:first-child {
  padding-left: 0;
  border-left: 0;
}
.figure-val {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
  margin-bottom: var(--space-xs);
}
.figure-val--open {
  color: var(--color-accent);
}
.figure-label {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

/* Spec rows (<dl>) */
.spec-dl {
  margin: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gap-columns);
  padding-block: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.spec-row dt {
  font-weight: 600;
  color: var(--color-ink);
}
.spec-row dd {
  margin: 0;
  color: var(--color-ink-2);
}

/* Closing ink band */
.close-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap-columns);
  align-items: center;
}
.close-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-sm);
}

/* Catalog Banner hero (/courses) */
.hero-banner {
  padding-block: var(--space-3xl) var(--space-2xl);
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-ink);
}
.hero-banner + .page-section--tight {
  padding-top: var(--space-2xl);
}
.banner-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap-columns);
  align-items: end;
}
.catalog-h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 4.2vw + 0.75rem, 4.5rem);
  line-height: 1.02;
}
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

/* Live course feature row on /courses */
.live-course-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap-columns);
  align-items: start;
  padding-block: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-ink);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.live-course-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.live-course-title {
  font-size: var(--text-2xl);
}
.live-course-title a {
  text-decoration: none;
  color: var(--color-ink);
}
.live-course-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}
.live-course-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.live-course-stats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.live-course-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}
.live-course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Letter-close footer */
.site-footer {
  margin-top: auto;
  padding-block: var(--space-2xl);
  background: var(--color-paper);
  border-top: var(--rule-hair) solid var(--color-ink);
}
.footer-letter {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--gap-columns);
  align-items: start;
}
.footer-signoff {
  font-size: var(--text-md);
  color: var(--color-ink-2);
}
.footer-brand-name {
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: var(--space-xs);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-md) var(--space-lg);
}
.footer-links a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.footer-links a:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-control);
  background: var(--color-paper-2);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.back-to-top:hover {
  background: var(--color-paper-3);
  color: var(--color-ink);
}
.back-to-top:active {
  transform: translateY(1px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.toast-region {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* Responsive */
@media (max-width: 60rem) {
  .hero-counter {
    min-height: auto;
    padding-block: var(--space-lg);
  }
  .ledger-stack {
    gap: var(--space-lg);
  }
  .ledger-head,
  .section-head,
  .close-band-grid,
  .banner-head-grid,
  .live-course-row,
  .footer-letter,
  .spec-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .ledger-head {
    gap: var(--space-md);
  }
  .shelf-link {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2xs) var(--space-sm);
  }
  .shelf-row-title {
    grid-column: 1;
    grid-row: 1;
  }
  .shelf-link .state-pill {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .shelf-row-scope {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .section-head-note,
  .section-head-action,
  .close-band-actions,
  .footer-links {
    justify-self: start;
    justify-content: flex-start;
  }
  .figures-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .figure-cell {
    border-left: 0;
    border-top: var(--rule-hair) solid var(--color-rule);
    padding-inline: 0;
  }
  .figure-cell:first-child {
    border-top: 0;
  }
}

@media (max-width: 48rem) {
  .site-nav {
    display: none;
  }
  .nav-mobile {
    display: block;
  }
  .lead-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .lead-actions .action {
    width: 100%;
    padding-inline: var(--space-sm);
  }
  .shelf-search {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2xs);
  }
  .shelf-legend {
    display: none;
  }
  .figures-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .index-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .index-table tbody,
  .index-table tr {
    display: block;
    width: 100%;
  }
  .index-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2xs) var(--space-sm);
    padding-block: var(--space-md);
    border-bottom: var(--rule-hair) solid var(--color-rule);
  }
  .index-table td {
    display: block;
    padding: 0;
    border-bottom: 0;
    text-align: left;
  }
  .index-table td:last-child {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .index-table .col-title {
    grid-column: 1;
    grid-row: 1;
  }
  .index-table .col-scope {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: var(--text-sm);
  }
  .index-table .col-metric,
  .index-table .col-note {
    grid-column: 1 / -1;
    grid-row: 3;
    color: var(--color-muted);
  }
  .track-well {
    padding: var(--space-md);
  }
  .syllabus-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--space-2xs) var(--space-sm);
  }
  .syllabus-num {
    grid-column: 1;
    grid-row: 1;
  }
  .syllabus-title {
    grid-column: 2;
    grid-row: 1;
  }
  .syllabus-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .syllabus-meta {
    grid-column: 2 / -1;
    grid-row: 2;
  }
  .live-course-actions,
  .close-band-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .live-course-actions .action,
  .close-band-actions .action {
    width: 100%;
    padding-inline: var(--space-sm);
  }
  .live-course-actions .action:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
  }
  .syllabus-body {
    padding-left: var(--space-md);
  }
}
