/* The public site (anterior pelvic tilt): the landing and the content pages. Loaded by templates/apt/layout.html
   only; the signed-in app's stylesheets are not loaded there, and this one is not loaded by the app.
   Design reference: docs/design/designs/APT Landing.dc.html. Paper only (no night theme), no JavaScript. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("/assets/newsreader-latin-fe979712.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 600; font-display: swap; src: url("/assets/newsreader-italic-latin-fd8d4ba4.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/hanken-grotesk-latin-62d0893d.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/geist-mono-latin-2dfee388.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --raised: #fffefa;
  --ink: #1b1a17;
  --ink-2: #4f4b42;
  --ink-3: #686457;
  --rule: #e2ddd0;
  --blue: #24427f;
  --blue-deep: #172e5c;
  --yellow: #f2c230;
  --night: #0a0f26;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.kicker { font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kicker a { color: inherit; text-decoration: none; }
.kicker.blue { color: var(--blue); }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 2; background: var(--raised); padding: 8px 12px; border-radius: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1.1 var(--sans); text-decoration: none; text-align: center; }
.btn-primary { background: var(--blue); color: var(--raised); }
.btn-primary:hover { background: var(--blue-deep); color: var(--raised); }
button.btn { border: 0; cursor: pointer; }
.btn-ghost, button.btn-ghost { border: 1.5px solid #8a8578; background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--raised); }
.btn-ink:hover { background: #33312b; color: var(--raised); }

.card { background: var(--raised); border: 1px solid var(--rule); border-radius: 24px; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -32px rgba(27, 26, 23, .4); }
a.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; color: var(--ink); text-decoration: none; }
a.card:hover { border-color: #8a8578; color: var(--ink); }
.card-title { font-size: 23px; line-height: 1.15; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--blue); text-decoration: underline; }
.card-text { font-size: 15px; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.chip { display: inline-block; padding: 5px 11px; border-radius: 999px; background: #ece8dd; font-size: 13px; line-height: 1.3; color: var(--ink); }
.pill { display: inline-block; padding: 4px 12px; border: 1px solid #c9c2b1; border-radius: 999px; font-size: 14px; line-height: 1.4; color: var(--ink-2); text-decoration: none; background: var(--raised); }
a.pill:hover { border-color: var(--ink); color: var(--ink); }

/* Masthead and footer */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 400 22px/1 var(--serif); letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.masthead nav { display: flex; gap: 4px 24px; flex-wrap: wrap; }
.masthead nav a { font: 500 15px/1 var(--sans); color: var(--ink-2); text-decoration: none; padding: 8px 0; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--ink); }
.masthead nav a[aria-current] { box-shadow: 0 2px 0 var(--yellow); }
.footer { padding-top: 36px; padding-bottom: 48px; font-size: 14px; color: var(--ink-3); display: flex; flex-direction: column; gap: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer a { color: var(--ink-2); }
.footer .mono { font-size: 12px; letter-spacing: .04em; }

/* The loops: a night panel around a silent video */
.media { background: var(--night); border-radius: 24px; overflow: hidden; }
.media video { width: 100%; }

/* The call-to-action band */
.band { background: var(--yellow); border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); color: #1a1a17; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.band h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -.025em; }
.band p { font-size: 18px; margin-top: 8px; }
.band .btn { min-height: 56px; padding: 0 30px; font-size: 17px; }

/* Content pages */
.article-head { padding-top: 20px; padding-bottom: 36px; }
/* An exercise with a loop: the video sits beside the lede and stays beside the steps as they scroll. */
.article-head.has-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 0 40px; align-items: start; }
.has-media .article-intro, .has-media .how { grid-column: 1; }
.has-media .media { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 24px; }
.has-media .try { grid-column: 1; }
.try { margin-top: 28px; padding: 22px 24px; border-radius: 24px; background: var(--raised); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; max-width: 46em; }
.try h2 { font-size: 26px; line-height: 1.15; }
.byline { font-size: 14.5px; color: var(--ink-3); }
.byline a { color: var(--ink-2); }
.article-head .how { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--rule); }
.article-intro { display: flex; flex-direction: column; gap: 16px; max-width: 46em; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: #a8a294; }
.crumbs a { color: var(--ink-3); }
.article h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.03; letter-spacing: -.025em; }
.lede { font: 400 clamp(20px, 2.2vw, 24px)/1.4 var(--serif); color: var(--ink); max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.facts > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.facts dt { font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { display: flex; flex-wrap: wrap; gap: 6px; }
.article-body { display: flex; flex-direction: column; gap: 44px; padding-bottom: 72px; }
.article-body > :first-child { border-top: 1px solid var(--rule); padding-top: 36px; }

.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1em; }
.prose h2, .sources h2 { font: 400 clamp(26px, 3vw, 32px)/1.12 var(--serif); letter-spacing: -.015em; margin-top: 1.7em; }
.prose > h2:first-child, .sources h2 { margin-top: 0; }
.prose h3 { font: 600 18px/1.3 var(--sans); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose strong { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 600; border-bottom-color: var(--ink); }
.cite { font: 500 11px/1 var(--mono); vertical-align: super; margin-left: 1px; }
.cite a { text-decoration: none; padding: 2px 1px; }
.cite a:hover { text-decoration: underline; }

.steps { list-style: none; padding: 0 !important; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; min-height: 32px; }
.steps li + li { margin-top: 14px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 999px; background: var(--blue); color: var(--raised); font: 500 14px/32px var(--mono); text-align: center; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; margin-top: 1.8em; }
.level { padding: 18px 20px; border-radius: 18px; }
.level h3 { margin-top: 0; font-size: 15px; }
.level p { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); }
.used-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 1.8em; }
.routine { list-style: none; padding: 0 !important; counter-reset: step; border-top: 1px solid var(--rule); }
.routine li { counter-increment: step; position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--rule); margin: 0 !important; }
.routine li > :first-child { font-weight: 600; }
.routine li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 20px; font: 500 12px/1 var(--mono); color: var(--blue); }

.sources { max-width: 66ch; }
.sources ol, .sources ul { padding-left: 2em; margin-top: 14px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.sources ul { list-style: none; padding-left: 0; }
.sources li + li { margin-top: 8px; }
.sources li:target { background: #fbf0c9; box-shadow: 0 0 0 4px #fbf0c9; border-radius: 2px; }
.sources a { overflow-wrap: anywhere; }
.related { display: flex; flex-direction: column; gap: 14px; }
.related-card .card-title { font-size: 22px; }

/* Terms and Privacy (templates/apt/legal.html) */
.legal-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; max-width: 760px; }
.legal-card { padding: 18px 20px; border-radius: 22px; border: 1px solid var(--rule); background: var(--raised); }
.legal-card h2 { font: 700 16px/1.3 var(--sans); color: var(--blue); }
.legal-card ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; }
.legal-card.is-never { border-color: transparent; background: var(--ink); color: #c9c5b8; }
.legal-card.is-never h2 { color: var(--yellow); }
.legal-cards-note { margin-top: 14px; max-width: 760px; font-size: 15px; color: var(--ink-2); }
.legal .lede { font-size: clamp(18px, 2vw, 21px); }

.phase-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.phase-minutes { display: flex; align-items: baseline; gap: 8px; font-size: 16px; color: var(--ink-2); }
.mono.big { font-size: 56px; line-height: 1; color: var(--blue); }
.mono.small { font-size: 13px; color: var(--ink-3); }
a.card.exercise { padding: 0; overflow: hidden; gap: 0; }
.exercise .poster { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--night); }
.exercise-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 22px 22px; }

/* The landing */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 36px; padding-bottom: 72px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(40px, 6vw, 80px); line-height: .98; letter-spacing: -.03em; }
.hero h1 em { font-weight: 400; }
.hero-lede { font-size: 19px; color: var(--ink-2); max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 12.5px; letter-spacing: .04em; color: var(--ink-3); }
.hero-media { flex: 1 1 380px; min-width: 0; max-width: 520px; position: relative; border-radius: 32px; box-shadow: 0 30px 60px -36px rgba(15, 21, 48, .75); }
.hero-media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; background: linear-gradient(to top, rgba(10, 15, 38, .94) 35%, rgba(10, 15, 38, 0)); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: #ece9df; }
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 999px; background: var(--yellow); }
.dot-2 { background: #ff5a2b; }
.caption { font-size: 14.5px; line-height: 1.5; color: #c9ccda; }

.section { border-top: 1px solid var(--rule); }
.section > .wrap { padding-top: 72px; padding-bottom: 76px; }
.section h2, .section-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; letter-spacing: -.02em; }
.stack { display: flex; flex-direction: column; gap: 34px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.aside { max-width: 24em; font-size: 16px; }
.signs { display: flex; flex-wrap: wrap; gap: 48px; }
.signs-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.signs-text > p { max-width: 30em; }
.callout { background: #fbf0c9; border: 1px solid #f0dc94; border-radius: 18px; padding: 16px 18px; color: #5c4400; font-size: 15.5px; line-height: 1.5; }
.callout strong { font-weight: 600; }
.signs-cards { flex: 2 1 520px; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; align-content: start; }
.sign { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.number { font-size: 12px; font-weight: 500; color: var(--blue); }
.sign .fact { display: flex; flex-direction: column; gap: 8px; }
/* A fact card with a myth: stacked as HTML; with apt.js the myth is the face and a tap flips to the fact. */
.myth { font: 400 19px/1.25 var(--serif); color: var(--ink-3); text-decoration: line-through; text-decoration-color: #c9c2b1; }
.sign.is-flip { min-height: 168px; }
.myth-face { all: unset; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; width: 100%; min-height: 124px; cursor: pointer; font: 400 23px/1.2 var(--serif); color: var(--ink); }
.myth-face:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 12px; }
.myth-face .hint { font: 500 12px/1.3 var(--mono); letter-spacing: .04em; color: var(--blue); }
.sign.is-flip { background: #fbf0c9; border-color: #f0dc94; }
.sign.is-flip.is-flipped { background: var(--raised); border-color: var(--rule); }
.sign.is-flipped .fact { animation: fade-in .3s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .sign.is-flip { transition: background-color .3s, border-color .3s; }
  .sign.is-flipped { animation: flip-in .45s ease both; }
  @keyframes flip-in { from { transform: perspective(900px) rotateY(-90deg); } to { transform: perspective(900px) rotateY(0); } }
}
.move { overflow: hidden; display: flex; flex-direction: column; }
.plate { background-color: var(--raised); background-image: radial-gradient(var(--rule) 1.1px, transparent 1.2px); background-size: 18px 18px; border-bottom: 1px solid var(--rule); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.plate-label { font-size: 11px; letter-spacing: .13em; color: var(--ink-3); }
.plate .media { border-radius: 16px; }
.move-text { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.move .card-title { font-size: 25px; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 12px 40px; }
.points > div { display: flex; flex-direction: column; gap: 4px; border-top: 2px solid var(--ink); padding-top: 14px; }
.points strong { font-weight: 600; }
.points span { font-size: 15px; color: var(--ink-2); }
.story-wrap { padding-bottom: 80px; }
.story { background: #141a36; color: #ece9df; border-radius: 32px; padding: clamp(28px, 5vw, 60px); display: flex; flex-direction: column; gap: 20px; }
.story .kicker { color: #a9aec2; }
.story-text { font-size: clamp(24px, 3vw, 36px); line-height: 1.2; letter-spacing: -.015em; max-width: 26em; }
.story-small { font-size: 16px; color: #c9ccda; max-width: 36em; }
.story a { color: #ece9df; }

/* Guides: key points under the lede, "On this page", FAQ accordions */
.key-points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.key-points li { padding: 14px 16px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; box-shadow: none; }
.article-head:not(.has-media) .article-intro:has(.key-points) { max-width: 60em; }
.toc { font-size: 15px; }
.toc summary { cursor: pointer; padding: 4px 0; }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { background: #ece8dd; color: var(--ink); }
.faq-item { border-top: 1px solid var(--rule); margin-top: 0 !important; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq h2 + .faq-item { margin-top: 1em !important; }
.faq-item summary { cursor: pointer; padding: 14px 28px 14px 0; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 22px/1 var(--mono); color: var(--blue); }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary h3 { display: inline; margin: 0; }
.faq-item p { margin: 0 0 16px; }
@media (min-width: 1000px) {
  .article-body.has-toc { display: grid; grid-template-columns: minmax(0, 66ch) minmax(0, 250px); column-gap: 64px; justify-content: start; }
  .article-body.has-toc > * { grid-column: 1; }
  .article-body.has-toc > .toc { grid-column: 2; grid-row: 1 / span 12; position: sticky; top: 24px; align-self: start; padding-top: 36px; border-top: 0; }
  .article-body.has-toc > .toc + * { border-top: 1px solid var(--rule); padding-top: 36px; }
  .article-body.has-toc > .related { grid-column: 1 / -1; }
  .toc summary { pointer-events: none; list-style: none; }
  .toc summary::-webkit-details-marker { display: none; }
}
@media (max-width: 999px) {
  .article-body > .toc:first-child { padding-top: 20px; }
}

/* The hero's hotspots (apt.js `hotspots`): dots that ride on the anatomy, the line between the two hip landmarks,
   a small readout, and the card a dot opens. Nothing of this exists without the script. */
.hot-layer { position: absolute; pointer-events: none; }
.hot-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hot-line { stroke: var(--yellow); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.hot-end { fill: var(--yellow); stroke: var(--night); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hot-spot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.hot-spot::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fffefa; box-shadow: 0 0 0 3px rgba(10, 15, 38, .55), 0 0 0 5px #fffefa; }
.hot-spot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid #fffefa; opacity: 0; }
.hot-spot:focus-visible { outline: 3px solid var(--yellow); outline-offset: 0; }
.hot-spot[aria-expanded=true]::before { background: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .hot-spot::after { animation: hot-pulse 2.2s ease-out infinite; }
  @keyframes hot-pulse { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
}
.hot-read { position: absolute; left: 18px; top: 16px; display: flex; flex-direction: column; gap: 6px; width: 132px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .12em; color: #c9ccda; pointer-events: none; }
.hot-bar { height: 6px; border-radius: 999px; background: rgba(255, 254, 250, .22); overflow: hidden; }
.hot-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--yellow); }
.hot-ends { display: flex; justify-content: space-between; letter-spacing: .02em; text-transform: none; font-size: 10.5px; color: #a9aec2; }
.hot-card { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; padding: 16px 18px; border-radius: 18px; background: var(--raised); color: var(--ink); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; }
.hot-card h3 { font: 400 22px/1.15 var(--serif); padding-right: 40px; }
.hot-card p { margin: 0; }
.hot-close { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font: 400 22px/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.hot-close:hover { background: #ece8dd; }
.hot-close:focus-visible { outline: 3px solid var(--blue); }

/* The landing hero's scrubber */
.hero-figure { flex: 1 1 380px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 14px; }
.hero-figure .hero-media { flex: none; max-width: none; }
.scrub { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; }
.scrub label { grid-column: 1 / -1; font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.scrub input { width: 100%; accent-color: var(--blue); height: 32px; }

/* /program/start as three steps */
.flow-steps { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; counter-reset: flow; font: 500 13px/1.3 var(--mono); color: var(--ink-3); }
.flow-steps li { counter-increment: flow; }
.flow-steps li::before { content: counter(flow) " "; color: var(--blue); }
.flow-steps li.is-now { color: var(--ink); font-weight: 600; box-shadow: 0 2px 0 var(--yellow); }
.start.is-live { grid-template-columns: minmax(0, 640px); }

/* The muscle explorer on /anterior-pelvic-tilt (content/apt/muscles.yml). As HTML: a list of groups, each with
   its figure. With apt.js: tabs, one group at a time, the figure on the left. */
.explorer-wrap { padding-bottom: 44px; }
.explorer { border-top: 1px solid var(--rule); padding-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.explorer-head { display: flex; flex-direction: column; gap: 10px; max-width: 46em; }
.explorer h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.02em; }
.explorer h3 { font-size: 26px; line-height: 1.15; }
.muscle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.muscle { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: start; }
.muscle .media img { width: 100%; }
.muscle-text { display: flex; flex-direction: column; gap: 12px; max-width: 34em; }
.muscle-links { display: flex; flex-wrap: wrap; gap: 8px; }
.muscle-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.muscle-tab { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #8a8578; background: var(--raised); color: var(--ink); font: 500 15px/1 var(--sans); cursor: pointer; }
.muscle-tab:hover { border-color: var(--ink); }
.muscle-tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.muscle-tab[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: var(--raised); }
.explorer.is-live .muscle h3 { display: none; }
@media (min-width: 761px) {
  .explorer.is-live { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 20px 48px; align-items: start; }
  .explorer.is-live .muscle-list, .explorer.is-live .muscle { display: contents; }
  .explorer.is-live .explorer-head { grid-column: 2; grid-row: 1; }
  .explorer.is-live .muscle-tabs { grid-column: 2; grid-row: 2; }
  .explorer.is-live .muscle .media { grid-column: 1; grid-row: 1 / span 3; }
  .explorer.is-live .muscle-text { grid-column: 2; grid-row: 3; }
}
@media (max-width: 760px) {
  .muscle { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .muscle .media { max-width: 300px; }
}

/* The self-check wizard on the test page (templates/apt/page.html; app/javascript/apt.js steps through it) */
.wizard-wrap { padding-bottom: 44px; }
.wizard { max-width: 760px; padding: clamp(20px, 4vw, 34px); display: flex; flex-direction: column; gap: 22px; }
.wiz-screen { display: flex; flex-direction: column; gap: 12px; }
.wizard h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.08; letter-spacing: -.02em; }
.wizard h3 { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.15; }
.needs, .options { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.wiz-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 22px; }
.wizard.is-live .wiz-steps { list-style: none; padding: 0; }
.wizard.is-live .wiz-intro .kicker.blue { display: none; }
.wiz-results { border-top: 1px solid var(--rule); padding-top: 22px; gap: 18px; }
.wizard.is-live .wiz-results { border-top: 0; padding-top: 0; }
.wiz-result { display: flex; flex-direction: column; gap: 6px; }
.wizard.is-live .wiz-result { padding: 16px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--rule); }
.wizard.is-live .wiz-when { display: none; }
.wiz-next, .wiz-actions, .wiz-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.wiz-nav { justify-content: space-between; margin-top: 6px; }
.wiz-progress { display: flex; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); color: var(--ink-3); }
.wiz-progress .progress { flex: 1; }
.wizard.is-live .options { list-style: none; padding: 0; gap: 10px; }
.option { width: 100%; min-height: 56px; padding: 12px 18px; border-radius: 16px; border: 1.5px solid #8a8578; background: var(--raised); color: var(--ink); font: 500 16px/1.3 var(--sans); text-align: left; cursor: pointer; }
.option:hover { border-color: var(--ink); }
.option:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.option[aria-pressed=true] { background: var(--yellow); border-color: var(--ink); font-weight: 600; }
.wiz-picture { max-width: 340px; border-radius: 18px; }
.wiz-picture img { width: 100%; }
/* As a plain list (no script), a picture sits beside its item. */
.wizard:not(.is-live) .wiz-steps > li:has(.wiz-picture), .wizard:not(.is-live) .wiz-result:has(.wiz-picture) { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); column-gap: 18px; align-items: start; }
.wizard:not(.is-live) .wiz-picture { grid-column: 1; grid-row: 1 / span 6; }
.wizard:not(.is-live) .wiz-picture ~ * { grid-column: 2; }
.full-guide { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -.02em; }
.article-body > .full-guide:first-child { padding-top: 36px; }

/* The daily program: /program/start and the session player at /program/today (app/javascript/apt.js) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.nav-today { color: var(--blue) !important; font-weight: 600 !important; }
button.link { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.input { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid #8a8578; border-radius: 14px; background: var(--raised); font: 400 17px/1.2 var(--sans); color: var(--ink); }
.input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.alert { background: #fbf0c9; border: 1px solid #f0dc94; border-radius: 14px; padding: 12px 14px; color: #5c4400; font-size: 15.5px; }
.small-print { font-size: 14px; }
.start { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 28px; padding-bottom: 72px; }
.start-text { display: flex; flex-direction: column; gap: 20px; }
.start h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -.025em; }
.start-points { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 16px; }
.start-points li { counter-increment: step; position: relative; padding-left: 46px; }
.start-points li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 999px; background: var(--blue); color: var(--raised); font: 500 14px/32px var(--mono); text-align: center; }
.start-points strong { font-weight: 600; }
.start-card { padding: 26px; }
.start-card form { display: flex; flex-direction: column; gap: 14px; }
.start-card label { font-weight: 600; font-size: 15px; }
.start-card .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.start-card .check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }

.player { max-width: 720px; padding-top: 16px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.screen { display: flex; flex-direction: column; gap: 16px; }
.screen + .screen { border-top: 1px solid var(--rule); padding-top: 28px; }
.player.is-live .screen + .screen { border-top: 0; padding-top: 0; }
.player h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.03; letter-spacing: -.025em; }
.player h2 { font-size: clamp(30px, 5vw, 44px); line-height: 1.05; letter-spacing: -.02em; }
.player h1:focus, .player h2:focus, .wizard h2:focus, .wizard h3:focus { outline: none; }
.progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.progress li { flex: 1; height: 6px; border-radius: 999px; background: #dcd6c6; }
.progress li.is-past { background: var(--blue); }
.progress li.is-now { background: var(--yellow); box-shadow: inset 0 0 0 1px #c99f1c; }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.thumbs li { display: flex; align-items: center; gap: 14px; }
.thumbs img, .thumb-card { flex: none; width: 84px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--night); }
.thumb-card { display: grid; place-items: center; color: #a9aec2; font: 500 18px/1 var(--mono); }
.thumbs li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.thumbs strong { font-weight: 600; }
.thumbs .mono { font-size: 13px; color: var(--ink-3); }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; max-width: 460px; }
.days li { aspect-ratio: 1; display: grid; place-items: center; border-radius: 999px; border: 1.5px solid #cfc8b6; font: 500 11px/1 var(--mono); color: var(--ink-3); }
.days li.is-kept { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.move-screen .media img { width: 100%; }
.title-card { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 24px; text-align: center; color: #ece9df; font-size: clamp(26px, 5vw, 40px); line-height: 1.1; }
.dose { font-size: clamp(22px, 4.6vw, 30px); line-height: 1.25; color: var(--blue); }
.cue { font-size: 18px; }
.cue .kicker { display: block; margin-bottom: 4px; }
.tracker-plan { color: var(--ink-2); }
.tracker.is-live .tracker-plan { font-size: 15px; }
.tracker-note { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.set-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 64px; padding: 12px 16px; border-radius: 16px; border: 1.5px solid #8a8578; background: var(--raised); color: var(--ink); font: 600 15px/1.2 var(--sans); text-align: left; cursor: pointer; }
.set-chip .chip-state { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.set-chip:hover { border-color: var(--ink); }
.set-chip:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.set-chip.is-counting { border-color: var(--blue); background: #e9eef8; }
.set-chip.is-counting .chip-state { font-size: 20px; color: var(--blue); }
.set-chip.is-done { background: var(--yellow); border-color: var(--ink); }
.set-chip.is-done .chip-state { color: var(--ink); }
/* The tracker's stage: a ring that counts a hold down, or a button to tap once per rep */
.stage { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; }
.stage-button { position: relative; display: grid; place-items: center; width: min(240px, 70vw); aspect-ratio: 1; padding: 0; border-radius: 50%; border: 0; background: var(--raised); box-shadow: inset 0 0 0 1.5px #8a8578; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; }
.stage-button:not(.is-timed) { box-shadow: inset 0 0 0 6px var(--blue); }
.stage-button:not(.is-timed):active { transform: scale(.97); background: #e9eef8; }
.stage-button.is-timed { box-shadow: none; background: none; }
.stage-button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.stage-button:disabled { cursor: default; }
.stage-button.is-complete { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-track { stroke: #dcd6c6; }
.ring-arc { stroke: var(--blue); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.is-ready .ring-arc { stroke: var(--yellow); }
.is-complete .ring { display: none; }
.stage-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 26px; text-align: center; }
.stage-big { font-size: clamp(44px, 14vw, 64px); line-height: 1; color: var(--blue); }
.stage-big { white-space: nowrap; }
.stage-button:not(.is-timed) .stage-big { font-size: clamp(34px, 10vw, 46px); }
.is-ready .stage-big, .is-complete .stage-big { color: var(--ink); }
.is-complete .stage-big { font-size: 34px; }
.stage-small { font: 500 14px/1.3 var(--sans); color: var(--ink-2); max-width: 16em; }
.sound-toggle { font-size: 13px !important; color: var(--ink-3) !important; }
.set-chip { min-height: 52px !important; }
.set-chip.is-now { border-color: var(--blue); box-shadow: 0 0 0 2px #c9d5ee; }
.kept { font-size: 18px; }
.kept strong { font-size: 30px; color: var(--blue); font-weight: 500; margin-right: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .player-nav .btn.is-pulse { animation: pulse-once .7s ease 1; }
  @keyframes pulse-once { 0% { box-shadow: 0 0 0 0 rgba(36, 66, 127, .55); } 100% { box-shadow: 0 0 0 16px rgba(36, 66, 127, 0); } }
}
@media (prefers-reduced-motion: reduce) {
  .ring-arc { transition: none; }
}
@media (min-width: 1000px) {
  .player.is-live { max-width: 1120px; }
  .player.is-live > .move-screen { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 44px; row-gap: 14px; align-items: start; }
  .player.is-live > .move-screen > * { grid-column: 2; }
  .player.is-live > .move-screen > .kicker { grid-column: 1 / -1; }
  .player.is-live > .move-screen > .media { grid-column: 1; grid-row: 2 / span 12; position: sticky; top: 16px; }
  .player.is-live > .move-screen .stage-button { width: min(200px, 60vw); }
  .player.is-live > .start-screen, .player.is-live > .finish-screen, .player.is-live > .settings, .player.is-live > .player-foot, .player.is-live > .self-check { max-width: 720px; }
}
.how-to, .again { border-top: 1px solid var(--rule); padding-top: 12px; }
.how-to summary, .again > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.how-to ol { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.how-to p { margin-top: 12px; font-size: 15px; }
.again .screen { margin-top: 24px; }
.player-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 8px; }
.player-nav .btn-ink { flex: 1 1 200px; }
.finish-screen form, .ready form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ready { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.ready h2 { font-size: 28px; }
.quiet { color: var(--ink-2); font-size: 15px; }
.change { font-size: 14px; }
.player-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 16px; }
.player-foot a, .player-foot button.link { color: var(--ink-2); }
.self-check { font-size: 15px; }
.unlock-points { margin: 4px 0 6px; padding-left: 1.2em; display: grid; gap: 10px; }
.unlock-points strong { font-weight: 600; }
.ready-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 16px; font-size: 14.5px; }
.account-links a { color: var(--ink-2); }
.inline-form { display: inline; margin: 0 !important; }
.flash-note { margin-top: 4px; margin-bottom: 12px; font-size: 15px; color: var(--ink-2); }
.flash-note::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-right: 10px; }
/* "You are here" on /program */
.here { padding-top: 8px; padding-bottom: 8px; }
.here-card { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; border-radius: 24px; background: var(--raised); border: 1px solid var(--rule); max-width: 760px; }
.here-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.here-track li { padding: 10px 12px; border-radius: 12px; border-top: 5px solid #dcd6c6; background: var(--paper); font-size: 14.5px; color: var(--ink-3); }
.here-track li .mono { display: block; font-size: 12px; color: inherit; }
.here-track li.is-done { border-top-color: var(--blue); color: var(--ink-2); }
.here-track li.is-now { border-top-color: var(--yellow); background: #fbf0c9; color: var(--ink); font-weight: 600; }
.here-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15.5px; color: var(--ink-2); }
.here-facts strong { color: var(--blue); font-weight: 500; font-size: 17px; margin-right: 2px; }
.settings { border-top: 1px solid var(--rule); padding-top: 12px; }
.settings summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.settings form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin-top: 12px; }
.settings label { font-weight: 600; font-size: 15px; }
select.input { appearance: auto; }
.code-input { font-size: 26px; letter-spacing: .18em; text-align: center; min-height: 64px; }
.start-card h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 4px; }
.start-card { display: flex; flex-direction: column; gap: 14px; }
/* The passport stamp: a session kept. */
.stamp { align-self: flex-start; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 22px; border: 3px double var(--blue); border-radius: 14px; color: var(--blue); font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-6deg); margin: 6px 0 4px 6px; }
.stamp strong { font: 600 22px/1.1 var(--sans); letter-spacing: .06em; }
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
  @keyframes stamp-in { from { opacity: 0; transform: rotate(-14deg) scale(1.6); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
}

@media (max-width: 860px) {
  .start { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .article-head.has-media { grid-template-columns: minmax(0, 1fr); }
  .has-media .media { grid-column: 1; grid-row: auto; position: static; max-width: 520px; margin-top: 28px; }
}
@media (max-width: 720px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  body { font-size: 16.5px; }
  .masthead { padding-top: 16px; padding-bottom: 12px; }
  .masthead nav { gap: 2px 18px; }
  .hero { gap: 32px; padding-top: 20px; padding-bottom: 48px; }
  .hero-media { border-radius: 24px; }
  .section > .wrap { padding-top: 48px; padding-bottom: 52px; }
  .band-inner { padding-top: 40px; padding-bottom: 40px; }
  .btn { min-height: 48px; }
  .article-body { gap: 36px; padding-bottom: 52px; }
}
