/* ==========================================================================
   Turkey Day Bowling Lab — Editorial Sports-Lab Stylesheet
   Offline-first, zero external CDN dependencies, responsive 375px -> 1440px+
   ========================================================================== */

:root {
  /* Core palette shared with animations.css */
  --bg-surface: #fffdf9;
  --bg-card: #ffffff;
  --ink: #1e242b;
  --ink-muted: #52606d;
  --lane-wood: #f3d5a5;
  --lane-dark: #c99a5b;
  --accent: #b84a1e;
  --accent-2: #1f6f5b;
  --danger: #c0392b;
  --warn: #d48806;
  --border: #e5ddd1;

  /* Derived editorial tokens */
  --bg-warm: #f8f2e8;
  --bg-warm-2: #f2e8d8;
  --bg-deep: #1b232b;
  --bg-deep-2: #24303b;
  --ink-inverse: #faf6ef;
  --ink-inverse-muted: #c8d2dc;
  --accent-hover: #963914;
  --accent-soft: #fdf0ea;
  --accent-2-soft: #eaf5f1;
  --danger-soft: #fdf0ef;
  --warn-soft: #fef7e6;
  --lane-wood-soft: #fbf4e6;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    Palatino, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;

  /* Radii & Shadows */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(30, 36, 43, 0.05), 0 2px 6px rgba(30, 36, 43, 0.04);
  --shadow-md: 0 6px 20px rgba(30, 36, 43, 0.07), 0 2px 6px rgba(30, 36, 43, 0.04);
  --shadow-lg: 0 14px 36px rgba(30, 36, 43, 0.11), 0 4px 12px rgba(30, 36, 43, 0.05);

  /* Layout measurements */
  --header-h: 60px;
  --sidebar-w: 256px;
  --content-max: 820px;
  --page-max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background-color: var(--bg-surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.25;
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--bg-deep);
  color: var(--ink-inverse);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-xs);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

/* ==========================================================================
   Reading Progress Bar & Sticky Top Header
   ========================================================================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  z-index: 120;
  background: rgba(201, 154, 91, 0.2);
  pointer-events: none;
}

.reading-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--lane-dark) 65%, var(--accent-2) 100%);
  transition: width 0.08s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--page-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  min-width: 0;
}

.brand-mark__emblem {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d46537 0%, var(--accent) 60%, #7d2e0f 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 2px 5px rgba(184, 74, 30, 0.25);
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-mark__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark__sub {
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: none;
}

.header-nav {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 1px;
}

.header-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 6px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.header-nav a:hover {
  background: var(--bg-warm);
  color: var(--ink);
}

.header-nav a.is-centerpiece {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 40px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(184, 74, 30, 0.24);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(31, 111, 91, 0.2);
}

.btn--secondary:hover {
  background: #175747;
  color: #fff;
}

.btn--ghost {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--bg-warm);
  border-color: var(--lane-dark);
  color: var(--ink);
}

.btn--checklist {
  background: var(--accent-2);
  color: #fff;
  border-color: var(--accent-2);
  padding: 8px 12px;
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(31, 111, 91, 0.22);
}

.btn--checklist:hover {
  background: #175747;
  border-color: #175747;
  color: #fff;
}

.btn--checklist[aria-pressed="true"] {
  background: var(--bg-deep);
  border-color: var(--bg-deep);
  color: var(--lane-wood);
}

.btn--toc-mobile {
  padding: 7px 10px;
  font-size: 0.82rem;
  min-height: 38px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(243, 213, 165, 0.34) 0%, rgba(255, 253, 249, 0.96) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(201, 154, 91, 0.08) 0px,
      rgba(201, 154, 91, 0.08) 18px,
      transparent 18px,
      transparent 20px
    );
  border-bottom: 1px solid var(--border);
  padding: 36px 16px 32px;
}

.hero__inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.hero__kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__title {
  font-size: clamp(1.95rem, 4.8vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 14px;
  max-width: 22ch;
}

.hero__lead {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: var(--ink-muted);
  max-width: 64ch;
  margin-bottom: 22px;
}

.hero__lead strong {
  color: var(--ink);
}

.hero__jumps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.jump-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 15px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.jump-card:hover {
  transform: translateY(-2px);
  border-color: var(--lane-dark);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.jump-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.jump-card__title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}

.jump-card__desc {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.jump-card--featured {
  background: linear-gradient(135deg, #fff6f1 0%, #ffffff 100%);
  border-color: rgba(184, 74, 30, 0.45);
  box-shadow: 0 4px 14px rgba(184, 74, 30, 0.1);
}

.jump-card--featured .jump-card__tag {
  color: var(--accent);
}

.jump-card--checklist {
  background: linear-gradient(135deg, #eef7f4 0%, #ffffff 100%);
  border-color: rgba(31, 111, 91, 0.42);
}

.jump-card--checklist .jump-card__tag {
  color: var(--accent-2);
}

/* Lane stripe visual divider */
.lane-divider {
  height: 8px;
  width: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      var(--lane-wood) 0px,
      var(--lane-wood) 28px,
      var(--lane-dark) 28px,
      var(--lane-dark) 30px
    );
  opacity: 0.55;
  border-top: 1px solid rgba(201, 154, 91, 0.4);
  border-bottom: 1px solid rgba(201, 154, 91, 0.4);
}

/* ==========================================================================
   Mobile Collapsible TOC Drawer
   ========================================================================== */

.mobile-toc {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}

.mobile-toc__panel {
  max-width: var(--page-max);
  margin: 0 auto;
}

.mobile-toc__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.mobile-toc__list[hidden] {
  display: none;
}

.mobile-toc__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 550;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.mobile-toc__list a.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ==========================================================================
   Main Two-Column Editorial Grid
   ========================================================================== */

.page-shell {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 24px 16px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.toc-sidebar {
  display: none;
}

.main-content {
  min-width: 0;
  max-width: 100%;
}

/* ==========================================================================
   Editorial Guide Sections (WS-2 Walkthrough)
   ========================================================================== */

.part-banner {
  margin: 8px 0 22px;
  padding: 16px 20px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--lane-dark);
  border-radius: var(--radius-md);
}

.part-banner__eyebrow {
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.part-banner__title {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.part-banner__desc {
  font-size: 0.93rem;
  color: var(--ink-muted);
  margin: 0;
}

.guide-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.guide-section__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lane-wood);
  color: #5c3a14;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(201, 154, 91, 0.65);
}

.guide-section__title-wrap {
  min-width: 0;
}

.guide-section__eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.guide-section__title {
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  margin: 0;
}

.guide-section h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--ink);
}

.guide-section ul,
.guide-section ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.guide-section li {
  margin-bottom: 0.45rem;
}

.guide-section li:last-child {
  margin-bottom: 0;
}

/* Inline term gloss & glossary callouts */
.glossary-box {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--lane-wood-soft);
  border: 1px solid rgba(201, 154, 91, 0.5);
  border-radius: var(--radius-md);
}

.glossary-box__title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7c4d17;
  margin: 0 0 8px;
}

.glossary-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.glossary-list__item {
  font-size: 0.92rem;
  line-height: 1.5;
}

.glossary-list__item dt {
  display: inline;
  font-weight: 750;
  color: var(--ink);
}

.glossary-list__item dt::after {
  content: " — ";
  font-weight: 400;
  color: var(--lane-dark);
}

.glossary-list__item dd {
  display: inline;
  margin: 0;
  color: var(--ink-muted);
}

/* Editorial Callouts */
.callout {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-warm);
  font-size: 0.95rem;
}

.callout__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}

.callout--tip {
  background: var(--accent-2-soft);
  border-color: rgba(31, 111, 91, 0.3);
}

.callout--tip .callout__label {
  color: var(--accent-2);
}

.callout--warn {
  background: var(--warn-soft);
  border-color: rgba(212, 136, 6, 0.35);
}

.callout--warn .callout__label {
  color: #9a6000;
}

.callout--release {
  background: var(--accent-soft);
  border-color: rgba(184, 74, 30, 0.35);
}

.callout--release .callout__label {
  color: var(--accent);
}

.callout--danger {
  background: var(--danger-soft);
  border-color: rgba(192, 57, 43, 0.35);
}

.callout--danger .callout__label {
  color: var(--danger);
}

.handedness-note {
  margin: 0 0 20px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-2);
  font-size: 0.92rem;
  color: var(--ink);
}

.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0 22px;
}

.safety-grid .callout {
  margin: 0;
}

.coach-cue-inline {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  color: var(--ink-inverse);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.coach-cue-inline__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lane-wood);
}

.coach-cue-inline__phrase {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

/* Step Breakdown Cards (e.g. 4-Step Approach, Muscles Engaged) */
.step-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 14px 0 18px;
}

.step-card {
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  min-width: 0;
  max-width: 100%;
}

.step-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.step-card__badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

.step-card__title {
  font-weight: 750;
  font-size: 0.98rem;
  margin: 0;
}

.step-card p {
  font-size: 0.93rem;
  color: var(--ink-muted);
}

/* Responsive Data Tables (scoring, ball weight, quick-reference) */
.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--bg-card);
}

.guide-table th,
.guide-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.guide-table thead th {
  background: var(--bg-warm);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.guide-table tbody tr:last-child td {
  border-bottom: none;
}

/* Animation Mount Frame (keeps animations.css untouched while giving clean layout breathing room) */
.anim-frame {
  margin: 18px 0;
  min-width: 0;
  width: 100%;
}

.anim-frame__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.anim-mount {
  width: 100%;
  min-width: 0;
}

.anim-noscript {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-warm);
  font-size: 0.92rem;
}

.anim-noscript__title {
  font-weight: 750;
  color: var(--ink);
  margin: 0 0 6px;
}

.anim-noscript ol {
  margin: 0;
  padding-left: 1.2rem;
}

.lab-toolbar-wrap {
  margin: 0 0 18px;
}

.lab-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.lab-toolbar-actions .tdbl-skel-toggle,
.lab-toolbar-actions .btn--studio {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

/* ==========================================================================
   Curtis's Personal Form Summary Card (#personal-form)
   ========================================================================== */

.personal-form-card {
  margin: 0 0 20px;
  padding: 20px 16px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffaf1 0%, #ffffff 42%, #fbf7ef 100%);
  border: 2px solid var(--accent-2);
  box-shadow: var(--shadow-md);
  min-width: 0;
  max-width: 100%;
}

.personal-form-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.personal-form-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 3px;
}

.personal-form-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  margin: 0 0 4px;
}

.personal-form-card__sub {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
  max-width: 64ch;
}

.personal-form-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--lane-wood);
  white-space: nowrap;
  flex-shrink: 0;
}

.personal-form-grid {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.personal-form-item {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--accent-2);
  font-size: 0.91rem;
  line-height: 1.48;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.personal-form-item--mantra {
  background: linear-gradient(135deg, #1b232b 0%, #24303b 100%);
  border-color: var(--lane-dark);
  border-left-color: var(--lane-wood);
  color: var(--ink-inverse);
}

.personal-form-item--mantra .personal-form-item__label {
  color: var(--lane-wood);
}

.personal-form-item--mantra strong {
  color: #ffffff;
}

.personal-form-item__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 3px;
}

.personal-form-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.personal-form-links__title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-right: 4px;
}

.lab-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  max-width: 100%;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lab-doc-link:hover {
  background: var(--lane-wood);
  border-color: var(--lane-dark);
  color: var(--ink);
}

/* Inline Animation Ordering Helper Note */
.anim-order-note {
  margin: 12px 0 8px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: var(--lane-wood-soft);
  border: 1px dashed rgba(201, 154, 91, 0.75);
  color: #633e13;
  font-size: 0.86rem;
  line-height: 1.45;
}

.anim-order-note strong {
  color: var(--ink);
}

/* Sports-Science & Academic Cross-Check Box (#academic-crosscheck) */
.academic-callout {
  margin: 28px 0 0;
  padding: 20px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f3f7fb 0%, #ffffff 100%);
  border: 1.5px solid rgba(29, 59, 92, 0.28);
  border-left: 5px solid #1d3b5c;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.academic-callout__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.academic-callout__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1d3b5c;
  margin-bottom: 3px;
}

.academic-callout__title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  margin: 0;
}

.academic-callout__lead {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.academic-pillars {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.academic-pillar {
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.89rem;
  line-height: 1.48;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.academic-pillar__tag {
  display: inline-block;
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1d3b5c;
  background: #e8eff7;
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.academic-callout__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.btn--studio {
  background: var(--bg-warm);
  color: var(--ink);
  border: 1px solid var(--lane-dark);
  font-size: 0.82rem;
  padding: 7px 12px;
  min-height: 38px;
}

.btn--studio:hover {
  background: var(--lane-wood);
  color: var(--ink);
}

.toc-skel-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.toc-skel-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.78rem;
  padding: 7px 10px;
  min-height: 36px;
}

/* Inline Source Citation Links */
.cite-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  margin: 0 1px;
  border-radius: 4px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
  vertical-align: baseline;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cite-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ==========================================================================
   CENTERPIECE: Release Point Deep Dive (WS-3)
   ========================================================================== */

.centerpiece {
  position: relative;
  margin: 34px 0;
  padding: 26px 18px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 22%, #fffcf7 100%);
  border: 2px solid var(--accent);
  box-shadow: 0 14px 34px rgba(184, 74, 30, 0.11), 0 3px 10px rgba(30, 36, 43, 0.06);
}

.centerpiece::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0;
  background: linear-gradient(90deg, var(--danger) 0%, var(--accent) 45%, var(--warn) 75%, var(--accent-2) 100%);
}

.centerpiece__header {
  margin-bottom: 20px;
}

.centerpiece__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.centerpiece__title {
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  margin-bottom: 8px;
}

.centerpiece__intro {
  font-size: 1.02rem;
  color: var(--ink-muted);
  max-width: 66ch;
}

/* Symptom Diagnostic Cards */
.symptom-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.symptom-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left-width: 5px;
  border-radius: var(--radius-md);
  padding: 18px 14px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.symptom-card--low {
  border-left-color: var(--danger);
}

.symptom-card--high {
  border-left-color: var(--warn);
}

.symptom-card--stick {
  border-left-color: var(--accent);
}

.symptom-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.symptom-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0;
}

.symptom-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
}

.symptom-pill--low {
  background: var(--danger-soft);
  color: var(--danger);
}

.symptom-pill--high {
  background: var(--warn-soft);
  color: #9a6000;
}

.symptom-pill--stick {
  background: var(--accent-soft);
  color: var(--accent);
}

.symptom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.symptom-block {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.symptom-block--fix {
  background: var(--accent-2-soft);
  border-color: rgba(31, 111, 91, 0.25);
}

.symptom-block__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.symptom-block--fix .symptom-block__label {
  color: var(--accent-2);
}

.symptom-block p,
.symptom-block ul {
  font-size: 0.92rem;
  margin: 0;
}

.symptom-block ul {
  padding-left: 1.15rem;
}

.symptom-block li + li {
  margin-top: 4px;
}

/* Correct Release Blueprint */
.release-blueprint {
  margin: 24px 0;
  padding: 20px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #edf7f3 0%, #f9fdfb 100%);
  border: 1.5px solid rgba(31, 111, 91, 0.45);
}

.release-blueprint__eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.release-blueprint__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.blueprint-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.blueprint-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(31, 111, 91, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
}

.blueprint-steps__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Drills inside Centerpiece */
.drill-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 18px 0 24px;
}

.drill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.drill-card li {
  min-width: 0;
}

.drill-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.meta-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.meta-tag--home {
  background: var(--accent-2-soft);
  color: var(--accent-2);
  border-color: rgba(31, 111, 91, 0.25);
}

.drill-card__title {
  font-size: 1.08rem;
  font-weight: 750;
  margin: 0 0 6px;
}

.drill-card__lead {
  font-size: 0.93rem;
  color: var(--ink-muted);
  margin: 0 0 10px;
}

.drill-card ol {
  margin: 8px 0 0;
  padding-left: 1.3rem;
  font-size: 0.93rem;
}

.drill-card li + li {
  margin-top: 6px;
}

/* Bold 3 Verbal Cues Banner */
.cues-banner {
  margin-top: 24px;
  padding: 22px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  color: var(--ink-inverse);
  border: 2px solid var(--lane-dark);
  box-shadow: var(--shadow-md);
}

.cues-banner__eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lane-wood);
  margin-bottom: 6px;
}

.cues-banner__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 14px;
}

.cues-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.cue-tile {
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(243, 213, 165, 0.35);
}

.cue-tile__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lane-wood);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cue-tile__phrase {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 4px 0 4px;
}

.cue-tile__why {
  font-size: 0.86rem;
  color: var(--ink-inverse-muted);
  margin: 0;
}

/* ==========================================================================
   Tonight at Home (10-Minute No-Ball Routine)
   ========================================================================== */

.tonight-section {
  background: linear-gradient(180deg, #fffdf9 0%, #f8f2e8 100%);
  border: 1.5px solid var(--lane-dark);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.tonight-section__eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.tonight-section__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 8px;
}

.routine-timeline {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.routine-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 15px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 0;
  max-width: 100%;
}

.routine-block > div {
  min-width: 0;
  max-width: 100%;
}

.routine-block__time {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent-2);
  padding: 3px 9px;
  border-radius: 999px;
}

.routine-block__title {
  font-weight: 750;
  font-size: 1rem;
  margin: 0 0 4px;
}

.routine-block__body {
  font-size: 0.93rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Thanksgiving Game-Day Phone Checklist (#gameday-checklist)
   Optimized for 375px-430px phone screens with zero horizontal overflow
   ========================================================================== */

.checklist-section {
  background: var(--bg-card);
  border: 2px solid var(--accent-2);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  margin: 28px 0;
  box-shadow: var(--shadow-md);
}

.checklist-mode-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  color: var(--ink-inverse);
  font-size: 0.82rem;
}

.checklist-mode-bar__label {
  font-weight: 700;
  color: var(--lane-wood);
}

.checklist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.checklist-head__eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 2px;
}

.checklist-head__title {
  font-size: 1.35rem;
  margin: 0;
}

.checklist-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-progress {
  margin-bottom: 12px;
}

.checklist-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.checklist-progress__bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--bg-warm-2);
  overflow: hidden;
}

.checklist-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
  border-radius: 999px;
  transition: width 0.2s ease;
}

/* Compact phone-card grid */
.checklist-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.check-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 10px 8px;
  background: var(--bg-surface);
}

.check-group__title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin: 0 0 6px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.check-item {
  border-radius: var(--radius-xs);
  transition: background-color 0.15s ease;
}

.check-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 8px;
  min-height: 40px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.32;
}

.check-item:hover {
  background: var(--bg-warm);
}

.checklist-input {
  appearance: none;
  -webkit-appearance: none;
  width: 21px;
  height: 21px;
  min-width: 21px;
  margin: 1px 0 0;
  border: 2px solid var(--lane-dark);
  border-radius: 6px;
  background: #fff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.checklist-input::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 0.12s ease;
  box-shadow: inset 1em 1em #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.checklist-input:checked {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.checklist-input:checked::before {
  transform: scale(1);
}

.check-item.is-checked .check-item__text {
  text-decoration: line-through;
  color: var(--ink-muted);
  opacity: 0.72;
}

.check-item__text strong {
  color: var(--ink);
}

/* Compact Lane-Side Cues & Emergency Release Decoder inside the checklist card */
.phone-cues-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.phone-cue-chip {
  background: var(--bg-deep);
  color: #fff;
  border-radius: var(--radius-xs);
  padding: 8px 6px;
  text-align: center;
  border: 1px solid var(--lane-dark);
}

.phone-cue-chip__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lane-wood);
  margin-bottom: 2px;
}

.phone-cue-chip__text {
  display: block;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.2;
}

.quick-fix-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.quick-fix-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  padding: 7px 9px;
  border-radius: var(--radius-xs);
  font-size: 0.83rem;
  line-height: 1.35;
  border-left: 3px solid var(--border);
  background: var(--bg-warm);
}

.quick-fix-row--low {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.quick-fix-row--high {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.quick-fix-row--stick {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.quick-fix-row__tag {
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Single-screen 9-line phone card list inside #gameday-checklist */
.phone-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.phone-card-list .check-item {
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
}

.phone-card-list .check-item--mantra {
  background: var(--bg-deep);
  border-color: var(--lane-dark);
  border-left-color: var(--lane-wood);
  color: var(--ink-inverse);
}

.phone-card-list .check-item--mantra:hover {
  background: var(--bg-deep-2);
}

.phone-card-list .check-item--mantra .check-item__text,
.phone-card-list .check-item--mantra .check-item__text strong {
  color: #fff;
}

.phone-card-list .check-item--mantra .check-item__mantra-phrase {
  color: var(--lane-wood);
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.phone-card-list .check-item--drop {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.phone-card-list .check-item--loft {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.phone-card-list .check-item--stick {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.phone-card-list .check-item--aim {
  border-left-color: var(--accent-2);
  background: var(--accent-2-soft);
}

body.checklist-mode .phone-card-list {
  gap: 3px;
}

body.checklist-mode .phone-card-list .check-item label {
  padding: 5px 7px;
  min-height: 36px;
  font-size: 1rem;
  line-height: 1.22;
}

body.checklist-mode .checklist-progress {
  margin-bottom: 6px;
}

body.checklist-mode .checklist-progress__meta {
  font-size: 0.75rem;
  margin-bottom: 3px;
}

body.checklist-mode .checklist-head__eyebrow {
  display: none;
}

body.checklist-mode .site-header {
  height: 48px;
}

body.checklist-mode .checklist-mode-bar {
  display: none;
}

.checklist-head__exit {
  display: none;
}

body.checklist-mode .checklist-head__exit {
  display: inline-flex;
}

.btn--reset {
  padding: 6px 10px;
  font-size: 0.78rem;
  min-height: 34px;
}

/* ==========================================================================
   Focused "Game-Day Checklist Mode" (body.checklist-mode)
   Turns the page into a dedicated one-screen phone card at the lanes
   ========================================================================== */

body.checklist-mode {
  background: #f2ece2;
}

body.checklist-mode .reading-progress,
body.checklist-mode .hero,
body.checklist-mode .lane-divider,
body.checklist-mode .mobile-toc,
body.checklist-mode .toc-sidebar,
body.checklist-mode .header-nav,
body.checklist-mode .btn--toc-mobile,
body.checklist-mode .personal-form-card,
body.checklist-mode .lab-toolbar-wrap,
body.checklist-mode .handedness-note,
body.checklist-mode .part-banner,
body.checklist-mode .guide-section,
body.checklist-mode .centerpiece,
body.checklist-mode .tonight-section,
body.checklist-mode .principles-section,
body.checklist-mode .library-section,
body.checklist-mode .academic-callout,
body.checklist-mode .site-footer {
  display: none !important;
}

body.checklist-mode .page-shell {
  display: block;
  max-width: 460px;
  padding: 6px 8px 14px;
}

body.checklist-mode .checklist-section {
  margin: 0;
  padding: 8px 10px 10px;
  border-radius: var(--radius-md);
}

body.checklist-mode .checklist-head {
  margin-bottom: 6px;
  padding-bottom: 6px;
  align-items: center;
}

body.checklist-mode .checklist-head__title {
  font-size: 1.05rem;
}

/* ==========================================================================
   First-Principles Notes Panel (#first-principles)
   ========================================================================== */

.principles-section {
  background: linear-gradient(180deg, #f9f6f0 0%, #ffffff 100%);
  border: 1.5px solid var(--border);
  border-left: 5px solid #1d3b5c;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  margin: 30px 0 8px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.principles-section__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.principles-section__eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1d3b5c;
  margin-bottom: 4px;
}

.principles-section__title {
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  margin: 0;
}

.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.principles-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.91rem;
  line-height: 1.48;
  min-width: 0;
  max-width: 100%;
}

.principles-item strong {
  color: var(--ink);
}

.principles-item__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1d3b5c;
  background: #e8eff7;
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 5px;
}

@media (min-width: 640px) {
  .principles-section {
    padding: 26px 26px;
  }

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

/* ==========================================================================
   Curated Source & Video Library (WS-1)
   ========================================================================== */

.library-section {
  margin: 34px 0 0;
  padding-top: 8px;
}

.library-head {
  margin-bottom: 16px;
}

.library-head__eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.library-head__title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 6px;
}

.library-head__sub {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 18px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 650;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--ink-muted);
  cursor: pointer;
  min-height: 36px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--lane-dark);
  color: var(--ink);
  background: var(--bg-warm);
}

.filter-pill[aria-pressed="true"] {
  background: var(--bg-deep);
  border-color: var(--bg-deep);
  color: #fff;
}

.source-count {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-muted);
}

.source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.source-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.source-card[hidden] {
  display: none;
}

.source-card.is-highlighted {
  border-color: var(--accent);
  background: #fff7f2;
  box-shadow: 0 0 0 3px rgba(184, 74, 30, 0.22), var(--shadow-md);
}

.source-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.source-id {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-deep);
  color: var(--lane-wood);
}

.badge-format {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
}

.badge-format--video {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-format--article {
  background: var(--accent-2-soft);
  color: var(--accent-2);
}

.badge-format--pdf {
  background: #e8eff7;
  color: #1d3b5c;
  border: 1px solid rgba(29, 59, 92, 0.22);
}

.badge-cat {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.source-card__title {
  font-size: 1.02rem;
  font-weight: 750;
  margin: 0;
  line-height: 1.3;
}

.source-card__title a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(184, 74, 30, 0.45);
}

.source-card__title a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.source-card__org {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.source-card__covers {
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0;
}

.source-card__release-note {
  font-size: 0.82rem;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  background: var(--lane-wood-soft);
  border: 1px solid rgba(201, 154, 91, 0.45);
  color: #6b4112;
}

.source-card__release-note strong {
  color: #4f2f0a;
}

.source-card__claims {
  margin: 2px 0 0;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.source-card__claims li + li {
  margin-top: 3px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
  padding: 28px 16px 40px;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (min-width: 640px) {
  .brand-mark__sub {
    display: block;
  }

  .guide-section {
    padding: 28px 28px;
  }

  .centerpiece {
    padding: 32px 28px 34px;
  }

  .tonight-section {
    padding: 28px;
  }

  .checklist-section {
    padding: 24px 24px;
  }

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

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

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

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

  .routine-block {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }

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

  body.checklist-mode .checklist-groups {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .personal-form-card {
    padding: 24px 24px 20px;
  }

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

  .personal-form-item--mantra {
    grid-column: 1 / -1;
  }

  .academic-callout {
    padding: 24px 24px;
  }

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

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

@media (min-width: 1080px) {
  .site-header__inner {
    gap: 8px;
  }

  .brand-mark {
    flex-shrink: 0;
  }

  .brand-mark__title {
    overflow: visible;
    text-overflow: clip;
  }

  .header-nav {
    display: flex;
  }

  .mobile-toc,
  .btn--toc-mobile {
    display: none;
  }

  .page-shell {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    gap: 36px;
    padding: 32px 24px 84px;
  }

  .toc-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 36px);
    overflow-y: auto;
    padding-right: 6px;
  }

  .toc-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    box-shadow: var(--shadow-sm);
  }

  .toc-box__title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    padding: 0 8px 8px;
    margin: 0 0 6px;
    border-bottom: 1px solid var(--border);
  }

  .toc-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
  }

  .toc-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-xs);
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 550;
    color: var(--ink-muted);
    line-height: 1.3;
    border-left: 2.5px solid transparent;
    transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
  }

  .toc-nav a:hover {
    background: var(--bg-warm);
    color: var(--ink);
  }

  .toc-nav a.is-active {
    background: var(--accent-soft);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 700;
  }

  .toc-nav__num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    opacity: 0.75;
    width: 18px;
    flex-shrink: 0;
  }

  .toc-nav__divider {
    height: 1px;
    background: var(--border);
    margin: 6px 8px;
  }

  .toc-nav a.toc-link--centerpiece {
    color: var(--accent);
    font-weight: 700;
    background: rgba(184, 74, 30, 0.06);
  }

  .toc-nav a.toc-link--checklist {
    color: var(--accent-2);
    font-weight: 700;
  }
}

@media (min-width: 1200px) {
  .site-header__inner {
    gap: 12px;
  }

  .header-nav {
    gap: 4px;
  }

  .header-nav a {
    font-size: 0.84rem;
    padding: 6px 9px;
  }
}

/* ==========================================================================
   Print Styles (Clean lane-side pocket reference)
   ========================================================================== */

@media print {
  .reading-progress,
  .site-header,
  .mobile-toc,
  .toc-sidebar,
  .hero__jumps,
  .filter-bar,
  .checklist-controls,
  .checklist-mode-bar,
  .btn {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
  }

  .page-shell {
    display: block;
    padding: 0;
    max-width: 100%;
  }

  .guide-section,
  .centerpiece,
  .tonight-section,
  .checklist-section,
  .source-card {
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
    border-color: #bbb !important;
  }

  .cues-banner,
  .phone-cue-chip {
    background: #f5f5f5 !important;
    color: #000 !important;
    border: 1.5px solid #333 !important;
  }

  .cues-banner__title,
  .cue-tile__phrase,
  .cue-tile__why,
  .phone-cue-chip__num,
  .phone-cue-chip__text {
    color: #000 !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #444;
    word-break: break-all;
  }
}
