:root {
    --mps-header-height: 84px;
    --mps-navy: #111827;
    --mps-navy-soft: #1f2937;
    --mps-cyan: #22d3ee;
    --mps-blue: #0ea5e9;
    --mps-white: #ffffff;
    --mps-text: #1f2937;
    --mps-muted: #5f6b7a;
    --mps-background: #f5f7fa;
    --mps-border: #dbe3eb;
    --mps-content-width: 1040px;
    --mps-radius: 18px;
    --mps-shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.mps-site {
    margin: 0;
    min-width: 320px;
    padding-top: var(--mps-header-height);
    overflow-x: hidden;
    background: var(--mps-background);
    color: var(--mps-text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.mps-site,
.mps-site * {
    box-sizing: border-box;
}

.mps-site img {
    display: block;
    max-width: 100%;
}

.mps-site a {
    color: inherit;
}

.mps-site .skip-link {
    position: fixed;
    z-index: 9999;
    top: 8px;
    left: 8px;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--mps-white);
    color: var(--mps-navy);
    font-weight: 700;
    text-decoration: none;
}

.mps-site .skip-link:focus {
    transform: translateY(0);
}

/* Header and navigation */
.mps-site .site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: var(--mps-header-height);
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(17, 24, 39, 0.97);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transition: box-shadow 180ms ease, background-color 180ms ease;
}

.mps-site .site-header.is-scrolled {
    background: rgba(17, 24, 39, 0.995);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mps-site .site-header__inner {
    width: min(1240px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.mps-site .site-logo {
    min-width: 170px;
    max-width: 260px;
    display: inline-flex;
    align-items: center;
    color: var(--mps-white);
    text-decoration: none;
}

.mps-site .site-logo img {
    width: auto;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
}

.mps-site .site-logo__fallback {
    display: none;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.mps-site .site-logo img:not([src]),
.mps-site .site-logo img[src=""] {
    display: none;
}

.mps-site .site-logo.logo-missing img {
    display: none;
}

.mps-site .site-logo.logo-missing .site-logo__fallback {
    display: inline;
}

.mps-site .desktop-navigation {
    display: block;
    margin-left: auto;
}

.mps-site .desktop-navigation ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.6vw, 26px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mps-site .desktop-navigation a {
    position: relative;
    display: block;
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.mps-site .desktop-navigation a::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--mps-cyan);
    content: "";
    transition: transform 160ms ease;
}

.mps-site .desktop-navigation a:hover,
.mps-site .desktop-navigation a:focus-visible,
.mps-site .desktop-navigation a[aria-current="page"] {
    color: var(--mps-white);
}

.mps-site .desktop-navigation a:hover::after,
.mps-site .desktop-navigation a:focus-visible::after,
.mps-site .desktop-navigation a[aria-current="page"]::after {
    transform: scaleX(1);
}

.mps-site .site-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.mps-site .site-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--mps-white);
    transition: transform 180ms ease, opacity 180ms ease;
}

.mps-site .site-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mps-site .site-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mps-site .site-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mps-site .mobile-navigation {
    position: fixed;
    z-index: 990;
    top: var(--mps-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
    background: rgba(17, 24, 39, 0.995);
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.mps-site .mobile-navigation.is-open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.mps-site .mobile-navigation__inner {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 24px 20px calc(32px + env(safe-area-inset-bottom));
}

.mps-site .mobile-navigation a {
    display: block;
    padding: 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--mps-white);
    font-size: 1.08rem;
    font-weight: 600;
    text-decoration: none;
}

.mps-site .mobile-navigation a[aria-current="page"] {
    color: var(--mps-cyan);
}

body.mps-site.menu-open {
    overflow: hidden;
}

/* Responsive image hero: intentionally no parallax or fixed background attachment. */
.mps-site .page-hero {
    position: relative;
    min-height: clamp(360px, 50vw, 650px);
    display: grid;
    overflow: hidden;
    isolation: isolate;
    place-items: center;
    background: var(--mps-navy);
}

.mps-site .page-hero__media,
.mps-site .page-hero__media img,
.mps-site .page-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mps-site .page-hero__media img {
    object-fit: cover;
    object-position: center center;
}

.mps-site .page-hero--welcome .page-hero__media img,
.mps-site .page-hero--contact .page-hero__media img {
    object-position: center 46%;
}

.mps-site .page-hero--you .page-hero__media img {
    object-position: center 58%;
}

.mps-site .page-hero--coaching .page-hero__media img {
    object-position: center 46%;
}

.mps-site .page-hero--nutrition .page-hero__media img {
    object-position: center 50%;
}

.mps-site .page-hero--injuries .page-hero__media img {
    object-position: center 50%;
}

.mps-site .page-hero__shade {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.78) 0%, rgba(17, 24, 39, 0.48) 52%, rgba(17, 24, 39, 0.58) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.4) 0%, rgba(17, 24, 39, 0.08) 55%, rgba(17, 24, 39, 0.22) 100%);
}

.mps-site .page-hero__content {
    position: relative;
    z-index: 2;
    width: min(var(--mps-content-width), calc(100% - 40px));
    padding: clamp(46px, 7vw, 96px) 0;
    color: var(--mps-white);
    text-align: center;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.45);
}

.mps-site .page-hero__eyebrow {
    margin: 0 0 12px;
    color: var(--mps-cyan);
    font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.98rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.mps-site .page-hero h1 {
    max-width: 980px;
    margin: 0 auto;
    color: var(--mps-white);
    font-size: clamp(2rem, 4.3vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.mps-site .page-hero__subtitle {
    max-width: 820px;
    margin: 22px auto 0;
    color: var(--mps-cyan);
    font-size: clamp(1rem, 1rem + 0.65vw, 1.65rem);
    font-weight: 600;
    line-height: 1.4;
    text-wrap: balance;
}

/* Page content */
.mps-site main {
    display: block;
}

.mps-site .content-section {
    padding: clamp(48px, 7vw, 92px) 20px;
    background: var(--mps-white);
}

.mps-site .content-section--alt {
    background: var(--mps-background);
}

.mps-site .content-panel {
    width: min(var(--mps-content-width), 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--mps-border);
    border-radius: var(--mps-radius);
    background: var(--mps-white);
    box-shadow: var(--mps-shadow);
}

.mps-site .content-panel h2 {
    margin: 0 0 24px;
    color: var(--mps-navy);
    font-size: clamp(1.65rem, 1.4rem + 1.1vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.18;
    text-wrap: balance;
}

.mps-site .content-panel p {
    margin: 0 0 1.25em;
    color: var(--mps-text);
    font-size: clamp(1rem, 0.98rem + 0.18vw, 1.12rem);
}

.mps-site .content-panel p:last-child {
    margin-bottom: 0;
}

.mps-site .service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.mps-site .service-list li {
    position: relative;
    min-width: 0;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--mps-border);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--mps-navy-soft);
    font-weight: 600;
    line-height: 1.45;
}

.mps-site .service-list li::before {
    position: absolute;
    top: 17px;
    left: 17px;
    width: 13px;
    height: 7px;
    transform: rotate(-45deg);
    border-bottom: 3px solid var(--mps-blue);
    border-left: 3px solid var(--mps-blue);
    content: "";
}

/* Contact form */
.mps-site .contact-introduction {
    margin-bottom: 30px;
}

.mps-site .contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    margin-top: 28px;
}

.mps-site .form-field {
    min-width: 0;
}

.mps-site .form-field--full {
    grid-column: 1 / -1;
}

.mps-site .form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--mps-navy);
    font-size: 0.95rem;
    font-weight: 700;
}

.mps-site .form-field input,
.mps-site .form-field textarea {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid #bdc8d4;
    border-radius: 10px;
    outline: none;
    background: var(--mps-white);
    color: var(--mps-text);
    font: inherit;
    line-height: 1.45;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.mps-site .form-field textarea {
    min-height: 170px;
    resize: vertical;
}

.mps-site .form-field input:focus,
.mps-site .form-field textarea:focus {
    border-color: var(--mps-blue);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.mps-site .primary-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--mps-navy);
    color: var(--mps-white);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: transform 150ms ease, background-color 150ms ease;
}

.mps-site .primary-button:hover,
.mps-site .primary-button:focus-visible {
    transform: translateY(-1px);
    background: #243148;
}

.mps-site .form-message {
    margin: 0 0 24px;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 600;
}

.mps-site .form-message--success {
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #166534;
}

.mps-site .form-message--error {
    border: 1px solid #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.mps-site .honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

/* Footer */
.mps-site .site-footer {
    padding: 30px 20px calc(30px + env(safe-area-inset-bottom));
    background: var(--mps-navy);
    color: rgba(255, 255, 255, 0.82);
}

.mps-site .site-footer__inner {
    width: min(var(--mps-content-width), 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mps-site .site-footer p {
    margin: 0;
}

.mps-site .site-footer a {
    color: var(--mps-cyan);
    text-decoration: none;
}

.mps-site .site-footer a:hover,
.mps-site .site-footer a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 1040px) {
    .mps-site .site-header__inner {
        width: min(100% - 28px, 1240px);
        gap: 18px;
    }

    .mps-site .desktop-navigation ul {
        gap: 14px;
    }

    .mps-site .desktop-navigation a {
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    :root {
        --mps-header-height: 72px;
    }

    body.mps-site {
        padding-top: var(--mps-header-height);
    }

    .mps-site .site-header__inner {
        width: calc(100% - 28px);
    }

    .mps-site .site-logo {
        min-width: 0;
        max-width: min(62vw, 245px);
    }

    .mps-site .site-logo img {
        max-height: 48px;
    }

    .mps-site .desktop-navigation {
        display: none;
    }

    .mps-site .site-menu-toggle,
    .mps-site .mobile-navigation {
        display: block;
    }

    .mps-site .page-hero {
        min-height: clamp(340px, 74vw, 520px);
    }

    .mps-site .page-hero__content {
        width: calc(100% - 34px);
    }

    .mps-site .page-hero__shade {
        background: linear-gradient(0deg, rgba(17, 24, 39, 0.78) 0%, rgba(17, 24, 39, 0.3) 75%, rgba(17, 24, 39, 0.36) 100%);
    }
}

@media (max-width: 640px) {
    .mps-site .page-hero {
        min-height: 390px;
        align-items: end;
    }

    .mps-site .page-hero__content {
        padding: 54px 0 42px;
    }

    .mps-site .page-hero h1 {
        font-size: clamp(1.9rem, 9vw, 2.8rem);
    }

    .mps-site .page-hero__subtitle {
        margin-top: 16px;
    }

    .mps-site .page-hero--welcome .page-hero__media img,
    .mps-site .page-hero--contact .page-hero__media img {
        object-position: center center;
    }

    .mps-site .page-hero--you .page-hero__media img {
        object-position: 55% center;
    }

    .mps-site .page-hero--coaching .page-hero__media img {
        object-position: 62% center;
    }

    .mps-site .page-hero--nutrition .page-hero__media img {
        object-position: center center;
    }

    .mps-site .page-hero--injuries .page-hero__media img {
        object-position: 48% center;
    }

    .mps-site .content-section {
        padding: 34px 14px;
    }

    .mps-site .content-panel {
        padding: 24px 19px;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(17, 24, 39, 0.09);
    }

    .mps-site .content-panel h2 {
        margin-bottom: 18px;
    }

    .mps-site .service-list,
    .mps-site .contact-form {
        grid-template-columns: 1fr;
    }

    .mps-site .form-field--full {
        grid-column: auto;
    }

    .mps-site .primary-button {
        width: 100%;
    }

    .mps-site .site-footer__inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .mps-site .site-header__inner {
        width: calc(100% - 20px);
    }

    .mps-site .site-menu-toggle {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        padding: 9px;
    }

    .mps-site .page-hero__content {
        width: calc(100% - 26px);
    }

    .mps-site .content-section {
        padding-right: 10px;
        padding-left: 10px;
    }

    .mps-site .content-panel {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .mps-site *,
    .mps-site *::before,
    .mps-site *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Privacy policy page */
.mps-site .page-hero--compact {
    min-height: clamp(300px, 38vw, 470px);
}

.mps-site .page-hero--privacy .page-hero__media img {
    object-position: center 48%;
}

.mps-site .policy-content {
    max-width: 920px;
}

.mps-site .policy-introduction {
    margin-bottom: 32px;
    padding: 18px 20px;
    border-left: 4px solid var(--mps-cyan);
    border-radius: 0 10px 10px 0;
    background: #f0f9ff;
    color: var(--mps-navy-soft);
    font-weight: 600;
}

.mps-site .policy-section + .policy-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--mps-border);
}

.mps-site .policy-section h2 {
    margin: 0 0 14px;
    color: var(--mps-navy);
    font-size: clamp(1.25rem, 1.14rem + 0.5vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.mps-site .policy-section p {
    margin: 0 0 1em;
}

.mps-site .policy-section p:last-child {
    margin-bottom: 0;
}

.mps-site .policy-list {
    margin: 0 0 1.25em;
    padding-left: 1.4rem;
}

.mps-site .policy-list li {
    margin: 0.45em 0;
    padding-left: 0.25rem;
}

.mps-site .policy-list li::marker {
    color: var(--mps-blue);
}

.mps-site .policy-content a {
    color: #0369a1;
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.mps-site .policy-content a:hover,
.mps-site .policy-content a:focus-visible {
    color: var(--mps-navy);
}

@media (max-width: 640px) {
    .mps-site .page-hero--compact {
        min-height: 330px;
    }

    .mps-site .page-hero--privacy .page-hero__media img {
        object-position: center center;
    }

    .mps-site .policy-introduction {
        margin-bottom: 26px;
        padding: 16px;
    }

    .mps-site .policy-section + .policy-section {
        margin-top: 26px;
        padding-top: 26px;
    }
}

/* Tools page */
.mps-site .page-hero--tools .page-hero__media img {
    object-position: center 46%;
}

.mps-site .tools-panel {
    width: min(1240px, 100%);
    background: #eef3f8;
}

.mps-site .tools-introduction {
    max-width: 820px;
    margin-bottom: 42px;
}

.mps-site .tools-introduction h2 {
    margin-bottom: 14px;
}

.mps-site .tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 32px;
    align-items: start;
}

.mps-site .tool-card {
    position: relative;
    min-width: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid #ccd7e2;
    border-top: 5px solid var(--mps-blue);
    border-radius: 18px;
    background: var(--mps-white);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.10);
    scroll-margin-top: calc(var(--mps-header-height) + 24px);
}

.mps-site .tool-card:nth-child(2) {
    border-top-color: var(--mps-cyan);
}

.mps-site .tool-card:nth-child(3) {
    border-top-color: #2563eb;
}

.mps-site .tool-card:nth-child(4) {
    border-top-color: #0891b2;
}

.mps-site .tool-card--wide {
    grid-column: 1 / -1;
}

.mps-site .tool-card__heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e2e8f0;
}

.mps-site .tool-card__number {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    margin: 0;
    place-items: center;
    border: 1px solid #bae6fd;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

.mps-site .tool-card__heading h3 {
    margin: 0 0 8px;
    color: var(--mps-navy);
    font-size: clamp(1.3rem, 1.18rem + 0.5vw, 1.7rem);
    line-height: 1.2;
}

.mps-site .tool-card__heading p:not(.tool-card__number) {
    margin: 0;
    color: var(--mps-muted);
    font-size: 0.96rem;
    line-height: 1.55;
}

.mps-site .tool-form {
    width: 100%;
    max-width: 600px;
    margin: 0;
}

.mps-site .tool-card--wide .tool-form {
    max-width: none;
}

.mps-site .tool-fields {
    display: grid;
    gap: 15px;
    width: 100%;
    justify-content: start;
}

.mps-site .tool-fields--two {
    grid-template-columns: minmax(120px, 150px) minmax(140px, 175px);
}

.mps-site .tool-fields--four {
    grid-template-columns: minmax(105px, 130px) minmax(130px, 155px) minmax(82px, 100px) minmax(82px, 100px);
}

.mps-site .tool-fields--five {
    grid-template-columns: 90px 125px minmax(160px, 205px);
    max-width: 490px;
}

.mps-site .tool-field {
    min-width: 0;
}

.mps-site .tool-field > span {
    display: block;
    margin-bottom: 7px;
    color: var(--mps-navy);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
}

.mps-site .tool-field input,
.mps-site .tool-field select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 46px;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid #bdc8d4;
    border-radius: 9px;
    outline: none;
    background: var(--mps-white);
    color: var(--mps-text);
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.mps-site .tool-field select {
    padding-right: 32px;
}

.mps-site .tool-field input:focus,
.mps-site .tool-field select:focus {
    border-color: var(--mps-blue);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.mps-site .tool-fieldset {
    min-width: 0;
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid #dbe3eb;
    border-radius: 12px;
    background: #f8fafc;
}

.mps-site .tool-fieldset legend {
    margin-bottom: 10px;
    padding: 0;
    color: var(--mps-navy-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.mps-site .tool-submit {
    width: auto;
    min-width: 240px;
    max-width: 100%;
    margin-top: 20px;
}

.mps-site .secondary-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 1px solid #aebbc8;
    border-radius: 9px;
    background: var(--mps-white);
    color: var(--mps-navy);
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
}

.mps-site .secondary-button:hover,
.mps-site .secondary-button:focus-visible {
    border-color: var(--mps-blue);
    background: #f0f9ff;
}

.mps-site .secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.mps-site .tool-message {
    margin: 20px 0 0;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 0.94rem;
    font-weight: 600;
}

.mps-site .tool-message--error {
    border: 1px solid #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.mps-site .tool-result {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    background: #f0f9ff;
}

.mps-site .tool-result--centred {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.mps-site .tool-result--centred > span {
    color: var(--mps-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.mps-site .tool-result--centred > strong {
    color: var(--mps-navy);
    font-size: clamp(2rem, 1.6rem + 1.7vw, 3rem);
    line-height: 1.15;
}

.mps-site .tool-result--centred > small {
    color: var(--mps-muted);
    font-size: 0.85rem;
}

.mps-site .tool-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.mps-site .tool-metrics > div {
    min-width: 0;
    padding: 14px;
    border-radius: 10px;
    background: var(--mps-white);
    text-align: center;
}

.mps-site .tool-metrics span,
.mps-site .tool-metrics small {
    display: block;
    color: var(--mps-muted);
    font-size: 0.75rem;
    line-height: 1.3;
}

.mps-site .tool-metrics strong {
    display: block;
    margin: 4px 0;
    color: var(--mps-navy);
    font-size: 1.35rem;
    line-height: 1.2;
}

.mps-site .tool-result-list {
    margin: 0;
}

.mps-site .tool-result-list > div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid #d6edf7;
}

.mps-site .tool-result-list dt {
    color: var(--mps-navy);
    font-weight: 700;
}

.mps-site .tool-result-list dd {
    min-width: 0;
    margin: 0;
    color: var(--mps-text);
}

.mps-site .age-grade-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mps-site .age-grade-summary > div {
    min-width: 0;
    padding: 15px;
    border-radius: 10px;
    background: var(--mps-white);
    text-align: center;
}

.mps-site .age-grade-summary span,
.mps-site .age-grade-summary strong {
    display: block;
}

.mps-site .age-grade-summary span {
    color: var(--mps-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.mps-site .age-grade-summary strong {
    margin-top: 5px;
    color: var(--mps-navy);
    font-size: clamp(1.15rem, 1rem + 0.65vw, 1.55rem);
    line-height: 1.2;
}

.mps-site .age-grade-bar {
    height: 10px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
}

.mps-site .age-grade-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mps-blue), var(--mps-cyan));
}

.mps-site .aerobic-rows {
    display: grid;
    gap: 18px;
}

.mps-site .aerobic-row {
    display: grid;
    grid-template-columns: 140px 160px repeat(3, 100px) auto;
    gap: 12px;
    align-items: end;
    justify-content: start;
    padding: 16px;
    border: 1px solid var(--mps-border);
    border-radius: 12px;
    background: #f8fafc;
}

.mps-site .aerobic-remove {
    height: 46px;
    white-space: nowrap;
}

.mps-site .aerobic-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.mps-site .aerobic-chart {
    width: 100%;
    min-height: 420px;
    margin-top: 26px;
    overflow: hidden;
    border: 1px solid var(--mps-border);
    border-radius: 12px;
    background: var(--mps-white);
}

.mps-site .chart-placeholder {
    display: grid;
    min-height: 418px;
    margin: 0;
    padding: 30px;
    place-items: center;
    color: var(--mps-muted);
    text-align: center;
}

@media (max-width: 1080px) {
    .mps-site .tools-grid {
        grid-template-columns: 1fr;
    }

    .mps-site .tool-card--wide {
        grid-column: auto;
    }

    .mps-site .aerobic-row {
        grid-template-columns: 140px 160px repeat(3, 100px) auto;
    }
}

@media (max-width: 760px) {
    .mps-site .tool-fields--two,
    .mps-site .tool-fields--four,
    .mps-site .tool-fields--five {
        grid-template-columns: repeat(2, minmax(105px, 1fr));
        max-width: 430px;
    }

    .mps-site .tool-field--distance {
        grid-column: 1 / -1;
        max-width: 220px;
    }

    .mps-site .aerobic-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mps-site .aerobic-row .tool-field:first-child,
    .mps-site .aerobic-row .tool-field:nth-child(2) {
        grid-column: auto;
    }

    .mps-site .aerobic-remove {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .mps-site .page-hero--tools .page-hero__media img {
        object-position: 67% center;
    }

    .mps-site .tool-card {
        padding: 22px 16px;
        border-radius: 15px;
    }

    .mps-site .tool-card__heading {
        gap: 11px;
    }

    .mps-site .tool-fields--two,
    .mps-site .tool-fields--four,
    .mps-site .tool-fields--five,
    .mps-site .aerobic-row {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .mps-site .tool-field--distance,
    .mps-site .aerobic-remove {
        grid-column: auto;
    }

    .mps-site .tool-metrics,
    .mps-site .age-grade-summary {
        grid-template-columns: 1fr;
    }

    .mps-site .tool-result-list > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .mps-site .aerobic-actions {
        flex-direction: column;
    }

    .mps-site .aerobic-actions .primary-button,
    .mps-site .aerobic-actions .secondary-button {
        width: 100%;
    }

    .mps-site .aerobic-chart {
        min-height: 340px;
    }

    .mps-site .chart-placeholder {
        min-height: 338px;
        padding: 20px;
    }
}

/* Tools card alignment refinements ---------------------------------------- */
@media (min-width: 1081px) {
    .mps-site .tools-grid {
        align-items: stretch;
    }

    .mps-site .tool-card:not(.tool-card--wide) {
        display: flex;
        height: 100%;
        flex-direction: column;
    }

    .mps-site .tool-card:not(.tool-card--wide) .tool-form {
        display: flex;
        width: 100%;
        max-width: none;
        flex: 1;
        flex-direction: column;
        gap: 20px;
    }

    .mps-site .tool-card:not(.tool-card--wide) .tool-fieldset {
        margin-bottom: 0;
    }

    .mps-site .tool-card:not(.tool-card--wide) .tool-submit {
        align-self: flex-start;
        margin-top: auto;
    }
}

/* Two-column desktop/tablet layout: centre the final small card. */
@media (min-width: 1081px) and (max-width: 1199px) {
    .mps-site .tool-card:nth-child(3):not(.tool-card--wide) {
        grid-column: 1 / -1;
        width: calc((100% - 32px) / 2);
        justify-self: center;
    }
}

/* Wide desktop layout: three matching cards across one row. */
@media (min-width: 1200px) {
    .mps-site .tools-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mps-site .tool-card--wide {
        grid-column: 1 / -1;
    }

    .mps-site .tool-card:not(.tool-card--wide) .tool-card__heading {
        min-height: 126px;
    }

    .mps-site .tool-card:not(.tool-card--wide) .tool-fields--four,
    .mps-site .tool-card:not(.tool-card--wide) .tool-fields--five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .mps-site .tool-card:not(.tool-card--wide) .tool-fields--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mps-site .tool-card:not(.tool-card--wide) .tool-field--distance {
        grid-column: 1 / -1;
        max-width: none;
    }

    .mps-site .tool-card:not(.tool-card--wide) .tool-submit {
        min-width: 0;
    }
}
