:root {
  --color-bg: #f3f6f8;
  --color-bg-elevated: #eef3f6;
  --color-surface: #ffffff;
  --color-surface-soft: #f8fafc;
  --color-text: #132025;
  --color-muted: #4f6270;
  --color-border: #d4dde4;
  --color-border-strong: #bfd0da;
  --color-accent: #005f47;
  --color-accent-strong: #004535;
  --color-accent-soft: #e5f4ef;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 26px rgba(8, 25, 34, 0.06);
  --shadow-panel: 0 18px 42px rgba(10, 24, 34, 0.07);
  --shadow-card: 0 14px 32px rgba(10, 24, 34, 0.08);
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.75rem;
  --space-3xl: 4rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at top, rgba(229, 244, 239, 0.9) 0%, rgba(229, 244, 239, 0) 36%),
    linear-gradient(180deg, #fbfcfd 0%, var(--color-bg) 280px, var(--color-bg-elevated) 100%);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

main {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.page {
  display: grid;
  gap: var(--space-2xl);
}

.section-block {
  display: grid;
  gap: var(--space-lg);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.8rem, 4.8vw, 2.8rem);
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h3 {
  font-size: 1.06rem;
}

p {
  margin: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 95, 71, 0.28);
  outline-offset: 2px;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

header,
footer {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

header {
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1rem 0;
  flex-wrap: wrap;
}

.site-brand {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  font-size: 1.12rem;
}

.language-switcher {
  position: relative;
  display: grid;
  gap: 0.28rem;
  align-items: start;
  order: 3;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(191, 208, 218, 0.9);
  border-radius: 1.15rem;
  background: rgba(248, 250, 252, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.language-switcher label {
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.language-switcher select {
  width: auto;
  min-width: 9.75rem;
  max-width: min(46vw, 15rem);
}

.language-switcher.language-switcher-enhanced {
  min-width: 12rem;
}

.language-switcher-trigger {
  width: 100%;
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  border: 1px solid rgba(191, 208, 218, 0.95);
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-text);
  padding: 0.34rem 0.48rem 0.34rem 0.38rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.language-switcher-current {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.language-switcher-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 2.1rem;
  height: 1.95rem;
  padding: 0 0.5rem;
  border: 1px solid rgba(191, 208, 218, 0.9);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  color: #24374d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.language-switcher-flag,
.language-switcher-option-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.language-switcher-flag {
  width: 1.95rem;
  height: 1.95rem;
  border: 1px solid rgba(191, 208, 218, 0.9);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  font-size: 1.08rem;
}

.language-switcher-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.96rem;
}

.language-switcher-chevron {
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 160ms ease;
}

.language-switcher.is-open .language-switcher-chevron {
  transform: rotate(-135deg) translateY(-1px);
}

.language-switcher-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(18rem, 82vw);
  max-height: min(26rem, 70vh);
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid rgba(191, 208, 218, 0.95);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-card);
  z-index: 40;
}

html[dir="rtl"] .language-switcher-menu {
  right: auto;
  left: 0;
}

.language-switcher-list {
  display: grid;
  gap: 0.2rem;
}

.language-switcher-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-start;
  padding: 0.58rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  background: transparent;
  color: var(--color-text);
  text-align: left;
}

.language-switcher-trigger:hover,
.language-switcher-trigger:focus-visible,
.language-switcher-option:hover,
.language-switcher-option:focus-visible {
  border-color: rgba(0, 95, 71, 0.32);
  text-decoration: none;
}

.language-switcher-option[aria-selected="true"] {
  border-color: #c7e4d9;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.language-switcher-option-label {
  flex: 1 1 auto;
  min-width: 0;
}

html[dir="rtl"] .language-switcher-option-label {
  text-align: right;
}

select,
input[type="search"] {
  min-height: 2.55rem;
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0 2.25rem 0 var(--space-sm);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[dir="rtl"] select,
html[dir="rtl"] input[type="search"] {
  padding-right: var(--space-sm);
  padding-left: 2.25rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-sm);
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

header nav {
  order: 2;
  margin-left: auto;
}

header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 0.95rem;
  border: 1px solid rgba(191, 208, 218, 0.65);
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.52);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

header nav a:hover,
header nav a:focus-visible {
  background: var(--color-surface-soft);
  border-color: var(--color-border-strong);
  text-decoration: none;
  transform: translateY(-1px);
}

header nav a[aria-current="page"] {
  border-color: var(--color-border-strong);
  background: var(--color-surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* Premium homepage layer inspired by the approved OlloGym direction. */
.premium-site-header {
  position: sticky;
  top: 0;
  z-index: 1205;
  border-bottom: 1px solid rgba(19, 32, 37, 0.08);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 36px rgba(8, 25, 34, 0.055);
}

.premium-site-header .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 4.75rem;
  gap: var(--space-md);
  padding: 0.7rem 0;
}

.premium-site-header .site-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
}

.premium-site-header nav {
  order: initial;
  margin-left: 0;
}

.premium-site-header nav ul {
  justify-content: center;
  gap: 0.42rem;
}

.premium-site-header nav a {
  min-height: 2.35rem;
  padding: 0 0.78rem;
  border-color: transparent;
  background: transparent;
  color: #41525d;
  font-size: 0.94rem;
  font-weight: 650;
}

.premium-site-header nav a:hover,
.premium-site-header nav a:focus-visible {
  color: var(--color-accent);
  background: rgba(229, 244, 239, 0.72);
  border-color: rgba(199, 228, 217, 0.9);
}

.premium-site-header nav a[aria-current="page"] {
  color: #10231f;
  background: #ffffff;
  border-color: rgba(191, 208, 218, 0.72);
  box-shadow: 0 8px 18px rgba(8, 25, 34, 0.055);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  min-width: 0;
}

.premium-site-header .language-switcher {
  order: initial;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.premium-site-header .language-switcher label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.premium-site-header .language-switcher.language-switcher-enhanced {
  min-width: 10.5rem;
}

.premium-site-header .language-switcher-trigger {
  min-height: 2.55rem;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(191, 208, 218, 0.8);
  box-shadow: 0 8px 20px rgba(8, 25, 34, 0.045);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0 1rem;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 750;
  box-shadow: 0 12px 22px rgba(0, 69, 53, 0.16);
  white-space: nowrap;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.language-switcher-menu {
  width: min(20rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: min(25rem, calc(100dvh - 6rem));
  overscroll-behavior: contain;
}

.page-home {
  width: min(1180px, 92%);
  gap: var(--space-2xl);
}

body[data-page="home"] {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbfa 18rem, #eef3f6 100%);
}

body[data-page="home"] main {
  padding-top: var(--space-xl);
}

.page-home .hero-home {
  position: relative;
  overflow: hidden;
  min-height: 34rem;
  padding: 1.3rem;
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 252, 250, 0.92) 46%, rgba(229, 244, 239, 0.7) 100%);
  border: 1px solid rgba(191, 208, 218, 0.78);
  box-shadow: 0 28px 70px rgba(8, 25, 34, 0.08);
}

.page-home .hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(0, 95, 71, 0.055) 1px, rgba(255, 255, 255, 0) 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(0, 95, 71, 0.045) 1px, rgba(255, 255, 255, 0) 1px);
  background-size: 4rem 4rem;
  opacity: 0.38;
  pointer-events: none;
}

.page-home .hero-copy,
.hero-dashboard-card {
  position: relative;
  z-index: 1;
}

.page-home .hero-copy {
  align-content: center;
  gap: var(--space-lg);
  padding: clamp(0.35rem, 2vw, 1.4rem);
}

.page-home .hero-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.82rem;
  border: 1px solid rgba(199, 228, 217, 0.95);
  border-radius: 999px;
  background: rgba(229, 244, 239, 0.82);
  color: #004535;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.page-home .hero-eyebrow::before,
.home-trust-badges li span,
.hero-dashboard-dot,
.hero-dashboard-mark {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #2ecc71;
  box-shadow: 0 0 0 0.32rem rgba(46, 204, 113, 0.14);
}

.page-home .hero-home h1 {
  max-width: 15ch;
  color: #081519;
  font-size: 3.65rem;
  line-height: 1.03;
  letter-spacing: 0;
}

.page-home .hero-subtitle {
  max-width: 36rem;
  color: #41525d;
  font-size: 1.12rem;
}

.page-home .hero-actions {
  gap: var(--space-md);
}

.page-home .hero-actions .btn,
.page-home .hero-actions .btn-secondary {
  min-height: 3.15rem;
  padding: 0 1.25rem;
  font-weight: 750;
}

.hero-dashboard-card {
  display: grid;
  gap: var(--space-md);
  align-self: center;
  min-width: 0;
  padding: clamp(1.05rem, 3vw, 1.55rem);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px);
  box-shadow:
    0 28px 54px rgba(8, 25, 34, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.hero-dashboard-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.hero-dashboard-card .page-meta {
  background: rgba(248, 250, 252, 0.86);
}

.hero-dashboard-card h2 {
  color: #081519;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.hero-dashboard-card p,
.hero-dashboard-card small {
  color: #4f6270;
}

.hero-dashboard-primary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: start;
  padding: var(--space-md);
  border: 1px solid rgba(212, 221, 228, 0.95);
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.76);
}

.hero-dashboard-primary h3 {
  letter-spacing: 0;
}

.hero-dashboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.hero-dashboard-list li {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  padding: var(--space-sm);
  border: 1px solid rgba(212, 221, 228, 0.78);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.hero-dashboard-list span {
  color: #10231f;
  font-weight: 750;
}

.home-trust-badges {
  border: 1px solid rgba(191, 208, 218, 0.75);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(8, 25, 34, 0.055);
  padding: var(--space-md);
}

.home-trust-badges ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.home-trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-height: 2.7rem;
  padding: 0 0.92rem;
  border: 1px solid rgba(212, 221, 228, 0.8);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  color: #10231f;
  font-size: 0.94rem;
}

.page-home .discovery-panel-featured {
  border-color: rgba(191, 208, 218, 0.82);
  border-radius: 1.65rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.9) 58%, rgba(229, 244, 239, 0.68) 100%);
  box-shadow: 0 24px 58px rgba(8, 25, 34, 0.075);
}

.page-home .discovery-form {
  border: 1px solid rgba(212, 221, 228, 0.74);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.7);
  padding: clamp(1rem, 2vw, 1.25rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.page-home .discovery-fieldset {
  border-color: rgba(212, 221, 228, 0.74);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(8, 25, 34, 0.035);
}

.page-home .discovery-results-panel {
  border-color: rgba(191, 208, 218, 0.78);
  border-radius: 1.25rem;
  background: rgba(248, 250, 252, 0.82);
}

.page-home .discovery-results-feed {
  max-height: min(68vh, 38rem);
}

.page-home .home-proof,
.page-home .home-free-note,
.page-home .home-search-entry,
.page-home .home-faq-preview,
.page-home .section-block:not(.discovery-panel):not(.hero-home):not(.home-trust-badges) {
  border-radius: 1.35rem;
}

.page-home .panel-card {
  border-color: rgba(212, 221, 228, 0.82);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(8, 25, 34, 0.055);
}

body[data-page="home"] footer {
  margin-top: var(--space-2xl);
  border-top: 1px solid rgba(19, 32, 37, 0.08);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 -16px 34px rgba(8, 25, 34, 0.04);
}

body[data-page="home"] .footer-grid,
body[data-page="home"] #footer-brand,
body[data-page="home"] #footer-disclaimer {
  width: min(1180px, 92%);
}

.hero {
  background:
    radial-gradient(circle at right top, rgba(229, 244, 239, 0.92) 0%, rgba(229, 244, 239, 0) 42%),
    linear-gradient(135deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid;
  gap: var(--space-lg);
}

.hero-copy {
  display: grid;
  gap: var(--space-md);
}

.hero-proof-card {
  display: grid;
  gap: var(--space-sm);
  align-content: start;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid rgba(191, 208, 218, 0.9);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
}

.hero-proof-card p:not(.page-meta) {
  color: var(--color-muted);
}

.hero-eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero-subtitle {
  color: var(--color-muted);
  max-width: 62ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.section-cta {
  font-weight: 700;
}

.section-intro {
  color: var(--color-muted);
  max-width: 64ch;
}

.benefits-grid,
.utility-list,
.cards-grid {
  display: grid;
  gap: var(--space-lg);
}

.benefit-card,
.panel-card,
.utility-panel,
.page-intro,
.filters-panel,
.results-panel,
.combination-panel,
.discovery-panel,
.home-faq-preview,
.home-search-entry,
.detail-section,
#workout-detail-not-found,
#exercise-detail-not-found,
main > section:not(.hero):not(.section-block):not(.home-workout-results-section):not(#workout-detail-content):not(#exercise-detail-content) {
  display: grid;
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.15rem, 2.3vw, 1.55rem);
  box-shadow: var(--shadow-soft);
}

.utility-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.utility-list li {
  border-left: 3px solid var(--color-accent-soft);
  padding: 0.1rem 0 0.1rem var(--space-sm);
  color: var(--color-muted);
}

.benefit-card,
.panel-card,
.utility-panel,
.page-intro,
.filters-panel,
.results-panel,
.combination-panel,
.discovery-panel {
  gap: var(--space-md);
}

.page-intro p {
  color: var(--color-muted);
  max-width: 68ch;
  font-size: 1.01rem;
}

.page-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.page-meta {
  width: fit-content;
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
  border: 1px solid #c7e4d9;
  border-radius: 999px;
  padding: 0.38rem 0.82rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.filters-panel h2,
.results-head h2,
.combination-panel h2 {
  margin-bottom: var(--space-xs);
}

.filters-form {
  display: grid;
  gap: var(--space-md);
}

.discovery-form {
  display: grid;
  gap: var(--space-md);
}

.discovery-fieldset {
  min-width: 0;
  display: grid;
  gap: var(--space-sm);
  margin: 0;
  padding: clamp(1rem, 2vw, 1.2rem);
  border: 1px solid rgba(212, 221, 228, 0.95);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.discovery-fieldset legend {
  padding: 0 var(--space-xs);
  font-size: 0.98rem;
  font-weight: 800;
}

.discovery-fieldset-copy,
.detail-section-intro {
  color: var(--color-muted);
  font-size: 0.94rem;
  max-width: 68ch;
}

.discovery-optional-grid {
  display: grid;
  gap: var(--space-md);
}

.filter-field-wide {
  grid-column: 1 / -1;
}

.filter-field {
  display: grid;
  gap: var(--space-2xs);
}

.filter-field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.filter-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.discovery-results-panel {
  display: grid;
  gap: var(--space-md);
  border: 1px solid rgba(191, 208, 218, 0.9);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 2vw, 1.25rem);
  background: rgba(248, 250, 252, 0.78);
}

.discovery-results-count {
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
  border: 1px solid #c7e4d9;
  border-radius: 999px;
  padding: 0.38rem 0.82rem;
  font-size: 0.92rem;
}

.discovery-note {
  color: var(--color-muted);
  font-size: 0.94rem;
  max-width: 68ch;
}

.discovery-helper {
  color: var(--color-muted);
  font-size: 0.92rem;
  max-width: 68ch;
}

.discovery-panel-featured,
.home-free-note,
.home-search-entry {
  border-color: rgba(191, 208, 218, 0.95);
  background:
    radial-gradient(circle at right top, rgba(229, 244, 239, 0.72) 0%, rgba(229, 244, 239, 0) 38%),
    var(--color-surface);
}

.home-faq-grid {
  align-items: stretch;
}

.discovery-results-feed {
  display: grid;
  gap: var(--space-md);
  max-height: min(72vh, 760px);
  overflow-y: auto;
  padding-right: var(--space-2xs);
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

#results-count {
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
  border: 1px solid #c7e4d9;
  border-radius: 999px;
  padding: 0.38rem 0.82rem;
  font-size: 0.92rem;
}

.cards-grid {
  grid-template-columns: 1fr;
}

.workout-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.1rem, 2vw, 1.4rem);
  display: grid;
  gap: var(--space-md);
  min-height: 100%;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.workout-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-border-strong);
}

.workout-card-title {
  font-size: 1.12rem;
}

.workout-card-description {
  color: var(--color-muted);
  font-size: 0.96rem;
}

.workout-card-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: #31414d;
  font-size: 0.93rem;
}

.workout-card-meta li {
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(212, 221, 228, 0.9);
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
}

.workout-card-actions {
  margin-top: var(--space-xs);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(212, 221, 228, 0.9);
}

.workout-detail-link {
  display: inline-flex;
}

#suggested-combination-content {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfcfd 0%, var(--color-surface-soft) 100%);
  padding: clamp(1rem, 2vw, 1.3rem);
  display: grid;
  gap: var(--space-sm);
}

.combination-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: var(--space-2xs);
}

.combination-meta {
  font-weight: 600;
}

.combination-method {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.empty-state {
  border: 1px dashed #b9c8d3;
  border-radius: var(--radius-md);
  background: #fbfdff;
  padding: var(--space-lg);
  text-align: center;
  display: grid;
  gap: var(--space-xs);
}

.empty-state-title {
  font-size: 1.06rem;
}

.empty-state-text {
  color: var(--color-muted);
}

.catalog-language-note {
  width: fit-content;
  color: #29423d;
  background: #eef7f3;
  border: 1px solid #cfe2d9;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  font-size: 0.93rem;
}

.btn,
button,
.btn-back,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-accent);
  padding: 0 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn,
button[type="submit"] {
  background: var(--color-accent);
  color: #ffffff;
}

.btn:hover,
button[type="submit"]:hover,
.btn-back:hover {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 69, 53, 0.16);
}

.btn-secondary,
button[type="reset"],
.btn-back,
.workout-detail-link {
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-accent);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover,
button[type="reset"]:hover,
.workout-detail-link:hover {
  background: var(--color-accent-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

.page-workout-detail .btn-back {
  width: fit-content;
  margin-bottom: calc(var(--space-xs) * -1);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  z-index: 1000;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0;
  display: grid;
  gap: var(--space-lg);
}

footer > * {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
}

.footer-group {
  display: grid;
  gap: var(--space-sm);
}

.footer-nav-title {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-nav-list {
  list-style: none;
  display: grid;
  gap: var(--space-xs);
  padding: 0;
  margin: 0;
}

.footer-nav-list a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--color-muted);
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible {
  color: var(--color-text);
  text-decoration: none;
}

.footer-nav-list a[aria-current="page"] {
  color: var(--color-text);
  font-weight: 700;
}

#footer-brand {
  font-weight: 700;
}

#footer-disclaimer {
  color: var(--color-muted);
  font-size: 0.9rem;
  max-width: 72ch;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-md);
  z-index: 999;
}

.cookie-banner-actions {
  margin-top: var(--space-sm);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

#workout-detail-content,
#exercise-detail-content {
  display: grid;
  gap: var(--space-lg);
}

.detail-hero-card {
  display: grid;
  gap: var(--space-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at right top, rgba(229, 244, 239, 0.9) 0%, rgba(229, 244, 239, 0) 44%),
    linear-gradient(135deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: var(--shadow-panel);
}

.detail-hero-copy {
  display: grid;
  gap: var(--space-sm);
}

#detail-workout-name,
#exercise-detail-name {
  font-size: clamp(2rem, 5vw, 3rem);
}

#detail-workout-description,
#detail-overview-text,
#exercise-detail-description,
#exercise-overview-text {
  color: var(--color-muted);
  max-width: 68ch;
}

#detail-workout-description,
#exercise-detail-description {
  font-size: 1.04rem;
}

.detail-summary-card {
  display: grid;
  gap: var(--space-xs);
  align-content: start;
  padding: var(--space-md);
  border: 1px solid rgba(191, 208, 218, 0.9);
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.84);
}

.detail-summary-card h2 {
  font-size: 1rem;
}

#detail-estimated-time,
#detail-difficulty,
#exercise-detail-difficulty,
#exercise-detail-equipment {
  font-weight: 600;
}

.detail-section {
  display: grid;
  gap: var(--space-sm);
}

.detail-section-grid {
  display: grid;
  gap: var(--space-lg);
}

.detail-section ul,
.detail-section ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

html[dir="rtl"] .detail-section ul,
html[dir="rtl"] .detail-section ol {
  padding-right: 1.2rem;
  padding-left: 0;
}

.detail-section li::marker {
  color: var(--color-accent);
  font-weight: 700;
}

.detail-facts-grid {
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}

.detail-fact {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
  gap: 0.28rem;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(212, 221, 228, 0.95);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
}

.detail-fact-label {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail-fact-value {
  margin: 0;
  color: #17303a;
  font-size: 1rem;
  font-weight: 700;
}

.detail-chip-list,
.detail-exercise-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.detail-chip-list-compact {
  gap: 0.4rem;
}

.detail-chip-item {
  margin: 0;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #d5e3ec;
  background: #f6fafc;
  color: #234150;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.detail-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.detail-exercise-list {
  display: grid;
  gap: var(--space-md);
}

.detail-exercise-item {
  margin: 0;
}

.detail-exercise-card {
  display: grid;
  gap: var(--space-md);
  padding: clamp(1rem, 2vw, 1.3rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: var(--shadow-soft);
}

.detail-exercise-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-weight: 800;
  font-size: 1rem;
}

.detail-exercise-body,
.detail-exercise-title-group,
.detail-exercise-head {
  display: grid;
  gap: var(--space-xs);
}

.detail-exercise-title {
  margin: 0;
  font-size: 1.08rem;
}

.detail-exercise-name-link {
  color: #16303a;
}

.detail-exercise-name-link:hover {
  color: var(--color-accent-strong);
  text-decoration: none;
}

.detail-exercise-meta,
.detail-exercise-description {
  margin: 0;
  color: var(--color-muted);
}

.detail-exercise-meta {
  font-size: 0.92rem;
  font-weight: 600;
}

.detail-exercise-link {
  width: fit-content;
}

.workout-print-brand {
  display: none;
}

body.print-mode .workout-print-brand {
  display: inline;
}

body.print-mode header,
body.print-mode footer,
body.print-mode .btn-back,
body.print-mode .skip-link,
body.print-mode #catalog-language-note,
body.print-mode #detail-hero-tags {
  display: none;
}

body.print-mode .page-workout-detail {
  padding-top: var(--space-lg);
}

body.print-mode .detail-hero-card,
body.print-mode .detail-summary-card,
body.print-mode .detail-section,
body.print-mode .detail-exercise-card {
  background: #ffffff;
  box-shadow: none;
}

#workout-detail-not-found,
#exercise-detail-not-found {
  display: grid;
  gap: var(--space-sm);
}

/* Detail card grid rules must not expose hidden fallbacks or empty sections. */
body[data-page="workout-detail"] [hidden],
body[data-page="exercise-detail"] [hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  .filters-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-actions {
    grid-column: 1 / -1;
  }

  .discovery-optional-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discovery-form .filter-actions {
    grid-column: 1 / -1;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workout-card-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-benefits .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .utility-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-hero-card {
    grid-template-columns: minmax(0, 1.7fr) minmax(230px, 0.95fr);
    align-items: start;
  }

  .detail-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-facts-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-summary-card .detail-facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  }

  .detail-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-section-wide {
    grid-column: 1 / -1;
  }

  .detail-exercise-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .detail-exercise-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  .workout-print-brand {
    display: inline;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  header,
  footer,
  .skip-link,
  .btn-back,
  .detail-action-bar,
  #catalog-language-note,
  #detail-hero-tags,
  #workout-detail-not-found {
    display: none !important;
  }

  .page-workout-detail,
  #workout-detail-content {
    display: block;
    gap: 0;
    padding: 0;
  }

  .detail-hero-card,
  .detail-summary-card,
  .detail-section,
  .detail-exercise-card {
    background: transparent !important;
    box-shadow: none !important;
    border: 1px solid #c7cfd6;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .detail-hero-card,
  .detail-section,
  .detail-exercise-item {
    margin-bottom: 0.75rem;
  }

  .detail-section-grid {
    display: block;
  }

  .detail-facts-grid,
  .detail-facts-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-exercise-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .detail-exercise-link {
    display: none !important;
  }

  .detail-chip {
    color: #000000;
    background: transparent;
    border-color: #c7cfd6;
  }

  a,
  a:visited {
    color: #000000;
    text-decoration: none;
  }
}

@media (min-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-benefits .benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-categories .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-workouts {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
    grid-template-areas:
      "intro intro"
      "filters results"
      "combination combination";
  }

  .page-workouts:not(.page-exercises) {
    grid-template-areas:
      "intro intro"
      "discovery discovery"
      "filters results"
      "combination combination";
  }

  .page-workouts > .page-intro {
    grid-area: intro;
  }

  .filters-panel {
    grid-area: filters;
    position: sticky;
    top: var(--space-lg);
  }

  .results-panel {
    grid-area: results;
  }

  .page-workouts .discovery-panel {
    grid-area: discovery;
  }

  .combination-panel {
    grid-area: combination;
  }

  .discovery-optional-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-home {
    grid-template-columns: minmax(0, 1.16fr) minmax(20rem, 0.84fr);
    align-items: center;
  }
}

@media (max-width: 1040px) {
  .premium-site-header .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .premium-site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .premium-site-header nav ul {
    justify-content: flex-start;
  }

  .header-actions {
    justify-self: end;
  }
}

@media (max-width: 719px) {
  main {
    padding-top: var(--space-xl);
  }

  .header-inner {
    align-items: flex-start;
  }

  .language-switcher {
    order: 2;
    margin-left: auto;
    max-width: 100%;
  }

  html[dir="rtl"] .language-switcher {
    margin-right: auto;
    margin-left: 0;
  }

  header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  header nav ul {
    gap: var(--space-xs);
  }

  header nav a {
    min-height: 2.45rem;
    padding: 0 0.8rem;
  }

  .premium-site-header .header-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
    padding: 0.78rem 0;
  }

  .premium-site-header .site-brand {
    grid-row: 1;
  }

  .header-actions {
    grid-row: 2;
    justify-self: stretch;
    justify-content: space-between;
    width: 100%;
  }

  .premium-site-header nav {
    grid-row: 3;
    width: 100%;
  }

  .premium-site-header nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: thin;
  }

  .premium-site-header nav a {
    white-space: nowrap;
  }

  .premium-site-header .language-switcher.language-switcher-enhanced {
    min-width: min(12rem, 54vw);
  }

  .header-cta {
    flex: 0 0 auto;
    padding: 0 0.82rem;
  }

  .page-home .hero-home {
    min-height: auto;
    padding: 1rem;
  }

  .page-home .hero-copy {
    padding: 0.2rem;
  }

  .page-home .hero-home h1 {
    max-width: 15ch;
    font-size: 2.55rem;
  }

  .hero-dashboard-list {
    grid-template-columns: 1fr;
  }

  .home-trust-badges ul {
    justify-content: flex-start;
  }

  .home-trust-badges li {
    flex: 1 1 13rem;
  }

  .language-switcher select {
    min-width: 0;
    width: min(58vw, 15rem);
  }

  .language-switcher.language-switcher-enhanced {
    min-width: min(15rem, 68vw);
  }

  .hero-actions,
  .filter-actions,
  .page-intro-actions {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .language-switcher label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .language-switcher {
    padding-left: 0.45rem;
  }

  html[dir="rtl"] .language-switcher {
    padding-right: 0.45rem;
  }

  .language-switcher select {
    width: min(62vw, 13rem);
  }

  .language-switcher.language-switcher-enhanced {
    min-width: min(13.5rem, 78vw);
  }

  .premium-site-header .language-switcher.language-switcher-enhanced {
    min-width: min(11.5rem, 52vw);
  }

  .premium-site-header .language-switcher-text {
    max-width: 5.5rem;
  }

  .header-cta {
    max-width: 45vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Approved homepage redesign layer: converted from the supplied desktop and mobile references. */
body[data-page="home"] {
  --home-bg: #f8f9ff;
  --home-surface: #ffffff;
  --home-surface-soft: #eff4ff;
  --home-surface-blue: #dce9ff;
  --home-surface-strong: #d3e4fe;
  --home-text: #0b1c30;
  --home-muted: #5f6f7e;
  --home-green: #006d37;
  --home-green-bright: #2ecc71;
  --home-green-soft: #e8f8ef;
  --home-border: rgba(108, 123, 109, 0.28);
  --home-shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.04);
  --home-shadow-md: 0 22px 52px rgba(11, 28, 48, 0.08);
  --home-shadow-lg: 0 34px 78px rgba(11, 28, 48, 0.12);
  background: var(--home-bg);
  color: var(--home-text);
  overflow-x: hidden;
  overflow-y: auto;
}

body[data-page="home"] main {
  width: 100%;
  padding: 0;
}

body[data-page="home"] .page-home {
  width: 100%;
  max-width: none;
  gap: 0;
  padding-top: 5rem;
}

body[data-page="home"] .premium-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(11, 28, 48, 0.06);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(24px);
  box-shadow: var(--home-shadow-sm);
}

body[data-page="home"] .premium-site-header .header-inner {
  width: 100%;
  max-width: 96rem;
  min-height: 5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

body[data-page="home"] .premium-site-header .site-brand {
  color: var(--home-text);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  text-decoration: none;
}

body[data-page="home"] .premium-site-header nav ul {
  justify-content: center;
  gap: clamp(0.6rem, 1.4vw, 1.6rem);
}

body[data-page="home"] .premium-site-header nav a {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #24374d;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: none;
}

body[data-page="home"] .premium-site-header nav a:hover,
body[data-page="home"] .premium-site-header nav a:focus-visible,
body[data-page="home"] .premium-site-header nav a[aria-current="page"] {
  color: var(--home-green);
  background: transparent;
  box-shadow: none;
  transform: none;
}

body[data-page="home"] .header-actions {
  gap: 1rem;
}

body[data-page="home"] .premium-site-header .language-switcher.language-switcher-enhanced {
  min-width: 8.25rem;
}

body[data-page="home"] .premium-site-header .language-switcher-trigger {
  min-height: 2.65rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #24374d;
  padding: 0.25rem;
}

body[data-page="home"] .premium-site-header .language-switcher-code {
  border-color: rgba(191, 208, 218, 0.78);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(8, 25, 34, 0.055);
}

body[data-page="home"] .premium-site-header .language-switcher-flag {
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
}

body[data-page="home"] .premium-site-header .language-switcher-text {
  font-size: 0.98rem;
  font-weight: 650;
}

body[data-page="home"] .premium-site-header .language-switcher-menu {
  border-color: rgba(11, 28, 48, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 46px rgba(11, 28, 48, 0.12);
}

body[data-page="home"] .header-cta {
  min-height: 2.8rem;
  padding: 0 1.18rem;
  border-color: var(--home-green-bright);
  border-radius: 0.75rem;
  background: var(--home-green-bright);
  color: #06210f;
  font-size: 0.98rem;
  font-weight: 650;
  box-shadow: 0 12px 22px rgba(46, 204, 113, 0.18);
}

body[data-page="home"] .header-cta:hover,
body[data-page="home"] .header-cta:focus-visible {
  border-color: var(--home-green);
  background: var(--home-green);
  color: #ffffff;
  transform: translateY(-1px);
}

body[data-page="home"] .hero-home {
  width: 100%;
  min-height: clamp(43rem, 74vh, 61rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7.5rem);
  padding:
    clamp(7rem, 15vh, 12rem)
    clamp(1.25rem, 5vw, 2.5rem)
    clamp(6rem, 10vh, 8rem);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at 86% 35%, rgba(46, 204, 113, 0.18), rgba(46, 204, 113, 0) 34rem),
    radial-gradient(circle at 24% 70%, rgba(0, 109, 55, 0.08), rgba(0, 109, 55, 0) 30rem),
    linear-gradient(120deg, #f8f9ff 0%, #f5f9ff 46%, #eaf8f1 100%);
}

body[data-page="home"] .hero-home::before {
  display: none;
}

body[data-page="home"] .hero-copy {
  display: grid;
  gap: 1.5rem;
  max-width: 43rem;
  padding: 0;
}

body[data-page="home"] .hero-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(108, 123, 109, 0.32);
  border-radius: 999px;
  background: rgba(229, 244, 239, 0.75);
  color: #10231f;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

body[data-page="home"] .hero-eyebrow::before {
  width: 0.58rem;
  height: 0.58rem;
  background: var(--home-green-bright);
  box-shadow: none;
}

body[data-page="home"] .hero-home h1 {
  max-width: 12ch;
  color: var(--home-text);
  font-size: clamp(3.8rem, 6.6vw, 5.9rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

body[data-page="home"] .hero-subtitle {
  max-width: 41rem;
  color: rgba(11, 28, 48, 0.68);
  font-size: clamp(1.1rem, 1.5vw, 1.42rem);
  line-height: 1.55;
}

body[data-page="home"] .hero-actions {
  gap: 1.25rem;
  margin-top: 0.4rem;
}

body[data-page="home"] .btn,
body[data-page="home"] button[type="submit"] {
  border-color: var(--home-green-bright);
  background: var(--home-green-bright);
  color: #06210f;
  box-shadow: 0 12px 24px rgba(46, 204, 113, 0.2);
}

body[data-page="home"] .btn:hover,
body[data-page="home"] button[type="submit"]:hover {
  border-color: var(--home-green);
  background: var(--home-green);
  color: #ffffff;
}

body[data-page="home"] .btn-secondary,
body[data-page="home"] button[type="reset"] {
  border-color: rgba(11, 28, 48, 0.56);
  background: rgba(255, 255, 255, 0.42);
  color: var(--home-text);
}

body[data-page="home"] .btn-secondary:hover,
body[data-page="home"] button[type="reset"]:hover {
  border-color: var(--home-green);
  background: var(--home-green-soft);
  color: var(--home-green);
}

body[data-page="home"] .hero-actions .btn,
body[data-page="home"] .hero-actions .btn-secondary {
  min-height: 4.55rem;
  padding: 0 1.9rem;
  border-radius: 0.75rem;
  font-size: 1.12rem;
  font-weight: 650;
}

body[data-page="home"] .hero-actions .btn-secondary::after {
  content: "->";
  margin-left: 0.75rem;
  font-weight: 800;
}

body[data-page="home"] .hero-dashboard-card {
  justify-self: center;
  width: min(100%, 40rem);
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.45rem, 2.8vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  box-shadow: var(--home-shadow-lg);
}

body[data-page="home"] .hero-dashboard-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body[data-page="home"] .hero-dashboard-card h2 {
  color: var(--home-text);
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

body[data-page="home"] .hero-dashboard-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(45deg, transparent 42%, var(--home-green) 43% 57%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--home-green) 43% 57%, transparent 58%);
  box-shadow: none;
  transform: rotate(12deg);
}

body[data-page="home"] .hero-dashboard-primary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.35rem;
  padding: 1.25rem;
  border: 1px solid var(--home-border);
  border-radius: 0.65rem;
  background: rgba(248, 249, 255, 0.7);
}

body[data-page="home"] .hero-dashboard-ring {
  position: relative;
  width: 4.75rem;
  height: 4.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.18), rgba(229, 238, 255, 0.86));
  color: var(--home-text);
  font-size: 0.94rem;
  font-weight: 800;
}

body[data-page="home"] .hero-dashboard-ring::before {
  content: "";
  position: absolute;
  inset: 0.38rem;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.92);
}

body[data-page="home"] .hero-dashboard-ring span {
  position: relative;
  z-index: 1;
  display: block;
  width: 2.05rem;
  height: 2.05rem;
  border: 0;
  font-size: 0;
}

body[data-page="home"] .hero-dashboard-ring span::before,
body[data-page="home"] .hero-dashboard-ring span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.55rem;
  height: 0.24rem;
  border-radius: 999px;
  background: var(--home-green-dark);
  box-shadow:
    -0.44rem 0 0 var(--home-green-dark),
    0.44rem 0 0 var(--home-green-dark);
}

body[data-page="home"] .hero-dashboard-ring span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

body[data-page="home"] .hero-dashboard-ring span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

body[data-page="home"] .hero-dashboard-primary h3,
body[data-page="home"] .hero-dashboard-list span {
  color: var(--home-text);
  font-weight: 750;
  letter-spacing: -0.02em;
}

body[data-page="home"] .hero-dashboard-card p,
body[data-page="home"] .hero-dashboard-card small {
  color: rgba(11, 28, 48, 0.68);
}

body[data-page="home"] .hero-dashboard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

body[data-page="home"] .hero-dashboard-list li {
  min-height: 6rem;
  display: grid;
  align-content: end;
  gap: 0.35rem;
  padding: 0.95rem;
  border: 1px solid var(--home-border);
  border-radius: 0.65rem;
  background: rgba(248, 249, 255, 0.66);
}

body[data-page="home"] .home-trust-badges {
  width: 100%;
  margin: 0;
  padding: 1.6rem clamp(1rem, 4vw, 2.5rem);
  border-width: 1px 0;
  border-style: solid;
  border-color: var(--home-border);
  border-radius: 0;
  background: rgba(248, 249, 255, 0.86);
  box-shadow: none;
}

body[data-page="home"] .home-trust-badges ul {
  width: min(76rem, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4.6rem);
}

body[data-page="home"] .home-trust-badges li {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(11, 28, 48, 0.72);
  font-size: 1.02rem;
}

body[data-page="home"] .home-trust-badges li span {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-grid;
  place-items: center;
  background: var(--home-green);
  box-shadow: none;
}

body[data-page="home"] .home-trust-badges li span::before {
  content: "";
  width: 0.45rem;
  height: 0.75rem;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg) translate(-1px, -1px);
}

body[data-page="home"] .page-home > .section-block,
body[data-page="home"] .page-home > .page-intro {
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto;
}

body[data-page="home"] .page-home > .section-block {
  margin-top: clamp(2rem, 5vw, 4rem);
}

body[data-page="home"] .page-home > .page-intro {
  margin-top: clamp(2rem, 5vw, 4rem);
}

body[data-page="home"] .discovery-panel-featured {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(11, 28, 48, 0.08);
  border-radius: 1.35rem;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(46, 204, 113, 0.16), rgba(46, 204, 113, 0) 24rem),
    rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--home-shadow-md);
}

body[data-page="home"] .section-head h2,
body[data-page="home"] .page-intro h2 {
  color: var(--home-text);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 850;
  letter-spacing: -0.055em;
}

body[data-page="home"] .section-intro,
body[data-page="home"] .discovery-helper,
body[data-page="home"] .discovery-fieldset-copy,
body[data-page="home"] .discovery-note,
body[data-page="home"] .page-intro p,
body[data-page="home"] .panel-card p,
body[data-page="home"] .utility-list li {
  color: rgba(11, 28, 48, 0.66);
}

body[data-page="home"] .page-meta {
  border: 1px solid rgba(108, 123, 109, 0.28);
  background: rgba(229, 244, 239, 0.82);
  color: var(--home-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page="home"] .discovery-form,
body[data-page="home"] .discovery-fieldset,
body[data-page="home"] .discovery-results-panel,
body[data-page="home"] .panel-card,
body[data-page="home"] .page-intro {
  border-color: rgba(11, 28, 48, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--home-shadow-sm);
}

body[data-page="home"] .discovery-form,
body[data-page="home"] .discovery-results-panel {
  border-radius: 1rem;
}

body[data-page="home"] .discovery-fieldset,
body[data-page="home"] .panel-card {
  border-radius: 0.9rem;
}

body[data-page="home"] select,
body[data-page="home"] input[type="search"] {
  border-color: rgba(108, 123, 109, 0.3);
  background: rgba(255, 255, 255, 0.96);
}

body[data-page="home"] .discovery-results-feed {
  max-height: min(42rem, 72vh);
  padding-right: 0.3rem;
}

body[data-page="home"] .workout-card {
  border-color: rgba(11, 28, 48, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(11, 28, 48, 0.05);
}

body[data-page="home"] .home-free-note {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 0;
  background: var(--home-surface-strong);
  box-shadow: none;
}

body[data-page="home"] .home-free-note .page-meta {
  background: rgba(255, 255, 255, 0.55);
}

body[data-page="home"] .home-search-grid .panel-card,
body[data-page="home"] .home-faq-grid .panel-card {
  min-height: 100%;
}

body[data-page="home"] .page-home > .page-intro:last-of-type {
  width: min(52rem, calc(100% - 2rem));
  text-align: center;
  justify-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: clamp(2.5rem, 8vw, 5.5rem) 0;
}

body[data-page="home"] .page-home > .page-intro:last-of-type h2 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 900;
  line-height: 1.04;
}

body[data-page="home"] .home-footer {
  margin-top: 0;
  border-top: 1px solid rgba(11, 28, 48, 0.06);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: none;
}

body[data-page="home"] .home-footer-inner {
  width: min(96rem, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(15rem, auto);
  align-items: center;
  gap: 1.5rem;
  padding: 3.25rem clamp(1rem, 3vw, 2.5rem);
}

body[data-page="home"] .home-footer-brand {
  color: var(--home-text);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

body[data-page="home"] .home-footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

body[data-page="home"] .home-footer-nav a,
body[data-page="home"] #footer-disclaimer {
  color: rgba(36, 55, 77, 0.72);
  font-size: 0.95rem;
}

body[data-page="home"] .home-footer-nav a:hover,
body[data-page="home"] .home-footer-nav a:focus-visible {
  color: var(--home-green);
  text-decoration: none;
}

body[data-page="home"] #footer-disclaimer {
  max-width: 28rem;
  text-align: right;
}

body[data-page="home"] .cc-floating-trigger {
  z-index: 95;
}

.mobile-bottom-nav {
  display: none;
}

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1120px) {
  body[data-page="home"] .premium-site-header .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body[data-page="home"] .premium-site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body[data-page="home"] .premium-site-header nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  body[data-page="home"] .premium-site-header nav a {
    white-space: nowrap;
  }

  body[data-page="home"] .page-home {
    padding-top: 8.6rem;
  }

  body[data-page="home"] .hero-home {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2.5rem;
  }

  body[data-page="home"] .hero-copy {
    max-width: 48rem;
  }
}

@media (max-width: 719px) {
  body[data-page="home"] {
    padding-bottom: 5.5rem;
    background: #f7f8ff;
  }

  body[data-page="home"] .page-home {
    padding-top: 4rem;
  }

  body[data-page="home"] .premium-site-header .header-inner {
    position: relative;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem;
  }

  body[data-page="home"] .mobile-menu-toggle {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-grid;
    place-items: center;
    width: 2.3rem;
    min-height: 2.3rem;
    padding: 0;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    box-shadow: none;
    color: #526070;
  }

  body[data-page="home"] .mobile-menu-toggle:hover,
  body[data-page="home"] .mobile-menu-toggle:focus-visible {
    background: rgba(229, 244, 239, 0.75);
    color: var(--home-green);
  }

  body[data-page="home"] .mobile-menu-toggle span,
  body[data-page="home"] .mobile-menu-toggle span::before,
  body[data-page="home"] .mobile-menu-toggle span::after {
    width: 1rem;
    height: 1.5px;
    display: block;
    border-radius: 999px;
    background: currentColor;
  }

  body[data-page="home"] .mobile-menu-toggle span {
    position: relative;
  }

  body[data-page="home"] .mobile-menu-toggle span::before,
  body[data-page="home"] .mobile-menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  body[data-page="home"] .mobile-menu-toggle span::before {
    top: -0.34rem;
  }

  body[data-page="home"] .mobile-menu-toggle span::after {
    top: 0.34rem;
  }

  body[data-page="home"] .premium-site-header .site-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.92rem;
    letter-spacing: -0.04em;
  }

  body[data-page="home"] .premium-site-header nav {
    display: none;
  }

  body[data-page="home"] .premium-site-header nav.is-open {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: calc(100% + 0.45rem);
    display: block;
    padding: 0.55rem;
    border: 1px solid rgba(11, 28, 48, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 46px rgba(11, 28, 48, 0.12);
  }

  body[data-page="home"] .premium-site-header nav.is-open ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    overflow: visible;
    padding: 0;
  }

  body[data-page="home"] .premium-site-header nav.is-open a {
    min-height: 2.65rem;
    justify-content: center;
    padding: 0 0.65rem;
    border-radius: 0.75rem;
    background: rgba(248, 249, 255, 0.84);
    font-size: 0.88rem;
  }

  body[data-page="home"] .header-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  body[data-page="home"] .header-cta {
    display: none;
  }

  body[data-page="home"] .premium-site-header .language-switcher.language-switcher-enhanced {
    min-width: auto;
  }

  body[data-page="home"] .premium-site-header .language-switcher-trigger {
    width: 3.25rem;
    min-height: 2.25rem;
    padding: 0;
  }

  body[data-page="home"] .premium-site-header .language-switcher-code {
    width: 1.95rem;
    min-width: 1.95rem;
    height: 1.95rem;
    padding: 0;
    font-size: 0.7rem;
  }

  body[data-page="home"] .premium-site-header .language-switcher-text {
    display: none;
  }

  body[data-page="home"] .premium-site-header .language-switcher-chevron {
    width: 0.5rem;
    height: 0.5rem;
  }

  body[data-page="home"] .hero-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.8rem 0.82rem 1.6rem;
    background: transparent;
    text-align: center;
  }

  body[data-page="home"] .hero-copy {
    display: contents;
  }

  body[data-page="home"] .hero-eyebrow {
    order: 1;
    margin-inline: auto;
    padding: 0.34rem 0.62rem;
    font-size: 0.72rem;
  }

  body[data-page="home"] .hero-home h1 {
    order: 2;
    max-width: 10.8ch;
    margin-inline: auto;
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
  }

  body[data-page="home"] .hero-subtitle {
    order: 3;
    max-width: 23rem;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  body[data-page="home"] .hero-dashboard-card {
    order: 4;
    width: min(100%, 23rem);
    aspect-ratio: 4 / 3;
    align-content: stretch;
    gap: 0.6rem;
    margin-top: 0.35rem;
    padding: 0.72rem;
    border-color: rgba(255, 255, 255, 0.7);
    border-radius: 0.75rem;
    background:
      radial-gradient(circle at 100% 0%, rgba(46, 204, 113, 0.38), rgba(46, 204, 113, 0) 8rem),
      linear-gradient(145deg, #dce9ff 0%, #cbdcf7 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  }

  body[data-page="home"] .hero-dashboard-card h2,
  body[data-page="home"] .hero-dashboard-card > p,
  body[data-page="home"] .hero-dashboard-mark {
    display: none;
  }

  body[data-page="home"] .hero-dashboard-primary {
    height: 34%;
    gap: 0.75rem;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(10px);
  }

  body[data-page="home"] .hero-dashboard-ring {
    width: 3rem;
    height: 3rem;
    font-size: 0.64rem;
  }

  body[data-page="home"] .hero-dashboard-primary h3 {
    font-size: 0.9rem;
  }

  body[data-page="home"] .hero-dashboard-primary p {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  body[data-page="home"] .hero-dashboard-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    height: 66%;
  }

  body[data-page="home"] .hero-dashboard-list li {
    min-height: 0;
    padding: 0.6rem;
    align-content: center;
    background: rgba(255, 255, 255, 0.72);
  }

  body[data-page="home"] .hero-dashboard-list span {
    font-size: 0.78rem;
  }

  body[data-page="home"] .hero-dashboard-list small {
    display: none;
  }

  body[data-page="home"] .hero-actions {
    order: 5;
    width: min(100%, 20rem);
    margin-top: 0.15rem;
  }

  body[data-page="home"] .hero-actions .btn {
    width: 100%;
    min-height: 3.1rem;
    border-radius: 0.45rem;
    font-size: 0.95rem;
  }

  body[data-page="home"] .hero-actions .btn-secondary {
    display: none;
  }

  body[data-page="home"] .home-trust-badges {
    padding: 0.3rem 0.8rem 2.2rem;
    border: 0;
    background: transparent;
  }

  body[data-page="home"] .home-trust-badges ul {
    gap: 0.45rem;
  }

  body[data-page="home"] .home-trust-badges li {
    flex: 0 1 auto;
    gap: 0.3rem;
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    background: var(--home-surface-soft);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  body[data-page="home"] .home-trust-badges li span {
    width: 0.72rem;
    height: 0.72rem;
  }

  body[data-page="home"] .home-trust-badges li span::before {
    width: 0.25rem;
    height: 0.42rem;
    border-width: 1.5px;
  }

  body[data-page="home"] .page-home > .section-block,
  body[data-page="home"] .page-home > .page-intro {
    width: min(100% - 1.5rem, 24rem);
    margin-top: 2.2rem;
  }

  body[data-page="home"] .discovery-panel-featured,
  body[data-page="home"] .section-block,
  body[data-page="home"] .page-intro {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  body[data-page="home"] .section-head h2,
  body[data-page="home"] .page-intro h2 {
    font-size: 1.65rem;
  }

  body[data-page="home"] .section-head {
    align-items: flex-start;
  }

  body[data-page="home"] .section-cta {
    font-size: 0.9rem;
  }

  body[data-page="home"] .cards-grid {
    gap: 0.4rem;
  }

  body[data-page="home"] .panel-card {
    padding: 1rem;
    border-radius: 0.55rem;
    box-shadow: none;
  }

  body[data-page="home"] .home-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .home-search-grid .panel-card:first-child {
    grid-column: 1 / -1;
  }

  body[data-page="home"] .home-free-note {
    background: #cfe1fb;
  }

  body[data-page="home"] .page-home > .page-intro:last-of-type {
    width: min(100% - 1.5rem, 24rem);
    padding: 2.6rem 0.4rem 2.2rem;
  }

  body[data-page="home"] .page-home > .page-intro:last-of-type h2 {
    font-size: clamp(2.4rem, 11vw, 3.1rem);
  }

  body[data-page="home"] .page-intro-actions {
    justify-content: center;
  }

  body[data-page="home"] .page-intro-actions .btn,
  body[data-page="home"] .page-intro-actions .btn-secondary {
    width: min(100%, 20rem);
    border-radius: 0.45rem;
  }

  body[data-page="home"] .home-footer {
    margin-bottom: 5.4rem;
    background: #ffffff;
  }

  body[data-page="home"] .home-footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
    padding: 3rem 1rem;
    text-align: center;
  }

  body[data-page="home"] .home-footer-nav {
    gap: 0.9rem;
  }

  body[data-page="home"] .home-footer-nav a {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  body[data-page="home"] #footer-disclaimer {
    max-width: 20rem;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    min-height: 5rem;
    padding: 0.35rem 0.75rem max(0.35rem, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(11, 28, 48, 0.08);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.04);
  }

  .mobile-bottom-nav a {
    min-width: 0;
    min-height: 3.8rem;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.22rem;
    border-radius: 1rem;
    color: #8793a0;
    font-size: 0.64rem;
    font-weight: 650;
    text-decoration: none;
  }

  .mobile-bottom-nav a[aria-current="page"] {
    color: var(--home-green-bright);
    background: rgba(46, 204, 113, 0.08);
  }

  .mobile-bottom-icon {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
  }

  .mobile-bottom-icon::before,
  .mobile-bottom-icon::after {
    content: "";
    position: absolute;
    border-color: currentColor;
  }

  .mobile-bottom-icon-home::before {
    inset: 0.42rem 0.18rem 0.12rem;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 0.18rem 0.18rem;
  }

  .mobile-bottom-icon-home::after {
    left: 0.16rem;
    right: 0.16rem;
    top: 0.12rem;
    height: 0.72rem;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .mobile-bottom-icon-workouts::before {
    inset: 0.14rem;
    border: 2px solid currentColor;
    border-radius: 0.2rem;
  }

  .mobile-bottom-icon-workouts::after {
    left: 0.38rem;
    right: 0.38rem;
    top: 0.38rem;
    height: 0.42rem;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .mobile-bottom-icon-exercises::before {
    left: 0.12rem;
    right: 0.12rem;
    top: 0.5rem;
    border-top: 2px solid currentColor;
  }

  .mobile-bottom-icon-exercises::after {
    left: 0.36rem;
    right: 0.36rem;
    top: 0.28rem;
    height: 0.68rem;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .mobile-bottom-icon-categories::before {
    inset: 0.16rem;
    background:
      linear-gradient(currentColor 0 0) 0 0 / 0.44rem 0.44rem no-repeat,
      linear-gradient(currentColor 0 0) 100% 0 / 0.44rem 0.44rem no-repeat,
      linear-gradient(currentColor 0 0) 0 100% / 0.44rem 0.44rem no-repeat,
      linear-gradient(currentColor 0 0) 100% 100% / 0.44rem 0.44rem no-repeat;
  }

  body[data-page="home"] .cc-floating-trigger {
    bottom: 5.65rem;
  }
}

@media (max-width: 390px) {
  body[data-page="home"] .hero-home h1 {
    font-size: 2.15rem;
  }

  body[data-page="home"] .home-search-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .mobile-bottom-nav a {
    font-size: 0.58rem;
  }
}

html[dir="rtl"] body[data-page="home"] .hero-actions .btn-secondary::after {
  margin-right: 0.75rem;
  margin-left: 0;
  transform: scaleX(-1);
}

html[dir="rtl"] body[data-page="home"] #footer-disclaimer {
  text-align: left;
}

@media (max-width: 719px) {
  html[dir="rtl"] body[data-page="home"] .mobile-menu-toggle {
    right: 0.9rem;
    left: auto;
  }

  html[dir="rtl"] body[data-page="home"] .header-actions {
    margin-right: auto;
    margin-left: 0;
  }
}

/* Homepage first-section alignment with the approved OlloGym UI DNA. */
body[data-page="home"] {
  --home-surface: #f8f9ff;
  --home-surface-card: rgba(255, 255, 255, 0.72);
  --home-surface-pill: #eff4ff;
  --home-text: #0b1c30;
  --home-muted: #3d4a3e;
  --home-green: #006d37;
  --home-green-bright: #2ecc71;
  --home-border: rgba(11, 28, 48, 0.07);
  --home-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
  --home-shadow-card: 0 24px 58px rgba(11, 28, 48, 0.1);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--home-surface);
}

body[data-page="home"] .premium-site-header {
  min-height: 5rem;
  border-bottom: 1px solid rgba(11, 28, 48, 0.05);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  box-shadow: var(--home-shadow-soft);
}

body[data-page="home"] .premium-site-header .header-inner {
  width: min(96rem, 100%);
  min-height: 5rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

body[data-page="home"] .premium-site-header .site-brand {
  color: var(--home-text);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

body[data-page="home"] .home-nav-mobile-only {
  display: none;
}

body[data-page="home"] .premium-site-header nav a {
  color: #24374d;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body[data-page="home"] .premium-site-header nav a:hover,
body[data-page="home"] .premium-site-header nav a:focus-visible,
body[data-page="home"] .premium-site-header nav a[aria-current="page"] {
  color: var(--home-green);
}

body[data-page="home"] .header-cta,
body[data-page="home"] .hero-actions .btn {
  border-color: var(--home-green-bright);
  background: var(--home-green-bright);
  color: #06210f;
  box-shadow: 0 12px 24px rgba(46, 204, 113, 0.2);
}

body[data-page="home"] .header-cta:hover,
body[data-page="home"] .header-cta:focus-visible,
body[data-page="home"] .hero-actions .btn:hover,
body[data-page="home"] .hero-actions .btn:focus-visible {
  border-color: var(--home-green);
  background: var(--home-green);
  color: #ffffff;
}

body[data-page="home"] .hero-home {
  min-height: clamp(42rem, 74vh, 61rem);
  gap: clamp(2rem, 7vw, 7.5rem);
  padding:
    clamp(7rem, 15vh, 12rem)
    clamp(1.25rem, 5vw, 2.5rem)
    clamp(6rem, 10vh, 8rem);
  background:
    radial-gradient(circle at 88% 34%, rgba(46, 204, 113, 0.18), rgba(46, 204, 113, 0) 34rem),
    radial-gradient(circle at 25% 72%, rgba(0, 109, 55, 0.08), rgba(0, 109, 55, 0) 30rem),
    linear-gradient(120deg, #f8f9ff 0%, #f5f9ff 46%, #eaf8f1 100%);
}

body[data-page="home"] .hero-copy {
  gap: 1.5rem;
  max-width: 43rem;
}

body[data-page="home"] .hero-eyebrow {
  border-color: rgba(108, 123, 109, 0.32);
  background: rgba(229, 244, 239, 0.75);
  color: #10231f;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body[data-page="home"] .hero-home h1 {
  max-width: 12ch;
  color: var(--home-text);
  font-size: clamp(3.8rem, 6.6vw, 5.9rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

body[data-page="home"] .hero-subtitle {
  max-width: 41rem;
  color: rgba(11, 28, 48, 0.68);
  font-size: clamp(1.1rem, 1.5vw, 1.42rem);
  line-height: 1.55;
}

body[data-page="home"] .hero-actions .btn,
body[data-page="home"] .hero-actions .btn-secondary {
  min-height: 4.55rem;
  padding: 0 1.9rem;
  border-radius: 0.75rem;
  font-size: 1.12rem;
  font-weight: 650;
}

body[data-page="home"] .hero-dashboard-card {
  width: min(100%, 40rem);
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 1rem;
  background: var(--home-surface-card);
  backdrop-filter: blur(24px);
  box-shadow: var(--home-shadow-card);
}

body[data-page="home"] .hero-dashboard-primary,
body[data-page="home"] .hero-dashboard-list li {
  border-color: rgba(108, 123, 109, 0.28);
  border-radius: 0.65rem;
  background: rgba(248, 249, 255, 0.7);
}

body[data-page="home"] .hero-dashboard-ring {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.18), rgba(229, 238, 255, 0.86));
  color: var(--home-text);
}

body[data-page="home"] .home-trust-badges {
  padding: 1.6rem clamp(1rem, 4vw, 2.5rem);
  border-color: rgba(108, 123, 109, 0.24);
  background: rgba(248, 249, 255, 0.86);
}

body[data-page="home"] .home-trust-badges ul {
  width: min(76rem, 100%);
  justify-content: center;
  gap: clamp(1rem, 4vw, 4.6rem);
}

body[data-page="home"] .home-trust-badges li {
  color: rgba(11, 28, 48, 0.76);
  font-size: 1.02rem;
}

body[data-page="home"] .home-footer {
  border-top-color: rgba(11, 28, 48, 0.06);
  background: rgba(255, 255, 255, 0.9);
}

body[data-page="home"] .home-footer-inner {
  width: min(96rem, 100%);
  padding: 3.25rem clamp(1rem, 3vw, 2.5rem);
}

@media (max-width: 719px) {
  body[data-page="home"] {
    padding-bottom: 5.5rem;
  }

  body[data-page="home"] .page-home {
    padding-top: 4rem;
  }

  body[data-page="home"] .premium-site-header {
    min-height: 4rem;
  }

  body[data-page="home"] .premium-site-header .header-inner {
    justify-content: flex-start;
    min-height: 4rem;
    padding: 0 0.9rem;
  }

  body[data-page="home"] .premium-site-header .site-brand {
    position: static;
    transform: none;
    margin-right: auto;
    font-size: 1.42rem;
  }

  body[data-page="home"] .header-actions {
    margin-right: 2.8rem;
    margin-left: auto;
  }

  body[data-page="home"] .mobile-menu-toggle {
    left: auto;
    right: 0.72rem;
    z-index: 130;
    width: 2.55rem;
    min-height: 2.55rem;
    border-radius: 999px;
    background: #e5eeff;
    color: #304050;
  }

  body[data-page="home"] .premium-site-header nav {
    display: none;
  }

  body[data-page="home"] .premium-site-header nav.is-open {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    left: auto;
    z-index: 120;
    width: min(21rem, calc(100vw - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    display: block;
    overflow: auto;
    padding: 4.75rem 1rem 1rem;
    border: 1px solid rgba(11, 28, 48, 0.08);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    box-shadow: 0 24px 64px rgba(11, 28, 48, 0.18);
  }

  body[data-page="home"] .premium-site-header nav.is-open ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  body[data-page="home"] .premium-site-header nav.is-open a {
    min-height: 3rem;
    justify-content: flex-start;
    padding: 0 1rem;
    border-radius: 0.85rem;
    background: rgba(248, 249, 255, 0.82);
    font-size: 0.98rem;
  }

  body[data-page="home"] .home-nav-mobile-only {
    display: list-item;
  }

  body[data-page="home"] .premium-site-header .language-switcher-menu {
    position: fixed;
    top: 4.55rem;
    right: 0.75rem;
    left: auto;
    width: min(20rem, calc(100vw - 1.5rem));
    max-height: calc(100dvh - 5.5rem);
  }

  body[data-page="home"] .hero-home {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 4rem 1.55rem 2rem;
    text-align: center;
  }

  body[data-page="home"] .hero-copy {
    display: contents;
  }

  body[data-page="home"] .hero-eyebrow {
    display: none;
  }

  body[data-page="home"] .hero-home h1 {
    order: 1;
    max-width: 9.8ch;
    margin-inline: auto;
    font-size: clamp(3.25rem, 15vw, 4.85rem);
    line-height: 1.02;
    letter-spacing: -0.075em;
  }

  body[data-page="home"] .hero-subtitle {
    order: 2;
    max-width: 22rem;
    margin-inline: auto;
    color: rgba(11, 28, 48, 0.78);
    font-size: clamp(1.18rem, 5vw, 1.55rem);
  }

  body[data-page="home"] .hero-actions {
    order: 3;
    width: min(100%, 22rem);
    margin: 0.55rem auto 0;
  }

  body[data-page="home"] .hero-actions .btn {
    min-height: 4.5rem;
    border-color: var(--home-text);
    border-radius: 1rem;
    background: var(--home-text);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(11, 28, 48, 0.16);
  }

  body[data-page="home"] .hero-actions .btn::after {
    content: "→";
    margin-left: 0.75rem;
    font-size: 1.4rem;
  }

  body[data-page="home"] .hero-actions .btn-secondary {
    display: none;
  }

  body[data-page="home"] .hero-dashboard-card {
    order: 4;
    width: min(100%, 22rem);
    margin-top: 1.15rem;
    padding: 1.25rem;
    text-align: left;
  }

  body[data-page="home"] .hero-dashboard-card > p {
    display: none;
  }

  body[data-page="home"] .hero-dashboard-card h2 {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body[data-page="home"] .hero-dashboard-primary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body[data-page="home"] .hero-dashboard-ring {
    width: 4.8rem;
    height: 4.8rem;
  }

  body[data-page="home"] .hero-dashboard-list {
    gap: 0.55rem;
  }

  body[data-page="home"] .hero-dashboard-list li {
    min-height: 4.2rem;
  }

  body[data-page="home"] .hero-dashboard-list small {
    display: none;
  }

  body[data-page="home"] .home-trust-badges {
    padding: 0.65rem 1rem 2rem;
    border: 0;
    background: transparent;
  }

  body[data-page="home"] .home-trust-badges ul {
    gap: 0.55rem;
  }

  body[data-page="home"] .home-trust-badges li {
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    background: var(--home-surface-pill);
    color: var(--home-text);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.02em;
  }

  body[data-page="home"] .home-footer {
    margin-bottom: 5.4rem;
  }

  body[data-page="home"] .home-footer-inner {
    padding: 3rem 1rem;
  }
}

@media (max-width: 390px) {
  body[data-page="home"] .hero-home h1 {
    font-size: 3rem;
  }

  body[data-page="home"] .premium-site-header .site-brand {
    font-size: 1.24rem;
  }
}

/* Strict homepage screenshot correction: first section and footer only. */
body[data-page="home"] .premium-site-header {
  z-index: 1205;
  min-height: 4.4rem;
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(11, 28, 48, 0.055);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body[data-page="home"] .premium-site-header .header-inner {
  width: min(96rem, 100%);
  min-height: 4.4rem;
  padding: 0 clamp(1.4rem, 3vw, 2.6rem);
}

body[data-page="home"] .premium-site-header .site-brand,
body[data-page="home"] .home-footer-brand {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

body[data-page="home"] .premium-site-header nav ul {
  gap: clamp(0.8rem, 2vw, 1.9rem);
}

body[data-page="home"] .premium-site-header nav a {
  color: #24374d;
  font-size: 0.98rem;
  font-weight: 650;
}

body[data-page="home"] .header-cta {
  min-height: 2.75rem;
  padding: 0 1.22rem;
  border-radius: 0.75rem;
  background: #2ecc71;
  color: #06210f;
}

body[data-page="home"] .hero-home {
  min-height: clamp(36rem, 66vh, 52rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.92fr);
  gap: clamp(2.6rem, 8vw, 8rem);
  padding:
    clamp(8rem, 17vh, 15rem)
    clamp(1.4rem, 4vw, 2.6rem)
    clamp(5rem, 8vh, 7rem);
  background:
    radial-gradient(circle at 84% 39%, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0) 25rem),
    radial-gradient(circle at 26% 74%, rgba(0, 109, 55, 0.07), rgba(0, 109, 55, 0) 26rem),
    linear-gradient(118deg, #f8f9ff 0%, #f7f9ff 50%, #e7f8ef 100%);
}

body[data-page="home"] .hero-copy {
  gap: 1.28rem;
  max-width: 43rem;
}

body[data-page="home"] .hero-eyebrow {
  padding: 0.3rem 0.58rem;
  border-color: rgba(108, 123, 109, 0.36);
  background: rgba(229, 244, 239, 0.82);
  color: #53606f;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

body[data-page="home"] .hero-eyebrow::before {
  width: 0.48rem;
  height: 0.48rem;
  background: #2ecc71;
}

body[data-page="home"] .hero-title-composed {
  max-width: 12.5ch;
  color: #0b1c30;
  font-size: clamp(3.05rem, 5.2vw, 4.85rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.07em;
}

body[data-page="home"] .hero-title-highlight {
  display: inline-block;
  padding: 0 0.14em 0.04em;
  border-radius: 0.12em;
  background: rgba(46, 204, 113, 0.22);
}

body[data-page="home"] .hero-title-highlight:empty {
  display: none;
}

.language-switcher select.language-switcher-native.visually-hidden {
  width: 1px !important;
  min-width: 0 !important;
  max-width: 1px !important;
  height: 1px !important;
  pointer-events: none;
}

body[data-page="home"] .hero-subtitle {
  max-width: 40rem;
  color: rgba(11, 28, 48, 0.62);
  font-size: clamp(1.08rem, 1.4vw, 1.32rem);
}

body[data-page="home"] .hero-actions {
  margin-top: 0.85rem;
}

body[data-page="home"] .hero-actions .btn {
  min-height: 3.95rem;
  padding: 0 1.85rem;
  border-radius: 0.62rem;
  background: #2ecc71;
  color: #06210f;
  font-size: 1rem;
}

body[data-page="home"] .hero-dashboard-card {
  width: min(100%, 40rem);
  gap: clamp(1.35rem, 2.6vw, 2rem);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body[data-page="home"] .hero-dashboard-card h2 {
  font-size: clamp(2.25rem, 4vw, 3.2rem);
  font-weight: 850;
}

body[data-page="home"] .hero-dashboard-topline {
  justify-content: flex-start;
  padding-bottom: clamp(1rem, 2vw, 1.55rem);
  border-bottom: 1px solid rgba(11, 28, 48, 0.055);
}

body[data-page="home"] .hero-dashboard-more {
  display: none;
}

body[data-page="home"] .hero-dashboard-mark {
  display: none;
}

body[data-page="home"] .hero-dashboard-primary {
  gap: clamp(1.35rem, 3vw, 2rem);
  padding: clamp(0.65rem, 2vw, 1rem) 0 clamp(1.2rem, 3vw, 2rem);
  border-color: transparent;
  border-radius: 0;
  background: transparent;
}

body[data-page="home"] .hero-dashboard-ring {
  width: clamp(6.2rem, 9vw, 7.6rem);
  height: clamp(6.2rem, 9vw, 7.6rem);
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.42), rgba(215, 244, 231, 0.92));
  color: #0b1c30;
  font-size: 1rem;
  box-shadow:
    inset 0 0 0 0.42rem rgba(46, 204, 113, 0.24),
    0 14px 34px rgba(46, 204, 113, 0.12);
}

body[data-page="home"] .hero-dashboard-primary h3 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 850;
  line-height: 1.08;
}

body[data-page="home"] .hero-dashboard-primary p {
  color: rgba(11, 28, 48, 0.64);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

body[data-page="home"] .hero-dashboard-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 1.8rem);
}

body[data-page="home"] .hero-dashboard-list li {
  min-height: clamp(7.5rem, 13vw, 9.3rem);
  align-content: start;
  gap: 0.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  border-color: rgba(11, 28, 48, 0.06);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.74);
}

body[data-page="home"] .hero-dashboard-list small {
  display: block;
  color: rgba(11, 28, 48, 0.68);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-page="home"] .hero-dashboard-list span {
  color: #0b1c30;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 850;
  line-height: 1.12;
}

body[data-page="home"] .hero-dashboard-list em {
  color: rgba(11, 28, 48, 0.62);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-style: normal;
  font-weight: 500;
}

body[data-page="home"] .hero-dashboard-list li:nth-child(2) .hero-dashboard-focus {
  display: none;
  align-items: center;
  gap: 0.46rem;
  margin-top: 0.25rem;
  color: rgba(11, 28, 48, 0.62);
  font-size: clamp(0.86rem, 1.4vw, 1.05rem);
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body[data-page="home"] .hero-dashboard-list li:nth-child(2) .hero-dashboard-focus::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #2ecc71;
}

body[data-page="home"] .hero-dashboard-accent {
  justify-self: center;
  width: 3.9rem;
  height: 0.36rem;
  margin-top: clamp(1.2rem, 2.5vw, 1.7rem);
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.18);
}

@media (min-width: 720px) {
  body[data-page="home"] .hero-dashboard-list li:nth-child(2) .hero-dashboard-focus {
    display: flex;
  }
}

body[data-page="home"] .home-trust-badges {
  padding: 1.35rem clamp(1.4rem, 4vw, 2.6rem);
  border-color: rgba(108, 123, 109, 0.28);
  background: rgba(248, 249, 255, 0.92);
}

body[data-page="home"] .home-trust-badges ul {
  gap: clamp(2rem, 7vw, 7rem);
}

body[data-page="home"] .home-trust-badges li {
  gap: 0.55rem;
  color: rgba(36, 55, 77, 0.72);
  font-size: 1rem;
  font-weight: 700;
}

body[data-page="home"] .home-footer {
  border-top: 1px solid rgba(108, 123, 109, 0.28);
  background: #ffffff;
  box-shadow: none;
}

body[data-page="home"] .home-footer-inner {
  width: min(96rem, 100%);
  display: grid;
  grid-template-columns: minmax(14rem, 1.1fr) repeat(3, minmax(9rem, 0.6fr));
  align-items: start;
  gap: clamp(2rem, 7vw, 8rem);
  padding: 3.5rem clamp(1.4rem, 3vw, 2.6rem) 4.5rem;
  border-bottom: 1px solid rgba(11, 28, 48, 0.06);
}

body[data-page="home"] .home-footer-brand-block,
body[data-page="home"] .home-footer-column {
  display: grid;
  gap: 0.8rem;
}

body[data-page="home"] .home-footer-brand-block p,
body[data-page="home"] .home-footer-column a {
  color: rgba(64, 82, 103, 0.72);
  font-size: 1rem;
}

body[data-page="home"] .home-footer-column h2 {
  color: #0b1c30;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

body[data-page="home"] .home-footer-column a:hover,
body[data-page="home"] .home-footer-column a:focus-visible {
  color: #006d37;
  text-decoration: none;
}

body[data-page="home"] .home-workout-tool-section {
  position: relative;
  overflow: hidden;
  width: min(78rem, calc(100% - 2rem));
  margin: clamp(2.6rem, 5vw, 4.8rem) auto 0;
  padding: clamp(1rem, 2vw, 1.5rem) 0 0;
}

body[data-page="home"] .home-tool-heading {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  margin: 0 auto clamp(1.8rem, 4vw, 3.2rem);
  text-align: center;
}

body[data-page="home"] .home-tool-eyebrow {
  margin: 0;
  color: #006d37;
  font-size: clamp(0.74rem, 1vw, 0.88rem);
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-page="home"] .home-tool-heading h2 {
  max-width: 15ch;
  margin: 0;
  color: #0b1c30;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

body[data-page="home"] .home-tool-heading p:not(.home-tool-eyebrow) {
  max-width: 44rem;
  margin: 0;
  color: rgba(11, 28, 48, 0.66);
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1.45;
}

body[data-page="home"] .home-workout-tool-form {
  margin: 0;
}

body[data-page="home"] .home-tool-card {
  display: grid;
  grid-template-columns: minmax(21rem, 0.95fr) minmax(25rem, 1.05fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  position: relative;
  padding: clamp(2.2rem, 4vw, 3.8rem);
  border: 1px solid rgba(11, 28, 48, 0.08);
  border-radius: 1.7rem;
  background:
    radial-gradient(circle at 100% 100%, rgba(46, 204, 113, 0.12), rgba(46, 204, 113, 0) 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 255, 0.82));
  box-shadow: 0 28px 70px rgba(8, 25, 34, 0.08);
}

body[data-page="home"] .home-tool-goals,
body[data-page="home"] .home-tool-targets {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body[data-page="home"] .home-tool-goals {
  padding-right: clamp(1.6rem, 4vw, 3rem);
  border-right: 1px solid rgba(11, 28, 48, 0.12);
}

body[data-page="home"] .home-tool-goals legend,
body[data-page="home"] .home-tool-targets legend {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  margin: 0 0 1.45rem;
  color: #0b1c30;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 850;
  letter-spacing: -0.04em;
}

body[data-page="home"] .home-tool-goals legend small,
body[data-page="home"] .home-tool-panel-head p,
body[data-page="home"] .home-tool-more-targets p,
body[data-page="home"] .home-tool-submit p {
  color: rgba(11, 28, 48, 0.62);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

body[data-page="home"] .home-tool-goal-list,
body[data-page="home"] .home-tool-filters {
  display: grid;
  gap: 1rem;
}

body[data-page="home"] .home-tool-choice-input,
body[data-page="home"] .home-tool-chip-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

body[data-page="home"] .home-tool-goal-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.15rem;
  min-height: 4.85rem;
  padding: 1rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  background: rgba(245, 247, 255, 0.92);
  color: rgba(11, 28, 48, 0.72);
  cursor: pointer;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 650;
  line-height: 1.15;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

body[data-page="home"] .home-tool-goal-option::after {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-radius: 999px;
}

body[data-page="home"] .home-tool-choice-input:checked + .home-tool-goal-option {
  border-color: #2ecc71;
  background: rgba(220, 237, 232, 0.9);
  color: #0b1c30;
}

body[data-page="home"] .home-tool-choice-input:checked + .home-tool-goal-option::after {
  border-color: #00a957;
  background:
    radial-gradient(circle, #00a957 0 40%, transparent 45%),
    #f8fff9;
}

body[data-page="home"] .home-tool-choice-input:focus-visible + .home-tool-goal-option,
body[data-page="home"] .home-tool-chip-input:focus-visible + .home-tool-chip,
body[data-page="home"] .home-tool-select-field select:focus-visible,
body[data-page="home"] .home-tool-submit-button:focus-visible {
  outline: 3px solid rgba(46, 204, 113, 0.45);
  outline-offset: 3px;
}

body[data-page="home"] .home-tool-panel-head {
  display: grid;
  gap: 0.25rem;
}

body[data-page="home"] .home-tool-panel-head h3,
body[data-page="home"] .home-tool-preview-note h3 {
  margin: 0;
  color: #0b1c30;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 850;
  letter-spacing: -0.04em;
}

body[data-page="home"] .home-tool-panel-head p,
body[data-page="home"] .home-tool-more-targets p,
body[data-page="home"] .home-tool-submit p {
  margin: 0;
}

body[data-page="home"] .home-tool-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}

body[data-page="home"] .home-tool-select-field {
  display: grid;
  gap: 0.45rem;
  color: rgba(11, 28, 48, 0.72);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page="home"] #home-duration-help {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

body[data-page="home"] .home-tool-select-field select {
  width: 100%;
  min-height: 3rem;
  padding: 0 2.6rem 0 0.9rem;
  border: 1px solid rgba(11, 28, 48, 0.12);
  border-radius: 0.58rem;
  background: #f8f9ff;
  color: #0b1c30;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page="home"] .home-tool-targets {
  display: grid;
  gap: 0.85rem;
  margin-top: clamp(1.1rem, 2vw, 1.8rem);
}

body[data-page="home"] .home-tool-targets legend {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page="home"] .home-tool-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

body[data-page="home"] .home-tool-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(11, 28, 48, 0.12);
  border-radius: 999px;
  background: rgba(248, 249, 255, 0.92);
  color: rgba(11, 28, 48, 0.72);
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1;
}

body[data-page="home"] .home-tool-chip-input:checked + .home-tool-chip {
  border-color: #2ecc71;
  background: #2ecc71;
  color: #0b1c30;
}

body[data-page="home"] .home-tool-more-targets {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.45rem;
  padding: 1.15rem;
  border: 1px solid rgba(11, 28, 48, 0.08);
  border-radius: 1rem;
  background: rgba(246, 248, 255, 0.92);
}

body[data-page="home"] .home-tool-more-targets summary {
  cursor: pointer;
  color: #006d37;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

body[data-page="home"] .home-tool-target-group {
  display: grid;
  gap: 0.45rem;
}

body[data-page="home"] .home-tool-target-group h4 {
  margin: 0;
  color: rgba(11, 28, 48, 0.74);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body[data-page="home"] .home-tool-chip-row-small {
  gap: 0.45rem;
}

body[data-page="home"] .home-tool-chip-row-small .home-tool-chip {
  min-height: 1.95rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.86rem;
}

body[data-page="home"] .home-tool-preview-note {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(1.2rem, 3vw, 2.2rem);
  padding: 1.25rem;
  border: 1px solid rgba(73, 137, 255, 0.14);
  border-radius: 0.9rem;
  background: rgba(235, 243, 255, 0.78);
}

body[data-page="home"] .home-tool-preview-note h3 {
  font-size: 1rem;
  letter-spacing: 0;
}

body[data-page="home"] .home-tool-preview-note ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page="home"] .home-tool-preview-note li {
  color: rgba(11, 28, 48, 0.68);
  font-size: 1rem;
}

body[data-page="home"] .home-tool-preview-note li::before {
  content: "-";
  margin-right: 0.5rem;
  color: #006d37;
  font-weight: 900;
}

body[data-page="home"] .home-tool-submit {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  margin-top: clamp(0.8rem, 2vw, 1.5rem);
  padding-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid rgba(11, 28, 48, 0.1);
}

body[data-page="home"] .home-tool-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: min(100%, 17rem);
  min-height: 4rem;
  padding: 0 2rem;
  border: 0;
  border-radius: 0.9rem;
  background: #2ecc71;
  color: #0b1c30;
  cursor: pointer;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(46, 204, 113, 0.22);
}

body[data-page="home"] .home-tool-submit-button:disabled {
  background: rgba(220, 229, 236, 0.95);
  color: rgba(11, 28, 48, 0.48);
  cursor: not-allowed;
  box-shadow: none;
}

body[data-page="home"] .home-workout-results-section {
  margin-top: clamp(4rem, 7vw, 6.5rem);
  padding: clamp(3.75rem, 7vw, 5.75rem) clamp(1rem, 4vw, 3rem) clamp(4.5rem, 8vw, 6.75rem);
  scroll-margin-top: clamp(4.8rem, 8vw, 6rem);
  background:
    radial-gradient(circle at 10% 4%, rgba(46, 204, 113, 0.08), transparent 19rem),
    radial-gradient(circle at 88% 48%, rgba(182, 225, 255, 0.2), transparent 22rem),
    linear-gradient(180deg, #fbfcff 0%, #f7f9fc 100%);
}

body[data-page="home"] .home-workout-results-section[hidden] {
  display: none;
}

body[data-page="home"] .home-results-inner {
  width: min(76rem, calc(100vw - clamp(2rem, 6vw, 5rem)));
  margin: 0 auto;
}

body[data-page="home"] .home-results-heading {
  display: grid;
  gap: 0.55rem;
  margin-bottom: clamp(2.6rem, 5vw, 3.9rem);
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-page="home"] .home-results-eyebrow {
  margin: 0;
  color: #2ecc71;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-page="home"] .home-results-heading h2 {
  max-width: 12ch;
  margin: 0;
  color: #071a32;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.95;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-page="home"] .home-results-heading p:not(.home-results-eyebrow) {
  max-width: 44rem;
  margin: 0;
  color: rgba(11, 28, 48, 0.62);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

body[data-page="home"] .home-results-toolbar,
body[data-page="home"] .home-result-primary-card,
body[data-page="home"] .home-result-fit-card,
body[data-page="home"] .home-results-empty,
body[data-page="home"] .home-result-more-card {
  border: 1px solid rgba(11, 28, 48, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(11, 28, 48, 0.08);
}

/* A result selected below the routine returns keyboard focus to its heading. */
body[data-page="home"] #home-result-primary-title {
  scroll-margin-top: 8rem;
}

body[data-page="home"] #home-result-primary-title:focus {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

body[data-page="home"] .home-results-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.55rem);
  margin-bottom: clamp(2.25rem, 3.6vw, 2.75rem);
  padding: 1rem 1.25rem;
  border-radius: 1.05rem;
}

body[data-page="home"] .home-results-count {
  margin: 0;
  color: #0b1c30;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 850;
}

body[data-page="home"] .home-results-filter-list,
body[data-page="home"] .home-result-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

body[data-page="home"] .home-results-filter-list {
  padding-left: clamp(0.9rem, 2vw, 1.35rem);
  border-left: 1px solid rgba(73, 137, 255, 0.18);
}

body[data-page="home"] .home-result-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(221, 236, 255, 0.9);
  color: rgba(11, 28, 48, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

body[data-page="home"] .home-results-filter-list .home-result-tag:first-child {
  background: rgba(214, 247, 228, 0.95);
  color: #00783d;
}

body[data-page="home"] .home-results-toolbar-actions,
body[data-page="home"] .home-results-pager {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

body[data-page="home"] .home-results-toolbar-actions {
  padding-left: clamp(0.9rem, 2vw, 1.35rem);
  border-left: 1px solid rgba(73, 137, 255, 0.18);
}

body[data-page="home"] .home-results-pager {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(73, 137, 255, 0.16);
  border-radius: 999px;
  background: rgba(235, 243, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

body[data-page="home"] .home-results-icon-button,
body[data-page="home"] .home-results-text-button,
body[data-page="home"] .home-results-clear {
  border: 0;
  background: transparent;
  color: #0b1c30;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

body[data-page="home"] .home-results-icon-button {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
}

body[data-page="home"] .home-results-icon-button:hover,
body[data-page="home"] .home-results-icon-button:focus-visible {
  background: rgba(46, 204, 113, 0.14);
}

body[data-page="home"] .home-results-counter {
  color: #0b1c30;
  font-weight: 900;
}

body[data-page="home"] .home-results-text-button {
  color: #00783d;
}

body[data-page="home"] .home-results-text-button::before {
  content: "↝";
  margin-right: 0.45rem;
  font-weight: 900;
}

body[data-page="home"] .home-results-clear {
  color: rgba(11, 28, 48, 0.58);
}

body[data-page="home"] .home-results-content {
  display: grid;
  grid-template-columns: minmax(0, 2.08fr) minmax(18rem, 1fr);
  gap: clamp(1.45rem, 3vw, 1.8rem);
}

body[data-page="home"] .home-results-content[hidden],
body[data-page="home"] .home-results-empty[hidden],
body[data-page="home"] .home-results-more[hidden] {
  display: none;
}

body[data-page="home"] .home-result-primary-card,
body[data-page="home"] .home-result-fit-card,
body[data-page="home"] .home-results-empty {
  border-radius: 1.7rem;
  padding: clamp(1.55rem, 2.5vw, 2.55rem);
}

body[data-page="home"] .home-result-primary-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.2rem;
  margin-bottom: clamp(1.35rem, 2.6vw, 1.8rem);
}

body[data-page="home"] .home-result-primary-head h3,
body[data-page="home"] .home-result-fit-card h3,
body[data-page="home"] .home-results-empty h3,
body[data-page="home"] .home-results-more h3 {
  margin: 0;
  color: #0b1c30;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

body[data-page="home"] .home-result-primary-head h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
}

body[data-page="home"] .home-result-details-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.45rem;
  border: 0;
  border-radius: 0.55rem;
  background: #00783d;
  color: #fff;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

body[data-page="home"] .home-result-details-link::after {
  content: "→";
  margin-left: 0.75rem;
  font-size: 1.25em;
  line-height: 1;
}

body[data-page="home"] .home-result-details-link[aria-expanded="true"]::after {
  content: "⌃";
}

body[data-page="home"] .home-result-plan {
  padding: clamp(1rem, 1.8vw, 1.35rem);
  border: 1px solid rgba(73, 137, 255, 0.24);
  border-radius: 0.85rem;
  background: rgba(250, 252, 255, 0.92);
}

body[data-page="home"] .home-result-plan h4,
body[data-page="home"] .home-result-fit-group h4 {
  margin: 0 0 0.8rem;
  color: rgba(11, 28, 48, 0.72);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page="home"] .home-result-plan h4 {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(73, 137, 255, 0.18);
}

body[data-page="home"] .home-result-plan ul,
body[data-page="home"] .home-result-key-details {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page="home"] .home-result-plan li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0.85rem;
  border-radius: 0.45rem;
  color: #0b1c30;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
}

body[data-page="home"] .home-result-plan li:nth-child(odd) {
  background: rgba(235, 243, 255, 0.86);
}

body[data-page="home"] .home-result-plan .workout-prescription {
  color: rgba(11, 28, 48, 0.78);
  font-weight: 750;
  white-space: nowrap;
}

body[data-page="home"] .home-result-plan p {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.95rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(73, 137, 255, 0.14);
  color: rgba(11, 28, 48, 0.68);
  font-size: 0.98rem;
  font-style: normal;
  line-height: 1.45;
}

body[data-page="home"] .home-result-plan p[hidden] {
  display: none;
}

body[data-page="home"] .home-result-plan p::before {
  content: "◷";
  color: #00783d;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

body[data-page="home"] .home-result-fit-card {
  display: grid;
  gap: 1.15rem;
  align-self: start;
  min-height: 100%;
}

body[data-page="home"] .home-result-fit-card h3 {
  font-size: clamp(1.65rem, 2.3vw, 2.05rem);
}

body[data-page="home"] .home-result-fit-group {
  display: grid;
  gap: 0.65rem;
}

body[data-page="home"] .home-result-fit-group:not(:last-child) {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(73, 137, 255, 0.18);
}

body[data-page="home"] .home-result-fit-group dl,
body[data-page="home"] .home-result-fit-group ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
}

body[data-page="home"] .home-result-fit-group dl {
  grid-template-columns: auto 1fr;
}

body[data-page="home"] .home-result-fit-group dt,
body[data-page="home"] .home-result-fit-group dd,
body[data-page="home"] .home-result-fit-group li,
body[data-page="home"] .home-result-fit-group p {
  margin: 0;
  color: rgba(11, 28, 48, 0.76);
  font-size: 1rem;
  line-height: 1.45;
}

body[data-page="home"] .home-result-fit-group dt {
  font-weight: 850;
}

body[data-page="home"] .home-result-fit-group dd {
  justify-self: end;
  text-align: right;
  font-weight: 750;
}

body[data-page="home"] .home-result-fit-group li {
  list-style: none;
}

body[data-page="home"] .home-result-fit-group li::before {
  content: "✓";
  margin-right: 0.45rem;
  color: #00783d;
  font-weight: 900;
}

body[data-page="home"] .home-results-empty {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
  color: #0b1c30;
}

body[data-page="home"] .home-results-empty p {
  margin: 0;
  color: rgba(11, 28, 48, 0.64);
}

body[data-page="home"] .home-results-empty .home-results-clear {
  min-height: 2.8rem;
  padding: 0 1.25rem;
  border-radius: 0.7rem;
  background: #2ecc71;
  color: #0b1c30;
}

body[data-page="home"] .home-results-more {
  margin-top: clamp(2.35rem, 4vw, 3.2rem);
}

body[data-page="home"] .home-results-more h3 {
  margin-bottom: 1rem;
  color: #0b1c30;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
}

body[data-page="home"] .home-results-more-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.6vw, 1.8rem);
}

body[data-page="home"] .home-result-more-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  min-height: 8.6rem;
  padding: 1.25rem 3.2rem 1.25rem 1.25rem;
  border-radius: 1rem;
  color: #0b1c30;
  text-decoration: none;
}

body[data-page="home"] .home-result-more-card::after {
  content: "→";
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  color: rgba(11, 28, 48, 0.6);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

body[data-page="home"] .home-result-more-card h4 {
  margin: 0;
  color: #0b1c30;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

body[data-page="home"] .home-result-more-card p {
  margin: 0;
  color: rgba(11, 28, 48, 0.68);
  line-height: 1.45;
}

body[data-page="home"] .home-result-inline-details {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.9rem);
  width: min(100%, 50rem);
  margin: clamp(2.25rem, 4vw, 3.1rem) auto 0;
  color: #0b1c30;
}

body[data-page="home"] .home-result-inline-details[hidden] {
  display: none;
}

body[data-page="home"] .home-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
}

body[data-page="home"] .home-detail-header h3 {
  margin: 0;
  color: #0b1c30;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

body[data-page="home"] .home-detail-header p {
  margin: 0.3rem 0 0;
  color: rgba(11, 28, 48, 0.66);
  line-height: 1.45;
}

body[data-page="home"] .home-detail-collapse-button {
  border: 0;
  background: transparent;
  color: #00783d;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

body[data-page="home"] .home-detail-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body[data-page="home"] .home-detail-card,
body[data-page="home"] .home-detail-unavailable-card,
body[data-page="home"] .home-detail-exercise-card {
  border: 1px solid rgba(11, 28, 48, 0.06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(11, 28, 48, 0.07);
}

body[data-page="home"] .home-detail-card,
body[data-page="home"] .home-detail-unavailable-card {
  padding: clamp(1.1rem, 2vw, 1.35rem);
}

body[data-page="home"] .home-detail-card h4,
body[data-page="home"] .home-detail-unavailable-card h4,
body[data-page="home"] .home-detail-section-title {
  margin: 0;
  color: #0b1c30;
  font-weight: 900;
  letter-spacing: -0.04em;
}

body[data-page="home"] .home-detail-card h4,
body[data-page="home"] .home-detail-unavailable-card h4 {
  font-size: 1.2rem;
}

body[data-page="home"] .home-detail-unavailable-card p {
  margin: 0.55rem 0 0;
  color: rgba(11, 28, 48, 0.68);
  line-height: 1.5;
}

body[data-page="home"] .home-detail-overview-list {
  display: grid;
  grid-template-columns: minmax(7rem, auto) minmax(0, 1fr);
  gap: 0;
  margin: 1rem 0 0;
}

body[data-page="home"] .home-detail-overview-list dt,
body[data-page="home"] .home-detail-overview-list dd {
  margin: 0;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(11, 28, 48, 0.07);
}

body[data-page="home"] .home-detail-overview-list dt {
  color: rgba(11, 28, 48, 0.6);
  font-weight: 750;
}

body[data-page="home"] .home-detail-overview-list dd {
  justify-self: end;
  text-align: right;
  color: #0b1c30;
  font-weight: 850;
}

body[data-page="home"] .home-detail-overview-targets {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

body[data-page="home"] .home-detail-overview-targets h5,
body[data-page="home"] .home-detail-text-block h5 {
  margin: 0;
  color: rgba(11, 28, 48, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page="home"] .home-detail-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body[data-page="home"] .home-detail-notes-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

body[data-page="home"] .home-detail-notes-list li {
  position: relative;
  padding-left: 1.65rem;
  color: rgba(11, 28, 48, 0.68);
  line-height: 1.45;
}

body[data-page="home"] .home-detail-notes-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid #00783d;
  border-radius: 999px;
  color: #00783d;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

body[data-page="home"] .home-detail-section-title {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
}

body[data-page="home"] .home-detail-exercise-list {
  display: grid;
  gap: 0.72rem;
}

body[data-page="home"] .home-detail-exercise-card {
  overflow: hidden;
}

body[data-page="home"] .home-detail-exercise-card.is-open {
  border-left: 0.24rem solid #00783d;
}

body[data-page="home"] .home-detail-exercise-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 0;
  background: transparent;
  color: #0b1c30;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.routine-exercise-image {
  display: inline-grid;
  place-items: center;
  width: 8rem;
  height: 8rem;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 0.65rem;
  background: #fff;
}

.routine-exercise-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.routine-exercise-image [hidden] { display: none !important; }
.routine-exercise-image-fallback { color: var(--color-muted); font-weight: 800; }
body[data-page="home"] .home-detail-exercise-thumb { width: 6rem; height: 6rem; }

body[data-page="home"] .home-detail-exercise-summary {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

body[data-page="home"] .home-detail-exercise-summary strong {
  color: #0b1c30;
  font-weight: 900;
  line-height: 1.2;
}

body[data-page="home"] .home-detail-exercise-summary span {
  color: rgba(11, 28, 48, 0.64);
  line-height: 1.25;
}

body[data-page="home"] .home-detail-exercise-chevron {
  color: rgba(11, 28, 48, 0.64);
  font-size: 1.25rem;
  font-weight: 900;
  transition: transform 0.2s ease;
}

body[data-page="home"] .home-detail-exercise-card.is-open .home-detail-exercise-chevron {
  transform: rotate(180deg);
}

body[data-page="home"] .home-detail-exercise-panel {
  padding: 0 1rem 1rem calc(1rem - 0.24rem);
}

body[data-page="home"] .home-detail-exercise-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 1rem;
  border-top: 1px solid rgba(11, 28, 48, 0.06);
}

body[data-page="home"] .home-detail-exercise-column,
body[data-page="home"] .home-detail-text-block {
  display: grid;
  gap: 0.65rem;
}

body[data-page="home"] .home-detail-text-block p {
  margin: 0;
  color: rgba(11, 28, 48, 0.7);
  line-height: 1.45;
}

body[data-page="home"] .home-detail-exercise-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 0.9rem;
  margin: 0;
}

body[data-page="home"] .home-detail-exercise-meta dt,
body[data-page="home"] .home-detail-exercise-meta dd {
  margin: 0;
}

body[data-page="home"] .home-detail-exercise-meta dt {
  color: rgba(11, 28, 48, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page="home"] .home-detail-exercise-meta dd {
  color: #0b1c30;
  font-weight: 800;
}

body[data-page="home"] .home-detail-training-note {
  padding: 0.95rem 1.1rem;
  border-radius: 0.85rem;
  background: rgba(225, 237, 255, 0.82);
  color: rgba(11, 28, 48, 0.7);
  text-align: center;
}

body[data-page="home"] .home-detail-training-note p {
  margin: 0;
  line-height: 1.45;
}

body[data-page="home"] .home-detail-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
}

body[data-page="home"] .home-detail-action-primary,
body[data-page="home"] .home-detail-action-secondary {
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 1px solid rgba(73, 137, 255, 0.18);
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

body[data-page="home"] .home-detail-action-primary {
  background: #00783d;
  color: #fff;
}

body[data-page="home"] .home-detail-action-secondary {
  background: rgba(225, 237, 255, 0.9);
  color: #0b1c30;
}

@media (min-width: 720px) and (max-width: 980px) {
  body[data-page="home"] .home-workout-tool-section {
    width: min(100% - 2rem, 48rem);
  }

  body[data-page="home"] .home-tool-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  body[data-page="home"] .home-tool-goals {
    padding-right: 0;
    padding-bottom: 2rem;
    border-right: 0;
    border-bottom: 1px solid rgba(11, 28, 48, 0.12);
  }

  body[data-page="home"] .home-results-toolbar,
  body[data-page="home"] .home-results-content,
  body[data-page="home"] .home-results-more-list {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-results-toolbar-actions {
    justify-content: space-between;
  }
}

@media (max-width: 719px) {
  body[data-page="home"] .premium-site-header .header-inner {
    justify-content: center;
    min-height: 4.25rem;
    padding: 0 1rem;
  }

  body[data-page="home"] .premium-site-header .site-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1.1rem;
  }

  body[data-page="home"] .mobile-menu-toggle {
    left: 1rem;
    right: auto;
    width: 2.35rem;
    min-height: 2.35rem;
    background: #e5eeff;
    color: #526070;
  }

  body[data-page="home"] .header-actions {
    margin-right: 0;
    margin-left: auto;
  }

  body[data-page="home"] .premium-site-header nav.is-open {
    left: 0.75rem;
    right: auto;
  }

  body[data-page="home"] .page-home {
    display: grid;
    gap: 0;
  }

  body[data-page="home"] .hero-home {
    display: contents;
  }

  body[data-page="home"] .page-home > section:not(.hero-home):not(.home-trust-badges) {
    order: 10;
  }

  body[data-page="home"] .hero-copy {
    display: contents;
  }

  body[data-page="home"] .hero-title-composed {
    order: 1;
    max-width: 8.2ch;
    margin: 2.4rem auto 0;
    color: #0b1c30;
    font-size: clamp(3.2rem, 16vw, 5.1rem);
    line-height: 1.02;
    text-align: center;
  }

  body[data-page="home"] .hero-title-highlight {
    padding: 0 0.12em 0.03em;
  }

  body[data-page="home"] .hero-subtitle {
    order: 2;
    max-width: 22rem;
    margin: 1.35rem auto 0;
    color: rgba(11, 28, 48, 0.7);
    font-size: 1.15rem;
    line-height: 1.55;
    text-align: center;
  }

  body[data-page="home"] .hero-actions {
    order: 3;
    width: min(100% - 2rem, 24rem);
    margin: 1.65rem auto 0;
  }

  body[data-page="home"] .hero-actions .btn {
    width: 100%;
    min-height: 4rem;
    border-color: #0b1c30;
    border-radius: 0.78rem;
    background: #0b1c30;
    color: #ffffff;
    font-size: 1rem;
  }

  body[data-page="home"] .hero-actions .btn::after {
    content: "→";
    margin-left: 0.75rem;
    font-size: 1.45rem;
  }

  body[data-page="home"] .home-trust-badges {
    order: 4;
    width: min(100% - 2rem, 24rem);
    margin: 2.2rem auto 0;
    padding: 0 0 1.35rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body[data-page="home"] .home-trust-badges ul {
    display: flex;
    justify-content: center;
    gap: 0.58rem 0.66rem;
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
  }

  body[data-page="home"] .home-trust-badges li {
    min-height: 1.78rem;
    gap: 0.34rem;
    padding: 0.32rem 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    background: rgba(239, 244, 255, 0.64);
    color: rgba(11, 28, 48, 0.76);
    box-shadow:
      0 8px 22px rgba(11, 28, 48, 0.035),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  body[data-page="home"] .home-trust-badges li span {
    width: 0.72rem;
    height: 0.72rem;
  }

  body[data-page="home"] .hero-dashboard-card {
    order: 5;
    width: min(100% - 0.9rem, 28rem);
    margin: 1.6rem auto 0;
    padding: 1.28rem;
    border-radius: 0.95rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.78rem;
    background:
      radial-gradient(circle at 93% 12%, rgba(46, 204, 113, 0.12), transparent 34%),
      rgba(255, 255, 255, 0.84);
    text-align: left;
  }

  body[data-page="home"] .hero-dashboard-topline {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0;
    border-bottom: 0;
  }

  body[data-page="home"] .hero-dashboard-more {
    display: flex;
    gap: 0.18rem;
    align-items: center;
  }

  body[data-page="home"] .hero-dashboard-more::before,
  body[data-page="home"] .hero-dashboard-more::after {
    content: "";
  }

  body[data-page="home"] .hero-dashboard-more,
  body[data-page="home"] .hero-dashboard-more::before,
  body[data-page="home"] .hero-dashboard-more::after {
    width: 0.24rem;
    height: 0.24rem;
    border-radius: 999px;
    background: rgba(11, 28, 48, 0.5);
  }

  body[data-page="home"] .hero-dashboard-card h2 {
    display: block;
    color: #0b1c30;
    font-size: clamp(0.8rem, 3.1vw, 0.94rem);
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: none;
  }

  body[data-page="home"] .hero-dashboard-primary {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.72rem;
    min-height: 0;
    padding: 0.35rem 0 0.82rem;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body[data-page="home"] .hero-dashboard-primary > div:not(.hero-dashboard-ring) {
    grid-column: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body[data-page="home"] .hero-dashboard-primary h3 {
    color: #0b1c30;
    max-width: 13rem;
    margin: 0 auto;
    font-size: clamp(1.35rem, 7.2vw, 2rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-align: center;
  }

  body[data-page="home"] .hero-dashboard-primary p {
    display: block;
    margin-top: 0.18rem;
    color: rgba(11, 28, 48, 0.62);
    font-size: clamp(0.92rem, 4.2vw, 1.12rem);
    line-height: 1.25;
    text-align: center;
  }

  body[data-page="home"] .hero-dashboard-ring {
    grid-column: auto;
    grid-row: auto;
    align-self: center;
    justify-self: center;
    width: 4.8rem;
    height: 4.8rem;
    font-size: 1.1rem;
  }

  body[data-page="home"] .hero-dashboard-list {
    grid-column: 1 / -1;
    grid-row: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.64rem;
    min-width: 0;
  }

  body[data-page="home"] .hero-dashboard-list li {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0.24rem;
    padding: 0.82rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 0.68rem;
    background: rgba(239, 244, 255, 0.72);
  }

  body[data-page="home"] .hero-dashboard-list small {
    display: block;
    color: rgba(11, 28, 48, 0.58);
    font-size: clamp(0.75rem, 3.3vw, 0.86rem);
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: none;
    white-space: normal;
  }

  body[data-page="home"] .hero-dashboard-list span {
    min-width: 0;
    color: #0b1c30;
    font-size: clamp(1rem, 4.8vw, 1.24rem);
    font-weight: 760;
    line-height: 1.18;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body[data-page="home"] .hero-dashboard-list em {
    display: block;
    color: rgba(11, 28, 48, 0.62);
    font-size: clamp(0.86rem, 3.9vw, 1rem);
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
  }

  body[data-page="home"] .hero-dashboard-list li:nth-child(2) span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: clamp(1rem, 4.8vw, 1.22rem);
    font-weight: 760;
    line-height: 1.18;
  }

  body[data-page="home"] .hero-dashboard-list li:nth-child(2) .hero-dashboard-focus {
    display: none !important;
  }

  body[data-page="home"] .hero-dashboard-accent {
    display: none;
  }

  body[data-page="home"] .hero-dashboard-list li:nth-child(2) span::before {
    content: "";
    flex: 0 0 auto;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: #2ecc71;
  }

  body[data-page="home"] .home-footer {
    margin-bottom: 5.4rem;
  }

  body[data-page="home"] .home-footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.6rem;
    padding: 2.8rem 1.25rem;
    text-align: center;
  }

  body[data-page="home"] .home-workout-tool-section {
    width: min(100% - 1.25rem, 24rem);
    margin-top: 3.25rem;
    padding-top: 0;
  }

  body[data-page="home"] .home-tool-heading {
    gap: 0.45rem;
    margin-bottom: 1.35rem;
  }

  body[data-page="home"] .home-tool-eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
  }

  body[data-page="home"] .home-tool-heading h2 {
    max-width: 12ch;
    font-size: clamp(2rem, 9vw, 2.6rem);
    letter-spacing: -0.05em;
  }

  body[data-page="home"] .home-tool-heading p:not(.home-tool-eyebrow) {
    max-width: 19rem;
    font-size: 0.95rem;
  }

  body[data-page="home"] .home-tool-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="home"] .home-tool-goals {
    padding-right: 0;
    border-right: 0;
  }

  body[data-page="home"] .home-tool-goals legend {
    margin-bottom: 0.9rem;
    font-size: 1.3rem;
  }

  body[data-page="home"] .home-tool-goals legend small {
    font-size: 0.82rem;
  }

  body[data-page="home"] .home-tool-goal-list {
    gap: 0.65rem;
  }

  body[data-page="home"] .home-tool-goal-option {
    min-height: 3.45rem;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.55rem;
    font-size: 0.92rem;
  }

  body[data-page="home"] .home-tool-filters {
    gap: 0.9rem;
  }

  body[data-page="home"] .home-tool-panel-head h3 {
    font-size: 1.35rem;
  }

  body[data-page="home"] .home-tool-panel-head p {
    font-size: 0.82rem;
  }

  body[data-page="home"] .home-tool-select-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  body[data-page="home"] .home-tool-select-field {
    gap: 0.35rem;
    font-size: 0.66rem;
  }

  body[data-page="home"] .home-tool-select-field select {
    min-height: 3rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
  }

  body[data-page="home"] .home-tool-targets {
    margin-top: 0.8rem;
  }

  body[data-page="home"] .home-tool-targets legend {
    font-size: 1.25rem;
    text-transform: none;
    letter-spacing: -0.03em;
  }

  body[data-page="home"] .home-tool-chip {
    min-height: 2rem;
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
  }

  body[data-page="home"] .home-tool-more-targets {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  body[data-page="home"] .home-tool-more-targets summary {
    font-size: 0.86rem;
  }

  body[data-page="home"] .home-tool-more-targets p {
    font-size: 0.78rem;
  }

  body[data-page="home"] .home-tool-target-group h4 {
    font-size: 0.68rem;
  }

  body[data-page="home"] .home-tool-preview-note {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 0.65rem;
  }

  body[data-page="home"] .home-tool-preview-note li {
    font-size: 0.82rem;
  }

  body[data-page="home"] .home-tool-submit {
    margin-top: 0.3rem;
    padding-top: 1.3rem;
  }

  body[data-page="home"] .home-tool-submit-button {
    width: 100%;
    min-height: 3.45rem;
    border-radius: 0.55rem;
    font-size: 1rem;
  }

  body[data-page="home"] .home-tool-submit p {
    max-width: 17rem;
    text-align: center;
    font-size: 0.75rem;
  }
}

/* Homepage first-section recovery: keep the approved visual direction stable without overlap. */
body[data-page="home"] .hero-home {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(30rem, 1fr) minmax(18rem, 30rem);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  overflow: visible;
}

body[data-page="home"] .hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

body[data-page="home"] .hero-title-composed {
  position: relative;
  z-index: 1;
  max-width: 13ch;
}

body[data-page="home"] .hero-dashboard-card {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 30rem);
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  gap: clamp(1rem, 2vw, 1.45rem);
  padding: clamp(1.35rem, 2.2vw, 1.9rem);
  overflow: hidden;
}

body[data-page="home"] .hero-dashboard-card h2 {
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  line-height: 1.08;
}

body[data-page="home"] .hero-dashboard-primary {
  min-width: 0;
  padding: clamp(0.5rem, 1.4vw, 0.85rem) 0 clamp(0.9rem, 2vw, 1.35rem);
}

body[data-page="home"] .hero-dashboard-ring {
  width: clamp(4.8rem, 6vw, 5.7rem);
  height: clamp(4.8rem, 6vw, 5.7rem);
}

body[data-page="home"] .hero-dashboard-primary h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

body[data-page="home"] .hero-dashboard-primary p {
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}

body[data-page="home"] .hero-dashboard-list {
  min-width: 0;
  gap: clamp(0.8rem, 1.8vw, 1.2rem);
}

body[data-page="home"] .hero-dashboard-list li {
  min-width: 0;
  min-height: clamp(5.2rem, 8vw, 6.5rem);
  padding: clamp(0.95rem, 1.9vw, 1.25rem);
}

body[data-page="home"] .hero-dashboard-list small {
  font-size: clamp(0.78rem, 1.2vw, 0.98rem);
}

body[data-page="home"] .hero-dashboard-list span {
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

body[data-page="home"] .hero-dashboard-list em {
  font-size: clamp(0.92rem, 1.45vw, 1.08rem);
}

body[data-page="home"] .home-trust-badges {
  width: 100%;
  display: block;
  margin: 0;
  clear: both;
}

@media (min-width: 720px) and (max-width: 980px) {
  body[data-page="home"] .hero-home {
    grid-template-columns: minmax(24rem, 1fr) minmax(16rem, 26rem);
    gap: 1.75rem;
  }

  body[data-page="home"] .hero-dashboard-card {
    justify-self: end;
    width: min(100%, 26rem);
  }
}

@media (max-width: 719px) {
  body[data-page="home"] .page-home {
    display: grid;
    gap: 0;
  }

  body[data-page="home"] .hero-home {
    display: contents;
  }

  body[data-page="home"] .hero-copy {
    display: contents;
  }

  body[data-page="home"] .hero-eyebrow {
    display: none;
  }

  body[data-page="home"] .hero-title-composed {
    order: 1;
    max-width: 9.4ch;
    margin: 2.35rem auto 0;
    font-size: clamp(2.7rem, 13.4vw, 4rem);
    line-height: 1.03;
    text-align: center;
  }

  body[data-page="home"] .hero-subtitle {
    order: 2;
    width: min(100% - 2rem, 23rem);
    margin: 1.2rem auto 0;
    font-size: clamp(1rem, 4.6vw, 1.18rem);
    line-height: 1.5;
    text-align: center;
  }

  body[data-page="home"] .hero-actions {
    order: 3;
    width: min(100% - 2rem, 24rem);
    margin: 1.45rem auto 0;
  }

  body[data-page="home"] .home-trust-badges {
    order: 4;
    width: min(100% - 2rem, 24rem);
    margin: 2rem auto 0;
    padding: 0 0 1.2rem;
    border: 0;
    background: transparent;
  }

  body[data-page="home"] .hero-dashboard-card {
    order: 5;
    width: min(100% - 1.5rem, 24.5rem);
    aspect-ratio: auto;
    justify-self: center;
    margin: 1.25rem auto 0;
    padding: 1.35rem;
    border-radius: 1rem;
    overflow: hidden;
  }

  body[data-page="home"] .hero-dashboard-card h2 {
    font-size: clamp(0.78rem, 3.2vw, 0.94rem);
    line-height: 1.2;
    letter-spacing: 0.08em;
  }

  body[data-page="home"] .hero-dashboard-primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.35rem 0 0.8rem;
    text-align: center;
  }

  body[data-page="home"] .hero-dashboard-ring {
    width: 4.9rem;
    height: 4.9rem;
    justify-self: center;
  }

  body[data-page="home"] .hero-dashboard-primary h3 {
    max-width: 13rem;
    margin: 0 auto;
    font-size: clamp(1.35rem, 6.7vw, 1.9rem);
    line-height: 1.1;
    text-align: center;
  }

  body[data-page="home"] .hero-dashboard-primary p {
    margin-top: 0.25rem;
    font-size: clamp(0.92rem, 4.1vw, 1.08rem);
    line-height: 1.3;
    text-align: center;
  }

  body[data-page="home"] .hero-dashboard-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }

  body[data-page="home"] .hero-dashboard-list li {
    min-height: auto;
    gap: 0.22rem;
    padding: 0.85rem 1rem;
    align-content: start;
  }

  body[data-page="home"] .hero-dashboard-list small {
    display: block;
    font-size: clamp(0.75rem, 3.3vw, 0.86rem);
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: none;
  }

  body[data-page="home"] .hero-dashboard-list span {
    font-size: clamp(1rem, 4.8vw, 1.22rem);
    line-height: 1.18;
    overflow-wrap: normal;
  }

  body[data-page="home"] .hero-dashboard-list em {
    font-size: clamp(0.86rem, 3.8vw, 1rem);
    line-height: 1.25;
  }

  body[data-page="home"] .page-home > section:not(.hero-home):not(.home-trust-badges) {
    order: 10;
  }

  body[data-page="home"] .home-workout-results-section {
    width: 100%;
    margin-top: 2.75rem;
    padding: 0.85rem 1rem 4rem;
    scroll-margin-top: 4.35rem;
    background:
      radial-gradient(circle at 18% 10%, rgba(46, 204, 113, 0.08), transparent 16rem),
      linear-gradient(180deg, #f7f8fc 0%, #f5f7fc 100%);
  }

  body[data-page="home"] .home-results-heading {
    display: none;
  }

  body[data-page="home"] .home-results-heading h2 {
    max-width: 10ch;
    font-size: clamp(2.4rem, 13vw, 3.6rem);
  }

  body[data-page="home"] .home-results-toolbar,
  body[data-page="home"] .home-results-content,
  body[data-page="home"] .home-results-more-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="home"] .home-results-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="home"] .home-results-count {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
    line-height: 1.06;
    letter-spacing: -0.055em;
  }

  body[data-page="home"] .home-results-filter-list {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 2;
    width: calc(100vw - 2rem);
    margin-top: 0.25rem;
    padding-left: 0;
    border-left: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  body[data-page="home"] .home-results-filter-list::-webkit-scrollbar {
    display: none;
  }

  body[data-page="home"] .home-results-toolbar-actions {
    display: contents;
    max-width: none;
    padding-left: 0;
    border-left: 0;
    white-space: nowrap;
  }

  body[data-page="home"] .home-results-pager {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    flex-shrink: 0;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 22px rgba(11, 28, 48, 0.08);
  }

  body[data-page="home"] .home-results-text-button,
  body[data-page="home"] .home-results-clear {
    font-size: 0.82rem;
    min-height: auto;
    padding: 0;
    line-height: 1.2;
  }

  body[data-page="home"] .home-results-toolbar-actions > .home-results-text-button,
  body[data-page="home"] .home-results-toolbar-actions > .home-results-clear {
    grid-row: 3;
    margin-top: 0.15rem;
  }

  body[data-page="home"] .home-results-toolbar-actions > .home-results-text-button {
    grid-column: 1;
    justify-self: start;
  }

  body[data-page="home"] .home-results-toolbar-actions > .home-results-clear {
    grid-column: 2;
    justify-self: end;
  }

  body[data-page="home"] .home-result-primary-card,
  body[data-page="home"] .home-result-fit-card,
  body[data-page="home"] .home-results-empty {
    padding: 1.15rem;
    border-radius: 1rem;
  }

  body[data-page="home"] .home-result-primary-head {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="home"] .home-result-primary-head h3 {
    font-size: clamp(2.05rem, 9vw, 2.65rem);
  }

  body[data-page="home"] .home-result-details-link {
    width: 100%;
    min-height: 3.55rem;
    background: #2ecc71;
    color: #0b1c30;
  }

  body[data-page="home"] .home-result-plan {
    padding: 0.95rem;
  }

  body[data-page="home"] .home-result-plan li {
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    padding-inline: 0.72rem;
  }

  body[data-page="home"] .home-result-plan .home-plan-exercise-name {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body[data-page="home"] .home-result-plan .workout-prescription {
    max-width: 42%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
  }

  body[data-page="home"] .home-result-fit-group dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1rem;
  }

  body[data-page="home"] .home-result-fit-group dt {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    font-weight: 750;
  }

  body[data-page="home"] .home-result-fit-group dt::before {
    content: "✓";
    display: inline-grid;
    flex: 0 0 1rem;
    place-items: center;
    width: 1rem;
    height: 1rem;
    border: 1px solid #2ecc71;
    border-radius: 999px;
    color: #2ecc71;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
  }

  body[data-page="home"] .home-result-fit-group dd {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 720px) {
  body[data-page="home"] .page-home {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="home"] .hero-home,
  body[data-page="home"] .home-trust-badges,
  body[data-page="home"] .page-home > section:not(.hero-home):not(.home-trust-badges) {
    grid-column: 1 / -1;
  }

  body[data-page="home"] .page-home > .page-intro {
    grid-area: auto;
  }

  body[data-page="home"] .hero-home {
    grid-template-columns: minmax(0, 0.94fr) minmax(23rem, 0.9fr);
    gap: clamp(3rem, 8vw, 8rem);
    padding-right: clamp(1.15rem, 2.8vw, 2.25rem);
  }

  body[data-page="home"] .hero-dashboard-card {
    justify-self: end;
    width: min(100%, 33rem);
  }

  body[data-page="home"] .home-trust-badges {
    padding: 0.95rem clamp(1rem, 3vw, 2.5rem);
    border-radius: 0;
    border-right: 0;
    border-left: 0;
  }

  body[data-page="home"] .home-trust-badges ul {
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 5vw, 4.5rem);
    flex-wrap: wrap;
  }

  body[data-page="home"] .home-trust-badges li {
    min-height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: clamp(0.78rem, 0.95vw, 0.92rem);
    line-height: 1.15;
  }

  body[data-page="home"] .home-trust-badges li span {
    width: 1.05rem;
    height: 1.05rem;
  }
}

@media (min-width: 720px) and (max-width: 920px) {
  body[data-page="home"] .hero-home {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 3rem);
    padding-right: clamp(1.4rem, 5vw, 2rem);
    padding-left: clamp(1.4rem, 5vw, 2rem);
  }

  body[data-page="home"] .hero-copy {
    width: min(100%, 42rem);
    max-width: 42rem;
  }

  body[data-page="home"] .hero-dashboard-card {
    width: min(100%, 30rem);
    justify-self: end;
  }

  body[data-page="home"] .home-trust-badges ul {
    gap: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  }

  body[data-page="home"] .home-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 1.5rem;
  }

  body[data-page="home"] .home-footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 719px) {
  body[data-page="home"] .home-result-inline-details {
    width: 100%;
    margin-top: 2.4rem;
    gap: 1.55rem;
  }

  body[data-page="home"] .home-detail-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
  }

  body[data-page="home"] .home-detail-header h3 {
    font-size: clamp(2.25rem, 11vw, 3rem);
    line-height: 1.04;
  }

  body[data-page="home"] .home-detail-header p {
    font-size: 1.08rem;
  }

  body[data-page="home"] .home-detail-collapse-button {
    max-width: 6.5rem;
    padding-top: 0.45rem;
    text-align: right;
    line-height: 1.35;
  }

  body[data-page="home"] .home-detail-overview-grid,
  body[data-page="home"] .home-detail-exercise-content,
  body[data-page="home"] .home-detail-exercise-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="home"] .home-detail-card,
  body[data-page="home"] .home-detail-unavailable-card {
    padding: 1.45rem;
    border-radius: 1.35rem;
  }

  body[data-page="home"] .home-detail-card h4,
  body[data-page="home"] .home-detail-unavailable-card h4 {
    font-size: 1.65rem;
  }

  body[data-page="home"] .home-detail-overview-list {
    grid-template-columns: minmax(5.7rem, auto) minmax(0, 1fr);
  }

  body[data-page="home"] .home-detail-overview-list dt,
  body[data-page="home"] .home-detail-overview-list dd {
    padding: 0.85rem 0;
    font-size: 1.05rem;
  }

  body[data-page="home"] .home-detail-notes-list {
    gap: 1rem;
  }

  body[data-page="home"] .home-detail-notes-list li {
    padding-left: 2rem;
    font-size: 1rem;
  }

  body[data-page="home"] .home-detail-section-title {
    font-size: 2rem;
  }

  body[data-page="home"] .home-detail-exercise-list {
    gap: 1rem;
  }

  body[data-page="home"] .home-detail-exercise-card {
    border-radius: 1.25rem;
  }

  body[data-page="home"] .home-detail-exercise-card.is-open {
    border-left-width: 0.2rem;
  }

  body[data-page="home"] .home-detail-exercise-toggle {
    gap: 1rem;
    min-height: 6.1rem;
    padding: 1rem 1.1rem;
  }

  body[data-page="home"] .home-detail-exercise-thumb {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 0.8rem;
  }

  body[data-page="home"] .home-detail-exercise-summary strong {
    font-size: 1.15rem;
  }

  body[data-page="home"] .home-detail-exercise-summary span {
    font-size: 1.02rem;
  }

  body[data-page="home"] .home-detail-exercise-panel {
    padding: 0 0.95rem 1rem;
  }

  body[data-page="home"] .home-detail-exercise-content {
    padding: 1rem 0.6rem 0.4rem;
  }

  body[data-page="home"] .home-detail-training-note {
    padding: 1.25rem;
    border-radius: 1rem;
    font-size: 1rem;
  }

  body[data-page="home"] .home-detail-actions {
    display: grid;
    gap: 0.9rem;
  }

  body[data-page="home"] .home-detail-action-primary,
  body[data-page="home"] .home-detail-action-secondary {
    width: 100%;
    min-height: 4.3rem;
    border-radius: 0.9rem;
    font-size: 1.2rem;
  }
}
/* Preserve ordered ladder lines in details and the compact home plan. */
.workout-prescription,
body[data-page="home"] .home-result-plan .workout-prescription {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
/* R02: native disclosures keep version links usable without interaction code. */
.workout-versions { margin-block: 0.8rem; max-width: 100%; }
.workout-versions summary { cursor: pointer; font-weight: 650; padding-block: 0.5rem; }
.workout-versions ul { padding-inline-start: 1.25rem; }
.workout-versions li { margin-block: 0.65rem; overflow-wrap: anywhere; }
.workout-versions a[aria-current="true"] { font-weight: 700; }
.workout-result-context { min-width: 0; overflow-wrap: anywhere; }
.print-mode .workout-result-context, .print-mode .workout-versions { display: none; }
.workout-versions summary:focus-visible, .workout-versions a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
@media print { .workout-result-context, .workout-versions { display: none !important; } }

/* F05: keep each prescribed exercise, illustration and text together. */
.exercise-guide-image.routine-exercise-image {
  width: min(100%, 48rem);
  height: auto;
  aspect-ratio: auto;
  max-width: 100%;
}
#exercise-detail-media { min-width: 0; }
#exercise-detail-media img { display: block; width: 100%; height: auto; object-fit: contain; }
a.routine-exercise-image:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
[id^="home-exercise-"], [id^="workout-exercise-"], [id^="exercise-card-"] { scroll-margin-top: 6rem; }
#exercise-back-link:focus-visible, #exercise-not-found-back-link:focus-visible,
#exercise-tips-list a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.detail-exercise-media { display: grid; gap: 0.65rem; justify-items: start; }
.detail-exercise-body { min-width: 0; overflow-wrap: anywhere; }
body[data-page="home"] .home-result-plan li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  align-items: start;
}
body[data-page="home"] .home-plan-exercise-text { display: grid; gap: 0.45rem; min-width: 0; overflow-wrap: anywhere; }
body[data-page="home"] .home-plan-exercise-name { font-weight: 800; }
body[data-page="home"] .home-result-plan .workout-prescription {
  max-width: none;
  text-align: left;
  white-space: pre-line;
}
body[data-page="home"] .home-plan-exercise-instruction { font-size: 0.95rem; line-height: 1.5; }
.home-plan-exercise-name:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
@media (max-width: 719px) {
  .routine-exercise-image { width: 6rem; height: 6rem; }
  .detail-exercise-media { grid-template-columns: auto 6rem; align-items: start; }
  body[data-page="home"] .home-result-plan li { grid-template-columns: 6rem minmax(0, 1fr); padding-inline: 0.25rem; gap: 0.65rem; }
  body[data-page="home"] .home-detail-exercise-toggle { grid-template-columns: 4.4rem minmax(0, 1fr) auto; gap: 0.65rem; padding-inline: 0.65rem; }
}
body.print-mode .detail-exercise-card { grid-template-columns: 28mm minmax(0, 1fr); align-items: start; }
body.print-mode .detail-exercise-media { display: grid; grid-template-columns: 1fr; }
body.print-mode .routine-exercise-image { width: 28mm; height: 28mm; }
@media print {
  .detail-exercise-card { grid-template-columns: 28mm minmax(0, 1fr); align-items: start; break-inside: avoid; }
  .detail-exercise-media { display: grid; grid-template-columns: 1fr; break-inside: avoid; }
  .routine-exercise-image { width: 28mm; height: 28mm; print-color-adjust: exact; }
}

/* F08: catalogue status is separate from the verified benefit badge. */
#home-programme-badge[hidden], #home-catalog-status[hidden] { display: none; }
#home-catalog-status { width: min(76rem, 100%); margin: 0.75rem auto 0; text-align: center; }

/* F10: exercise-first results, with the complete guidance available on demand. */
.workout-explanation { min-width: 0; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.workout-explanation > summary { padding: 0.65rem 0.8rem; cursor: pointer; font-weight: 700; color: var(--color-accent-strong); }
.workout-explanation > summary:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.workout-explanation[open] > summary { border-bottom: 1px solid var(--color-border); margin-bottom: 0.65rem; }
.workout-explanation > :not(summary) { margin: 0.65rem 0.8rem; }
.workout-explanation-content { display: grid; gap: var(--space-lg); }
.workout-session-explanation { background: var(--color-surface, #fff); }
body[data-page="workout-detail"] .detail-hero-card { padding: 1rem; gap: 0.8rem; grid-template-columns: 1fr; }
body[data-page="workout-detail"] #detail-workout-name { font-size: clamp(1.4rem, 3vw, 2rem); }
body[data-page="workout-detail"] .detail-summary-card { padding: 0; background: transparent; border: 0; }
body[data-page="workout-detail"] .detail-summary-card .detail-facts-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 0.5rem; }
body[data-page="workout-detail"] .detail-summary-card .detail-fact { padding: 0.45rem 0.6rem; }
body[data-page="workout-detail"] .detail-exercise-card { grid-template-columns: 8rem minmax(0, 1fr); align-items: start; }
body[data-page="workout-detail"] .detail-exercise-media { grid-template-columns: 1fr; }
body[data-page="home"] details.home-result-fit-card { display: block; padding: 0.5rem; align-self: start; }
body[data-page="home"] .home-result-plan .workout-explanation p { display: block; margin: 0.65rem 0.8rem; padding: 0; border: 0; font-size: 0.95rem; }
body[data-page="home"] .home-result-plan .workout-explanation p::before { content: none; }
body[data-page="home"] .home-result-plan .workout-explanation li { display: list-item; padding: 0; margin: 0.4rem 0; background: transparent; }
body[data-page="home"] .home-result-plan .workout-explanation ul { display: block; list-style: disc; padding-left: 1.2rem; }
body[data-page="home"] .home-result-plan .home-detail-exercise-meta { margin: 0; }
body[data-page="home"] .home-detail-visible-recovery { margin: 0 1rem 0.75rem; }
[data-home-promotion][hidden] { display: none !important; }
@media (max-width: 719px) {
  body[data-page="workout-detail"] .detail-exercise-card { grid-template-columns: 6rem minmax(0, 1fr); padding: 0.75rem; gap: 0.65rem; }
}
body.print-mode .workout-explanation > summary { display: none; }
body.print-mode .workout-explanation { border: 0; }
body.print-mode .detail-exercise-card { grid-template-columns: 28mm minmax(0, 1fr); }
@media print {
  .workout-explanation > summary { display: none; }
  .workout-explanation { border: 0; }
  body[data-page="workout-detail"] .detail-exercise-card { grid-template-columns: 28mm minmax(0, 1fr); }
}

/* F14: existing card language, with separate session-role navigation. */
.session-role-control { display: flex; flex-direction: column; gap: .45rem; margin: 0 0 1rem; max-width: 28rem; width: 100%; }
.session-role-control select { width: 100%; min-height: 44px; }
.session-role-sections { clear: both; margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--color-border, #d8e0e5); border-radius: 12px; }
.session-role-sections h2, .session-role-sections h3 { font-size: 1rem; margin: .5rem 0; }
.session-role-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.session-role-links a { display: block; min-height: 44px; overflow-wrap: anywhere; }
.session-role-note { font-size: .9rem; line-height: 1.5; margin: .5rem 0; }
.session-role-sections a[aria-current="true"] { font-weight: 700; text-decoration-thickness: 2px; }
@media (max-width: 768px) { .session-role-links { grid-template-columns: 1fr; gap: .35rem; } }
@media print { .session-role-sections, .session-role-control { display: none; } }

/* F17: disclosure controls and wrapping share the existing presentation. */
.workout-explanation > summary { scroll-margin-block-start: 6rem; }
.workout-guide-collapse { min-height: 44px; max-width: calc(100% - 1.6rem); white-space: normal; }
body[data-page="home"] .home-detail-card,
body[data-page="home"] .home-detail-overview-list,
body[data-page="home"] .home-detail-overview-list dd,
body[data-page="home"] .home-result-fit-card dd { min-width: 0; overflow-wrap: anywhere; }
body.print-mode .workout-guide-collapse { display: none; }
@media print { .workout-guide-collapse { display: none; } }

/* F25: a compact, sequential Home search with independent native disclosures. */
body[data-page="home"] .home-tool-card { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
body[data-page="home"] .home-tool-goals { padding-right: 0; border-right: 0; }
body[data-page="home"] .home-tool-goal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-page="home"] .home-tool-goal-choice,
body[data-page="home"] .home-tool-chip-choice { position: relative; min-width: 0; }
body[data-page="home"] .home-tool-chip-choice { display: inline-grid; }
body[data-page="home"] .home-tool-disclosure { min-width: 0; border: 1px solid rgba(11,28,48,.12); border-radius: .9rem; background: rgba(255,255,255,.7); }
body[data-page="home"] .home-tool-disclosure > summary { cursor: pointer; padding: 1rem 1.2rem; color: #0b1c30; font-size: 1.15rem; font-weight: 750; overflow-wrap: anywhere; }
body[data-page="home"] .home-tool-disclosure > summary:focus-visible { outline: 3px solid rgba(46,204,113,.65); outline-offset: 3px; border-radius: .9rem; }
body[data-page="home"] .home-tool-disclosure-body { display: grid; gap: 1rem; padding: 0 1.2rem 1.2rem; }
body[data-page="home"] .home-tool-active-filters { display: block; margin-top: .35rem; font-size: .85rem; font-weight: 500; line-height: 1.45; }
body[data-page="home"] .home-tool-active-filters[hidden] { display: none; }
body[data-page="home"] .home-tool-more-targets h4 { margin-top: 0; }
body[data-page="home"] .home-tool-submit { margin-top: 0; }
@media (max-width: 719px) {
  body[data-page="home"] .home-tool-goal-list { grid-template-columns: minmax(0, 1fr); }
  body[data-page="home"] .home-tool-disclosure > summary { padding: .85rem; }
  body[data-page="home"] .home-tool-disclosure-body { padding: 0 .85rem .85rem; }
}

/* F26: one workout entry; existing header and disclosure visual language. */
body[data-page="home"] { padding-bottom: 0; }
body[data-page="home"] .home-footer { padding-bottom: 2rem; }
body[data-page="home"] .premium-site-header nav ul { gap: clamp(.7rem, 1.5vw, 1.5rem); }
#home-tool-linked-goal { border-left: 3px solid var(--home-green-bright, #2ecc71); padding: .65rem .8rem; }
#home-tool-linked-goal[hidden], #exercise-origin-notice[hidden] { display: none; }
body[data-page="catalogue-transition"] main { max-width: 48rem; margin-inline: auto; }
body[data-page="catalogue-transition"] header,
body[data-page="catalogue-transition"] footer { padding: 1.5rem; }
@media (min-width: 720px) and (max-width: 1000px) {
  body[data-page="home"] .premium-site-header .header-inner { grid-template-columns: auto 1fr; gap: .6rem 1rem; padding-block: .5rem; }
  body[data-page="home"] .premium-site-header nav { order: 3; grid-column: 1 / -1; width: 100%; }
  body[data-page="home"] .premium-site-header nav ul { justify-content: center; flex-wrap: wrap; }
}

/* F27: lower controls belong only to the two existing Home filter panels. */
.home-tool-bottom-collapse { margin-top: 1rem; min-width: 0; max-width: 100%; white-space: normal; padding: .6rem 1rem; gap: .5rem; }
.home-tool-bottom-collapse .home-tool-close-icon { font-size: 1.2em; line-height: 1; flex-shrink: 0; }
.home-tool-bottom-collapse:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
@media print { .home-tool-bottom-collapse { display: none !important; } }

/* One shared contextual notice, readable on screen and retained in printed instructions. */
.training-notice {
  grid-column: 1 / -1;
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid #cbd9d2;
  border-radius: 12px;
  background: #f2f8f4;
  color: #233b30;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.training-notice h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.training-notice p { margin: 0 0 .65rem; }
.training-notice a { color: #006a38; text-decoration: underline; font-weight: 600; }
.training-notice-print-url { display: none; }
body.print-mode .training-notice-print-url { display: block; font-size: .9rem; }
@media print {
  .training-notice { color: #000; background: transparent; border-color: #888; break-inside: avoid; }
  .training-notice-print-url { display: block; font-size: .9rem; }
}

/* Embedded instructions keep the shared brief nearby; print retains the session notice once. */
.training-notice-embedded { margin-block: .85rem; }
body.print-mode .training-notice-embedded { display: none; }
@media print { .training-notice-embedded { display: none !important; } }
