:root {
    --ink: #070809;
    --navy: #101923;
    --gold: #c6a76a;
    --ivory: #f3efe6;
    --muted: #b7b1a5;
    --line: rgba(198, 167, 106, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ivory); background: var(--ink); font-family: 'Lato', sans-serif; font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }

.site-header { align-items: center; background: rgba(7, 8, 9, 0.92); border-bottom: 1px solid rgba(198, 167, 106, 0.18); display: flex; justify-content: space-between; min-height: 160px; padding: 0 5vw; position: absolute; top: 0; width: 100%; z-index: 10; }
.brand { align-items: center; display: inline-flex; font-family: 'Cinzel', serif; font-size: 0.85rem; gap: 11px; letter-spacing: 0; text-transform: uppercase; }
.brand-mark { align-items: center; border: 1px solid var(--gold); color: var(--gold); display: inline-flex; font-size: 0.65rem; height: 34px; justify-content: center; width: 34px; }
.brand-logo { height: 136px; object-fit: cover; object-position: center; width: 136px; }
.main-navigation { align-items: center; display: flex; gap: 25px; }
.main-navigation a { color: var(--muted); font-size: 0.73rem; letter-spacing: 0.08em; text-transform: uppercase; }
.main-navigation a:hover, .main-navigation a.is-active { color: var(--ivory); }
.main-navigation .member-access { border: 1px solid var(--gold); color: var(--gold); padding: 7px 12px; }
.menu-toggle { background: transparent; border: 0; cursor: pointer; display: none; padding: 8px; }
.menu-toggle span:not(.sr-only) { background: var(--ivory); display: block; height: 1px; margin: 5px 0; width: 25px; }
.sr-only { clip: rect(0, 0, 0, 0); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.hero { align-items: center; background: linear-gradient(rgba(0, 0, 0, 0.59), rgba(0, 0, 0, 0.76)), url('../images/backgrounds/hero.jpg') center/cover; display: flex; justify-content: center; min-height: 100vh; padding: 130px 24px 80px; text-align: center; }
.hero-content { max-width: 760px; }
.eyebrow { color: var(--gold); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; margin: 0 0 16px; text-transform: uppercase; }
.hero-emblem { align-items: center; border: 1px solid var(--gold); color: var(--gold); display: flex; font-family: 'Cinzel', serif; font-size: 2.4rem; height: 96px; justify-content: center; margin: 0 auto 26px; width: 96px; }
.hero-logo { display: block; height: 384px; margin: 0 auto 26px; object-fit: contain; width: 384px; }
h1, h2, h3 { font-family: 'Cinzel', serif; font-weight: 400; line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); letter-spacing: 0; margin-bottom: 10px; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 24px; }
h3 { font-size: 1.22rem; margin-bottom: 6px; }
.hero-subtitle { color: var(--gold); font-family: 'Cinzel', serif; font-size: clamp(0.9rem, 2vw, 1.15rem); letter-spacing: 0.12em; margin: 0 0 36px; text-transform: uppercase; }
.button { display: inline-block; font-size: 0.73rem; font-weight: 700; letter-spacing: 0.09em; padding: 13px 22px; text-transform: uppercase; transition: background 180ms ease, color 180ms ease; }
.button-primary { background: var(--gold); color: var(--ink); }
.button-primary:hover { background: var(--ivory); }
.button-secondary { border: 1px solid var(--gold); color: var(--gold); }
.button-secondary:hover { background: var(--gold); color: var(--ink); }

.section-shell { margin: 0 auto; max-width: 1160px; padding: 110px 5vw; }
.intro { max-width: 850px; text-align: center; }
.intro h2 { margin-left: auto; margin-right: auto; max-width: 700px; }
.lead { color: var(--ivory); font-size: 1.16rem; line-height: 1.8; }
.intro p:not(.eyebrow) { color: var(--muted); }
.social-section { max-width: 850px; text-align: center; }
.social-section h2 { margin-left: auto; margin-right: auto; }
.social-section .lead { color: var(--muted); }
.social-links { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 38px; }
.social-link { border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; padding: 22px; transition: background 180ms ease, border-color 180ms ease; }
.social-link:hover { background: var(--navy); border-color: var(--gold); }
.social-link span { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.social-link strong { font-family: 'Cinzel', serif; font-weight: 400; }
.events-section { background: var(--navy); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 0; }
.text-link { border-bottom: 1px solid var(--gold); color: var(--gold); display: inline-block; font-size: 0.73rem; font-weight: 700; letter-spacing: 0.09em; padding-bottom: 4px; text-transform: uppercase; }
.event-list { border-top: 1px solid var(--line); }
.event-item { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 25px; grid-template-columns: 110px 1fr 30px; padding: 24px 0; }
.event-item time { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.08em; line-height: 1.35; }
.event-item time span { color: var(--gold); display: inline-block; font-family: 'Cinzel', serif; font-size: 2rem; margin-right: 5px; }
.event-type { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.1em; margin: 0 0 3px; text-transform: uppercase; }
.event-item div p:last-child { color: var(--muted); margin: 0; }
.event-item > a { border: 1px solid var(--gold); color: var(--gold); font-size: 1.2rem; height: 29px; line-height: 26px; text-align: center; width: 29px; }
.conductor { align-items: center; display: grid; gap: clamp(40px, 7vw, 110px); grid-template-columns: minmax(260px, 0.9fr) 1fr; }
.conductor-image { background: linear-gradient(rgba(7, 8, 9, 0.22), rgba(7, 8, 9, 0.33)), url('../images/backgrounds/conductor.jpg') center/cover; min-height: 510px; }
.conductor-copy p:not(.eyebrow) { color: var(--muted); }
.site-footer { border-top: 1px solid rgba(198, 167, 106, 0.2); color: var(--muted); display: flex; font-size: 0.72rem; justify-content: space-between; letter-spacing: 0.04em; padding: 28px 5vw; }
.site-footer p { margin: 0; }
.site-footer span { color: var(--gold); margin: 0 8px; }
.footer-social { align-items: center; display: flex; gap: 12px; }
.footer-social a { align-items: center; border: 1px solid var(--line); color: var(--gold); display: inline-flex; height: 38px; justify-content: center; transition: background 180ms ease, border-color 180ms ease, color 180ms ease; width: 38px; }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--ink); outline: 0; }
.footer-social svg { fill: currentColor; height: 19px; width: 19px; }
.footer-social .sr-only { margin: 0; }

.page-hero { align-items: end; background: linear-gradient(rgba(0, 0, 0, 0.53), rgba(0, 0, 0, 0.8)), url('../images/backgrounds/page-hero.jpg') center/cover; display: flex; min-height: 48vh; padding: 125px 5vw 70px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 0; }
.content-page { max-width: 900px; }
.content-page p { color: var(--muted); }
.section-divider { border: 0; border-top: 1px solid var(--line); margin: 55px 0; }
.voice-grid, .era-grid, .media-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.info-panel { border: 1px solid var(--line); padding: 26px; }
.info-panel h3 { color: var(--gold); font-size: 1rem; }
.info-panel p, .info-panel ul { color: var(--muted); margin-bottom: 0; padding-left: 0; }
.info-panel li { list-style: none; }
.media-card { background: var(--navy); min-height: 220px; padding: 28px; }
.media-carousel { margin: 32px -54px 0; padding: 0 54px; position: relative; }
.media-carousel-button { align-items: center; background: rgba(7, 8, 9, 0.86); border: 1px solid var(--gold); color: var(--gold); cursor: pointer; display: inline-flex; font-size: 1.2rem; height: 42px; justify-content: center; padding: 0; position: absolute; top: calc(50% - 8px); transform: translateY(-50%); width: 42px; z-index: 1; }
.media-carousel-button:hover, .media-carousel-button:focus-visible { background: var(--gold); color: var(--ink); outline: 0; }
.media-carousel-previous { left: 0; }
.media-carousel-next { right: 0; }
.media-grid[data-media-carousel-track] { display: flex; gap: 18px; grid-template-columns: none; overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px 0 16px; scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-color: var(--gold) var(--navy); }
.media-grid[data-media-carousel-track] .media-card { display: flex; flex: 0 0 min(360px, 84vw); flex-direction: column; scroll-snap-align: start; }
.media-grid[data-media-carousel-track] .media-card .text-link { margin-top: auto; align-self: flex-start; }
.media-grid[data-media-carousel-track]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.photo-carousel { border: 1px solid var(--line); }
.carousel-stage { aspect-ratio: 16 / 10; background: var(--navy); display: grid; place-items: center; }
.carousel-slide { display: none; height: 100%; width: 100%; }
.carousel-slide.is-active { display: block; }
.carousel-slide img { display: block; height: 100%; object-fit: contain; width: 100%; }
.carousel-controls { align-items: center; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr 48px; }
.carousel-button { background: transparent; border: 0; color: var(--gold); cursor: pointer; font-size: 1.25rem; height: 48px; padding: 0; }
.carousel-button:hover, .carousel-button:focus-visible { background: var(--gold); color: var(--ink); outline: 0; }
.carousel-count { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; margin: 0; text-align: center; }
.carousel-thumbnails { border-top: 1px solid var(--line); display: flex; gap: 9px; overflow-x: auto; padding: 14px; scrollbar-color: var(--gold) var(--navy); }
.carousel-thumbnail { background: var(--navy); border: 1px solid transparent; cursor: pointer; flex: 0 0 74px; height: 52px; overflow: hidden; padding: 0; transition: border-color 180ms ease, opacity 180ms ease; }
.carousel-thumbnail img { display: block; height: 100%; object-fit: cover; opacity: 0.58; transition: opacity 180ms ease, transform 180ms ease; width: 100%; }
.carousel-thumbnail:hover img, .carousel-thumbnail:focus-visible img, .carousel-thumbnail.is-active img { opacity: 1; transform: scale(1.06); }
.carousel-thumbnail.is-active { border-color: var(--gold); }
.carousel-thumbnail:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; }
.history-list { border-top: 1px solid var(--line); }
.history-item { border-bottom: 1px solid var(--line); display: grid; gap: 28px; grid-template-columns: 90px 1fr; padding: 26px 0; }
.history-item time { color: var(--gold); font-family: 'Cinzel', serif; font-size: 0.95rem; line-height: 1.4; }
.history-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.history-item p { margin: 0 0 14px; }
.board-event .event-type { margin-bottom: 6px; }
.board-event-meta { color: var(--gold) !important; font-size: 0.8rem; }

.form-layout { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full-width { grid-column: 1 / -1; }
label { color: var(--ivory); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
input, textarea, select { background: transparent; border: 1px solid rgba(243, 239, 230, 0.35); border-radius: 0; color: var(--ivory); padding: 12px; }
select option { background: var(--navy); color: var(--ivory); }
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); outline: 1px solid var(--gold); }
.form-actions { margin-top: 26px; }
.notice { border-left: 2px solid var(--gold); color: var(--ivory); margin: 0 0 24px; padding: 10px 14px; }
.notice.error { border-color: #c7796d; }
.field-error { color: #e3a49a; font-size: 0.85rem; margin: 0; }
.form-honeypot { height: 0; left: -10000px; overflow: hidden; position: absolute; width: 0; }
.checkbox-field a { color: var(--gold); text-decoration: underline; }

.login-page { align-items: center; background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)), url('../images/backgrounds/page-hero.jpg') center/cover; display: flex; min-height: 100vh; padding: 120px 24px 60px; }
.login-panel { border: 1px solid var(--line); margin: 0 auto; max-width: 460px; padding: 42px; width: 100%; }
.login-logo { display: block; height: 96px; margin-bottom: 26px; object-fit: contain; width: 96px; }
.login-panel h1 { font-size: 2rem; }
.login-panel p { color: var(--muted); }
.login-panel .form-group { margin-top: 18px; }

.dashboard { padding-top: 130px; }
.dashboard-header { align-items: end; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 35px; }
.dashboard-header h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 0; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.material-group { margin-top: 54px; }
.material-group h2 { font-size: 1.35rem; }
.material-table { border-collapse: collapse; width: 100%; }
.material-table th, .material-table td { border-bottom: 1px solid var(--line); padding: 16px 10px; text-align: left; }
.material-table th { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.material-table td { color: var(--muted); }
.material-table a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.users-table th, .users-table td { border-bottom: 0; }
.users-table { min-width: 720px; }
.users-table td { padding-bottom: 7px; padding-top: 7px; }
.materials-table th, .materials-table td { border-bottom: 0; }
.materials-table { min-width: 720px; }
.materials-table td { padding-bottom: 7px; padding-top: 7px; }
.compact-table-scroll { max-height: 65vh; overflow: auto; }
.compact-table-scroll thead { background: var(--ink); position: sticky; top: 0; z-index: 1; }
.compact-admin-table { table-layout: fixed; }
.compact-admin-table th, .compact-admin-table td { border-bottom: 1px solid rgba(198, 167, 106, 0.18); line-height: 1.2; overflow: hidden; padding: 5px 7px; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.compact-admin-table td { font-size: 0.78rem; height: 34px; }
.compact-admin-table tbody tr:hover { background: rgba(198, 167, 106, 0.06); }
.compact-admin-table .table-actions { flex-wrap: nowrap; gap: 8px; overflow: visible; }
.compact-admin-table .table-actions a, .compact-admin-table .table-actions button { font-size: 0.67rem; height: 20px; }
.users-table th:nth-child(1), .users-table td:nth-child(1) { width: 190px; }
.users-table th:nth-child(2), .users-table td:nth-child(2) { width: auto; }
.users-table th:nth-child(3), .users-table td:nth-child(3) { width: 95px; }
.users-table th:nth-child(4), .users-table td:nth-child(4) { width: 112px; }
.materials-table th:nth-child(1), .materials-table td:nth-child(1) { width: 240px; }
.materials-table th:nth-child(2), .materials-table td:nth-child(2) { width: 125px; }
.materials-table th:nth-child(3), .materials-table td:nth-child(3) { width: 72px; }
.materials-table th:nth-child(4), .materials-table td:nth-child(4) { font-variant-numeric: tabular-nums; width: 90px; }
.materials-table th:nth-child(5), .materials-table td:nth-child(5) { width: 112px; }
.announcements-table { min-width: 900px; }
.announcements-table th:nth-child(1), .announcements-table td:nth-child(1) { font-variant-numeric: tabular-nums; width: 120px; }
.announcements-table th:nth-child(2), .announcements-table td:nth-child(2) { width: auto; }
.announcements-table th:nth-child(3), .announcements-table td:nth-child(3) { width: 145px; }
.announcements-table th:nth-child(4), .announcements-table td:nth-child(4) { width: 112px; }
.calendar-table th, .calendar-table td { border-bottom: 1px solid rgba(198, 167, 106, 0.18); line-height: 1.2; padding: 5px 7px; vertical-align: middle; }
.calendar-table { min-width: 900px; table-layout: fixed; }
.calendar-table td { font-size: 0.78rem; height: 34px; }
.calendar-table tbody tr:hover { background: rgba(198, 167, 106, 0.06); }
.calendar-table-scroll { max-height: 65vh; overflow: auto; }
.calendar-table-scroll thead { background: var(--ink); position: sticky; top: 0; z-index: 1; }
.calendar-table th:nth-child(1), .calendar-table td:nth-child(1) { font-variant-numeric: tabular-nums; white-space: nowrap; width: 82px; }
.calendar-table th:nth-child(2), .calendar-table td:nth-child(2) { font-variant-numeric: tabular-nums; padding-right: 15px; white-space: nowrap; width: 110px; }
.calendar-table th:nth-child(3), .calendar-table td:nth-child(3) { overflow: hidden; padding-left: 12px; text-overflow: ellipsis; white-space: nowrap; width: 365px; }
.calendar-table th:nth-child(4), .calendar-table td:nth-child(4) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 155px; }
.calendar-table th:nth-child(5), .calendar-table td:nth-child(5) { white-space: nowrap; width: 112px; }
.calendar-table .table-actions { flex-wrap: nowrap; gap: 8px; }
.calendar-table .table-actions a, .calendar-table .table-actions button { font-size: 0.67rem; height: 20px; }
.announcement { border-left: 1px solid var(--gold); margin-bottom: 22px; padding: 0 0 0 20px; }
.announcement time { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.08em; }
.suggestions-page .announcement { overflow-wrap: anywhere; }
.calendar-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 20px; }
.calendar-heading h2 { font-size: 1.5rem; margin-bottom: 0; }
.calendar-navigation { display: flex; gap: 8px; }
.calendar-navigation a { align-items: center; border: 1px solid var(--gold); color: var(--gold); display: flex; font-size: 1.1rem; height: 35px; justify-content: center; width: 35px; }
.calendar-navigation a:hover { background: var(--gold); color: var(--ink); }
.calendar-scroll { border: 1px solid var(--line); }
.member-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekday { background: var(--navy); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--gold); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; padding: 11px 6px; text-align: center; text-transform: uppercase; }
.calendar-weekday:nth-child(7) { border-right: 0; }
.calendar-weekday.is-weekend { color: var(--ivory); }
.calendar-day { background: rgba(16, 25, 35, 0.28); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 138px; padding: 8px; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.is-weekend { background: rgba(16, 25, 35, 0.6); }
.calendar-day.is-empty { background: rgba(7, 8, 9, 0.65); }
.calendar-day.is-today { background: rgba(198, 167, 106, 0.2); box-shadow: inset 0 0 0 1px var(--gold); }
.calendar-day.is-today .calendar-date { color: var(--gold); }
.calendar-date { color: var(--ivory); display: block; font-family: 'Cinzel', serif; font-size: 0.82rem; margin-bottom: 8px; }
.calendar-event { background: rgba(198, 167, 106, 0.08); border: 0; border-left: 2px solid var(--gold); color: var(--ivory); cursor: pointer; display: block; font-size: 0.7rem; line-height: 1.3; margin: 5px 0; overflow-wrap: anywhere; padding: 5px 6px; text-align: left; width: 100%; }
.calendar-event:hover, .calendar-event:focus-visible { background: rgba(198, 167, 106, 0.2); outline: 1px solid var(--gold); outline-offset: 1px; }
.calendar-event strong { color: var(--gold); display: block; font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; }
.calendar-event time { color: var(--gold); display: block; font-size: 0.64rem; }
.calendar-event small { color: var(--muted); display: block; font-size: 0.64rem; }
.calendar-modal { background: var(--navy); border: 1px solid var(--gold); color: var(--ivory); max-width: min(540px, calc(100vw - 40px)); padding: 28px; width: 100%; }
.calendar-modal::backdrop { background: rgba(0, 0, 0, 0.78); }
.announcement-modal { background: var(--navy); border: 1px solid var(--gold); color: var(--ivory); inset: 0; margin: auto; max-height: calc(100dvh - 32px); overflow-y: auto; overflow-wrap: anywhere; padding: clamp(18px, 4vw, 32px); width: min(680px, calc(100vw - 32px)); }
.announcement-modal::backdrop { background: rgba(0, 0, 0, 0.78); }
.announcement-modal h2 { font-size: 1.55rem; }
.announcement-modal .announcement { margin-top: 28px; }
.announcement-modal .announcement-date, .announcement-modal .announcement-date time { font-size: 1.05rem; letter-spacing: normal; }
.announcement-modal .announcement h3 { font-size: clamp(1.45rem, 3vw, 1.8rem); line-height: 1.35; }
.announcement-modal .announcement-body { font-size: 1.2rem; line-height: 1.7; }
.announcement-modal-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 28px; }
.announcement-modal .announcement-modal-actions .checkbox-field { color: var(--ivory); margin: 0; }
.announcement-modal button:disabled { cursor: wait; opacity: 0.6; }
.calendar-modal-header { align-items: start; display: flex; justify-content: space-between; }
.calendar-modal-header .eyebrow { margin-bottom: 18px; }
.calendar-modal h2 { font-size: 1.55rem; margin-bottom: 24px; }
.calendar-modal-close { background: transparent; border: 0; color: var(--gold); cursor: pointer; font-size: 1.8rem; line-height: 1; padding: 0; }
.calendar-modal-close:hover, .calendar-modal-close:focus-visible { color: var(--ivory); outline: 0; }
.calendar-modal-details { border-top: 1px solid var(--line); margin: 0; }
.calendar-modal-details div { border-bottom: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 88px 1fr; padding: 11px 0; }
.calendar-modal-details dt { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.calendar-modal-details dd { margin: 0; }
.calendar-modal-description { color: var(--muted); margin: 22px 0 0; white-space: pre-line; }

.admin-header { position: fixed; }
.admin-navigation { align-items: center; display: flex; flex-wrap: wrap; gap: 24px; }
.admin-navigation a { color: var(--muted); font-size: 0.73rem; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-navigation a:hover { color: var(--gold); }
.admin-main { min-height: calc(100vh - 76px); }
.admin-dashboard, .admin-page { padding-top: 205px; }
.admin-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 42px; }
.admin-card { border: 1px solid var(--line); min-height: 230px; padding: 30px; transition: background 180ms ease, border-color 180ms ease; }
.admin-card:hover { background: var(--navy); border-color: var(--gold); }
.admin-card h2 { font-size: 1.35rem; margin: 12px 0; }
.admin-card p { color: var(--muted); }
.admin-stat { color: var(--gold); font-family: 'Cinzel', serif; font-size: 2.4rem; }
.admin-split { display: grid; gap: 55px; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); margin-top: 40px; }
.users-page { max-width: 1500px; }
.users-page .admin-split { grid-template-columns: minmax(300px, 0.55fr) minmax(0, 1.45fr); }
.announcements-page { max-width: 1500px; }
.announcements-page .admin-split { grid-template-columns: minmax(300px, 0.55fr) minmax(0, 1.45fr); }
.collaborations-page { max-width: 1500px; }
.collaborations-page .admin-split { grid-template-columns: minmax(300px, 0.55fr) minmax(0, 1.45fr); }
.collaborations-page .form-group small { color: var(--muted); font-size: 0.75rem; }
.collaborations-table { min-width: 720px; }
.collaborations-table th:nth-child(1), .collaborations-table td:nth-child(1) { font-variant-numeric: tabular-nums; width: 125px; }
.collaborations-table th:nth-child(2), .collaborations-table td:nth-child(2) { width: auto; }
.collaborations-table th:nth-child(3), .collaborations-table td:nth-child(3) { width: 135px; }
.collaborations-table th:nth-child(4), .collaborations-table td:nth-child(4) { text-align: center; width: 70px; }
.collaborations-table th:nth-child(5), .collaborations-table td:nth-child(5) { width: 180px; }
.collaboration-links { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; }
.concert-registration-list { margin-top: 50px; }
.concert-registration-card { align-items: center; border: 1px solid var(--line); display: grid; gap: 30px; grid-template-columns: 1fr auto; margin-top: 14px; padding: 24px; }
.concert-registration-card.is-confirmed { background: rgba(198, 167, 106, 0.08); border-color: var(--gold); }
.concert-registration-card h3 { margin: 0 0 8px; }
.concert-registration-card p:last-child { color: var(--muted); margin-bottom: 0; }
.concert-registration-action { align-items: flex-end; display: flex; flex-direction: column; gap: 10px; min-width: 145px; }
.concert-registration-action strong { color: var(--gold); font-size: 0.78rem; text-transform: uppercase; }
.concert-registration-action form { margin: 0; }
.collaboration-report-page { max-width: 1500px; }
.report-total { border: 1px solid var(--gold); display: inline-flex; flex-direction: column; margin: 42px 0 18px; min-width: 180px; padding: 18px; text-align: center; }
.report-total strong { color: var(--gold); font-family: 'Cinzel', serif; font-size: 1.8rem; }
.report-total span { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; }
.report-count-table { margin-bottom: 48px; max-width: 720px; min-width: 600px; }
.report-count-table th:not(:first-child), .report-count-table td:not(:first-child) { text-align: center; }
.report-count-table td:last-child { color: var(--gold); }
.report-table { min-width: 760px; }
.materials-page { max-width: 1500px; }
.materials-page .admin-split { grid-template-columns: minmax(300px, 0.55fr) minmax(0, 1.45fr); }
.fichas-page { max-width: 1600px; }
.fichas-toolbar { align-items: end; display: flex; gap: 24px; justify-content: space-between; margin: 36px 0 28px; }
.fichas-search { flex: 1; margin: 0; max-width: 760px; }
.fichas-toolbar-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fichas-search > label:first-child { display: block; margin-bottom: 7px; }
.fichas-search > div { display: grid; gap: 10px; grid-template-columns: 1fr auto; }
.fichas-search .checkbox-field { margin-top: 10px; }
.ficha-editor { margin-bottom: 42px; }
.ficha-upload { display: flex; align-items: stretch; gap: 8px; }
.ficha-upload > input:not([type="file"]) { flex: 1; min-width: 0; }
.ficha-upload .ficha-upload-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; padding: 10px; }
.ficha-upload-button:disabled { opacity: .5; cursor: wait; }
.ficha-upload-button[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }
.ficha-form-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ficha-editor .form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.fichas-list-heading { align-items: baseline; display: flex; justify-content: space-between; }
.fichas-list-heading h2 { font-size: 1.3rem; }
.fichas-list-heading span { color: var(--muted); font-size: 0.76rem; }
.fichas-table { min-width: 980px; }
.fichas-table td { vertical-align: middle; }
.fichas-table td:first-child strong, .fichas-table td:first-child small { display: block; }
.fichas-table td:first-child small { color: var(--muted); margin-top: 4px; }
.fichas-table th:nth-child(1) { width: 31%; }
.fichas-table th:nth-child(2) { width: 25%; }
.fichas-table th:nth-child(3) { width: 11%; }
.fichas-table th:nth-child(4) { width: 11%; }
.table-sort-link { color: inherit; display: inline-flex; gap: 4px; text-decoration: none; }
.table-sort-link:hover, .table-sort-link:focus-visible { color: var(--gold); }
.fichas-pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.fichas-pagination a { align-items: center; border: 1px solid var(--line); color: var(--muted); display: inline-flex; height: 34px; justify-content: center; width: 34px; }
.fichas-pagination a:hover, .fichas-pagination a[aria-current="page"] { border-color: var(--gold); color: var(--gold); }
.calendar-page { max-width: 1500px; }
.calendar-page .admin-split { grid-template-columns: minmax(300px, 0.55fr) minmax(0, 1.45fr); }
.admin-form-panel { border: 1px solid var(--line); padding: 28px; }
.admin-form-panel h2, .admin-split > section > h2 { font-size: 1.25rem; }
.admin-form-panel .form-group { margin-top: 18px; }
.table-scroll { overflow-x: auto; }
.table-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }
.table-actions form { margin: 0; }
.table-actions a, .table-actions button { align-items: center; background: transparent; border: 0; color: var(--gold); cursor: pointer; display: inline-flex; font-size: 0.72rem; height: 24px; letter-spacing: 0.05em; line-height: 1; padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.checkbox-field { align-items: center; color: var(--muted); cursor: pointer; display: flex; font-size: 0.9rem; gap: 9px; letter-spacing: 0; margin-top: 20px; text-transform: none; }
.checkbox-field input { accent-color: var(--gold); height: 16px; margin: 0; padding: 0; width: 16px; }
.admin-announcement { border-bottom: 1px solid var(--line); padding: 0 0 22px; margin-bottom: 24px; }
.admin-announcement time { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.08em; }
.admin-announcement h3 { font-size: 1.05rem; margin: 8px 0; }
.admin-announcement p { color: var(--muted); }
.admin-announcement button { background: transparent; border: 0; color: var(--gold); cursor: pointer; font-size: 0.72rem; letter-spacing: 0.05em; padding: 0; text-decoration: underline; text-underline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.legal-links { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.legal-links button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.legal-page { max-width: 920px; }
.legal-page h2 { font-size: 1.45rem; margin-top: 42px; }
.legal-page h3 { color: var(--gold); font-size: 1rem; margin: 28px 0 8px; }
.legal-page a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { color: var(--muted); font-size: 0.85rem; }
.legal-details { border-top: 1px solid var(--line); }
.legal-details div { border-bottom: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: 150px 1fr; padding: 13px 0; }
.legal-details dt { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-details dd { margin: 0; }
.cookie-table { min-width: 720px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner { align-items: end; background: #101923; border: 1px solid var(--gold); bottom: 18px; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55); display: grid; gap: 28px; grid-template-columns: 1fr auto; left: 50%; max-width: 1180px; padding: 24px; position: fixed; transform: translateX(-50%); width: calc(100% - 36px); z-index: 1000; }
.cookie-banner h2 { font-size: 1.2rem; margin: 0 0 8px; }
.cookie-banner p { color: var(--muted); margin: 0 0 8px; max-width: 760px; }
.cookie-banner a { color: var(--gold); font-size: 0.85rem; text-decoration: underline; }
.cookie-banner-actions, .cookie-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner-actions .button, .cookie-dialog-actions .button { min-width: 150px; }
.cookie-dialog { background: var(--navy); border: 1px solid var(--gold); color: var(--ivory); max-width: min(680px, calc(100vw - 32px)); padding: 28px; width: 100%; }
.cookie-dialog::backdrop { background: rgba(0, 0, 0, 0.78); }
.cookie-dialog-header { align-items: start; display: flex; justify-content: space-between; }
.cookie-dialog-header h2 { font-size: 1.55rem; }
.cookie-dialog-close { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 2rem; }
.cookie-option { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: 1fr auto; padding: 18px 0; }
.cookie-option p { color: var(--muted); margin: 5px 0 0; }
.cookie-option input { accent-color: var(--gold); height: 22px; width: 22px; }
.cookie-dialog-actions { border-top: 1px solid var(--line); justify-content: flex-end; padding-top: 20px; }

@media (max-width: 760px) {
    .cookie-banner { align-items: stretch; bottom: 8px; gap: 18px; grid-template-columns: 1fr; padding: 18px; width: calc(100% - 16px); }
    .cookie-banner-actions { display: grid; grid-template-columns: 1fr; }
    .cookie-banner-actions .button { width: 100%; }
    .legal-details div { gap: 6px; grid-template-columns: 1fr; }
    .site-header { min-height: 160px; padding: 0 24px; }
    .menu-toggle { display: block; }
    .main-navigation { background: var(--ink); border-bottom: 1px solid var(--line); display: none; left: 0; padding: 18px 24px 25px; position: absolute; top: 160px; width: 100%; }
    .main-navigation.is-open { align-items: stretch; display: flex; flex-direction: column; gap: 16px; }
    .main-navigation .member-access { align-self: flex-start; }
    .section-shell { padding: 74px 24px; }
    .section-heading, .site-footer, .dashboard-header { align-items: flex-start; flex-direction: column; gap: 18px; }
    .admin-navigation { gap: 14px; }
    .admin-navigation a { font-size: 0.65rem; }
    .admin-grid, .admin-split { grid-template-columns: 1fr; }
    .fichas-toolbar { align-items: stretch; flex-direction: column; }
    .ficha-form-grid { grid-template-columns: 1fr; }
    .admin-header { align-items: flex-start; flex-direction: column; gap: 8px; padding-bottom: 12px; padding-top: 12px; }
    .admin-navigation { justify-content: space-between; width: 100%; }
    .admin-dashboard, .admin-page { padding-top: 205px; }
    .event-item { gap: 15px; grid-template-columns: 70px 1fr 28px; }
    .event-item time span { display: block; margin: 0; }
    .history-item { gap: 16px; grid-template-columns: 70px 1fr; }
    .conductor { grid-template-columns: 1fr; }
    .conductor-image { min-height: 340px; }
    .voice-grid, .era-grid, .form-layout { grid-template-columns: 1fr; }
    .media-carousel { margin-left: -42px; margin-right: -42px; padding-left: 42px; padding-right: 42px; }
    .media-grid[data-media-carousel-track] .media-card { flex-basis: min(320px, 84vw); }
    .calendar-scroll { overflow-x: auto; }
    .member-calendar { min-width: 700px; }
    .calendar-day { min-height: 112px; }
    .social-links { grid-template-columns: 1fr; }
    .concert-registration-card { align-items: stretch; grid-template-columns: 1fr; }
    .concert-registration-action { align-items: flex-start; }
    .form-group.full-width { grid-column: auto; }
    .login-panel { padding: 30px 24px; }
    .material-table th:nth-child(2), .material-table td:nth-child(2) { display: none; }
    .calendar-table th:nth-child(2), .calendar-table td:nth-child(2) { display: table-cell; }
    .users-table th:nth-child(2), .users-table td:nth-child(2), .materials-table th:nth-child(2), .materials-table td:nth-child(2), .announcements-table th:nth-child(2), .announcements-table td:nth-child(2) { display: table-cell; }
}

/* Gestión de la galería pública. */
.admin-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.5rem; margin: 2rem 0 3rem; }
.admin-photo-card { min-width: 0; }
.admin-photo-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: .75rem; }
.admin-photo-card .button { width: 100%; }
