* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #101827;
    color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: inherit;
}

.topbar {
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    text-align: center;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    text-decoration: none;
}

.brand-logo {
    height: 30px;
    width: auto;
}

.brand span {
    color: #67e8f9;
    font-size: 1.05rem;
    font-weight: 760;
}

.page-shell {
    margin: 0 auto;
    max-width: 1040px;
    padding: 30px 16px 58px;
}

.breadcrumb {
    color: rgba(248, 250, 252, 0.48);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 8px;
    margin-bottom: 22px;
}

.breadcrumb a {
    color: #67e8f9;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.hero-band,
.content-band,
.conversion-band,
.faq-band {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
}

.hero-band {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.045);
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 300px;
    margin-bottom: 18px;
    padding: 24px;
}

.dates-school-identity {
    align-items: center;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.dates-school-logo-frame {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 76px;
    height: 76px;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    width: 76px;
}

.dates-school-logo-img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.dates-school-logo-fallback {
    background: linear-gradient(135deg, #eff6ff 0%, #ccfbf1 100%);
    border-color: rgba(103, 232, 249, 0.35);
    color: #0f172a;
}

.dates-school-logo-initial {
    align-items: center;
    display: inline-flex;
    font-size: 2rem;
    font-weight: 900;
    height: 100%;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1;
    width: 100%;
}

.dates-school-identity-copy {
    min-width: 0;
}

.eyebrow,
.section-kicker {
    color: #67e8f9;
    font-size: 0.76rem;
    font-weight: 840;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: 0;
    line-height: 1.04;
    margin-bottom: 10px;
}

h2 {
    font-size: clamp(1.35rem, 4vw, 2rem);
    letter-spacing: 0;
    line-height: 1.14;
}

h3 {
    font-size: 1rem;
    letter-spacing: 0;
}

.location {
    color: rgba(248, 250, 252, 0.6);
    font-weight: 700;
    margin-bottom: 14px;
}

.lead,
.section-head p,
.conversion-band p,
.faq-band p,
.empty-state p {
    color: rgba(248, 250, 252, 0.72);
    font-size: 1rem;
    max-width: 680px;
}

.hero-actions,
.footer-links,
.term-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.primary-action,
.secondary-action {
    border-radius: 8px;
    display: inline-flex;
    font-weight: 820;
    justify-content: center;
    line-height: 1.25;
    padding: 12px 16px;
    text-decoration: none;
}

.school-dates-lead-card {
    background: rgba(2, 6, 23, 0.46);
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 8px;
    margin-top: 18px;
    padding: 16px;
}

.lead-label {
    color: #ffffff;
    display: block;
    font-size: 1rem;
    font-weight: 820;
    line-height: 1.3;
    margin-bottom: 10px;
}

.lead-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.lead-input {
    appearance: none;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 8px;
    color: #0f172a;
    font: inherit;
    min-height: 48px;
    min-width: 0;
    padding: 12px 13px;
    width: 100%;
}

.lead-input:focus {
    border-color: #67e8f9;
    box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.22);
    outline: none;
}

.lead-button {
    background: #0891b2;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 860;
    line-height: 1.2;
    min-height: 48px;
    padding: 12px 15px;
}

.lead-button:hover,
.primary-action:hover {
    background: #0e7490;
}

.lead-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.lead-helper {
    color: rgba(248, 250, 252, 0.68);
    font-size: 0.88rem;
    line-height: 1.45;
    margin-top: 9px;
}

.lead-message {
    font-size: 0.9rem;
    font-weight: 720;
    line-height: 1.4;
    margin-top: 10px;
    min-height: 1.2em;
}

.lead-message.success {
    color: #86efac;
}

.lead-message.error {
    color: #fecaca;
}

.primary-action {
    background: #0891b2;
    color: #ffffff;
}

.secondary-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(248, 250, 252, 0.9);
}

.date-summary {
    align-self: start;
    background: rgba(2, 6, 23, 0.46);
    border: 1px solid rgba(103, 232, 249, 0.2);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 16px;
}

.date-summary-hero {
    background: rgba(103, 232, 249, 0.12);
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 8px;
    padding: 14px;
}

.summary-kicker,
.date-summary-next span {
    color: rgba(248, 250, 252, 0.58);
    display: block;
    font-size: 0.72rem;
    font-weight: 880;
    letter-spacing: 0.07em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.date-summary-hero strong {
    color: #ffffff;
    display: block;
    font-size: 2.35rem;
    font-weight: 950;
    line-height: 1;
    margin-bottom: 7px;
}

.date-summary-hero span:last-child,
.date-summary-next strong,
.summary-foot {
    color: rgba(248, 250, 252, 0.72);
    display: block;
    font-size: 0.9rem;
    line-height: 1.35;
}

.summary-metric-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

.summary-metric-grid > div,
.date-summary-next {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
}

.summary-number {
    color: #ffffff;
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.summary-label {
    color: rgba(248, 250, 252, 0.62);
    display: block;
    font-size: 0.86rem;
    margin-top: 4px;
}

.summary-foot {
    color: rgba(248, 250, 252, 0.56);
    font-size: 0.82rem;
    padding: 0 2px;
}

.content-band,
.faq-band {
    background: rgba(255, 255, 255, 0.035);
    margin-top: 16px;
    padding: 22px;
}

.muted-band {
    background: rgba(255, 255, 255, 0.025);
}

.section-head {
    align-items: end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-head p {
    font-size: 0.9rem;
    max-width: 360px;
    text-align: right;
}

.key-date-list,
.date-list {
    display: grid;
    gap: 10px;
}

.key-dates-band {
    border-color: rgba(103, 232, 249, 0.16);
}

.key-date-row,
.date-row {
    align-items: start;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 13px;
}

.key-date-row {
    background: rgba(103, 232, 249, 0.055);
}

.date-badge {
    align-items: center;
    background: rgba(103, 232, 249, 0.1);
    border: 1px solid rgba(103, 232, 249, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 58px;
    justify-content: center;
}

.date-badge span {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
}

.date-badge small {
    color: #67e8f9;
    font-size: 0.72rem;
    font-weight: 820;
    margin-top: 3px;
    text-transform: uppercase;
}

.key-date-copy p,
.date-row-copy p,
.history-item small,
.history-item span,
.term-row span,
.holiday-row span {
    color: rgba(248, 250, 252, 0.62);
}

.action-hint {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 7px;
    color: #fde68a;
    display: inline-block;
    font-size: 0.86rem;
    font-weight: 720;
    margin-top: 8px;
    padding: 5px 8px;
}

.term-grid,
.history-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.term-year,
.history-item,
.holiday-list {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px;
}

.term-year h3,
.holiday-list h3 {
    margin-bottom: 10px;
}

.term-row,
.holiday-row {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 0;
}

.term-row.current strong {
    color: #67e8f9;
}

.term-status-pill {
    background: rgba(103, 232, 249, 0.1);
    border: 1px solid rgba(103, 232, 249, 0.2);
    border-radius: 999px;
    color: #cffafe;
    font-size: 0.84rem;
    font-weight: 760;
    padding: 7px 11px;
}

.holiday-list {
    margin-top: 12px;
}

.source-note {
    color: rgba(248, 250, 252, 0.58);
    font-size: 0.86rem;
    line-height: 1.5;
    margin-top: 14px;
}

.history-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-item strong {
    color: #67e8f9;
}

.conversion-band {
    align-items: center;
    background: rgba(8, 145, 178, 0.12);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 16px;
    padding: 22px;
}

.empty-state .primary-action {
    margin-top: 16px;
}

.faq-band details {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 14px 0;
}

.faq-band details:first-of-type {
    margin-top: 12px;
}

.faq-band summary {
    cursor: pointer;
    font-weight: 780;
}

.faq-band p {
    font-size: 0.92rem;
    margin-top: 8px;
}

.footer-links {
    justify-content: center;
    margin-top: 26px;
}

.footer-links a {
    color: #67e8f9;
    font-size: 0.88rem;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .hero-band {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .dates-school-identity {
        align-items: flex-start;
    }

    .section-head,
    .conversion-band {
        align-items: start;
        flex-direction: column;
    }

    .section-head p {
        max-width: none;
        text-align: left;
    }

    .date-row {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .term-row,
    .holiday-row {
        align-items: start;
        flex-direction: column;
        gap: 4px;
    }

    .primary-action,
    .secondary-action,
    .lead-button {
        width: 100%;
    }

    .lead-row {
        grid-template-columns: 1fr;
    }

}

/* ============================================================
   Light date-page theme
   ============================================================ */
body {
    background: #faf9f6;
    color: #1f2937;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.brand-logo {
    display: none;
}

.brand,
.brand span {
    color: #111827;
    font-weight: 800;
}

.breadcrumb,
.breadcrumb a {
    color: #6b7280;
}

.page-shell {
    max-width: 1040px;
}

.hero-band,
.content-band,
.conversion-band,
.faq-band,
.muted-band {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    color: #1f2937;
}

h1,
h2,
h3,
.hero-copy h1,
.date-summary-hero strong,
.summary-number,
.key-date-copy h3,
.date-row-copy h3,
.term-row strong,
.holiday-row strong,
.faq-band summary {
    color: #111827;
}

.hero-copy h1 {
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
}

.lead,
.location,
.section-head p,
.conversion-band p,
.faq-band p,
.empty-state p,
.key-date-copy p,
.date-row-copy p,
.history-item span,
.history-item small,
.term-row span,
.holiday-row span,
.summary-label,
.summary-foot,
.lead-helper,
.source-note {
    color: #4b5563;
}

.eyebrow,
.section-kicker,
.summary-kicker,
.date-summary-next span,
.history-item strong {
    color: #1d4ed8;
}

.date-summary-next strong {
    color: #111827;
}

.dates-school-logo-frame {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    height: 88px;
    width: 88px;
}

.dates-school-logo-img {
    height: 74px;
    object-fit: contain;
    width: 74px;
}

.dates-school-logo-fallback {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.dates-school-logo-initial {
    color: #1d4ed8;
}

.school-dates-lead-card,
.date-summary,
.date-summary-hero,
.date-summary-next,
.summary-metric-grid > div,
.key-date-row,
.date-row,
.term-year,
.history-item,
.holiday-list {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

.date-summary {
    align-self: stretch;
}

.date-summary-hero,
.summary-metric-grid > div,
.date-summary-next,
.key-date-row {
    background: #f8fafc;
}

.school-dates-lead-card input {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
}

.school-dates-lead-card input::placeholder {
    color: #9ca3af;
}

.lead-input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.16);
}

.lead-button,
.primary-action {
    background: #1d4ed8;
    color: #ffffff;
}

.lead-button:hover,
.primary-action:hover {
    background: #1e40af;
}

.secondary-action {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #1d4ed8;
}

.date-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.date-badge span,
.date-badge small {
    color: #1d4ed8;
}

.action-hint {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.term-row,
.holiday-row {
    border-top: 1px solid #e5e7eb;
}

.term-row.current {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    margin: 6px 0;
    padding: 10px 12px;
}

.term-row.current strong {
    align-items: center;
    color: #1d4ed8;
    display: inline-flex;
    gap: 8px;
}

.term-row.current strong::after {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    content: "Current";
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    padding: 4px 7px;
    text-transform: uppercase;
}

.term-status-pill {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.conversion-band {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.faq-band details {
    border-top: 1px solid #e5e7eb;
}

.footer-links,
.ss-footer {
    color: #6b7280;
    font-size: 0.8rem;
    margin: 30px 0 10px;
    text-align: center;
}

.footer-links a,
.ss-footer a {
    color: #4b5563;
    text-decoration: none;
}

.footer-links a:hover,
.ss-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .page-shell {
        padding: 18px 12px 44px;
    }

    .hero-band,
    .content-band,
    .conversion-band,
    .faq-band {
        padding: 18px;
    }

    .dates-school-identity {
        align-items: start;
        display: grid;
        gap: 12px;
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .dates-school-logo-frame {
        height: 64px;
        width: 64px;
    }

    .dates-school-logo-img {
        height: 52px;
        width: 52px;
    }

    .summary-metric-grid,
    .term-grid,
    .history-grid {
        grid-template-columns: 1fr;
    }

    .term-row,
    .holiday-row {
        align-items: center;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        display: grid;
        gap: 8px;
        grid-template-columns: 74px minmax(0, 1fr);
        margin-top: 8px;
        padding: 10px;
    }

    .term-row.current {
        grid-template-columns: minmax(0, 1fr);
    }

    .term-row.current strong {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: space-between;
        min-width: 0;
    }

    .term-row.current strong::after {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .term-row span,
    .holiday-row span {
        text-align: left;
    }
}
