/* Stay Strong Rehab: one voice for every page.
   The palette is the place: Flatirons sandstone (clay, the one action), ponderosa green, meadow sage, paper.
   Old-style serif for headings, the system face for reading. No web fonts, no image files. */
:root {
  --paper: #FAF6EF;
  --sand: #F3ECDF;
  --sage: #E5EEE6;
  --card: #FFFFFF;
  --ink: #1C2320;
  --soft: #4B564F;
  --green: #1E4D3B;
  --spruce: #163A2C;
  --moss: #5C8670;
  --clay: #A8481F;
  --clay-dark: #8A3A18;
  --sun: #E9B54A;
  --line: #DDD5C6;
  --warn: #FBEFD9;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 70rem;
  --prose: 40rem;
  --r: 0.9rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--serif); color: var(--green); font-weight: 700; margin: 0 0 0.55em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 6.6vw, 3.55rem); line-height: 1.05; letter-spacing: -0.018em; }
h1 em { font-style: italic; color: var(--clay); }
.nb { white-space: nowrap; }
h2 { font-size: clamp(1.65rem, 4.4vw, 2.25rem); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: 1.24rem; line-height: 1.25; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--clay-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Preview band: on every page until the practice opens the site. */
.preview-band { margin: 0; padding: 0.5rem 1rem; background: var(--warn); border-bottom: 1px solid var(--line); font-size: 0.92rem; text-align: center; }

/* Header: brand, four links, one action. Same on every page. */
.site-header { max-width: var(--maxw); margin: 0 auto; padding: 0.9rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; margin-right: auto; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--green); text-decoration: none; }
.brand svg { width: 2.15rem; height: 2.15rem; flex: none; }
.site-header nav { display: flex; align-items: center; gap: 0.1rem; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem; font-size: 1rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 999px; }
.site-header nav a:hover { background: var(--sage); color: var(--green); }
.site-header nav a[aria-current="page"] { color: var(--green); font-weight: 700; box-shadow: inset 0 -2px 0 var(--clay); border-radius: 0; }
.site-header nav a.cta { background: var(--clay); color: #fff; font-weight: 650; padding: 0 1.2rem; margin-left: 0.5rem; border-radius: 999px; box-shadow: none; }
.site-header nav a.cta:hover { background: var(--clay-dark); color: #fff; }

main { display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.prose { max-width: var(--prose); }
section { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.band-sand { background: var(--sand); }
.band-sage { background: var(--sage); }

/* Two columns on a wide screen: the heading stays in view while its section is read. */
.split { display: grid; gap: 1.1rem; }
.lead > :last-child { margin-bottom: 0; }

/* Hero */
.hero { padding-top: clamp(1.6rem, 5vw, 3.6rem); padding-bottom: clamp(2.2rem, 5vw, 3.8rem); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero.page h1 { font-size: clamp(2.1rem, 6.2vw, 3.2rem); line-height: 1.08; }
.eyebrow { margin: 0 0 0.9rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); }
.lede { font-size: clamp(1.2rem, 2.6vw, 1.38rem); line-height: 1.5; max-width: 36rem; }
.limit { color: var(--soft); max-width: 36rem; }
.hero-art { display: block; width: 100%; height: auto; border-radius: 1.6rem; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.7rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 1.5rem;
  border-radius: 999px; border: 2px solid var(--clay);
  background: var(--clay); color: #fff;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); color: #fff; }
a.btn:not(.quiet)::after { content: "\2192"; margin-left: 0.55rem; }
.btn.quiet { background: transparent; color: var(--green); border-color: var(--green); }
.btn.quiet:hover { background: var(--sage); color: var(--green); }
.btn.plain { background: transparent; color: var(--soft); border-color: var(--line); font-weight: 500; }
.btn.plain:hover { background: var(--card); color: var(--ink); }

/* Three plain facts under the hero */
.strip { list-style: none; margin: 0; padding: 1.1rem 0; display: grid; gap: 0.7rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip li { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; color: var(--green); }
.strip svg { width: 1.7rem; height: 1.7rem; flex: none; }

/* Lists and cards */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding: 0.15rem 0 0.15rem 2rem; margin-bottom: 0.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.62em; width: 0.95rem; height: 0.5rem; border-left: 3px solid var(--clay); border-bottom: 3px solid var(--clay); transform: rotate(-45deg); }
.stat { margin: 1.8rem 0 0; padding: 1.4rem 1.5rem; border-radius: var(--r); background: var(--sage); }
.stat-n { margin: 0 0 0.35rem; font-family: var(--serif); font-weight: 700; font-size: clamp(2.8rem, 10vw, 3.9rem); line-height: 1; color: var(--green); letter-spacing: -0.02em; }
.stat-n small { display: block; margin-bottom: 0.5rem; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); }
.stat figcaption { max-width: 34rem; }
.stat .source { display: block; margin-top: 0.5rem; }

/* How a visit goes: a line of numbered steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.9rem 4rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.2rem; z-index: 1;
  width: 2.7rem; height: 2.7rem; border-radius: 50%;
  background: var(--card); border: 2px solid var(--green); color: var(--green);
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li::after { content: ""; position: absolute; left: calc(1.35rem - 1px); top: 2.5rem; bottom: 0; width: 2px; background: var(--moss); opacity: 0.45; }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--green); color: #fff; }
.steps h3 { margin-bottom: 0.25em; }
.steps p { margin: 0; max-width: 36rem; }

.cards { display: grid; gap: 1rem; }
.cards + .source { margin-top: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem; box-shadow: 0 14px 30px -26px rgba(22, 58, 44, 0.5); }
.card h3 { margin-bottom: 0.3em; }
.card p:last-child { margin-bottom: 0; }
.note { background: var(--sage); border-left: 5px solid var(--green); border-radius: 0.4rem; padding: 1rem 1.2rem; }
.note p:last-child { margin-bottom: 0; }
.plain-facts { background: var(--card); border: 2px solid var(--green); border-radius: var(--r); padding: 1.4rem 1.5rem; }
.plain-facts p:last-child { margin-bottom: 0; }
.pull { margin: 0 0 0.9rem; font-family: var(--serif); font-weight: 700; font-size: clamp(1.45rem, 4vw, 1.95rem); line-height: 1.22; color: var(--green); text-wrap: balance; }
.fine { font-size: 0.98rem; color: var(--soft); }
.source { font-size: 0.93rem; color: var(--soft); }
.tag { display: inline-block; margin-bottom: 0.6rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.contact { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--clay); border-radius: 0.5rem; padding: 1.5rem 1.6rem; box-shadow: 0 18px 40px -28px rgba(22, 58, 44, 0.5); }
.contact p:last-child { margin-bottom: 0; }
.center > .contact { max-width: 46rem; margin-left: auto; margin-right: auto; }

/* One week, one hour (the staying strong page) */
.week-fig { margin: 0; }
.week { display: block; width: 100%; height: auto; }
.week-fig figcaption { margin-top: 0.8rem; font-size: 0.98rem; color: var(--soft); }

/* News and stories. The video stage is a drawing until a person presses play; reel.js then puts Instagram's player in it. */
.reel { display: grid; gap: 1.4rem; align-items: start; margin: 1.8rem 0 2rem; }
.reel-stage { position: relative; width: 100%; max-width: 22rem; border-radius: 1.2rem; overflow: hidden; background: var(--card); box-shadow: 0 22px 44px -30px rgba(22, 58, 44, 0.7); }
.reel-poster { display: block; width: 100%; height: auto; }
.reel-play { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); white-space: nowrap; box-shadow: 0 12px 26px -12px rgba(22, 58, 44, 0.8); }
.reel-play::before { content: ""; margin-right: 0.65rem; border-left: 0.85rem solid currentColor; border-top: 0.52rem solid transparent; border-bottom: 0.52rem solid transparent; }
.reel-stage.playing { container-type: inline-size; }
.reel-stage.playing::before { content: "Loading the video from Instagram"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; font-size: 1rem; color: var(--soft); }
.reel-stage.playing iframe { position: relative; }
/* Instagram draws the video four wide to five tall, with about 13.5rem of its own rows above and below. */
.reel-stage iframe { display: block; width: 100%; height: 41rem; height: calc(125cqw + 13.5rem); border: 0; }
.when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--soft); }
.when .tag { margin: 0; }
.cards + .note { margin-top: 1.4rem; }
@media (min-width: 46rem) { .reel { grid-template-columns: 22rem minmax(0, 1fr); gap: 2.4rem; align-items: center; } }

/* Questions and answers */
.toc { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.toc a { display: flex; align-items: center; min-height: 46px; padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.3; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.qa { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.qa:first-child { border-top: 0; padding-top: 0; }
.qa h3 { font-size: 1.4rem; margin-bottom: 0.4em; }
.qa p:last-child { margin-bottom: 0; }
.ans { font-family: var(--serif); font-size: 1.12em; color: var(--clay); }

/* The visit sheet form */
.bench { display: grid; gap: 2.4rem; padding-bottom: clamp(2.6rem, 6vw, 4.5rem); }
.bench section { padding: 0; }
form.sheet-form { display: grid; gap: 1.2rem; counter-reset: q; }
fieldset { margin: 0; min-width: 0; padding: 1.25rem 1.25rem 1.35rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
legend { float: left; width: 100%; display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.8rem; padding: 0; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--green); }
legend::before { counter-increment: q; content: counter(q); flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--green); color: #fff; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; }
legend + * { clear: both; }
.hint { font-size: 0.98rem; color: var(--soft); margin: 0 0 0.7rem; }
.choices { display: grid; gap: 0.45rem; }
.choices.row { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.choice { display: flex; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.35rem 0.85rem; background: #fff; border: 1.5px solid var(--line); border-radius: 0.7rem; cursor: pointer; }
.choice:hover { border-color: var(--moss); }
.choice:has(input:checked) { border-color: var(--green); background: var(--sage); box-shadow: inset 0 0 0 1px var(--green); }
.choice input { width: 1.35rem; height: 1.35rem; flex: none; accent-color: var(--green); }
label.field { display: block; font-weight: 600; margin: 0.9rem 0 0.3rem; }
input[type="text"], textarea { width: 100%; min-height: 50px; padding: 0.65rem 0.8rem; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #8C968F; border-radius: 0.6rem; }
textarea { min-height: 6.5rem; resize: vertical; }
.sub-q { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); }
.sub-q > p, fieldset > p > strong { font-weight: 600; }
.sub-q > p { margin-bottom: 0.4rem; }

/* The sheet itself: a page of paper */
.sheet { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--green); border-radius: 0.4rem; padding: 1.4rem 1.5rem 1.2rem; box-shadow: 0 20px 44px -30px rgba(22, 58, 44, 0.55); }
.sheet h2 { font-size: 1.45rem; margin-bottom: 0.1em; }
.sheet h3 { margin: 1.1rem 0 0.35rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li { padding: 0.14rem 0; }
.sheet .empty { color: var(--soft); margin-bottom: 0.4rem; }
.sheet .fine { margin: 1.1rem 0 0; font-size: 0.86rem; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0 0.4rem; }
.sheet-actions .btn { min-height: 48px; padding: 0 1.15rem; font-size: 1rem; }
.status { min-height: 1.6em; color: var(--green); font-weight: 600; }

/* Footer */
.site-footer { background: var(--spruce); color: #E6EEE8; padding: 2.8rem 1.25rem 2.4rem; font-size: 1rem; }
.site-footer > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sun); }
.foot { display: grid; gap: 1.4rem; }
.foot .brand { color: #fff; margin-bottom: 0.5rem; }
.foot p { margin-bottom: 0.4em; max-width: 34rem; }
.site-footer nav { display: grid; gap: 0; align-content: start; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .fine { margin-top: 1.6rem; margin-bottom: 0; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, 0.18); color: #BCCFC3; font-size: 0.92rem; }

@media (min-width: 46rem) {
  .strip { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .cards.two { grid-template-columns: 1fr 1fr; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .foot { grid-template-columns: 1fr auto; gap: 3rem; }
}
@media (min-width: 58rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 3rem; }
  .split { grid-template-columns: 17rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .split > .lead { position: sticky; top: 1.5rem; }
  .bench { grid-template-columns: minmax(0, 1fr) 25rem; gap: 3rem; align-items: start; }
  .bench #sheet { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; padding: 0 0.3rem 1rem; }
}
@media (max-width: 40rem) {
  body { font-size: 1.125rem; }
  .site-header { padding: 0.55rem 1rem 0; gap: 0 0.25rem; }
  .site-header nav { display: contents; }
  .brand { order: 1; gap: 0.5rem; font-size: clamp(1rem, 4.7vw, 1.3rem); }
  .brand svg { width: 1.9rem; height: 1.9rem; }
  .site-header nav a.cta { order: 2; margin-left: 0; padding: 0 0.95rem; font-size: 0.95rem; }
  .site-header nav::before { content: ""; order: 3; flex-basis: 100%; margin-top: 0.5rem; border-top: 1px solid var(--line); }
  .site-header nav a:not(.cta) { order: 4; flex: 1 1 auto; justify-content: center; padding: 0 0.15rem; font-size: 0.92rem; white-space: nowrap; }
  .wrap { padding-left: 1rem; padding-right: 1rem; }
  .site-footer { padding-left: 1rem; padding-right: 1rem; }
  .steps li { padding-left: 3.5rem; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .site-header nav a, .choice { transition: background-color 0.15s ease, border-color 0.15s ease; }
}

/* Paper: the sheet prints alone. */
@media print {
  .preview-band, .site-header, .site-footer, .no-print, form.sheet-form, .sheet-actions, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .bench { display: block; padding: 0; }
  .bench #sheet { position: static; max-height: none; overflow: visible; }
  .sheet { border: 1px solid #000; box-shadow: none; }
  a { color: #000; text-decoration: none; }
}

/* ---------- pass it on, and the phone number ---------- */
[hidden] { display: none !important; }
.phone { margin: 0.1rem 0 0.75rem; font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 7vw, 2.5rem); line-height: 1.1; }
.phone a { color: var(--clay-dark); text-decoration: none; border-bottom: 3px solid var(--sun); }
.phone a:hover { color: var(--clay); }
textarea.tall { min-height: 13.5rem; }
.pair { display: grid; gap: 2.25rem; align-items: start; }
.show h2 { margin-top: 0; }
.qr-card { margin: 0 0 0.9rem; padding: 1.4rem 1.25rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-align: center; box-shadow: 0 18px 40px -28px rgba(22, 58, 44, 0.5); }
.qr { display: block; width: 100%; max-width: 15rem; height: auto; margin: 0 auto; }
.qr-url { margin: 0.8rem 0 0; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--green); }
.after-cards { margin-top: 1.25rem; }
@media (min-width: 58rem) {
  .pair { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3rem; }
  .show { position: sticky; top: 1.5rem; }
}
@media print {
  .phone a { border-bottom: 0; }
}
.contact + .prose { margin-top: 1.25rem; }
