/* Generated from @allena/shared tokens — do not edit by hand. */
:root {
  --bg: #F6F6F3;
  --surface: #FFFFFF;
  --border: #E4E4DE;
  --text: #0B0B0C;
  --text2: #71717A;
  --brand: #C9F24B;
  --brand-hover: #B6DE33;
  --destructive: #D93A28;
  --brand-ink: #0B0B0C;
  --shadow-card: 0px 4px 10px rgba(11, 11, 12, 0.08);
  --shadow-modal: 0px 18px 30px rgba(11, 11, 12, 0.24);
  --ink: #0B0B0C;
  --ink-rgb: 11, 11, 12;
  --paper: #FFFFFF;
  --paper-rgb: 255, 255, 255;
  --paper-ink: #F4F4F1;
  --brand-rgb: 201, 242, 75;
  --radius: 12px;
  --gutter: 20px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-xxl: 24px;
  --type-display: 800 88px/88px Manrope, system-ui, sans-serif;
  --type-h1: 800 36px/38px Manrope, system-ui, sans-serif;
  --type-h1Sm: 800 34px/37px Manrope, system-ui, sans-serif;
  --type-h2: 800 30px/34px Manrope, system-ui, sans-serif;
  --type-h3: 800 24px/26px Manrope, system-ui, sans-serif;
  --type-section: 800 19px/23px Manrope, system-ui, sans-serif;
  --type-body: 500 15px/22px Manrope, system-ui, sans-serif;
  --type-bodyBold: 800 15px/19px Manrope, system-ui, sans-serif;
  --type-label: 800 14px/17px Manrope, system-ui, sans-serif;
  --type-small: 500 12.5px/16px Manrope, system-ui, sans-serif;
  --type-eyebrow: 800 11px/11px Manrope, system-ui, sans-serif;
  --type-display-ls: -4.4px;
  --type-h1-ls: -1.08px;
  --type-h1Sm-ls: -1.02px;
  --type-h2-ls: -0.6px;
  --type-h3-ls: -0.48px;
  --type-section-ls: -0.38px;
  --type-body-ls: 0px;
  --type-bodyBold-ls: 0px;
  --type-label-ls: 0px;
  --type-small-ls: 0px;
  --type-eyebrow-ls: 1.54px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0B;
    --surface: #15151A;
    --border: #26262E;
    --text: #F4F4F1;
    --text2: #8E8E98;
    --brand: #C9F24B;
    --brand-hover: #DDFF6B;
    --destructive: #FF4F3D;
    --brand-ink: #0B0B0C;
    --shadow-card: 0px 1px 3px rgba(0, 0, 0, 0.45);
    --shadow-modal: 0px 18px 30px rgba(0, 0, 0, 0.65);
  }
}

/* Hand-rolled site styles on top of the generated token custom properties.
   Manrope is self-hosted from @fontsource files copied into /fonts at build.

   Colour discipline: every colour is a token variable or an rgba() of the
   generated --*-rgb triplets — no hex value is written by hand here. The
   fixed-ink variables (--ink, --paper, --paper-ink) are for chrome that sits
   on a photograph or plays a physical object (the device bezel): identical in
   both themes, by the same rule the app applies to on-photo chrome. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/fonts/manrope-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('/fonts/manrope-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--type-body);
  letter-spacing: var(--type-body-ls);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- header / footer ------------------------------------------------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-block: var(--space-xl);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font: var(--type-section);
  letter-spacing: var(--type-section-ls);
}

.wordmark svg {
  display: block;
}

.footer-band {
  border-top: 1px solid var(--border);
}

.footer {
  padding-block: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  color: var(--text2);
  font: var(--type-small);
}

.footer nav {
  display: flex;
  gap: var(--space-xl);
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---- buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 44px; /* minTap */
  padding: 0 var(--space-xxl);
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--brand-ink);
  font: var(--type-bodyBold);
  text-decoration: none;
}

.btn:hover {
  background: var(--brand-hover);
}

.btn-quiet {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-quiet:hover {
  background: var(--surface);
}

/* ---- landing bands ----------------------------------------------------- */

.band {
  padding-block: 72px;
  /* Decorative overflow (phone glow, side buttons) must never widen the
     page: clip, not hidden — hidden would make each band a scroll container. */
  overflow-x: clip;
}

/* Surface-tinted stripes give the page its rhythm; volt stays an accent. */
.band-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.band:first-child {
  padding-block: 24px 80px;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero .sub {
  margin-top: var(--space-xl);
  max-width: 44ch;
  color: var(--text2);
  font-size: 17px;
  line-height: 1.5;
}

.hero .actions {
  margin-top: var(--space-xxl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Keep text left of the mockup on even rows without reordering the markup. */
.feature.flip > .feature-copy {
  order: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font: var(--type-eyebrow);
  letter-spacing: var(--type-eyebrow-ls);
  text-transform: uppercase;
  color: var(--text2);
}

.eyebrow .chip {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
}

.feature h2 {
  margin-top: var(--space-lg);
  font: var(--type-h2);
  letter-spacing: var(--type-h2-ls);
}

.feature .body {
  margin-top: var(--space-md);
  max-width: 44ch;
  color: var(--text2);
  font-size: 16px;
  line-height: 1.55;
}

.cta-band {
  padding-block: 96px;
  text-align: center;
}

.cta-band .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.cta-band h2 {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: var(--text2);
}

/* ---- device mockup ------------------------------------------------------ */

.hero-stage,
.feature-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.phone-stage.glow::before {
  content: '';
  position: absolute;
  inset: -10% -30%;
  background: radial-gradient(
    closest-side,
    rgba(var(--brand-rgb), 0.34),
    transparent 74%
  );
  pointer-events: none;
}

/* The device is a physical object: fixed ink in both themes. The hairline
   keeps the bezel separated from a dark page background. */
.phone {
  position: relative;
  width: min(340px, 100%);
  padding: 10px;
  border-radius: 48px;
  background: var(--ink);
  border: 1px solid rgba(var(--paper-rgb), 0.16);
  box-shadow: var(--shadow-modal), var(--shadow-card);
}

/* Side buttons: volume pair left (the second via box-shadow), power right. */
.phone::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 18%;
  width: 3px;
  height: 36px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 48px 0 var(--ink);
}

.phone::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 24%;
  width: 3px;
  height: 62px;
  border-radius: 2px;
  background: var(--ink);
}

.phone-screen {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: 38px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.phone-status {
  position: relative;
  z-index: 3;
  flex: none;
  height: 40px;
  padding: 14px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}

.phone-time {
  font: 800 13px/1 Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.phone-island {
  position: absolute;
  left: 50%;
  top: 11px;
  transform: translateX(-50%);
  width: 82px;
  height: 23px;
  border-radius: 12px;
  background: var(--ink);
  border: 1px solid rgba(var(--paper-rgb), 0.1);
}

.phone-glyphs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-glyphs svg {
  display: block;
}

/* Full-bleed screens float the status bar over the content. The photo behind
   it is bright in both themes, so it uses fixed ink like all on-photo chrome. */
.phone-screen.bleed .phone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: var(--ink);
}

/* ---- app screens inside the frame -------------------------------------- */

.app-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 16px 18px;
}

.app-eyebrow {
  font: 800 10px/1 Manrope, system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
}

.app-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.app-bleed {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.pose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.app-headings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.app-title {
  font: 800 23px/1.12 Manrope, system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--text);
}

.app-body {
  font: 500 12.5px/1.45 Manrope, system-ui, sans-serif;
  color: var(--text2);
}

.app-spacer {
  flex: 1;
  min-height: 4px;
}

.app-btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--brand-ink);
  font: 800 14px/1 Manrope, system-ui, sans-serif;
}

.app-btn.ink {
  background: var(--text);
  color: var(--bg);
}

/* ---- coach overlay chrome (fixed ink on the photo) ---------------------- */

.pbadge {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--radius);
  font: 800 11px/1 Manrope, system-ui, sans-serif;
}

.pbadge-live {
  left: 10px;
  background: var(--brand);
  color: var(--brand-ink);
}

.pdot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--brand-ink);
}

.pbadge-rep {
  right: 10px;
  background: var(--ink);
  color: var(--paper-ink);
  border: 1px solid rgba(var(--paper-rgb), 0.18);
  font-variant-numeric: tabular-nums;
}

/* Bottom-left, on the floor, where both chips stay legible. */
.pcalls {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.pcall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 0 10px;
  border-radius: var(--radius);
  font: 800 11.5px/1 Manrope, system-ui, sans-serif;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}

.pcall-good {
  background: var(--brand);
  color: var(--brand-ink);
}

/* The camera view has the whole screen, so its chrome clears the status bar
   and sits a little further from the edges. */
.app-bleed .pbadge {
  top: 46px;
}

.app-bleed .pbadge-live {
  left: 12px;
}

.app-bleed .pbadge-rep {
  right: 12px;
}

.app-bleed .pcalls {
  left: 12px;
  bottom: 22px;
}

/* ---- plan screen -------------------------------------------------------- */

.app-projection {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  color: var(--text);
}

.app-projection b {
  font: 800 52px/1 Manrope, system-ui, sans-serif;
  letter-spacing: -0.05em;
  color: var(--brand-hover);
  font-variant-numeric: tabular-nums;
}

.app-projection span {
  font: 800 18px/1 Manrope, system-ui, sans-serif;
  letter-spacing: -0.02em;
  padding-bottom: 6px;
}

.app-projection-sub {
  font: 800 13px/1.25 Manrope, system-ui, sans-serif;
  letter-spacing: -0.01em;
  color: var(--text);
}

.app-chart-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.app-chart {
  width: 100%;
  height: 78px;
  overflow: visible;
}

.app-chart-line {
  fill: none;
  stroke: var(--brand-hover);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.app-chart-target {
  stroke: var(--brand-hover);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1 5;
  vector-effect: non-scaling-stroke;
}

.app-chart-base {
  stroke: var(--border);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.app-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font: 500 9.5px/1.2 Manrope, system-ui, sans-serif;
  color: var(--text2);
  text-align: center;
}

.app-basis {
  font: 500 9.5px/1.4 Manrope, system-ui, sans-serif;
  color: var(--text2);
}

.app-week-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.app-week-label {
  font: 800 12px/1 Manrope, system-ui, sans-serif;
  color: var(--text);
}

.app-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.app-day {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font: 800 10.5px/1 Manrope, system-ui, sans-serif;
  color: var(--text);
}

.app-day.on {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: transparent;
}

/* ---- legal / support pages -------------------------------------------- */

.prose {
  max-width: 720px;
  padding-block: 40px 72px;
}

.prose h1 {
  font: var(--type-h1);
  letter-spacing: var(--type-h1-ls);
}

.prose .meta {
  margin-top: var(--space-md);
  color: var(--text2);
  font: var(--type-small);
}

.prose h2 {
  margin-top: var(--space-xxl);
  font: var(--type-section);
  letter-spacing: var(--type-section-ls);
}

.prose p {
  margin-top: var(--space-lg);
  line-height: 1.6;
}

.prose ul {
  margin: var(--space-lg) 0 0;
  padding-left: var(--space-xl);
}

.prose li {
  line-height: 1.6;
}

.prose a {
  text-underline-offset: 3px;
}

.prose .btn {
  margin-top: var(--space-lg);
}

/* ---- 404 ---------------------------------------------------------------- */

.notfound {
  padding-block: 96px 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.notfound .code {
  font-weight: 800;
  font-size: clamp(64px, 12vw, 120px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.notfound p {
  color: var(--text2);
}

/* ---- small screens ------------------------------------------------------ */

@media (max-width: 799px) {
  .band {
    padding-block: 48px;
  }

  .band:first-child {
    padding-block: var(--space-md) 56px;
  }

  .hero,
  .feature {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature.flip > .feature-copy {
    order: 0;
  }

  .phone {
    width: min(300px, 100%);
  }

  .cta-band {
    padding-block: 64px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- exercise library --------------------------------------------------

   One card, one panel, one chip — reused across the index and the detail
   page so 8 records and 600 look like the same library. Everything is a
   token: surface for raised things, border for hairlines, text2 for the
   supporting line, volt reserved for the app CTA so it never reads as a
   quality signal on unreviewed content. */

.lib-head {
  max-width: 720px;
  padding-block: var(--space-lg) 0;
}

.lib-head h1 {
  margin-top: var(--space-md);
  font: var(--type-h1);
  letter-spacing: var(--type-h1-ls);
}

.lib-lede {
  margin-top: var(--space-lg);
  max-width: 56ch;
  color: var(--text2);
  font-size: 17px;
  line-height: 1.5;
}

.lib-quiet {
  color: var(--text2);
  font: var(--type-small);
  line-height: 1.5;
}

/* Never volt: a draft warning must not borrow the brand's approval colour. */
.lib-notice {
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--destructive);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text2);
  font: var(--type-small);
  line-height: 1.55;
}

.lib-notice strong {
  color: var(--text);
}

.lib-status {
  display: inline-block;
  margin-left: var(--space-sm);
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text2);
  font: 800 10px/1.4 Manrope, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.lib-retired {
  border-color: var(--destructive);
}

.lib-h2 {
  font: var(--type-h2);
  letter-spacing: var(--type-h2-ls);
}

/* ---- index: anchor filters --------------------------------------------- */

.lib-filters .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.lib-rail {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: var(--space-lg);
  align-items: baseline;
}

.lib-rail-label {
  font: var(--type-eyebrow);
  letter-spacing: var(--type-eyebrow-ls);
  text-transform: uppercase;
  color: var(--text2);
}

.lib-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lib-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 34px;
  padding: 0 var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font: var(--type-label);
  text-decoration: none;
}

.lib-chip:hover {
  border-color: var(--text);
}

.lib-chip-count {
  color: var(--text2);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* ---- index: sections and cards ----------------------------------------- */

.lib-section,
.lib-list-section {
  /* Anchored from the filter rail — clear the section heading. */
  scroll-margin-top: var(--space-xxl);
}

.lib-section {
  margin-top: var(--space-xxl);
}

.lib-section h3,
.lib-list-section h3 {
  font: var(--type-section);
  letter-spacing: var(--type-section-ls);
}

.lib-grid {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
  gap: var(--space-md);
}

.lib-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
}

.lib-card:hover {
  border-color: var(--text);
  box-shadow: var(--shadow-card);
}

/* The image slot. Fixed 4:5 in both sizes, so a real asset swaps in
   without moving anything around it. */
.lib-art {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}

.lib-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lib-card .lib-art {
  flex: none;
  width: 72px;
}

.lib-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.lib-card-name {
  font: var(--type-bodyBold);
  color: var(--text);
}

.lib-card-meta {
  color: var(--text2);
  font: var(--type-small);
}

.lib-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.lib-list-section {
  margin-top: var(--space-xl);
}

.lib-links,
.lib-az {
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
}

.lib-links li,
.lib-az li {
  padding-block: 5px;
  line-height: 1.5;
}

.lib-az {
  columns: 3 220px;
  column-gap: 40px;
}

.lib-az li {
  break-inside: avoid;
}

.lib-links a,
.lib-az a {
  text-underline-offset: 3px;
}

/* ---- detail: hero ------------------------------------------------------- */

/* Doubled class so this beats `.band:first-child` above, which the detail
   hero always is. */
.band.lib-hero-band {
  padding-block: var(--space-lg) 64px;
}

.lib-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  color: var(--text2);
  font: var(--type-small);
}

.lib-crumbs a {
  text-decoration: none;
}

.lib-crumbs a:hover {
  text-decoration: underline;
}

.lib-hero {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.lib-hero-copy h1 {
  margin-top: var(--space-md);
  font: var(--type-h1);
  letter-spacing: var(--type-h1-ls);
}

.lib-hero-copy .lib-quiet {
  display: block;
  margin-top: var(--space-md);
}

.lib-facts {
  margin: var(--space-xxl) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-md);
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
}

.lib-facts dt {
  font: var(--type-eyebrow);
  letter-spacing: var(--type-eyebrow-ls);
  text-transform: uppercase;
  color: var(--text2);
}

.lib-facts dd {
  margin: 5px 0 0;
  font: var(--type-bodyBold);
}

/* ---- detail: body ------------------------------------------------------- */

.lib-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.lib-block,
.lib-panel {
  scroll-margin-top: var(--space-xxl);
}

.lib-block + .lib-block {
  margin-top: 48px;
}

.lib-block h2,
.lib-panel h2 {
  font: var(--type-h3);
  letter-spacing: var(--type-h3-ls);
}

.lib-block h3,
.lib-panel h3 {
  margin-top: var(--space-xl);
  font: var(--type-label);
}

.lib-block p,
.lib-panel p {
  margin-top: var(--space-md);
  line-height: 1.6;
}

.lib-steps,
.lib-bullets {
  margin: var(--space-md) 0 0;
  padding-left: var(--space-xl);
}

.lib-steps li,
.lib-bullets li {
  margin-top: var(--space-sm);
  line-height: 1.6;
}

.lib-steps li::marker {
  font-weight: 800;
  color: var(--text2);
}

.lib-mistakes {
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lib-mistake {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.lib-mistake h3 {
  margin-top: 0;
  font: var(--type-bodyBold);
}

/* Label column, so a wrapped sentence stays aligned under itself. */
.lib-mistake p {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-sm);
  align-items: baseline;
}

.lib-mistake p.lib-quiet {
  display: block;
}

.lib-tag {
  color: var(--text2);
  font: var(--type-eyebrow);
  letter-spacing: var(--type-eyebrow-ls);
  text-transform: uppercase;
}

.lib-stop {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--destructive);
  border-radius: var(--radius);
  background: var(--bg);
}

.lib-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lib-panel {
  padding: var(--space-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.lib-panel .lib-bullets {
  padding-left: var(--space-lg);
}

.lib-review {
  background: transparent;
  border-style: dashed;
}

.lib-relation + .lib-relation {
  margin-top: var(--space-lg);
}

@media (max-width: 899px) {
  .lib-detail,
  .lib-columns {
    grid-template-columns: 1fr;
    gap: var(--space-xxl);
  }

  .lib-hero {
    grid-template-columns: 200px 1fr;
    gap: var(--space-xxl);
  }
}

@media (max-width: 599px) {
  .lib-hero {
    grid-template-columns: 1fr;
  }

  .lib-hero .lib-art {
    max-width: 200px;
  }

  .lib-rail {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .lib-az {
    columns: 1;
  }
}
