@font-face {
  font-family: Manrope;
  src: url("../assets/manrope-variable.woff") format("woff");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --paper: #fff;
  --ink: #231f20;
  --muted: #5d605c;
  --brand: #9ebaa2;
  --brand-light: #e2f0de;
  --green: #496e50;
  --heading: #56765b;
  --sage: #eff7ec;
  --line: #dbe5d8;
  --warm: #faf8f3;
  --warning: #745326;
  --warning-bg: #faf4e7;
  --radius: 4px;
  font:
    17px/1.75 Manrope,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.3;
  color: var(--heading);
}
h1 {
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  font-weight: 400;
}
h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}
h3 {
  font-size: 1.18rem;
}
p + p {
  margin-top: 1rem;
}
ul,
ol {
  padding-left: 1.4rem;
}
li + li {
  margin-top: 0.5rem;
}
strong {
  font-weight: 650;
}
small,
.small {
  font-size: 0.82rem;
}
.muted {
  color: var(--muted);
}
.wrap {
  width: min(1120px, calc(100% - 80px));
  margin-inline: auto;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}
main:focus {
  outline: none;
}
.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  background: white;
  padding: 14px;
  z-index: 30;
}
.skip:focus {
  top: 10px;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img {
  width: 160px;
}
.header-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-left: auto;
  letter-spacing: 0.03em;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  border: 1px solid var(--brand);
  border-radius: 2px;
  background: var(--brand-light);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.button:hover {
  background: var(--brand);
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: #38573e;
}
.secondary {
  background: transparent;
}
.navigation {
  border-bottom: 1px solid var(--line);
  background: white;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.navigation a {
  padding: 14px 8px;
  min-height: 54px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.83rem;
  border-bottom: 2px solid transparent;
  display: flex;
  gap: 8px;
  align-items: center;
}
.navigation a[aria-current] {
  border-color: var(--green);
  color: var(--green);
  font-weight: 650;
}
.navigation a > span[aria-hidden] {
  font-size: 1.3rem;
  line-height: 1;
}
.mobile-label {
  display: none;
}
.demo-bar {
  background: var(--warning-bg);
  color: #674b29;
  font-size: 0.75rem;
  border-bottom: 1px solid #e8deca;
}
.demo-bar .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
  flex-wrap: wrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: #94713b;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 50px;
  padding: 58px 0 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  font-size: 0.71rem;
  font-weight: 650;
  margin-bottom: 16px;
}
.hero h1 {
  max-width: 650px;
}
.hero .lead {
  max-width: 560px;
  font-size: 1.08rem;
  color: var(--muted);
  margin-top: 24px;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}
.hero-art:before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: var(--sage);
  border-radius: 50%;
}
.hero-art img {
  height: 285px;
  width: auto;
  z-index: 1;
  transform: rotate(8deg);
}
.hero-art figcaption {
  z-index: 1;
  font-size: 0.7rem;
  color: var(--muted);
  position: absolute;
  bottom: -10px;
}
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 34px;
}
.path-card {
  border: 1px solid var(--line);
  padding: 30px 32px;
  position: relative;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--sage);
}
.path-card:nth-child(2) {
  background: var(--warm);
  border-color: #e6e2d8;
}
.path-card h2 {
  max-width: 360px;
  margin: 15px 0 12px;
  font-size: 1.55rem;
}
.path-card p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 390px;
  margin-bottom: 24px;
}
.path-card .button {
  margin-top: auto;
}
.card-number {
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.12em;
}
.path-symbol {
  position: absolute;
  right: 28px;
  top: 24px;
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 400;
}
.notice {
  background: var(--sage);
  padding: 20px 24px;
  border-left: 3px solid var(--brand);
  font-size: 0.88rem;
}
.notice.warning {
  background: var(--warning-bg);
  border-color: #b79862;
  color: #644a27;
}
.notice p {
  margin-top: 8px;
}
.notice h2,
.notice h3 {
  font-size: 1rem;
  color: inherit;
}
.section {
  padding: 44px 0;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-title a {
  font-size: 0.85rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.condition-card,
.exercise-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  background: white;
}
.condition-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  min-height: 200px;
}
.condition-card:hover {
  background: var(--sage);
  border-color: var(--brand);
}
.condition-card .index {
  font-size: 0.73rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.condition-card h3 {
  padding-right: 16px;
  font-size: 1.05rem;
}
.condition-card p {
  font-size: 0.81rem;
  color: var(--muted);
  margin: 10px 0 18px;
}
.card-arrow {
  margin-top: auto;
  color: var(--green);
  font-size: 1.2rem;
  align-self: flex-end;
}
.page-heading {
  padding: 38px 0 30px;
}
.page-heading h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}
.page-heading > p {
  max-width: 720px;
  color: var(--muted);
  margin-top: 16px;
}
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.badge {
  font-size: 0.66rem;
  letter-spacing: 0.025em;
  display: inline-block;
  padding: 3px 9px;
  background: var(--warning-bg);
  color: #674b29;
  border-radius: 2px;
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  padding: 24px;
  background: var(--sage);
  border: 1px solid var(--line);
  margin-top: 26px;
}
.filters label,
.context-form label {
  font-size: 0.78rem;
  font-weight: 600;
  display: block;
}
input[type="search"],
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #9aa696;
  background: white;
  color: var(--ink);
  border-radius: 2px;
  padding: 10px 12px;
  margin-top: 6px;
  font-size: 0.9rem;
}
.result-count {
  font-size: 0.83rem;
  color: var(--muted);
  padding: 18px 0;
}
.exercise-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.exercise-visual {
  height: 114px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  position: relative;
}
.exercise-visual .region-label {
  color: var(--heading);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.exercise-visual:before {
  content: "";
  border: 1px solid var(--brand);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  position: absolute;
  left: 20px;
  opacity: 0.5;
}
.exercise-visual:after {
  content: "";
  width: 60px;
  height: 1px;
  background: var(--brand);
  position: absolute;
  right: 24px;
  transform: rotate(-35deg);
}
.exercise-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.exercise-body h2 {
  font-size: 1.14rem;
  margin: 12px 0;
}
.exercise-body h2 a {
  text-decoration: none;
  color: var(--heading);
}
.exercise-body p {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.exercise-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: auto;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  justify-content: space-between;
}
.card-actions a {
  font-size: 0.82rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.favorite {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  background: white;
  color: var(--green);
  border-radius: 3px;
  font-size: 1.4rem;
}
.favorite[aria-pressed="true"] {
  background: var(--brand-light);
  border-color: var(--brand);
}
.details-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin: 28px 0 48px;
}
.prose {
  max-width: 780px;
}
.prose section + section {
  margin-top: 30px;
}
.prose h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.prose p,
.prose li {
  font-size: 0.93rem;
}
.detail-aside {
  align-self: start;
  border: 1px solid var(--line);
  padding: 26px;
  background: var(--warm);
}
.detail-aside h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.detail-aside li {
  font-size: 0.83rem;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.media-placeholder {
  margin-top: 24px;
  padding: 30px 22px;
  background: var(--sage);
  border: 1px dashed var(--brand);
  text-align: center;
  color: var(--muted);
  font-size: 0.83rem;
}
.media-placeholder .media-icon {
  display: block;
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 8px;
}
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 15px 16px 15px 55px;
  background: var(--sage);
  min-height: 56px;
}
.steps li:before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 16px;
  color: var(--green);
  font-size: 0.78rem;
  top: 19px;
}
.context-form {
  margin-top: 20px;
}
.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.context-form fieldset {
  border: 1px solid var(--line);
  padding: 18px;
  margin: 20px 0;
}
.context-form legend {
  font-size: 0.85rem;
  font-weight: 600;
}
.context-form .check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 400;
}
.check input {
  width: 23px;
  height: 23px;
  margin: 2px 0 0;
  accent-color: var(--green);
  flex-shrink: 0;
}
.context-result {
  margin-top: 20px;
}
.source-list {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.empty {
  padding: 44px 24px;
  text-align: center;
  border: 1px dashed var(--brand);
  background: var(--sage);
  grid-column: 1/-1;
}
.empty p {
  max-width: 550px;
  margin: 12px auto 22px;
  color: var(--muted);
}
.training-days {
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 20px 0;
}
.training-days li {
  margin: 0;
  padding: 14px 20px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  background: var(--sage);
}
.training-days strong {
  display: block;
}
.site-footer {
  margin-top: 24px;
  background: var(--sage);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  padding-top: 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
}
.footer-inner p {
  color: var(--muted);
  margin-top: 8px;
}
.footer-inner > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.footer-inner a {
  min-height: 36px;
  display: flex;
  align-items: center;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  color: var(--muted);
}
.footer-bottom small {
  font-size: 0.72rem;
}
.connection,
.update {
  margin-top: 20px;
  padding: 14px 20px;
  background: var(--warning-bg);
  font-size: 0.85rem;
}
.update {
  background: var(--sage);
  border: 1px solid var(--brand);
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #29462f;
  color: white;
  padding: 14px 22px;
  z-index: 40;
  box-shadow: 0 4px 20px #0002;
  max-width: calc(100% - 32px);
  font-size: 0.86rem;
  border-radius: 4px;
}
dialog {
  border: 1px solid var(--brand);
  border-radius: 4px;
  padding: 30px;
  max-width: min(560px, calc(100% - 32px));
  color: var(--ink);
  font: inherit;
}
dialog h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}
dialog::backdrop {
  background: #18231ba6;
}
.legal-note {
  font-size: 0.81rem;
  color: var(--muted);
  padding-top: 20px;
}
#print-content {
  display: none;
}
@media (max-width: 950px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .header-label {
    display: none;
  }
  .navigation a {
    font-size: 0.75rem;
  }
  .nav-inner {
    gap: 4px;
  }
  .hero {
    gap: 24px;
  }
  .hero-art:before {
    width: 220px;
    height: 220px;
  }
  .hero-art img {
    height: 240px;
  }
  .details-layout {
    gap: 24px;
  }
}
@media (max-width: 700px) {
  :root {
    font-size: 16px;
  }
  .wrap {
    width: calc(100% - 40px);
  }
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .header-inner {
    min-height: 88px;
    gap: 12px;
  }
  .brand img {
    width: 125px;
  }
  .header-inner .button {
    font-size: 0.75rem;
    padding: 8px 12px;
  }
  .navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px #29462f08;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .nav-inner {
    width: 100%;
    gap: 0;
  }
  .navigation a {
    flex: 1;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    font-size: 0.58rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
    padding: 10px 2px;
    border-bottom: 0;
    border-top: 3px solid transparent;
    min-height: 71px;
  }
  .navigation a > span[aria-hidden] {
    font-size: 1.5rem;
  }
  .navigation a[aria-current] {
    background: var(--sage);
  }
  .desktop-label {
    display: none;
  }
  .mobile-label {
    display: inline;
  }
  .demo-bar .wrap {
    gap: 4px 9px;
    padding-block: 9px;
    font-size: 0.68rem;
  }
  .demo-bar .wrap > span:last-child {
    flex-basis: 100%;
    padding-left: 16px;
  }
  .hero {
    grid-template-columns: 1fr 0.38fr;
    gap: 0;
    padding: 34px 0 30px;
    align-items: start;
  }
  .hero .eyebrow {
    font-size: 0.61rem;
    letter-spacing: 0.1em;
    grid-column: 1/-1;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero .lead {
    font-size: 0.95rem;
    margin-top: 18px;
    max-width: 430px;
    grid-column: 1/-1;
  }
  .hero-copy {
    display: contents;
  }
  .hero-copy h1 {
    grid-column: 1;
  }
  .hero-art {
    grid-column: 2;
    grid-row: 2;
    min-height: 140px;
    margin: 0 0 0 8px;
  }
  .hero-art:before {
    width: 110px;
    height: 110px;
    top: 15px;
    right: -8px;
  }
  .hero-art img {
    height: 140px;
    max-width: none;
    transform: rotate(8deg);
  }
  .hero-art figcaption {
    display: none;
  }
  .path-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }
  .path-card {
    padding: 24px;
  }
  .path-card h2 {
    font-size: 1.4rem;
    max-width: 270px;
    margin-top: 10px;
  }
  .path-card p {
    margin-bottom: 18px;
  }
  .path-symbol {
    top: 18px;
    right: 24px;
  }
  .path-card .button {
    width: 100%;
  }
  .section {
    padding: 32px 0;
  }
  .section-title {
    align-items: flex-start;
    gap: 12px;
  }
  .section-title h2 {
    font-size: 1.35rem;
  }
  .section-title a {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .condition-card {
    min-height: 0;
    padding: 22px;
  }
  .condition-card .index {
    margin-bottom: 10px;
  }
  .condition-card p {
    margin-bottom: 0;
    padding-right: 22px;
  }
  .card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
  }
  .page-heading {
    padding: 26px 0 22px;
  }
  .page-heading h1 {
    font-size: 2rem;
  }
  .page-heading > p {
    font-size: 0.95rem;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    padding: 18px;
    gap: 14px;
  }
  .filters label:first-child {
    grid-column: 1/-1;
  }
  .filters select {
    font-size: 0.83rem;
    padding: 8px;
  }
  .details-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .detail-aside {
    padding: 22px;
  }
  .context-grid {
    grid-template-columns: 1fr;
  }
  .actions .button {
    flex: 1;
    min-width: 130px;
  }
  .notice {
    padding: 18px 20px;
    font-size: 0.85rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: max-content;
  }
  .update {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .exercise-visual {
    height: 90px;
  }
  .training-days {
    gap: 8px;
  }
  .training-days li {
    padding: 10px 14px;
  }
  .source-list {
    padding-left: 18px;
  }
}
@media (min-width: 701px) and (max-width: 800px) {
  .navigation a {
    font-size: 0.67rem;
    gap: 5px;
  }
  .details-layout {
    grid-template-columns: 1.4fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  @page {
    margin: 18mm;
  }
  body {
    padding: 0;
    font:
      11pt/1.5 Arial,
      sans-serif;
    background: white;
    color: black;
  }
  body > * {
    display: none !important;
  }
  #print-content {
    display: block !important;
  }
  #print-content h1 {
    font-size: 23pt;
  }
  #print-content h2 {
    font-size: 17pt;
    margin-top: 18pt;
  }
  #print-content h3 {
    font-size: 12pt;
    margin-top: 12pt;
  }
  #print-content p {
    margin: 8pt 0;
  }
  #print-content li {
    font-size: 11pt;
  }
  #print-content .print-exercise {
    break-before: page;
  }
  #print-content .print-exercise:first-of-type {
    break-before: auto;
  }
  #print-content .notice {
    border: 1pt solid black;
    background: white;
    color: black;
    padding: 10pt;
  }
  #print-content a {
    color: black;
    overflow-wrap: anywhere;
  }
  #print-content .steps li {
    background: white;
  }
  .no-print {
    display: none !important;
  }
}

.nav-icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.card-arrow,
.path-symbol,
.favorite {
  font-family: Arial, sans-serif;
}
.arrow-inline {
  display: inline-block;
  width: 15px;
  height: 15px;
  vertical-align: -2px;
  flex-shrink: 0;
}
.arrow-inline svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 700px) {
  .navigation a {
    font-size: 0.69rem;
    justify-content: flex-start;
    padding-top: 9px;
    min-height: 78px;
  }
  .nav-icon {
    width: 23px;
    height: 23px;
    margin-bottom: 1px;
  }
  .nav-title,
  .navigation .mobile-label {
    min-height: 28px;
    display: flex;
    align-items: center;
    text-align: center;
    line-height: 1.2;
  }
  .nav-title {
    max-width: 70px;
  }
  .navigation .desktop-label {
    display: none;
  }
}

/* Locally stored exercise illustrations and accessible media viewer. */
.exercise-visual.has-illustration {
  height: 175px;
  background: #f5f9f2;
  overflow: hidden;
}
.exercise-visual.has-illustration::before,
.exercise-visual.has-illustration::after {
  display: none;
}
.exercise-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumbnail-label {
  position: absolute;
  bottom: 7px;
  left: 12px;
  padding: 2px 7px;
  background: #fff;
  font-size: 0.62rem;
  color: var(--muted);
  border: 1px solid var(--line);
}
.media-section {
  margin-bottom: 30px;
}
.exercise-media {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: white;
  margin: 0 0 20px;
}
.media-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.exercise-media > img,
.exercise-media > video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--sage);
}
.exercise-media figcaption {
  padding: 18px 20px;
  font-size: 0.84rem;
  line-height: 1.65;
}
.exercise-media figcaption > strong {
  color: var(--green);
  font-size: 0.92rem;
}
.exercise-media figcaption p {
  font-size: 0.82rem;
  margin-top: 10px;
}
.exercise-media .media-credit {
  font-size: 0.72rem;
  color: var(--muted);
}
.media-review-note {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--warning);
}
.video-transcript {
  padding: 0 20px 18px;
  font-size: 0.84rem;
}
.video-transcript summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  color: var(--green);
}
.media-dialog {
  width: min(1080px, calc(100% - 32px));
  max-width: 1080px;
  max-height: calc(100dvh - 32px);
  padding: 24px;
}
.media-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.media-dialog-heading h2 {
  font-size: 1.25rem;
  margin: 0;
}
.media-zoom-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
}
.media-zoom-controls button {
  min-width: 50px;
  font-size: 1.15rem;
}
.media-viewport {
  width: 100%;
  max-height: 55dvh;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--sage);
  overscroll-behavior: contain;
}
.media-viewport img {
  max-width: none;
  height: auto;
  display: block;
}
#media-full-caption {
  font-size: 0.88rem;
  margin-top: 18px;
}
@media (max-width: 700px) {
  .exercise-visual.has-illustration {
    height: 160px;
  }
  .media-heading {
    padding: 12px;
    gap: 10px;
  }
  .media-heading .button {
    width: 100%;
  }
  .exercise-media figcaption {
    padding: 16px;
  }
  .media-dialog {
    padding: 18px;
  }
  .media-dialog-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .media-dialog-heading h2 {
    font-size: 1.1rem;
  }
  .media-dialog-heading .button {
    padding: 8px 12px;
    flex-shrink: 0;
  }
}
@media print {
  #print-content .exercise-media {
    border: 1pt solid #888;
    break-inside: avoid;
    margin-block: 12pt;
  }
  #print-content .exercise-media > img {
    max-height: 60mm;
    object-fit: contain;
    background: white;
  }
  #print-content .media-heading {
    padding: 7pt;
  }
  #print-content .exercise-media figcaption {
    padding: 9pt;
  }
  #print-content .exercise-media figcaption p,
  #print-content .exercise-media figcaption strong {
    font-size: 9pt;
  }
  #print-content .media-credit {
    font-size: 8pt;
  }
}

/* Patient interface: direct routes, short copy, details on demand. */
.patient-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  background: var(--sage);
  border-left: 3px solid var(--brand);
  font-size: 0.88rem;
  margin-bottom: 26px;
}
.patient-note p {
  max-width: 780px;
}
.patient-note a {
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.release-note {
  padding: 18px 22px;
  background: var(--sage);
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.path-card h2 {
  margin-top: 0;
}
.path-card p {
  margin-bottom: 20px;
}
.condition-card {
  min-height: 155px;
}
.condition-card h3 {
  font-size: 1.18rem;
}
.condition-card p {
  margin-top: 10px;
  padding-right: 16px;
}
.condition-intro {
  font-size: 1rem;
  max-width: 760px;
  margin-bottom: 28px;
}
.topic-note {
  margin: 12px 0 24px;
  max-width: 750px;
  font-size: 0.9rem;
}
.compact-section {
  padding-top: 12px;
}
.patient-disclosure {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  margin-top: 24px;
}
.patient-disclosure + .patient-disclosure {
  margin-top: 12px;
}
.patient-disclosure summary {
  cursor: pointer;
  min-height: 54px;
  padding: 14px 0;
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
}
.patient-disclosure > p,
.patient-disclosure > .prose,
.patient-disclosure > ul,
.patient-disclosure > .button {
  margin-bottom: 20px;
}
.patient-disclosure .prose h2 {
  margin-top: 12px;
}
.exercise-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.exercise-actions .button {
  min-width: 150px;
}
.media-section > .exercise-media {
  max-width: 940px;
  margin-inline: auto;
}
.patient-exercise-layout {
  margin-top: 32px;
}
.patient-exercise-layout .detail-aside {
  background: var(--sage);
}
.patient-exercise-layout .detail-aside h2 {
  margin-top: 24px;
}
.patient-exercise-layout .detail-aside h2:first-child {
  margin-top: 0;
}
.completion-button {
  width: 100%;
  margin-top: 26px;
}
@media (max-width: 700px) {
  .hero {
    padding-block: 30px;
  }
  .hero .lead {
    margin-top: 16px;
  }
  .patient-note {
    display: block;
    padding: 16px 18px;
  }
  .patient-note a {
    margin-top: 8px;
  }
  .path-card {
    padding: 22px;
  }
  .path-card h2 {
    font-size: 1.45rem;
  }
  .condition-card {
    min-height: 130px;
  }
  .exercise-actions {
    gap: 10px;
  }
  .exercise-actions .button {
    flex: 1;
    min-width: 130px;
  }
  .patient-disclosure {
    padding-inline: 14px;
  }
  .media-section {
    margin-bottom: 20px;
  }
  .patient-exercise-layout {
    margin-top: 22px;
  }
}

/* Natural hand illustrations: readable labels outside the image. */
.motion-frames{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}
.motion-frames.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.motion-frames.single{grid-template-columns:1fr;max-width:620px;margin-inline:auto}
.motion-frame{margin:0;min-width:0}
.motion-window{overflow:hidden;aspect-ratio:3/4;background:#fff;border-radius:12px}
.motion-window img{display:block;width:200%;max-width:none;height:auto}
.motion-window.second img{margin-left:-100%}
.motion-window.full{aspect-ratio:3/2}
.motion-window.full img{width:100%}
.motion-label{display:flex;gap:10px;align-items:baseline;margin-top:12px;line-height:1.5;font-weight:600}
.step-number{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#e9eee5;color:#344b33}

.exercise-media .motion-frames{padding:14px;margin:0}.exercise-media .motion-window img,.media-viewport .motion-window img{width:200%;max-width:none;max-height:none;height:auto;object-fit:initial}.exercise-media .motion-window.full img,.media-viewport .motion-window.full img{width:100%}.exercise-media .motion-label{padding:10px 0;font-size:1rem}.media-viewport #media-full-image{max-width:none}.motion-window img[hidden]{display:none}
@media(max-width:600px){.motion-frames{gap:10px}.motion-label{font-size:.95rem;display:block}.step-number{margin-right:5px}.motion-frames.three{grid-template-columns:repeat(2,minmax(0,1fr))}.motion-frames.three figure:last-child{grid-column:1/-1;width:50%;justify-self:center}}
@media print{#print-content .motion-frames{width:110mm;margin:auto;padding:0}#print-content .motion-frames.three{width:150mm}#print-content .motion-label{padding:2mm 0;font-size:9pt}#print-content .motion-window img{width:200%;max-width:none;max-height:none}#print-content .motion-window.full img{width:100%}#print-content .motion-frames.single{width:100mm}}
