/* Shared mobile layout scale. Loaded after each page's authored styles. */
@media (max-width: 860px) {
  :root {
    --pc-space-section: 64px;
    --pc-space-section-head: 32px;
    --pc-space-group: 24px;
    --pc-space-footer: 48px;
  }
  body[class] .band,
  body.home-1011 .pro-comparison {
    padding-block: var(--pc-space-section);
  }
  body[class] .hero:not(.hero-cinematic) {
    padding-block: var(--pc-space-section-head) var(--pc-space-section);
  }
  body.home-1011 .coach-insight-band { padding-top: 0; }
  body .contact-hero.section { padding-block: var(--pc-space-section-head); }
  body .contact-main.section,
  body #support-faq.section { padding-bottom: var(--pc-space-section); }
  body .support-block { padding-block: var(--pc-space-section-head); }
  body .legal-intro { padding-block: var(--pc-space-section-head); }
  body .legal-content { padding-block: var(--pc-space-group) var(--pc-space-section); }
  body .legal-content h2 { margin-top: var(--pc-space-footer); padding-top: var(--pc-space-group); }
  body .site-footer { padding-block: var(--pc-space-footer) var(--pc-space-section-head); }

  /* Let the whole heading balance. A wrapping highlight repeats its lime stroke on each line. */
  body.home-1011 .hero h1 span { display: inline; }
  body[class] main :is(h1, h2) .hl-mark {
    display: inline;
    padding-bottom: 0.16em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3Cpath d='M4 10 C48 3 82 13 126 9 S196 4 236 8' fill='none' stroke='%23c8e84a' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 0.18em no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  body[class] main :is(h1, h2) .hl-mark > .title-swoosh { display: none; }

  /* The app screens read in document order, without a sideways scrolling rail. */
  body.home-1011 .screen-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--pc-space-section-head) var(--pc-space-group);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  body.home-1011 .screen-item { width: auto; }
  /* Invisible tab targets still map to the original screen's five tab columns. */
  body.home-1011 .step-phone .phone-demo { min-width: 236px; }
  body.home-1011 .phone-tabs { min-height: 44px; grid-template-columns: repeat(5, minmax(44px, 1fr)); }
  body.home-1011 .phone-tabs button { min-width: 44px; min-height: 44px; }

  /* Remove the partial foreground face from the source edge without cutting either complete subject. */
  body.partner-1013 .hero-frame { aspect-ratio: 4 / 3; }
  body.partner-1013 .hero-frame > img { object-position: 100% 50%; }

  /* Tables retain column headers and cell semantics while fitting the reading measure. */
  body .legal-content .wrap { overflow: visible; }
  body .legal-content table { min-width: 0; table-layout: fixed; width: 100%; }
  body .legal-content :is(th, td) { padding: 12px 8px; overflow-wrap: anywhere; }
  body .legal-content td code { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 700px) {
  :root { --pc-space-section: 48px; }
  body.home-1011 .screen-row { grid-template-columns: minmax(0, 1fr); }
  body.home-1011 .screen-item .phone { max-width: 260px; }
}
@media (max-width: 430px) {
  body.legal-page .head h1 { font-size: 28px; line-height: 1.16; max-width: 100%; }
  body .legal-content h2 { font-size: 20px; line-height: 1.25; }
  body .legal-content .preference-panel h2 { font-size: 20px; }
  body #thanks-heading { display: block; font-size: 30px; line-height: 1.2; text-wrap: balance; }
  body #thanks-heading .title-icon { display: block; margin: 0 auto 16px; }
}
@media (max-width: 360px) {
  body #faq-title { font-size: 27px; }
  body.home-1011 #flow-title { font-size: 28px; }
}
/* These two long titles need a compact legal display scale on the smallest screens. */
@media (max-width: 430px) {
  body.legal-page:has([id="6-anonymized-development-information"]) .head h1 { font-size: 24px; }
}

@media (max-width: 600px) {
  body.legal-page .legal-content table,
  body.legal-page .legal-content tbody,
  body.legal-page .legal-content tr,
  body.legal-page .legal-content td { display: block; }
  body.legal-page .legal-content thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body.legal-page .legal-content tr { padding: 20px 16px; border-bottom: 1px solid var(--line); }
  body.legal-page .legal-content tr:last-child { border-bottom: 0; }
  body.legal-page .legal-content td { padding: 0; border: 0; }
  body.legal-page .legal-content td + td { margin-top: 20px; }
  body.legal-page .legal-content td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 700;
  }
}

@media (max-width: 430px) {
  body.partner-1013 #cause-title { font-size: 27px; }
  body.about-1013 #hero-title { font-size: 26px; }
  body.legal-page:has([id="4-physical-activity-and-independent-providers"]) .head h1 { font-size: 24px; }
  body #thanks-heading { font-size: 26px; }
}

@media (max-width: 860px) {
  /* .shell already supplies the gutter. Legal columns must not subtract it twice. */
  body.legal-page .legal-intro .shell,
  body.legal-page .legal-content.shell { width: 100%; }
}
@media (max-width: 430px) {
  body .thanks-card { padding: var(--pc-space-group); }
}

@media (max-width: 860px) {
  /* This short highlighted phrase fits intact and keeps its two words together. */
  body[class] main #dashboard-title .hl-mark { display: inline-block; }
}

@media (max-width: 860px) {
  /* All 24 shot examples remain in order, fully visible without sideways navigation. */
  body.academy-1012 .shots-viewport {
    overflow: visible;
    min-height: 0;
    padding-block: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  body.academy-1012 .shots-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--pc-space-group);
    width: 100%;
  }
  body.academy-1012 .shots-track .shotcard { width: auto; }
  body.academy-1012 .shots-track .shotcard[aria-hidden="true"],
  body.academy-1012 .shots-controls { display: none; }
  body.academy-1012 .shots-track .shotname {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: clamp(16px, 2.9vw, 22px);
    line-height: 1.2;
  }
}
@media (max-width: 700px) {
  body.academy-1012 .shots-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 430px) {
  body .site-header .brand { flex: 0 0 88px; width: 88px; }
  body .site-header .brand img { width: 88px; height: 32px; object-fit: contain; }
  body .site-header .nav-login-toggle.button-dark { font-size: 16px; }
  body.academy-1012 .shots-track .shotname { left: 8px; right: 8px; }
}

@media (max-width: 860px) {
  body .info-hero.section { padding-block: var(--pc-space-section-head) var(--pc-space-section); }
  body .contact-form-section.section { padding-bottom: var(--pc-space-section); }
  body .info-row { padding-block: var(--pc-space-section-head); }
}

/* R36 phone polish (Fable, October 14, 2026). Phones from 320 to 430 px: a lower header with a larger wordmark and a
   calmer Members menu, one action size for every hero and band button, centred step actions, and a footer whose
   Follow row closes both columns. Everything below sits inside phone media queries; desktop is untouched. */
@media (max-width: 700px) {
  :root { --pc-header-h: 64px; --pc-action-h: 52px; }
  /* The bar and the navigation panel share one height, so the panel always starts under the bar. */
  body .site-header .nav-shell { height: var(--pc-header-h); gap: 10px; }
  body .site-header .nav-links { top: var(--pc-header-h); height: calc(100dvh - var(--pc-header-h)); padding-top: 20px; }
  body .site-header .nav-links a { min-height: 64px; font-size: 22px; }
  body .site-header .nav-login-toggle.button-dark { min-height: 44px; padding: 10px 14px; gap: 8px; font-size: 16px; }
  /* The chooser hangs a little lower, with roomier rows and softer corners. */
  body .nav-login .login-menu { top: calc(100% + 10px); width: 264px; padding: 8px; border-radius: 14px; box-shadow: 0 18px 44px rgb(0 0 0 / 42%); }
  body .nav-login .login-menu a { min-height: 52px; padding: 10px 14px; border-radius: 10px; }

  /* One action height on phones. Hero and band actions fill the column; the step actions centre under their copy. */
  body[class] main :is(.button, .button-dark, .button-outline) { min-height: var(--pc-action-h); text-wrap: balance; }
  body[class] main :is(.hero .actions, .choose-actions, .closing-actions, .apply-actions, .plan-actions, .academy-join, .club-actions, .step-actions:not(.store-row)) > :is(.button, .button-dark, .button-outline) { width: 100%; justify-content: center; }
  body.home-1011 .club-actions { gap: 18px 26px; }

  /* Follow PadelCue closes the footer as one row across both columns, over its own hairline. */
  html body .footer-links > div:nth-child(3) { grid-column: 1 / -1; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 0 28px; padding-top: 24px; border-top: 1px solid var(--line); }
  html body .footer-links > div:nth-child(3) > strong { flex-basis: 100%; margin-bottom: 4px; }
  html body .footer-links > div:nth-child(3) > a { display: inline-flex; flex: 0 0 auto; }
  html body .footer-top { gap: 36px; padding-bottom: 36px; }
  html body .footer-bottom { padding-top: 28px; }
}
@media (max-width: 860px) {
  body.home-1011 .step-actions { justify-content: center; }
  body.home-1011 .step-actions.store-row { gap: 12px; }
}
@media (max-width: 430px) {
  /* The wordmark gains a step at phone widths; the bar still fits the Members button and the menu toggle at 360. */
  body .site-header .brand { flex: 0 0 100px; width: 100px; }
  body .site-header .brand img { width: 100px; height: 34px; object-fit: contain; }
}
@media (max-width: 360px) {
  body .site-header .nav-shell { gap: 8px; }
  body .site-header .brand { flex: 0 0 88px; width: 88px; }
  body .site-header .brand img { width: 88px; height: 30px; }
  body .site-header .nav-login-toggle.button-dark { padding-inline: 10px; }
}
