
body {
    margin: 0;
    background: #f3f0ea;
    color: #1c1715;
    font-family: Arial, Helvetica, sans-serif;
}

.page-shell {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.site-announcement {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.site-announcement.red {
    background: #7d1111;
    color: #fff7f7;
}

.site-announcement.gold {
    background: #d8ba62;
    color: #2f2615;
}

.site-announcement.charcoal {
    background: #33363a;
    color: #f5f5f5;
}

.site-announcement a {
    color: inherit;
    text-decoration: underline;
}

.site-announcement .page-shell {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(243, 240, 234, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(125, 17, 17, 0.12);
}

.header-desktop {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 220px;
    grid-template-areas:
        'logo primary account'
        'logo admin account';
    column-gap: 5px;
    row-gap: 4px;
    align-items: stretch;
    padding: 14px 0 16px;
}

.header-logo {
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-logo img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.header-account {
    grid-area: account;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    justify-self: end;
    align-self: stretch;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.header-account-line {
    margin-bottom: 4px;
}

.header-chapter-line {
    margin-bottom: 6px;
}

.header-account-admin {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.header-account-admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #3a3a3a;
    border-radius: 999px;
    background: rgba(34, 34, 34, 0.96);
    color: #f2efe8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.header-account-admin-button:hover,
.header-account-admin-button:focus {
    background: rgba(28, 28, 28, 0.98);
    color: #ffffff;
    text-decoration: none;
}

.header-account-line a,
.header-chapter-line a {
    color: #7d1111;
    text-decoration: none;
}

.header-divider {
    color: #8a847d;
}

.header-chapter-line {
    margin-top: 4px;
    font-size: 14px;
    color: #5d5650;
}

.header-nav-row {
    min-width: 0;
    width: 100%;
}

.header-nav-row.primary-row,
.header-nav-row.admin-row {
    width: min(980px, 100%);
    justify-self: center;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.header-nav-row.primary-row {
    grid-area: primary;
    align-self: end;
}

.header-nav-row.admin-row {
    grid-area: admin;
    align-self: start;
}

.header-nav-scroll {
    display: block;
    overflow: visible;
    width: 100%;
    scrollbar-width: none;
}

.header-nav-scroll::-webkit-scrollbar {
    display: none;
}

.header-nav-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding-bottom: 2px;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 25px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #cfc6ba;
    background: rgba(255, 255, 255, 0.78);
    color: #1f1b18;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.nav-button:hover,
.nav-button:focus-visible {
    border-color: #7d1111;
    color: #7d1111;
}

.nav-button.active {
    background: #7d1111;
    border-color: #7d1111;
    color: #fff;
}

.admin-row .nav-button {
    background: rgba(250, 247, 242, 0.94);
}

.admin-row .nav-button.active,
.admin-row .nav-button[aria-current="page"] {
    background: #7d1111;
    border-color: #7d1111;
    color: #fff;
}

.home-icon {
    width: 15px;
    height: 15px;
    display: inline-block;
}

.header-mobile {
    display: none;
}

.mobile-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.mobile-logo img {
    width: 90px;
    height: auto;
    display: block;
}

.mobile-account {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
}

.mobile-account strong,
.mobile-account a {
    color: #7d1111;
    text-decoration: none;
}

.mobile-menu-button,
.mobile-admin-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #cfc6ba;
    background: rgba(255, 255, 255, 0.86);
    color: #1f1b18;
    font-size: 14px;
    font-weight: 700;
}

.mobile-panel {
    padding: 0 0 14px;
}

.mobile-nav-track {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-panel-group + .mobile-panel-group {
    margin-top: 12px;
}

.content-shell {
    padding: 24px 24px 28px;
}

.section-card {
    background: #fff;
    border: 1px solid #ded8cf;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    padding: 24px;
    margin-bottom: 18px;
}

.section-title {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.1;
    color: #7d1111;
}

.section-subtitle {
    margin: 0 0 10px;
    font-size: 22px;
    color: #2f2925;
}

.lede {
    font-size: 18px;
    line-height: 1.55;
    margin: 0 0 12px;
}

.bullet-list {
    margin: 0;
    padding-left: 18px;
}

.bullet-list li {
    margin: 8px 0;
}

.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.admin-grid-tight {
    align-items: start;
}

.callout {
    background: #f8f1e3;
    border-left: 6px solid #d8ba62;
    padding: 14px;
}

.flash-error,
.flash-success {
    padding: 14px 16px;
    margin-bottom: 16px;
    font-weight: 700;
    border-radius: 16px;
}

.flash-error {
    background: #ffe9e7;
    border: 1px solid #d46b63;
}

.flash-success {
    background: #edf8ec;
    border: 1px solid #7ab67a;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #d9d2c8;
    padding: 10px 12px;
    vertical-align: top;
}

th {
    background: #f6f2ec;
    text-align: left;
}

.muted {
    color: #6f6963;
}

.small {
    font-size: 13px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-row a,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid #7d1111;
    background: #7d1111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cta-row a.alt,
button.alt {
    background: #fff;
    color: #7d1111;
}

.login-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cfc6ba;
    border-radius: 16px;
    background: #fff;
    font: inherit;
}

.table-tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.table-tools input,
.table-tools select {
    padding: 9px 10px;
    border: 1px solid #cfc6ba;
    border-radius: 16px;
    min-width: 180px;
}

.modern-table th a {
    color: inherit;
    text-decoration: none;
}

.modern-table tr:hover td {
    background: #faf7ef;
}

.row-toggle {
    padding: 4px 8px;
    background: #333;
}

.detail-row td {
    background: #fffbe8;
}

.table-actions {
    margin-top: 12px;
}

.nrr-pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.nrr-pagination a {
    text-decoration: none;
    font-weight: 700;
    color: #7d1111;
}

.site-footer {
    padding: 0 0 28px;
}

.footer-shell {
    border-top: 1px solid rgba(125, 17, 17, 0.12);
    margin-top: 8px;
    padding-top: 22px;
    color: #5d5650;
}

.footer-statement {
    text-align: center;
    font-size: 16px;
    margin-bottom: 18px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 18px;
}

.footer-column {
    min-width: 0;
}

.footer-column + .footer-column {
    border-left: 1px solid #d9d2c8;
    padding-left: 24px;
}

.footer-heading {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #2d2622;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #7d1111;
    text-decoration: none;
    font-weight: 700;
}

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #cfc6ba;
    background: rgba(255, 255, 255, 0.86);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7d1111;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-stats {
    font-size: 15px;
    font-weight: 700;
    color: #2d2622;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #6f6963;
}


.manage-header-row {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.merch-manage-grid {
    align-items: start;
}

.merch-form-inline {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 14px;
}

.merch-check-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.merch-check-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.actions-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.actions-inline a {
    color: #7d1111;
    text-decoration: none;
    font-weight: 700;
}

.link-button {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7d1111;
    border-radius: 0;
    font-weight: 700;
}

.link-button.danger-link {
    color: #9c1d1d;
}

.actions-inline form {
    margin: 0;
}

.nrr-select-native { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; opacity:0 !important; pointer-events:none !important; }
.nrr-select { position:relative; min-width:220px; max-width:100%; }
.field .nrr-select, .table-tools .nrr-select, .chapter-switch .nrr-select, .photo-toolbar .nrr-select { width:100%; }
.nrr-select-trigger { width:100%; min-height:42px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 12px; border:1px solid #cfc6ba; border-radius:16px; background:#fff; color:#111; font:inherit; text-align:left; box-sizing:border-box; }
.nrr-select.is-open .nrr-select-trigger { border-color:#7d1111; box-shadow:0 0 0 1px #7d1111 inset; }
.nrr-select-summary { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; flex:1 1 auto; }
.nrr-select-placeholder { color:#666; }
.nrr-select-tag { display:inline-flex; align-items:center; max-width:100%; padding:3px 8px; border-radius:999px; background:#f2f2f2; color:#333; font-size:12px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nrr-select-caret { width:16px; height:16px; flex:0 0 auto; color:#666; }
.nrr-select-caret path { stroke:currentColor; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.nrr-select-panel { position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:50; border:1px solid #cfc6ba; border-radius:18px; background:#fff; box-shadow:0 10px 30px rgba(0,0,0,.18); padding:10px; }
.nrr-select-search { width:100%; box-sizing:border-box; padding:9px 10px; border:1px solid #ccc; border-radius:12px; margin-bottom:8px; font:inherit; }
.nrr-select-options { max-height:260px; overflow:auto; border:1px solid #eee; border-radius:14px; }
.nrr-select-option, .nrr-select-action { display:flex; align-items:center; gap:8px; padding:9px 10px; border-top:1px solid #eee; cursor:pointer; background:#fff; }
.nrr-select-option:first-child, .nrr-select-action:first-child { border-top:0; }
.nrr-select-option:hover, .nrr-select-action:hover { background:#faf7e8; }
.nrr-select-option input, .nrr-select-action input { margin:0; }
.nrr-select-option.is-hidden { display:none; }
.nrr-select-empty { padding:12px 10px; color:#666; }

@media (max-width: 760px) {
    .page-shell {
        padding: 0 16px;
    }

    .site-header {
        position: static;
    }

    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: block;
    }

    .content-shell {
        padding: 18px 16px 22px;
    }

    .two-col,
    .three-col,
    .login-grid,
    .footer-columns,
    .merch-form-inline {
        grid-template-columns: 1fr;
    }

    .footer-column + .footer-column {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid #d9d2c8;
        padding-top: 18px;
    }

    .section-card {
        padding: 20px;
        border-radius: 20px;
    }

    .section-title {
        font-size: 28px;
    }
}
