/* Shared Stitch base styles. Keep scrollbars visible for orientation. */
html, body { margin: 0; padding: 0; }
body {
    overscroll-behavior: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: #dfe2ef;
    background: #0f131c;
}
main > :first-child { margin-top: 0 !important; }
main > :last-child { margin-bottom: 0 !important; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #89ceff;
    outline-offset: 4px;
}
.skip-link {
    position: absolute;
    top: .5rem;
    left: 1rem;
    z-index: 100;
    padding: .75rem 1rem;
    background: #0a0e17;
    transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.site-header-inner { min-height: 5rem; padding-block: 1rem; flex-wrap: wrap; }
.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .25rem;
    border-radius: .5rem;
    background: #1c1f29;
}
.site-nav a {
    display: block;
    padding: .625rem 1rem;
    border-radius: .5rem;
    color: #c6c6cd;
    text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
    background: #262a34;
    color: #dfe2ef;
}
.site-nav a[aria-current="page"] { font-weight: 600; }
.site-menu-toggle { display: none; }
.site-menu-close-icon { display: none; }
.site-menu-toggle[aria-expanded="true"] .site-menu-icon { display: none; }
.site-menu-toggle[aria-expanded="true"] .site-menu-close-icon { display: block; }
@media (max-width: 1279px) {
    .site-nav { order: 3; width: 100%; }
}
@media (max-width: 767px) {
    .site-brand-text { display: none; }
    .site-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #45464d;
        border-radius: .5rem;
        color: #dfe2ef;
        background: #1c1f29;
        cursor: pointer;
    }
    .site-header-inner .site-nav,
    .site-header-inner .site-header-actions { display: none; }
    .site-header-inner.is-menu-open .site-nav { display: flex; flex-direction: column; }
    .site-header-inner.is-menu-open .site-header-actions { display: flex; }
    .site-header-actions { order: 4; width: 100%; }
    .site-nav a { width: 100%; }
}
.page-content { max-width: 1240px; margin: 0 auto; padding: 3rem 1.5rem; min-height: 40vh; }
.page-content h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; }
.page-content h2 { font-size: 1.75rem; font-weight: 600; margin-top: 2.5rem; }
.page-content p { margin-block: 1rem; }
.page-content a { color: #89ceff; text-decoration: underline; }
.page-content a.contact-whatsapp { color: #090d16; text-decoration: none; }

/* Editable contact and provider pages use the shared Stitch palette. */
.info-page { max-width: 52rem; overflow-wrap: anywhere; }
.info-eyebrow { color: #89ceff; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.info-card { background: #181c25; border: 1px solid #45464d; border-radius: .75rem; padding: clamp(1rem, 4vw, 2rem); margin-block: 1.5rem; }
.info-card h2 { margin-top: 0; font-size: 1.4rem; line-height: 1.4; }
.info-card dt { margin-top: 1rem; font-weight: 600; }
.info-card dd { margin: .25rem 0 0; color: #c6c6cd; }
.info-card label { display: block; font-weight: 600; margin-bottom: .5rem; }
.info-card input:not([type="hidden"]), .info-card textarea { width: 100%; padding: .75rem; border: 1px solid #45464d; border-radius: .5rem; background: #0f131c; color: #dfe2ef; font: inherit; resize: vertical; }
.info-card input:focus-visible, .info-card textarea:focus-visible { outline: 3px solid #89ceff; outline-offset: 4px; }

/* Full-width Stitch homepage; placeholder typography stays scoped to .page-content. */
.home-content { overflow-wrap: anywhere; }
.home-content .material-symbols-outlined { flex-shrink: 0; }

/* Training cards use flex utilities; hidden must take precedence. */
.topic-card[hidden] { display: none; }
.home-content summary { cursor: pointer; list-style: none; }
.home-content summary::-webkit-details-marker { display: none; }
.home-content details[open] summary .material-symbols-outlined { transform: rotate(180deg); }

/* Native prototype dialogs keep focus inside and support Escape automatically. */
.prototype-dialog {
    margin: auto;
    width: min(42rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    border: 1px solid #45464d;
    overflow-y: auto;
}
.prototype-dialog::backdrop { background: rgb(10 14 23 / 80%); }

.contact-submit { border: 0; border-radius: .5rem; padding: .9rem 1.5rem; background: #89ceff; color: #090d16; font: inherit; font-weight: 700; cursor: pointer; }
.contact-submit:hover { background: #b4e0ff; }
.contact-error, .contact-success { padding: 1rem; border: 1px solid; border-radius: .5rem; }
.contact-error { border-color: #ffb4ab; }
.contact-error ul { list-style: disc; padding-left: 1.25rem; }
.contact-success { border-color: #25d366; }
