[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.topnav { gap: clamp(1rem, 2.15vw, 2.1rem); }
.nav-interest { white-space: normal; line-height: 1.4; text-align: right; }
[data-gym-count] { font-variant-numeric: tabular-nums; }
a:has(> [data-gym-count]) { column-gap: .25rem; }
button { font: inherit; }
.gym-button, .gym-utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 3rem;
  font-size: 1rem;
  line-height: 1.4;
}
.gym-button {
  padding: .6rem .9rem;
  border: 1px solid var(--muted);
  border-radius: .3rem;
  background: transparent;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.gym-button:hover { background: var(--warm); border-color: var(--ink); }
.gym-button-quiet { border-color: transparent; text-decoration: underline; text-underline-offset: .22em; }
.gym-utility-link { color: var(--wine); text-align: left; text-decoration-thickness: .07rem; }
.gym-note, .gym-sources { color: var(--muted); font-size: .94rem; line-height: 1.6; }
.gym-status { color: var(--ink); font-size: 1rem; margin-top: .7rem; }
.gym-status:empty { margin: 0; }
.gym-error { color: var(--wine-dark); font-size: 1rem; margin-top: .6rem; }
.gym-guide-references { margin: 0 0 2rem; }
.gym-reference-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .7rem; }
.gym-reference-intro h2 { font: 650 1.125rem/1.5 var(--sans); }
.gym-reference-list { display: grid; gap: .65rem; }
.gym-reference {
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--paper);
  overflow-wrap: anywhere;
}
.gym-reference details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: .85rem 1.15rem;
  min-height: 3rem;
  cursor: pointer;
  list-style: none;
  border-radius: .35rem;
}
.gym-reference summary::-webkit-details-marker { display: none; }
.gym-disclosure-mark { flex: 0 0 1.25rem; }
.gym-disclosure-mark::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--wine);
  text-align: center;
  line-height: 1;
}
.gym-reference details[open] > summary .gym-disclosure-mark::after { content: "−"; }
.gym-reference details[open] > summary { background: var(--warm); border-radius: .35rem .35rem 0 0; }
.gym-reference summary:hover { background: var(--warm); }
.gym-reference summary:focus-visible { outline-offset: -.22rem; }
.gym-reference summary h3 { font: 650 1.125rem/1.5 var(--sans); text-wrap: initial; }
.gym-reference-body { padding: .9rem 1.15rem 1rem; font-size: 1.125rem; }
.gym-reference-body > p + p { margin-top: .8rem; }
.gym-next-step { padding-left: .8rem; border-left: .18rem solid #a1ab93; }
.gym-next-step strong { display: block; color: var(--ink); font-size: .94rem; margin-bottom: .15rem; }
.gym-guide-link { display: inline-flex; align-items: center; min-height: 3rem; margin-top: .45rem; font-size: 1rem; }
.gym-sources { margin-top: .1rem; }
.gym-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .85rem; margin-top: .9rem; }
.gym-saved { color: #384b2f; font-size: 1rem; font-weight: 650; padding-block: .65rem; }
.gym-saved::before { content: "✓"; margin-right: .4rem; }
.article-with-references .article-head { padding-block: clamp(1.4rem, 3vw, 2.4rem); }
.article-with-references .article-head h1 { max-width: 55rem; font-size: clamp(2.3rem, 4.6vw, 4rem); }
.article-with-references .article-intro { font-size: 1.125rem; margin-top: .7rem; }
.article-with-references .byline { margin-top: .65rem; }
.article-with-references .article-body { padding-top: 1.3rem; }
.prose [id] { scroll-margin-top: 1rem; }
.home-gym-entry { grid-column: 1 / -1; }
.gym-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .7rem 1.2rem;
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--warm);
}
.gym-entry h2 { font-size: 2.15rem; }
.gym-entry p { color: var(--muted); font-size: 1rem; margin-top: .25rem; }
.guide-library > .gym-entry { margin-bottom: 2.5rem; }
.gym-card { max-width: 51rem; padding-block: 1.25rem 3.5rem; }
.gym-card-header { margin-bottom: 1.4rem; }
.gym-card-header .eyebrow { margin-bottom: .5rem; }
.gym-card h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); }
.gym-card-lead { margin: .7rem 0 .5rem; }
.gym-card h2 { font: 650 1.25rem/1.5 var(--sans); }
.gym-collection-heading { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.gym-collection-heading p { font-size: 1rem; color: var(--muted); }
.gym-discovery { margin-block: 1.4rem 2rem; }
.gym-discovery > h2 { margin-bottom: .7rem; }
.gym-clear-actions:not(:empty) { margin-top: .55rem; }
.gym-clear-confirm, .gym-undo {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .3rem;
  background: var(--warm);
  margin-block: .7rem 1rem;
}
.gym-undo { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.gym-empty { margin-bottom: 1rem; }
.gym-storage-help { color: var(--wine-dark); }
.gym-storage-help .gym-button { margin-top: .6rem; }
[data-gym-saved-heading]:focus, [data-gym-discovery-heading]:focus { outline: .15rem solid var(--wine); outline-offset: .2rem; }
@media (max-width: 68rem) {
  .nav-shell { grid-template-columns: auto minmax(0, 1fr); gap: .2rem 1.5rem; padding-top: .5rem; }
  .topnav { grid-row: 2; grid-column: 1 / -1; gap: .4rem 1.4rem; flex-wrap: wrap; }
  .nav-interest { grid-column: 2; grid-row: 1; }
}
@media (max-width: 46.25rem) {
  .nav-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .2rem .65rem; padding-bottom: .15rem; }
  .nav-shell .brand { gap: .5rem; font-size: .96rem; }
  .nav-shell .brand-break { display: initial; }
  .topnav { gap: .2rem .8rem; justify-content: space-between; }
  .topnav a, .nav-interest { font-size: .875rem; }
  .nav-interest { max-width: 12rem; min-height: 3rem; }
  .gym-reference-intro { margin-bottom: .4rem; }
  .gym-reference-intro .gym-utility-link { font-size: .94rem; }
  .gym-reference-body { padding: .85rem; }
  .gym-reference details > summary { padding: .85rem; }
  .gym-entry { padding: 1rem; }
  .article-with-references .article-head h1 { font-size: clamp(2.15rem, 6.9vw, 2.8rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .gym-reference summary { transition: background-color 120ms ease-out; }
}
.copy-block { margin-block: 1rem; }
.copy-block pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--warm); border: 1px solid var(--line); padding: 1rem; font: inherit; }
.copy-block [role=status] { font-size: 1rem; margin-top: .4rem; }
.prose img { max-width: 100%; height: auto; }
.topnav { flex-wrap: wrap; gap: .25rem 1.25rem; }
@media(max-width: 78rem) {
  .nav-shell { grid-template-columns: auto minmax(0,1fr); gap: .2rem 1rem; padding-top: .5rem; }
  .topnav { grid-row: 2; grid-column: 1/-1; }
  .nav-interest { grid-row: 1; grid-column: 2; }
}
.home-learning-links { grid-column: 1/-1; }
.home-learning-links h2 { font-size: 2.6rem; }
.home-learning-links p { max-width: 48rem; }
.guide-starts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; margin-bottom: 1.6rem; }
.guide-starts a { display: flex; align-items: center; min-height: 3rem; padding: .8rem; border: 1px solid var(--line); border-radius: .3rem; text-decoration-thickness: .06rem; }
@media(max-width: 46rem) { .guide-starts { grid-template-columns: 1fr; } }

.trainer-photo { max-width: 20rem; height: auto; margin-block: .8rem; }

/* Saved references share the existing v1 collection. */
.gym-reference-heading { flex: 1; min-width: 0; }
.gym-reference-preview { display: block; margin-top: .25rem; color: var(--muted); font: 400 .96rem/1.5 var(--sans); }
.gym-reference-thumb { flex: 0 0 7rem; width: 7rem; height: 4.4rem; object-fit: contain; border-radius: .2rem; background: var(--warm); }
.gym-saved-group > h3 { margin: .8rem 0 .6rem; font: 650 1.05rem/1.5 var(--sans); }
.gym-browse-links { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.gym-browse-links a { display: inline-flex; align-items: center; min-height: 3rem; font-size: 1rem; }
.gym-print-illustration, .gym-print-url, .gym-print-note { display: none; }
.home-saved { margin-block: 0 1.3rem; padding: 1rem; border: 1px solid var(--line); background: var(--warm); border-radius: .4rem; }
.home-saved h2 { font: 650 1.125rem/1.5 var(--sans); }
.home-saved-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
.home-saved-link { display: flex; align-items: center; gap: .7rem; padding: .75rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .3rem; text-decoration: none; }
.home-saved-link:hover { border-color: var(--wine); }
.home-saved-link > img { width: 5rem; height: 3.5rem; object-fit: contain; flex-shrink: 0; }
.home-saved-link > span:nth-last-child(2) { flex: 1; }
.home-saved-link strong { display: block; font-size: 1rem; line-height: 1.45; text-decoration: underline; text-underline-offset: .2em; }
.home-saved-link span span { display: block; margin-top: .3rem; font-size: .94rem; line-height: 1.45; color: var(--muted); }
.home-saved-open { font-size: .94rem; color: var(--wine); flex: 0 0 5rem; }
@media(max-width: 46rem) {
  .home-saved-list { grid-template-columns: 1fr; }
  .gym-reference-thumb { flex-basis: 4.4rem; width: 4.4rem; height: 3.2rem; }
  .home-saved-open { display: none; }
  .home-saved { padding: .8rem; }
}
@media print {
  @page { margin: 16mm; }
  body:has([data-gym-card-page]) { background: white; color: #111; font-size: 11pt; }
  body:has([data-gym-card-page]) .topbar, body:has([data-gym-card-page]) .footer,
  body:has([data-gym-card-page]) .crumbs, body:has([data-gym-card-page]) .skip-link,
  [data-gym-card-page] .gym-discovery, [data-gym-card-page] .gym-controls,
  [data-gym-card-page] .gym-clear-actions, [data-gym-card-page] .gym-undo,
  [data-gym-card-page] .gym-storage-help, [data-gym-card-page] .gym-status,
  [data-gym-card-page] .gym-browse-links, [data-gym-card-page] .gym-card-header .gym-note,
  [data-gym-card-page] [data-gym-print], [data-gym-card-page] .gym-disclosure-mark,
  [data-gym-card-page] .gym-reference-preview, [data-gym-card-page] .gym-reference-thumb { display: none !important; }
  [data-gym-card-page] { max-width: none; width: auto; padding: 0; }
  [data-gym-card-page] h1 { font-size: 24pt; }
  [data-gym-card-page] h2 { font-size: 15pt; }
  [data-gym-card-page] .gym-card-lead { font-size: 11pt; }
  [data-gym-card-page] .gym-reference { background: white; border-color: #aaa; break-inside: avoid; margin-bottom: .5rem; }
  [data-gym-card-page] .gym-reference-body { font-size: 11pt; }
  [data-gym-card-page] .gym-reference details > summary { background: white; padding: .6rem .8rem; }
  [data-gym-card-page] .gym-reference summary h3 { font-size: 13pt; }
  [data-gym-card-page] .gym-print-illustration { display: block; max-width: 100%; max-height: 70mm; object-fit: contain; }
  [data-gym-card-page] .gym-print-url, [data-gym-card-page] .gym-print-note { display: block; font-size: 9pt; overflow-wrap: anywhere; }
  [data-gym-card-page] .gym-sources { font-size: 9pt; color: #333; }
  [data-gym-card-page] .gym-sources a::after { content: " (" attr(href) ")"; }
}
.print-reference-url { display: none; }
@media print {
  .topbar, .footer, .crumbs, .skip-link, .article-action, .nav-interest,
  .copy-block button, .copy-block [role="status"], .guide-lessons,
  [data-anatomy-viewer], .gym-guide-references .gym-controls,
  .lesson-actions, .article .related, .exercise-page .related { display: none !important; }
  .article, .exercise-page { color: #111; background: white; }
  .article-mast { border: 0; background: white; }
  .article .wrap, .exercise-page.wrap, .exercise-page .wrap { max-width: none; width: auto; padding-inline: 0; }
  .article-head, .article-body { padding-block: .6rem; }
  .article-head h1 { font-size: 25pt; }
  .prose { font-size: 11pt; }
  .prose h2 { font-size: 17pt; break-after: avoid; }
  .prose h3 { font-size: 13pt; break-after: avoid; }
  .prose table { font-size: 10pt; }
  .prose img { max-height: 110mm; object-fit: contain; break-inside: avoid; }
  .prose figure, .prose tr { break-inside: avoid; }
  .prose a { color: #222; }
  .prose a[href^="https:"]::after { content: " (" attr(href) ")"; font-size: 9pt; overflow-wrap: anywhere; }
  .print-reference-url { display: block; font-size: 9pt; overflow-wrap: anywhere; }
  [data-gym-unavailable] { display: none !important; }
}
.gym-reference-list, .gym-reference, .gym-saved-group { min-width: 0; }
.gym-card h1, .gym-card-header, .gym-button { overflow-wrap: anywhere; }
.gym-button { max-width: 100%; }
.gym-button:disabled { cursor: wait; opacity: .75; }
@media(max-width: 30rem) {
  .gym-reference details > summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .45rem; padding: .65rem; }
  .gym-reference-thumb { grid-column: 1 / -1; width: 5rem; height: 3rem; }
  .gym-reference-heading { grid-column: 1; }
  .gym-disclosure-mark { grid-column: 2; }
}
.gym-print-caption { display: none; }
@media print { [data-gym-card-page] .gym-print-caption { display: block; font-size: 9pt; line-height: 1.5; } }
.home-saved-list, .home-saved-link { min-width: 0; }
.home-saved-link { flex-wrap: wrap; }
.home-saved-link > img { max-width: 100%; }
.home-saved-link > span:nth-last-child(2) { flex: 1 1 8rem; min-width: 0; overflow-wrap: anywhere; }
.home-saved-link strong, .home-saved-link span span { overflow-wrap: anywhere; }
