: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);
    --page-width: 1380px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Shared forms, event surveys and member support */
.page-form-builder, .page-survey, .page-survey-results, .page-support { width: min(100% - 32px, var(--page-width)); }
.form-meta { margin-bottom: 22px; }
.form-builder { display: grid; grid-template-columns: 210px minmax(360px, 1fr) 280px; gap: 18px; align-items: start; }
.form-builder > .panel { padding: 20px; }
.form-builder h2 { margin-top: 0; font-size: 20px; }
.form-builder-palette { display: grid; gap: 6px; position: sticky; top: 88px; }
.form-builder-palette button { min-height: 40px; padding: 9px 11px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; font-weight: 650; cursor: pointer; }
.form-builder-palette button:hover, .form-builder-palette button:focus-visible { border-color: var(--burgundy); color: var(--burgundy); }
.form-builder-canvas { min-height: 440px; }
.builder-field { width: 100%; min-height: 70px; margin-top: 10px; padding: 14px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; cursor: grab; }
.builder-field.selected { border-color: var(--burgundy); box-shadow: inset 3px 0 var(--burgundy); }
.builder-field span:first-child { display: grid; gap: 4px; }
.builder-field small { color: var(--muted); }
.form-builder-settings { position: sticky; top: 88px; }
.form-builder-settings details { border-top: 1px solid var(--line); padding-top: 12px; }
.builder-submit { display: flex; justify-content: flex-end; margin-top: 20px; }
.dynamic-form-field { margin: 0 0 22px; padding: 0; border: 0; }
.dynamic-form-field legend { margin-bottom: 8px; font-weight: 750; }
.dynamic-form-field legend span { color: var(--burgundy); }
.dynamic-form-field > input:not([type="checkbox"]):not([type="radio"]), .dynamic-form-field > select, .dynamic-form-field > textarea { width: 100%; }
.dynamic-form-content { margin: 28px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dynamic-form-content h2 { margin: 0; }
.survey-form-panel, .support-form-panel { max-width: 820px; margin-inline: auto; }
.survey-card { display: flex; min-height: 180px; flex-direction: column; justify-content: space-between; }
.survey-card footer { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.survey-summary { max-width: 820px; }
.result-bar { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 45px; gap: 12px; align-items: center; margin: 10px 0; }
.result-bar progress { width: 100%; accent-color: var(--burgundy); }
.support-request-card { display: flex; justify-content: space-between; gap: 20px; align-items: start; color: inherit; text-decoration: none; }
.support-request-card h2 { margin: 10px 0 4px; font-size: 22px; }
.support-thread { display: grid; gap: 12px; margin: 18px 0 24px; }
.support-thread article { max-width: 78%; padding: 14px 16px; border: 1px solid var(--line); background: #faf8f5; }
.support-thread article.admin-reply { margin-left: auto; background: #1b1718; color: #fff; border-color: #1b1718; }
.support-thread header { display: flex; justify-content: space-between; gap: 18px; font-size: 13px; }
.support-thread time { opacity: .72; }
.support-thread p { margin-bottom: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-task-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.admin-task-list a { min-height: 56px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); background: var(--canvas); border: 1px solid var(--line); font-weight: 700; }
.admin-task-list a:hover { color: var(--burgundy); border-color: var(--burgundy); text-decoration: none; }
.admin-task-list strong { min-width: 28px; text-align: right; color: var(--burgundy); }

.mail-builder-shell > form { display: grid; gap: 18px; }
.mail-builder-meta { padding: 20px; }
.mail-builder-workspace { display: grid; grid-template-columns: 190px minmax(380px, 1fr) minmax(300px, .8fr); gap: 18px; align-items: start; }
.mail-builder-workspace > .panel { padding: 18px; box-shadow: none; }
.mail-builder-workspace h2 { margin: 0; font-size: 20px; }
.mail-builder-palette { position: sticky; top: 86px; display: grid; gap: 7px; }
.mail-builder-palette > button { min-height: 40px; padding: 9px 11px; text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--line); font-weight: 700; cursor: grab; }
.mail-builder-palette > button:hover, .mail-builder-palette > button:focus-visible { color: var(--burgundy); border-color: var(--burgundy); }
.mail-html-help { display: grid; gap: 5px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.mail-html-help small { color: var(--muted); }
.mail-builder-canvas-panel > header, .mail-builder-preview-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mail-block-count { color: var(--muted); font-size: 12px; }
.mail-builder-canvas { min-height: 180px; display: grid; gap: 10px; }
.mail-builder-empty { margin: 0; padding: 34px 12px; text-align: center; color: var(--muted); border: 1px dashed var(--line); }
.mail-builder-block { border: 1px solid var(--line); background: #fff; }
.mail-builder-block.dragging { opacity: .5; border-color: var(--burgundy); }
.mail-builder-block > header { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 7px 9px; background: var(--canvas); border-bottom: 1px solid var(--line); }
.mail-builder-block > header strong { flex: 1; font-size: 13px; }
.mail-drag-handle, .mail-block-actions button { width: 34px; min-height: 34px; padding: 0; display: grid; place-items: center; color: var(--muted); background: #fff; border: 1px solid var(--line); cursor: pointer; }
.mail-drag-handle { cursor: grab; font-size: 20px; }
.mail-block-actions { display: flex; gap: 4px; }
.mail-block-actions button:hover { color: #fff; background: var(--burgundy); border-color: var(--burgundy); }
.mail-builder-block > .field { margin: 12px; }
.mail-builder-block textarea { min-height: 90px; }
.mail-rich-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mail-rich-toolbar button { min-height: 32px; padding: 5px 9px; color: var(--ink); background: #fff; border: 1px solid var(--line); cursor: pointer; }
.mail-rich-toolbar button:hover, .mail-rich-toolbar button:focus-visible { color: #fff; background: var(--burgundy); border-color: var(--burgundy); }
.mail-rich-editor { min-height: 110px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); outline: none; }
.mail-rich-editor:focus { border-color: var(--burgundy); box-shadow: 0 0 0 2px rgba(177, 28, 56, .12); }
.profile-slug-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.profile-slug-suggestions button { min-height: 30px; padding: 4px 8px; color: var(--burgundy); background: #fff5f6; border: 1px solid #f0ced4; font-size: 12px; cursor: pointer; }
.profile-slug-suggestions button:hover, .profile-slug-suggestions button:focus-visible { color: #fff; background: var(--burgundy); border-color: var(--burgundy); }
.mail-builder-preview-panel { position: sticky; top: 86px; }
.mail-builder-preview-panel iframe { width: 100%; height: 620px; display: block; background: #f8f4ee; border: 1px solid var(--line); }
.mail-builder-submit { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 1180px) {
    .mail-builder-workspace { grid-template-columns: 180px 1fr; }
    .mail-builder-preview-panel { grid-column: 1 / -1; position: static; }
    .mail-builder-preview-panel iframe { height: 520px; }
}

@media (max-width: 1050px) {
    .form-builder { grid-template-columns: 180px 1fr; }
    .form-builder-settings { grid-column: 1 / -1; position: static; }
}

@media (max-width: 700px) {
    .form-builder { grid-template-columns: 1fr; }
    .form-builder-palette { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-builder-palette h2 { grid-column: 1 / -1; }
    .form-builder-settings { grid-column: auto; }
    .result-bar { grid-template-columns: 1fr 40px; }
    .result-bar progress { grid-column: 1 / -1; grid-row: 2; }
    .support-thread article { max-width: 94%; }
    .notification-page-head, .notification-item { align-items: flex-start; flex-direction: column; }
    .notification-item-actions { width: 100%; flex-wrap: wrap; }
    .admin-task-list { grid-template-columns: 1fr; }
    .mail-builder-workspace { grid-template-columns: 1fr; }
    .mail-builder-palette { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mail-builder-palette h2, .mail-builder-palette .help, .mail-html-help { grid-column: 1 / -1; }
    .mail-builder-preview-panel { grid-column: auto; }
    .mail-block-actions button { width: 32px; }
}

.cookie-consent { position: fixed; inset: 0; z-index: 1000; display: grid; align-items: end; padding: 20px; background: rgba(24, 20, 20, .48); }
.cookie-consent[hidden] { display: none; }
.cookie-consent-box { width: min(100%, 720px); margin: 0 auto; padding: 24px; border: 1px solid var(--line); background: #fff; box-shadow: 0 16px 50px rgba(0,0,0,.2); }
.cookie-consent-box h2 { margin: 0 0 8px; }
.cookie-consent-options { margin: 18px 0; border-block: 1px solid var(--line); }
.cookie-consent-options label { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.cookie-consent-options label + label { border-top: 1px solid var(--line); }
.cookie-consent-options span { display: grid; gap: 4px; }
.cookie-consent-options small { color: var(--muted); }
.footer-bottom button[data-cookie-open] { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 700px) { .cookie-consent { padding: 10px; } .cookie-consent-box { padding: 18px; } .cookie-consent-box .actions { align-items: stretch; flex-direction: column; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; 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(var(--page-width), 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); }
.maintenance-banner { padding: 7px 16px; color: #fff; background: #a71930; text-align: center; font-size: 12px; font-weight: 750; }
.header-inner { width: min(var(--page-width), 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); }
.message-nav-link { display: inline-flex; align-items: center; gap: 5px; }
.message-nav-badge { display: inline-grid; min-width: 16px; height: 16px; place-items: center; padding: 0 4px; color: #fff; background: var(--burgundy); border-radius: 9px; font: 700 9px/1 Inter, sans-serif; }
.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; overflow: hidden; color: #fff; background: var(--burgundy); border-radius: 50%; font-size: 10px; }
.user-chip-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.settings-current-photo { width: 72px; height: 72px; display: block; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.application-profile-photo { width: 112px; height: 112px; display: block; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.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(var(--page-width), calc(100% - 32px)); margin: 28px auto 64px; flex: 1 0 auto; }
.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); }
.notification-page-head { align-items: center; }
.notification-feed { display: grid; border: 1px solid var(--line); background: var(--surface); }
.notification-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-left: 4px solid var(--line); border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item-unread { border-left-color: var(--burgundy); background: #fffaf9; }
.notification-item-title, .notification-item-actions { display: flex; align-items: center; gap: 10px; }
.notification-item h2 { margin: 0; font-size: 17px; }
.notification-item p { margin: 5px 0; }
.notification-item time { color: var(--muted); font-size: 13px; }
.notification-item-title span { padding: 3px 7px; border-radius: 999px; background: var(--burgundy); color: #fff; font-size: 11px; font-weight: 700; }
.admin-notification-summary { margin-top: 28px; }
.list-row, .details-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.details-row { padding: 10px 0; }
.invite-use-details summary { color: var(--burgundy); cursor: pointer; }
.invite-use-list { min-width: 320px; margin-top: 10px; color: var(--ink); }
.invite-use-items { display: grid; gap: 6px; margin: 0; padding-left: 18px; }
.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; }
.button:disabled { opacity: .48; cursor: not-allowed; }

.modal-dialog { width: min(calc(100% - 32px), 560px); max-height: calc(100vh - 32px); padding: 0; color: var(--ink); background: var(--surface-solid); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(24, 20, 20, .28); }
.modal-dialog::backdrop { background: rgba(24, 20, 20, .62); }
.modal-dialog-inner { padding: 24px; }
.modal-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.modal-dialog-header h2 { margin: 0; }
.modal-dialog-header .eyebrow { margin: 0 0 5px; }
.modal-dialog-close { width: 40px; min-height: 40px; flex: 0 0 40px; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); font-size: 24px; line-height: 1; cursor: pointer; }
.modal-dialog-close:hover { color: #fff; background: var(--burgundy); border-color: var(--burgundy); }
.modal-dialog textarea { min-height: 130px; }
.modal-dialog-actions { justify-content: flex-end; }
.merge-dialog { width: min(calc(100% - 32px), 1100px); }
.merge-dialog .modal-dialog-inner { max-height: calc(100vh - 32px); overflow-y: auto; }
.merge-dialog td { vertical-align: top; }
.merge-dialog .merge-value { max-width: 260px; overflow-wrap: anywhere; }
.photo-crop-dialog { width: min(calc(100% - 24px), 560px); max-height: calc(100dvh - 24px); }
.photo-crop-dialog canvas { width: min(100%, 46vh); width: min(100%, 46dvh); height: auto; display: block; margin: 12px auto; background: #eeeae5; border: 1px solid var(--line); cursor: grab; touch-action: none; }
.photo-crop-dialog canvas.is-dragging { cursor: grabbing; }
.photo-crop-dialog .modal-dialog-inner { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 18px; overflow-y: auto; }
.photo-crop-error { margin: 12px 0; padding: 10px 12px; color: #8d1733; background: #fff0f2; border: 1px solid #e4a8b4; }

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.field-has-error > input, .field.field-has-error > select, .field.field-has-error > textarea { border-color: #c53a50; background: #fff1f3; }
.field.field-has-error > .check-row, .field.check-row.field-has-error { padding: 9px 11px; border: 1px solid #efc3ca; border-radius: 6px; background: #fff1f3; }
.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-filter-warning { font-size: 12px; }
.directory-filter-warning strong { display: block; margin-bottom: 5px; }
.directory-filter-warning[hidden] { display: none; }
.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; }
.badge-status-pending { color: #165a92; background: #e6f1fb; }
.badge-status-email-verification-pending { color: #7a4a00; background: #fff3d6; }
.badge-status-approved { color: #166534; background: #e8f7ed; }
.badge-status-rejected { color: #9f1d35; background: #fbe9ed; }
.badge-status-merged { color: #5f6673; background: #edf0f4; }
.application-summary-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; margin: 12px 0; }
.application-summary-details p { margin: 0; }
.application-summary-actions { margin-top: 12px; }
.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; }
.mail-template-test-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 250px; }
.mail-template-test-form input { min-width: 180px; flex: 1 1 180px; }
.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.webp'); 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; }
.guest-aside-copy { max-width: 510px; margin: 18px 0 0; color: #e4dbd7; font-size: 16px; line-height: 1.6; }
.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 { flex: 0 0 auto; padding: 62px 16px 20px; color: #aaa09b; background: #191516; font-size: 12px; }
.footer-inner { width: min(var(--page-width), 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(var(--page-width), 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(var(--page-width), calc(100% - 32px)); margin: 18px auto; }
.home-inner { width: min(var(--page-width), 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; align-items: center; gap: 24px; min-width: 0; overflow-x: auto; padding: 6px 0 14px; scrollbar-gutter: stable; }
.home-calendar-list a, .home-calendar-list span { display: flex; align-items: baseline; flex: 0 0 auto; min-height: 20px; color: var(--ink); font-family: Georgia, serif; font-size: 13px; white-space: nowrap; }
.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(var(--page-width), 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 { width: 100%; min-width: 760px; table-layout: fixed; border-collapse: separate; border-spacing: 0 10px; }
.page-directory .directory-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.page-directory .directory-table th { padding: 10px 14px; color: var(--muted); background: #f8f4ee; font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; white-space: normal; }
.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 th:nth-child(1), .page-directory .directory-table td:nth-child(1) { width: 32%; white-space: normal; }
.page-directory .directory-table th:nth-child(2), .page-directory .directory-table td:nth-child(2) { width: 13%; }
.page-directory .directory-table th:nth-child(3), .page-directory .directory-table td:nth-child(3) { width: 15%; }
.page-directory .directory-table th:nth-child(4), .page-directory .directory-table td:nth-child(4) { width: 20%; }
.page-directory .directory-table th:nth-child(5), .page-directory .directory-table td:nth-child(5) { width: 20%; }
.page-directory .directory-table td:first-child { padding-left: 22px; overflow: visible; text-overflow: clip; border-left: 1px solid var(--line); font-family: Georgia, serif; font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
.page-directory .directory-table td:first-child a { display: block; white-space: normal; overflow-wrap: anywhere; }
.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); }
.message-conversation-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--line); }
.message-conversation-row:last-child { border-bottom: 0; }
.message-conversation-row > .panel { min-height: 88px; padding: 20px; border: 0; box-shadow: none; }
.message-conversation-row > form { padding-right: 14px; }
.page-messages > .grid-2 > section:last-child { box-shadow: none; }
.message-conversation-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; text-decoration: none; }
.message-conversation-card:hover { background: #fffaf7; }
.message-conversation-card-unread { background: #fff8f8; box-shadow: inset 3px 0 0 var(--burgundy) !important; }
.message-conversation-card-unread .message-conversation-content strong { font-weight: 800; }
.message-conversation-card .avatar { width: 42px; height: 42px; font-size: 12px; }
.message-conversation-content { min-width: 0; display: grid; gap: 4px; }
.message-conversation-content strong, .message-conversation-subject, .message-conversation-content .muted { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-conversation-subject { color: var(--ink); font-size: 13px; }
.message-conversation-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.message-recipient-picker { position: relative; }
.message-recipient-results { max-height: 260px; margin-top: 6px; overflow-y: auto; border: 1px solid var(--line); background: #fff; }
.message-recipient-option { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; justify-content: start; justify-items: stretch; gap: 10px; padding: 11px 12px; color: var(--ink); background: #fff; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.message-recipient-option:last-child { border-bottom: 0; }
.message-recipient-option:hover, .message-recipient-option:focus-visible { background: #fff5f4; outline: 0; }
.message-recipient-avatar { width: 38px; height: 38px; font-size: 11px; }
.message-recipient-option-content { min-width: 0; display: grid; gap: 3px; align-self: center; text-align: left; }
.message-recipient-option strong { min-width: 0; font-size: 14px; text-align: left; overflow-wrap: anywhere; }
.message-recipient-meta { min-width: 0; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 2px 8px; color: var(--muted); font-size: 12px; text-align: left; }
.message-recipient-specialty { min-width: 0; overflow-wrap: anywhere; }
.message-recipient-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 13px; }
.message-recipient-selected { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: #fffaf7; }
.message-recipient-selected span { min-width: 0; display: grid; gap: 4px; }
.message-recipient-selected small { color: var(--muted); }
.message-recipient-selected a { flex: 0 0 auto; color: var(--burgundy); font-size: 13px; font-weight: 700; }
.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; }
.message-user-delete { margin-top: 8px; }
.message-user-delete button { padding: 0; color: inherit; background: transparent; border: 0; font-size: 12px; text-decoration: underline; cursor: pointer; opacity: .72; }
.message-user-delete button:hover, .message-user-delete button:focus-visible { opacity: 1; }
.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; }
.profile-photo-wrap { position: relative; width: 96px; height: 96px; }
.profile-photo-warning { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; display: grid; place-items: center; color: #7c1829; background: #fff0f2; border: 1px solid #dc8291; border-radius: 50%; font-family: Arial, sans-serif; font-size: 14px; font-weight: 800; cursor: help; }
.page-profile .profile-head h1 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 34px; font-weight: 600; }
.profile-edit-link { display: inline-grid; width: 28px; height: 28px; margin-left: 7px; place-items: center; vertical-align: middle; color: var(--burgundy); border: 1px solid var(--line); border-radius: 50%; font-family: Arial, sans-serif; font-size: 17px; line-height: 1; }
.profile-edit-link:hover { color: #fff; background: var(--burgundy); border-color: var(--burgundy); text-decoration: none; }
.page-settings .page-head .button-secondary { color: var(--ink); background: #fff; border-color: #b9aea5; }
.page-settings .page-head .button-secondary:hover { color: #fff; background: var(--burgundy); border-color: var(--burgundy); }
.role-audit-toggle { padding: 0; color: var(--ink); background: transparent; border: 0; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.role-audit-toggle::after { content: '⌄'; margin-left: 6px; color: var(--burgundy); }
.role-audit-toggle[aria-expanded="true"]::after { content: '⌃'; }
.role-audit-members { display: grid; gap: 6px; margin-top: 10px; padding: 10px; background: #faf6f1; border-left: 2px solid var(--burgundy); }
.role-audit-members a { display: block; color: var(--ink); font-size: 13px; }
.role-audit-members small { display: block; color: var(--muted); }
.institution-table { width: 100%; min-width: 940px; table-layout: fixed; }
.institution-table th, .institution-table td { vertical-align: top; }
.institution-table th:nth-child(1), .institution-table td:nth-child(1) { width: 44px; white-space: nowrap; }
.institution-table th:nth-child(3), .institution-table td:nth-child(3) { width: 68px; white-space: nowrap; }
.institution-table th:nth-child(4), .institution-table td:nth-child(4) { width: 104px; }
.institution-table th:nth-child(5), .institution-table td:nth-child(5) { width: 48px; white-space: nowrap; }
.institution-table th:nth-child(6), .institution-table td:nth-child(6) { width: 78px; white-space: nowrap; }
.institution-table th:nth-child(7), .institution-table td:nth-child(7) { width: 188px; }
.institution-table td:nth-child(7) .actions { align-items: flex-start; }
.institution-table td:nth-child(7) form.actions { flex-wrap: nowrap; }
.institution-table td:nth-child(7) input { min-width: 0; }
.audit-log-table { width: 100%; min-width: 1120px; table-layout: fixed; }
.audit-log-table th:nth-child(1), .audit-log-table td:nth-child(1) { width: 150px; white-space: nowrap; }
.audit-log-table th:nth-child(2), .audit-log-table td:nth-child(2) { width: 150px; }
.audit-log-table th:nth-child(3), .audit-log-table td:nth-child(3) { width: 176px; }
.audit-log-table th:nth-child(4), .audit-log-table td:nth-child(4) { width: 146px; }
.audit-log-table th:nth-child(5), .audit-log-table td:nth-child(5) { width: 116px; white-space: nowrap; }
.audit-log-table td:nth-child(6) { overflow-wrap: anywhere; }
.admin-users-table { width: 100%; min-width: 1160px; table-layout: fixed; }
.admin-users-table th:nth-child(1), .admin-users-table td:nth-child(1) { width: 48px; white-space: nowrap; }
.admin-users-table th:nth-child(2), .admin-users-table td:nth-child(2) { width: 164px; }
.admin-users-table th:nth-child(3), .admin-users-table td:nth-child(3) { width: 206px; overflow-wrap: anywhere; }
.admin-users-table th:nth-child(4), .admin-users-table td:nth-child(4) { width: 112px; white-space: nowrap; }
.admin-users-table th:nth-child(5), .admin-users-table td:nth-child(5) { width: 128px; white-space: nowrap; }
.admin-users-table th:nth-child(6), .admin-users-table td:nth-child(6) { width: 126px; }
.admin-users-table th:nth-child(7), .admin-users-table td:nth-child(7) { width: 104px; }
.admin-users-table th:nth-child(8), .admin-users-table td:nth-child(8) { width: 206px; }
.admin-users-table td:nth-child(8) .actions { align-items: flex-start; }
.role-audit-member-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.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, .page.page-admin.page-settings { width: min(var(--page-width), 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; }
.settings-tab-panel[hidden] { display: none; }
.settings-tab-panel { display: grid; gap: 18px; }
.page-settings .settings-tab-panel > .panel { padding: 28px 32px; box-shadow: none; }
.page-settings .settings-tab-panel > .panel > h2 { font-size: 20px; }
.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; }
.representative-global-section { margin-bottom: 18px; }
.representative-global-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); gap: 28px; align-items: start; }
.representative-global-list { border-top: 1px solid var(--line); }
.representative-global-list .item-row { padding: 12px 0; }
.representative-year-picker { margin-bottom: 18px; padding: 18px; }
.representative-year-picker form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; align-items: end; }
.representative-year-picker label { margin-bottom: 6px; }
.representative-year-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.representative-year-summary .panel { min-height: 92px; display: grid; align-content: center; gap: 5px; padding: 18px; box-shadow: none; }
.representative-year-summary span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.representative-year-summary strong { overflow-wrap: anywhere; font-family: Georgia, serif; font-size: 22px; }
.representative-member-search { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 8px; align-items: end; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.representative-member-search .field { margin: 0; }
.representative-team-list { display: grid; }
.representative-team-list article { min-height: 72px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.representative-team-list article > div { display: grid; gap: 3px; }
.representative-team-list small { color: var(--muted); }
.admin-identity-panel { max-width: 760px; }
.admin-user-tabs .section-tabs { top: 64px; }
.admin-user-tabs .settings-savebar { display: flex; justify-content: flex-end; padding: 16px 0 0; }
.admin-user-tabs hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.admin-readonly-grid input[readonly] { color: var(--muted); background: var(--surface); }
.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(var(--page-width), 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; }

/* Class hub, public boards and moderation */
.page-my-class, .page-board, .page-legal { width: min(var(--page-width), calc(100% - 40px)); }
.page-my-class > .page-head:first-child, .page-board > .page-head:first-child, .page-legal > .page-head:first-child {
    min-height: 150px; margin: -30px 0 30px; padding: 30px 34px; color: #fff; background: #1b1718;
}
.page-my-class > .page-head .muted, .page-board > .page-head .muted { color: #c8c0bb; }
.page-my-class > .page-head .button, .page-board > .page-head .button { color: #fff; border-color: #655b58; background: transparent; }
.class-year-picker { min-width: 250px; }
.class-year-picker label { display: block; margin-bottom: 6px; color: #d3cbc7; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.class-year-controls { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 8px; }
.class-year-controls select { color: var(--ink); background: #fff; }
.class-tabs { display: flex; gap: 0; margin-bottom: 26px; overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.class-tabs a { flex: 1; min-width: 130px; padding: 13px 18px; color: var(--ink); text-align: center; border-right: 1px solid var(--line); font-weight: 700; }
.class-tabs a:last-child { border-right: 0; }
.class-tabs a:hover, .class-tabs a.active { color: #fff; text-decoration: none; background: var(--burgundy); }
.class-feed-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 28px; }
.class-feed-list, .class-compact-list { display: grid; gap: 12px; }
.class-feed-list .panel, .class-compact-list .panel { box-shadow: none; }
.class-feed-list h3, .class-compact-list h3 { margin-block: 10px 5px; font-family: Georgia, serif; }
.class-compact-list a { display: grid; gap: 5px; color: var(--ink); }
.class-compact-list a:hover { border-color: var(--burgundy); text-decoration: none; }
.class-members-summary { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 36px; }
.class-member-count { display: block; color: var(--burgundy); font: 52px/1 Georgia, serif; }
.representative-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.representative-list a { display: flex; gap: 12px; align-items: center; padding: 12px; color: var(--ink); border: 1px solid var(--line); }
.representative-list a:hover { border-color: var(--burgundy); text-decoration: none; }
.representative-list small { display: block; color: var(--muted); }
.board-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 28px; align-items: start; }
.board-compose { position: sticky; top: 92px; box-shadow: none; }
.board-compose textarea { min-height: 150px; }
.board-stream { display: grid; gap: 12px; }
.board-message { padding: 20px 22px; box-shadow: none; }
.board-message > header { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.board-message > header small { display: block; color: var(--muted); }
.board-message > .prose { margin: 16px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.board-message > footer { min-height: 32px; justify-content: flex-end; border-top: 1px solid #eee8e1; padding-top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.board-thread-list { display: grid; gap: 14px; }
.board-thread-root { padding: 20px 22px; box-shadow: none; }
.board-thread-node > header { display: flex; gap: 10px; align-items: center; }
.board-thread-node > header small { display: block; color: var(--muted); }
.board-author { color: var(--burgundy); font-weight: 700; }
.board-author:hover { text-decoration: underline; }
.board-thread-node > .prose { margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.board-thread-replies { display: grid; gap: 10px; margin-top: 12px; padding-left: 22px; border-left: 2px solid #eadfe1; }
.board-thread-replies .board-thread-node { padding: 12px 0 0; border-top: 1px solid #eee8e1; }
.board-thread-more { margin-top: 16px; }
.board-message-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; justify-content: flex-end; }
.board-message-actions summary { color: var(--burgundy); cursor: pointer; font-size: 12px; font-weight: 700; }
.board-message-actions details[open] { width: min(100%, 430px); }
.board-message-actions details form { display: grid; gap: 7px; margin-top: 7px; }
.board-message-actions textarea { min-height: 82px; }
.board-chat-shell { padding: 0; overflow: hidden; box-shadow: none; }
.board-chat { min-height: 420px; max-height: 68vh; overflow-y: auto; padding: 18px 22px; background: #f7f7f6; }
.board-chat-line { display: grid; grid-template-columns: 42px 34px minmax(0, 1fr) auto; gap: 9px; align-items: start; padding: 7px 0; border-bottom: 1px solid #e7e4e0; }
.board-chat-line > time { padding-top: 7px; color: var(--muted); font-size: 12px; text-align: right; }
.board-chat-line .avatar { width: 32px; height: 32px; font-size: 11px; }
.board-chat-content { min-width: 0; padding-top: 4px; }
.board-chat-content strong, .board-chat-content .board-author { margin-right: 8px; }
.board-chat-content p { display: inline; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.board-chat-content small { display: block; color: var(--muted); }
.board-chat-line .board-message-actions { opacity: .35; }
.board-chat-line:hover .board-message-actions, .board-chat-line:focus-within .board-message-actions { opacity: 1; }
.board-chat-compose { padding: 12px; background: #fff; border-top: 1px solid var(--line); }
.board-chat-compose form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.board-chat-compose textarea { min-height: 48px; max-height: 140px; }
.report-disclosure { width: min(100%, 400px); }
.report-disclosure summary { color: var(--burgundy); cursor: pointer; text-align: right; }
.report-disclosure form { display: grid; gap: 8px; margin-top: 9px; }
.report-disclosure textarea { min-height: 92px; }
.report-list { display: grid; gap: 12px; }
.report-card { box-shadow: none; }
.report-card > div, .report-card footer { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.report-card h2 { margin-block: 14px 5px; }
.report-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; align-items: start; }
.report-detail-grid .panel { box-shadow: none; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-list div { padding-bottom: 10px; border-bottom: 1px solid #eee8e1; }
.detail-list dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.detail-list dd { margin: 3px 0 0; }
.report-snapshot { padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; background: #faf7f2; border-left: 3px solid var(--burgundy); }
.moderation-actions form { display: grid; gap: 8px; margin-bottom: 8px; }
.moderation-actions .button { width: 100%; }
.reported-user-link { display: grid; margin-top: 14px; color: var(--ink); box-shadow: none; }
.privacy-window { margin: 14px 0; padding: 13px 15px; color: #71460e; background: #fff6df; border-left: 3px solid #d49a2a; }
.privacy-window-expired { color: var(--muted); background: #f4f1ed; border-color: #9d948d; }
.admin-message-context { display: grid; gap: 8px; }
.admin-message-context article { padding: 14px; background: #faf7f2; border: 1px solid var(--line); }
.admin-message-context p { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-message-context small { color: var(--muted); }
.nav-count { display: inline-grid; min-width: 22px; height: 22px; margin-left: auto; place-items: center; padding-inline: 6px; color: #fff; background: var(--burgundy); border-radius: 11px; font-size: 11px; }
.page-legal .legal-content { max-width: 860px; margin-inline: auto; padding: clamp(24px, 5vw, 54px); box-shadow: none; }
.page-legal .legal-content .prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }

@media (max-width: 980px) {
    .nav-actions { margin-left: auto; gap: 7px; }
    .nav-actions .user-chip { width: 35px; min-height: 35px; justify-content: center; padding: 2px; background: #fff; }
    .nav-actions .user-chip > span:last-child, .nav-actions .header-logout { display: none; }
    .nav-toggle { display: inline-flex; margin-left: 0; }
    .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, .page-directory .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; }
    .board-layout, .class-feed-grid, .report-detail-grid { grid-template-columns: 1fr; }
    .board-compose { position: static; grid-row: 1; }
    .report-detail-grid > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .reported-user-link { margin-top: 0; }
}

@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; }
    .header-inner { gap: 8px; }
    .brand { gap: 8px; }
    .brand-copy small { 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; text-align: center; }
    .footer-brand p { margin-inline: auto; }
    .footer nav { align-items: center; }
    .footer nav form { display: flex; justify-content: center; }
    .footer-bottom { text-align: center; }
    .page-directory .directory-table { min-width: 720px; }
    .page-messages > .grid-2 { grid-template-columns: 1fr; }
    .message-conversation-card { grid-template-columns: 42px minmax(0, 1fr); }
    .message-conversation-time { grid-column: 2; }
    .page-conversation > form.panel { grid-template-columns: 1fr; }
    .page-profile .profile-head { grid-template-columns: 1fr; text-align: center; }
    .page-profile .profile-photo-wrap { margin-inline: 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, .page.page-admin.page-settings { width: min(100% - 22px, 1380px) !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, .representative-global-grid { grid-template-columns: 1fr; }
    .representative-year-picker form, .representative-year-summary, .representative-member-search { grid-template-columns: 1fr; }
    .representative-team-list article { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .representative-team-list article > form { grid-column: 2 / -1; }
    .identity-member-summary { align-items: flex-start; flex-direction: column; }
    .page-admin .admin-nav { grid-template-columns: 1fr; }
    .page-my-class, .page-board, .page-legal { width: min(100% - 22px, 1120px); }
    .page-my-class > .page-head:first-child, .page-board > .page-head:first-child, .page-legal > .page-head:first-child { margin-top: -18px; padding: 24px 20px; }
    .class-year-picker { width: 100%; min-width: 0; }
    .class-year-controls { grid-template-columns: 1fr; }
    .class-tabs a { min-width: 125px; padding-inline: 12px; font-size: 13px; }
    .class-members-summary, .representative-list, .detail-list, .report-detail-grid > aside { grid-template-columns: 1fr; }
    .board-message { padding: 16px; }
    .board-message > header { grid-template-columns: auto 1fr; }
    .board-message > header .badge { grid-column: 2; justify-self: start; }
    .board-thread-root { padding: 15px; }
    .board-thread-replies { padding-left: 12px; }
    .board-chat { max-height: none; padding: 12px; }
    .board-chat-line { grid-template-columns: 32px minmax(0, 1fr); }
    .board-chat-line > time { grid-column: 1; grid-row: 1; padding-top: 5px; }
    .board-chat-line > .avatar { grid-column: 1; grid-row: 2; }
    .board-chat-content { grid-column: 2; grid-row: 1 / span 2; }
    .board-chat-line .board-message-actions { grid-column: 2; opacity: 1; justify-content: flex-start; }
    .board-chat-compose form { grid-template-columns: 1fr; }
    .report-card footer { align-items: stretch; flex-direction: column; }
}
