:root {
    --bg: #f5efe2;
    --surface: #fffaf0;
    --text: #1f1a17;
    --burgundy: #ffffff;
    --gold: #b08a3c;
    --line: #d9c9a7;
    --admin-primary: #1f2937;
    --admin-primary-hover: #111827;
    --admin-surface: #ffffff;
    --admin-text: #111827;
    --panel-calendar-bg: #f8fbfc;
    --panel-today-announcements-bg: #f8fbfc;
    --panel-parish-announcements-bg: #f8fbfc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at top, #fbf7ef, #f2e8d8 55%, #ebdfce);
    font-family: 'Source Sans 3', sans-serif;
    line-height: 1.6;
}

.public-body {
    background: #ffffff !important;
    background-image: none !important;
    color: #1b1c1c;
    font-family: 'EB Garamond', serif;
}

html.theme-dark {
    color-scheme: dark;
    --bg: #161311;
    --surface: #1c1815;
    --text: #f2ece3;
    --line: #4f453b;
    --panel-calendar-bg: #211c18;
    --panel-today-announcements-bg: #211c18;
    --panel-parish-announcements-bg: #211c18;
}

html.theme-dark .public-body {
    background: #161311 !important;
    background-image: radial-gradient(circle at top, #261e19 0%, #161311 54%, #110f0d 100%) !important;
    color: #f2ece3;
}

.public-body main,
.public-body main section,
.public-body main aside,
.public-body .bg-surface,
.public-body .bg-surface-container,
.public-body .bg-surface-container-low,
.public-body .bg-surface-container-high,
.public-body .bg-surface-container-highest,
.public-body .bg-surface-container-lowest,
.public-body .bg-surface-variant,
.public-body .bg-background {
    background-color: #ffffff !important;
    background-image: none !important;
}

html.theme-dark .public-body main,
html.theme-dark .public-body main section,
html.theme-dark .public-body main aside,
html.theme-dark .public-body .bg-surface,
html.theme-dark .public-body .bg-surface-container,
html.theme-dark .public-body .bg-surface-container-low,
html.theme-dark .public-body .bg-surface-container-high,
html.theme-dark .public-body .bg-surface-container-highest,
html.theme-dark .public-body .bg-surface-container-lowest,
html.theme-dark .public-body .bg-surface-variant,
html.theme-dark .public-body .bg-background {
    background-color: #161311 !important;
    background-image: none !important;
}

html.theme-dark .public-body .bg-surface-container-lowest {
    background-color: #1c1815 !important;
}

/* Liturgical table rows in dark mode: alternating slightly lighter */
html.theme-dark .public-body .liturgy-table .liturgy-row:nth-child(even) {
    background-color: #241f1b !important;
}
html.theme-dark .public-body .liturgy-table .liturgy-row:nth-child(odd) {
    background-color: #1c1815 !important;
}

html.theme-dark .public-body .bg-surface-container-low,
html.theme-dark .public-body .bg-surface-container,
html.theme-dark .public-body .bg-surface-container-high,
html.theme-dark .public-body .bg-surface-container-highest,
html.theme-dark .public-body .bg-surface-variant {
    background-color: #211c18 !important;
}

.public-body .panel-calendar-bg {
    background-color: var(--panel-calendar-bg) !important;
}

.public-body .panel-today-announcements-bg {
    background-color: var(--panel-today-announcements-bg) !important;
}

.public-body .panel-parish-announcements-bg {
    background-color: var(--panel-parish-announcements-bg) !important;
}

.public-body .intro-panel-bg {
    background: linear-gradient(180deg, #fbf8f2 0%, #f7f2e8 100%) !important;
}

html.theme-dark .public-body .panel-calendar-bg,
html.theme-dark .public-body .panel-today-announcements-bg,
html.theme-dark .public-body .panel-parish-announcements-bg,
html.theme-dark .public-body .intro-panel-bg {
    background: linear-gradient(180deg, #221d19 0%, #171311 100%) !important;
}

html.theme-dark .public-body .text-primary,
html.theme-dark .public-body .text-on-surface,
html.theme-dark .public-body .text-on-primary,
html.theme-dark .public-body .text-on-secondary,
html.theme-dark .public-body .text-on-tertiary {
    color: #f3ede4 !important;
}

html.theme-dark .public-body .text-secondary {
    color: #e7c07b !important;
}

html.theme-dark .public-body .text-on-surface-variant,
html.theme-dark .public-body .text-on-primary-container,
html.theme-dark .public-body .text-on-tertiary-container,
html.theme-dark .public-body .text-on-primary-fixed-variant,
html.theme-dark .public-body .text-on-secondary-container {
    color: #c6b8a8 !important;
}

html.theme-dark .public-body .border-primary,
html.theme-dark .public-body .border-outline,
html.theme-dark .public-body .border-outline-variant {
    border-color: #4f453b !important;
}

html.theme-dark .public-body .bg-secondary-container {
    background-color: #5d4201 !important;
}

html.theme-dark .public-body .text-on-secondary-container {
    color: #f8e7c0 !important;
}

/* Today highlight in mass schedule sidebar */
.public-body .schedule-today {
    background-color: #f5f0e8 !important;
    margin-top: 0 !important;
}
html.theme-dark .public-body .schedule-today {
    background-color: #2a231d !important;
}

html.theme-dark .public-body a {
    color: inherit;
}

html.theme-dark .public-body .shadow-2xl {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5) !important;
}

/* Popup modals (readings, liturgy texts) — dark mode */
html.theme-dark .public-body #reading-modal-panel,
html.theme-dark .public-body #liturgy-text-modal-panel {
    background-color: #211c18 !important;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        transition: background-color 0.5s ease;
    }

    html *,
    html *::before,
    html *::after {
        transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
    }
}

@media (min-width: 768px) {
    .public-body > main.site-shell-padding {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

.theme-toggle-button {
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    border: 1px solid #d6c6ae;
    background: linear-gradient(180deg, rgba(255, 250, 240, 0.98) 0%, rgba(245, 236, 220, 0.98) 100%);
    color: #6b4b12;
    box-shadow: 0 14px 32px rgba(65, 45, 10, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.theme-toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(65, 45, 10, 0.18);
}

.theme-toggle-button:focus-visible {
    outline: 2px solid #b08a3c;
    outline-offset: 3px;
}

.theme-toggle-button .material-symbols-outlined {
    transition: transform 0.24s ease;
}

.theme-toggle-button[aria-pressed='true'] {
    border-color: #6b5a49;
    background: linear-gradient(180deg, rgba(34, 28, 24, 0.98) 0%, rgba(20, 17, 14, 0.98) 100%);
    color: #f3dfb0;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.theme-toggle-button[aria-pressed='true'] .material-symbols-outlined {
    transform: rotate(-18deg);
}

.theme-toggle-button--mobile {
    margin-inline: auto;
}

.theme-toggle-button--desktop-corner {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: none;
    z-index: 5;
}

@media (min-width: 1451px) {
    .theme-toggle-button--desktop-corner {
        display: inline-flex;
    }
}

@media (max-width: 767px) {
    .public-body {
        padding-inline: 10px;
        background: #f4efe7 !important;
    }
}

h1,
h2,
h3,
.brand {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.03em;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.urgent-banner {
    background: var(--burgundy);
    color: #fff;
    text-align: center;
    padding: 0.5rem 0.8rem;
    font-weight: 600;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 250, 240, 0.92);
    backdrop-filter: blur(4px);
}

.site-header .container {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand {
    color: var(--burgundy);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.hero {
    min-height: 48vh;
    display: grid;
    align-items: end;
    background: linear-gradient(120deg, rgba(22, 9, 3, 0.62), rgba(109, 16, 33, 0.42)),
                url('../img/hero-liturgia.svg') center/cover;
}

.hero-inner {
    color: #fff;
    padding-bottom: 2.4rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.3rem);
}

.section {
    padding: 2rem 0;
}

.cards,
.stats-grid,
.contact-grid {
    display: grid;
    gap: 1rem;
}

.card,
.stat-card,
.contact-card,
.post-row {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
}

.shortcuts {
    grid-template-columns: 1fr;
    display: grid;
    gap: 0.8rem;
}

.shortcut,
.cta-button {
    background: var(--burgundy);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
}

.sacrament-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.sacrament-card {
    border: 1px solid #d9c9a7;
    background: #fffaf3;
}

.sacrament-card-image-link {
    display: block;
    border-bottom: 1px solid #d9c9a7;
}

.sacrament-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.sacrament-card-body {
    padding: 1rem;
}

.sacrament-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1f2937;
    background: #1f2937;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    min-height: 42px;
}

.sacrament-card-button:hover {
    background: #111827;
    border-color: #111827;
}

html.theme-dark .public-body .sacrament-card {
    border-color: #4f453b;
    background: #1c1815;
}

html.theme-dark .public-body .sacrament-card-image-link {
    border-color: #4f453b;
}

html.theme-dark .public-body .sacrament-card-button {
    border-color: #e7c07b;
    background: #5d4201;
    color: #f8e7c0;
}

html.theme-dark .public-body .sacrament-card-button:hover {
    background: #7a5609;
    border-color: #f0cb8c;
}

.admin-header,
.admin-main,
.admin-auth-card {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--admin-text);
}

.admin-header h1,
.admin-main h2,
.admin-main h3,
.admin-auth-card h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
}

.admin-header {
    background: linear-gradient(180deg, #f9f7f4 0%, #f4efe7 100%);
}

.admin-header .cta-button,
.admin-main .cta-button,
.admin-auth-card button,
.admin-main button:not(.link-button),
.admin-header button {
    background: var(--admin-primary);
    color: #ffffff;
    border: 1px solid var(--admin-primary);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font: inherit;
    cursor: pointer;
}

.admin-header .cta-button:hover,
.admin-main .cta-button:hover,
.admin-auth-card button:hover,
.admin-main button:not(.link-button):hover,
.admin-header button:hover {
    background: var(--admin-primary-hover);
    border-color: var(--admin-primary-hover);
}

.admin-main input,
.admin-main textarea,
.admin-main select,
.admin-auth-card input,
.admin-auth-card textarea,
.admin-auth-card select {
    background: var(--admin-surface);
    color: var(--admin-text);
    border: 1px solid #9ca3af;
}

.admin-main input:focus,
.admin-main textarea:focus,
.admin-main select:focus,
.admin-auth-card input:focus,
.admin-auth-card textarea:focus,
.admin-auth-card select:focus {
    outline: 2px solid #cbd5e1;
    border-color: #4b5563;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1rem;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: var(--surface);
}

.schedule-table th,
.schedule-table td {
    border: 1px solid var(--line);
    padding: 0.7rem;
    text-align: left;
}

html.theme-dark .public-body .schedule-table {
    background: #1a1613;
}

html.theme-dark .public-body .schedule-table th {
    background: #221d19;
    color: #f3ede4;
}

html.theme-dark .public-body .schedule-table td {
    background: #1a1613;
    color: #f2ece3;
}

html.theme-dark .public-body .zebra-table tbody tr:nth-child(even) {
    background-color: #201b17;
}

.zebra-table tbody tr:nth-child(even) {
    background-color: #f4f4f4;
}

.liturgy-detail-table th,
.liturgy-detail-table td {
    font-size: 0.96rem;
    line-height: 1.45;
    padding: 0.65rem 0.7rem;
}

@media (max-width: 767px) {
    .theme-toggle-button {
        width: 48px;
        height: 48px;
    }

    .liturgy-detail-table th,
    .liturgy-detail-table td {
        font-size: 0.86rem;
        line-height: 1.35;
        padding: 0.45rem 0.5rem;
    }
}

.wysiwyg p {
    margin: 0.8rem 0;
}

.wysiwyg ul,
.wysiwyg ol {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.wysiwyg ul,
.wysiwyg ol:has(li[data-list="bullet"]) {
    list-style: disc;
}

.wysiwyg ol:has(li[data-list="ordered"]) {
    list-style: decimal;
}

.wysiwyg li {
    margin: 0.3rem 0;
}

.wysiwyg li.ql-indent-1 {
    margin-left: 2rem;
}

.wysiwyg .ql-ui {
    display: none;
}

.wysiwyg .ql-align-center,
.announcement-rich-text .ql-align-center {
    text-align: center;
}

.wysiwyg .ql-align-right,
.announcement-rich-text .ql-align-right {
    text-align: right;
}

.wysiwyg .ql-align-justify,
.announcement-rich-text .ql-align-justify {
    text-align: justify;
}

.wysiwyg .ql-align-left,
.announcement-rich-text .ql-align-left {
    text-align: left;
}

.announcement-rich-text p {
    margin: 0.35rem 0;
}

.announcement-rich-text ul,
.announcement-rich-text ol {
    margin: 0.35rem 0;
    padding-left: 1.15rem;
}

.announcement-rich-text ul {
    list-style: disc;
}

.announcement-rich-text ol {
    list-style: decimal;
}

.announcement-rich-text li {
    margin: 0.2rem 0;
}

.announcement-special-plain,
.announcement-special-plain .announcement-rich-text,
.announcement-special-plain .announcement-rich-text p,
.announcement-special-plain .announcement-rich-text li,
.announcement-special-plain .announcement-rich-text span {
    font-style: normal;
    font-weight: 400;
}

.announcement-special-plain .announcement-rich-text strong,
.announcement-special-plain .announcement-rich-text b,
.announcement-special-plain .announcement-rich-text em,
.announcement-special-plain .announcement-rich-text i {
    font-style: normal;
    font-weight: 400;
}

/* Collapsible panel toggle */
.is-open .panel-collapsible {
    display: block;
}

.is-open .panel-chevron {
    transform: rotate(180deg);
}

.section-ornament {
    display: block;
    width: min(360px, 70%);
    margin: 0 0 1rem;
    opacity: 0.9;
}

.contact-form,
.admin-auth-form {
    display: grid;
    gap: 0.75rem;
}

label {
    display: grid;
    gap: 0.4rem;
}

input,
textarea {
    border: 1px solid #c9b99a;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font: inherit;
}

html.theme-dark .public-body input,
html.theme-dark .public-body textarea,
html.theme-dark .public-body select {
    background: #211c18;
    color: #f2ece3;
    border-color: #5a4e43;
}

html.theme-dark .public-body input::placeholder,
html.theme-dark .public-body textarea::placeholder,
html.theme-dark .public-body select::placeholder {
    color: #bcae9e;
}

html.theme-dark .public-body input:focus,
html.theme-dark .public-body textarea:focus,
html.theme-dark .public-body select:focus {
    outline: 2px solid rgba(231, 192, 123, 0.32);
    outline-offset: 1px;
    border-color: #e7c07b;
}

iframe {
    width: 100%;
    min-height: 240px;
    border: 0;
    border-radius: 10px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1rem 0;
}

.admin-auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.admin-auth-card {
    width: min(450px, 92%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.25rem;
}

.error-box {
    color: #fff;
    background: #9f1d2a;
    border-radius: 8px;
    padding: 0.65rem;
}

.success-box {
    color: #103619;
    background: #d4efd7;
    border-radius: 8px;
    padding: 0.65rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4%;
    border-bottom: 1px solid var(--line);
}

.admin-main {
    padding: 2rem 0;
}

.admin-main .admin-hero-card {
    background: #fffaf3;
    border: 1px solid #d8c7a3;
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
}

.editor-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.editor-tab {
    text-decoration: none;
    border: 1px solid #d0b992;
    color: #5f4c2a;
    background: #fff;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font-weight: 700;
}

.editor-tab.is-active {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}

.admin-header-editor {
    align-items: flex-end;
    gap: 1rem;
}

.admin-kicker {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
}

.admin-editor-main {
    width: min(1360px, 96%);
}

.editor-top-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0 0 1.1rem;
    border-bottom: 1px solid #d6d0c4;
    padding: 0 0 0.9rem;
}

.editor-top-tab {
    text-decoration: none;
    color: #5b6470;
    border: 1px solid transparent;
    border-top: 2px solid transparent;
    background: #fff;
    padding: 0.55rem 0.85rem;
    font-weight: 700;
}

.editor-top-tab:hover {
    color: #111827;
    border-color: #d1d5db;
}

.editor-top-tab.is-active {
    color: #111827;
    border-color: #d1d5db;
    border-top-color: #b08a3c;
}

.admin-hero-card-flat {
    border-radius: 8px;
}

.admin-editor-card {
    background: #fff;
    border: 1px solid #d9c9a7;
    border-radius: 12px;
    padding: 1rem;
}

.admin-editor-two-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    align-items: start;
}

.admin-announcement-list {
    display: grid;
    gap: 0.75rem;
}

.admin-announcement-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.8rem;
    background: #fff;
}

.admin-announcement-item .admin-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-section-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.admin-meta-details {
    margin: 1rem 0;
}

.admin-meta-details summary {
    cursor: pointer;
    font-weight: 700;
}

.admin-meta-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.cta-prominent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.2);
}

.admin-header-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table td,
.admin-table th {
    vertical-align: top;
}

.admin-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.admin-actions form {
    margin: 0;
}

.link-button {
    background: none;
    border: none;
    color: var(--burgundy);
    text-decoration: underline;
    padding: 0;
}

.admin-form {
    display: grid;
    gap: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
}

.admin-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
}

.admin-form textarea {
    min-height: 180px;
    resize: vertical;
}

.admin-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.admin-toggle-option {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf3;
}

.admin-toggle-option input[type='checkbox'] {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 0.15rem;
}

.admin-toggle-option span {
    display: grid;
    gap: 0.15rem;
}

.admin-toggle-option small,
.admin-helper-text,
.admin-days-panel-header p {
    color: #4b5563;
}

.admin-days-panel {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fcfaf7;
}

.admin-days-panel-header {
    display: grid;
    gap: 0.3rem;
}

.admin-days-panel-header h2 {
    margin: 0;
    font-size: 1rem;
}

.admin-days-panel-header p {
    margin: 0;
    font-size: 0.95rem;
}

.admin-days-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-day-option {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #d6c7ad;
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
}

.admin-day-option input[type='checkbox'] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
}

.admin-day-option-date {
    font-weight: 700;
}

.admin-day-option small {
    white-space: nowrap;
}

.admin-form-actions {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-inline-form {
    margin: 0;
}

.admin-delete-form {
    margin-top: 0.85rem;
}

.admin-submit-button,
.admin-auth-card button,
.admin-main button:not(.link-button) {
    min-height: 52px;
    padding: 0.9rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.admin-danger-button {
    min-height: 52px;
    padding: 0.9rem 1.2rem;
    background: #7f1d1d;
    border: 1px solid #7f1d1d;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
}

.admin-danger-button:hover {
    background: #991b1b;
    border-color: #991b1b;
}

.checkbox-label {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.checkbox-label input[type='checkbox'] {
    width: 18px;
    height: 18px;
    min-height: 18px;
}

.admin-block {
    margin-bottom: 1.4rem;
}

.week-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.week-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

@media (max-width: 860px) {
    .week-card-header {
        flex-direction: column;
    }

    .admin-announcement-item {

@media (max-width: 767px) and (orientation: portrait) {
    .announcements-mobile-compact {
        font-size: 0.92rem;
        line-height: 1.45;
    }
}
        flex-direction: column;
    }

    .admin-editor-two-col {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 760px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .sacrament-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shortcuts {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .sacrament-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
