:root {
    --bg: #f6f9fc;
    --surface: #ffffff;
    --surface-2: #eef6ff;
    --ink: #101827;
    --muted: #5e6b80;
    --line: #dbe5f1;
    --brand: #0a8fdc;
    --brand-2: #0f5fb8;
    --accent: #16b981;
    --warning: #f6c343;
    --shadow: 0 22px 70px rgba(15, 41, 77, .12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 100;
    transform: translateY(-120%);
    background: var(--ink);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(219, 229, 241, .86);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    font-weight: 900;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 28px rgba(10, 143, 220, .25);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
    letter-spacing: -.02em;
}

.brand small {
    color: var(--muted);
    font-size: .78rem;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.primary-nav a {
    color: #334155;
    font-weight: 700;
    font-size: .94rem;
    padding: 10px 12px;
    border-radius: 10px;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: var(--brand-2);
    background: #eaf5ff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 10px;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.btn-lg {
    min-height: 50px;
    padding: 14px 20px;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 14px 30px rgba(10, 143, 220, .2);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-ghost {
    color: var(--brand-2);
    background: #eef7ff;
    border-color: #cde8ff;
}

.btn-white {
    color: var(--ink);
    background: white;
    border-color: rgba(255, 255, 255, .7);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 76px;
    background:
        radial-gradient(circle at 12% 10%, rgba(22, 185, 129, .18), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(10, 143, 220, .2), transparent 26%),
        linear-gradient(135deg, #f8fcff 0%, #edf7ff 48%, #e7fff6 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .72fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--brand-2);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(2.35rem, 4vw, 4.8rem);
    line-height: .98;
    letter-spacing: -.045em;
}

h2 {
    margin: 0;
    font-size: clamp(1.8rem, 2.5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

h3 {
    margin: 0 0 8px;
    line-height: 1.2;
}

.hero-text,
.section-head p,
.split p,
.cta-inner p,
.prose-box p,
.error-box p {
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-text {
    max-width: 640px;
    margin: 22px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.trust-strip span {
    padding: 8px 12px;
    border: 1px solid rgba(15, 95, 184, .15);
    border-radius: 999px;
    color: #1e4f86;
    background: rgba(255, 255, 255, .64);
    font-weight: 800;
    font-size: .86rem;
}

.hero-panel {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.panel-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 800;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 7px rgba(22, 185, 129, .14);
}

.metric-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.metric-list div,
.info-card,
.process-card,
.student-card,
.empty-state,
.prose-box,
.error-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.metric-list div {
    padding: 18px;
}

.metric-list strong {
    display: block;
    color: var(--brand-2);
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: -.04em;
}

.metric-list span {
    color: var(--muted);
    font-weight: 800;
    font-size: .9rem;
}

.section {
    padding: 76px 0;
}

.section-muted {
    background: #eef6ff;
}

.section-head {
    max-width: 780px;
    margin-bottom: 28px;
}

.row-head {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card {
    padding: 24px;
    min-height: 210px;
}

.info-card p,
.student-card p,
.site-footer p,
.process-card span {
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
    gap: 36px;
    align-items: center;
}

.process-card {
    padding: 10px;
}

.process-card ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.process-card li {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.process-card li:last-child {
    border-bottom: 0;
}

.process-card strong {
    color: var(--brand-2);
}

.process-card span {
    display: block;
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.student-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px;
}

.student-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    font-size: 1.4rem;
    font-weight: 900;
}

.student-card p {
    margin: 0;
}

.student-card span {
    display: inline-flex;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--brand-2);
    font-size: .78rem;
    font-weight: 900;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
    border-style: dashed;
}

.cta-band {
    padding: 0 0 82px;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    border-radius: 24px;
    color: white;
    background: linear-gradient(135deg, #0f5fb8, #0a8fdc 58%, #16b981);
    box-shadow: var(--shadow);
}

.cta-inner .eyebrow,
.cta-inner p {
    color: rgba(255, 255, 255, .86);
}

.page-hero {
    padding: 76px 0;
    background: linear-gradient(135deg, #edf7ff, #f7fffb);
}

.page-hero .container {
    max-width: 900px;
}

.page-hero h1 {
    font-size: clamp(2.1rem, 4vw, 4rem);
}

.directory-hero p {
    max-width: 760px;
}

.directory-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.directory-toolbar h2 {
    font-size: clamp(1.7rem, 2.4vw, 2.6rem);
}

.directory-toolbar p {
    margin: 10px 0 0;
    color: var(--muted);
}

.tab-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tab-pills a {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #315070;
    background: white;
    font-weight: 900;
    font-size: .88rem;
}

.tab-pills a.active {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.filter-card {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(180px, .8fr) minmax(150px, .6fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: 0 14px 38px rgba(15, 41, 77, .06);
}

.school-filter {
    grid-template-columns: minmax(240px, 1fr) auto auto;
}

.filter-card label {
    display: grid;
    gap: 7px;
}

.filter-card span {
    color: #47627f;
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.filter-card input,
.filter-card select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cddbed;
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fbfdff;
    font: inherit;
    font-weight: 700;
}

.profile-grid,
.school-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-card,
.school-card,
.detail-panel,
.security-note-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: 0 14px 38px rgba(15, 41, 77, .06);
}

.profile-card {
    overflow: hidden;
}

.profile-photo {
    position: relative;
    display: grid;
    aspect-ratio: 4 / 5;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #dff5ff, #e9fff7);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.profile-photo span,
.school-logo span,
.profile-portrait span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    font-size: 1.6rem;
    font-weight: 900;
}

.profile-card-body {
    padding: 18px;
}

.profile-card h3,
.school-card h3 {
    margin: 10px 0 6px;
    font-size: 1.05rem;
}

.profile-card p,
.school-card p {
    margin: 0;
    color: var(--muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #0f5fb8;
    background: #eaf5ff;
    border: 1px solid #cde8ff;
    font-size: .76rem;
    font-weight: 900;
}

.status-aktif {
    color: #08764d;
    background: #e7fff5;
    border-color: #bff4dc;
}

.status-menunggu {
    color: #8a5a00;
    background: #fff6d8;
    border-color: #f5dda1;
}

.status-selesai {
    color: #334155;
    background: #eef2f7;
    border-color: #d7e0ea;
}

.status-dikeluarkan {
    color: #9f1239;
    background: #fff1f2;
    border-color: #fecdd3;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.meta-list span {
    padding: 7px 10px;
    border-radius: 999px;
    color: #33546f;
    background: #f4f8fc;
    font-size: .8rem;
    font-weight: 800;
}

.school-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
}

.school-logo {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f7fbff;
}

.school-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.school-logo span {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.pagination a,
.pagination span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    font-weight: 900;
}

.pagination a {
    color: var(--brand-2);
}

.pagination a.disabled {
    pointer-events: none;
    color: #94a3b8;
    background: #f1f5f9;
}

.profile-hero {
    padding: 72px 0;
    background: linear-gradient(135deg, #edf7ff, #f7fffb);
}

.profile-hero-grid {
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.profile-portrait {
    aspect-ratio: 4 / 5;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow);
}

.profile-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.school-portrait {
    aspect-ratio: 1;
}

.school-portrait img {
    object-fit: contain;
    padding: 28px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr);
    gap: 22px;
    align-items: start;
}

.detail-panel,
.security-note-card {
    padding: 24px;
}

.detail-panel h2,
.security-note-card h2 {
    margin-bottom: 18px;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr);
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.detail-list div:last-child {
    border-bottom: 0;
}

.detail-list dt {
    color: #60748d;
    font-weight: 900;
}

.detail-list dd {
    margin: 0;
    font-weight: 800;
}

.detail-list a {
    color: var(--brand-2);
}

.security-note-card p {
    color: var(--muted);
}

.teacher-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.teacher-list li {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
}

.teacher-list li:last-child {
    border-bottom: 0;
}

.prose-box {
    max-width: 820px;
    padding: 28px;
}

.error-page {
    min-height: 62vh;
    display: grid;
    align-items: center;
}

.error-box {
    max-width: 720px;
    padding: 36px;
    text-align: center;
}

.maintenance-page {
    min-height: 72vh;
    display: grid;
    align-items: center;
    padding: 72px 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(22, 185, 129, .14), transparent 30%),
        radial-gradient(circle at 80% 8%, rgba(10, 143, 220, .18), transparent 28%),
        linear-gradient(135deg, #f8fcff, #eef8ff);
}

.maintenance-card {
    max-width: 820px;
    padding: 42px;
    text-align: center;
    border: 1px solid rgba(219, 229, 241, .9);
    border-radius: 28px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
}

.maintenance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 13px;
    margin-bottom: 18px;
    color: var(--brand-2);
    background: #eaf5ff;
    border: 1px solid #cde8ff;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.maintenance-card h1 {
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(2rem, 4vw, 4rem);
}

.maintenance-card p {
    max-width: 680px;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.maintenance-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.maintenance-note {
    margin: 28px auto 0;
    max-width: 620px;
    padding: 16px 18px;
    color: #24415f;
    background: #f4faff;
    border: 1px solid #d9ebfb;
    border-radius: 14px;
}

.site-footer {
    padding: 52px 0 22px;
    background: #0d1726;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, .5fr) minmax(240px, .7fr);
    gap: 34px;
}

.footer-brand .brand-mark {
    box-shadow: none;
}

.site-footer p,
.site-footer a,
.site-footer small {
    color: #b9c6d8;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    letter-spacing: 0;
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #9aabc0;
    font-size: .9rem;
}

@media (max-width: 980px) {
    .nav-wrap {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .primary-nav,
    .nav-actions {
        display: none;
        width: 100%;
    }

    .site-header.nav-open .primary-nav,
    .site-header.nav-open .nav-actions {
        display: flex;
    }

    .primary-nav {
        flex-direction: column;
        align-items: stretch;
        order: 3;
    }

    .nav-actions {
        order: 4;
        padding-bottom: 16px;
    }

    .hero-grid,
    .split,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .student-grid,
    .profile-grid,
    .school-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-card,
    .school-filter,
    .profile-hero-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(1180px, calc(100% - 28px));
    }

    .hero {
        padding: 62px 0;
    }

    .hero-grid {
        gap: 28px;
    }

    .hero-actions,
    .nav-actions,
    .row-head,
    .directory-toolbar,
    .cta-inner,
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .card-grid,
    .student-grid,
    .metric-list,
    .profile-grid,
    .school-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .school-card {
        grid-template-columns: 1fr;
    }

    .detail-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .process-card li {
        grid-template-columns: 1fr;
    }
}

/* Home visual polish */
.skip-link {
    top: -96px;
    transform: none;
    opacity: 0;
    pointer-events: none;
}

.skip-link:focus {
    top: 16px;
    opacity: 1;
    pointer-events: auto;
}

body {
    font-weight: 450;
}

.brand-mark {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(10, 143, 220, .16);
    box-shadow: 0 14px 32px rgba(10, 143, 220, .16);
}

.brand-mark img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand strong,
.primary-nav a,
.btn,
.trust-strip span,
.metric-list span,
.student-card span,
.tab-pills a {
    font-weight: 740;
}

h1 {
    max-width: 720px;
    font-size: clamp(2.75rem, 4.7vw, 4.65rem);
    line-height: 1.01;
    letter-spacing: -.055em;
}

h2 {
    font-size: clamp(2rem, 3vw, 3.15rem);
    letter-spacing: -.045em;
}

h3 {
    letter-spacing: -.015em;
}

.eyebrow {
    color: #0f66bc;
    font-size: .76rem;
    font-weight: 780;
    letter-spacing: .16em;
}

.site-header {
    background: rgba(255, 255, 255, .82);
}

.nav-wrap {
    min-height: 76px;
}

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    padding: 78px 0 82px;
    background:
        radial-gradient(circle at 18% 18%, rgba(15, 95, 184, .14), transparent 26%),
        radial-gradient(circle at 76% 14%, rgba(22, 185, 129, .2), transparent 25%),
        linear-gradient(140deg, #f9fcff 0%, #eef8ff 45%, #e8fff5 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(2px);
}

.hero::before {
    width: 460px;
    height: 460px;
    right: -160px;
    top: 120px;
    background: rgba(10, 143, 220, .1);
}

.hero::after {
    width: 320px;
    height: 320px;
    left: -120px;
    bottom: 40px;
    background: rgba(22, 185, 129, .12);
}

.hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
    gap: 56px;
}

.hero-text {
    max-width: 590px;
    margin-top: 20px;
    font-size: 1.04rem;
}

.btn {
    border-radius: 13px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-white {
    border-color: rgba(205, 232, 255, .9);
    box-shadow: 0 10px 24px rgba(15, 41, 77, .06);
}

.trust-strip span {
    color: #245d91;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 10px 22px rgba(15, 41, 77, .05);
}

.hero-visual {
    position: relative;
    min-height: 520px;
    display: grid;
    align-content: center;
}

.hero-banner {
    position: relative;
    isolation: isolate;
    min-height: 420px;
    overflow: hidden;
    border-radius: 34px;
    padding: 30px;
    color: white;
    background:
        linear-gradient(145deg, rgba(8, 72, 144, .94), rgba(10, 143, 220, .92) 55%, rgba(22, 185, 129, .9)),
        url("../img/fauzannet-logo.png") no-repeat calc(100% + 120px) calc(100% + 90px) / 390px auto;
    box-shadow: 0 34px 86px rgba(15, 95, 184, .25);
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: 33px;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, .28), transparent 22%),
        linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
    opacity: .8;
}

.hero-banner-glow {
    position: absolute;
    width: 230px;
    height: 230px;
    right: 38px;
    top: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    filter: blur(24px);
}

.banner-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.banner-topline img {
    width: 46px;
    height: 46px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
}

.banner-topline strong,
.banner-topline span {
    display: block;
}

.banner-topline strong {
    font-size: 1.08rem;
    font-weight: 780;
}

.banner-topline span {
    color: rgba(255, 255, 255, .78);
    font-size: .88rem;
}

.banner-screen {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 18px;
    margin-top: 38px;
    padding: 18px;
    min-height: 214px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 24px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px);
}

.screen-sidebar,
.screen-main {
    border-radius: 18px;
    background: rgba(255, 255, 255, .18);
}

.screen-sidebar::before,
.screen-sidebar::after {
    content: "";
    display: block;
    width: 46px;
    height: 10px;
    margin: 24px auto 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .48);
    box-shadow: 0 28px 0 rgba(255, 255, 255, .32), 0 56px 0 rgba(255, 255, 255, .22);
}

.screen-main {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.screen-main span {
    border-radius: 14px;
    background: rgba(255, 255, 255, .82);
}

.screen-main span:first-child {
    width: 62%;
}

.screen-main span:nth-child(2) {
    width: 92%;
}

.screen-main span:nth-child(3) {
    width: 78%;
}

.screen-main span:nth-child(4) {
    width: 48%;
}

.banner-floating-card {
    position: absolute;
    z-index: 2;
    min-width: 154px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: 18px;
    color: #0e2b48;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 22px 42px rgba(15, 41, 77, .16);
}

.banner-floating-card strong,
.banner-floating-card span {
    display: block;
}

.banner-floating-card strong {
    font-weight: 800;
}

.banner-floating-card span {
    color: var(--muted);
    font-size: .82rem;
}

.card-attendance {
    left: 22px;
    bottom: 28px;
}

.card-report {
    right: 22px;
    bottom: 88px;
}

.hero-visual .hero-panel {
    position: absolute;
    right: 24px;
    bottom: -42px;
    z-index: 3;
    width: min(430px, calc(100% - 48px));
    padding: 20px;
    border-color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(20px);
}

.panel-top {
    margin-bottom: 14px;
    font-weight: 680;
}

.metric-list {
    gap: 10px;
}

.metric-list div {
    padding: 16px;
    border-radius: 16px;
}

.metric-list strong {
    font-size: 2rem;
    font-weight: 820;
}

.section {
    padding: 86px 0;
}

.info-card {
    position: relative;
    overflow: hidden;
    min-height: 226px;
    padding: 28px;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 41, 77, .06);
}

.info-card::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -42px;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: rgba(10, 143, 220, .08);
}

.program-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 15px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    font-weight: 820;
    letter-spacing: -.04em;
    box-shadow: 0 18px 34px rgba(10, 143, 220, .18);
}

.student-card {
    min-height: 132px;
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(15, 41, 77, .05);
}

.student-avatar {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(10, 143, 220, .12);
}

.student-avatar.has-photo {
    background: #edf7ff;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 980px) {
    .hero {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 560px;
    }
}

@media (max-width: 680px) {
    h1 {
        font-size: clamp(2.25rem, 13vw, 3.2rem);
    }

    .hero {
        padding: 54px 0 72px;
    }

    .hero-banner {
        min-height: 390px;
        padding: 22px;
        border-radius: 26px;
    }

    .banner-screen {
        grid-template-columns: 1fr;
    }

    .screen-sidebar {
        display: none;
    }

    .banner-floating-card {
        position: static;
        margin-top: 12px;
    }

    .card-report {
        margin-left: auto;
    }

    .hero-visual {
        min-height: auto;
        gap: 14px;
    }

    .hero-visual .hero-panel {
        position: static;
        width: 100%;
    }

    .brand {
        min-width: 0;
    }
}

/* Directory and public profile polish */
.directory-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 78px;
}

.directory-hero::before {
    content: "";
    position: absolute;
    inset: auto -14% -42% auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(22, 185, 129, .18), rgba(10, 143, 220, 0) 68%);
}

.directory-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 34px;
    align-items: center;
}

.directory-hero .container {
    max-width: 1240px;
}

.directory-hero h1,
.profile-hero h1 {
    letter-spacing: -.04em;
}

.directory-hero p,
.profile-hero p {
    color: #4f6681;
    line-height: 1.75;
}

.directory-hero-card {
    position: relative;
    min-height: 214px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 26px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 24px 70px rgba(15, 41, 77, .12);
    backdrop-filter: blur(18px);
}

.directory-hero-card::after {
    content: "";
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 94px;
    height: 94px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(10, 143, 220, .95), rgba(22, 185, 129, .95)),
        #0a8fdc;
    box-shadow: 0 22px 44px rgba(10, 143, 220, .24);
}

.directory-hero-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 1.18rem;
    font-weight: 780;
}

.directory-hero-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 250px;
}

.status-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #16b981;
    box-shadow: 0 0 0 8px rgba(22, 185, 129, .14);
}

.directory-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: -116px 0 34px;
    position: relative;
    z-index: 3;
}

.directory-stats div {
    min-height: 116px;
    padding: 20px;
    border: 1px solid rgba(202, 219, 237, .86);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 48px rgba(15, 41, 77, .08);
    backdrop-filter: blur(14px);
}

.directory-stats span {
    display: block;
    color: #607891;
    font-size: .78rem;
    font-weight: 780;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.directory-stats strong {
    display: block;
    margin-top: 10px;
    color: #075eb2;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    font-weight: 820;
    letter-spacing: -.03em;
}

.directory-toolbar {
    padding: 0 2px;
}

.tab-pills a {
    font-weight: 760;
    box-shadow: 0 10px 22px rgba(15, 41, 77, .04);
}

.filter-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
}

.filter-card span {
    font-weight: 780;
}

.profile-card,
.school-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.profile-card:hover,
.school-card:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 143, 220, .32);
    box-shadow: 0 24px 58px rgba(15, 41, 77, .12);
}

.student-profile-card .profile-photo {
    min-height: 248px;
}

.profile-photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, .16));
    pointer-events: none;
}

.profile-photo span,
.school-logo span,
.profile-portrait span {
    font-weight: 820;
}

.profile-card-body {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.profile-card h3,
.school-card h3 {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.35;
    letter-spacing: -.015em;
}

.profile-card h3 a,
.school-card h3 a {
    color: var(--ink);
}

.profile-card h3 a:hover,
.school-card h3 a:hover {
    color: var(--brand-2);
}

.profile-card-kicker {
    min-height: 28px;
}

.profile-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 4px;
    padding: 9px 12px;
    border-radius: 999px;
    color: #075eb2;
    background: #edf7ff;
    font-size: .84rem;
    font-weight: 780;
}

.profile-more:hover {
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.status-badge {
    font-weight: 780;
}

.meta-list {
    margin-top: 2px;
}

.meta-list span {
    font-weight: 720;
}

.school-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.school-card {
    grid-template-columns: 98px 1fr;
    padding: 22px;
}

.school-logo {
    width: 98px;
    height: 98px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fcff, #eef9ff);
}

.pagination {
    gap: 10px;
}

.pagination a,
.pagination span {
    font-weight: 760;
}

.profile-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
}

.profile-hero::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -12%;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(10, 143, 220, .16), rgba(10, 143, 220, 0) 68%);
}

.profile-hero-grid {
    position: relative;
}

.profile-portrait {
    border-radius: 34px;
    background: linear-gradient(135deg, #ffffff, #f2fbff);
    box-shadow: 0 30px 80px rgba(15, 41, 77, .16);
}

.profile-summary-pills,
.privacy-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.profile-summary-pills span,
.privacy-checklist span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid #d5e7f7;
    border-radius: 999px;
    color: #244765;
    background: rgba(255, 255, 255, .86);
    font-size: .86rem;
    font-weight: 740;
}

.profile-summary-pills .status-badge {
    border-color: #cde8ff;
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.panel-title-row .eyebrow {
    margin-bottom: 8px;
}

.detail-panel,
.security-note-card,
.profile-story-card {
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15, 41, 77, .07);
}

.detail-list dt {
    color: #607891;
    font-weight: 780;
}

.detail-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 680;
}

.security-note-card p {
    color: #516985;
    line-height: 1.75;
}

.teacher-list {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.teacher-list li {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fbff;
    font-weight: 720;
}

.profile-story-card {
    max-width: 900px;
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .76)),
        radial-gradient(circle at 92% 20%, rgba(22, 185, 129, .16), transparent 36%);
}

.profile-story-card h2 {
    max-width: 680px;
}

.profile-story-card p:last-child {
    max-width: 760px;
    color: #516985;
}

@media (max-width: 980px) {
    .directory-hero-grid,
    .directory-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .directory-stats {
        margin-top: -82px;
    }

    .school-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .directory-hero {
        padding: 56px 0 94px;
    }

    .directory-hero-grid,
    .directory-stats {
        grid-template-columns: 1fr;
    }

    .directory-stats {
        margin-top: -72px;
    }

    .directory-hero-card {
        min-height: 180px;
    }

    .filter-card {
        padding: 14px;
    }

    .school-card {
        grid-template-columns: 1fr;
    }

    .profile-hero {
        padding: 54px 0;
    }

    .profile-portrait {
        max-width: 320px;
        margin: 0 auto;
    }

    .detail-list div {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* Static public pages */
.program-hero,
.about-hero,
.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(22, 185, 129, .18), transparent 30%),
        linear-gradient(135deg, #eef8ff, #f8fffb);
}

.program-hero-card,
.about-portrait-card,
.contact-card {
    min-height: 260px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 28px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 28px 76px rgba(15, 41, 77, .13);
    backdrop-filter: blur(18px);
}

.program-hero-card strong,
.about-portrait-card strong,
.contact-card strong {
    display: block;
    margin: 14px 0 8px;
    font-size: 1.24rem;
    font-weight: 780;
}

.program-hero-card p,
.about-portrait-card p,
.contact-card p {
    color: #516985;
    line-height: 1.72;
}

.program-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.program-mini-grid span {
    display: grid;
    min-height: 54px;
    place-items: center;
    border: 1px solid #d8e8f7;
    border-radius: 16px;
    color: #075eb2;
    background: #f4fbff;
    font-weight: 760;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.program-card,
.about-card,
.contact-panel,
.timeline-card,
.privacy-panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    box-shadow: 0 18px 48px rgba(15, 41, 77, .06);
}

.program-card {
    display: grid;
    align-content: start;
    min-height: 420px;
    padding: 28px;
}

.program-card h3,
.about-card h3,
.contact-panel h2 {
    letter-spacing: -.015em;
}

.program-card p,
.about-card p,
.contact-panel p {
    color: #516985;
    line-height: 1.72;
}

.program-card ul {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.program-card li {
    position: relative;
    padding-left: 22px;
    color: #244765;
    font-weight: 680;
}

.program-card li::before {
    content: "";
    position: absolute;
    top: .55em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.timeline-card {
    display: grid;
    gap: 0;
    padding: 10px 22px;
}

.timeline-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.timeline-row:last-child {
    border-bottom: 0;
}

.timeline-row > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-weight: 820;
}

.timeline-row strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.02rem;
}

.timeline-row p {
    margin: 0;
    color: #516985;
    line-height: 1.55;
}

.about-portrait-card {
    display: grid;
    align-content: center;
    justify-items: start;
}

.about-portrait-card img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(10, 143, 220, .16);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.about-card {
    min-height: 210px;
    padding: 24px;
}

.about-card-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 438px;
    display: grid;
    align-content: end;
    color: white;
    background:
        linear-gradient(135deg, rgba(10, 95, 184, .95), rgba(10, 143, 220, .9) 56%, rgba(22, 185, 129, .9)),
        #0a8fdc;
}

.about-card-large .eyebrow,
.about-card-large p {
    color: rgba(255, 255, 255, .86);
}

.about-card-large h2 {
    color: white;
}

.privacy-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 24px;
}

.privacy-panel span {
    min-height: 76px;
    display: grid;
    align-content: center;
    padding: 16px;
    border: 1px solid #d8e8f7;
    border-radius: 18px;
    color: #244765;
    background: #f8fcff;
    font-weight: 740;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .45fr);
    gap: 22px;
    align-items: start;
}

.contact-panel {
    padding: 28px;
}

.contact-steps {
    display: grid;
    gap: 14px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.contact-steps li,
.contact-links a {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fbff;
}

.contact-steps strong,
.contact-links strong {
    color: var(--ink);
    font-size: 1.02rem;
}

.contact-steps span,
.contact-links span {
    color: #516985;
    line-height: 1.55;
}

.contact-links {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.contact-links a {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.contact-links a:hover {
    transform: translateY(-3px);
    border-color: rgba(10, 143, 220, .32);
    box-shadow: 0 18px 38px rgba(15, 41, 77, .08);
}

/* Footer polish */
.site-footer {
    position: relative;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    right: -180px;
    top: -220px;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(10, 143, 220, .22), transparent 68%);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    grid-template-columns: minmax(0, 1.15fr) minmax(160px, .55fr) minmax(160px, .55fr) minmax(240px, .75fr);
}

.site-footer h2 {
    color: white;
    font-weight: 780;
}

.site-footer a:hover {
    color: white;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.footer-badges span {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #dce9f7;
    background: rgba(255, 255, 255, .06);
    font-size: .82rem;
    font-weight: 740;
}

.footer-note-link {
    width: fit-content;
    color: #bfe8ff !important;
    font-weight: 760;
}

@media (max-width: 980px) {
    .program-grid,
    .about-grid,
    .contact-grid,
    .privacy-panel {
        grid-template-columns: 1fr;
    }

    .about-card-large {
        grid-column: auto;
        grid-row: auto;
        min-height: 320px;
    }
}

@media (max-width: 680px) {
    .program-hero,
    .about-hero,
    .contact-hero {
        padding: 58px 0;
    }

    .program-card,
    .contact-panel {
        padding: 22px;
    }

    .program-card {
        min-height: auto;
    }

    .program-mini-grid {
        grid-template-columns: 1fr;
    }

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

/* Public template rebuild */
.public-template {
    --tpl-blue: #1e3a8a;
    --tpl-blue-2: #1554bd;
    --tpl-gold: #fbbf24;
    --tpl-green: #10b981;
    --tpl-ink: #0f172a;
    --tpl-muted: #64748b;
    --tpl-line: #e2e8f0;
    --tpl-soft: #f8fafc;
    --tpl-radius: 8px;
    background: var(--tpl-soft);
}

.public-template h1,
.public-template h2,
.public-template h3,
.public-template .brand strong {
    letter-spacing: 0;
}

.public-template .skip-link {
    opacity: 0;
    transform: translateY(calc(-100% - 28px));
    background: var(--tpl-blue);
}

.public-template .skip-link:focus {
    opacity: 1;
    transform: translateY(0);
}

.top-bar {
    background: var(--tpl-blue);
    color: #ffffff;
    font-size: .78rem;
    font-weight: 700;
}

.top-bar-inner,
.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-inner {
    min-height: 38px;
    justify-content: space-between;
    gap: 18px;
}

.top-bar-left,
.top-bar-right {
    gap: 22px;
}

.top-bar a,
.top-bar span {
    color: rgba(255, 255, 255, .88);
}

.top-bar a:hover {
    color: var(--tpl-gold);
}

.public-template .site-header {
    top: 0;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(226, 232, 240, .92);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.public-template .nav-wrap {
    min-height: 82px;
}

.public-template .brand {
    min-width: 260px;
}

.public-template .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: var(--tpl-radius);
    background: white;
    box-shadow: 0 14px 32px rgba(30, 58, 138, .14);
    overflow: hidden;
}

.public-template .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.public-template .brand strong {
    color: var(--tpl-ink);
    font-size: 1rem;
    font-weight: 820;
}

.public-template .brand small {
    color: var(--tpl-muted);
    font-weight: 650;
}

.public-template .primary-nav {
    gap: 10px;
}

.public-template .primary-nav a {
    color: #334155;
    border-radius: var(--tpl-radius);
    font-weight: 750;
    transition: color .18s ease, background .18s ease;
}

.public-template .primary-nav a:hover,
.public-template .primary-nav a.active {
    color: var(--tpl-blue-2);
    background: #eaf4ff;
}

.public-template .btn {
    border-radius: var(--tpl-radius);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.public-template .btn:hover {
    transform: translateY(-2px);
}

.btn-gold {
    color: #0f2859;
    background: var(--tpl-gold);
    border-color: rgba(251, 191, 36, .8);
    box-shadow: 0 18px 38px rgba(251, 191, 36, .25);
}

.btn-glass {
    color: white;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .28);
    backdrop-filter: blur(12px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, .18);
}

.template-hero {
    min-height: 600px;
    display: grid;
    align-items: center;
    padding: 90px 0 128px;
    color: white;
    background:
        linear-gradient(90deg, rgba(30, 58, 138, .94), rgba(30, 58, 138, .82) 46%, rgba(30, 58, 138, .58)),
        url("https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&q=82&w=2070") center / cover;
}

.template-hero::before,
.template-hero::after {
    display: none;
}

.template-hero-inner {
    position: relative;
    z-index: 2;
}

.template-hero-copy {
    max-width: 820px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 24px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #0f2859;
    background: var(--tpl-gold);
    font-size: .78rem;
    font-weight: 860;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.template-hero h1 {
    color: white;
    max-width: 720px;
    font-size: clamp(2.3rem, 4.1vw, 4.35rem);
    line-height: 1.08;
    font-weight: 820;
}

.template-hero h1 span {
    color: var(--tpl-gold);
    font-style: italic;
}

.template-hero .hero-text {
    max-width: 660px;
    color: rgba(255, 255, 255, .9);
    font-size: 1.12rem;
    line-height: 1.8;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-trust span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, .1);
    font-size: .82rem;
    font-weight: 760;
}

.floating-stats {
    position: relative;
    z-index: 5;
    margin-top: -64px;
    margin-bottom: 24px;
}

.stats-shell {
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    position: relative;
    min-height: 118px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    padding: 22px 20px;
    border: 1px solid rgba(226, 232, 240, .92);
    border-bottom: 4px solid var(--stat-accent, var(--tpl-blue-2));
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 8%, var(--stat-soft, rgba(10, 143, 220, .1)), transparent 34%),
        rgba(255, 255, 255, .98);
    box-shadow: 0 22px 48px rgba(15, 23, 42, .105);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 64px rgba(15, 23, 42, .14);
}

.stat-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: var(--stat-accent, var(--tpl-blue-2));
    background: var(--stat-soft, #eaf4ff);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.stat-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
}

.stat-label,
.stat-note {
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: .055em;
}

.stat-card strong {
    color: var(--tpl-blue-2);
    font-size: clamp(1.8rem, 2.65vw, 2.45rem);
    line-height: 1;
    letter-spacing: -.04em;
}

.stat-card.tone-blue { --stat-accent: #0a8fdc; --stat-soft: rgba(10, 143, 220, .12); }
.stat-card.tone-green { --stat-accent: #16b981; --stat-soft: rgba(22, 185, 129, .13); }
.stat-card.tone-red { --stat-accent: #ef4444; --stat-soft: rgba(239, 68, 68, .11); }
.stat-card.tone-purple { --stat-accent: #a855f7; --stat-soft: rgba(168, 85, 247, .12); }

.stat-card.tone-blue strong { color: #0f5fb8; }
.stat-card.tone-green strong { color: #047857; }
.stat-card.tone-red strong { color: #dc2626; }
.stat-card.tone-purple strong { color: #7e22ce; }

.learning-section {
    padding: 76px 0;
    border-top: 1px solid rgba(148, 163, 184, .2);
    border-bottom: 1px solid rgba(148, 163, 184, .2);
    background: #f8fafc;
}

.program-overview {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: 72px;
    align-items: center;
}

.program-overview-copy {
    max-width: 620px;
}

.program-overview-copy h2 {
    max-width: 600px;
    margin-bottom: 18px;
    font-size: 2.65rem;
    line-height: 1.16;
    font-weight: 760;
    letter-spacing: 0;
}

.program-overview-copy > p:not(.eyebrow) {
    max-width: 590px;
    margin-bottom: 26px;
    color: var(--tpl-muted);
    font-size: 1.02rem;
    line-height: 1.72;
}

.program-overview-copy .btn {
    width: max-content;
}

.program-benefit-list {
    border-top: 1px solid rgba(148, 163, 184, .34);
}

.program-benefit {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 22px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .34);
}

.program-benefit-number {
    padding-top: 3px;
    color: #0b75c9;
    font-size: .8rem;
    font-weight: 900;
    line-height: 1.4;
}

.program-benefit h3 {
    margin: 0 0 7px;
    color: var(--tpl-ink);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
}

.program-benefit p {
    margin: 0;
    color: var(--tpl-muted);
    line-height: 1.62;
}

.centered {
    text-align: center;
    margin-inline: auto;
}

.template-section .section-head {
    max-width: 780px;
}

.program-showcase-grid,
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.template-highlights {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 4%, rgba(10, 143, 220, .10), transparent 32%),
        radial-gradient(circle at 92% 18%, rgba(22, 185, 129, .08), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 68%);
}

.template-highlights::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 95, 184, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 95, 184, .045) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .56), transparent 72%);
}

.template-highlights .row-head,
.template-highlights .highlight-grid {
    position: relative;
    z-index: 1;
}

.program-showcase-card,
.highlight-card {
    min-height: 292px;
    padding: 28px;
    border: 1px solid var(--tpl-line);
    border-radius: var(--tpl-radius);
    background: white;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .04);
}

.highlight-card {
    --highlight-accent: var(--tpl-blue-2);
    --highlight-soft: rgba(10, 143, 220, .12);
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 30px;
    border-color: rgba(148, 163, 184, .22);
    background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .94));
    box-shadow: 0 20px 46px rgba(15, 23, 42, .07);
}

.highlight-card::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -64px;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: var(--highlight-soft);
}

.highlight-card h3,
.highlight-card p,
.highlight-card span {
    position: relative;
    z-index: 1;
}

.highlight-card.tone-blue {
    --highlight-accent: #0f5fb8;
    --highlight-soft: rgba(10, 143, 220, .13);
}

.highlight-card.tone-green {
    --highlight-accent: #047857;
    --highlight-soft: rgba(22, 185, 129, .14);
}

.highlight-card.tone-gold {
    --highlight-accent: #a16207;
    --highlight-soft: rgba(251, 191, 36, .18);
}

.card-hover {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 58, 138, .22);
    box-shadow: 0 22px 50px rgba(15, 23, 42, .1);
}

.program-showcase-icon {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    margin-bottom: 24px;
    border-radius: var(--tpl-radius);
    font-weight: 900;
}

.tone-blue .program-showcase-icon {
    color: var(--tpl-blue-2);
    background: #eaf4ff;
}

.tone-gold .program-showcase-icon {
    color: #9a5c00;
    background: #fff7d6;
}

.tone-green .program-showcase-icon {
    color: #047857;
    background: #dcfce7;
}

.program-showcase-card h3,
.highlight-card h3 {
    color: var(--tpl-ink);
    font-size: 1.25rem;
    font-weight: 820;
}

.program-showcase-card p,
.highlight-card p {
    color: var(--tpl-muted);
    line-height: 1.75;
}

.program-showcase-card a {
    display: inline-flex;
    margin-top: 8px;
    color: var(--tpl-blue-2);
    font-weight: 820;
}

.template-flow .split {
    align-items: center;
}

.flow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.template-process {
    border-radius: var(--tpl-radius);
}

.template-process li {
    grid-template-columns: 120px 1fr;
}

.highlight-card span {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--highlight-accent);
    background: var(--highlight-soft);
    font-size: .78rem;
    font-weight: 860;
    text-transform: uppercase;
}

.highlight-card h3 {
    margin-bottom: 14px;
}

.template-student-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.template-students-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .78), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(10, 143, 220, .13), transparent 30%),
        linear-gradient(180deg, #eef6ff 0%, #eaf4ff 100%);
}

.template-students-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, .38) 48% 52%, transparent 52% 100%);
    background-size: 260px 260px;
    opacity: .34;
}

.template-students-section .section-head,
.template-students-section .student-grid {
    position: relative;
    z-index: 1;
}

.template-student-card {
    position: relative;
    overflow: hidden;
    grid-template-columns: 92px 1fr;
    min-height: 134px;
    padding: 18px;
    border-radius: var(--tpl-radius);
    border-color: rgba(148, 163, 184, .22);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .075);
}

.template-student-card::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(10, 143, 220, .22), rgba(22, 185, 129, .18));
}

.student-photo-link {
    display: block;
}

.template-student-card .student-avatar {
    width: 78px;
    height: 78px;
    border-radius: var(--tpl-radius);
    box-shadow: 0 12px 28px rgba(15, 95, 184, .16);
}

.template-student-card .student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-student-card h3 {
    font-size: 1.05rem;
}

.template-student-card h3 a:hover {
    color: var(--tpl-blue-2);
}

.template-student-card p {
    margin: 4px 0 8px;
}

.template-student-card span {
    background: #eaf4ff;
    color: var(--tpl-blue-2);
}

.template-cta {
    margin: 38px auto 0;
    color: white;
    background: transparent;
}

.template-cta .cta-inner {
    border-radius: var(--tpl-radius);
    color: white;
    background:
        linear-gradient(135deg, rgba(30, 58, 138, .97), rgba(21, 84, 189, .92) 50%, rgba(16, 185, 129, .92)),
        url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&q=78&w=1600") center / cover;
    box-shadow: 0 24px 60px rgba(30, 58, 138, .2);
}

.template-cta .eyebrow,
.template-cta p,
.template-cta h2 {
    color: white;
}

.public-template .page-hero,
.public-template .directory-hero,
.public-template .profile-hero,
.public-template .program-hero,
.public-template .about-hero,
.public-template .contact-hero {
    color: white;
    padding: 92px 0;
    background:
        linear-gradient(90deg, rgba(30, 58, 138, .96), rgba(30, 58, 138, .84) 52%, rgba(30, 58, 138, .62)),
        url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&q=80&w=1800") center / cover;
}

.public-template .page-hero h1,
.public-template .directory-hero h1,
.public-template .profile-hero h1,
.public-template .program-hero h1,
.public-template .about-hero h1,
.public-template .contact-hero h1 {
    color: white;
    max-width: 860px;
    font-size: clamp(2.05rem, 3.4vw, 3.65rem);
    line-height: 1.1;
    font-weight: 820;
}

.public-template .page-hero p,
.public-template .directory-hero p,
.public-template .profile-hero p,
.public-template .program-hero p,
.public-template .about-hero p,
.public-template .contact-hero p {
    color: rgba(255, 255, 255, .88);
}

.public-template .page-hero .eyebrow,
.public-template .directory-hero .eyebrow,
.public-template .profile-hero .eyebrow,
.public-template .program-hero .eyebrow,
.public-template .about-hero .eyebrow,
.public-template .contact-hero .eyebrow {
    color: var(--tpl-gold);
}

.public-template .program-hero-card,
.public-template .about-portrait-card,
.public-template .contact-card,
.public-template .directory-hero-card {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.public-template .program-hero-card p,
.public-template .about-portrait-card p,
.public-template .contact-card p,
.public-template .directory-hero-card p {
    color: #516985;
}

.public-template .program-hero-card strong,
.public-template .about-portrait-card strong,
.public-template .contact-card strong,
.public-template .directory-hero-card strong {
    color: var(--tpl-ink);
}

.public-template .profile-summary-pills span,
.public-template .program-mini-grid span,
.public-template .privacy-panel span,
.public-template .privacy-checklist span {
    border-radius: var(--tpl-radius);
}

.public-template .directory-stats > div,
.public-template .filter-card,
.public-template .profile-card,
.public-template .school-card,
.public-template .detail-panel,
.public-template .security-note-card,
.public-template .prose-box,
.public-template .process-card,
.public-template .timeline-card,
.public-template .about-card,
.public-template .contact-panel {
    border-radius: var(--tpl-radius);
    border-color: var(--tpl-line);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .045);
}

.public-template .profile-card,
.public-template .school-card,
.public-template .about-card,
.public-template .program-card,
.public-template .contact-panel,
.public-template .detail-panel,
.public-template .security-note-card {
    background: white;
}

.public-template .profile-card,
.public-template .school-card {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.public-template .profile-card:hover,
.public-template .school-card:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 58, 138, .22);
    box-shadow: 0 22px 50px rgba(15, 23, 42, .1);
}

.public-template .profile-photo,
.public-template .school-logo,
.public-template .profile-portrait,
.public-template .student-avatar {
    border-radius: var(--tpl-radius);
}

.public-template .profile-photo img,
.public-template .school-logo img,
.public-template .profile-portrait img {
    object-fit: cover;
}

.public-template .profile-portrait {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.public-template .profile-portrait span {
    color: var(--tpl-blue-2);
    background: #eaf4ff;
}

.public-template .section-muted {
    background: #eef6ff;
}

.public-template .status-badge {
    border-radius: 999px;
}

.public-template .pagination a,
.public-template .pagination span {
    border-radius: var(--tpl-radius);
}

.public-template .about-card-large {
    background:
        linear-gradient(135deg, rgba(30, 58, 138, .98), rgba(21, 84, 189, .92) 54%, rgba(16, 185, 129, .88)),
        url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&q=78&w=1400") center / cover;
}

.public-template .site-footer {
    position: relative;
    overflow: hidden;
    padding: 78px 0 30px;
    color: white;
    background:
        radial-gradient(circle at 12% 0, rgba(10, 143, 220, .28), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(22, 185, 129, .22), transparent 28%),
        linear-gradient(135deg, #0b1630 0%, #102a56 58%, #073b4c 100%);
    border-top: 0;
}

.public-template .site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .62), transparent 78%);
}

.public-template .footer-glow {
    display: none;
}

.public-template .footer-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.25fr) minmax(170px, .6fr) minmax(170px, .6fr) minmax(260px, .8fr);
    gap: 42px;
}

.public-template .site-footer h2 {
    color: white;
}

.public-template .footer-brand strong {
    color: white;
}

.public-template .site-footer p,
.public-template .site-footer a,
.public-template .site-footer small {
    color: rgba(226, 232, 240, .82);
}

.public-template .site-footer a:hover {
    color: var(--tpl-gold);
}

.public-template .footer-badges span {
    color: white;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
}

.public-template .footer-note-link {
    color: var(--tpl-gold) !important;
}

.public-template .footer-bottom {
    position: relative;
    z-index: 1;
    color: rgba(226, 232, 240, .72);
    border-top-color: rgba(255, 255, 255, .13);
}

@media (max-width: 1100px) {
    .top-bar {
        display: none;
    }

    .public-template .brand {
        min-width: auto;
    }

    .template-hero {
        min-height: 560px;
        padding: 78px 0 118px;
    }

    .program-showcase-grid,
    .highlight-grid,
    .template-student-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .public-template .nav-wrap {
        flex-wrap: wrap;
    }

    .public-template .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 32px;
    }

    .public-template .footer-column {
        min-width: 0;
    }

    .public-template .primary-nav,
    .public-template .nav-actions {
        padding: 0 0 16px;
    }

    .public-template .nav-actions {
        justify-content: stretch;
    }

    .public-template .nav-actions .btn {
        flex: 1;
    }

    .template-process li {
        grid-template-columns: 1fr;
    }

    .program-overview {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .program-overview-copy {
        max-width: 700px;
    }
}

@media (max-width: 680px) {
    .public-template .site-footer {
        padding: 48px 0 24px;
    }

    .public-template .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 22px;
    }

    .public-template .footer-intro,
    .public-template .footer-contact {
        grid-column: 1 / -1;
    }

    .public-template .footer-intro {
        padding-bottom: 26px;
        border-bottom: 1px solid rgba(255, 255, 255, .13);
    }

    .public-template .footer-links {
        padding: 26px 0;
    }

    .public-template .footer-contact {
        padding-top: 26px;
        border-top: 1px solid rgba(255, 255, 255, .13);
    }

    .public-template .footer-brand {
        min-width: 0;
        max-width: 100%;
    }

    .public-template .footer-brand > span:last-child {
        min-width: 0;
    }

    .public-template .footer-brand strong,
    .public-template .footer-brand small,
    .public-template .site-footer p,
    .public-template .site-footer a {
        word-break: normal;
        overflow-wrap: break-word;
    }

    .public-template .footer-column h2 {
        margin-bottom: 14px;
    }

    .public-template .footer-links a {
        width: fit-content;
        max-width: 100%;
        margin: 10px 0;
        line-height: 1.45;
    }

    .public-template .footer-contact p {
        max-width: 620px;
    }

    .public-template .footer-bottom {
        gap: 8px;
        margin-top: 30px;
        padding-top: 18px;
        line-height: 1.5;
    }

    .template-hero {
        min-height: auto;
        padding: 58px 0 96px;
        text-align: left;
    }

    .template-hero h1 {
        font-size: clamp(2rem, 10vw, 3.05rem);
    }

    .floating-stats {
        margin-top: -54px;
    }

    .stat-card,
    .program-showcase-card,
    .highlight-card {
        padding: 20px;
    }

    .program-showcase-grid,
    .highlight-grid,
    .template-student-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .template-student-card {
        grid-template-columns: 74px 1fr;
    }

    .template-student-card .student-avatar {
        width: 62px;
        height: 62px;
    }

    .template-cta .cta-inner {
        align-items: stretch;
    }

    .learning-section {
        padding: 58px 0;
    }

    .program-overview-copy h2 {
        font-size: 2rem;
    }

    .program-benefit {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 14px;
        padding: 19px 0;
    }
}

/* Public inner page refinement */
.public-template .inner-hero-copy {
    position: relative;
    z-index: 2;
    display: block;
}

.public-template .inner-hero-copy > div {
    max-width: 780px;
}

.public-template .page-hero,
.public-template .directory-hero,
.public-template .profile-hero,
.public-template .program-hero,
.public-template .about-hero,
.public-template .contact-hero {
    min-height: 430px;
    display: grid;
    align-items: center;
    padding: 84px 0 104px;
}

.public-template .page-hero h1,
.public-template .directory-hero h1,
.public-template .profile-hero h1,
.public-template .program-hero h1,
.public-template .about-hero h1,
.public-template .contact-hero h1 {
    max-width: 780px;
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1.14;
    font-weight: 780;
    letter-spacing: -.025em;
}

.public-template .page-hero p,
.public-template .directory-hero p,
.public-template .profile-hero p,
.public-template .program-hero p,
.public-template .about-hero p,
.public-template .contact-hero p {
    max-width: 720px;
    font-size: 1.03rem;
    line-height: 1.78;
}

.public-template .section-head h2,
.public-template .directory-toolbar h2,
.public-template .about-card h2,
.public-template .profile-story-card h2,
.public-template .contact-panel h2 {
    font-weight: 760;
    letter-spacing: -.02em;
}

.public-template .section-head h2,
.public-template .directory-toolbar h2 {
    font-size: clamp(1.95rem, 3vw, 3rem);
    line-height: 1.14;
}

.public-template .program-card,
.public-template .about-card,
.public-template .contact-panel {
    padding: 30px;
}

.public-template .program-card h3,
.public-template .about-card h3 {
    font-size: 1.2rem;
    font-weight: 760;
}

.public-template .program-card li,
.public-template .contact-links span,
.public-template .contact-steps span {
    color: var(--tpl-muted);
    line-height: 1.7;
}

.public-template .contact-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    gap: 24px;
}

.public-template .contact-panel h2 {
    max-width: 760px;
    font-size: clamp(1.85rem, 2.5vw, 2.75rem);
    line-height: 1.15;
}

.public-template .contact-side h2 {
    font-size: clamp(1.75rem, 2.15vw, 2.45rem);
}

.public-template .contact-steps li,
.public-template .contact-links a {
    border-radius: 18px;
    background: #f8fbff;
}

.public-template .directory-stats {
    margin-top: -68px;
}

.public-template .student-directory-section {
    padding-top: 76px;
}

.public-template .student-directory-content {
    position: relative;
    transition: opacity .18s ease;
}

.public-template .student-directory-content.is-loading {
    opacity: .58;
    pointer-events: none;
}

.public-template .student-filter-card {
    grid-template-columns: minmax(250px, 1.25fr) minmax(160px, .55fr) minmax(200px, .75fr) minmax(150px, .5fr) auto;
}

.public-template .filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.public-template .filter-live-status {
    display: none;
    color: #0f5fb8;
    font-size: .84rem;
    font-weight: 700;
    white-space: nowrap;
}

.public-template .student-directory-content.is-loading .filter-live-status {
    display: inline-flex;
}

.public-template .student-filter-card .btn {
    min-height: 44px;
    justify-content: center;
}

@media (max-width: 980px) {
    .public-template .page-hero,
    .public-template .directory-hero,
    .public-template .profile-hero,
    .public-template .program-hero,
    .public-template .about-hero,
    .public-template .contact-hero {
        min-height: auto;
        padding: 72px 0 92px;
    }

    .public-template .directory-stats {
        margin-top: -46px;
    }

    .public-template .student-filter-card {
        grid-template-columns: 1fr;
    }

    .public-template .filter-actions {
        justify-content: stretch;
    }

    .public-template .filter-actions .btn {
        flex: 1;
    }
}

@media (max-width: 680px) {
    .public-template .page-hero,
    .public-template .directory-hero,
    .public-template .profile-hero,
    .public-template .program-hero,
    .public-template .about-hero,
    .public-template .contact-hero {
        padding: 56px 0 76px;
    }

    .public-template .page-hero h1,
    .public-template .directory-hero h1,
    .public-template .profile-hero h1,
    .public-template .program-hero h1,
    .public-template .about-hero h1,
    .public-template .contact-hero h1 {
        font-size: clamp(1.9rem, 9vw, 2.75rem);
    }

    .public-template .program-card,
    .public-template .about-card,
    .public-template .contact-panel {
        padding: 22px;
    }
}

/* Inner pages final alignment */
.public-template .page-hero .container,
.public-template .container.section-head {
    width: min(1180px, calc(100% - 40px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.public-template .container.section-head {
    margin-bottom: 34px;
}

.public-template .container.section-head h2,
.public-template .container.section-head p {
    max-width: 780px;
}

.public-template .inner-hero-copy > div {
    max-width: 820px;
}

.public-template .page-hero,
.public-template .directory-hero,
.public-template .profile-hero,
.public-template .program-hero,
.public-template .about-hero,
.public-template .contact-hero {
    min-height: 420px;
    padding: 78px 0 96px;
}

.public-template .page-hero h1,
.public-template .directory-hero h1,
.public-template .profile-hero h1,
.public-template .program-hero h1,
.public-template .about-hero h1,
.public-template .contact-hero h1 {
    max-width: 820px;
    font-size: clamp(2rem, 2.85vw, 3.15rem);
    line-height: 1.16;
    font-weight: 760;
}

.public-template .container.section-head h2 {
    font-size: clamp(2rem, 2.75vw, 3rem);
}

.public-template .about-grid {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(220px, .7fr));
    gap: 18px;
}

.public-template .about-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 28px;
    border: 1px solid rgba(203, 213, 225, .78);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .98));
    box-shadow: 0 18px 42px rgba(15, 23, 42, .055);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.public-template .about-card::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -54px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(10, 143, 220, .09);
}

.public-template .about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 95, 184, .24);
    box-shadow: 0 24px 56px rgba(15, 23, 42, .1);
}

.public-template .about-card h3 {
    max-width: 260px;
    margin-top: 42px;
    color: var(--tpl-ink);
}

.public-template .about-card p {
    position: relative;
    z-index: 1;
}

.public-template .about-card-mark {
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 16px;
    color: var(--tpl-blue-2);
    background: #eaf4ff;
    font-size: .82rem;
    font-weight: 900;
}

.public-template .about-card-large {
    min-height: 480px;
    padding: 34px;
    align-content: end;
}

.public-template .about-card.about-card-large {
    display: grid;
    color: white;
    background:
        linear-gradient(135deg, rgba(30, 58, 138, .97), rgba(21, 84, 189, .9) 54%, rgba(16, 185, 129, .84)),
        url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&q=78&w=1400") center / cover;
}

.public-template .about-card-large::after {
    right: -70px;
    bottom: -80px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, .1);
}

.public-template .about-card.about-card-large .eyebrow,
.public-template .about-card.about-card-large h2,
.public-template .about-card.about-card-large p,
.public-template .about-card.about-card-large .about-feature-tags {
    position: relative;
    z-index: 1;
}

.public-template .about-card.about-card-large .eyebrow,
.public-template .about-card.about-card-large p {
    color: rgba(255, 255, 255, .88);
}

.public-template .about-card-large .about-card-mark {
    color: #0f2859;
    background: var(--tpl-gold);
}

.public-template .about-card-large h2 {
    max-width: 520px;
    font-size: clamp(2rem, 3vw, 3.05rem);
    line-height: 1.1;
    color: white;
}

.public-template .about-hero .inner-hero-copy {
    display: block;
    opacity: 1;
    visibility: visible;
}

.public-template .about-hero.has-cms-hero-media {
    isolation: isolate;
}

.public-template .about-hero .about-hero-media,
.public-template .about-hero .about-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.public-template .about-hero .about-hero-media {
    z-index: 0;
    object-fit: cover;
}

.public-template .about-hero .about-hero-shade {
    z-index: 1;
    display: block;
    background: linear-gradient(
        90deg,
        rgba(30, 58, 138, .96),
        rgba(30, 58, 138, .84) 52%,
        rgba(30, 58, 138, .62)
    );
}

.about-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.about-feature-tags span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, .13);
    font-size: .82rem;
    font-weight: 760;
}

.public-template .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .55fr);
}

.public-template .contact-panel {
    padding: 32px;
}

.public-template .contact-panel h2 {
    max-width: 680px;
    font-size: clamp(1.8rem, 2.25vw, 2.55rem);
}

.public-template .contact-side h2 {
    font-size: clamp(1.65rem, 2vw, 2.25rem);
}

@media (max-width: 980px) {
    .public-template .about-grid,
    .public-template .contact-grid {
        grid-template-columns: 1fr;
    }

    .public-template .about-card-large {
        grid-column: auto;
        grid-row: auto;
        min-height: 360px;
    }
}

@media (max-width: 680px) {
    .public-template .page-hero .container,
    .public-template .container.section-head {
        width: min(1180px, calc(100% - 28px));
    }

    .public-template .page-hero,
    .public-template .directory-hero,
    .public-template .profile-hero,
    .public-template .program-hero,
    .public-template .about-hero,
    .public-template .contact-hero {
        padding: 52px 0 72px;
    }
}

/* Public registration gateway */
.public-template .registration-hero {
    background-image:
        linear-gradient(90deg, rgba(15, 44, 119, .94), rgba(24, 68, 153, .78) 52%, rgba(15, 74, 134, .48)),
        url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&q=78&w=1800");
    background-position: center;
}

.public-template .registration-hero h1 {
    max-width: 900px;
}

.public-template .registration-section {
    padding-top: 72px;
}

.public-template .registration-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .55fr);
    gap: 22px;
}

.public-template .registration-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, .82);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 58px rgba(15, 23, 42, .08);
}

.public-template .registration-main-panel {
    padding: 34px;
}

.public-template .registration-main-panel h2,
.public-template .registration-checklist h2 {
    max-width: 720px;
    margin: 0 0 14px;
    color: var(--tpl-ink);
    font-size: clamp(1.8rem, 2.4vw, 2.7rem);
    line-height: 1.12;
}

.public-template .registration-main-panel > p:not(.eyebrow),
.public-template .registration-checklist > p:not(.eyebrow) {
    max-width: 760px;
    color: var(--tpl-muted);
    line-height: 1.8;
}

.public-template .registration-steps {
    display: grid;
    gap: 14px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.public-template .registration-steps li {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px;
    border: 1px solid rgba(203, 213, 225, .72);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.public-template .registration-steps li > span,
.public-template .registration-lane-card > span {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 15px;
    color: #0b57ad;
    background: #eaf4ff;
    font-weight: 900;
}

.public-template .registration-steps strong {
    color: var(--tpl-ink);
    font-size: 1.05rem;
}

.public-template .registration-steps p {
    margin: 6px 0 0;
    color: var(--tpl-muted);
    line-height: 1.7;
}

.public-template .registration-checklist {
    padding: 30px;
}

.public-template .registration-checklist::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: rgba(10, 143, 220, .1);
}

.public-template .registration-checklist ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.public-template .registration-checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--tpl-ink);
    font-weight: 760;
}

.public-template .registration-checklist li::before {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tpl-gold), #10b981);
    box-shadow: 0 0 0 5px rgba(255, 193, 37, .16);
}

.public-template .registration-note {
    position: relative;
    z-index: 1;
    padding: 18px;
    border: 1px solid rgba(245, 158, 11, .25);
    border-radius: 18px;
    background: #fff8df;
}

.public-template .registration-note strong {
    color: #92400e;
}

.public-template .registration-note p {
    margin: 8px 0 0;
    color: #6b4d12;
    line-height: 1.7;
}

.public-template .registration-lanes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.public-template .registration-lane-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 28px;
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .055);
}

.public-template .registration-lane-card::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -64px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(10, 143, 220, .08);
}

.public-template .registration-lane-card h3 {
    margin: 34px 0 10px;
    color: var(--tpl-ink);
}

.public-template .registration-lane-card p {
    position: relative;
    z-index: 1;
    color: var(--tpl-muted);
    line-height: 1.75;
}

.public-template .registration-cta .cta-inner {
    align-items: center;
}

.public-template .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 980px) {
    .public-template .registration-grid,
    .public-template .registration-lanes {
        grid-template-columns: 1fr;
    }

    .public-template .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .public-template .registration-main-panel,
    .public-template .registration-checklist,
    .public-template .registration-lane-card {
        padding: 22px;
    }

    .public-template .registration-steps li {
        grid-template-columns: 1fr;
    }
}

/* Public auth modal */
.public-template .user-chip {
    display: inline-flex;
    align-items: center;
    max-width: 220px;
    gap: 10px;
    padding: 8px 12px 8px 8px;
    border: 1px solid rgba(11, 87, 173, .14);
    border-radius: 999px;
    background: #f3f9ff;
    color: #12315f;
    font-size: .84rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.public-template .user-chip::-webkit-details-marker {
    display: none;
}

.public-template .user-chip span {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b74d1, #12a6b3);
    color: #fff;
    font-size: .72rem;
    letter-spacing: .04em;
}

.public-template .user-chip strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-template .account-menu {
    position: relative;
    max-width: 230px;
}

.public-template .account-menu[open] .user-chip,
.public-template .user-chip:hover {
    border-color: rgba(11, 116, 209, .34);
    background: #eaf5ff;
    box-shadow: 0 12px 30px rgba(15, 76, 129, .12);
}

.public-template .account-menu-caret {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    margin-left: 2px;
    border-right: 2px solid #5b7394;
    border-bottom: 2px solid #5b7394;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
}

.public-template .account-menu[open] .account-menu-caret {
    transform: translateY(2px) rotate(225deg);
}

.public-template .account-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 80;
    width: min(280px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid #d7e4f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(15, 42, 75, .18);
}

.public-template .account-menu-identity {
    padding: 10px 11px 12px;
    border-bottom: 1px solid #e6edf5;
}

.public-template .account-menu-identity small,
.public-template .account-menu-identity strong {
    display: block;
}

.public-template .account-menu-identity small {
    margin-bottom: 3px;
    color: #71839c;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.public-template .account-menu-identity strong {
    overflow: hidden;
    color: #10233f;
    font-size: .84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-template .account-menu-item {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 10px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #17365f;
    text-align: left;
    cursor: pointer;
}

.public-template .account-menu-item:hover,
.public-template .account-menu-item:focus-visible {
    background: #edf6ff;
    outline: none;
}

.public-template .account-menu-item span,
.public-template .account-menu-item small {
    display: block;
}

.public-template .account-menu-item span {
    font-size: .84rem;
    font-weight: 800;
}

.public-template .account-menu-item small {
    margin-top: 2px;
    color: #71839c;
    font-size: .7rem;
}

.public-template .account-menu-logout {
    color: #b42318;
    font: inherit;
}

.public-template .account-menu-logout:hover,
.public-template .account-menu-logout:focus-visible {
    background: #fff1f0;
}

.public-template .logout-form {
    margin: 0;
    width: 100%;
}

.public-template .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(220, 38, 38, .18);
    border-radius: 14px;
    background: #fff5f5;
    color: #b91c1c;
    font-size: .76rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.public-template .btn-icon:hover {
    transform: translateY(-1px);
    background: #fee2e2;
    box-shadow: 0 14px 30px rgba(185, 28, 28, .12);
}

.public-template .auth-modal[hidden] {
    display: none;
}

.public-template .auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.public-template .auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 40, .58);
    backdrop-filter: blur(10px);
}

.public-template .auth-dialog {
    position: relative;
    width: min(100%, 460px);
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, .65);
    border-radius: 28px;
    background:
        radial-gradient(circle at right top, rgba(10, 143, 220, .16), transparent 34%),
        linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
    padding: 30px;
}

.public-template .auth-dialog::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #0b74d1, #12a6b3, #ffc125);
}

.public-template .auth-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(203, 213, 225, .72);
    border-radius: 999px;
    background: rgba(255, 255, 255, .84);
    color: #334155;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.public-template .auth-dialog-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 42px;
}

.public-template .auth-mark {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(11, 87, 173, .16);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(11, 87, 173, .1);
}

.public-template .auth-kicker {
    margin: 0 0 4px;
    color: #0b57ad;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.public-template .auth-dialog h2 {
    margin: 0;
    color: var(--tpl-ink);
    font-size: clamp(1.55rem, 4vw, 2rem);
    line-height: 1.1;
}

.public-template .auth-copy {
    margin: 18px 0 22px;
    color: var(--tpl-muted);
    line-height: 1.7;
}

.public-template .auth-form {
    display: grid;
    gap: 14px;
}

.public-template .auth-form label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-size: .88rem;
    font-weight: 850;
}

.public-template .auth-form input,
.public-template .auth-form select {
    width: 100%;
    min-height: 50px;
    border: 1px solid #d7e4f2;
    border-radius: 16px;
    background: #fff;
    color: var(--tpl-ink);
    font: inherit;
    padding: 0 15px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.public-template .auth-form input:focus,
.public-template .auth-form select:focus {
    border-color: #0b74d1;
    box-shadow: 0 0 0 4px rgba(11, 116, 209, .12);
}

.public-template .auth-error {
    border: 1px solid rgba(220, 38, 38, .2);
    border-radius: 16px;
    background: #fff1f2;
    color: #b91c1c;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.55;
    padding: 12px 14px;
}

.public-template .auth-submit {
    width: 100%;
    margin-top: 4px;
    min-height: 50px;
    border-radius: 16px;
}

.public-template .auth-secondary {
    justify-self: center;
    color: #0b57ad;
    font-weight: 850;
    text-decoration: none;
}

.public-template .auth-secondary:hover {
    text-decoration: underline;
}

body.auth-modal-open {
    overflow: hidden;
}

.public-template .auth-dialog {
    max-height: min(92vh, 820px);
    overflow-y: auto;
}

.public-template .auth-step[hidden] {
    display: none;
}

.public-template .auth-step-copy {
    display: grid;
    gap: 6px;
    margin: 0 0 16px;
}

.public-template .auth-step-copy h3 {
    margin: 0;
    color: var(--tpl-ink);
    font-size: 1.1rem;
    line-height: 1.25;
}

.public-template .auth-step-copy p,
.public-template .auth-muted {
    margin: 0;
    color: var(--tpl-muted);
    font-size: .92rem;
    line-height: 1.6;
}

.public-template .auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 2px;
}

.public-template .auth-check {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 9px !important;
    color: #334155 !important;
    font-size: .86rem !important;
    font-weight: 850 !important;
    cursor: pointer;
    user-select: none;
}

.public-template .auth-check input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}

.public-template .auth-check span {
    display: inline-flex;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #b9d5f1;
    border-radius: 7px;
    background: #fff;
    transition: all .18s ease;
}

.public-template .auth-check span::after {
    content: "";
    width: 9px;
    height: 5px;
    border: 2px solid #fff;
    border-top: 0;
    border-right: 0;
    opacity: 0;
    transform: rotate(-45deg) scale(.7);
    transition: all .18s ease;
}

.public-template .auth-check input:checked + span {
    border-color: transparent;
    background: linear-gradient(135deg, #0b74d1, #0ea5a4);
    box-shadow: 0 10px 24px rgba(11, 116, 209, .18);
}

.public-template .auth-check input:checked + span::after {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

.public-template .auth-link-button {
    border: 0;
    background: transparent;
    color: #0b57ad;
    font: inherit;
    font-size: .88rem;
    font-weight: 900;
    padding: 0;
    cursor: pointer;
}

.public-template .auth-link-button:hover {
    color: #063f83;
    text-decoration: underline;
}

.public-template .auth-recaptcha {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.public-template .auth-method-grid {
    display: grid;
    gap: 10px;
}

.public-template .auth-method-card {
    display: grid;
    gap: 5px;
    width: 100%;
    border: 1px solid #d7e4f2;
    border-radius: 18px;
    background:
        radial-gradient(circle at right top, rgba(14, 165, 164, .11), transparent 28%),
        #fff;
    color: var(--tpl-ink);
    font: inherit;
    text-align: left;
    padding: 15px 16px;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.public-template .auth-method-card:hover {
    border-color: rgba(11, 116, 209, .35);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .1);
    transform: translateY(-1px);
}

.public-template .auth-method-card strong {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .98rem;
}

.public-template .auth-method-card span {
    color: var(--tpl-muted);
    font-size: .86rem;
    line-height: 1.45;
}

.public-template .auth-method-card small {
    color: var(--tpl-muted);
    font-size: .78rem;
    line-height: 1.4;
}

.public-template .auth-method-card small.is-warning {
    color: #9a6700;
    font-weight: 800;
}

.public-template .auth-method-tag {
    border-radius: 999px;
    background: #dbeafe;
    color: #0757a6;
    font-size: .66rem;
    font-style: normal;
    font-weight: 900;
    padding: 3px 8px;
}

.public-template .auth-method-tag.is-fallback {
    background: #e2e8f0;
    color: #475569;
}

.public-template .auth-back-row {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

@media (max-width: 980px) {
    .public-template .account-menu {
        width: 100%;
        max-width: none;
    }

    .public-template .user-chip {
        width: 100%;
        max-width: 100%;
    }

    .public-template .user-chip strong {
        flex: 1;
    }

    .public-template .account-menu-panel {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: 0 12px 30px rgba(15, 42, 75, .12);
    }
}

@media (max-width: 560px) {
    .public-template .auth-modal {
        padding: 14px;
    }

    .public-template .auth-dialog {
        border-radius: 22px;
        padding: 24px 18px 20px;
    }

    .public-template .auth-dialog-head {
        align-items: flex-start;
        flex-direction: column;
        padding-right: 46px;
    }

    .public-template .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Final polish: lighter public typography and clearer auth states. */
.public-template {
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    text-rendering: optimizeLegibility;
}

.public-template h1,
.public-template h2,
.public-template h3,
.public-template .brand strong,
.public-template .auth-dialog h2,
.public-template .auth-step-copy h3 {
    font-weight: 700;
    letter-spacing: -.025em;
}

.public-template .template-hero-copy h1,
.public-template .inner-hero-copy h1,
.public-template .profile-hero h1 {
    font-weight: 700;
    letter-spacing: -.035em;
}

.public-template .hero-pill,
.public-template .eyebrow,
.public-template .auth-kicker,
.public-template .top-bar,
.public-template .status-badge,
.public-template .profile-more {
    font-weight: 700;
}

.public-template .primary-nav a,
.public-template .btn,
.public-template .auth-form label,
.public-template .auth-check,
.public-template .auth-link-button,
.public-template .auth-error,
.public-template .auth-secondary {
    font-weight: 600 !important;
}

.public-template .auth-form input,
.public-template .filter-card input,
.public-template .filter-card select {
    font-weight: 500;
}

.public-template .auth-copy,
.public-template .hero-text,
.public-template p,
.public-template li,
.public-template dd {
    font-weight: 400;
}

.public-template .auth-recaptcha[data-recaptcha-loading="true"]::before {
    content: "Memuat verifikasi keamanan...";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    width: 100%;
    border: 1px dashed #b9d5f1;
    border-radius: 14px;
    background: #f4f9ff;
    color: #526985;
    font-size: .9rem;
    font-weight: 600;
}

.public-template .auth-recaptcha[data-recaptcha-loading="false"]::before {
    content: none;
}

.public-template .auth-recaptcha[data-recaptcha-loading="error"]::before {
    content: "Verifikasi keamanan belum dapat dimuat.";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    width: 100%;
    border: 1px solid rgba(220, 38, 38, .2);
    border-radius: 14px;
    background: #fff1f2;
    color: #b91c1c;
    font-size: .9rem;
    font-weight: 600;
}

/* Public header dropdown and directory/contact polish. */
.public-template .primary-nav {
    align-items: center;
}

.public-template .nav-dropdown {
    position: relative;
}

.public-template .nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    z-index: 39;
    height: 16px;
}

.public-template .nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--tpl-ink);
    font: inherit;
    font-weight: 600;
    padding: 0 14px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.public-template .nav-dropdown-trigger:hover,
.public-template .nav-dropdown.active .nav-dropdown-trigger,
.public-template .nav-dropdown.is-open .nav-dropdown-trigger,
.public-template .nav-dropdown:focus-within .nav-dropdown-trigger {
    background: #eaf5ff;
    color: #075eb4;
}

.public-template .nav-caret {
    color: #7a8aa2;
    font-size: .7rem;
    line-height: 1;
    transform: translateY(1px);
}

.public-template .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 40;
    display: grid;
    min-width: 218px;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(186, 208, 232, .8);
    border-radius: 18px;
    background:
        radial-gradient(circle at right top, rgba(14, 165, 164, .12), transparent 35%),
        rgba(255, 255, 255, .98);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease;
}

.public-template .nav-dropdown:hover .nav-dropdown-menu,
.public-template .nav-dropdown.is-open .nav-dropdown-menu,
.public-template .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.public-template .nav-dropdown.is-open .nav-caret {
    transform: rotate(180deg);
}

.public-template .nav-dropdown-menu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    border-radius: 12px;
    color: #23334d;
    padding: 0 12px;
    text-decoration: none;
}

.public-template .nav-dropdown-menu a:hover,
.public-template .nav-dropdown-menu a.active {
    background: #eef7ff;
    color: #075eb4;
}

.public-template .school-directory-section {
    padding-top: clamp(58px, 7vw, 96px);
}

.public-template .school-directory-content {
    display: grid;
    gap: 28px;
}

.public-template .school-directory-content.is-loading {
    opacity: .72;
    pointer-events: none;
}

.public-template .school-filter-card {
    align-items: end;
    grid-template-columns: minmax(260px, 1fr) auto;
}

.public-template .filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.public-template .filter-loading {
    color: var(--tpl-muted);
    font-size: .86rem;
    font-weight: 600;
}

.public-template .school-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.public-template .school-card-modern {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
    min-height: 188px;
    border: 1px solid rgba(187, 209, 231, .85);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(244, 249, 255, .9)),
        #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
    padding: 24px;
}

.public-template .school-card-modern::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 20px;
    width: 74px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b74d1, #17b29b);
    opacity: .18;
}

.public-template .school-card-modern:hover {
    border-color: rgba(11, 116, 209, .28);
    box-shadow: 0 24px 56px rgba(15, 23, 42, .11);
    transform: translateY(-2px);
}

.public-template .school-card-modern .school-logo {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(14, 165, 164, .92), rgba(11, 116, 209, .95));
    box-shadow: 0 16px 30px rgba(11, 116, 209, .16);
}

.public-template .school-card-modern .school-card-body {
    min-width: 0;
}

.public-template .school-card-modern h3 {
    margin: 10px 0 8px;
    font-size: clamp(1.08rem, 1.6vw, 1.34rem);
}

.public-template .school-card-modern h3 a {
    color: var(--tpl-ink);
    text-decoration: none;
}

.public-template .school-card-modern h3 a:hover {
    color: #075eb4;
}

.public-template .school-card-modern p {
    margin: 0 0 14px;
    color: var(--tpl-muted);
}

.public-template .school-card-modern .meta-list {
    flex-wrap: wrap;
    gap: 8px;
}

.public-template .contact-modern-section {
    padding-top: clamp(62px, 7vw, 104px);
}

.public-template .contact-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.public-template .contact-info-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(187, 209, 231, .85);
    border-radius: 22px;
    background:
        radial-gradient(circle at right bottom, rgba(14, 165, 164, .13), transparent 35%),
        #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
    padding: 22px;
}

.public-template .contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: #eaf5ff;
    color: #075eb4;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.public-template .contact-info-card p {
    margin: 0 0 8px;
    color: #63758f;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.public-template .contact-info-card h2 {
    margin: 0 0 10px;
    font-size: clamp(1rem, 1.45vw, 1.24rem);
}

.public-template .contact-info-card a,
.public-template .contact-muted {
    color: #075eb4;
    font-weight: 700;
    text-decoration: none;
}

.public-template .contact-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 22px;
    align-items: stretch;
}

.public-template .contact-form-panel,
.public-template .contact-map-panel {
    overflow: hidden;
    border: 1px solid rgba(187, 209, 231, .85);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 22px 58px rgba(15, 23, 42, .08);
}

.public-template .contact-form-panel {
    padding: clamp(26px, 4vw, 42px);
}

.public-template .contact-form-panel h2,
.public-template .compact-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.public-template .contact-form-panel > p:not(.eyebrow) {
    max-width: 640px;
    margin: 0 0 28px;
    color: var(--tpl-muted);
    line-height: 1.75;
}

.public-template .public-contact-form {
    display: grid;
    gap: 16px;
}

.public-template .public-contact-form label {
    display: grid;
    gap: 8px;
}

.public-template .public-contact-form label span {
    color: #30415c;
    font-size: .84rem;
    font-weight: 700;
}

.public-template .public-contact-form input,
.public-template .public-contact-form textarea {
    width: 100%;
    border: 1px solid #cfe0f2;
    border-radius: 16px;
    background: #f8fbff;
    color: var(--tpl-ink);
    font: inherit;
    padding: 14px 16px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.public-template .public-contact-form input:focus,
.public-template .public-contact-form textarea:focus {
    outline: 0;
    border-color: rgba(11, 116, 209, .6);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 116, 209, .12);
}

.public-template .contact-map-panel {
    display: grid;
    grid-template-rows: minmax(280px, 1fr) auto;
}

.public-template .contact-map {
    min-height: 320px;
    background: #eaf5ff;
}

.public-template .contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

.public-template .contact-map-copy {
    padding: 26px;
}

.public-template .contact-map-copy h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.public-template .contact-map-copy p:not(.eyebrow) {
    margin: 0 0 18px;
    color: var(--tpl-muted);
    line-height: 1.7;
}

.public-template .contact-faq-section {
    background:
        radial-gradient(circle at left top, rgba(11, 116, 209, .08), transparent 32%),
        #eef7ff;
}

.public-template .compact-heading {
    max-width: 780px;
    margin-bottom: 26px;
}

.public-template .contact-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.public-template .faq-card {
    border: 1px solid rgba(187, 209, 231, .9);
    border-radius: 20px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
    padding: 18px 20px;
}

.public-template .faq-card summary {
    color: var(--tpl-ink);
    font-weight: 700;
    cursor: pointer;
}

.public-template .faq-card p {
    margin: 12px 0 0;
    color: var(--tpl-muted);
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .public-template .contact-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-template .contact-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    body.public-template.nav-menu-open {
        overflow: hidden;
    }

    body.public-template .site-header.nav-open {
        max-height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.public-template .site-header.nav-open .nav-wrap {
        align-content: flex-start;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .public-template .primary-nav {
        align-items: stretch;
        gap: 10px;
        padding-top: 8px;
    }

    .public-template .nav-dropdown,
    .public-template .nav-dropdown-trigger {
        width: 100%;
    }

    .public-template .nav-dropdown::after {
        display: none;
    }

    .public-template .nav-dropdown-trigger {
        justify-content: space-between;
        min-height: 48px;
        padding-inline: 14px;
    }

    .public-template .nav-dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        margin-top: 4px;
        padding: 8px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
    }

    .public-template .nav-dropdown.is-open .nav-dropdown-menu {
        display: grid;
    }

    .public-template .nav-dropdown:hover .nav-dropdown-menu,
    .public-template .nav-dropdown:focus-within .nav-dropdown-menu {
        transform: none;
    }

    .public-template .nav-dropdown.is-open .nav-caret {
        transform: rotate(180deg);
    }

    .public-template .school-directory-grid,
    .public-template .contact-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .public-template .school-filter-card {
        grid-template-columns: 1fr;
    }

    .public-template .filter-actions {
        justify-content: stretch;
    }

    .public-template .filter-actions .btn {
        flex: 1;
    }

    .public-template .school-card-modern {
        grid-template-columns: 1fr;
    }

    .public-template .contact-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* Directory polish */
.public-template .profile-grid .student-card-compact {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 0;
    padding: 18px;
}

.public-template .student-card-compact .profile-photo {
    width: 104px;
    height: 124px;
    min-height: 0;
    aspect-ratio: auto;
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: 18px;
    background: #f8fbff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.public-template .student-card-compact .profile-photo::after {
    display: none;
}

.public-template .student-card-compact .profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.public-template .student-card-compact .profile-photo span {
    width: 100%;
    height: 100%;
    border-radius: 18px;
}

.public-template .student-card-compact .profile-card-body {
    gap: 8px;
    min-width: 0;
    padding: 0;
}

.public-template .student-card-compact .profile-card-kicker {
    min-height: 0;
}

.public-template .student-card-compact h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.public-template .student-card-compact p {
    margin: 0;
    line-height: 1.45;
}

.public-template .student-card-compact .meta-list {
    gap: 6px;
}

.public-template .student-card-compact .meta-list span {
    width: fit-content;
    max-width: 100%;
    padding: 6px 9px;
    font-size: .78rem;
    line-height: 1.25;
}

.public-template .student-card-compact .profile-more {
    width: fit-content;
    margin-top: 2px;
}

.public-template .related-student-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-template [data-related-student][hidden] {
    display: none !important;
}

.public-template .related-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.public-template .related-pagination button,
.public-template .related-pagination span {
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(255, 255, 255, .88);
    color: var(--tpl-ink);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

.public-template .related-pagination button {
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
}

.public-template .related-pagination span {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: var(--tpl-muted);
    font-weight: 700;
}

.public-template .related-pagination button:hover:not(:disabled) {
    border-color: rgba(14, 165, 233, .42);
    color: #075985;
    transform: translateY(-1px);
}

.public-template .related-pagination button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.public-template .student-profile-hero {
    min-height: 360px;
}

.public-template .student-profile-hero .profile-hero-single {
    grid-template-columns: minmax(0, 820px);
}

.public-template .student-detail-grid {
    max-width: 980px;
    grid-template-columns: minmax(0, 1fr);
}

.public-template .student-detail-summary {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    margin-bottom: 10px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(148, 163, 184, .24);
}

.public-template .student-detail-photo {
    display: grid;
    width: 118px;
    height: 146px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: 22px;
    background: #f8fbff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.public-template .student-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.public-template .student-detail-photo span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 900;
}

.public-template .student-detail-summary .eyebrow {
    margin-bottom: 8px;
}

.public-template .student-detail-summary h3 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.2;
}

.public-template .student-detail-summary .profile-summary-pills {
    margin-top: 0;
}

.public-template .school-hero .profile-hero-single {
    grid-template-columns: minmax(0, 820px);
}

.public-template .school-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .36fr);
}

.public-template .school-detail-summary {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 10px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(148, 163, 184, .24);
}

.public-template .school-detail-logo {
    display: grid;
    width: 132px;
    height: 132px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.public-template .school-detail-logo img {
    width: 100%;
    height: 100%;
    padding: 16px;
    object-fit: contain;
    background: #fff;
}

.public-template .school-detail-logo span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 900;
}

.public-template .school-detail-summary .eyebrow {
    margin-bottom: 8px;
}

.public-template .school-detail-summary h3 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.2;
}

.public-template .school-location-line {
    margin: 0 0 12px;
    color: var(--tpl-muted);
    line-height: 1.6;
}

.public-template .school-summary-pills {
    margin-top: 0;
}

.public-template .school-card-modern .school-logo,
.public-template .school-logo,
.public-template .school-portrait {
    border: 1px solid rgba(148, 163, 184, .32);
    background: #fff !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.public-template .school-card-modern .school-logo img,
.public-template .school-logo img,
.public-template .school-portrait img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain !important;
    background: #fff;
}

.public-template .school-portrait img {
    padding: 22px;
}

.public-template .school-profile-hero {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: grid;
    align-items: center;
    padding: 78px 0;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(30, 58, 138, .96), rgba(30, 58, 138, .84) 52%, rgba(30, 58, 138, .62)),
        url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&q=80&w=1800") center / cover;
}

.public-template .school-profile-hero::before {
    content: "";
    position: absolute;
    inset: auto -14% -42% auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(20, 184, 166, .22), rgba(14, 165, 233, 0) 68%);
    pointer-events: none;
}

.public-template .school-profile-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.public-template .school-profile-logo {
    display: grid;
    width: 148px;
    height: 148px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(5, 18, 40, .28);
}

.public-template .school-profile-logo img {
    width: 100%;
    height: 100%;
    padding: 18px;
    object-fit: contain;
    background: #fff;
}

.public-template .school-profile-logo span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
}

.public-template .school-profile-copy {
    min-width: 0;
}

.public-template .school-profile-copy .eyebrow {
    margin-bottom: 10px;
}

.public-template .school-profile-copy h1 {
    max-width: 880px;
    margin: 0;
    color: #fff;
    font-size: 2.55rem;
    line-height: 1.12;
    text-shadow: 0 14px 42px rgba(5, 18, 40, .36);
}

.public-template .school-profile-copy > p:not(.eyebrow) {
    max-width: 740px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .9);
    line-height: 1.75;
}

.public-template .school-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.public-template .school-profile-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #0f2859;
    font-size: .88rem;
    font-weight: 760;
    box-shadow: 0 12px 32px rgba(5, 18, 40, .12);
}

.public-template .school-profile-section {
    padding-top: 42px;
}

.public-template .school-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.public-template .school-stat-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 38px rgba(15, 42, 75, .07);
}

.public-template .school-stat-card strong,
.public-template .school-stat-card span,
.public-template .school-stat-card small {
    display: block;
}

.public-template .school-stat-card strong {
    color: #0f2859;
    font-size: 1.75rem;
    line-height: 1.1;
}

.public-template .school-stat-card span {
    margin-top: 8px;
    color: var(--tpl-ink);
    font-weight: 850;
}

.public-template .school-stat-card small {
    margin-top: 5px;
    color: var(--tpl-muted);
    line-height: 1.45;
}

.public-template .school-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 22px;
    align-items: start;
}

.public-template .school-profile-main,
.public-template .school-profile-side {
    min-width: 0;
}

.public-template .school-profile-main .panel-title-row {
    margin-bottom: 8px;
}

.public-template .school-profile-facts div {
    grid-template-columns: minmax(170px, .32fr) minmax(0, 1fr);
    gap: 18px;
}

.public-template .school-profile-facts dd {
    overflow-wrap: anywhere;
}

.public-template .school-profile-side h2 {
    margin-bottom: 18px;
}

.public-template .school-teacher-list {
    gap: 12px;
    margin-bottom: 0;
}

.public-template .school-teacher-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.public-template .school-teacher-list span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: #eaf5ff;
    color: #075eb4;
    font-size: .75rem;
    font-weight: 900;
}

.public-template .school-teacher-list strong {
    min-width: 0;
    color: var(--tpl-ink);
    font-size: .95rem;
    line-height: 1.45;
}

.public-template .school-related-section .section-head p {
    max-width: 720px;
    margin-top: 8px;
    color: var(--tpl-muted);
}

@media (max-width: 980px) {
    .public-template .school-profile-hero {
        padding: 48px 0 38px;
    }

    .public-template .school-profile-hero-inner {
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 22px;
    }

    .public-template .school-profile-logo {
        width: 116px;
        height: 116px;
        border-radius: 24px;
    }

    .public-template .school-profile-copy h1 {
        font-size: 2rem;
    }

    .public-template .school-profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-template .school-profile-layout {
        grid-template-columns: 1fr;
    }

    .public-template .related-student-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .public-template .school-profile-hero {
        padding: 34px 0 30px;
    }

    .public-template .school-profile-hero-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .public-template .school-profile-logo {
        width: 96px;
        height: 96px;
        border-radius: 22px;
    }

    .public-template .school-profile-logo img {
        padding: 12px;
    }

    .public-template .school-profile-copy h1 {
        font-size: 1.75rem;
        line-height: 1.16;
    }

    .public-template .school-profile-copy > p:not(.eyebrow) {
        margin-top: 12px;
        line-height: 1.65;
    }

    .public-template .school-profile-meta {
        gap: 8px;
    }

    .public-template .school-profile-meta span {
        width: 100%;
        border-radius: 14px;
    }

    .public-template .school-profile-copy .profile-actions {
        margin-top: 20px;
    }

    .public-template .school-profile-copy .profile-actions .btn {
        flex: 1 1 100%;
    }

    .public-template .school-profile-section {
        padding-top: 28px;
    }

    .public-template .school-profile-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }

    .public-template .school-stat-card {
        padding: 16px;
    }

    .public-template .school-stat-card strong {
        font-size: 1.45rem;
    }

    .public-template .school-profile-facts div {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px 0;
    }

    .public-template .school-teacher-list li {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 10px;
    }

    .public-template .school-teacher-list span {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .public-template .profile-grid .student-card-compact {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .public-template .student-card-compact .profile-photo {
        width: 82px;
        height: 100px;
        border-radius: 16px;
    }

    .public-template .student-detail-summary {
        grid-template-columns: 1fr;
    }

    .public-template .student-detail-photo {
        width: 112px;
        height: 138px;
    }

    .public-template .school-detail-summary {
        grid-template-columns: 1fr;
    }

    .public-template .school-detail-logo {
        width: 112px;
        height: 112px;
    }
}

@media (max-width: 430px) {
    .public-template .profile-grid .student-card-compact {
        grid-template-columns: 1fr;
    }

    .public-template .student-card-compact .profile-photo {
        width: 100%;
        height: 220px;
    }
}

.public-template .template-hero .hero-actions {
    margin-bottom: 0;
}

.public-template .template-schools-section {
    background:
        linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
}

.public-template .home-school-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.public-template .home-school-grid .empty-state {
    grid-column: 1 / -1;
}

.public-template .home-school-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    min-height: 190px;
    gap: 20px;
    padding: 24px;
}

.public-template .home-school-card .school-logo {
    width: 88px;
    height: 88px;
    border-radius: 24px;
}

.public-template .home-school-card .school-logo span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: inherit;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    color: #fff;
    font-weight: 900;
}

.public-template .home-school-card .status-badge {
    width: max-content;
    margin-bottom: 10px;
}

.public-template .home-school-card h3 {
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.22;
}

.public-template .home-school-card h3 a {
    color: var(--tpl-ink);
}

.public-template .home-school-card p {
    margin: 0 0 14px;
    color: var(--tpl-muted);
    line-height: 1.55;
    text-transform: uppercase;
}

.public-template .home-school-card .meta-list {
    margin-bottom: 14px;
}

@media (max-width: 1100px) {
    .public-template .home-school-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .public-template .home-school-card {
        grid-template-columns: 1fr;
    }
}
/* Public CMS content */
.public-content-section {
    background: #f8fafc;
}

.public-content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.public-content-card {
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .07);
}

.public-content-card > a {
    display: block;
    aspect-ratio: 16 / 9;
    background: #dbeafe;
}

.public-content-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-content-card-body {
    padding: 22px;
}

.public-content-card h2,
.gallery-public-item h2,
.agenda-item h2 {
    margin: 8px 0 10px;
    font-size: 1.18rem;
    line-height: 1.35;
}

.public-content-card h2 a {
    color: #0f172a;
    text-decoration: none;
}

.content-kicker {
    color: #075fbd;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.content-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 18px;
    color: #64748b;
    font-size: .78rem;
}

.article-header {
    padding: 82px 0 120px;
    color: #fff;
    background: #123b78;
}

.article-header-inner {
    max-width: 920px;
}

.article-header h1 {
    max-width: 900px;
    margin: 12px 0 18px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.08;
}

.article-header p,
.article-header .content-meta {
    color: rgba(255, 255, 255, .84);
}

.article-cover {
    max-width: 1120px;
    margin-top: -72px;
}

.article-cover img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border: 6px solid #fff;
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, .18);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
    gap: 56px;
    padding-top: 58px;
    padding-bottom: 80px;
}

.article-body {
    color: #263449;
    font-size: 1.04rem;
    line-height: 1.85;
}

.article-body h2,
.article-body h3 {
    margin-top: 1.8em;
    color: #0f172a;
}

.article-body blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 4px solid #eab308;
    background: #fffbea;
}

.article-aside {
    align-self: start;
    position: sticky;
    top: 110px;
    padding: 22px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.agenda-list {
    display: grid;
    gap: 14px;
    max-width: 980px;
}

.agenda-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 24px;
    padding: 24px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #fff;
}

.agenda-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    color: #fff;
    border-radius: 7px;
    background: #075fbd;
}

.agenda-date strong {
    font-size: 1.75rem;
}

.agenda-date span {
    font-size: .72rem;
    text-transform: uppercase;
}

.gallery-public-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gallery-public-item {
    overflow: hidden;
    margin: 0;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #fff;
}

.gallery-public-item img,
.gallery-public-item iframe {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    object-fit: cover;
    background: #0f172a;
}

.gallery-public-item figcaption {
    padding: 18px;
}

.faq-public-list {
    display: grid;
    gap: 12px;
    max-width: 920px;
}

.faq-answer {
    padding-top: 12px;
    color: #475569;
    line-height: 1.75;
}

@media (max-width: 960px) {
    .public-content-grid,
    .gallery-public-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .public-content-grid,
    .gallery-public-grid {
        grid-template-columns: 1fr;
    }

    .agenda-item {
        grid-template-columns: 72px 1fr;
        gap: 15px;
        padding: 16px;
    }
}

/* Account menu final polish */
body.public-template .nav-actions {
    position: relative;
}

body.public-template .account-menu {
    position: relative;
    z-index: 95;
    flex: 0 0 auto;
    max-width: 250px;
}

body.public-template .user-chip {
    min-width: 0;
    max-width: 250px;
    min-height: 46px;
    padding: 6px 12px 6px 7px;
    border-color: rgba(11, 87, 173, .18);
    background: #f5fbff;
    box-shadow: 0 10px 28px rgba(15, 42, 75, .08);
}

body.public-template .user-chip span {
    flex: 0 0 auto;
    font-weight: 900;
}

body.public-template .user-chip strong {
    min-width: 0;
    max-width: 160px;
}

body.public-template .account-menu[open] .user-chip {
    border-color: rgba(11, 116, 209, .38);
    background: #eaf5ff;
}

body.public-template .account-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 999;
    display: grid;
    width: 304px;
    max-width: calc(100vw - 32px);
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(205, 218, 232, .92);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(15, 42, 75, .22);
}

body.public-template .account-menu-panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 22px;
    width: 12px;
    height: 12px;
    border-top: 1px solid rgba(205, 218, 232, .92);
    border-left: 1px solid rgba(205, 218, 232, .92);
    background: #ffffff;
    transform: rotate(45deg);
}

body.public-template .account-menu-identity {
    min-width: 0;
    padding: 11px 12px 12px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #f6fbff, #edf7ff);
}

body.public-template .account-menu-identity small {
    color: #557091;
    letter-spacing: .06em;
}

body.public-template .account-menu-identity strong {
    max-width: 100%;
    font-size: .9rem;
}

body.public-template .account-menu-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: #ffffff;
    color: #17365f;
    font: inherit;
    line-height: 1.25;
    text-align: left;
    appearance: none;
}

body.public-template .account-menu-item-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #edf6ff;
    color: #075fbd;
    font-size: .72rem;
    font-weight: 900;
}

body.public-template .account-menu-item-copy {
    display: block;
    min-width: 0;
}

body.public-template .account-menu-item-copy span,
body.public-template .account-menu-item-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.public-template .account-menu-item-copy span {
    display: block;
    color: #10233f;
    font-size: .88rem;
    font-weight: 850;
}

body.public-template .account-menu-item-copy small {
    display: block;
    margin-top: 2px;
    color: #6b7f98;
    font-size: .72rem;
}

body.public-template .account-menu-item:hover,
body.public-template .account-menu-item:focus-visible {
    border-color: #cde8ff;
    background: #f4faff;
}

body.public-template .account-menu-logout {
    color: #b42318;
}

body.public-template .account-menu-logout .account-menu-item-icon {
    background: #fff1f0;
    color: #b42318;
}

body.public-template .account-menu-logout:hover,
body.public-template .account-menu-logout:focus-visible {
    border-color: #ffd1cc;
    background: #fff8f7;
}

@media (max-width: 980px) {
    body.public-template .account-menu {
        width: 100%;
        max-width: none;
    }

    body.public-template .user-chip {
        width: 100%;
        max-width: none;
    }

    body.public-template .user-chip strong {
        max-width: none;
        flex: 1;
    }

    body.public-template .account-menu-panel {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 8px;
        box-shadow: 0 14px 34px rgba(15, 42, 75, .14);
    }

    body.public-template .account-menu-panel::before {
        display: none;
    }
}

.android-download-band {
    width: 100%;
    padding: 44px 0;
    background: #111827;
    color: #ffffff;
}

.android-download-band.is-compact {
    padding: 30px 0;
}

.android-download-inner {
    display: grid;
    grid-template-columns: minmax(240px, .9fr) minmax(280px, 1.35fr) minmax(220px, .8fr);
    align-items: center;
    gap: 30px;
}

.android-download-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.android-download-identity img {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: #0f172a;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .24);
}

.is-compact .android-download-identity img {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 15px;
}

.android-download-eyebrow {
    margin: 0 0 5px;
    color: #86efac;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.android-download-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.android-download-name strong {
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0;
}

.android-download-name span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #166534;
    color: #dcfce7;
    font-size: .7rem;
    font-weight: 800;
}

.android-download-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.65rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.android-download-copy p {
    margin: 9px 0 0;
    color: #cbd5e1;
    font-size: .9rem;
    line-height: 1.65;
}

.android-download-actions {
    display: grid;
    gap: 9px;
}

.android-download-actions .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 800;
}

.btn-android-primary {
    border: 1px solid #22c55e;
    background: #22c55e;
    color: #052e16;
}

.btn-android-primary:hover {
    border-color: #4ade80;
    background: #4ade80;
    color: #052e16;
}

.btn-android-secondary {
    border: 1px solid rgba(255, 255, 255, .38);
    background: transparent;
    color: #ffffff;
}

.btn-android-secondary:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #111827;
}

.android-download-changelog {
    display: inline-flex;
    justify-content: center;
    padding: 4px;
    color: #bfdbfe;
    font-size: .78rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.android-download-changelog:hover {
    color: #ffffff;
}

.android-download-checksum {
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #94a3b8;
    font-size: .75rem;
}

.android-download-checksum summary {
    width: fit-content;
    cursor: pointer;
    color: #cbd5e1;
    font-weight: 700;
}

.android-download-checksum code {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 8px;
    color: #86efac;
}

@media (max-width: 980px) {
    .android-download-inner {
        grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr);
    }

    .android-download-copy {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 640px) {
    .android-download-band,
    .android-download-band.is-compact {
        padding: 28px 0;
    }

    .android-download-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .android-download-copy {
        grid-column: auto;
        grid-row: auto;
    }

    .android-download-actions {
        width: 100%;
    }

    .android-download-copy h2 {
        font-size: 1.35rem;
    }
}

@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
    .android-download-band {
        display: none !important;
    }
}

/* Video Highlight -------------------------------------------------------- */
.video-highlight-home {
    padding: 48px 0 44px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 20%, rgba(14, 165, 233, .13), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(124, 58, 237, .12), transparent 32%),
        #ffffff;
    border-bottom: 1px solid var(--line);
}

.video-highlight-home-head,
.video-highlight-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.video-highlight-home-head h2 {
    margin: 3px 0 6px;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.18;
}

.video-highlight-home-head p:last-child {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
}

.video-highlight-all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--brand-2);
    font-weight: 800;
}

.video-highlight-all span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #e8f4ff;
}

.story-rail {
    display: flex;
    gap: 19px;
    overflow-x: auto;
    margin-top: 26px;
    padding-top: 3px;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #bfdbfe transparent;
}

.story-bubble {
    flex: 0 0 108px;
    display: flex;
    width: 108px;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 0;
    color: var(--ink);
    font: inherit;
    text-align: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    scroll-snap-align: start;
}

.story-bubble-ring {
    position: relative;
    display: grid;
    width: 94px;
    height: 94px;
    padding: 4px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(from 210deg, #0ea5e9, #2563eb, #7c3aed, #ec4899, #f59e0b, #0ea5e9);
    box-shadow: 0 10px 28px rgba(37, 99, 235, .2);
    transition: transform .2s ease, filter .2s ease;
}

.story-bubble:hover .story-bubble-ring,
.story-bubble:focus-visible .story-bubble-ring {
    transform: translateY(-3px) scale(1.03);
}

.story-bubble.is-seen .story-bubble-ring {
    background: #cbd5e1;
    box-shadow: none;
}

.story-bubble-media {
    display: block;
    width: 100%;
    height: 100%;
    padding: 3px;
    overflow: hidden;
    border-radius: inherit;
    background: #fff;
}

.story-bubble-media img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.story-bubble-play {
    position: absolute;
    right: 1px;
    bottom: 3px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    padding-left: 2px;
    color: #fff;
    font-size: .64rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #1367d1;
}

.story-bubble-title {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 1.35em;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: .76rem;
    font-weight: 750;
    line-height: 1.35;
    white-space: nowrap;
}

.story-bubble-username {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-bubble-verified {
    flex: 0 0 12px;
    display: inline-flex;
    width: 12px;
    height: 12px;
    align-items: center;
    justify-content: center;
    color: #0b8fea;
}

.story-bubble-verified svg {
    display: block;
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.video-highlight-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(250, 204, 21, .28), transparent 24%),
        linear-gradient(120deg, #122b67 0%, #1d4ed8 48%, #6d28d9 100%);
}

.video-highlight-hero::after {
    position: absolute;
    right: -8vw;
    bottom: -65%;
    width: 42vw;
    aspect-ratio: 1;
    content: "";
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255, 255, 255, .035), 0 0 0 110px rgba(255, 255, 255, .025);
}

.video-highlight-hero-inner {
    position: relative;
    z-index: 1;
    align-items: center;
}

.video-highlight-hero-inner > div:first-child {
    max-width: 760px;
}

.video-highlight-hero h1 {
    max-width: 720px;
    margin: 8px 0 14px;
    font-size: clamp(2.3rem, 6vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.video-highlight-hero p:not(.eyebrow) {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem;
}

.video-highlight-hero .eyebrow {
    color: #fde68a;
}

.video-highlight-hero-mark {
    flex: 0 0 auto;
    display: grid;
    width: 114px;
    aspect-ratio: 9 / 16;
    place-content: center;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, .65);
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
    transform: rotate(5deg);
    backdrop-filter: blur(10px);
}

.video-highlight-hero-mark span {
    font-size: .78rem;
    font-weight: 700;
}

.video-highlight-hero-mark strong {
    color: #fde047;
    font-size: 1.25rem;
    letter-spacing: .12em;
}

.video-highlight-library {
    background: #f7faff;
}

.video-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.video-highlight-card {
    display: block;
    width: 100%;
    padding: 0;
    color: #0f172a;
    font: inherit;
    text-align: left;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.video-highlight-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 14px 38px rgba(15, 41, 77, .08);
}

.video-highlight-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.video-highlight-filter label {
    display: grid;
    gap: 6px;
}

.video-highlight-filter label > span {
    color: #475569;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.video-highlight-filter select {
    min-width: 154px;
    min-height: 44px;
    padding: 9px 38px 9px 13px;
    color: #0f172a;
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
}

.video-highlight-filter button,
.video-highlight-filter a,
.video-highlight-empty-reset {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
}

.video-highlight-filter button {
    color: #fff;
    border: 1px solid #1d4ed8;
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .22);
}

.video-highlight-filter a,
.video-highlight-empty-reset {
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.video-highlight-result {
    flex: 0 0 auto;
    margin: 0 2px 10px 0;
    color: #64748b;
    font-size: .78rem;
    white-space: nowrap;
}

.video-highlight-result strong {
    color: #0f172a;
}

.video-highlight-card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    background: #0f172a;
    box-shadow: 0 18px 44px rgba(15, 41, 77, .14);
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease;
}

.video-highlight-card:hover .video-highlight-card-poster,
.video-highlight-card:focus-visible .video-highlight-card-poster {
    transform: translateY(-7px);
    box-shadow: 0 26px 60px rgba(37, 99, 235, .22);
}

.video-highlight-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .4);
    outline-offset: 5px;
    border-radius: 22px;
}

.video-highlight-card-poster > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.video-highlight-card:hover .video-highlight-card-poster > img,
.video-highlight-card:focus-visible .video-highlight-card-poster > img {
    transform: scale(1.035);
}

.video-highlight-card-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, .08) 35%, rgba(15, 23, 42, .9) 100%);
}

.video-highlight-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #1d4ed8;
    border: 1px solid rgba(255, 255, 255, .96);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .24), 0 0 0 7px rgba(255, 255, 255, .14);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(14px);
    transition: color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.video-highlight-card-play svg {
    display: block;
    width: 23px;
    height: 23px;
    margin-left: 2px;
    fill: currentColor;
}

.video-highlight-card:hover .video-highlight-card-play,
.video-highlight-card:focus-visible .video-highlight-card-play {
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
    box-shadow: 0 14px 36px rgba(37, 99, 235, .36), 0 0 0 8px rgba(255, 255, 255, .18);
    transform: translate(-50%, -50%) scale(1.06);
}

.video-highlight-card-source {
    position: absolute;
    top: 14px;
    right: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}

.video-highlight-card-username {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-highlight-card-verified {
    flex: 0 0 12px;
    display: inline-flex;
    width: 12px;
    height: 12px;
    align-items: center;
    justify-content: center;
    color: #fff;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5));
}

.video-highlight-card-verified svg {
    display: block;
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.video-highlight-card-avatar {
    flex: 0 0 29px;
    display: grid;
    width: 29px;
    height: 29px;
    overflow: hidden;
    place-items: center;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .95);
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #db2777, #7c3aed);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}

.video-highlight-card-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-highlight-card-avatar strong {
    font-size: .65rem;
}

.video-highlight-card-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 14px 3px 0;
}

.video-highlight-card-copy small {
    color: #2563eb;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.video-highlight-empty {
    grid-column: 1 / -1;
}

.video-highlight-empty-reset {
    margin-top: 14px;
}

.video-highlight-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}

.video-highlight-pagination a,
.video-highlight-pagination .is-current,
.video-highlight-pagination .is-disabled,
.video-page-ellipsis {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: .78rem;
    font-weight: 800;
    border: 1px solid #dbe5f1;
    border-radius: 12px;
    background: #fff;
}

.video-highlight-pagination a:hover,
.video-highlight-pagination a:focus-visible {
    color: #1d4ed8;
    border-color: #93c5fd;
    outline: 3px solid rgba(59, 130, 246, .16);
}

.video-highlight-pagination .is-current {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
    box-shadow: 0 8px 22px rgba(37, 99, 235, .24);
}

.video-highlight-pagination .is-disabled {
    color: #94a3b8;
    background: #f8fafc;
}

.video-page-direction {
    gap: 7px;
    min-width: 124px !important;
    padding: 8px 14px;
}

.video-page-numbers {
    display: flex;
    align-items: center;
    gap: 7px;
}

.video-page-ellipsis {
    min-width: 24px;
    border-color: transparent;
    background: transparent;
}

.video-highlight-empty-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    place-items: center;
    padding-left: 3px;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #6d28d9);
}

.story-modal[hidden] {
    display: none;
}

.story-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    min-width: 0;
    overflow: hidden;
    place-items: center;
    padding: 18px 64px;
}

.story-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .88);
    backdrop-filter: blur(18px);
}

.story-player-stage {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 1600px);
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2vw, 34px);
}

.story-side-group {
    flex: 1 1 0;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: clamp(12px, 1.25vw, 20px);
}

.story-side-group-prev {
    justify-content: flex-end;
}

.story-side-group-next {
    justify-content: flex-start;
}

.story-side-preview {
    position: relative;
    flex: 0 1 198px;
    display: flex;
    overflow: hidden;
    width: clamp(122px, 11vw, 198px);
    min-width: 0;
    aspect-ratio: 9 / 16;
    align-items: flex-end;
    padding: 0;
    color: #fff;
    font: inherit;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    background: #0f172a;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .34);
    opacity: .6;
    cursor: pointer;
    transform: scale(.92);
    transition: opacity .2s ease, transform .2s ease;
}

.story-side-preview-far {
    flex-basis: 162px;
    width: clamp(98px, 8.5vw, 162px);
    opacity: .38;
    transform: scale(.84);
}

.story-side-preview:hover,
.story-side-preview:focus-visible {
    opacity: .92;
    outline: 3px solid rgba(255, 255, 255, .45);
    outline-offset: 4px;
    transform: scale(.97);
}

.story-side-preview-far:hover,
.story-side-preview-far:focus-visible {
    opacity: .78;
    transform: scale(.9);
}

.story-side-preview[hidden] {
    display: flex !important;
    visibility: hidden;
    pointer-events: none;
}

.story-side-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-side-preview::after {
    position: absolute;
    inset: 35% 0 0;
    content: "";
    background: linear-gradient(transparent, rgba(2, 6, 23, .86));
}

.story-side-preview span {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 14px;
    font-size: .76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-side-preview-far span {
    padding: 12px;
    font-size: .69rem;
}

.story-player-shell {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: min(430px, calc((100dvh - 36px) * .5625), calc(100vw - 116px));
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 9 / 16;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 25px;
    background: #020617;
    box-shadow: 0 32px 100px rgba(0, 0, 0, .55);
}

.story-player-shell::before,
.story-player-shell::after {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 2;
    height: 30%;
    content: "";
    pointer-events: none;
}

.story-player-shell::before {
    top: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, .82), transparent);
}

.story-player-shell::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, .94), transparent);
}

.story-player-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.story-player-progress {
    position: absolute;
    top: 10px;
    right: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    gap: 4px;
}

.story-progress-track {
    flex: 1;
    overflow: hidden;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .34);
}

.story-progress-value {
    appearance: none;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: inherit;
    background: transparent;
}

.story-progress-value::-webkit-progress-bar {
    border-radius: inherit;
    background: transparent;
}

.story-progress-value::-webkit-progress-value,
.story-progress-value::-moz-progress-bar {
    border-radius: inherit;
    background: #fff;
}

.story-player-header {
    position: absolute;
    top: 24px;
    right: 15px;
    left: 15px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-player-brand {
    flex: 0 0 auto;
    display: grid;
    width: 28px;
    height: 28px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #db2777, #7c3aed);
    color: #fff;
}

.story-player-brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-player-brand img[hidden] {
    display: none;
}

.story-player-brand strong {
    font-size: .68rem;
    letter-spacing: .02em;
}

.story-player-heading {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin-right: auto;
}

.story-player-heading a {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.story-player-heading a:hover,
.story-player-heading a:focus-visible {
    text-decoration: underline;
}

.story-player-verified {
    display: inline-flex;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.story-player-verified[hidden] {
    display: none;
}

.story-player-verified svg {
    display: block;
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.story-player-heading strong,
.story-player-heading small {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-player-heading strong {
    min-width: 0;
    font-size: .82rem;
}

.story-player-heading small {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .72);
    font-size: .68rem;
}

.story-player-heading .story-player-position {
    color: rgba(255, 255, 255, .58);
}

.story-player-title-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.story-icon-button {
    flex: 0 0 auto;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    color: #fff;
    font: inherit;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(2, 6, 23, .36);
    cursor: pointer;
    backdrop-filter: blur(9px);
}

.story-close-button span {
    margin-top: -2px;
    font-size: 1.55rem;
    line-height: 1;
}

.story-step {
    position: absolute;
    top: 50%;
    z-index: 7;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    color: #fff;
    font: inherit;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(2, 6, 23, .48);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.story-step span {
    margin-top: -4px;
    font-size: 2rem;
}

.story-step:disabled {
    opacity: .24;
    cursor: default;
}

.story-step-prev {
    left: 12px;
}

.story-step-next {
    right: 12px;
}

.story-player-footer {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 6;
}

.story-player-copy > span {
    display: inline-block;
    margin-bottom: 5px;
    color: #bfdbfe;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.story-player-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: .8rem;
    line-height: 1.45;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.story-player-copy p.is-expanded {
    display: block;
    overflow: auto;
    max-height: min(36dvh, 260px);
    -webkit-line-clamp: unset;
}

.story-player-caption button {
    display: inline-flex;
    margin-top: 3px;
    padding: 0;
    color: #fff;
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.story-player-caption button[hidden] {
    display: none;
}

.story-player-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.story-pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 13px;
    color: #fff;
    font: inherit;
    font-size: .72rem;
    font-weight: 750;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.story-player-fallback {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 32px 68px;
    text-align: center;
    background: #0f172a;
}

.story-player-fallback[hidden] {
    display: none;
}

.story-player-fallback span {
    color: #cbd5e1;
    font-size: .8rem;
}

.story-feed-status {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 12px;
    color: #fff;
    text-align: center;
    font-size: .74rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    background: rgba(15, 23, 42, .82);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
    backdrop-filter: blur(12px);
}

.story-feed-status[hidden],
.story-feed-status button[hidden] {
    display: none;
}

.story-feed-status button {
    flex: 0 0 auto;
    padding: 5px 10px;
    color: #0f172a;
    font: inherit;
    font-size: .7rem;
    font-weight: 800;
    border: 0;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

body.story-player-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .video-highlight-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1500px) {
    .story-side-preview-far,
    .story-side-preview-far[hidden] {
        display: none !important;
    }

    .story-player-stage {
        width: min(100%, 1080px);
        gap: clamp(22px, 3vw, 46px);
    }
}

@media (max-width: 1120px) {
    .story-side-group {
        display: none !important;
    }

    .story-player-stage {
        width: auto;
    }
}

@media (max-width: 720px) {
    .video-highlight-home {
        padding: 36px 0 34px;
    }

    .video-highlight-home-head,
    .video-highlight-hero-inner {
        align-items: flex-start;
    }

    .video-highlight-home-head {
        display: block;
    }

    .video-highlight-all {
        margin-top: 14px;
    }

    .story-rail {
        width: 100%;
        margin-left: 0;
        padding-right: 20px;
    }

    .story-bubble {
        flex-basis: 90px;
        width: 90px;
    }

    .story-bubble-ring {
        width: 82px;
        height: 82px;
    }

    .video-highlight-hero {
        padding: 58px 0;
    }

    .video-highlight-hero-mark {
        width: 82px;
        border-radius: 15px;
    }

    .video-highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .video-highlight-toolbar {
        display: grid;
        align-items: stretch;
        gap: 14px;
        padding: 15px;
    }

    .video-highlight-filter {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-highlight-filter select {
        width: 100%;
        min-width: 0;
    }

    .video-highlight-filter button,
    .video-highlight-filter a {
        width: 100%;
    }

    .video-highlight-result {
        margin: 0;
        white-space: normal;
    }

    .video-highlight-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }

    .video-page-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .video-page-direction {
        flex: 1 1 130px;
    }

    .video-highlight-card {
        border-radius: 0;
    }

    .video-highlight-card-poster {
        border-radius: 17px;
    }

    .video-highlight-card-copy {
        padding-top: 11px;
    }

    .video-highlight-card-copy small {
        font-size: .58rem;
    }

    .story-modal {
        padding: 0;
        background: #020617;
    }

    .story-player-shell {
        width: 100dvw;
        max-width: 100dvw;
        height: 100dvh;
        aspect-ratio: auto;
        border: 0;
        border-radius: 0;
    }

    .story-player-stage {
        width: 100dvw;
        height: 100dvh;
    }

    .story-player-fallback {
        padding: 32px;
    }

    .story-player-fallback strong,
    .story-player-fallback span {
        width: 100%;
        overflow-wrap: anywhere;
    }

    .story-step {
        top: 22%;
        width: 42%;
        height: 54%;
        color: transparent;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        backdrop-filter: none;
    }

    .story-step-prev {
        left: 0;
    }

    .story-step-next {
        right: 0;
    }

    .story-step:disabled {
        display: none;
    }

    .story-player-header,
    .story-player-footer,
    .story-player-progress {
        z-index: 9;
    }
}

@media (max-width: 430px) {
    .video-highlight-hero-mark {
        display: none;
    }

    .video-highlight-hero h1 {
        font-size: 2.45rem;
    }

    .video-highlight-card-play {
        width: 46px;
        height: 46px;
    }

    .video-highlight-card-play svg {
        width: 20px;
        height: 20px;
    }

    .video-highlight-card-source {
        top: 11px;
        right: 10px;
        left: 10px;
        gap: 6px;
        font-size: .64rem;
    }

    .video-highlight-card-avatar {
        flex-basis: 25px;
        width: 25px;
        height: 25px;
    }

    .video-highlight-filter {
        grid-template-columns: 1fr;
    }

    .video-highlight-pagination a,
    .video-highlight-pagination .is-current,
    .video-highlight-pagination .is-disabled {
        min-width: 36px;
        min-height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-bubble-ring,
    .video-highlight-card,
    .video-highlight-card-poster,
    .video-highlight-card img {
        transition: none;
    }
}
