:root {
    --bg-0: #070b12;
    --bg-1: #0b1320;
    --bg-2: #131f31;
    --panel: rgba(15, 23, 36, 0.7);
    --panel-strong: rgba(19, 30, 46, 0.88);
    --panel-soft: rgba(255, 255, 255, 0.03);
    --border: rgba(190, 212, 240, 0.14);
    --border-strong: rgba(190, 212, 240, 0.25);
    --text: #edf2fb;
    --muted: #b2bfd3;
    --muted-2: #8f9cb0;
    --accent: #a8ddff;
    --accent-warm: #ffd38c;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.18);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --sticky-section-top: 0.75rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    background: var(--bg-0);
}

body.site-body {
    position: relative;
    margin: 0;
    color: var(--text);
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", "Geneva", sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(145, 210, 255, 0.12), transparent 45%),
        radial-gradient(circle at 85% 18%, rgba(255, 201, 120, 0.12), transparent 42%),
        radial-gradient(circle at 50% 120%, rgba(84, 112, 172, 0.28), transparent 50%),
        linear-gradient(180deg, var(--bg-1), var(--bg-0) 55%, #04070c);
}

body.site-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at 50% 0%, black, transparent 85%);
    z-index: 0;
}

a {
    color: var(--accent);
    text-decoration-color: rgba(168, 221, 255, 0.4);
    text-underline-offset: 0.14em;
}

a:hover {
    color: #d4eeff;
    text-decoration-color: rgba(212, 238, 255, 0.7);
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
    line-height: 1.15;
    font-weight: 500;
}

p {
    margin: 0;
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.bg-orb-1 {
    top: 5rem;
    right: 8vw;
    width: 15rem;
    height: 15rem;
    background: radial-gradient(circle, rgba(142, 205, 255, 0.38), rgba(142, 205, 255, 0));
}

.bg-orb-2 {
    top: 18rem;
    left: 7vw;
    width: 12rem;
    height: 12rem;
    background: radial-gradient(circle, rgba(255, 206, 133, 0.28), rgba(255, 206, 133, 0));
}

.container {
    width: 100%;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-header {
    position: relative;
    z-index: 1;
    padding-top: 1rem;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-nav-links {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.top-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.top-nav-link:hover {
    color: var(--text);
    border-color: rgba(190, 212, 240, 0.28);
    background: rgba(255, 255, 255, 0.07);
}

.top-nav-link.is-active {
    color: #e5f5ff;
    border-color: rgba(168, 221, 255, 0.4);
    background: rgba(168, 221, 255, 0.12);
}


.brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
        linear-gradient(160deg, rgba(141, 205, 255, 0.1), rgba(255, 203, 125, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-soft);
    font-size: 1.15rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-name {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 1.1rem;
    line-height: 1.05;
    letter-spacing: 0.015em;
}

.brand-subtitle {
    color: var(--muted-2);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-main {
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.content-shell {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

.panel {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.25rem;
    overflow: hidden;
}

.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 40%);
}

.hero-panel {
    padding: 1.5rem;
    background:
        radial-gradient(circle at 80% 0%, rgba(156, 218, 255, 0.14), transparent 45%),
        radial-gradient(circle at 10% 100%, rgba(255, 212, 142, 0.1), transparent 45%),
        linear-gradient(180deg, rgba(22, 32, 49, 0.92), rgba(13, 20, 31, 0.86));
    border-color: var(--border-strong);
}

.hero-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.hero-header > :first-child {
    min-width: 0;
}

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

.hero-title {
    font-size: clamp(1.55rem, 3vw, 2rem);
    letter-spacing: 0.01em;
}

.hero-subtitle {
    margin-top: 0.35rem;
    color: var(--muted);
    line-height: 1.4;
    max-width: 36rem;
}

.date-chip {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.color-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.25rem;
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -18px 24px rgba(0, 0, 0, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.color-chip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.color-chip.is-rainbow {
    border-color: transparent;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: linear-gradient(
        90deg,
        #e40303 0 16.666%,
        #ff8c00 16.666% 33.333%,
        #ffed00 33.333% 50%,
        #008026 50% 66.666%,
        #004dff 66.666% 83.333%,
        #750787 83.333% 100%
    );
}

.color-chip.is-rainbow .color-name {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
}

.color-name {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.32);
}

.text-light-background {
    color: rgba(17, 20, 27, 0.96);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-event-card {
    position: relative;
    z-index: 1;
    background:
        radial-gradient(circle at 12% 20%, rgba(168, 221, 255, 0.18), transparent 48%),
        rgba(255, 255, 255, 0.025);
}

.hero-event-card .schedule-swatch {
    min-height: 3rem;
}

.empty-state {
    position: relative;
    z-index: 1;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(190, 212, 240, 0.2);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    text-align: center;
}

.panel-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.panel-head > :first-child {
    min-width: 0;
}

.sticky-section-head {
    position: sticky;
    top: var(--sticky-section-top);
    z-index: 4;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(190, 212, 240, 0.12);
    background:
        linear-gradient(180deg, rgba(18, 28, 43, 0.97), rgba(11, 18, 29, 0.9)),
        rgba(11, 18, 29, 0.9);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.sticky-section-head::after {
    content: "";
    position: absolute;
    inset: auto 1rem 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(190, 212, 240, 0.32), transparent);
    pointer-events: none;
}

.panel-title {
    font-size: 1.28rem;
    letter-spacing: 0.01em;
}

.panel-title + .panel-copy-stack {
    margin-top: 0.45rem;
}

.panel-kicker {
    color: var(--muted-2);
    font-size: 0.82rem;
    flex-shrink: 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.camera-panel {
    padding-bottom: 0.9rem;
}

.camera-frame {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-md);
    border-top-left-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: #060a10;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.camera-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.schedule-panel {
    padding-top: 0.95rem;
    overflow: visible;
}

.on-this-day-panel {
    padding-top: 0.95rem;
    overflow: visible;
}

.schedule-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.7rem;
}

.on-this-day-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.7rem;
}

.schedule-item {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        rgba(255, 255, 255, 0.015);
    padding: 1rem;
    display: grid;
    gap: 0.7rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.schedule-item:hover {
    border-color: rgba(190, 212, 240, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.schedule-item.active {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.schedule-item.is-today {
    border-left: 0;
    border-color: rgba(168, 221, 255, 0.30);
    background:
        radial-gradient(circle at 12% 20%, rgba(168, 221, 255, 0.14), transparent 45%),
        rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 0 1px rgba(168, 221, 255, 0.1);
}

.schedule-item.is-today:hover,
.schedule-item.is-today.active {
    border-color: rgba(168, 221, 255, 0.42);
    background:
        radial-gradient(circle at 12% 20%, rgba(168, 221, 255, 0.2), transparent 50%),
        rgba(255, 255, 255, 0.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(168, 221, 255, 0.2);
}

.on-this-day-item {
    background: rgba(255, 255, 255, 0.015);
}

.schedule-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.55rem;
}

.schedule-date {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
}

.schedule-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 211, 140, 0.28);
    background: rgba(255, 211, 140, 0.08);
    color: var(--accent-warm);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
}

.schedule-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.schedule-swatch {
    width: auto;
    min-width: 8.75rem;
    flex: 1 1 8.75rem;
    min-height: 2.7rem;
}

.schedule-swatch .color-name {
    font-size: 0.88rem;
    letter-spacing: 0.08em;
}

.schedule-occasion {
    color: var(--text);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 1.2rem;
    line-height: 1.35;
    font-weight: 600;
    margin-bottom: -0.15rem;
}

.info-grid {
    display: grid;
    gap: 1.25rem;
}

.about-panel {
    min-height: 100%;
}

.meta-panel {
    min-height: 0;
    align-self: start;
}

.about-copy {
    position: relative;
    z-index: 1;
    color: var(--muted);
    line-height: 1.55;
    max-width: 62ch;
}

.panel-copy-stack {
    display: grid;
    gap: 0.55rem;
}

.archive-shell {
    max-width: 100%;
}

.history-shell {
    max-width: 860px;
}

.history-hero {
    gap: 0.9rem;
}

.history-hero .hero-header {
    margin-bottom: 0;
}

.history-hero .archive-meta {
    margin-top: 0.65rem;
}

.history-controls-shell {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.history-controls-section {
    position: relative;
    z-index: 1;
}

.history-controls-section + .history-controls-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.history-controls-label {
    margin: 0 0 0.6rem;
    color: var(--muted-2);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.year-jump-list {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.year-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.36rem 0.64rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.year-chip:hover {
    color: var(--text);
    border-color: rgba(190, 212, 240, 0.3);
}

.year-chip.is-active {
    color: #e5f5ff;
    border-color: rgba(168, 221, 255, 0.38);
    background: rgba(168, 221, 255, 0.12);
}

.year-chip-count {
    font-size: 0.68rem;
    color: var(--muted-2);
}

.history-filters {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-filter-field {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.history-filter-field span {
    color: var(--muted-2);
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.history-filter-field input {
    width: 100%;
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: rgba(6, 10, 16, 0.62);
    color: var(--text);
    padding: 0.55rem 0.6rem;
    font: inherit;
}

.history-filter-search {
    grid-column: auto;
}

.history-filter-actions {
    grid-column: 1 / -1;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.history-admin-login {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.75rem;
    max-width: 24rem;
}

.history-admin-status {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.history-admin-status form {
    margin: 0;
}

.history-admin-logout {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    padding: 0.4rem 0.8rem;
    font: inherit;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.history-admin-logout:hover {
    border-color: rgba(190, 212, 240, 0.32);
    color: var(--text);
}

.history-admin-messages {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
}

.history-admin-message {
    padding: 0.52rem 0.66rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.history-admin-message.is-success {
    border-color: rgba(147, 226, 171, 0.38);
    background: rgba(61, 132, 82, 0.24);
    color: #d9f4e2;
}

.history-admin-message.is-error {
    border-color: rgba(255, 145, 145, 0.4);
    background: rgba(142, 48, 48, 0.26);
    color: #ffdede;
}

.history-admin-message.is-info {
    border-color: rgba(160, 197, 240, 0.35);
    background: rgba(60, 95, 136, 0.23);
    color: #deedff;
}

.history-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(168, 221, 255, 0.35);
    background: rgba(168, 221, 255, 0.14);
    color: #e8f6ff;
    padding: 0.45rem 0.9rem;
    font: inherit;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
}

.history-button:hover {
    border-color: rgba(168, 221, 255, 0.55);
    background: rgba(168, 221, 255, 0.22);
}

.history-clear-link {
    color: var(--muted);
    font-size: 0.85rem;
}

.history-clear-button {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    padding: 0.45rem 0.85rem;
    font: inherit;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.history-clear-button:hover {
    border-color: rgba(190, 212, 240, 0.3);
    color: var(--text);
}

.history-override-admin {
    display: grid;
    gap: 0.5rem;
    padding-top: 0.2rem;
}

.history-override-context {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--muted-2);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.history-override-form {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
}

.history-override-form input[type="text"] {
    width: 100%;
    border-radius: 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: rgba(6, 10, 16, 0.62);
    color: var(--text);
    padding: 0.5rem 0.58rem;
    font: inherit;
}

.history-month-panel {
    padding-top: 0.95rem;
}

.history-pagination-panel {
    padding-top: 0.95rem;
}

.history-pagination {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.history-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.8rem;
    padding: 0.4rem 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.history-page-link:hover {
    border-color: rgba(190, 212, 240, 0.3);
    color: var(--text);
}

.history-page-link.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.history-page-label {
    color: var(--muted-2);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.archive-hero {
    gap: 0.9rem;
}

.archive-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.archive-meta-item {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.archive-table-panel {
    padding-top: 1rem;
}

.archive-table-scroll {
    position: relative;
    z-index: 1;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 12, 19, 0.45);
}

.archive-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.archive-table th,
.archive-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.84rem;
    line-height: 1.45;
}

.archive-table th {
    position: sticky;
    top: 0;
    background: rgba(11, 18, 30, 0.92);
    color: var(--accent);
    font-size: 0.74rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.archive-table td {
    color: var(--muted);
    max-width: 24rem;
    overflow-wrap: anywhere;
}

.archive-thumb-link {
    display: inline-block;
    line-height: 0;
}

.archive-thumb {
    display: block;
    width: min(100%, 20rem);
    min-width: 10rem;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.archive-thumb-note {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--muted-2);
}

.archive-table tbody tr:last-child td {
    border-bottom: 0;
}

.site-footer {
    position: relative;
    z-index: 1;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    justify-content: center;
    color: var(--muted-2);
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

@media (min-width: 760px) {
    .panel {
        padding: 1.4rem 1.5rem;
    }

    .hero-panel {
        padding: 1.75rem 1.8rem;
    }

    .info-grid {
        grid-template-columns: 1.4fr 1fr;
    }

    .content-shell {
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    :root {
        --sticky-section-top: 0.5rem;
    }

    .top-nav {
        align-items: stretch;
    }

    .top-nav-links {
        width: 100%;
    }

    .top-nav-link {
        flex: 1 1 auto;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-subtitle {
        letter-spacing: 0.14em;
    }

    .schedule-swatch {
        min-width: 100%;
        flex-basis: 100%;
    }

    .history-filters {
        grid-template-columns: 1fr;
    }

    .history-filter-search {
        grid-column: auto;
    }

    .history-filter-field input[type="date"] {
        width: min(100%, 13rem);
    }

    .history-override-form {
        grid-template-columns: 1fr;
    }

    .history-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .history-page-link {
        flex: 1 1 0;
        min-width: 0;
        white-space: nowrap;
    }

    .history-page-label {
        order: -1;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .hero-header {
        flex-direction: column;
        align-items: stretch;
    }

    .date-chip {
        align-self: flex-start;
    }

    .panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}

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

    .schedule-item:hover {
        transform: none;
    }
}
