:root {
    /* School brand palette */
    --brand: #b3eaf9;
    --brand-dark: #b3eaf9;
    --brand-light: #edfaff;
    --brand-ink: #174f63;
    --accent: #ff9933;         /* saffron */
    --saffron: #ff9933;
    --saffron-dark: #e07b16;
    --green: #b3eaf9;
    --green-dark: #b3eaf9;
    --navy: #1c2b46;
    --text: #222;
    --muted: #6b6b6b;
    --border: #e2e2e2;
    --bg: #fafafa;
}

/* Accessibility: high-contrast toggle (set on <html> by app.js) */
html.high-contrast, html.high-contrast body { background: #000 !important; color: #fff !important; }
html.high-contrast a { color: #ffd400 !important; }
html.high-contrast .gov-tile,
html.high-contrast .vm-card,
html.high-contrast .leader-card,
html.high-contrast .site-header,
html.high-contrast .achievement-card,
html.high-contrast .testimonial-card { background: #000 !important; color: #fff !important; border-color: #fff !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Noto Sans Gujarati", "Nirmala UI", "Shruti", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.55;
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }
h1, h2, h3 { line-height: 1.25; }

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    background: var(--brand);
    color: var(--brand-ink);
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 4px 0;
    z-index: 100;
}
.skip-link:focus {
    left: 0;
    top: 0;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--brand-ink); border-color: var(--brand); }
.btn-link { background: none; border: none; color: var(--brand-ink); padding: 0; }

.alert {
    background: #edfaff;
    border: 1px solid #b3eaf9;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin: 1rem auto;
    max-width: 1100px;
}

/* ---- Admissions ribbon ---- */
.admission-ribbon {
    background: var(--brand-dark);
    color: var(--brand-ink);
    text-align: center;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.admission-ribbon a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; }

/* ---- Public header/nav ---- */
.site-header { border-bottom: none; position: sticky; top: 0; background: #fff; z-index: 20; }
.site-header-inner {
    max-width: none; margin: 0; padding: 0;
}
.header-top {
    width: 100%; max-width: 1280px; min-height: 108px; margin: 0 auto;
    display: flex; align-items: center; gap: 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.2rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 40px; width: 40px; object-fit: contain; }
.brand-mark {
    height: 40px; width: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.main-nav { flex: 0 0 100%; width: 100%; background: #12369e; }
.main-nav ul { list-style: none; display: flex; gap: 0; margin: 0 auto; padding: 0; flex-wrap: wrap; max-width: 1280px; }
.main-nav a { color: #fff; font-weight: 700; text-transform: uppercase; font-size: 0.88rem; }
.main-nav a.active { color: #fff; border-bottom: none; background: #f37021; }
.login-link { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }
.nav-login-mobile { display: none; }
.header-identity {
    flex: 1 1 auto; min-width: 220px; text-align: center;
    display: flex; flex-direction: column; gap: .25rem; color: #52636d; font-size: .82rem;
}
.header-identity strong { color: var(--brand-ink); font-size: .92rem; }
.header-school-info {
    flex: 0 0 auto; padding: .65rem 1.5rem .65rem 0; text-align: right;
    display: flex; flex-direction: column; align-items: flex-end; gap: .08rem;
    color: #334155; font-size: .82rem; line-height: 1.35;
}
.header-school-info > strong { color: var(--brand-ink); font-size: 1rem; letter-spacing: .02em; }
.header-school-actions { display: flex; align-items: center; justify-content: flex-end; gap: .85rem; margin-top: .2rem; }
.header-phone { display: inline-flex; align-items: center; gap: .28rem; color: #334155; font-weight: 700; }
.header-admissions {
    display: inline-block; padding: .28rem .7rem; border-radius: 4px;
    background: var(--accent); color: #1d2730; font-weight: 800;
}
.header-admissions:hover { background: var(--saffron-dark); color: #fff; text-decoration: none; }

/* ---- Hero ---- */
.hero { position: relative; background: var(--brand-light); text-align: center; overflow: hidden; }
.hero-track { position: relative; }
.hero-slide { position: relative; }
.hero-slide[hidden] { display: none; }
.hero-slide img { width: 100%; height: 420px; object-fit: cover; }
.hero-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff; padding: 2rem 1.5rem 1.5rem; text-align: left;
}
.hero-caption h1 { margin: 0 0 0.25rem; font-size: 1.6rem; }
.hero-placeholder { padding: 4rem 1.5rem; }
.hero-placeholder h1 { margin: 0 0 0.5rem; }
.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.85); border: none; border-radius: 50%;
    width: 40px; height: 40px; cursor: pointer; font-size: 1rem; color: var(--brand-ink);
}
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }
.hero-dots { position: absolute; bottom: 0.75rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.4rem; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.6); cursor: pointer; padding: 0; }
.hero-dot.active { background: #fff; }
.hero-actions { padding: 1.5rem; display: flex; gap: 1rem; justify-content: center; }

/* ---- Principal's message ---- */
.principal-message {
    display: flex; gap: 1.5rem; align-items: flex-start; padding: 2.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.principal-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.principal-photo-placeholder {
    background: var(--brand-light); color: var(--brand-ink); display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700;
}
.eyebrow { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; color: var(--muted); margin: 0; }
.principal-message h2 { margin: 0.2rem 0 0.5rem; }
.principal-excerpt { margin: 0 0 0.5rem; color: #444; }
.link-more { font-weight: 600; }

.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 2.5rem 1.5rem; }
.home-col ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.home-col li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 0.75rem; }
.news-date, .event-date { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.view-all { font-weight: 600; }

/* ---- Achievements ---- */
.achievements-section { padding: 0 1.5rem 2.5rem; }
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.achievement-card { background: var(--brand-light); border-radius: 8px; padding: 1rem; text-align: center; }
.achievement-category { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.35rem; }
.achievement-title { margin: 0; font-size: 0.95rem; }

/* ---- Testimonials ---- */
.testimonials-section { background: var(--brand-light); padding: 2.5rem 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.testimonial-card { background: #fff; border-radius: 8px; padding: 1.25rem; margin: 0; box-shadow: none; border: 1px solid var(--border); }
.testimonial-card p { margin: 0 0 0.75rem; font-style: italic; }
.testimonial-card footer { color: var(--muted); font-size: 0.85rem; }

/* ---- Quick links ---- */
.quick-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 2rem 1.5rem; }
.quick-link {
    display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--brand-ink);
    border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem 1.25rem;
}
.quick-link:hover { background: var(--brand-light); text-decoration: none; }
.quick-link-icon { font-size: 1.1rem; }

/* ---- Footer ---- */
.site-footer { background: var(--brand-dark); color: var(--brand-ink); margin-top: 0; }
.site-footer-inner { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-top: 0; }
.site-footer a { color: var(--brand-ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.copyright { text-align: center; padding: 1rem; margin: 0; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 1rem 0 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-form input, .contact-form textarea { padding: 0.5rem; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 0.75rem; font-family: inherit; }

/* ---- Auth ---- */
.auth-body { background: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: 0; }
.auth-card { background: #fff; padding: 2.5rem; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); width: 320px; text-align: center; }
.auth-title { margin: 0 0 0.2rem; font-size: 1.3rem; }
.auth-subtitle { color: var(--muted); margin: 0 0 1.5rem; }
.auth-form { display: flex; flex-direction: column; gap: 0.35rem; text-align: left; }
.auth-form input { padding: 0.55rem; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 0.75rem; }
.auth-form button { margin-top: 0.5rem; }

/* ---- Admin ---- */
.admin-body { margin: 0; background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 230px; background: var(--brand-dark); color: var(--brand-ink); flex-shrink: 0;
    display: flex; flex-direction: column; overflow-x: hidden; transition: width .2s ease;
}
.admin-brand { padding: 1.2rem 1rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar nav { flex: 1 1 auto; overflow-y: auto; }
.admin-nav { list-style: none; margin: 0; padding: 0.5rem 0; }
.admin-nav > li > a, .admin-nav a, .admin-nav-disabled, .admin-nav-group-label {
    display: block; padding: 0.55rem 1.2rem; color: var(--brand-ink); text-decoration: none;
}
.admin-nav a:hover { background: rgba(255,255,255,0.06); text-decoration: none; }
.admin-nav a.active { background: var(--brand); color: var(--brand-ink); }
.admin-nav-group-label { font-size: 0.75rem; text-transform: uppercase; color: var(--brand-ink); margin-top: 0.5rem; padding-bottom: 0; }
.admin-nav-group ul { list-style: none; margin: 0; padding: 0; }
.admin-nav-group ul li a, .admin-nav-group ul li.admin-nav-disabled { padding-left: 1.8rem; }
.admin-nav-disabled { color: #527482; cursor: default; }
.admin-sidebar-collapse {
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 100%; min-height: 52px; border: 0; border-bottom: 1px solid rgba(23,79,99,.14);
    background: rgba(255,255,255,.16); color: var(--brand-ink); cursor: pointer;
}
.admin-sidebar-collapse span { display: block; font-size: 2.35rem; font-weight: 700; line-height: .8; transition: transform .2s ease; }
.admin-sidebar-collapse:hover { background: rgba(255,255,255,.35); }
.admin-sidebar-collapse-bottom { border-top: 1px solid rgba(23,79,99,.14); border-bottom: 0; }
.admin-sidebar-footer { flex: 0 0 auto; border-top: 1px solid rgba(23,79,99,.18); }
.admin-sidebar-user { padding: .7rem 1rem .15rem; font-size: .8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-logout-form { padding: .55rem 1rem 1rem; }
.sidebar-logout {
    display: flex; align-items: center; justify-content: center; gap: .45rem; width: 100%;
    padding: .55rem .7rem; border: 1px solid #b42318; border-radius: 5px;
    background: #c9362b; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.sidebar-logout > span:first-child { font-size: 1.25rem; line-height: 1; }
.sidebar-logout:hover { background: #a82b22; }
.admin-sidebar-collapsed .admin-sidebar { width: 68px; }
.admin-sidebar-collapsed .admin-sidebar nav,
.admin-sidebar-collapsed .admin-brand,
.admin-sidebar-collapsed .admin-sidebar-user { display: none; }
.admin-sidebar-collapsed .admin-sidebar-collapse span { transform: rotate(180deg); }
.admin-sidebar-collapsed .sidebar-logout-form { padding: .55rem .5rem .8rem; }
.admin-sidebar-collapsed .sidebar-logout { padding: .6rem .25rem; }
.admin-sidebar-collapsed .sidebar-logout-label { display: none; }
.admin-main { flex: 1; display: flex; flex-direction: column; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--border); }
.logout-form { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.logout-form .btn-link {
    padding: .45rem .85rem; border: 1px solid #b42318; border-radius: 5px;
    background: #c9362b; color: #fff; font-weight: 700; text-decoration: none;
}
.logout-form .btn-link:hover { background: #a82b22; color: #fff; text-decoration: none; }
.admin-content { padding: 1.5rem; }
.dashboard-welcome {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    margin: -.25rem 0 1.5rem; padding: 1.4rem 1.6rem; border-radius: 12px;
    background: linear-gradient(120deg, #174f63, #287e9a); color: #fff;
    box-shadow: 0 8px 24px rgba(23,79,99,.16);
}
.dashboard-welcome h1 { margin: .1rem 0 .25rem; color: #fff; }
.dashboard-welcome p { margin: 0; color: rgba(255,255,255,.84); }
.dashboard-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-date { flex: 0 0 auto; padding: .5rem .8rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.1); font-size: .82rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.metric-card {
    --metric-color: #287e9a; position: relative; overflow: hidden;
    min-height: 170px; background: #fff; border: 1px solid #e3eaf0; border-radius: 12px;
    padding: 1rem; text-align: left; box-shadow: 0 4px 14px rgba(30,58,74,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.metric-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--metric-color); }
.metric-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30,58,74,.12); }
.metric-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: 10px; background: color-mix(in srgb, var(--metric-color) 13%, white); color: var(--metric-color); font-size: 1.2rem;
}
.metric-visitors { --metric-color: #2563eb; }
.metric-news { --metric-color: #7c3aed; }
.metric-events { --metric-color: #ea580c; }
.metric-gallery { --metric-color: #0891b2; }
.metric-downloads { --metric-color: #0f9f6e; }
.metric-enquiries { --metric-color: #dc2626; }
.metric-applications { --metric-color: #ca8a04; }
.metric-highlight { border-color: var(--brand); }
.metric-value { display: block; margin-top: .6rem; font-size: 2rem; line-height: 1; font-weight: 800; color: #172b3a; }
.metric-label { display: block; margin-top: .4rem; color: #5b6b76; font-size: 0.82rem; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); }
.admin-nav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.admin-nav-badge {
    min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 999px;
    background: #d63638; color: #fff; font-size: .72rem; font-weight: 700;
}
.metric-link { display: inline-block; margin-top: .45rem; font-size: .78rem; font-weight: 700; color: var(--metric-color); }
.dashboard-panel { margin-top: 1.25rem; padding: 1.15rem; border: 1px solid #e5ebef; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(30,58,74,.05); }
.dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 1rem; }
.dashboard-section-heading > div { display: flex; align-items: center; gap: .65rem; }
.dashboard-section-heading h2 { margin: 0; }
.dashboard-section-heading > a { padding: .35rem .7rem; border-radius: 5px; background: var(--brand-light); font-size: .8rem; font-weight: 700; }
.dashboard-section-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--brand-light); color: var(--brand-ink); }
.dashboard-panel .admin-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.dashboard-panel .admin-table th { background: #f5f9fb; color: #344956; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.dashboard-empty { margin: 0; padding: 2rem 1rem; border: 1px dashed #cbd8df; border-radius: 8px; background: #fbfdfe; color: var(--muted); text-align: center; }
.status-new { background: #dbeafe; color: #1d4ed8; }

/* ---- Generic content admin (list + form) ---- */
.content-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.content-list-header h1 { margin: 0; }
.admin-table-wrap { overflow-x: auto; }
.data-grid-controls {
    display: flex; flex-wrap: wrap; align-items: end; gap: .75rem;
    margin-bottom: 1rem; padding: .85rem; background: #fff;
    border: 1px solid var(--border); border-radius: 6px;
}
.data-grid-controls label { display: grid; gap: .25rem; font-size: .82rem; font-weight: 600; }
.data-grid-controls input, .data-grid-controls select {
    min-height: 38px; padding: .4rem .55rem; border: 1px solid #bfc7d1; border-radius: 5px; font: inherit;
}
.data-grid-search { flex: 1 1 260px; }
.data-grid-count { margin-left: auto; padding-bottom: .55rem; color: #555; white-space: nowrap; }
.data-grid-table th[data-sortable] { cursor: pointer; user-select: none; padding-right: 1.5rem; position: relative; }
.data-grid-table th[data-sortable]::after { content: "\2195"; position: absolute; right: .5rem; color: #777; }
.data-grid-table th[aria-sort="ascending"]::after { content: "\2191"; color: var(--brand-ink); }
.data-grid-table th[aria-sort="descending"]::after { content: "\2193"; color: var(--brand-ink); }
.data-grid-empty { padding: 1rem; text-align: center; background: #fff; color: #666; }
.status-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.status-draft { background: #eee; color: #555; }
.status-pending_approval { background: #fff4d6; color: #8a6100; }
.status-approved { background: #dff0d8; color: #2f6b2f; }
.status-rejected { background: #fbe1e1; color: #a33; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: none; padding: 0; color: var(--brand-ink); font: inherit; cursor: pointer; text-decoration: underline; }
.link-danger { color: #a33; }

.admin-form { max-width: 640px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.form-row input[type="text"], .form-row input[type="number"], .form-row input[type="date"],
.form-row input[type="time"], .form-row textarea, .form-row select {
    width: 100%; padding: 0.5rem; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 0.95rem;
}
.form-row input[type="file"] { display: block; }
.form-current-image { max-width: 180px; max-height: 120px; object-fit: cover; border-radius: 4px; margin-bottom: 0.4rem; }
.form-remove-toggle { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); margin: 0.2rem 0 0.4rem; cursor: pointer; }
.form-remove-toggle input { width: auto; margin: 0; }
.field-help { font-size: 0.8rem; color: var(--muted); margin: 0.3rem 0 0; }
.form-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.btn-cancel { color: var(--muted); }
.form-status-note { max-width: 640px; }
.settings-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.settings-header h1 { margin-bottom: 0.2rem; }
.settings-form { max-width: 980px; }
.settings-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.9rem;
    overflow: hidden;
}
.settings-section summary {
    cursor: pointer;
    padding: 0.9rem 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    background: #f7f9f8;
    border-bottom: 1px solid transparent;
}
.settings-section[open] summary { border-bottom-color: var(--border); }
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    padding: 1rem;
}
.settings-wide { grid-column: 1 / -1; }
.settings-section > .field-help { padding: 1rem 1rem 0; }
.settings-savebar {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.06);
}
.settings-savebar .btn { flex-shrink: 0; }

@media (max-width: 820px) {
    .settings-grid { grid-template-columns: 1fr; }
    .settings-savebar { align-items: stretch; flex-direction: column; }
}
.rich-editor { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.rich-toolbar {
    display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.45rem;
    background: #f4f6f8; border-bottom: 1px solid var(--border);
}
.rich-toolbar button {
    min-width: 32px; padding: 0.25rem 0.5rem; border: 1px solid #cbd5df;
    background: #fff; border-radius: 4px; cursor: pointer; font: inherit; font-size: 0.82rem;
}
.rich-toolbar button:hover { background: var(--brand-light); border-color: var(--brand); }
.rich-textarea {
    width: 100%;
    min-height: 240px;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding: 0.75rem;
    line-height: 1.65;
    resize: vertical;
}
.rich-textarea:focus { box-shadow: inset 0 0 0 2px rgba(255,153,51,0.5); }

.error-page { text-align: center; padding: 4rem 1.5rem; }
.error-page h1 { font-size: 3rem; margin: 0; color: var(--brand-ink); }

/* ============================================================
   Government education-portal theme additions
   (accessibility bar, leadership, vision/mission, tile grid)
   ============================================================ */

/* ---- Top accessibility / utility bar ---- */
.gov-utility-bar { background: var(--green-dark); color: var(--brand-ink); font-size: 0.8rem; }
.gov-utility-inner {
    max-width: 1100px; margin: 0 auto; padding: 0.3rem 1.5rem;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.gov-utility-bar a { color: var(--brand-ink); }
.gov-utility-bar a:hover { color: #fff; }
.gov-utility-spacer { flex: 1; }
.gov-a11y { display: flex; align-items: center; gap: 0.4rem; }
.gov-a11y-label { opacity: 0.85; }
.gov-a11y button {
    background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25);
    border-radius: 3px; cursor: pointer; padding: 0.05rem 0.45rem; font-size: 0.8rem; line-height: 1.4;
}
.gov-a11y button:hover { background: var(--saffron); border-color: var(--saffron); color: #1a1a1a; }
.gov-a11y button[aria-pressed="true"] { background: var(--saffron); border-color: var(--saffron); color: #1a1a1a; }
.gov-utility-sep { opacity: 0.4; }
.language-switch a { color: var(--brand-ink); font-weight: 600; }
.language-switch a.active { color: #fff; text-decoration: underline; }

/* Saffron accent strip under the header for the tricolour feel */
.site-header { border-bottom: none; }
.main-nav a { position: relative; }
.main-nav a.active { border-bottom: none; color: #fff; background: #f37021; }
.brand-name { background: linear-gradient(transparent 70%, rgba(255,153,51,0.25) 0); }

/* ---- Leadership row ---- */
.leadership-section { background: var(--brand-light); padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin: 0 auto 1.75rem; max-width: 720px; }
.section-head h2 { margin: 0 0 0.35rem; position: relative; display: inline-block; padding-bottom: 0.5rem; }
.section-head h2::after {
    content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 60px; height: 3px; background: var(--saffron); border-radius: 2px;
}
.section-head p { color: var(--muted); margin: 0; }
.leadership-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.leader-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--saffron); border-radius: 8px; padding: 1.5rem 1rem; text-align: center; }
.leader-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.9rem; border: 3px solid var(--brand-light); box-shadow: 0 0 0 1px var(--border); }
.leader-photo-placeholder {
    width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 0.9rem;
    background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; font-weight: 700;
}
.leader-name { margin: 0; font-size: 1.05rem; color: var(--brand-dark); }
.leader-role { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.85rem; }

/* ---- Vision & Mission ---- */
.vm-section { padding: 3rem 0; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.vm-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.vm-card.vm-vision { border-left: 5px solid var(--saffron); }
.vm-card.vm-mission { border-left: 5px solid var(--green); }
.vm-card h3 { margin: 0 0 0.75rem; font-size: 1.25rem; color: var(--brand-dark); display: flex; align-items: center; gap: 0.5rem; }
.vm-icon { font-size: 1.4rem; }
.vm-card p { margin: 0 0 0.6rem; color: #444; }
.vm-card ul { margin: 0; padding-left: 1.1rem; color: #444; }
.vm-card li { margin-bottom: 0.4rem; }

/* ---- Kaleidoscope quick-links tile grid ---- */
.kaleidoscope-section { background: var(--brand-light); padding: 3rem 0; }
.kaleidoscope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.25rem; }
.gov-tile {
    background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem 1rem;
    text-align: center; color: var(--text); transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.gov-tile:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,0.1); text-decoration: none; }
.gov-tile-icon {
    width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; color: #fff;
}
.gov-tile:nth-child(4n+1) .gov-tile-icon { background: var(--saffron); }
.gov-tile:nth-child(4n+2) .gov-tile-icon { background: var(--green); }
.gov-tile:nth-child(4n+3) .gov-tile-icon { background: var(--navy); }
.gov-tile:nth-child(4n+4) .gov-tile-icon { background: var(--saffron-dark); }
.gov-tile-label { font-weight: 600; font-size: 0.95rem; color: var(--brand-dark); }
.gov-tile-desc { font-size: 0.8rem; color: var(--muted); margin: 0; }

@media (max-width: 720px) {
    .vm-grid { grid-template-columns: 1fr; }
    .gov-utility-inner { justify-content: center; }
    .gov-utility-spacer { display: none; }
}

/* ---- Brand crest + wordmark (Tatwamasi assets) ---- */
.brand { gap: 0.75rem; width: auto; min-width: 0; margin: 0; padding: 1rem 1.5rem; }
.brand-logo { height: 82px; width: auto; object-fit: contain; }
.brand-wordmark { height: 34px; width: auto; object-fit: contain; }
.brand-title { color: var(--brand-dark); font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.brand-name { display: none; } /* wordmark image replaces the text lockup */
.footer-brand { text-align: left; }
.footer-logo { height: 112px; width: auto; margin-bottom: 0.75rem; background: #fff; border-radius: 10px; padding: 6px; }
.footer-note { text-align: center; margin: 0; padding: 0.75rem 1rem 0; font-size: 0.85rem; color: var(--brand-ink); }
.footer-note + .copyright { padding-top: 0.5rem; }

@media (max-width: 720px) {
    .brand-wordmark { height: 26px; }
    .brand-logo { height: 56px; }
}

/* ---- Dropdown submenus (menus table, parent/child) ---- */
.main-nav > ul { gap: 0; }
.main-nav > ul > li > a {
    display: block;
    padding: 0.78rem 1.12rem;
    line-height: 1.25;
}
.main-nav li.has-children { position: relative; }
.main-nav li.has-children > a { padding-right: 1.35rem; }
.main-nav li.has-children > a::after {
    content: "";
    position: absolute;
    right: 0.68rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    font-weight: 700;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a:focus,
.main-nav li.has-children:hover > a,
.main-nav li.has-children:focus-within > a {
    color: #fff;
    background: #2d2547;
    text-decoration: none;
}
.main-nav > ul > li:first-child > a.active,
.main-nav > ul > li:first-child > a:hover,
.main-nav > ul > li:first-child > a:focus {
    background: #f37021;
}
.main-nav .submenu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 30;
    min-width: 250px; margin: 0; padding: 0; list-style: none;
    background: #12369e; border: none;
    box-shadow: 0 10px 22px rgba(0,0,0,0.22); border-radius: 0;
}
.main-nav li.has-children:hover > .submenu,
.main-nav li.has-children:focus-within > .submenu { display: block; }
.main-nav .submenu li { display: block; width: 100%; }
.main-nav .submenu a {
    display: block; padding: 0.85rem 1.1rem; white-space: nowrap;
    font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.12);
    text-transform: uppercase; font-size: 0.82rem;
}
.main-nav .submenu li:last-child a { border-bottom: none; }
.main-nav .submenu a:hover,
.main-nav .submenu a:focus,
.main-nav .submenu a.active {
    background: #102a75; color: #fff; text-decoration: none;
}

@media (max-width: 720px) {
    /* On mobile the nav is a stacked list; show submenus inline, indented. */
    .main-nav li.has-children { position: static; }
    .main-nav li.has-children:hover > a,
    .main-nav li.has-children:focus-within > a {
        background: transparent;
        color: var(--brand-ink);
    }
    .main-nav .submenu {
        display: block; position: static; border: none; box-shadow: none;
        min-width: 0; padding: 0 0 0 1rem; border-top: none; background: transparent;
    }
    .main-nav .submenu a {
        padding: 0.5rem 0 0.5rem 1rem; color: var(--text); border-bottom: none;
        white-space: normal;
    }
    .main-nav .submenu a:hover,
    .main-nav .submenu a:focus,
    .main-nav .submenu a.active {
        background: transparent; color: var(--brand-ink); text-decoration: underline;
    }
}

/* ---- Generic content page (slug pages: /about etc.) ---- */
.page-content { padding: 2.5rem 1.5rem 3rem; max-width: 900px; }
.page-header { border-bottom: 3px solid var(--saffron); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }
.page-header h1 { margin: 0; color: var(--brand-dark); }
.page-featured-image {
    width: min(220px, 42%);
    float: left;
    margin: 0 1.5rem 1rem 0;
    padding: 0;
}
.page-featured-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 6px solid #fff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}
.page-body { line-height: 1.7; color: #333; }
.page-body::after { content: ""; display: table; clear: both; }

@media (max-width: 720px) {
    .page-featured-image {
        float: none;
        width: min(240px, 100%);
        margin: 0 auto 1.5rem;
    }
}
.page-body h2, .page-body h3 { color: var(--brand-dark); margin-top: 1.5rem; }
.page-body p { margin: 0 0 1rem; }
.page-body a { color: #1e5aa8; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.page-body a:hover, .page-body a:focus { color: #c65308; }

/* ---- Sitemap ---- */
.sitemap-page { padding-top: 2.5rem; padding-bottom: 3rem; }
.sitemap-page .page-header p { margin: .5rem 0 0; color: var(--muted); }
.sitemap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.sitemap-group { padding: 1.25rem; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 8px; background: #fff; }
.sitemap-group h2 { margin: 0 0 .75rem; color: var(--brand-ink); font-size: 1.2rem; }
.sitemap-group ul { margin: 0; padding-left: 1.2rem; }
.sitemap-group li { margin: .45rem 0; }
.sitemap-group ul ul { margin-top: .35rem; }
.sitemap-group a { color: #174f63; font-weight: 600; }

@media (max-width: 800px) {
    .sitemap-grid { grid-template-columns: 1fr; }
}
.page-admissions-fee-structure .page-header h1,
.page-admissions-fee-structure .page-body h2,
.page-admissions-fee-structure .page-body h3 { color: #174ea6; }
.page-admissions-fee-structure .page-body a { color: #1565c0; }
.page-admissions-fee-structure .page-body a:hover,
.page-admissions-fee-structure .page-body a:focus { color: #0d47a1; }
.page-body img { border-radius: 8px; margin: 1rem 0; }

/* Submission progress overlay for public enquiry and application forms. */
.submit-loader[hidden] { display: none; }
.submit-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(10, 28, 55, 0.68);
    backdrop-filter: blur(2px);
}
.submit-loader-card {
    width: min(360px, 100%);
    display: grid;
    justify-items: center;
    gap: .65rem;
    padding: 1.6rem;
    border-radius: 12px;
    background: #fff;
    color: #17233a;
    text-align: center;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .3);
}
.submit-loader-card strong { color: #174ea6; font-size: 1.15rem; }
.submit-loader-card > span:last-child { color: #555; }
.submit-loader-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #dbe6f7;
    border-top-color: #174ea6;
    border-radius: 50%;
    animation: submit-loader-spin .75s linear infinite;
}
body.is-submitting { overflow: hidden; }
@keyframes submit-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .submit-loader-spinner { animation-duration: 1.5s; }
}

/* ============================================================
   Responsive layout
   ============================================================ */
.admin-menu-toggle,
.admin-sidebar-backdrop { display: none; }

@media (max-width: 900px) {
    .header-identity,
    .header-motto,
    .header-school-detail { display: none; }
    .header-school-info { display: flex; padding-right: 1rem; }
    .header-school-actions { margin-top: 0; }
    .admin-shell { display: block; }
    .admin-main { min-width: 0; min-height: 100vh; }
    .admin-sidebar {
        position: fixed; inset: 0 auto 0 0; z-index: 60;
        width: min(290px, 86vw); overflow-y: auto;
        transform: translateX(-100%); transition: transform .2s ease;
        box-shadow: 8px 0 24px rgba(0,0,0,.18);
    }
    .admin-sidebar-collapsed .admin-sidebar { width: min(290px, 86vw); }
    .admin-sidebar-collapsed .admin-sidebar nav { display: block; }
    .admin-sidebar-collapsed .admin-brand,
    .admin-sidebar-collapsed .admin-sidebar-user { display: block; }
    .admin-sidebar-collapsed .sidebar-logout-label { display: inline; }
    .admin-sidebar-collapse span { transform: rotate(0deg) !important; }
    .admin-nav-open { overflow: hidden; }
    .admin-nav-open .admin-sidebar { transform: translateX(0); }
    .admin-sidebar-backdrop {
        position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%;
        border: 0; background: rgba(15,29,39,.42); cursor: pointer;
    }
    .admin-nav-open .admin-sidebar-backdrop { display: block; }
    .admin-menu-toggle {
        display: inline-flex; align-items: center; gap: .45rem;
        min-height: 42px; padding: .45rem .75rem; border: 1px solid var(--border);
        border-radius: 5px; background: #fff; color: var(--brand-ink); font: inherit; font-weight: 700;
    }
    .admin-menu-toggle span { font-size: 1.25rem; line-height: 1; }
    .admin-topbar { gap: 1rem; padding: .65rem 1rem; }
    .logout-form { margin-left: auto; }
    .admin-content { min-width: 0; padding: 1rem; overflow-x: hidden; }
    .admin-table-wrap,
    .admin-content > .admin-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table { min-width: 680px; }
    .content-list-header,
    .settings-header { align-items: flex-start; gap: .75rem; }
}

@media (max-width: 720px) {
    body { overflow-wrap: anywhere; }
    .container { padding-left: 1rem; padding-right: 1rem; }

    .gov-utility-inner { justify-content: center; gap: .45rem .7rem; padding: .45rem 1rem; }
    .gov-utility-spacer { display: none; }
    .gov-utility-sep { display: none; }
    .gov-a11y { flex-wrap: wrap; justify-content: center; }
    .gov-a11y button { min-height: 32px; }

    .site-header { position: sticky; }
    .site-header-inner { display: block; }
    .header-top { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; }
    .brand { min-width: 0; padding: .7rem 1rem; }
    .brand-logo { height: 56px; flex: 0 0 auto; }
    .brand-wordmark { width: min(230px, 100%); height: auto; max-height: 30px; object-fit: contain; object-position: left center; }
    .brand-title { min-width: 0; font-size: 1.1rem; }
    .nav-toggle {
        display: flex; margin-right: 1rem; width: 44px; height: 44px;
        align-items: center; justify-content: center; border: 1px solid var(--border);
        border-radius: 5px; background: #fff;
    }
    .header-school-info { grid-column: 1 / -1; align-items: center; padding: .35rem 1rem .65rem; border-top: 1px solid #eef2f4; }
    .header-school-actions { width: 100%; justify-content: center; }
    .header-phone { width: 42px; height: 38px; justify-content: center; border: 1px solid var(--border); border-radius: 5px; font-size: 1.15rem; }
    .header-phone-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .header-admissions { padding: .5rem .8rem; }
    .nav-toggle span { width: 24px; }
    .main-nav { display: none; grid-column: 1 / -1; max-height: calc(100vh - 70px); overflow-y: auto; background: #fff; border-top: 1px solid var(--border); }
    .main-nav.open { display: block; }
    .main-nav > ul { display: block; width: 100%; }
    .main-nav > ul > li { display: block; width: 100%; }
    .main-nav > ul > li > a,
    .main-nav .submenu a { color: var(--text); padding: .8rem 1rem; border-bottom: 1px solid var(--border); white-space: normal; }
    .main-nav > ul > li > a:hover,
    .main-nav > ul > li > a:focus,
    .main-nav > ul > li > a.active { color: var(--brand-ink); background: var(--brand-light); }
    .main-nav li.has-children > a { padding-right: 2rem; }
    .main-nav .submenu { display: block; padding-left: .75rem; background: #f8fcfe; }
    .nav-login-mobile { display: block; }

    .hero-slide img { height: clamp(220px, 62vw, 330px); }
    .hero-caption { padding: 2.75rem 1rem 1rem; }
    .hero-caption h1 { font-size: clamp(1.15rem, 5vw, 1.45rem); }
    .hero-caption p { margin: .25rem 0 0; font-size: .9rem; }
    .hero-nav { width: 36px; height: 36px; }
    .hero-prev { left: .5rem; }
    .hero-next { right: .5rem; }
    .hero-actions { flex-direction: column; align-items: stretch; padding: 1rem; }
    .hero-actions .btn { text-align: center; }

    .principal-message { flex-direction: column; align-items: center; text-align: center; padding: 2rem 1rem; }
    .home-grid,
    .contact-grid,
    .site-footer-inner { grid-template-columns: 1fr; }
    .home-grid { gap: 2rem; padding: 2rem 1rem; }
    .contact-grid { gap: 1.5rem; }
    .site-footer-inner { padding: 2rem 1rem; gap: 1.5rem; }
    .site-footer h3 { color: var(--brand-ink); }
    .footer-brand { text-align: center; }
    .footer-logo { margin-left: auto; margin-right: auto; }
    .quick-links { display: grid; grid-template-columns: 1fr 1fr; padding: 1.5rem 1rem; gap: .75rem; }
    .quick-link { justify-content: center; padding: .7rem; text-align: center; }
    .achievements-section { padding-left: 1rem; padding-right: 1rem; }
    .leadership-section,
    .kaleidoscope-section,
    .testimonials-section { padding-top: 2rem; padding-bottom: 2rem; }
    .leadership-grid,
    .kaleidoscope-grid,
    .achievements-grid,
    .testimonials-grid { grid-template-columns: 1fr; }

    .page-content { padding: 1.75rem 1rem 2.5rem; }
    .page-header h1 { font-size: 1.65rem; }
    .page-body table,
    .adm-status,
    .ac-grid { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    iframe { max-width: 100%; }

    .auth-body { align-items: flex-start; padding: 1rem; }
    .auth-card { width: 100%; max-width: 380px; padding: 1.5rem; margin-top: 5vh; }

    .admin-topbar { align-items: center; }
    .admin-user { display: none; }
    .admin-content h1 { font-size: 1.55rem; }
    .dashboard-welcome { align-items: flex-start; flex-direction: column; padding: 1.2rem; }
    .dashboard-date { align-self: flex-start; }
    .metric-card { min-height: 155px; }
    .dashboard-panel { padding: .8rem; }
    .content-list-header,
    .settings-header,
    .dashboard-section-heading { flex-direction: column; }
    .content-list-header .btn,
    .settings-header .btn { width: 100%; text-align: center; }
    .data-grid-controls { align-items: stretch; }
    .data-grid-controls label,
    .data-grid-search { flex: 1 1 100%; width: 100%; }
    .data-grid-controls input,
    .data-grid-controls select { width: 100%; }
    .data-grid-count { margin-left: 0; padding-bottom: 0; }
    .admin-form { padding: 1rem; }
    .form-actions { flex-wrap: wrap; }
    .form-actions .btn { flex: 1 1 auto; text-align: center; }
    .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Admin lists: readable record cards instead of squeezed wide tables. */
    .mobile-card-table { min-width: 0; background: transparent; }
    .mobile-card-table thead { display: none; }
    .mobile-card-table tbody,
    .mobile-card-table tr,
    .mobile-card-table td { display: block; width: 100%; }
    .mobile-card-table tr {
        margin-bottom: 1rem; border: 1px solid var(--border); border-top: 4px solid var(--brand);
        border-radius: 8px; background: #fff; overflow: hidden;
    }
    .mobile-card-table td {
        display: grid; grid-template-columns: minmax(105px, 36%) minmax(0, 1fr);
        gap: .75rem; align-items: start; padding: .65rem .8rem; border-bottom: 1px solid var(--border);
    }
    .mobile-card-table td:last-child { border-bottom: 0; }
    .mobile-card-table td::before {
        content: attr(data-label); color: var(--muted); font-size: .76rem;
        font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
    }
    .mobile-card-table .row-actions {
        display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem;
    }
    .mobile-card-table .row-actions::before { flex: 0 0 105px; }
    .mobile-card-table td[colspan] { display: block; }
    .mobile-card-table td[colspan]::before { display: none; }
}

@media (max-width: 420px) {
    .quick-links,
    .metrics-grid { grid-template-columns: 1fr; }
    .brand-wordmark { max-width: 190px; }
    .gov-a11y-label { width: 100%; text-align: center; }
    .admission-ribbon { gap: .35rem; }
    .admin-content { padding: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-sidebar { transition: none; }
}
