:root {
    color-scheme: light;
    --burgundy: #a51f36;
    --burgundy-dark: #781326;
    --crimson: #c9344e;
    --amber: #b88932;
    --green: #187668;
    --ink: #211d1d;
    --muted: #756e69;
    --line: #ded6cd;
    --surface: #fff;
    --surface-solid: #fff;
    --canvas: #f8f4ee;
    --danger: #a11f31;
    --shadow: 0 8px 24px rgba(47, 35, 29, .055);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.5; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, .button { min-height: 42px; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(134,31,53,.22); outline-offset: 2px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 9px 13px; color: #fff; background: var(--burgundy-dark); border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.institution-bar { min-height: 28px; color: #d9d0cb; background: #191516; font-size: 10px; font-weight: 650; text-transform: uppercase; }
.institution-bar-inner { width: min(1120px, calc(100% - 32px)); min-height: 28px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.institution-bar b { margin: 0 6px; color: var(--crimson); }
.institution-bar nav { display: flex; gap: 20px; }
.institution-bar a { color: #a99f9a; }
.institution-bar a:hover { color: #fff; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 20; min-height: 66px; border-bottom: 1px solid #e7e0d8; background: rgba(255, 255, 255, .97); }
.header-inner { width: min(1120px, calc(100% - 32px)); min-height: 66px; margin: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 700; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-logo { flex: 0 0 auto; width: 39px; height: 39px; object-fit: contain; border-radius: 50%; background: #fff; }
.brand-copy small { display: block; color: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 9px; font-weight: 650; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { position: relative; padding: 23px 9px 20px; color: #4e4845; font-size: 12px; font-weight: 680; }
.main-nav a::after { position: absolute; right: 9px; bottom: 14px; left: 9px; height: 2px; background: transparent; content: ""; }
.main-nav a:hover, .main-nav a.active { color: var(--burgundy); text-decoration: none; }
.main-nav a:hover::after, .main-nav a.active::after { background: var(--burgundy); }
.nav-menu { position: relative; }
.nav-menu > summary { position: relative; padding: 23px 24px 20px 9px; color: #4e4845; font-size: 12px; font-weight: 680; list-style: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::before { position: absolute; top: 50%; right: 9px; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; transform: translateY(-70%) rotate(45deg); }
.nav-menu > summary::after { position: absolute; right: 9px; bottom: 14px; left: 9px; height: 2px; background: transparent; content: ""; }
.nav-menu:hover > summary, .nav-menu.active > summary, .nav-menu[open] > summary { color: var(--burgundy); }
.nav-menu.active > summary::after, .nav-menu[open] > summary::after { background: var(--burgundy); }
.nav-menu-popover { position: absolute; top: calc(100% - 8px); left: 0; z-index: 30; width: 190px; padding: 8px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 32px rgba(36, 25, 22, .14); }
.main-nav .nav-menu-popover a { display: block; padding: 10px 12px; }
.main-nav .nav-menu-popover a::after { display: none; }
.main-nav .nav-menu-popover a:hover, .main-nav .nav-menu-popover a.active { background: #f8e9eb; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.notification-link { position: relative; width: 35px; height: 35px; display: grid; place-items: center; color: #968e89; border: 1px solid var(--line); border-radius: 50%; font-family: Georgia, serif; font-weight: 800; }
.notification-link:hover { color: #625b57; border-color: #bdb3ad; text-decoration: none; }
.notification-link-unread, .notification-link-unread:hover { color: var(--burgundy); border-color: var(--burgundy); }
.notification-link b { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; color: #fff; background: var(--burgundy); border: 2px solid #fff; border-radius: 10px; font-family: Inter, sans-serif; font-size: 9px; }
.user-chip { min-height: 39px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; color: var(--ink); background: #f7f2ec; border: 1px solid #e7ddd4; border-radius: 22px; font-size: 12px; font-weight: 700; }
.user-chip:hover { border-color: #cdbdb0; text-decoration: none; }
.user-chip-avatar { width: 29px; height: 29px; display: grid; place-items: center; color: #fff; background: var(--burgundy); border-radius: 50%; font-size: 10px; }
.header-logout { margin: 0; }
.header-logout button { width: 35px; min-height: 35px; height: 35px; display: grid; place-items: center; padding: 0; color: #6e6662; background: #fff; border: 1px solid var(--line); border-radius: 50%; }
.header-logout button:hover { color: var(--burgundy); border-color: var(--burgundy); }
.header-logout svg { width: 17px; height: 17px; }
.mobile-nav-only { display: none; }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: white; border-radius: 3px; padding: 8px 11px; }

.page { width: min(1180px, calc(100% - 32px)); margin: 28px auto 64px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1, .page-head h2 { margin: 0; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: 0; }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: 0; }
h3 { font-size: 17px; letter-spacing: 0; }
.eyebrow { margin: 0 0 5px; color: var(--burgundy); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.panel, .card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
    box-shadow: var(--shadow);
}
.panel { padding: 22px; }
.card { overflow: hidden; }
.card-body { padding: 18px; }
.panel, .card, .message, .prose, td { overflow-wrap: anywhere; }
.panel-accent-amber { border-left: 4px solid var(--amber); }
.panel-accent-green { border-left: 4px solid var(--green); }
.panel-accent-danger { border-left: 4px solid var(--danger); }
.notification-item { border-left: 4px solid var(--line); }
.notification-item-unread { border-left-color: var(--burgundy); }
.list-row, .details-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.details-row { padding: 10px 0; }
.item-row, .space-top-sm { margin-top: 12px; }
.legal-editor { min-height: 220px; }
.eyebrow-contrast { color: var(--burgundy); }
.error-page { min-height: 80vh; display: grid; place-items: center; }
.error-panel { max-width: 560px; text-align: center; }
.brand-logo-centered { display: block; width: 72px; height: 72px; margin: auto; }
.error-panel .eyebrow { margin-top: 22px; }
.section { margin-top: 32px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hero-band {
    min-height: 280px; display: flex; align-items: center; border-bottom: 1px solid var(--line);
}
.hero-content { width: min(680px, 100%); padding: 28px 0 38px; }
.hero-content h1 { margin: 0 0 10px; font-size: 40px; }
.hero-content p { max-width: 600px; margin: 0; color: var(--muted); font-size: 17px; }
.hero-search { display: flex; gap: 8px; margin-top: 22px; }
.hero-search input { flex: 1; background: rgba(255,255,255,.92); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.stat { padding: 18px; border-left: 3px solid var(--burgundy); }
.stat strong { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-size: 13px; }

.button, button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid transparent;
    border-radius: 3px; cursor: pointer; font-weight: 720; text-decoration: none;
}
.button:hover { text-decoration: none; }
.button-primary { color: #fff; background: var(--burgundy); border-color: var(--burgundy); }
.button-primary:hover { background: var(--burgundy-dark); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button-danger { color: #fff; background: var(--danger); }
.button-quiet { color: var(--burgundy); background: rgba(134,31,53,.07); border-color: rgba(134,31,53,.08); }
.button-small { min-height: 34px; padding: 6px 10px; font-size: 13px; }

label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 720; }
input, select, textarea {
    width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cfd5db; border-radius: 6px; color: var(--ink); background: rgba(255,255,255,.94);
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(134,31,53,.14); border-color: var(--burgundy); }
input:disabled, select:disabled, textarea:disabled { color: #6f6965; background: #eeeae5 !important; border-color: #d8d0c8; cursor: not-allowed; opacity: 1; }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; accent-color: var(--burgundy); }
.field { margin-bottom: 16px; }
.field-group { border: 0; border-top: 1px solid var(--line); margin: 20px 0 0; padding: 18px 0 0; min-width: 0; }
.field-group legend { color: var(--burgundy); font-size: 1.05rem; font-weight: 650; padding-right: 12px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; }
.check-row input { flex: 0 0 auto; margin-top: 2px; }
.check-row label { margin: 0; font-weight: 600; }
.help { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.flash, .error-box { margin-bottom: 18px; padding: 13px 15px; border-radius: 7px; }
.flash { color: #175f52; background: #e7f5f1; border: 1px solid #b8e1d7; }
.error-box { color: #7c1829; background: #fff0f2; border: 1px solid #efc3ca; }
.error-box ul { margin: 0; padding-left: 18px; }

.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.filters > :first-child { grid-column: span 2; }
.member-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.member-card { display: flex; gap: 13px; min-height: 132px; padding: 17px; }
.avatar { flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--burgundy); font-weight: 800; }
img.avatar { object-fit: cover; }
.member-card h3 { margin: 1px 0 4px; }
.member-card p { margin: 2px 0; color: var(--muted); font-size: 13px; }
.directory-layout { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.directory-filter { position: sticky; top: 88px; }
.directory-filter .field:last-of-type { margin-bottom: 16px; }
.directory-results { min-width: 0; }
.directory-toolbar { min-height: 42px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chips .badge:hover { color: #fff; background: var(--burgundy); text-decoration: none; }
.view-switch { display: flex; flex: 0 0 auto; gap: 5px; }
.directory-table th:nth-child(2), .directory-table th:nth-child(3), .directory-table td:nth-child(2), .directory-table td:nth-child(3) { white-space: nowrap; }
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 10px; }
.class-card { display: flex; min-height: 86px; flex-direction: column; justify-content: center; }
.class-card strong { color: var(--burgundy); font-size: 22px; }
.class-card span { color: var(--muted); font-size: 13px; }
.group-list { border-top: 1px solid var(--line); }
.group-list a, .distribution-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.class-navigation { display: flex; justify-content: space-between; gap: 16px; }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 999px; color: #5e1627; background: #f7e8ec; font-size: 12px; font-weight: 750; }
.badge-green { color: #165f53; background: #e5f4f0; }
.badge-amber { color: #70500f; background: #fff4d9; }
.status-icon { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; font-size: 16px; font-weight: 800; line-height: 1; white-space: nowrap; }
.status-icon-approved { color: #165f53; background: #e5f4f0; }
.status-icon-pending { color: #70500f; background: #fff4d9; }
.status-icon-rejected { color: #9f1d35; background: #f9e5e9; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline: 3px solid rgba(134,31,53,.18); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; }
.actions form { margin: 0; }
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.page-link { min-width: 38px; min-height: 38px; display: grid; place-items: center; padding: 7px 11px; color: var(--burgundy); background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 6px; backdrop-filter: blur(12px); }
.page-link:hover { color: #fff; background: var(--burgundy); border-color: var(--burgundy); text-decoration: none; }
.page-item.active .page-link { color: #fff; background: var(--burgundy-dark); border-color: var(--burgundy-dark); }
.page-item.disabled .page-link { color: var(--muted); background: rgba(255,255,255,.58); opacity: .58; pointer-events: none; }
.page-link:focus-visible { outline: 3px solid rgba(134,31,53,.18); outline-offset: 2px; }
details > summary { cursor: pointer; font-weight: 700; }
details > summary:focus-visible { outline: 3px solid rgba(134,31,53,.18); outline-offset: 3px; }
.memorial-notes { margin: 16px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.memorial-notes blockquote { margin: 10px 0; padding-left: 12px; border-left: 3px solid var(--amber); }
.memorial-notes footer { margin-top: 4px; color: var(--muted); font-size: 12px; }

.guest-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr); background: #fff; }
.guest-panel { grid-column: 2; min-height: 100vh; display: flex; flex-direction: column; padding: 48px clamp(34px, 7vw, 110px); background: rgba(255,255,255,.97); }
.guest-panel .brand { margin-bottom: auto; }
.guest-form { width: 100%; max-width: 620px; margin: 90px auto auto; }
.guest-form h1 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 500; }
.guest-form .eyebrow { color: var(--burgundy); }
.guest-form label { color: #716762; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.guest-form input, .guest-form select, .guest-form textarea { border-radius: 1px; background: #fff; }
.guest-form form > .button { width: 100%; margin-top: 8px; border-radius: 1px; }
.guest-aside { grid-column: 1; grid-row: 1; display: flex; align-items: end; padding: clamp(34px, 7vw, 100px); color: white; background-image: linear-gradient(rgba(22,17,18,.68), rgba(22,17,18,.82)), url('/images/autf-auth-background.png'); background-position: 62% center; background-size: cover; }
.guest-aside div { max-width: 610px; }
.guest-aside .eyebrow { color: #c9bbb5; }
.guest-aside h2 { max-width: 560px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 46px; font-weight: 500; line-height: 1.08; }
.maintenance-copy { max-width: 520px; font-size: 17px; line-height: 1.75; }
.maintenance-login { width: 100%; margin-top: 24px; }

.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-nav { position: sticky; top: 88px; padding: 12px; }
.admin-nav a { display: block; padding: 9px 10px; border-radius: 5px; color: #424850; font-size: 13px; font-weight: 650; }
.admin-nav a:hover, .admin-nav a.active { color: var(--burgundy); background: rgba(134,31,53,.07); text-decoration: none; }
.admin-nav-group { border-bottom: 1px solid #e8e0d8; }
.admin-nav-group > summary { position: relative; padding: 12px 34px 9px 16px; color: #8a7f78; font-size: 10px; font-weight: 800; letter-spacing: .08em; list-style: none; text-transform: uppercase; }
.admin-nav-group > summary::-webkit-details-marker { display: none; }
.admin-nav-group > summary::after { position: absolute; top: 14px; right: 16px; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; transform: rotate(45deg); }
.admin-nav-group[open] > summary::after { top: 17px; transform: rotate(225deg); }
.admin-nav-group > div { padding-bottom: 5px; }
.admin-nav-group a { padding-left: 22px !important; }
.admin-main { min-width: 0; }
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.profile-head .avatar { width: 82px; height: 82px; font-size: 24px; }
.message { max-width: 74%; margin: 8px 0; padding: 10px 12px; border-radius: 7px; background: #fff; border: 1px solid var(--line); }
.message-own { margin-left: auto; color: white; background: var(--burgundy); border-color: var(--burgundy); }
.prose { white-space: pre-line; }
.footer { padding: 62px 16px 20px; color: #aaa09b; background: #191516; font-size: 12px; }
.footer-inner { width: min(1120px, 100%); margin: auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 70px; }
.footer strong { display: block; margin-bottom: 15px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 15px; }
.footer-brand strong { font-size: 24px; }
.footer-brand p { max-width: 320px; line-height: 1.8; }
.footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer a, .footer button { min-height: 0; padding: 0; color: #aaa09b; background: transparent; border: 0; font: inherit; font-weight: 500; }
.footer a:hover, .footer button:hover { color: #fff; text-decoration: none; }
.footer-bottom { width: min(1120px, 100%); margin: 50px auto 0; padding-top: 18px; border-top: 1px solid #302a2a; color: #776f6b; }

/* Authenticated home */
.page.page-home { width: 100%; margin: 0; }
.page-home > .flash, .page-home > .error-box { width: min(1120px, calc(100% - 32px)); margin: 18px auto; }
.home-inner { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.home-notice { color: #584d3d; background: #fff8e7; border-bottom: 1px solid #ead9b3; }
.home-notice .home-inner { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-notice p { margin: 0; font-size: 12px; }
.home-notice a { flex: 0 0 auto; font-size: 11px; font-weight: 800; }
.home-hero { padding: 72px 0 66px; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .8fr); gap: 88px; align-items: center; }
.editorial-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--burgundy); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.editorial-kicker::before { width: 24px; height: 1px; background: var(--burgundy); content: ""; }
.home-hero h1 { max-width: 670px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 54px; font-weight: 500; line-height: 1.04; }
.home-hero h1 em, .home-section-head h2 em, .home-memorial h2 em { color: var(--burgundy); font-weight: 500; }
.home-lead { max-width: 600px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.home-search { max-width: 650px; display: flex; margin-top: 30px; padding: 4px; background: #fff; border: 1px solid var(--line); }
.home-search input { min-width: 0; border: 0; background: transparent; }
.home-search input:focus { outline: 0; }
.home-search .button { min-width: 100px; background: #1c1818; border-color: #1c1818; }
.home-search .button:hover { background: var(--burgundy); border-color: var(--burgundy); }
.home-search-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.home-search-links a { padding: 5px 10px; color: var(--burgundy); background: #f4e7e7; border-radius: 14px; font-size: 10px; font-weight: 750; }
.home-search-links a:hover { color: #fff; background: var(--burgundy); text-decoration: none; }
.home-stat-panel { padding: 36px 34px; color: #fff; background: #1b1718; border-top: 3px solid var(--burgundy); }
.home-stat-panel > p { margin: 0 0 28px; color: #8e8480; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.home-stat-panel > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.home-stat-panel span { color: #a89f9b; font-size: 10px; }
.home-stat-panel strong { display: block; margin-bottom: 3px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 33px; font-weight: 500; }
.home-next-event { min-height: 66px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 14px; margin-top: 14px; padding: 10px 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--burgundy); }
.home-next-event:hover { border-color: #c6b9ad; text-decoration: none; }
.home-next-event time { color: var(--burgundy); font-size: 9px; text-align: center; text-transform: uppercase; }
.home-next-event time strong { display: block; font-family: Georgia, serif; font-size: 23px; line-height: 1; }
.home-next-event span { color: var(--muted); font-size: 10px; }
.home-next-event span b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 12px; }
.home-next-event i { color: var(--burgundy); font-style: normal; }
.home-calendar { padding: 22px 0; background: #fff; border-block: 1px solid var(--line); }
.home-calendar .home-inner { display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: center; }
.home-calendar .editorial-kicker { margin: 0; }
.home-calendar-list { display: flex; gap: 24px; overflow-x: auto; }
.home-calendar-list a, .home-calendar-list span { flex: 0 0 auto; color: var(--ink); font-family: Georgia, serif; font-size: 13px; }
.home-calendar-list a:hover { color: var(--burgundy); text-decoration: none; }
.home-calendar-list time { margin-right: 8px; color: var(--burgundy); font-family: Inter, sans-serif; font-size: 10px; font-weight: 800; }
.home-section { padding: 54px 0; }
.home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.home-section-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; }
.home-section-head a { font-size: 11px; font-weight: 750; }
.home-news-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.home-news-card { grid-column: span 4; min-height: 190px; display: flex; flex-direction: column; padding: 24px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-news-featured { grid-column: span 8; grid-row: span 2; min-height: 380px; padding: 34px; }
.news-category { margin: 0 0 18px; color: var(--burgundy); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.news-category::before { margin-right: 7px; content: "•"; }
.home-news-card h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 600; line-height: 1.25; }
.home-news-featured h3 { max-width: 680px; font-size: 31px; }
.home-news-card > p:not(.news-category) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.home-news-card footer { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 24px; color: #9b938e; border-top: 1px dashed #e8e1da; font-size: 9px; }
.home-empty { grid-column: 1 / -1; min-height: 110px; display: grid; place-items: center; padding: 28px; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.home-events { padding-top: 20px; }
.home-event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.home-event-grid > a { min-height: 110px; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; color: var(--ink); border-bottom: 1px solid var(--line); }
.home-event-grid > a:nth-child(odd) { border-right: 1px solid var(--line); }
.home-event-grid > a:hover { background: #fff; text-decoration: none; }
.home-event-grid time { color: var(--burgundy); font-size: 9px; text-align: center; text-transform: uppercase; }
.home-event-grid time strong { display: block; font-family: Georgia, serif; font-size: 28px; line-height: 1; }
.home-event-grid span { min-width: 0; }
.home-event-grid small { display: block; margin-bottom: 4px; color: var(--burgundy); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.home-event-grid b { display: block; font-family: Georgia, serif; font-size: 16px; }
.home-event-grid em { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-style: normal; }
.home-event-grid i { color: var(--burgundy); font-style: normal; }
.home-memorial { padding: 58px 0; background: #fff; border-block: 1px solid var(--line); }
.home-memorial-grid { display: grid; grid-template-columns: 260px 1fr; gap: 80px; }
.home-memorial h2 { margin: 0; font-family: Georgia, serif; font-size: 35px; font-weight: 500; line-height: 1.1; }
.home-memorial-grid > div:first-child > p:last-child { color: var(--muted); font-size: 11px; line-height: 1.7; }
.home-memorial-list { border-top: 1px solid var(--line); }
.home-memorial-list a { min-height: 74px; display: grid; grid-template-columns: 80px 1.4fr 1fr auto; align-items: center; gap: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
.home-memorial-list a:hover { color: var(--burgundy); text-decoration: none; }
.home-memorial-list span, .home-memorial-list small, .home-memorial-list i { color: var(--muted); font-size: 9px; font-style: normal; }
.home-memorial-list b { font-family: Georgia, serif; font-size: 16px; }
.home-members { padding: 54px 0 66px; }
.home-member-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.home-member-grid > a { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 12px; color: var(--ink); background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.home-member-grid > a:hover { color: var(--burgundy); background: #fffaf6; text-decoration: none; }
.home-member-grid .avatar { width: 45px; height: 45px; margin-bottom: 12px; }
.home-member-grid b { font-family: Georgia, serif; font-size: 14px; }
.home-member-grid em { margin-top: 4px; color: var(--burgundy); font-size: 9px; font-style: normal; }
.home-member-grid small { margin-top: 3px; color: var(--muted); font-size: 9px; }

/* Editorial language across authenticated pages */
.page:not(.page-home) { width: min(1120px, calc(100% - 40px)); margin-top: 38px; }
.page:not(.page-home) > .page-head:first-child,
.admin-main > .page-head:first-child {
    min-height: 150px; align-items: center; margin: -38px 0 38px; padding: 34px 40px; color: #fff; background: #1b1718;
}
.page-head h1 { font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 500; }
.page-head .eyebrow { color: #b7aaa3; }
.page-head > .muted, .page-head p.muted { color: #c1b5ae; }
.page-head .button-secondary { color: #fff; background: transparent; border-color: #6c6060; }
.page-head .button-secondary:hover { border-color: #fff; }
.panel > h2:first-child, .panel > .section-title:first-child h2, .section-title h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
.panel > h2:first-child { margin-top: 0; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.filters.panel { box-shadow: none; }
.filters label, .page-settings label, .page-admin th { color: #8c827c; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.page:not(.page-home) input, .page:not(.page-home) select, .page:not(.page-home) textarea { background: #fcfaf7; border-color: #ddd3c9; border-radius: 1px; }
.page:not(.page-home) .button { border-radius: 1px; }
.page:not(.page-home) .button-primary { background: var(--burgundy); }

.page-directory .directory-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
.page-directory .directory-filter { top: 86px; padding: 28px; box-shadow: none; }
.page-directory .directory-toolbar { align-items: center; margin-bottom: 16px; }
.page-directory .view-switch { gap: 0; }
.page-directory .view-switch .button { border-color: var(--line); }
.page-directory .directory-table { border-collapse: separate; border-spacing: 0 10px; }
.page-directory .directory-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.page-directory .directory-table tbody tr { background: #fff; }
.page-directory .directory-table td { padding: 18px 14px; border-block: 1px solid var(--line); }
.page-directory .directory-table td:first-child { padding-left: 22px; border-left: 1px solid var(--line); font-family: Georgia, serif; font-size: 16px; }
.page-directory .directory-table td:last-child { padding-right: 22px; border-right: 1px solid var(--line); }
.page-directory .directory-results > .panel.table-wrap { padding: 0; background: transparent; border: 0; box-shadow: none; }
.page-directory .member-card { background: #fff; box-shadow: none; }

.page-news { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(260px, .75fr); gap: 24px 32px; align-items: start; }
.page-news > .page-head { grid-column: 1 / -1; }
.page-news > .filters { grid-column: 2; grid-row: 2; display: block; padding: 24px; }
.page-news > .filters button { width: 100%; margin-top: 14px; }
.page-news > .grid { grid-column: 1; grid-row: 2 / span 3; display: block; margin-top: 0; }
.page-news > .grid article { margin: 0; padding: 28px 30px; border-bottom: 0; box-shadow: none; }
.page-news > .grid article + article { border-top: 0; }
.page-news > .grid article h2 { margin: 14px 0 10px; font-family: Georgia, serif; font-size: 25px; }
.page-news > .grid article .prose { color: #514a46; line-height: 1.7; }
.page-news > nav[role="navigation"] { grid-column: 1; }
.page-news > section.panel { grid-column: 2; grid-row: 3; margin-top: 0; box-shadow: none; }
.page-news > section.panel .field-row { grid-template-columns: 1fr; }

.page-messages > .panel-accent-amber { margin-bottom: 22px; box-shadow: none; }
.page-messages > .grid-2 { grid-template-columns: 1.1fr .9fr; gap: 24px; }
.page-messages > .grid-2 > section:first-child .grid { gap: 0; border: 1px solid var(--line); }
.page-messages > .grid-2 > section:first-child .panel { min-height: 88px; padding: 20px; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
.page-messages > .grid-2 > section:first-child .panel:last-child { border-bottom: 0; }
.page-messages > .grid-2 > section:last-child { box-shadow: none; }
.page-conversation > .help { margin: -18px 0 22px; padding: 11px 14px; color: #865f22; background: #fff5df; border: 1px solid #ecd7ae; }
.page-conversation > section.panel { min-height: 420px; padding: 28px; box-shadow: none; }
.page-conversation .message { max-width: 68%; border-radius: 1px; background: #f7f2ec; }
.page-conversation .message-own { color: #fff; background: #1b1718; border-color: #1b1718; }
.page-conversation > form.panel { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.page-conversation > form.panel .field { margin: 0; }

.page-profile .profile-head { padding: 34px; background: #fff; box-shadow: none; }
.page-profile .profile-head .avatar { width: 96px; height: 96px; font-family: Georgia, serif; font-size: 27px; }
.page-profile .profile-head h1 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 34px; font-weight: 600; }
.page-profile > .grid-2 > .panel, .page-profile > section.panel { box-shadow: none; }
.page-profile .grid-2 .panel h2 { font-size: 20px; }
.page-profile .section .grid-2 article { position: relative; padding-left: 118px; box-shadow: none; }
.page-profile .section .grid-2 article .muted.small { position: absolute; top: 18px; left: 22px; width: 76px; font-family: Georgia, serif; }

.page-settings { width: min(920px, calc(100% - 40px)) !important; }
.page-settings .settings-tab-scope > form > .panel, .page-settings .settings-tab-scope > .grid .panel, .page-settings .settings-tab-scope > section.panel { padding: 28px 32px; box-shadow: none; }
.page-settings .settings-tab-scope > form > .panel > h2, .page-settings .settings-tab-scope > .grid .panel > h2, .page-settings .settings-tab-scope > section.panel > h2 { font-size: 20px; }
.page-settings .field-group { margin-top: 28px; }
.page-settings .field-group legend { font-family: Georgia, serif; }
.page-settings > form > .section:has(> .button:only-child) { display: flex; justify-content: flex-end; }
.section-tabs { position: sticky; top: 66px; z-index: 12; display: flex; margin: 0 0 22px; overflow-x: auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 5px 18px rgba(47,35,29,.05); scrollbar-width: thin; }
.section-tabs button { flex: 1 0 auto; min-height: 50px; padding: 11px 18px; color: #625b57; background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; font-size: 13px; }
.section-tabs button:hover { color: var(--burgundy); background: #fcf7f4; }
.section-tabs button[aria-selected="true"] { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.settings-savebar { display: flex; justify-content: flex-end; padding: 16px 0; }
.identity-lock-note { margin: -4px 0 20px; padding: 10px 12px; background: #f4f0eb; border-left: 3px solid #91847b; }
.representative-global-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr); gap: 32px; align-items: end; margin-bottom: 24px; }
.representative-global-panel h2 { margin: 0 0 8px; }
.representative-global-panel p:last-child { margin-bottom: 0; }
.representative-global-panel form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.representative-global-panel .field { margin: 0; }
.admin-identity-panel { max-width: 760px; }
.identity-member-summary { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.identity-member-summary span { color: var(--muted); }

.page-events > .grid-2 > .panel, .page-archive .panel, .page-contact-requests .panel, .page-notifications .panel { box-shadow: none; }
.page-events > .grid-2 > .panel h2 { font-family: Georgia, serif; }
.page-groups .class-card { min-height: 108px; box-shadow: none; }
.page-groups .class-card strong { font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.page-groups .grid-3 > div { padding: 24px; background: #fff; border: 1px solid var(--line); }
.page-archive > .grid-2:first-of-type > section > .grid { gap: 0; }
.page-archive > .grid-2:first-of-type article { box-shadow: none; }

.page.page-admin { width: min(1380px, calc(100% - 40px)); }
.page-admin .admin-shell { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
.page-admin .admin-nav { top: 86px; padding: 0; overflow: hidden; box-shadow: none; }
.page-admin .admin-nav a { padding: 11px 16px; border-bottom: 1px solid #eee7df; border-radius: 0; }
.page-admin .admin-nav a:hover, .page-admin .admin-nav a.active { border-left: 3px solid var(--burgundy); background: #f8e9eb; }
.page-admin .admin-main > .page-head:first-child { min-height: 108px; margin: 0 0 24px; padding: 24px 30px; }
.page-admin .admin-main > .page-head h1 { font-size: 30px; }
.page-admin .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.page-admin .stat { min-height: 118px; padding: 20px; border: 1px solid var(--line); box-shadow: none; }
.page-admin .stat strong { font-family: Georgia, serif; font-size: 31px; font-weight: 500; }
.page-admin .admin-main > .panel { box-shadow: none; }
.page-admin table thead { background: #faf6f0; }
.page-admin th { color: #8d817a; }

@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; max-height: calc(100vh - 66px); overflow-y: auto; padding: 12px 16px; flex-direction: column; align-items: stretch; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(31,36,42,.10); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 11px; }
    .nav-menu > summary { padding: 11px 34px 11px 11px; }
    .nav-menu > summary::after { display: none; }
    .nav-menu > summary::before { right: 15px; }
    .nav-menu-popover { position: static; width: auto; padding: 2px 0 6px 14px; border: 0; border-left: 2px solid #ead7dc; box-shadow: none; }
    .mobile-nav-only { display: grid; border-top: 1px solid var(--line); padding-top: 8px; }
    .mobile-nav-only button { width: 100%; justify-content: flex-start; padding: 11px; color: var(--burgundy); background: transparent; border: 0; font-weight: 650; }
    .stats, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-list, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .directory-layout { grid-template-columns: 1fr; }
    .directory-filter { position: static; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; overflow: visible; }
    .admin-nav > a { grid-column: 1 / -1; }
    .admin-nav a { white-space: normal; }
    .home-hero-grid { grid-template-columns: 1fr; gap: 38px; }
    .home-hero-copy { max-width: 720px; }
    .home-hero-aside { display: grid; grid-template-columns: 1fr; }
    .home-news-featured { grid-column: span 12; grid-row: auto; min-height: 300px; }
    .home-news-card { grid-column: span 6; }
    .home-member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 42px; }
    .page-news { grid-template-columns: 1fr; }
    .page-news > .page-head, .page-news > .filters, .page-news > .grid, .page-news > nav[role="navigation"], .page-news > section.panel { grid-column: 1; grid-row: auto; }
    .page-news > .filters { display: grid; }
    .page-admin .admin-shell { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .guest-shell { grid-template-columns: 1fr; grid-template-rows: minmax(270px, 36vh) auto; }
    .guest-panel { grid-column: 1; grid-row: 2; min-height: 64vh; padding: 34px clamp(24px, 8vw, 72px) 48px; background: #fff; }
    .guest-panel .brand { margin-bottom: 34px; }
    .guest-form { margin: 24px auto 0; }
    .guest-aside { grid-column: 1; grid-row: 1; min-height: 270px; padding: 28px clamp(24px, 8vw, 72px); background-position: 62% 36%; }
    .guest-aside h2 { max-width: 420px; font-size: 34px; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
    .guest-aside .eyebrow { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
}

@media (max-width: 700px) {
    .page, .header-inner { width: min(100% - 22px, 1180px); }
    .page { margin-top: 18px; }
    .brand-copy small { display: none; }
    .nav-actions { display: none; }
    .hero-band { min-height: 0; }
    .hero-content { padding: 24px 0 30px; }
    .hero-content h1 { font-size: 32px; }
    .hero-search, .page-head { align-items: stretch; flex-direction: column; }
    .stats, .grid-2, .grid-3, .grid-4, .member-list, .field-row, .filters { grid-template-columns: 1fr; }
    .filters > :first-child { grid-column: auto; }
    .guest-shell { grid-template-columns: 1fr; grid-template-rows: minmax(230px, 34vh) auto; background: #fff; }
    .guest-panel { grid-column: 1; grid-row: 2; min-height: 66vh; padding: 26px 22px 38px; background: #fff; }
    .guest-panel .brand { margin-bottom: 28px; }
    .guest-form { max-width: 620px; margin: 16px auto 0; }
    .guest-aside { grid-column: 1; grid-row: 1; display: flex; min-height: 230px; align-items: end; padding: 22px; background-position: 62% 36%; }
    .guest-aside h2 { max-width: 300px; font-size: 28px; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
    .guest-aside .eyebrow { margin-bottom: 4px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
    .profile-head { grid-template-columns: auto 1fr; }
    .profile-head .actions { grid-column: 1 / -1; }
    .message { max-width: 92%; }
    .directory-toolbar { align-items: stretch; flex-direction: column; }
    .panel { padding: 17px; }
    .institution-bar nav { display: none; }
    .institution-bar-inner { justify-content: center; text-align: center; }
    .page:not(.page-home) { width: min(100% - 22px, 1120px); }
    .page:not(.page-home) > .page-head:first-child, .admin-main > .page-head:first-child { min-height: 120px; margin-top: -18px; padding: 24px 20px; }
    .page-head h1 { font-size: 31px; }
    .home-inner { width: min(100% - 24px, 1120px); }
    .home-notice .home-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 12px; }
    .home-hero { padding: 50px 0; }
    .home-hero h1 { font-size: 39px; }
    .home-search { align-items: stretch; flex-direction: column; border: 0; background: transparent; }
    .home-search input { border: 1px solid var(--line); background: #fff; }
    .home-stat-panel { padding: 28px 24px; }
    .home-calendar .home-inner { grid-template-columns: 1fr; gap: 16px; }
    .home-section-head { align-items: flex-start; flex-direction: column; }
    .home-news-card, .home-news-featured { grid-column: span 12; min-height: 0; padding: 24px; }
    .home-news-featured h3 { font-size: 25px; }
    .home-event-grid { grid-template-columns: 1fr; }
    .home-event-grid > a:nth-child(odd) { border-right: 0; }
    .home-memorial-grid { grid-template-columns: 1fr; gap: 28px; }
    .home-memorial-list a { grid-template-columns: 68px 1fr auto; }
    .home-memorial-list small { display: none; }
    .home-member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: 1fr; gap: 34px; }
    .footer { padding-top: 48px; }
    .page-directory .directory-table { min-width: 720px; }
    .page-messages > .grid-2 { grid-template-columns: 1fr; }
    .page-conversation > form.panel { grid-template-columns: 1fr; }
    .page-profile .profile-head { grid-template-columns: 1fr; text-align: center; }
    .page-profile .profile-head .avatar { margin: auto; }
    .page-profile .profile-head .actions { justify-content: center; }
    .page-profile .section .grid-2 article { padding-left: 17px; }
    .page-profile .section .grid-2 article .muted.small { position: static; width: auto; }
    .page-settings { width: min(100% - 22px, 920px) !important; }
    .section-tabs { top: 65px; margin-inline: -1px; }
    .section-tabs button { min-height: 46px; padding-inline: 14px; font-size: 12px; }
    .representative-global-panel, .representative-global-panel form { grid-template-columns: 1fr; }
    .identity-member-summary { align-items: flex-start; flex-direction: column; }
    .page-admin .admin-nav { grid-template-columns: 1fr; }
}
