@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

:root {
    --bg: #07111f;
    --bg-soft: #0a1830;
    --bg-alt: #102645;
    --surface: rgba(17, 41, 70, 0.82);
    --surface-strong: rgba(20, 52, 92, 0.95);
    --surface-light: rgba(255, 255, 255, 0.08);
    --surface-border: rgba(255, 255, 255, 0.12);
    --surface-border-strong: rgba(255, 255, 255, 0.22);
    --text: #f4f8fd;
    --text-soft: #d4e4f6;
    --text-muted: #9bb3cf;
    --primary: #1f79ff;
    --primary-strong: #0d5ad1;
    --secondary: #16b978;
    --warning: #ffb84d;
    --danger: #ff6b6b;
    --success: #80efbf;
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.14);
    --shadow-md: 0 20px 45px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.28);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --container: 1180px;
    --transition: 0.28s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Satoshi', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(31, 121, 255, 0.14), transparent 26%),
        radial-gradient(circle at top right, rgba(22, 185, 120, 0.08), transparent 18%),
        linear-gradient(180deg, #07111f 0%, #081423 45%, #0b1d34 100%);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.narrow-content,
.form-container {
    max-width: 980px;
}

.skip-link {
    position: absolute;
    top: -44px;
    left: 12px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 10px;
    background: #ffffff;
    color: #07111f;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 16, 29, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.brand-copy span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 1rem;
}

.nav-toggle {
    display: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    color: var(--text-soft);
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 999px;
    transition: var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.hero-banner {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(110deg, rgba(7, 17, 31, 0.96) 8%, rgba(7, 17, 31, 0.78) 45%, rgba(7, 17, 31, 0.58) 100%);
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at left center, rgba(31, 121, 255, 0.18), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent);
    pointer-events: none;
}

.hero-banner-inner {
    position: relative;
    z-index: 1;
    min-height: 400px;
    padding: 56px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 36px;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #9fd1ff;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0 0 18px;
    line-height: 0.96;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-copy h1 {
    font-size: clamp(2.9rem, 6vw, 5.4rem);
    max-width: 10ch;
}

.hero-copy p,
.page-hero p,
.section-copy,
.registration-type-card p,
.registration-division-row p,
.review-card p,
.review-panel p,
.payment-step p,
.payment-detail-card p,
.field-help,
.empty-state,
.site-footer p,
.site-footer li,
.form-required-note,
.callout p {
    color: var(--text-soft);
}

.hero-copy p {
    font-size: 1.12rem;
    max-width: 58ch;
}

.hero-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.hero-card img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(7, 17, 31, 0.3) 100%);
    pointer-events: none;
}

.page-hero {
    padding: 54px 0 24px;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4.8vw, 4.15rem);
}

.page-hero p {
    max-width: 64ch;
    font-size: 1.05rem;
}

.section {
    padding: 72px 0;
}

.section-muted {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.035));
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.section-dark {
    background: linear-gradient(180deg, rgba(5,12,21,0.55), rgba(7,17,31,0.2));
}

.section-heading,
.registration-intro,
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.section-heading h2,
.registration-intro h2,
.callout h2,
.review-panel h2,
.success-panel h2,
.payment-notice h2 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.05;
}

.section-heading p,
.registration-intro p {
    margin: 0;
}

.text-link,
.card-link {
    color: #97ccff;
    font-weight: 700;
}

.text-link:hover,
.card-link:hover {
    color: #c5e3ff;
}

.button,
.btn,
.card-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.button:hover,
.btn:hover,
.card-button:hover {
    transform: translateY(-2px);
}

.button-primary,
.btn-primary,
.button-light {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #39a0ff);
    box-shadow: 0 14px 28px rgba(31, 121, 255, 0.24);
}

.button-outline,
.btn-outline,
.button-secondary,
.btn-secondary {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.button-outline:hover,
.btn-outline:hover,
.button-secondary:hover,
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
}

.button-light:hover {
    box-shadow: 0 18px 32px rgba(31, 121, 255, 0.32);
}

.callout,
.review-panel,
.success-panel,
.payment-notice,
.payment-step,
.payment-detail-card,
.registration-type-card,
.registration-division-row,
.division-card,
.announcement-card,
.info-card,
fieldset,
.empty-state,
.review-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.callout,
.review-panel,
.success-panel,
.payment-notice,
.payment-step,
.payment-detail-card,
.announcement-card,
.info-card,
.empty-state,
.review-card {
    padding: 24px;
}

.announcement-grid,
.division-grid,
.registration-type-grid,
.review-grid,
.payment-steps,
.payment-details-grid,
.form-grid {
    display: grid;
    gap: 20px;
}

.announcement-grid,
.division-grid,
.registration-type-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.registration-type-card,
.division-card {
    display: block;
    padding: 24px;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.registration-type-card:hover,
.division-card:hover {
    transform: translateY(-6px);
    border-color: rgba(31, 121, 255, 0.34);
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
}

.registration-type-card h3,
.registration-division-row h3,
.division-card h3,
.announcement-card h3,
.review-card h3,
.review-panel h3,
.info-card h3,
.payment-detail-card h3,
.payment-step h2 {
    margin: 0 0 10px;
}

.registration-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.registration-division-list {
    display: grid;
    gap: 18px;
}

.registration-division-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 22px;
}

.registration-division-meta {
    text-align: right;
}

.day-badge,
.status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.day-badge {
    margin-bottom: 10px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.08);
}

.status-open {
    background: rgba(22, 185, 120, 0.16);
    color: #a7f4d0;
}

.status-pending {
    background: rgba(255, 184, 77, 0.16);
    color: #ffd494;
}

.status-closed {
    background: rgba(255, 107, 107, 0.16);
    color: #ffd6d6;
}

.price {
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
}

.check-list {
    margin: 0;
    padding-left: 20px;
}

.check-list li + li {
    margin-top: 10px;
}

.form-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-progress span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-weight: 700;
}

.form-progress .is-current {
    background: linear-gradient(135deg, var(--primary), #39a0ff);
    color: #ffffff;
}

.form-errors {
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 107, 0.22);
    background: rgba(150, 39, 60, 0.16);
    color: #ffd9df;
    box-shadow: var(--shadow-sm);
}

.form-errors h2,
.form-errors h3 {
    margin-top: 0;
    color: #ffffff;
}

fieldset {
    margin: 0 0 20px;
    padding: 24px;
}

legend {
    padding: 0 8px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.form-grid,
.review-grid,
.payment-steps,
.payment-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field-full {
    grid-column: 1 / -1;
}

label {
    font-weight: 700;
    color: var(--text);
}

input,
select,
textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(7, 17, 31, 0.56);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: #88a2c0;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(69, 155, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(31, 121, 255, 0.16);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.checkbox-list {
    display: grid;
    gap: 14px;
}

.checkbox-list label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    line-height: 1.6;
}

.checkbox-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 4px;
    flex: 0 0 18px;
}

.field-help {
    margin: 0;
    font-size: 0.95rem;
}

.notice-success,
.notice-warning,
.notice-danger {
    padding: 18px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.notice-success {
    border: 1px solid rgba(22, 185, 120, 0.28);
    background: rgba(22, 185, 120, 0.12);
    color: #cbffe7;
}

.notice-warning {
    border: 1px solid rgba(255, 184, 77, 0.28);
    background: rgba(255, 184, 77, 0.12);
    color: #ffe6bd;
}

.notice-danger {
    border: 1px solid rgba(255, 107, 107, 0.28);
    background: rgba(255, 107, 107, 0.12);
    color: #ffd6d6;
}

.success-panel strong {
    color: #ffffff;
}

.success-details p {
    margin: 0 0 8px;
}

.payment-notice {
    display: grid;
    gap: 18px;
}

.payment-notice-icon,
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.payment-step h2 {
    font-size: 1.25rem;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.12);
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

th {
    color: #d7e7fb;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: none;
}

.empty-state {
    padding: 24px;
}

.site-footer {
    padding: 36px 0 50px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 24px;
}

.footer-block h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li {
    margin-top: 8px;
}

.site-footer a {
    color: #a8d4ff;
}

.site-footer a:hover {
    color: #d5ebff;
}

.footer-bottom {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1024px) {
    .hero-banner-inner {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 12ch;
    }

    .hero-gallery {
        max-width: 760px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .header-inner {
        min-height: 76px;
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.12);
        background: rgba(255,255,255,0.05);
        color: #ffffff;
    }

    .site-nav {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 4px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 14px 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .section-heading,
    .registration-intro,
    .form-actions,
    .registration-division-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .registration-division-row,
    .form-grid,
    .review-grid,
    .payment-steps,
    .payment-details-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .registration-division-meta {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 20px));
    }

    .brand img {
        width: 52px;
        height: 52px;
    }

    .brand-copy strong {
        font-size: 1.45rem;
    }

    .brand-copy span {
        font-size: 0.92rem;
    }

    .hero-banner-inner {
        min-height: auto;
        padding: 38px 0 34px;
        gap: 24px;
    }

    .hero-copy h1 {
        font-size: clamp(2.3rem, 12vw, 3.9rem);
        max-width: 9ch;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .hero-gallery {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .hero-card img {
        min-height: 220px;
    }

    .section {
        padding: 54px 0;
    }

    .page-hero {
        padding: 40px 0 18px;
    }

    fieldset,
    .review-card,
    .review-panel,
    .success-panel,
    .payment-step,
    .payment-detail-card,
    .payment-notice,
    .registration-type-card,
    .registration-division-row,
    .division-card,
    .announcement-card,
    .callout,
    .empty-state {
        padding: 18px;
    }

    .button,
    .btn,
    .card-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Floating banner logo: no box, border, or background. */
.hero-logo-card,
.hero-logo-card:hover {
    display: grid;
    place-items: center;
    margin: 0;
    padding: 18px;
    min-width: 0;
    min-height: 220px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.hero-logo-card::after {
    display: none;
}

.hero-logo-card img {
    display: block;
    width: min(100%, 300px);
    height: auto;
    min-height: 0;
    max-height: 320px;
    margin: auto;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    filter: drop-shadow(0 12px 20px rgba(31, 121, 255, 0.3));
}

/* Remove the white backing from the navigation logo too. */
.brand img {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.hero-photo-card {
    margin: 0;
}

@keyframes liga-logo-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-logo-card img {
        animation: liga-logo-float 5s ease-in-out infinite;
    }
}

@media (max-width: 640px) {
    .hero-logo-card {
        min-height: 190px;
        padding: 16px;
    }

    .hero-logo-card img {
        width: min(75%, 240px);
        min-height: 0;
        max-height: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo-card img {
        animation: none;
        transform: none;
    }
}

/* Final override: remove all logo container backgrounds. */
.hero-gallery .hero-logo-card,
.hero-gallery .hero-logo-card:hover {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.hero-gallery .hero-logo-card::before,
.hero-gallery .hero-logo-card::after {
    display: none !important;
}

.hero-gallery .hero-logo-card img,
.site-header .brand img {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
/* Logo-only homepage banner. */
.hero-banner-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
}

.hero-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
    min-width: 0;
}

.hero-gallery .hero-logo-card {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 20px 0;
}

.hero-gallery .hero-logo-card img {
    width: 100%;
    max-width: 600px;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: auto;
    object-fit: contain;
}

/* Stack text and logo on tablets and phones. */
@media (max-width: 1024px) {
    .hero-banner-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-gallery {
        max-width: 600px;
        margin-inline: auto;
    }
}

@media (max-width: 640px) {
    .hero-banner-inner {
        gap: 16px;
    }

    .hero-gallery .hero-logo-card {
        padding: 16px 0;
    }

    .hero-gallery .hero-logo-card img {
        width: 100%;
        max-width: 480px;
        max-height: none;
    }
}
/* ==================================================
   Liga Mundial: responsive visual refresh
   Existing names, markup, and functionality preserved.
   ================================================== */

:root {
    --primary: #3366ff;
    --primary-strong: #244bd1;
    --secondary: #35e2b0;
    --text: #f5f7ff;
    --text-soft: #d8e2f4;
    --text-muted: #afbdd5;
    --surface-border: rgba(153, 176, 255, 0.2);
    --radius-md: 20px;
}

body {
    background:
        radial-gradient(
            ellipse at top left,
            rgba(83, 65, 220, 0.2),
            transparent 40rem
        ),
        radial-gradient(
            ellipse at top right,
            rgba(25, 181, 155, 0.12),
            transparent 35rem
        ),
        linear-gradient(180deg, #090f20, #101d35);
}

/* Visible keyboard focus across the website. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #70f0cf;
    outline-offset: 4px;
}

.container {
    width: min(var(--container), calc(100% - 40px));
}

main,
.header-inner,
.brand,
.hero-copy,
.hero-gallery,
.division-card,
.announcement-card,
.registration-type-card,
.registration-division-row,
.footer-block {
    min-width: 0;
}

h1,
h2,
h3 {
    overflow-wrap: break-word;
}

p,
td,
.footer-block a {
    overflow-wrap: anywhere;
}

/* Header and navigation. */
.site-header {
    background: rgba(9, 15, 32, 0.96);
    border-bottom: 1px solid rgba(134, 156, 255, 0.2);
}

.header-inner {
    gap: 16px;
}

.brand-copy strong {
    color: #ffffff;
    letter-spacing: -0.04em;
}

.brand-copy span {
    color: #b9c8e2;
}

.site-nav {
    gap: 4px;
}

.site-nav a {
    padding: 11px 13px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(112, 130, 255, 0.16);
}

.site-nav a[aria-current="page"] {
    color: #ffffff;
    background: linear-gradient(135deg, #4533b8, #2448aa);
    box-shadow: inset 0 0 0 1px rgba(174, 184, 255, 0.25);
}

/* Preserve the logo-only banner and its transparency. */
.hero-banner {
    background:
        radial-gradient(
            ellipse at 80% 50%,
            rgba(51, 102, 255, 0.18),
            transparent 60%
        ),
        linear-gradient(125deg, #10152e, #10243a);
}

.hero-banner-inner {
    padding-block: 44px;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    line-height: 1.03;
    max-width: 12ch;
}

.hero-copy p {
    color: #d8e2f4;
    line-height: 1.75;
}

.eyebrow {
    color: #75efd0;
    letter-spacing: 0.12em;
}

/* Compact sections and stronger headings. */
.section {
    padding-block: 52px;
}

.page-hero {
    padding: 42px 0 20px;
}

.page-hero h1 {
    line-height: 1.08;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2,
.registration-intro h2 {
    line-height: 1.12;
}

.section-muted {
    background: rgba(126, 147, 255, 0.035);
    border-color: rgba(153, 176, 255, 0.12);
}

/* Grids remain usable on narrow screens. */
.announcement-grid,
.division-grid,
.registration-type-grid {
    grid-template-columns:
        repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 18px;
}

.division-card,
.announcement-card,
.registration-type-card,
.info-card,
.registration-division-row,
.callout,
.review-card,
.review-panel,
.payment-step,
.payment-detail-card {
    background: linear-gradient(145deg, #1a2945, #121e35);
    border-color: rgba(153, 176, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.division-card {
    border-top: 3px solid #8d9dff;
}

.announcement-card {
    border-top: 3px solid #66e4c3;
}

.registration-type-card {
    border-top: 3px solid #ffbb75;
}

.division-card h3,
.registration-type-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    line-height: 1.3;
}

.division-card .price {
    margin-block: 16px;
    font-size: 1.65rem;
    color: #ffffff;
}

.day-badge {
    color: #e1e6ff;
    background: #303c63;
}

.status {
    font-weight: 800;
}

.status-open {
    color: #b7ffe2;
    background: #164c40;
}

.status-pending {
    color: #ffe0a5;
    background: #51401f;
}

.status-closed {
    color: #ffd2d8;
    background: #572b3b;
}

/* Open status links remain recognizable and touch-friendly. */
a.status {
    min-height: 44px;
    gap: 8px;
    margin-block: 12px;
    border: 1px solid rgba(128, 239, 191, 0.4);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a.status:hover {
    background: #1d6150;
    color: #ffffff;
}

.text-link,
.card-link,
.site-footer a {
    color: #b8cbff;
}

.text-link:hover,
.card-link:hover,
.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Solid, readable buttons. */
.button-primary,
.btn-primary,
.button-light {
    background: linear-gradient(135deg, #6041d8, #2459c9);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(51, 78, 200, 0.25);
}

.button-outline,
.btn-outline,
.button-secondary,
.btn-secondary {
    border-color: #6b7eab;
    background: #1b2943;
}

.button,
.btn,
.card-button {
    text-align: center;
    white-space: normal;
}

.form-actions {
    flex-wrap: wrap;
    align-items: center;
}

/* Form controls and native dropdown options. */
input,
select,
textarea {
    background: #0c172b;
    border-color: #667b9b;
    color: #f5f7ff;
}

select option,
select optgroup {
    background: #101d35;
    color: #f5f7ff;
}

/* Do not apply text-field dimensions to hidden/choice inputs. */
input[type="hidden"] {
    display: none;
}

input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    accent-color: #3366ff;
}

/* Tables scroll within their wrapper, not the whole page. */
.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrap table {
    min-width: 600px;
}

th {
    background: rgba(100, 121, 195, 0.15);
    color: #e7edff;
}

.site-footer {
    background: rgba(5, 10, 22, 0.4);
}

/* Tablet header: prevent logo/navigation crowding. */
@media (min-width: 861px) and (max-width: 1100px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding-block: 12px;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 860px) {
    .header-inner {
        gap: 12px;
    }

    .nav-toggle {
        min-width: 46px;
        min-height: 46px;
        background: #233456;
        border-color: #65789f;
    }

    .site-nav {
        gap: 6px;
    }

    .site-nav a {
        min-height: 46px;
        padding: 12px 16px;
        border-radius: 12px;
        border-bottom: 0;
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 28px);
    }

    .section {
        padding-block: 36px;
    }

    .page-hero {
        padding: 30px 0 14px;
    }

    .hero-banner-inner {
        padding-block: 30px;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 10vw, 3.7rem);
        max-width: 13ch;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .section-heading {
        gap: 12px;
        margin-bottom: 20px;
    }

    .announcement-grid,
    .division-grid,
    .registration-type-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-actions {
        width: 100%;
        gap: 12px;
    }

    .form-actions > .button,
    .form-actions > .btn {
        width: 100%;
    }

    fieldset {
        min-width: 0;
    }

    .form-progress {
        gap: 8px;
        padding: 12px;
    }

    .form-progress span {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .info-card,
    .callout,
    .division-card,
    .announcement-card,
    .registration-type-card,
    .registration-division-row {
        padding: 18px;
    }
}

/* Hover movement only on devices with a precise pointer. */
@media (hover: hover) and (pointer: fine) {
    .division-card:hover,
    .registration-type-card:hover {
        border-color: #9aaaff;
    }
}

@media (hover: none) {
    .division-card:hover,
    .registration-type-card:hover,
    .hero-card:hover,
    .button:hover,
    .btn:hover,
    .card-button:hover {
        transform: none;
    }
}

/* Deep dark-blue page background. */
:root {
    --bg: #030f22;
    --bg-soft: #0c2f61;
    --bg-alt: #1b3d66;
}

body {
    background: linear-gradient(
        180deg,
        #06152b 0%,
        #0a1d38 55%,
        #102b4d 100%
    );
    background-attachment: fixed;
}

/* Keep schedule status badges compact and on one line.
   Supports both the original and updated schedule table. */
.table-wrap table th:last-child,
.table-wrap table td:last-child {
    min-width: 110px;
}

.table-wrap table td:last-child .status {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px 9px !important;

    font-size: 12px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;

    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}