*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Theme-aware body colors (no hard-coded dark gradient) */
/* main.css — keep ONLY page-level rules here, no @import */
body.page-body{
  margin:0;
  padding:0;
  font-family:var(--font-main, system-ui, -apple-system, "SF Pro Text", sans-serif);
  background:var(--bg-gradient, var(--bg));
  color:var(--text-main);
}

body.nav-open {
    overflow: hidden;
}

/* Layout */

.site-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 3.5rem;
}

.site-flash {
    max-width: 1120px;
    margin: 0.75rem auto 0;
    padding: 0 1.25rem;
}

.flash {
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.flash-success {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.1);
    color: #bbf7d0;
}

.flash-error {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.1);
    color: #fecaca;
}

.site-contact {
    margin: 0;
    padding: 2.5rem 1.25rem 3rem;
    background: radial-gradient(circle at top, rgba(53, 179, 255, 0.18), rgba(15, 23, 42, 0.35));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-contact__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    color: var(--text-main);
}

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-contact .contact-buttons .btn {
    min-width: 180px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(5, 7, 11, 0.35);
    color: var(--text-main);
}

.site-contact .contact-buttons .btn:hover {
    background: rgba(53, 179, 255, 0.15);
    border-color: var(--brand);
    transform: translateY(-1px);
}

.contact-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.contact-modal[hidden] {
    display: none;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(6px);
}

.contact-modal__panel {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: calc(100% - 2rem);
    border-radius: 1.25rem;
    background: rgba(5, 7, 11, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 45px 90px rgba(0, 0, 0, 0.65);
}

.contact-modal__panel:focus-within {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
}

.contact-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.contact-modal__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-modal__body h3 {
    margin: 0;
    font-size: 1.4rem;
}

.contact-modal__copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-modal__body .btn {
    align-self: flex-start;
}

.auth-modal .auth-tabs {
    display: flex;
    gap: 0.4rem;
}

.auth-tab {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: var(--text-main);
    padding: 0.45rem 0.6rem;
    cursor: pointer;
    font-weight: 600;
}

.auth-tab.is-active {
    background: var(--brand);
    color: #fff;
    border-color: transparent;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-modal__message {
    min-height: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-modal__message[data-tone="error"] {
    color: #f87171;
}

.auth-modal__message[data-tone="success"] {
    color: #34d399;
}

.auth-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.user-chip {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--link-normal);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    align-self: flex-start;
}

.admin-link {
    margin-left: 0.5rem;
}

.access-request-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 480px;
}

.auth-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.access-request-message {
    min-height: 1.2rem;
    font-size: 0.9rem;
}

.access-request-message.error {
    color: #f87171;
}

.access-request-message.success {
    color: #34d399;
}

.admin-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.admin-card {
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1rem;
    background: rgba(5, 7, 11, 0.65);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.admin-card header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-card .badge {
    display: inline-flex;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-warning {
    background: rgba(250, 204, 21, 0.2);
    color: #fbbf24;
}

.badge-pending {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.badge-danger {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.admin-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-form fieldset {
    border: 1px dashed var(--border-subtle);
    border-radius: 0.85rem;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.permission-option {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
}

.admin-toggle {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    font-weight: 600;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-field label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-field input,
.form-field textarea {
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.55rem 0.75rem;
    background: rgba(2, 6, 23, 0.8);
    color: var(--text-main);
    font: inherit;
}

.form-field textarea {
    resize: vertical;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-row .form-field {
    flex: 1 1 220px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

[hidden] {
    display: none !important;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: #05070b;
    padding: 2rem 1.25rem;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: grid;
    gap: 1.5rem;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    justify-content: space-between;
    align-items: center;
}

.footer-links,
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.footer-download {
    margin-left: auto;
}

.footer-download .btn {
    text-transform: none;
}

.footer-social a {
    color: var(--link-normal);
}
.footer-social a:hover {
    color: var(--link-hover);
}

 .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.9rem;
 }

.footer-brand strong {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main);
}
.footer-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links {
    gap: 2.5rem;
}

.footer-links div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-links a {
    color: var(--link-normal);
}
.footer-links a:hover {
    color: var(--link-hover);
}

@media (max-width: 640px) {
    .footer-inner {
        gap: 1.25rem;
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Hero */

.hero {
    margin-top: 0.75rem;
    padding: 1.75rem 1.5rem;
    border-radius: 1.25rem;
    background: radial-gradient(circle at top left, rgba(53, 179, 255, 0.18), transparent 55%),
                radial-gradient(circle at bottom right, rgba(126, 247, 197, 0.15), transparent 60%),
                var(--bg-alt);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.hero--splash {
    position: relative;
    overflow: hidden;
    background: rgba(5, 8, 17, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.65);
}

.hero--splash::before,
.hero--splash::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
}

.hero--splash::before {
    opacity: 0.4;
    background-size: cover;
    background-position: center;
    filter: brightness(1.05);
}

.hero--splash::after {
    background: linear-gradient(120deg, rgba(5, 10, 24, 0.85), rgba(3, 13, 33, 0.6));
    opacity: 0.95;
}

.hero--splash > * {
    position: relative;
    z-index: 1;
}

.hero--home::before {
    background-image:
        linear-gradient(140deg, rgba(5, 10, 24, 0.7), rgba(3, 21, 45, 0.4)),
        url("../images/backgrounds/village5_design_draft01.png");
}

.hero--campus::before {
    background-image:
        linear-gradient(140deg, rgba(3, 8, 20, 0.65), rgba(0, 0, 0, 0.45)),
        url("../images/backgrounds/village5_design_draft01.png");
}

.hero--splash .hero-text h1,
.hero--splash .hero-subtitle,
.hero--splash .hero-sub,
.hero--splash .hero-stat-value {
    color: #f8fafc;
}

.hero--splash .hero-subtitle,
.hero--splash .hero-sub {
    color: rgba(226, 232, 240, 0.88);
}

.hero--splash .hero-highlight {
    background: rgba(0, 9, 22, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero--splash .hero-stat-label {
    color: rgba(226, 232, 240, 0.75);
}

.hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    align-items: flex-start;
}

.hero-text {
    flex: 2 1 260px;
}

.hero-text h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.8rem;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 40rem;
}

.hero-sub {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-highlight {
    flex: 1.1 1 220px;
    padding: 0.75rem 0.85rem;
    border-radius: 1rem;
    background: rgba(5, 7, 11, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.hero-stat + .hero-stat {
    margin-top: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.hero-stat-value {
    display: block;
    margin-top: 0.1rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn-primary {
    background-color: var(--accent);
    color: #020308;
    border-color: transparent;
}

.btn-primary:hover {
    background-color: #5fc5ff;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(126, 247, 197, 0.08);
    color: var(--accent-alt);
    border-color: rgba(126, 247, 197, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(126, 247, 197, 0.15);
    border-color: rgba(126, 247, 197, 0.7);
    transform: translateY(-1px);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-muted);
    border: 1px dashed var(--border-subtle);
}

.btn-tertiary:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.hero-actions .btn-primary {
    background: var(--brand);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(58, 122, 254, 0.35);
}

.hero-actions .btn-primary:hover {
    background: #2563eb;
}

.hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Pillars section */

.pillars {
    margin-top: 2.5rem;
}

.pillars h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.readiness-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.readiness-grid--balanced {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 960px) {
    .readiness-grid--balanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.readiness-card {
    min-height: 170px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.1rem;
    padding: 1.2rem;
}

[data-theme="light"] .readiness-card {
    background: #fdfdff;
    border-color: rgba(15, 23, 42, 0.08);
}

.stat-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.stat-chip {
    border-radius: 1.2rem;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(15,23,42,0.85), rgba(30,41,59,0.85));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.35);
    color: #e2e8f0;
    transform: translateY(18px) scale(0.96);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
}

.stat-chip.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.stat-chip__label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a5b4fc;
}

.stat-chip__value {
    display: block;
    font-size: 1.25rem;
    margin: 0.4rem 0;
    color: #f9fafb;
}

.stat-chip__subtext {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
}

.hospitality-callout {
    background: linear-gradient(135deg, rgba(9, 9, 27, 0.85), rgba(12, 25, 45, 0.85));
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(3, 7, 18, 0.4);
}

.hospitality-callout__intro {
    max-width: 720px;
}

.hospitality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hospitality-grid article {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
}

.pillar-card {
    padding: 1rem;
    border-radius: 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-subtle);
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.pillar-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.02rem;
}

.pillar-card:hover,
.pillar-card:focus-visible {
    border-color: var(--brand);
    transform: translateY(-2px);
    outline: none;
}

/* Next steps section */

.next-steps {
    margin-top: 2.25rem;
    padding: 1.6rem 1.6rem 1.8rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(53, 179, 255, 0.08), rgba(126, 247, 197, 0.08)), var(--card-bg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(3, 7, 18, 0.25);
    font-size: 0.98rem;
}

.next-steps h2 {
    margin-top: 0;
}

.next-steps ul {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
}

.next-steps li + li {
    margin-top: 0.5rem;
}

/* Generic page sections for all subpages */

.page-section,
.content-section {
    margin-top: 2rem;
    padding: 1.6rem 1.6rem 1.8rem;
    border-radius: 1.1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 35px rgba(3, 7, 18, 0.2);
    font-size: 0.96rem;
    line-height: 1.7;
}

.page-section h1,
.content-section h1 {
    margin-top: 0;
    margin-bottom: 0.85rem;
    font-size: 1.45rem;
}

.page-section h2,
.content-section h2 {
    margin-top: 0;
    margin-bottom: 0.65rem;
    font-size: 1.25rem;
}

.page-section p,
.content-section p {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.page-section ul,
.content-section ul {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
}

.page-section.stat-chips-section {
    margin-top: 1.5rem;
    padding: 2.5rem;
    border-radius: 24px;
    background: rgba(5, 7, 11, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
    position: relative;
    z-index: 2;
}

[data-theme="light"] .page-section.stat-chips-section {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
    .page-section.stat-chips-section {
        margin-top: 1rem;
    }
}

.hero + .page-section.stat-chips-section {
    margin-top: 0.5rem;
}

.page-header {
    background: var(--bg-gradient);
    border-color: var(--border-subtle);
    box-shadow: 0 25px 45px rgba(3, 7, 18, 0.25);
}

.page-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.capital-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.capital-table div {
    border: 1px solid var(--border-subtle);
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    background: rgba(5, 7, 11, 0.65);
}

.capital-table span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.capital-table strong {
    font-size: 1rem;
    color: var(--text-main);
}

.pillar-summary__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 960px) {
    .capital-table,
    .pillar-summary__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pillar-summary__card {
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    background: rgba(5, 7, 11, 0.6);
}

.pillar-summary__card--extra {
    border-style: dashed;
    background: rgba(14, 165, 233, 0.08);
}

.pillar-summary__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(14, 165, 233, 0.15);
    color: #7dd3fc;
    margin-bottom: 0.5rem;
}

.pillar-summary__card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.pillar-summary__card ul {
    margin: 0;
    padding-left: 1rem;
}

.pillar-summary__note {
    margin: 0.25rem 0 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (min-width: 960px) {
    .pillars-grid,
    .readiness-grid,
    .stat-chips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

figure.diagram {
    margin: 1rem auto 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    background: var(--card-bg);
    box-shadow: 0 12px 30px rgba(3, 7, 18, 0.15);
    max-width: 960px;
}

figure.diagram img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

figure.diagram figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.image-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.image-gallery__grid figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.image-gallery__grid img {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--border-subtle);
    display: block;
}

.image-gallery__grid figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.downloads-table-wrapper {
    overflow-x: auto;
}

.downloads-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.downloads-table th,
.downloads-table td {
    padding: 0.75rem 0.8rem;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
}

.downloads-table th {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.downloads-table__size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.downloads-thumb {
    width: 170px;
}

.downloads-thumb img {
    width: 150px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: block;
}

.downloads-thumb__placeholder {
    width: 150px;
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.downloads-table td p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.download-card-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.download-card {
    border-radius: 16px;
    background: var(--card-bg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 15px 35px rgba(3, 7, 18, 0.25);
}

.download-card img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.download-card__body h3 {
    margin: 0;
}

.download-card__body p {
    margin: 0.35rem 0;
    color: var(--text-muted);
}

.download-card__meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.campus-map {
    position: relative;
    margin-top: 1rem;
    border-radius: 20px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(14,165,233,0.25), transparent 60%), var(--card-bg);
    box-shadow: 0 20px 60px rgba(3, 7, 18, 0.35);
}

.campus-map img {
    width: 100%;
    display: block;
    opacity: 0.9;
}

.campus-map__pin {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(3, 7, 18, 0.78);
    border: 1px solid rgba(14, 165, 233, 0.6);
    color: #e0f2ff;
    font-size: 0.8rem;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.campus-map__pin:hover,
.campus-map__pin:focus-visible {
    background: rgba(14, 165, 233, 0.9);
    color: #020617;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.35);
    transform: translate(-50%, -50%) scale(1.05);
}

@media (max-width: 720px) {
    .campus-map__pin {
        font-size: 0.7rem;
        padding: 0.3rem 0.55rem;
    }
}

.stats-band {
    margin-top: 1.5rem;
    border-radius: 26px;
    padding: 1.5rem;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), rgba(3, 7, 18, 0.6));
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    color: #e2e8f0;
}

.stats-band__item span {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
}

.stats-band__item p {
    margin: 0.4rem 0 0;
    color: #cbd5f5;
    font-size: 0.95rem;
}

.timeline-bar {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.timeline-bar__item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
}

.timeline-bar__phase {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.timeline-bar__content {
    border-left: 2px solid var(--border-subtle);
    padding-left: 1rem;
}

.timeline-bar__content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.timeline-list li {
    padding-left: 0.25rem;
    border-left: 2px solid var(--border-subtle);
}

/* Legacy "section" layout blocks (Village 5, etc.) */

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.section {
    margin-top: 2rem;
    padding: 1.6rem 1.6rem 1.8rem;
    border-radius: 1.1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 35px rgba(3, 7, 18, 0.18);
    line-height: 1.75;
}

.section h1,
.section h2,
.section h3 {
    margin-top: 0;
    color: var(--text-main);
}

.section p {
    color: var(--text-main);
}

.section--hero {
    margin-top: 0;
    background: var(--bg-gradient);
    box-shadow: 0 30px 60px rgba(3, 7, 18, 0.25);
}

.section--hero .quick-links ul {
    gap: 0.45rem 0.6rem;
}

.section--hero .quick-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    color: var(--brand);
}

.section--hero .quick-links a:hover,
.section--hero .quick-links a:focus-visible {
    border-color: var(--brand);
    color: var(--brand);
    background: rgba(59, 130, 246, 0.08);
}

.theme-dark .section--hero .quick-links a {
    background: rgba(5, 10, 30, 0.65);
    border-color: rgba(148, 163, 184, 0.35);
    color: #a5d8ff;
}

.theme-dark .section--hero .quick-links a:hover,
.theme-dark .section--hero .quick-links a:focus-visible {
    border-color: rgba(96, 165, 250, 0.85);
    background: rgba(59, 130, 246, 0.2);
    color: #e0f2ff;
}

.section--hero .button {
    border-color: rgba(15, 23, 42, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
}

.section--hero .button:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.section--hero .button--primary {
    background: linear-gradient(130deg, #3b82f6, #2563eb);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.35);
}

.section--hero .button--primary:hover {
    background: linear-gradient(130deg, #2f68f4, #1d4ed8);
    color: #ffffff;
}

.theme-dark .section--hero .button {
    background: rgba(7, 12, 30, 0.85);
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.65);
}

.theme-dark .section--hero .button:hover {
    border-color: rgba(96, 165, 250, 0.85);
    color: #f8fafc;
}

.theme-dark .section--hero .button--primary {
    background: linear-gradient(130deg, #2563eb, #1d4ed8);
    color: #f8fafc;
    border-color: transparent;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.75);
}

.section--footer {
    text-align: center;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-cta {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.section-divider {
    margin: 2.75rem 0;
    border: 0;
    height: 1px;
    background: var(--border-subtle);
}

.emergency-callout {
    border-left: 4px solid var(--brand);
    padding: 1rem 1.1rem;
    border-radius: 0.9rem;
    background: rgba(59, 130, 246, 0.08);
}

.emergency-callout.is-active {
    border-color: var(--accent-alt);
    background: rgba(126, 247, 197, 0.12);
}

.emergency-callout__badge {
    display: inline-flex;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.emergency-callout__timestamp {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive tweaks */

@media (max-width: 768px) {
    .hero {
        padding: 1.35rem 1.1rem;
    }

    .hero-inner {
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-main {
        padding: 1.25rem 1rem 2.5rem;
    }

    .pillars-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .site-contact__inner {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 0.6rem;
    }

    .site-contact .contact-buttons .btn {
        width: 100%;
    }

    .contact-modal__body {
        padding: 1.25rem;
    }
}

/* Dark-mode card polish (no effect in light mode) */
[data-theme="dark"] .content-card,
[data-theme="dark"] .content-section {
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.08);
  backdrop-filter: saturate(120%) blur(2px);
}

/* TEMP DEBUG – outline layout boxes 
main > section,
main > div {
  outline: 1px dashed magenta;
  background-clip: padding-box;
}
*/
