/* DropSet — public program pages (/programs/). Component styles only.
 * The palette + fonts + metric tokens live in tokens.css (the single source of
 * truth, linked BEFORE this file on every page) — never redefine them here. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: linear-gradient(180deg, #0A0A0B 0%, #070708 100%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, .nav-logo { font-family: var(--sans); }
.section-label, .badge, .set-chip, .dow, .day-time, .rest-cell, .week-count, .pi-count { font-family: var(--mono); }
a { color: inherit; }

/* ── Layout ── */
.pp-main { max-width: calc(1120px + 2 * clamp(20px, 5vw, 64px)); margin: 0 auto; padding: 28px clamp(20px, 5vw, 64px) 80px; }  /* content spans a true 1120px, same as the landing .wrap (which is content-box) */
.crumbs { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--muted2); font-weight: 500; }

.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  /* Eyebrows are muted ink, not lime — the landing system keeps lime for the
     logo mark, primary CTA and active/selected states only. */
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}

/* ── Hero ── */
.pp-hero {
  display: flex; gap: 48px; align-items: center;
  margin-bottom: 56px;
}
.pp-hero-text { flex: 1 1 0; min-width: 0; }
.pp-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.05;
  margin-bottom: 10px;
}
.aka-line { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.aka-line span { color: var(--muted2); }
.lede { font-size: 16px; color: var(--muted2); max-width: 560px; margin-bottom: 20px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.badge {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted2); border-radius: 999px; padding: 5px 12px;
  white-space: nowrap;
}
.badge.lvl-beginner     { color: #7dd3fc; border-color: rgba(125,211,252,0.25); background: rgba(125,211,252,0.08); }
.badge.lvl-intermediate { color: var(--accent); border-color: rgba(91,123,166,0.25); background: var(--accent-dim); }
.badge.lvl-advanced     { color: #f9a8d4; border-color: rgba(249,168,212,0.25); background: rgba(249,168,212,0.08); }
.badge.rating           { color: var(--accent); border-color: rgba(91,123,166,0.25); background: var(--accent-dim); }
.pp-hero-art { flex: 0 1 420px; min-width: 0; }
.pp-hero-art img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(91,123,166,0.06);
}
@media (max-width: 820px) {
  .pp-hero { flex-direction: column-reverse; gap: 28px; align-items: stretch; }
  .pp-hero-art { flex-basis: auto; max-width: 480px; }
}

.hero-cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* Primary buttons match the landing's ink-filled .btn, not lime — the green
   read as too jarring. Lime is reserved for the founders badge and the
   highlighter underline. */

/* ── Content sections ── */
.pp-section { margin-bottom: 52px; }
.pp-section h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800; letter-spacing: -0.8px; line-height: 1.15;
  margin-bottom: 16px;
}
.pp-section > p { font-size: 15.5px; color: var(--muted2); max-width: 720px; margin-bottom: 14px; }
.section-sub { font-size: 14px !important; color: var(--muted) !important; }

.prog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.prog-chip {
  font-size: 12.5px; color: var(--muted2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 7px 14px;
}
.prog-note { font-size: 13px !important; color: var(--muted) !important; }

/* ── Program tables ── */
.week-block {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 14px; overflow: hidden;
}
.week-block > summary {
  display: flex; align-items: center; justify-content: space-between;
  list-style: none; cursor: pointer; padding: 16px 22px;
  font-family: var(--sans); font-weight: 700; font-size: 16px;
  transition: background 0.2s;
}
.week-block > summary:hover { background: var(--surface-hover); }
.week-block > summary::-webkit-details-marker { display: none; }
.week-block > summary::after { content: '+'; font-size: 20px; color: var(--muted); margin-left: 12px; }
.week-block[open] > summary::after { content: '–'; }
.week-count { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: auto; }
.week-block .day-block { margin: 0 18px 18px; }
.week-block .day-block:first-of-type { margin-top: 4px; }

.day-block { margin-bottom: 26px; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.day-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.day-meta { display: flex; gap: 10px; align-items: baseline; }
.dow { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.day-time { font-size: 11.5px; color: var(--muted2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,0.02); }
/* Fixed column widths so every day table on a page lines up identically
 * (auto layout let each table pick its own column positions — looked ragged). */
.day-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 460px; table-layout: fixed; }
.day-table th:nth-child(1) { width: 34%; }
.day-table th:nth-child(3) { width: 84px; }
.day-table th {
  text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  font-family: var(--mono);
}
.day-table td { padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: top; }
.day-table tbody tr:last-child td { border-bottom: none; }
.ex-cell { font-weight: 600; color: var(--text); }  /* wraps — fixed layout must not clip long names */
.sets-cell { color: var(--muted2); }
.rest-cell { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.set-chip {
  display: inline-block; font-size: 12px; color: var(--muted2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 7px; padding: 2px 8px; margin: 2px 3px 2px 0;
  white-space: nowrap;
}
.set-chip.amrap { color: var(--accent); border-color: rgba(91,123,166,0.3); background: var(--accent-dim); }
.ss-tag {
  display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #7dd3fc;
  background: rgba(125,211,252,0.1); border: 1px solid rgba(125,211,252,0.25);
  border-radius: 5px; padding: 1px 6px; margin-left: 8px; vertical-align: middle;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 15px 20px;
  font-weight: 600; font-size: 14.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background 0.2s;
}
.faq-item summary:hover { background: var(--surface-hover); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 18px; color: var(--muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 20px 16px; font-size: 14px; color: var(--muted2); }

/* ── Attribution ── */
.attribution-box {
  border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,255,255,0.02); padding: 16px 20px;
  margin-bottom: 52px; max-width: 760px;
}
.attribution-box p { font-size: 12.5px; color: var(--muted); }
.attribution-box p:first-child { margin-bottom: 4px; }
.attribution-box b { color: var(--muted2); }

/* ── CTA band ── */
.pp-cta {
  text-align: center; padding: 56px 28px;
  border: 1px solid rgba(91,123,166,0.15); border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0.04) 100%);
  margin-bottom: 56px;
}
.pp-cta h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.pp-cta p { font-size: 15px; color: var(--muted2); max-width: 520px; margin: 0 auto 28px; }
.pp-cta .hero-cta-row { justify-content: center; }

/* ── Related programs ── */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.rel-card {
  display: block; text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.rel-card:hover { background: var(--surface-hover); border-color: rgba(91,123,166,0.2); transform: translateY(-2px); }
.rel-card img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.rel-body { padding: 12px 14px 14px; }
.rel-body b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.rel-body span { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }

/* ── Index toolbar: search + filters + finder ── */
[hidden] { display: none !important; }  /* author styles (.pi-card{display:block} etc.) must not beat the hidden attr */
.pi-toolbar { margin-bottom: 34px; }
.pi-filterbar { display: flex; align-items: center; gap: 12px; }

/* Slide-out panels (filters / finder): grid-rows trick animates height smoothly.
 * visibility flips AFTER the slide-up so collapsed content is untabbable/unclickable,
 * not merely clipped. */
.pi-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.pi-collapse > div { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s 0.3s; }
.pi-collapse.open { grid-template-rows: 1fr; }
.pi-collapse.open > div { visibility: visible; transition: visibility 0s; }
.pi-collapse .pi-chips { padding-top: 16px; }

.pi-filter-btn {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted2); font-weight: 600; font-size: 13px;
  padding: 11px 16px; border-radius: 12px; cursor: pointer; font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pi-filter-btn:hover { background: var(--surface-hover); color: var(--text); }
.pi-filter-btn[aria-expanded="true"] { border-color: rgba(91,123,166,0.35); color: var(--accent); background: var(--accent-dim); }
.pi-filter-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.panel-actions { display: flex; justify-content: flex-end; }
.chip-clear { color: var(--muted); }
.chip-clear:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.finder-actions { display: flex; gap: 10px; align-items: center; }
.finder-actions .btn-secondary { border: 1px solid var(--border); cursor: pointer; padding: 14px 22px; }
#pi-search {
  flex: 1; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; color: var(--text); font-size: 14px; font-family: inherit;
}
#pi-search:focus { outline: none; border-color: var(--accent); }
#pi-search::placeholder { color: var(--muted); }
.pi-toolbar-count { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.pi-finder-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-weight: 700; font-size: 13px;
  padding: 11px 18px; border-radius: 12px; cursor: pointer; font-family: inherit;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.2s;
}
.pi-finder-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.pi-chips { display: flex; flex-direction: column; gap: 10px; }
.chip-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chip-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); min-width: 92px;
}
.chip-label em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--muted); }
.chip-wrap { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted2);
  font-size: 12.5px; font-weight: 500; font-family: inherit;
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { background: var(--surface-hover); }
.chip.on { background: var(--accent-dim); border-color: rgba(91,123,166,0.4); color: var(--accent); font-weight: 700; }
.pi-empty { margin-top: 22px; font-size: 14px; color: var(--muted); text-align: center; }

#finder-go { border: none; cursor: pointer; }
.finder-panel {
  margin-top: 16px; padding: 24px;
  border: 1px solid rgba(91,123,166,0.18); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0.03) 100%);
  display: flex; flex-direction: column; gap: 14px;
}
.finder-panel h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.finder-panel .chip-row { flex-direction: column; align-items: flex-start; gap: 8px; }
.finder-panel .chip-label { min-width: 0; }
.finder-hint { font-size: 13px; color: var(--muted); }
.finder-results { margin-top: 6px; }
.pi-card.top-pick { position: relative; border-color: rgba(91,123,166,0.45); }
.top-pick-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff;
  font-family: var(--sans); font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 5px;
}
@media (max-width: 640px) {
  .pi-filterbar { flex-wrap: wrap; }
  #pi-search { flex-basis: 100%; }
  .chip-label { min-width: 0; flex-basis: 100%; }
}

/* ── Index page ── */
.pi-hero { text-align: center; padding: 36px 0 20px; margin-bottom: 30px; }
.pi-hero h1 {
  font-size: clamp(34px, 5.4vw, 56px); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 16px;
}
/* Landing-style highlighter behind the words, not a block of lime text. */
.pi-hero .accent { color: inherit; background: linear-gradient(transparent 62%, rgba(91,123,166,.28) 62%, rgba(91,123,166,.28) 92%, transparent 92%); }
.pi-hero .lede { margin: 0 auto 26px; max-width: 620px; }
.pi-hero .hero-cta-row { justify-content: center; }
.pi-group { margin-bottom: 46px; }
.pi-group h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 16px; display: flex; align-items: baseline; gap: 10px;
}
.pi-count { font-size: 12px; color: var(--muted); font-weight: 400; }
.pi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pi-card {
  display: block; text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.pi-card:hover { background: var(--surface-hover); border-color: rgba(91,123,166,0.2); transform: translateY(-2px); }
.pi-card img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.pi-body { padding: 14px 16px 16px; }
.pi-body b { display: block; font-family: var(--sans); font-size: 15.5px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; }
.pi-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pi-badges .badge { font-size: 10.5px; padding: 3px 9px; }
.pi-body p { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

