:root {
    --ink: #1f2937;
    --muted: #667085;
    --line: #e5e7eb;
    --panel: #ffffff;
    --soft: #f5f7fb;
    --primary: #2457a6;
}

body {
    background: var(--soft);
    color: var(--ink);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -.5rem;
    margin-left: -.5rem;
}

.row > * {
    box-sizing: border-box;
    max-width: 100%;
    padding-right: .5rem;
    padding-left: .5rem;
}

.g-3 {
    row-gap: 1rem;
}

.col-sm-6,
.col-md-3,
.col-md-4,
.col-md-6,
.col-lg-4,
.col-xl-3 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 576px) {
    .col-sm-6 { width: 50%; }
}

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333333%; }
    .col-md-6 { width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-4 { width: 33.333333%; }
}

@media (min-width: 1200px) {
    .col-xl-3 { width: 25%; }
}

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.h-100 { height: 100%; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.p-0 { padding: 0; }
.p-4 { padding: 1.5rem; }
.mx-auto { margin-right: auto; margin-left: auto; }
.text-end { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-danger { color: #dc3545; }
.fw-semibold { font-weight: 600; }

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    vertical-align: middle;
}

.table th,
.table td {
    padding: .75rem;
    border-bottom: 1px solid var(--line);
}

.table thead th {
    color: #475467;
    font-size: .78rem;
    text-transform: uppercase;
    background: #f8fafc;
}

.table-hover tbody tr:hover {
    background: #f9fafb;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: .45rem .8rem;
    color: #1f2937;
    background: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.btn-sm,
.btn-group-sm > .btn {
    min-height: 32px;
    padding: .3rem .55rem;
    font-size: .875rem;
}

.btn-primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.btn-warning { color: #fff; background: #f97316; border-color: #f97316; }
.btn-danger { color: #fff; background: #dc3545; border-color: #dc3545; }
.btn-light { background: #f8f9fa; border-color: #f1f3f5; }
.btn-link { color: var(--primary); background: transparent; border-color: transparent; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-secondary { color: #667085; border-color: #cbd5e1; }
.btn-outline-success { color: #198754; border-color: #198754; }
.btn-outline-danger { color: #dc3545; border-color: #dc3545; }

.btn-group,
.btn-group-sm {
    display: inline-flex;
    vertical-align: middle;
}

.btn-group > .btn,
.btn-group-sm > .btn {
    border-radius: 0;
}

.btn-group > .btn:first-child,
.btn-group-sm > .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.btn-group > .btn:last-child,
.btn-group-sm > .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.form-label {
    display: inline-block;
    margin-bottom: .35rem;
    font-weight: 700;
}

.form-control,
.form-select {
    display: block;
    width: 100%;
    min-height: 40px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: .5rem .7rem;
    color: var(--ink);
    background: #fff;
}

.form-text {
    margin-top: .25rem;
    color: var(--muted);
    font-size: .875rem;
}

.input-group {
    display: flex;
    width: 100%;
}

.input-group > .form-control {
    flex: 1 1 auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .btn {
    border-radius: 0;
}

.input-group > .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    min-width: 12rem;
    margin: .125rem 0 0;
    padding: .5rem 0;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}

.dropdown-item,
.dropdown-header {
    display: block;
    width: 100%;
    padding: .5rem 1rem;
    color: var(--ink);
    text-decoration: none;
}

.dropdown-header {
    color: var(--muted);
    font-weight: 800;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1055;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal-dialog {
    width: auto;
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal-lg {
    max-width: 800px;
}

.modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
    display: flex;
    align-items: center;
}

.modal-dialog-scrollable {
    max-height: calc(100% - 3.5rem);
}

.modal-content {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}

.modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.modal-body {
    padding: 1rem;
}

.btn-close {
    width: 1em;
    height: 1em;
    border: 0;
    background: transparent;
    opacity: .65;
    cursor: pointer;
}

.btn-close::before {
    content: "x";
    font-size: 1.4rem;
    line-height: 1;
}

.app-shell {
    --sidebar-width: 280px;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 1040;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(22, 32, 51, .96)),
        #162033;
    color: #fff;
    padding: 22px 16px;
    box-shadow: 14px 0 40px rgba(15, 23, 42, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(-1 * var(--sidebar-width) - 18px));
    transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .22s ease, visibility 0s linear .34s;
    will-change: transform;
}

.app-shell.sidebar-open .sidebar {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .22s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 10px 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-size: 1.06rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
}

.brand::before {
    content: "SQ";
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #f7c948, #f59e0b);
    color: #162033;
    font-size: .9rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(247, 201, 72, .18);
}

.sidebar .nav-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    color: #d8deea;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.sidebar .nav-link::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: rgba(216, 222, 234, .36);
    box-shadow: 0 0 0 4px rgba(255,255,255,.04);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(36, 87, 166, .95), rgba(20, 150, 109, .82));
    color: #fff;
    transform: translateX(3px);
    box-shadow: 0 12px 26px rgba(4, 12, 24, .22);
}

.sidebar .nav-link:hover::before,
.sidebar .nav-link.active::before {
    background: #f7c948;
    box-shadow: 0 0 0 4px rgba(247, 201, 72, .16);
}

.finance-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.sidebar .nav-sublink {
    font-size: .92rem;
    min-height: 36px;
    margin-left: 16px;
    padding-left: 14px;
    color: rgba(216, 222, 234, .86);
}

.sidebar .nav-sublink::before {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
}

.finance-submenu {
    display: none;
    margin: 4px 0 8px;
    padding-left: 4px;
    border-left: 1px solid rgba(255,255,255,.14);
}

.finance-submenu.open {
    display: grid;
    gap: 4px;
}

.main {
    min-width: 0;
    min-height: 100vh;
    margin-left: 0;
    transition: margin-left .34s cubic-bezier(.2, .8, .2, 1);
}

.app-shell.sidebar-open .main {
    margin-left: var(--sidebar-width);
}

.topbar {
    min-height: 72px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    backdrop-filter: blur(12px);
}

.topbar-leading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
}

.sidebar-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid #d9e3f1;
    border-radius: 12px;
    color: #173d78;
    background: linear-gradient(145deg, #fff, #edf4ff);
    box-shadow: 0 7px 18px rgba(30, 64, 120, .12);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.sidebar-toggle:hover {
    color: #fff;
    background: linear-gradient(135deg, #2457a6, #148465);
    box-shadow: 0 10px 22px rgba(36, 87, 166, .28);
    transform: translateY(-1px);
}

.sidebar-toggle:focus-visible {
    outline: 3px solid rgba(36, 87, 166, .28);
    outline-offset: 2px;
}

.sidebar-toggle-lines {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
}

.sidebar-toggle-lines i {
    position: absolute;
    left: 1px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: top .25s ease, transform .25s ease, opacity .18s ease;
}

.sidebar-toggle-lines i:nth-child(1) { top: 4px; }
.sidebar-toggle-lines i:nth-child(2) { top: 9px; }
.sidebar-toggle-lines i:nth-child(3) { top: 14px; }

.app-shell.sidebar-open .sidebar-toggle-lines i:nth-child(1) { top: 9px; transform: rotate(45deg); }
.app-shell.sidebar-open .sidebar-toggle-lines i:nth-child(2) { opacity: 0; transform: scaleX(.25); }
.app-shell.sidebar-open .sidebar-toggle-lines i:nth-child(3) { top: 9px; transform: rotate(-45deg); }

.sidebar-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sidebar-backdrop {
    display: none;
}

.topbar-user-name strong {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #162033;
}

.topbar-user-name strong::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #12b76a;
    box-shadow: 0 0 0 5px rgba(18, 183, 106, .13);
}

.user-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-photo-wrap {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.user-access-level {
    max-width: 96px;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    word-break: break-word;
}

.birthday-notification {
    position: relative;
}

.event-notification {
    position: relative;
}

.event-button {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    position: relative;
    border: 1px solid #fde7bc;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #fff7e8);
    color: #b45309;
    box-shadow: 0 10px 24px rgba(180, 83, 9, .13);
}

.event-button:hover,
.event-button:focus {
    border-color: #d97706;
    color: #92400e;
    background: #fff7e8;
    box-shadow: 0 12px 28px rgba(180, 83, 9, .2);
}

.event-icon {
    width: 20px;
    height: 20px;
    position: relative;
    display: block;
    border: 2px solid currentColor;
    border-radius: 6px;
}

.event-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 5px;
    border-top: 2px solid currentColor;
}

.event-icon::after {
    content: "";
    width: 4px;
    height: 4px;
    position: absolute;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: -7px 0 0 currentColor;
}

.event-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    position: absolute;
    top: -4px;
    right: -4px;
    border-radius: 999px;
    background: #d92d20;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    border: 2px solid #fff;
}

.event-menu {
    width: 330px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 18px 45px rgba(31, 41, 55, .14);
}

.event-item {
    display: block;
    padding: 11px 16px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.event-item:hover {
    background: #fff7e8;
    color: var(--ink);
}

.event-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.event-item-head strong {
    line-height: 1.2;
}

.event-item-head span {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: .72rem;
    font-weight: 800;
}

.event-item small,
.event-item em,
.event-empty {
    display: block;
    color: var(--muted);
    font-size: .88rem;
}

.event-item em {
    margin-top: 2px;
    font-style: normal;
}

.event-empty {
    padding: 10px 16px;
}

.birthday-button {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    position: relative;
    border: 1px solid #d7e3f7;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #eef4ff);
    color: var(--primary);
    box-shadow: 0 10px 24px rgba(36, 87, 166, .14);
}

.birthday-button:hover,
.birthday-button:focus {
    border-color: #2457a6;
    color: #2457a6;
    background: #eef4ff;
    box-shadow: 0 12px 28px rgba(36, 87, 166, .2);
}

.birthday-icon {
    width: 18px;
    height: 20px;
    position: relative;
    display: block;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 10px 10px 4px 4px;
}

.birthday-icon::before {
    content: "";
    width: 8px;
    height: 4px;
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.birthday-icon::after {
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 -4px 0 -2px currentColor;
}

.birthday-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    position: absolute;
    top: -4px;
    right: -4px;
    border-radius: 999px;
    background: #d92d20;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    border: 2px solid #fff;
}

.birthday-menu {
    width: 280px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 18px 45px rgba(31, 41, 55, .14);
}

.birthday-item {
    padding: 10px 16px;
    border-top: 1px solid var(--line);
}

.birthday-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.birthday-item strong,
.birthday-item span {
    display: block;
}

.birthday-origin {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2457a6;
    font-size: .72rem;
    font-weight: 700;
}

.birthday-item span,
.birthday-empty {
    color: var(--muted);
    font-size: .9rem;
}

.birthday-item .birthday-origin {
    display: inline-block;
    color: #2457a6;
    font-size: .72rem;
}

.birthday-empty {
    padding: 10px 16px;
}

.user-box img,
.preview-img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.user-box img,
.preview-img {
    object-fit: cover;
}

.content {
    padding: 24px;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-title h2 {
    margin: 0;
    font-size: 1.5rem;
}

.page-title p {
    color: var(--muted);
    margin: 4px 0 0;
}

.panel,
.metric {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.metric span {
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.metric strong {
    font-size: 1.8rem;
}

.dashboard-category-card {
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.dashboard-category-card .metric-pdf-button {
    align-self: flex-start;
    font-weight: 800;
    border-radius: 8px;
}

.section-title {
    color: #344054;
    font-weight: 700;
    margin-bottom: 10px;
}

.search-form {
    width: min(100%, 760px);
    padding: 10px;
    border: 1px solid #cddcf3;
    background:
        linear-gradient(135deg, rgba(36, 87, 166, .1), rgba(20, 150, 109, .08)),
        #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.search-form .input-group {
    gap: 7px;
    align-items: center;
    border-radius: 8px;
    flex-wrap: nowrap;
}

.search-form .form-control {
    min-height: 40px;
    border-radius: 8px !important;
    border: 1px solid #bfd0ea;
    background: #fff;
    color: #243247;
    font-size: .94rem;
    padding: 8px 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.search-form .form-control:focus {
    border-color: #2457a6;
    box-shadow: 0 0 0 .18rem rgba(36, 87, 166, .13);
}

.search-form .btn {
    min-height: 40px;
    border-radius: 8px !important;
    font-size: .9rem;
    font-weight: 800;
    padding: 8px 14px;
    white-space: nowrap;
}

.search-form .search-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: linear-gradient(135deg, #2457a6, #14966d);
    color: #fff;
    box-shadow: 0 8px 18px rgba(36, 87, 166, .2);
}

.search-form .search-submit::before {
    content: "";
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-shadow: 7px 7px 0 -5px currentColor;
    transform: rotate(-12deg);
}

.search-form .search-submit:hover,
.search-form .search-submit:focus {
    color: #fff;
    background: linear-gradient(135deg, #1f4d94, #0f7f5c);
    box-shadow: 0 10px 22px rgba(20, 150, 109, .24);
}

.search-form .clear-search {
    background: rgba(255, 255, 255, .82);
    border-color: #d6deeb;
    color: #5e6f88;
}

.search-form .clear-search:hover,
.search-form .clear-search:focus {
    background: #eef4fb;
    border-color: #c6d3e4;
    color: #344054;
}

.metric-blue {
    border-left: 5px solid #2457a6;
}

.metric-green {
    border-left: 5px solid #12b76a;
}

.metric-amber {
    border-left: 5px solid #f59e0b;
}

.metric-red {
    border-left: 5px solid #f04438;
}

.metric-cyan {
    border-left: 5px solid #06aed4;
}

.metric-purple {
    border-left: 5px solid #7c3aed;
}

.metric-violet {
    border-left: 5px solid #7c3aed;
}

.metric-navy {
    border-left: 5px solid #0b2a66;
}

.patrimonio-metrics .metric {
    min-height: 104px;
}

.patrimonio-quantity-map { overflow: hidden; border: 1px solid #dbe8f5; border-radius: 8px; background: linear-gradient(125deg, #071b4d, #0b4f83 58%, #087d69); box-shadow: 0 15px 34px rgba(8, 46, 92, .16); }
.patrimonio-quantity-map-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; color: #fff; }
.patrimonio-quantity-map-head span { display: block; color: #9fd9ff; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.patrimonio-quantity-map-head h4 { margin: 3px 0 0; font-weight: 900; }
.patrimonio-quantity-map-head > strong { padding: 9px 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.12); white-space: nowrap; }
.patrimonio-quantity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding: 18px; background: rgba(255,255,255,.96); }
.patrimonio-quantity-card { position: relative; display: grid; grid-template-columns: 82px 1fr; gap: 15px; align-items: center; min-height: 108px; padding: 14px; border: 1px solid #dfe9f4; border-radius: 8px; background: linear-gradient(135deg, #fff, #f7fbff); box-shadow: 0 5px 12px rgba(22, 64, 110, .08); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.patrimonio-quantity-card::before { position: absolute; top: 0; left: 0; width: 4px; height: 100%; content: ""; background: #e5a600; }
.patrimonio-quantity-card:hover { transform: translateY(-2px); border-color: #9fc7dc; box-shadow: 0 12px 22px rgba(22, 64, 110, .15); }
.patrimonio-quantity-value { display: grid; place-items: center; align-content: center; width: 82px; height: 76px; border-radius: 8px; background: linear-gradient(145deg, #0b4f83, #087d69); color: #fff; box-shadow: 0 6px 14px rgba(8, 93, 112, .24); }
.patrimonio-quantity-value b { font-size: 2.25rem; line-height: 1; }
.patrimonio-quantity-value small { margin-top: 3px; color: rgba(255,255,255,.82); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.patrimonio-quantity-copy { min-width: 0; }
.patrimonio-quantity-label { display: block; color: #087d69; font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.patrimonio-quantity-copy strong { display: -webkit-box; overflow: hidden; margin-top: 3px; color: #10284c; font-size: 1.05rem; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.patrimonio-quantity-category { display: block; margin-top: 5px; color: #64748b; font-size: .74rem; font-weight: 700; }
.patrimonio-quantity-empty { grid-column: 1 / -1; margin: 8px; color: #64748b; }
@media (max-width: 575px) { .patrimonio-quantity-map-head { align-items: flex-start; flex-direction: column; } }

.patrimonio-summary-title { align-items: end; }
.patrimonio-summary-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.patrimonio-summary-overview > div { position: relative; min-height: 104px; overflow: hidden; border: 1px solid #dfe8f2; border-radius: 8px; padding: 18px 20px; background: #fff; box-shadow: 0 7px 18px rgba(22, 64, 110, .06); }
.patrimonio-summary-overview > div::before { position: absolute; top: 0; bottom: 0; left: 0; width: 5px; content: ""; background: #2457a6; }
.patrimonio-summary-overview > div:nth-child(2)::before { background: #148465; }
.patrimonio-summary-overview > div:nth-child(3)::before { background: #d89600; }
.patrimonio-summary-overview span { display: block; color: #667085; font-size: .82rem; font-weight: 700; }
.patrimonio-summary-overview strong { display: block; margin-top: 8px; color: #10284c; font-size: 2rem; line-height: 1; }
.patrimonio-summary-map { overflow: hidden; border: 1px solid #dce6f0; border-radius: 8px; background: #fff; box-shadow: 0 11px 26px rgba(22, 64, 110, .08); }
.patrimonio-summary-map-head { padding: 20px 22px; border-bottom: 1px solid #e5edf4; background: #f8fbff; }
.patrimonio-summary-map-head span { display: block; color: #148465; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.patrimonio-summary-map-head h3 { margin: 4px 0 0; color: #10284c; font-size: 1.15rem; font-weight: 900; }
.patrimonio-summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding: 18px; background: #fff; }
.patrimonio-summary-card { position: relative; min-height: 158px; overflow: hidden; border: 1px solid #dfe9f4; border-radius: 8px; padding: 20px; background: #fff; box-shadow: 0 5px 12px rgba(22, 64, 110, .06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.patrimonio-summary-card::before { position: absolute; top: 0; bottom: 0; left: 0; width: 5px; content: ""; background: #2457a6; }
.patrimonio-summary-card:nth-child(3n + 2)::before { background: #148465; }
.patrimonio-summary-card:nth-child(3n)::before { background: #d89600; }
.patrimonio-summary-card:hover { transform: translateY(-3px); border-color: #b8d1e3; box-shadow: 0 15px 26px rgba(22, 64, 110, .13); }
.patrimonio-summary-card > strong { display: block; color: #10284c; font-size: 2.35rem; line-height: 1; }
.patrimonio-summary-card > span { display: block; margin-top: 5px; color: #667085; font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.patrimonio-summary-card h4 { display: -webkit-box; overflow: hidden; margin: 20px 0 0; color: #10284c; font-size: 1.05rem; font-weight: 900; line-height: 1.3; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.patrimonio-summary-empty { grid-column: 1 / -1; margin: 12px; color: #667085; }
@media (max-width: 700px) { .patrimonio-summary-title { align-items: flex-start; flex-direction: column; }.patrimonio-summary-overview { grid-template-columns: 1fr; }.patrimonio-summary-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }.patrimonio-summary-card { min-height: 144px; padding: 17px; } }

.patrimonio-side h5 {
    margin-bottom: 14px;
    color: #0b2a66;
    font-weight: 900;
}

.member-area-title { align-items: end; }
.member-area-year { display: flex; align-items: center; gap: 8px; border: 1px solid #d4e0eb; border-radius: 8px; padding: 8px 10px; background: #fff; }
.member-area-year label { color: #475467; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.member-area-year select { border: 0; color: #0b2a66; background: transparent; font: inherit; font-weight: 900; outline: 0; }
.member-area-profile { display: grid; grid-template-columns: 82px minmax(0, 1fr) minmax(300px, .9fr); gap: 18px; align-items: center; margin-bottom: 18px; border: 1px solid #dce7f0; border-radius: 8px; padding: 20px; background: #fff; box-shadow: 0 9px 24px rgba(22, 64, 110, .07); }
.member-area-profile > img { width: 82px; height: 82px; border: 3px solid #dbe9f8; border-radius: 50%; object-fit: cover; }
.member-area-profile > div > span, .member-area-section header span { display: block; color: #148465; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.member-area-profile h3, .member-area-section h3 { margin: 4px 0 0; color: #10284c; font-weight: 900; }
.member-area-profile p { margin: 5px 0 0; color: #667085; font-weight: 700; }
.member-area-profile dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.member-area-profile dl div { border-left: 3px solid #2457a6; padding-left: 10px; }.member-area-profile dl div:nth-child(2) { border-color: #148465; }.member-area-profile dl div:nth-child(3) { border-color: #d89600; }
.member-area-profile dt { color: #667085; font-size: .72rem; font-weight: 800; text-transform: uppercase; }.member-area-profile dd { margin: 4px 0 0; color: #10284c; font-size: .9rem; font-weight: 900; overflow-wrap: anywhere; }
.member-area-section { margin-bottom: 18px; border: 1px solid #dce7f0; border-radius: 8px; padding: 20px; background: #fff; box-shadow: 0 9px 24px rgba(22, 64, 110, .07); }
.member-area-section > header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }.member-area-section > header > strong { color: #0c5c4d; font-size: 1.35rem; white-space: nowrap; }
.member-area-details-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }.member-area-details-grid > div { min-width: 0; border-left: 3px solid #d3e2ef; padding: 8px 10px; background: #fbfdff; }.member-area-details-grid > div:nth-child(4n + 2) { border-color: #148465; }.member-area-details-grid > div:nth-child(4n + 3) { border-color: #d89600; }.member-area-details-grid span { display: block; color: #667085; font-size: .7rem; font-weight: 800; text-transform: uppercase; }.member-area-details-grid strong { display: block; margin-top: 4px; color: #10284c; font-size: .88rem; overflow-wrap: anywhere; }
.member-area-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }.member-area-metrics > div { border-left: 4px solid #2457a6; padding: 10px 12px; background: #f8fbff; }.member-area-metrics > div:nth-child(2) { border-color: #148465; }.member-area-metrics > div:nth-child(3) { border-color: #d89600; }.member-area-metrics span, .member-area-months span, .member-area-annual span { display: block; color: #667085; font-size: .72rem; font-weight: 800; text-transform: uppercase; }.member-area-metrics strong { display: block; margin-top: 3px; color: #10284c; font-size: 1.35rem; }
.member-area-table { border: 1px solid #e1e9f0; border-radius: 8px; }.member-area-table .table { margin: 0; }.member-area-table th { color: #475467; background: #f8fbff; font-size: .76rem; text-transform: uppercase; }
.member-area-status { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: .76rem; font-weight: 900; }.member-area-status.is-present { color: #0c5c4d; background: #dff8ed; }.member-area-status.is-absent { color: #925f00; background: #fff1d3; }
.member-area-finance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }.member-area-finance { min-width: 0; }.member-area-finance.is-offers { border-top: 4px solid #2457a6; }.member-area-finance.is-tithes { border-top: 4px solid #148465; }.member-area-finance h4 { margin: 20px 0 10px; color: #475467; font-size: .82rem; font-weight: 900; text-transform: uppercase; }
.member-area-months, .member-area-annual { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }.member-area-months > div, .member-area-annual > div { min-width: 0; border: 1px solid #e1eaf2; border-radius: 6px; padding: 10px; background: #fbfdff; }.member-area-months strong, .member-area-annual strong { display: block; margin-top: 4px; color: #10284c; font-size: .82rem; overflow-wrap: anywhere; }.member-area-annual { grid-template-columns: repeat(2, minmax(0, 1fr)); }.member-area-empty { max-width: 640px; border: 1px solid #e1e9f0; border-radius: 8px; padding: 28px; background: #fff; }.member-area-empty h2 { margin: 0; color: #10284c; }.member-area-empty p { margin: 9px 0 0; color: #667085; }
.member-area-tithe-calendar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }.member-area-tithe-calendar > div { min-width: 0; border: 1px solid #e2e9f0; border-radius: 7px; padding: 11px; background: #fff; }.member-area-tithe-calendar .is-paid { border-top: 4px solid #148465; background: #f3fcf7; }.member-area-tithe-calendar .is-unpaid { border-top: 4px solid #d89600; background: #fffaf0; }.member-area-tithe-calendar span { display: block; color: #475467; font-size: .74rem; font-weight: 900; text-transform: uppercase; }.member-area-tithe-calendar strong { display: block; margin: 6px 0 5px; color: #10284c; font-size: .86rem; overflow-wrap: anywhere; }.member-area-tithe-calendar small { display: inline-flex; border-radius: 999px; padding: 3px 7px; font-size: .68rem; font-weight: 900; }.member-area-tithe-calendar .is-paid small { color: #0c5c4d; background: #dff8ed; }.member-area-tithe-calendar .is-unpaid small { color: #925f00; background: #fff0d1; }
.access-denied-modal { overflow: hidden; border: 1px solid #f0d9bd; border-radius: 8px; background: #fff; box-shadow: 0 24px 60px rgba(100, 54, 8, .2); }.access-denied-modal .modal-body { position: relative; }.access-denied-modal .modal-body::before { position: absolute; top: 0; right: 0; left: 0; height: 5px; content: ""; background: #d89600; }.access-denied-mark { display: grid; place-items: center; width: 58px; height: 58px; border: 6px solid #fff; border-radius: 50%; color: #8a5a00; background: #fff0d1; box-shadow: 0 0 0 1px #e7ba61; font-size: 1.8rem; font-weight: 900; }.access-denied-kicker { display: block; color: #9a6500; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.access-denied-modal h5 { margin: 7px 0; color: #3d2b12; font-size: 1.2rem; font-weight: 900; }.access-denied-modal p { max-width: 350px; margin: 0 auto 20px; color: #6b5b45; font-weight: 600; }.access-denied-inline { max-width: 520px; margin: 48px auto; border: 1px solid #f0d9bd; border-left: 5px solid #d89600; border-radius: 8px; padding: 22px; color: #3d2b12; background: #fffaf0; }.access-denied-inline strong { font-size: 1.08rem; }.access-denied-inline p { margin: 7px 0 0; color: #6b5b45; }
@media (max-width: 880px) { .member-area-profile { grid-template-columns: 82px 1fr; }.member-area-profile dl { grid-column: 1 / -1; }.member-area-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.member-area-finance-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .member-area-title { align-items: flex-start; flex-direction: column; }.member-area-profile { grid-template-columns: 1fr; }.member-area-profile > img { width: 70px; height: 70px; }.member-area-profile dl, .member-area-details-grid, .member-area-metrics { grid-template-columns: 1fr; }.member-area-section { padding: 16px; }.member-area-section > header { align-items: flex-start; flex-direction: column; }.member-area-months, .member-area-tithe-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.patrimonio-line {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.patrimonio-line:last-child {
    border-bottom: 0;
}

.patrimonio-line strong,
.patrimonio-line span {
    display: block;
}

.patrimonio-line strong {
    color: #162033;
    font-size: .92rem;
}

.patrimonio-line span {
    color: #667085;
    font-size: .85rem;
    margin-top: 3px;
}

.patrimonio-profile-head {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(7, 27, 77, .96), rgba(20, 132, 101, .9)),
        #071b4d;
    color: #fff;
}

.patrimonio-profile-head img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
}

.patrimonio-profile-head span {
    color: #f7c948;
    font-weight: 900;
    text-transform: uppercase;
}

.patrimonio-profile-head h3 {
    margin: 4px 0;
    font-weight: 900;
}

.patrimonio-profile-head p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-weight: 700;
}

.finance-map {
    display: grid;
    gap: 18px;
}

.finance-row-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.finance-track {
    height: 14px;
    background: #edf0f5;
    border-radius: 999px;
    overflow: hidden;
}

.finance-bar {
    height: 100%;
    border-radius: inherit;
}

.finance-blue {
    background: #2457a6;
}

.finance-green {
    background: #12b76a;
}

.finance-amber {
    background: #f59e0b;
}

.finance-cyan {
    background: #06aed4;
}

.finance-purple {
    background: #7c3aed;
}

.finance-red {
    background: #f04438;
}

.finance-map-cards {
    align-items: stretch;
}

.finance-map-card {
    min-height: 132px;
    height: 100%;
    border-left-width: 6px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.finance-map-card span {
    font-size: 1rem;
    font-weight: 600;
}

.finance-map-card strong {
    display: block;
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    word-break: break-word;
}

.finance-map-card-navy {
    border-left-color: #2457a6;
}

.finance-map-card-teal {
    border-left-color: #0f766e;
}

.finance-map-card-violet {
    border-left-color: #7c3aed;
}

.finance-map-card-green {
    border-left-color: #16a34a;
}

.finance-map-card-emerald {
    border-left-color: #059669;
}

.finance-map-card-amber {
    border-left-color: #d97706;
}

.finance-map-card-orange {
    border-left-color: #ea580c;
}

.finance-map-card-rose {
    border-left-color: #e11d48;
}

.finance-map-card-red {
    border-left-color: #dc2626;
}

.finance-summary-grid {
    margin-top: 4px;
}

.finance-overview-grid {
    align-items: stretch;
}

.finance-summary-card {
    min-height: 136px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 22px;
    border-radius: 8px;
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--line);
    border-left-width: 6px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.finance-summary-card::after {
    content: none;
}

.finance-summary-card::before {
    content: none;
}

.finance-summary-card span {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    position: relative;
    z-index: 1;
}

.finance-summary-card strong {
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    word-break: break-word;
}

.finance-summary-navy {
    border-left-color: #2457a6;
}

.finance-summary-teal {
    border-left-color: #0f766e;
}

.finance-summary-violet {
    border-left-color: #7c3aed;
}

.finance-summary-green {
    border-left-color: #16a34a;
}

.finance-summary-emerald {
    border-left-color: #059669;
}

.finance-summary-amber {
    border-left-color: #d97706;
}

.finance-summary-orange {
    border-left-color: #ea580c;
}

.finance-summary-rose {
    border-left-color: #e11d48;
}

.finance-summary-red {
    border-left-color: #dc2626;
}

.choir-cards {
    align-items: stretch;
}

.choir-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 226px;
    border: 1px solid #cddcf3;
    border-left: 6px solid var(--primary);
    background:
        linear-gradient(135deg, rgba(36, 87, 166, .12), rgba(20, 150, 109, .08)),
        #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.choir-card::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: rgba(36, 87, 166, .09);
}

.choir-card:hover {
    transform: translateY(-3px);
    border-color: #a9c2e8;
    box-shadow: 0 20px 42px rgba(15, 23, 42, .12);
}

.choir-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.choir-card h5 {
    margin: 0;
    font-weight: 900;
    color: var(--ink);
    font-size: 1.18rem;
}

.choir-card p {
    margin: 2px 0 0;
    color: #55708f;
    font-weight: 700;
}

.choir-card-total {
    margin-top: auto;
    position: relative;
    z-index: 1;
    padding: 14px;
    border: 1px solid rgba(201, 213, 225, .85);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
}

.choir-card-total span {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.choir-card-total strong {
    display: block;
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.choir-card .btn {
    position: relative;
    z-index: 1;
    border-radius: 8px;
    font-weight: 800;
}

.action-buttons {
    white-space: nowrap;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.table-action {
    width: auto;
    min-width: 92px;
    height: auto;
    min-height: 36px;
    padding: .42rem .82rem;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: 0 1px 1px rgba(15, 23, 42, .22);
    box-shadow:
        0 10px 20px rgba(15, 23, 42, .14),
        inset 0 1px 0 rgba(255, 255, 255, .34);
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
}

.table-action::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255,255,255,.34), rgba(255,255,255,0) 42%),
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
    pointer-events: none;
}

.table-action:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .58);
    box-shadow:
        0 16px 30px rgba(15, 23, 42, .22),
        inset 0 1px 0 rgba(255, 255, 255, .42);
    filter: saturate(1.16) brightness(1.03);
}

.table-action:active {
    transform: translateY(0);
    box-shadow: 0 7px 14px rgba(15, 23, 42, .14);
}

.table-action:focus-visible {
    outline: 3px solid rgba(36, 87, 166, .24);
    outline-offset: 2px;
}

.table-action-view {
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 54%, #06b6d4 100%);
}

.table-action-edit {
    background: linear-gradient(135deg, #047857 0%, #16a34a 56%, #65a30d 100%);
}

.table-action-delete {
    background: linear-gradient(135deg, #be123c 0%, #e11d48 52%, #ef4444 100%);
}

.status-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    border: 3px solid rgba(255,255,255,.8);
}

.status-dot.green {
    background: #12b76a;
}

.status-dot.red {
    background: #f04438;
}

.modal.show {
    background: rgba(15, 23, 42, .45);
}

.delete-confirm {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.delete-confirm-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #d92d20;
    border: 8px solid #fee4e2;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.message-confirm-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #12b76a;
    border: 8px solid #d1fadf;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.message-confirm-icon.danger {
    background: #d92d20;
    border-color: #fee4e2;
}

.message-confirm-text {
    color: var(--ink);
    font-weight: 700;
}

.app-loading {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 42%, rgba(20, 150, 109, .18), transparent 28%),
        radial-gradient(circle at 48% 54%, rgba(36, 87, 166, .24), transparent 34%),
        rgba(15, 23, 42, .48);
    backdrop-filter: blur(7px);
}

.app-loading.is-visible {
    display: grid;
}

.app-loading-box {
    min-width: min(320px, 100%);
    position: relative;
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 30px 32px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(238, 244, 255, .94)),
        #fff;
    color: #162033;
    box-shadow: 0 34px 90px rgba(15, 23, 42, .34);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.app-loading-box::before {
    content: "";
    width: 180px;
    height: 180px;
    position: absolute;
    top: -96px;
    right: -78px;
    z-index: -1;
    border-radius: 50%;
    background: rgba(20, 150, 109, .14);
}

.app-loading-box::after {
    content: "";
    width: 120px;
    height: 120px;
    position: absolute;
    left: -56px;
    bottom: -62px;
    z-index: -1;
    border-radius: 50%;
    background: rgba(36, 87, 166, .13);
}

.app-loading-art {
    width: 82px;
    height: 82px;
    display: block;
    position: relative;
    border-radius: 50%;
    background:
        url("loading-spinner.jfif") center / cover no-repeat,
        #05070b;
    box-shadow:
        0 0 0 8px rgba(36, 87, 166, .08),
        0 0 0 16px rgba(20, 150, 109, .06),
        0 16px 34px rgba(36, 87, 166, .24);
    animation: appLoadingPulse 1.5s ease-in-out infinite;
}

.app-loading-art::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #14966d;
    border-right-color: #2457a6;
    animation: appLoadingSpin 1s linear infinite;
}

.app-loading-text {
    color: #182230;
    font-size: .98rem;
    font-weight: 900;
}

.app-loading-text::after {
    content: "";
    display: inline-block;
    width: 1.1em;
    text-align: left;
    animation: appLoadingDots 1.3s steps(4, end) infinite;
}

.btn.is-loading {
    pointer-events: none;
    opacity: .82;
}

.btn.is-loading::after {
    content: "";
    width: 1em;
    height: 1em;
    display: inline-block;
    margin-left: .55rem;
    vertical-align: -.15em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: appLoadingSpin .7s linear infinite;
}

.modal-loading-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    gap: 12px;
    color: var(--muted);
    font-weight: 700;
}

.modal-loading-state::before {
    content: "";
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background:
        url("loading-spinner.jfif") center / cover no-repeat,
        #05070b;
    box-shadow:
        0 0 0 7px rgba(36, 87, 166, .08),
        0 12px 26px rgba(15, 23, 42, .16);
    animation: appLoadingPulse 1.5s ease-in-out infinite;
}

@keyframes appLoadingSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes appLoadingPulse {
    0%,
    100% {
        transform: scale(1);
        filter: saturate(1);
    }

    50% {
        transform: scale(1.06);
        filter: saturate(1.18);
    }
}

@keyframes appLoadingDots {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75%,
    100% {
        content: "...";
    }
}

.delete-confirm-message {
    color: var(--ink);
    font-weight: 700;
}

.delete-confirm-name {
    color: #d92d20;
    font-weight: 700;
    word-break: break-word;
}

.toast.show {
    display: block;
    opacity: 1;
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(36, 87, 166, .12), transparent 28%),
        linear-gradient(135deg, #f7fafc 0%, #eef4ff 45%, #f8fbf6 100%);
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 1fr 420px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(229, 231, 235, .9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(31, 41, 55, .16);
}

.login-intro {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    background: linear-gradient(145deg, #162033, #2457a6);
    color: #fff;
}

.login-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    font-weight: 800;
    margin-bottom: 24px;
}

.login-intro h1 {
    font-size: 2.1rem;
    margin-bottom: 12px;
}

.login-intro p {
    max-width: 360px;
    color: rgba(255,255,255,.78);
    margin: 0;
}

.login-card {
    background: #fff;
    padding: 46px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card-head {
    margin-bottom: 26px;
}

.login-card-head span {
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.login-card h2 {
    font-size: 1.55rem;
    margin: 6px 0 0;
}

.login-card .form-control {
    min-height: 48px;
    border-radius: 6px;
}

.login-card .btn {
    min-height: 48px;
    border-radius: 6px;
    font-weight: 700;
}

.login-account-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin-top: 1rem;
    color: #98a2b3;
    font-size: .875rem;
}

.login-account-actions .btn-link {
    min-height: auto;
    padding: .2rem .35rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.login-account-actions .btn-link:hover,
.login-account-actions .btn-link:focus-visible {
    text-decoration: underline;
}

.login-account-modal {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.login-account-modal .modal-header,
.login-account-modal .modal-body {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 575.98px) {
    .login-account-actions {
        flex-wrap: wrap;
    }

    .login-account-modal .modal-header,
    .login-account-modal .modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.user-menu {
    position: relative;
}

.user-photo-button {
    padding: 0;
    border: 0;
    background: transparent;
}

.user-photo-button:focus-visible {
    outline: 3px solid rgba(36, 87, 166, .28);
    outline-offset: 4px;
    border-radius: 8px;
}

.user-dropdown {
    min-width: 170px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 18px 45px rgba(31, 41, 55, .16);
}

.logout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 2px;
    padding: 11px 14px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #e11d48, #f97316);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(225, 29, 72, .25);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.logout-link:hover,
.logout-link:focus {
    color: #fff;
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: 0 14px 30px rgba(225, 29, 72, .32);
}

.logout-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    font-size: 1rem;
    line-height: 1;
}

.user-dropdown-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
}

.user-dropdown-head img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown-head strong,
.user-dropdown-head span {
    display: block;
}

.user-dropdown-head span {
    color: var(--muted);
    font-size: .86rem;
    word-break: break-word;
}

.member-profile {
    display: grid;
    gap: 18px;
}

.member-profile-head {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(22, 32, 51, .95), rgba(36, 87, 166, .92)),
        linear-gradient(45deg, transparent, rgba(255,255,255,.12));
}

.member-profile-head img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 4px solid rgba(255,255,255,.28);
    background: #fff;
}

.member-profile-head span {
    display: inline-block;
    margin-bottom: 6px;
    color: #f7c948;
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
}

.member-profile-head h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);
}

.member-profile-head p {
    margin: 6px 0 0;
    color: rgba(255,255,255,.8);
}

.member-profile-grid,
.member-family {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.member-family {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-profile-grid > div,
.member-family > div {
    min-height: 88px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.member-profile-grid span,
.member-family span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.member-profile-grid strong,
.member-family strong {
    display: block;
    color: var(--ink);
    font-size: .98rem;
    word-break: break-word;
}

.record-profile {
    display: grid;
    gap: 16px;
}

.record-profile-hero {
    display: grid;
    grid-template-columns: 136px 1fr;
    gap: 20px;
    align-items: center;
    min-height: 190px;
    padding: 22px;
    border-radius: 8px;
    color: #fff;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #162033, #2457a6);
}

.record-profile-pastor .record-profile-hero {
    background: linear-gradient(135deg, #0f5132, #14966d);
}

.record-profile-user .record-profile-hero {
    background: linear-gradient(135deg, #3b265f, #7c3aed);
}

.record-profile-hero::after {
    content: "";
    width: 220px;
    height: 220px;
    position: absolute;
    right: -70px;
    top: -80px;
    border-radius: 50%;
    border: 38px solid rgba(255,255,255,.12);
}

.record-profile-photo {
    width: 136px;
    height: 136px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(255,255,255,.18);
    position: relative;
    z-index: 1;
}

.record-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    background: #fff;
}

.record-profile-hero > div:last-child {
    position: relative;
    z-index: 1;
}

.record-profile-hero span {
    color: #f7c948;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.record-profile-hero h3 {
    margin: 8px 0 6px;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.record-profile-hero p {
    margin: 0 0 10px;
    color: rgba(255,255,255,.82);
}

.record-profile-hero strong {
    display: inline-flex;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    word-break: break-word;
}

.record-profile-highlights,
.record-profile-grid,
.record-profile-family {
    display: grid;
    gap: 12px;
}

.record-profile-highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.record-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record-profile-family {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.record-profile-highlights > div,
.record-profile-grid > div,
.record-profile-family > div {
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.record-profile-highlights > div {
    border-top: 4px solid #2457a6;
}

.record-profile-pastor .record-profile-highlights > div {
    border-top-color: #14966d;
}

.record-profile-user .record-profile-highlights > div {
    border-top-color: #7c3aed;
}

.record-profile-highlights span,
.record-profile-grid span,
.record-profile-family span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
}

.record-profile-highlights strong,
.record-profile-grid strong,
.record-profile-family strong {
    display: block;
    color: var(--ink);
    word-break: break-word;
}

.attendance-profile {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.attendance-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.attendance-profile-head span {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.attendance-profile-head h4 {
    margin: 4px 0 0;
}

.attendance-totals {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.attendance-totals strong {
    min-width: 94px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    border: 1px solid var(--line);
}

.attendance-totals span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: .74rem;
}

.attendance-profile .table {
    margin: 0;
}

.single-attendance {
    display: grid;
    gap: 14px;
}

.single-attendance-head {
    padding: 18px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #162033, #2457a6);
}

.single-attendance-head span {
    color: #f7c948;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.single-attendance-head h4 {
    margin: 6px 0 0;
}

.print-page {
    background: #eef1f6;
    padding: 28px;
}

.member-print-sheet {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 34px;
    background: #fff;
    color: #111827;
    border: 1px solid #d7dce5;
    box-shadow: 0 22px 70px rgba(15, 23, 42, .15);
}

.member-print-sheet header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 3px solid #2457a6;
}

.member-print-sheet header span {
    color: #2457a6;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.member-print-sheet h1 {
    margin: 6px 0 0;
    font-size: 2rem;
}

.member-print-sheet header img {
    width: 112px;
    height: 132px;
    object-fit: cover;
    border: 1px solid #98a2b3;
}

.member-print-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #d7dce5;
    border-left: 1px solid #d7dce5;
}

.member-print-grid > div {
    min-height: 66px;
    padding: 10px 12px;
    border-right: 1px solid #d7dce5;
    border-bottom: 1px solid #d7dce5;
}

.member-print-grid span {
    display: block;
    color: #475467;
    font-size: .78rem;
    font-weight: 800;
}

.member-print-grid strong {
    display: block;
    margin-top: 5px;
    word-break: break-word;
}

.member-print-sheet footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 54px;
    color: #475467;
}

.member-print-sheet footer div {
    padding-top: 12px;
    border-top: 1px solid #98a2b3;
}

.record-print-sheet {
    width: min(930px, 100%);
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    color: #111827;
    border: 1px solid #d7dce5;
    box-shadow: 0 22px 70px rgba(15, 23, 42, .15);
    position: relative;
    overflow: hidden;
}

.record-print-sheet::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 10px;
    background: #2457a6;
}

.record-print-pastor::before {
    background: #14966d;
}

.record-print-user::before {
    background: #7c3aed;
}

.record-print-sheet header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 14px 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #d7dce5;
}

.record-print-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.record-print-brand img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d7dce5;
}

.record-print-brand span,
.record-print-name span,
.record-print-grid span {
    display: block;
    color: #475467;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.record-print-brand h1 {
    margin: 6px 0 0;
    font-size: 2rem;
}

.record-print-letterhead {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.record-print-letterhead img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 50%;
}

.record-print-letterhead p {
    margin: 0;
    color: #111827;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.25;
}

.record-print-letterhead h1 {
    margin: 12px 0 0;
    color: #111827;
    font-size: 1.6rem;
    text-transform: uppercase;
}

.record-print-photo {
    width: 132px;
    flex: 0 0 auto;
    text-align: center;
}

.record-print-photo img {
    width: 112px;
    height: 132px;
    object-fit: cover;
    border: 1px solid #98a2b3;
    background: #fff;
}

.record-print-photo strong {
    display: block;
    margin-top: 6px;
    font-size: .82rem;
    color: #2457a6;
}

.record-print-name {
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: #f5f7fb;
    border: 1px solid #d7dce5;
}

.record-print-name strong {
    display: block;
    margin-top: 4px;
    font-size: 1.35rem;
}

.record-print-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #d7dce5;
    border-left: 1px solid #d7dce5;
}

.record-print-grid > div {
    min-height: 64px;
    padding: 10px 12px;
    border-right: 1px solid #d7dce5;
    border-bottom: 1px solid #d7dce5;
}

.record-print-grid strong {
    display: block;
    margin-top: 5px;
    word-break: break-word;
}

.record-print-sheet footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 52px;
    color: #475467;
}

.record-print-sheet footer div {
    padding-top: 12px;
    border-top: 1px solid #98a2b3;
}

.record-print-attendance {
    margin-top: 22px;
}

.record-print-attendance h2 {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.record-print-attendance p {
    margin: 4px 0 10px;
    color: #475467;
    font-weight: 700;
}

.record-print-attendance-totals {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.record-print-attendance-totals strong {
    padding: 8px 10px;
    border: 1px solid #d7dce5;
    border-radius: 8px;
    background: #f5f7fb;
}

.record-print-attendance table {
    width: 100%;
    border-collapse: collapse;
}

.record-print-attendance th,
.record-print-attendance td {
    padding: 8px;
    border: 1px solid #d7dce5;
    text-align: left;
}

.record-print-attendance th {
    background: #f5f7fb;
    color: #475467;
    font-size: .8rem;
    text-transform: uppercase;
}

.assembly-print-sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 29mm 19mm 13mm;
    background: #fff;
    color: #111827;
    border: 1px solid #d7dce5;
    box-shadow: 0 22px 70px rgba(15, 23, 42, .15);
    display: flex;
    flex-direction: column;
}

.assembly-print-header {
    text-align: center;
}

.assembly-print-logo {
    display: block;
    width: 25mm;
    height: 25mm;
    margin: 0 auto 5mm;
    object-fit: contain;
}

.assembly-print-letterhead p {
    margin: 0 0 4.5mm;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25;
}

.assembly-print-date {
    margin: 1.5mm 0 0;
    text-align: right;
    font-size: .84rem;
    font-weight: 400;
}

.assembly-print-header h1 {
    width: 161mm;
    min-height: 6.5mm;
    margin: 11mm auto 9mm;
    padding: 1mm 4mm;
    background: #f1f1f1;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.assembly-print-list {
    margin: 0 0 0 7mm;
    padding: 0;
    list-style: none;
    counter-reset: attendance;
    font-size: .95rem;
}

.assembly-print-list li {
    counter-increment: attendance;
    display: flex;
    gap: 2mm;
    min-height: 4.8mm;
    margin: 0;
    line-height: 1.22;
}

.assembly-print-list li::before {
    content: counter(attendance) "-";
    min-width: 5mm;
    text-align: right;
}

.assembly-print-list span {
    display: inline-block;
}

.assembly-print-summary {
    margin: 10mm 0 0;
    padding: 5mm;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

.assembly-print-summary h2 {
    margin: 0 0 4mm;
    color: #111827;
    font-size: 1rem;
    line-height: 1.2;
}

.assembly-print-summary > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3mm;
}

.assembly-print-summary strong {
    display: block;
    min-height: 17mm;
    padding: 3mm;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1.1;
}

.assembly-print-summary span {
    display: block;
    margin-bottom: 2mm;
    color: #475569;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.assembly-print-summary .is-present {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.assembly-print-summary .is-absent {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.assembly-print-summary .is-percent {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.assembly-print-signature {
    width: 121mm;
    margin: 16mm auto 0;
    text-align: center;
    background: #fff;
}

.assembly-print-signature p {
    margin: 0 0 6mm;
    font-weight: 400;
}

.assembly-print-signature div {
    border-top: 1px solid #111827;
}

.assembly-print-signature strong {
    display: block;
    margin-top: 3mm;
    font-weight: 400;
}

.parish-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: #f7f6f1;
    color: #182230;
    --parish-container: 1360px;
    --parish-page-pad: clamp(20px, 4vw, 72px);
}

.parish-page #home {
    width: 100%;
    overflow-x: hidden;
}

.parish-header {
    width: 100%;
    min-height: 72px;
    margin: 0;
    padding: 10px max(16px, calc((100vw - var(--parish-container)) / 2));
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.78);
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(248, 251, 246, .9)),
        rgba(255,255,255,.9);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .14);
    backdrop-filter: blur(14px);
}

.parish-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 6px 10px 6px 6px;
    border-radius: 8px;
    color: #162033;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.parish-brand:hover {
    background: rgba(36, 87, 166, .06);
    transform: translateY(-1px);
}

.parish-brand span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #174c3c, #d19113);
    color: #fff8df;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(22, 32, 51, .2);
}

.parish-brand strong {
    font-size: 1rem;
    line-height: 1.15;
}

.parish-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.parish-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 10px 13px;
    border-radius: 8px;
    color: #344054;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.parish-nav a::after {
    content: "";
    height: 3px;
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 6px;
    border-radius: 999px;
    background: #f7c948;
    opacity: 0;
    transform: scaleX(.45);
    transition: opacity .18s ease, transform .18s ease;
}

.parish-nav a:hover {
    background: #eef4ff;
    color: #2457a6;
    transform: translateY(-1px);
}

.parish-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.parish-nav .parish-login-link {
    padding-inline: 16px;
    background: linear-gradient(135deg, #174c3c, #14966d);
    color: #fff;
    box-shadow: 0 12px 24px rgba(20, 150, 109, .2);
}

.parish-nav .parish-login-link::after {
    background: rgba(255,255,255,.72);
}

.parish-nav .parish-login-link:hover {
    background: linear-gradient(135deg, #123d30, #0f7f5c);
    color: #fff;
    box-shadow: 0 14px 30px rgba(20, 150, 109, .24);
}

.parish-hero {
    width: 100%;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    max-height: none;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: clamp(26px, 5vw, 72px);
    padding-right: max(22px, calc((100vw - var(--parish-container)) / 2));
    overflow: hidden;
    border-radius: 0;
    background:
        linear-gradient(120deg, rgba(255,255,255,.92), rgba(255,248,223,.76) 48%, rgba(236,253,243,.9)),
        #f7f6f1;
    color: #182230;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, .08);
}

.parish-hero-content {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 7vw, 86px) 0 clamp(34px, 7vw, 86px) max(22px, calc((100vw - var(--parish-container)) / 2));
    position: relative;
    z-index: 1;
}

.parish-kicker,
.parish-section-label,
.parish-banner span {
    color: #f7c948;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.parish-hero h1 {
    margin: 10px 0 16px;
    max-width: 760px;
    font-size: clamp(2.6rem, 5.2vw, 5.5rem);
    line-height: .98;
    color: #17382f;
}

.parish-hero p {
    max-width: 620px;
    color: #58665f;
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

.parish-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.parish-hero-actions .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    font-weight: 800;
}

.parish-hero-actions .btn-light {
    border-color: #174c3c;
    background: #174c3c;
    color: #fff;
    box-shadow: 0 14px 28px rgba(23, 76, 60, .18);
}

.parish-hero-actions .btn-outline-light {
    border-color: #d6b65b;
    background: #fffdf6;
    color: #7a4f01;
}

.parish-hero-actions .btn-light:hover {
    background: #123d30;
    color: #fff;
}

.parish-hero-actions .btn-outline-light:hover {
    border-color: #b98509;
    background: #fff6d8;
    color: #6b4600;
}

.parish-hero-highlights {
    width: min(100%, 620px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: clamp(22px, 4vw, 42px);
}

.parish-hero-highlights div {
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(214, 182, 91, .34);
    border-radius: 8px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 16px 34px rgba(23, 76, 60, .08);
}

.parish-hero-highlights strong,
.parish-hero-highlights span {
    display: block;
}

.parish-hero-highlights strong {
    color: #17382f;
    font-size: .96rem;
    line-height: 1.15;
}

.parish-hero-highlights span {
    margin-top: 8px;
    color: #667085;
    font-size: .88rem;
    line-height: 1.25;
}

.parish-hero-panel {
    width: min(100%, 520px);
    display: grid;
    gap: 16px;
    padding: clamp(22px, 4vw, 42px) 0 clamp(22px, 4vw, 42px) 0;
}

.parish-hero-card,
.parish-hero-mini div {
    border: 1px solid rgba(23, 76, 60, .12);
    border-radius: 8px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 20px 54px rgba(23, 76, 60, .12);
}

.parish-hero-card-main {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 38px);
    background:
        linear-gradient(140deg, rgba(23, 76, 60, .96), rgba(20, 150, 109, .9) 58%, rgba(209, 145, 19, .86)),
        #174c3c;
    color: #fff;
}

.parish-hero-card-main::before {
    content: "PQ";
    position: absolute;
    right: 24px;
    top: 20px;
    color: rgba(255,255,255,.12);
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 900;
    line-height: 1;
}

.parish-hero-card span,
.parish-hero-mini span {
    color: #f7c948;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.parish-hero-card strong {
    display: block;
    max-width: 22rem;
    margin-top: 10px;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.04;
}

.parish-hero-card p {
    max-width: 24rem;
    margin: 14px 0 0;
    color: rgba(255,255,255,.8);
}

.parish-hero-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.parish-hero-mini div {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
}

.parish-hero-mini span {
    color: #9a6504;
}

.parish-hero-mini strong {
    color: #17382f;
    font-size: 1.18rem;
    line-height: 1.15;
}

.parish-hero-art {
    position: relative;
    min-height: 520px;
    background:
        linear-gradient(180deg, rgba(247, 201, 72, .24), rgba(255,255,255,.06)),
        linear-gradient(145deg, #2a5ca8, #0f172a);
    overflow: hidden;
}

.parish-hero-art::before,
.parish-hero-art::after {
    content: "";
    position: absolute;
    inset: auto;
    background: rgba(255,255,255,.14);
}

.parish-hero-art::before {
    width: 150%;
    height: 210px;
    left: -20%;
    bottom: -80px;
    transform: rotate(-8deg);
}

.parish-hero-art::after {
    width: 56%;
    height: 86%;
    right: 8%;
    bottom: 0;
    border-radius: 160px 160px 0 0;
    border: 16px solid rgba(255,255,255,.26);
    background: rgba(255,255,255,.08);
}

.parish-window {
    width: 230px;
    height: 320px;
    position: absolute;
    right: 16%;
    top: 17%;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
    border-radius: 120px 120px 8px 8px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: inset 0 0 0 10px rgba(255,255,255,.1);
}

.parish-window span {
    border-radius: 70px 70px 6px 6px;
    background: linear-gradient(180deg, #f7c948, #f3a712);
    opacity: .9;
}

.parish-steeple {
    width: 92px;
    height: 260px;
    position: absolute;
    left: 14%;
    bottom: 0;
    z-index: 1;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.26);
}

.parish-steeple::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -92px;
    transform: translateX(-50%);
    border-left: 58px solid transparent;
    border-right: 58px solid transparent;
    border-bottom: 92px solid rgba(255,255,255,.22);
}

.parish-steeple::after {
    content: "+";
    position: absolute;
    left: 50%;
    top: -128px;
    transform: translateX(-50%);
    color: #f7c948;
    font-size: 54px;
    font-weight: 300;
}

.parish-banners,
.parish-section,
.parish-quiz,
.parish-contact {
    width: min(var(--parish-container), calc(100% - 40px));
    margin: clamp(22px, 4vw, 44px) auto 0;
}

.parish-banners {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: clamp(14px, 2vw, 22px);
}

.parish-banner {
    min-height: clamp(230px, 26vw, 330px);
    padding: clamp(22px, 3vw, 34px);
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    box-shadow: 0 20px 54px rgba(15, 23, 42, .16);
    transition: transform .22s ease, box-shadow .22s ease;
}

.parish-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 66px rgba(15, 23, 42, .22);
}

.parish-banner::before {
    content: "";
    width: 190px;
    height: 190px;
    position: absolute;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    border: 34px solid rgba(255,255,255,.14);
    z-index: 0;
}

.parish-banner::after {
    content: "";
    width: 96px;
    height: 6px;
    position: absolute;
    left: clamp(22px, 3vw, 34px);
    bottom: 0;
    border-radius: 999px 999px 0 0;
    background: #f7c948;
    z-index: 2;
}

.parish-banner-photo {
    background: #162033;
}

.parish-banner-photo::before {
    content: "";
    width: auto;
    height: auto;
    inset: 0;
    right: auto;
    top: auto;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .08) 24%, rgba(15, 23, 42, .84) 100%),
        linear-gradient(90deg, rgba(15, 23, 42, .45), rgba(15, 23, 42, .08));
    z-index: 1;
}

.parish-banner-photo::after {
    background: #f7c948;
}

.parish-banner-slides,
.parish-banner-poster > img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.parish-banner-slides img,
.parish-banner-poster > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.parish-banner-poster > img {
    transform: none;
    animation: none;
}

.parish-banner-slides img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: none;
    transition: opacity 1.6s ease, transform 7s ease;
}

.parish-banner-slides img.is-active {
    opacity: 1;
    transform: none;
}

@keyframes parishPosterBannerFloat {
    from {
        transform: scale(1.02) translateY(0);
    }

    to {
        transform: scale(1.1) translateY(-6px);
    }
}

.parish-banner strong {
    display: block;
    margin-top: 8px;
    max-width: 18rem;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.18;
}

.parish-banner p {
    margin: 10px 0 0;
    max-width: 18rem;
    color: rgba(255,255,255,.78);
}

.parish-banner span,
.parish-banner strong,
.parish-banner p {
    position: relative;
    z-index: 2;
    transition: opacity .24s ease, transform .24s ease;
}

.parish-banner.is-changing span,
.parish-banner.is-changing strong,
.parish-banner.is-changing p {
    opacity: 0;
    transform: translateY(8px);
}

.parish-banner-gold {
    background: linear-gradient(135deg, #7a4f01, #d19113);
}

.parish-banner-green {
    background: linear-gradient(135deg, #0f5132, #14966d);
}

.parish-banner-blue {
    background: linear-gradient(135deg, #17382f, #d19113);
}

.parish-section,
.parish-contact {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
    gap: clamp(24px, 5vw, 58px);
    align-items: center;
    padding: clamp(42px, 7vw, 96px) 0;
}

.parish-section h2,
.parish-contact h2 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1;
}

.parish-section p,
.parish-contact p {
    color: #5f6b7a;
    font-size: 1.04rem;
    line-height: 1.75;
}

.parish-section-copy {
    max-width: 560px;
}

.parish-timeline {
    display: grid;
    gap: 14px;
    position: relative;
}

.parish-timeline div,
.parish-contact-card {
    padding: clamp(18px, 2.4vw, 24px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.parish-timeline div {
    position: relative;
    padding-left: clamp(64px, 7vw, 86px);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.parish-timeline div:hover {
    transform: translateX(4px);
    border-color: #cddcf3;
    box-shadow: 0 20px 48px rgba(36, 87, 166, .12);
}

.parish-timeline span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    position: absolute;
    left: 18px;
    top: 18px;
    border-radius: 8px;
    background: #eef4ff;
    color: #2457a6;
    font-size: .82rem;
    font-weight: 900;
}

.parish-timeline strong,
.parish-contact-card strong,
.parish-contact-card span {
    display: block;
}

.parish-timeline p {
    margin: 6px 0 0;
    font-size: .96rem;
    line-height: 1.55;
}

.parish-contact {
    margin-bottom: clamp(28px, 5vw, 54px);
    padding: clamp(30px, 5vw, 58px);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(23, 76, 60, .95), rgba(20, 150, 109, .82) 58%, rgba(209, 145, 19, .72)),
        #174c3c;
    color: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
}

.parish-contact p {
    color: rgba(255,255,255,.76);
}

.parish-contact-card {
    color: #182230;
    border-color: rgba(255,255,255,.72);
}

.parish-contact-card strong {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.parish-contact-card span {
    color: #667085;
    margin-top: 4px;
}

.parish-contact-card a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    margin-top: 18px;
    border-radius: 8px;
    background: #174c3c;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(23, 76, 60, .2);
}

.parish-contact-card a:hover {
    background: #123d30;
    color: #fff;
}

.parish-quiz {
    padding: clamp(36px, 6vw, 76px) 0;
}

.public-quiz-game {
    width: 100%;
    margin: 18px 0;
    padding: clamp(28px, 5vw, 58px) clamp(14px, 3vw, 28px);
    border-radius: 8px;
    background:
        radial-gradient(circle at 12% 18%, rgba(242, 169, 0, .24), transparent 28%),
        radial-gradient(circle at 88% 10%, rgba(20, 150, 109, .18), transparent 26%),
        linear-gradient(135deg, #071b4d, #0b2a66 48%, #123d30);
    box-shadow: 0 18px 44px rgba(7, 27, 77, .18);
}

.parish-quiz-welcome {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at 20% 18%, rgba(242, 169, 0, .28), transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(20, 150, 109, .24), transparent 30%),
        rgba(5, 18, 48, .78);
    backdrop-filter: blur(10px);
}

.parish-quiz-welcome.is-hidden {
    display: none;
}

.parish-quiz-welcome-card {
    width: min(100%, 620px);
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(236,248,243,.96)),
        #fff;
    color: #071b4d;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .32);
}

.parish-quiz-welcome-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, #f2a900, #14966d, #2457a6);
}

.parish-quiz-welcome-mark {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 12px;
    padding: 6px 13px;
    border-radius: 999px;
    background: #fff7e4;
    color: #9a6500;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.parish-quiz-welcome-card h2 {
    max-width: 520px;
    margin: 0 auto 12px;
    color: #06245f;
    font-size: clamp(2rem, 6vw, 3.35rem);
    line-height: 1.04;
}

.parish-quiz-welcome-card p {
    max-width: 520px;
    margin: 0 auto 20px;
    color: #344054;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.55;
}

.parish-quiz-welcome-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0;
}

.parish-quiz-welcome-grid strong {
    min-height: 86px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 8px;
    background: #f8fbff;
    color: #344054;
    font-size: .78rem;
    line-height: 1.2;
}

.parish-quiz-welcome-grid span {
    color: #14966d;
    font-size: 1.45rem;
    font-weight: 900;
}

.parish-quiz-welcome-card button {
    min-height: 50px;
    border: 0;
    border-radius: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2457a6, #14966d);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(20, 150, 109, .24);
}

.parish-quiz-welcome-card button:hover,
.parish-quiz-welcome-card button:focus {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(20, 150, 109, .30);
}

.parish-quiz-head {
    margin-bottom: 22px;
    text-align: center;
}

.public-quiz-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 5px 12px;
    background: #f2a900;
    color: #071b4d;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.parish-quiz-head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3.15rem);
    line-height: 1.05;
}

.parish-quiz-head p {
    max-width: 620px;
    margin: 12px auto 0;
    color: rgba(255,255,255,.82);
    font-weight: 700;
}

.parish-quiz-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(18px, 4vw, 34px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(247, 250, 255, .92)),
        #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.public-quiz-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.parish-quiz-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.parish-quiz-levels {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.parish-quiz-level {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.82);
    color: #667085;
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.public-quiz-menu .parish-quiz-level {
    min-height: 82px;
    display: grid;
    align-content: center;
    gap: 5px;
    border-color: #d7e3f7;
    background: #f8fbff;
}

.parish-quiz-level strong,
.parish-quiz-level span {
    display: block;
}

.parish-quiz-level strong {
    color: #0b2a66;
    font-size: .95rem;
}

.parish-quiz-level span {
    color: #667085;
    font-size: .76rem;
    line-height: 1.25;
    text-transform: none;
}

.parish-quiz-level:hover,
.parish-quiz-level:focus {
    transform: translateY(-2px);
    border-color: #f2a900;
    box-shadow: 0 12px 24px rgba(7, 27, 77, .10);
}

.parish-quiz-level.is-active {
    border-color: #2457a6;
    background: linear-gradient(135deg, #eef4ff, #fff7e4);
    color: #2457a6;
    box-shadow: inset 0 0 0 2px rgba(36, 87, 166, .08);
}

.parish-quiz-level.is-complete {
    border-color: #14966d;
    background: #ecfdf3;
    color: #0f5132;
}

.parish-quiz-level.is-locked,
.parish-quiz-level:disabled {
    cursor: not-allowed;
    opacity: .58;
    transform: none;
    box-shadow: none;
}

.parish-quiz-level:disabled {
    cursor: default;
}

.parish-quiz-level.is-active:disabled,
.parish-quiz-level.is-complete:disabled {
    opacity: 1;
}

.parish-quiz-level.is-locked:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.parish-quiz-stats {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.parish-quiz-timer {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff7ed;
    color: #c2410c;
    font-weight: 900;
    white-space: nowrap;
}

.parish-quiz-timer.is-warning {
    background: #fef2f2;
    color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.parish-quiz-score {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: #162033;
    color: #f7c948;
    font-weight: 900;
    white-space: nowrap;
}

.parish-quiz-progress {
    height: 12px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: #e6ebf3;
    overflow: hidden;
}

.parish-quiz-progress span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #2457a6, #14966d, #f7c948);
    transition: width .28s ease;
}

.parish-quiz-stage {
    min-height: 390px;
    padding: clamp(20px, 4vw, 34px);
    border-radius: 8px;
    background:
        radial-gradient(circle at right top, rgba(242, 169, 0, .18), transparent 32%),
        linear-gradient(150deg, rgba(7, 27, 77, .98), rgba(36, 87, 166, .92)),
        #071b4d;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}

.parish-quiz-meta {
    color: #f7c948;
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.parish-quiz-stage h3 {
    min-height: 82px;
    margin: 12px 0 22px;
    font-size: clamp(1.35rem, 3vw, 2.15rem);
    line-height: 1.18;
}

.parish-quiz-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.parish-quiz-option {
    min-height: 68px;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    color: #fff;
    text-align: left;
    padding: 14px;
    font-weight: 800;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
    word-break: break-word;
}

.parish-quiz-option:hover,
.parish-quiz-option:focus {
    transform: translateY(-1px);
    border-color: rgba(247, 201, 72, .76);
    background: rgba(255,255,255,.16);
}

.parish-quiz-option-letter {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #f7c948;
    font-weight: 900;
}

.parish-quiz-option.is-selected {
    border-color: #f7c948;
    background: rgba(247, 201, 72, .18);
}

.parish-quiz-option.is-correct {
    border-color: #14966d;
    background: rgba(20, 150, 109, .28);
}

.parish-quiz-option.is-wrong {
    border-color: #d92d20;
    background: rgba(217, 45, 32, .28);
}

.parish-quiz-feedback {
    min-height: 26px;
    margin-top: 16px;
    color: rgba(255,255,255,.86);
    font-weight: 800;
}

.parish-quiz-feedback.is-correct {
    color: #98f0bd;
}

.parish-quiz-feedback.is-wrong {
    color: #ffb4ad;
}

.parish-quiz-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.parish-quiz-next,
.parish-quiz-reset {
    min-height: 48px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 900;
}

.parish-quiz-next {
    flex: 1 1 220px;
    border: 0;
    background: linear-gradient(135deg, #2457a6, #14966d);
    text-align: center;
    color: #fff;
}

.parish-quiz-next:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.parish-quiz-reset {
    flex: 0 0 auto;
    border: 1px solid #d7e3f7;
    background: #fff;
    color: #2457a6;
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    body.print-page {
        background: #fff;
        padding: 0;
    }

    .member-print-sheet {
        width: 100%;
        min-height: 100vh;
        box-shadow: none;
        border: 0;
        padding: 18mm;
    }

    .record-print-sheet {
        width: 100%;
        min-height: 100vh;
        box-shadow: none;
        border: 0;
        padding: 16mm;
    }

    .assembly-print-sheet {
        width: 100%;
        min-height: 100vh;
        box-shadow: none;
        border: 0;
        padding: 29mm 19mm 13mm;
    }
}

@media (max-width: 820px) {
    .app-shell {
        --sidebar-width: min(86vw, 320px);
    }

    .app-shell.sidebar-open .main { margin-left: 0; }

    .sidebar-backdrop {
        position: fixed;
        z-index: 1035;
        inset: 0;
        border: 0;
        padding: 0;
        opacity: 0;
        background: rgba(12, 22, 38, .48);
        backdrop-filter: blur(2px);
        pointer-events: none;
        transition: opacity .3s ease;
    }

    .app-shell.sidebar-open + .sidebar-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .topbar,
    .page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-panel {
        grid-template-columns: 1fr;
    }

    .login-intro {
        min-height: auto;
        padding: 32px;
    }

    .login-card {
        padding: 32px;
    }
}

@media (max-width: 560px) {
    .topbar {
        padding: 12px 16px;
    }

    .topbar-leading { gap: 10px; }
    .topbar-user-name strong { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .main,
    .sidebar-toggle,
    .sidebar-toggle-lines i,
    .sidebar-backdrop { transition-duration: .01ms !important; }
}

@media (min-width: 1440px) {
    .parish-hero {
        grid-template-columns: minmax(0, 1fr) 540px;
        gap: 82px;
    }

    .parish-hero-content {
        padding-top: 86px;
        padding-bottom: 86px;
    }

    .parish-hero-card-main {
        min-height: 320px;
    }

    .parish-hero-mini div {
        min-height: 122px;
    }

    .parish-banner {
        min-height: 320px;
    }
}

@media (min-width: 1600px) and (max-height: 920px) {
    .parish-hero-content {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .parish-hero h1 {
        font-size: clamp(3.8rem, 4.8vw, 5.15rem);
    }

    .parish-hero-highlights {
        margin-top: 28px;
    }

    .parish-hero-card-main {
        min-height: 280px;
    }

    .parish-hero-mini div {
        min-height: 104px;
    }
}

@media (max-width: 900px) {
    .member-profile-head,
    .member-profile-grid,
    .member-family,
    .member-print-grid,
    .member-print-sheet footer,
    .record-profile-hero,
    .record-profile-highlights,
    .record-profile-grid,
    .record-profile-family,
    .record-print-grid,
    .record-print-sheet footer,
    .parish-hero,
    .parish-banners,
    .parish-section,
    .parish-contact {
        grid-template-columns: 1fr;
    }

    .parish-quiz-top,
    .parish-quiz-options {
        grid-template-columns: 1fr;
    }

    .parish-quiz-score {
        justify-content: flex-start;
    }

    .parish-header {
        position: sticky;
        top: 0;
        align-items: flex-start;
        flex-direction: column;
        padding: 10px 16px;
    }

    .parish-nav {
        justify-content: flex-start;
    }

    .parish-hero {
        min-height: calc(100vh - 124px);
        min-height: calc(100dvh - 124px);
        gap: 0;
        padding-right: 0;
    }

    .parish-hero-art {
        display: none;
        min-height: clamp(260px, 42dvh, 430px);
        order: -1;
    }

    .parish-hero-content {
        max-width: none;
        padding: clamp(28px, 8vw, 54px) 24px;
    }

    .parish-hero-panel {
        width: 100%;
        padding: 0 24px clamp(30px, 8vw, 54px);
    }

    .parish-hero-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .parish-banners {
        grid-template-columns: 1fr;
    }

    .record-print-sheet header {
        align-items: flex-start;
        flex-direction: column;
    }

    .record-print-letterhead {
        width: 100%;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .attendance-profile-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .parish-header {
        min-height: auto;
    }

    .parish-brand {
        min-height: 46px;
    }

    .parish-brand span {
        width: 40px;
        height: 40px;
    }

    .parish-nav {
        width: 100%;
        gap: 6px;
    }

    .parish-nav a {
        min-height: 38px;
        font-size: .92rem;
    }

    .parish-hero {
        min-height: auto;
    }

    .parish-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.6rem);
    }

    .parish-hero-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .content {
        padding: 16px;
    }

    .search-form {
        width: 100%;
    }

    .search-form .input-group {
        flex-wrap: wrap;
    }

    .search-form .form-control {
        flex-basis: 100%;
    }

    .search-form .btn {
        flex: 1 1 0;
    }

    .user-box {
        flex-wrap: wrap;
    }

    .member-profile-head {
        text-align: center;
    }

    .member-profile-head img,
    .record-profile-photo {
        margin: 0 auto;
    }

    .record-profile-hero {
        text-align: center;
    }

    .print-page {
        padding: 0;
    }

    .member-print-sheet,
    .record-print-sheet,
    .assembly-print-sheet {
        padding: 18px;
    }

    .parish-header,
    .parish-banners,
    .parish-quiz,
    .parish-section,
    .parish-contact {
        width: min(100% - 20px, var(--parish-container));
    }

    .parish-header,
    .parish-hero {
        width: 100%;
    }

    .parish-nav a {
        padding: 9px 10px;
    }

    .parish-hero {
        min-height: auto;
    }

    .parish-hero-actions .btn {
        width: 100%;
    }

    .parish-hero-highlights {
        grid-template-columns: 1fr;
    }

    .parish-hero-highlights div {
        min-height: auto;
        padding: 14px 16px;
    }

    .parish-hero-card-main {
        min-height: 240px;
    }

    .parish-hero-mini {
        grid-template-columns: 1fr;
    }

    .parish-hero-mini div {
        min-height: 92px;
    }

    .parish-banner {
        min-height: 240px;
    }

    .parish-timeline div {
        padding-left: 70px;
    }

}
.assembly-modal-toolbar {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    margin: -16px -16px 16px;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.assembly-modal-toolbar .btn {
    white-space: nowrap;
}

.assembly-modal-toolbar .attendance-filter.active {
    color: #fff;
    background: #334155;
    border-color: #334155;
}

.assembly-attendance-meta {
    margin-bottom: 14px;
}

.assembly-attendance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.assembly-attendance-summary span {
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    background: #f8fafc;
}

.assembly-attendance-table th,
.assembly-attendance-table td {
    vertical-align: middle;
}

.assembly-attendance-table .attendance-checkbox {
    width: 22px;
    height: 22px;
}

.news-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.news-admin-card {
    background: linear-gradient(135deg, #0b2a66, #174ea6);
    color: #fff;
}

.news-pill,
.news-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: .75rem;
    font-weight: 800;
}

.news-pill {
    color: #0b2a66;
    background: #f2a900;
}

.news-status {
    color: #0b2a66;
    background: #e7eefc;
}

.news-status-publicado {
    color: #0f5132;
    background: #d1e7dd;
}

.news-status-arquivado {
    color: #842029;
    background: #f8d7da;
}

.news-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
}

.news-form-side {
    display: grid;
    align-content: start;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #f8fafc;
}

.news-form-side strong {
    color: #0b2a66;
    font-size: 1rem;
}

.news-form-side span,
.news-check {
    color: #475467;
    font-weight: 700;
}

.news-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-media-section {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.news-media-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.news-media-head h5 {
    margin: 0;
    color: #0b2a66;
    font-weight: 900;
}

.news-media-row,
.news-video-row {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.news-media-row {
    grid-template-columns: 1.3fr 1fr 1fr 90px 110px;
}

.news-video-row {
    grid-template-columns: 1.2fr 1.4fr 1fr 90px 80px 110px;
}

.news-existing-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.news-existing-media div {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.news-existing-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.news-existing-media span,
.news-existing-list span,
.news-existing-list a {
    display: block;
    padding: 8px 10px;
    color: #0b2a66;
    font-weight: 800;
    text-decoration: none;
}

.news-preview-cover {
    width: 100%;
    max-height: 380px;
    border-radius: 8px;
    object-fit: cover;
    object-position: top center;
}

.news-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.news-preview-meta span {
    border-radius: 999px;
    padding: 5px 10px;
    color: #0b2a66;
    background: #e7eefc;
    font-weight: 800;
    font-size: .82rem;
}

.news-preview h3,
.public-news-detail h1 {
    color: #071b4d;
    font-weight: 900;
}

.news-video-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.news-video-preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.news-video-preview video,
.news-video-preview iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
}

.parish-news-page {
    margin: 0;
    background: #f7f9fd;
    color: #071b4d;
    font-family: Arial, Helvetica, sans-serif;
}

.site-news-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 110px;
    padding: 16px clamp(18px, 4vw, 64px);
    background: #fff;
    box-shadow: 0 2px 18px rgba(7, 27, 77, .08);
}

.site-news-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #071b4d;
    text-decoration: none;
}

.site-news-brand img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.site-news-brand strong {
    display: block;
    text-transform: uppercase;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1;
}

.site-news-brand em {
    display: block;
    color: #d89600;
    font-size: .92rem;
    font-weight: 700;
}

.site-news-brand small {
    color: #071b4d;
    font-weight: 800;
}

.site-news-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.site-news-nav a {
    position: relative;
    color: #071b4d;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .88rem;
    font-weight: 900;
}

.site-news-nav a.active,
.site-news-nav a:hover {
    color: #d89600;
}

.site-news-nav .login {
    border-radius: 6px;
    padding: 14px 18px;
    color: #fff;
    background: #0b2a66;
}

.public-news-wrap {
    width: min(100% - 32px, 1680px);
    margin: 18px auto 0;
}

.public-news-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 500px;
    gap: 18px;
}

.public-featured,
.daily-verse,
.upcoming-events,
.public-about-strip,
.public-quiz-panel,
.public-news-detail {
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(7, 27, 77, .10);
}

.public-featured {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 450px;
    padding: clamp(24px, 4vw, 54px);
    color: #fff;
    background-position: top center;
    background-size: cover;
    overflow: hidden;
}

.public-featured span,
.latest-news-card span {
    align-self: flex-start;
    border-radius: 4px;
    padding: 5px 9px;
    color: #fff;
    background: #f2a900;
    text-transform: uppercase;
    font-size: .75rem;
    font-weight: 900;
}

.public-featured h1 {
    max-width: 720px;
    margin: 18px 0 10px;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 900;
}

.public-featured p {
    max-width: 630px;
    font-size: 1.08rem;
    line-height: 1.65;
}

.public-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 16px 0 22px;
}

.public-featured a {
    width: fit-content;
    border-radius: 7px;
    padding: 13px 32px;
    color: #fff;
    background: #073c9d;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 900;
}

.daily-verse {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 410px;
    padding: 34px;
    text-align: center;
    background: radial-gradient(circle at center bottom, rgba(242, 169, 0, .30), transparent 45%), #fff7e4;
}

.verse-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: #f2a900;
    background: #0b2a66;
    font-weight: 900;
}

.daily-verse h2,
.public-section-head h2 {
    margin: 14px 0;
    color: #0b2a66;
    text-transform: uppercase;
    font-size: 1.35rem;
    font-weight: 900;
}

.daily-verse strong {
    max-width: 330px;
    font-size: 1.55rem;
    line-height: 1.35;
}

.daily-verse span {
    margin-top: 12px;
    color: #d89600;
    font-size: 1.15rem;
    font-weight: 900;
}

.public-news-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 500px;
    gap: 18px;
    margin-top: 18px;
}

.public-news-column,
.upcoming-events {
    background: #fff;
}

.public-news-column {
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(7, 27, 77, .07);
}

.public-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.public-section-head a {
    color: #0067e6;
    font-weight: 900;
    text-decoration: none;
}

.latest-news-grid,
.recent-video-grid,
.home-photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.latest-news-card img,
.recent-video-thumb img,
.recent-video-thumb video,
.home-photo-gallery img {
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 8px;
    object-fit: cover;
    object-position: top center;
}

.latest-news-card > a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #e6ebf3;
}

.latest-news-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: -30px;
    padding: 0 6px;
    position: relative;
}

.latest-news-card time,
.recent-video-card time {
    color: #071b4d;
    font-size: .82rem;
}

.latest-news-card h3,
.recent-video-card h3 {
    margin: 12px 0 6px;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.25;
}

.latest-news-card h3 a {
    color: #071b4d;
    text-decoration: none;
}

.latest-news-card p {
    color: #263858;
    font-size: .88rem;
    line-height: 1.4;
}

.recent-video-thumb {
    position: relative;
}

.recent-video-thumb button {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .78);
    transform: translate(-50%, -50%);
}

.recent-video-thumb button::before {
    content: "";
    display: block;
    margin: 0 auto;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
}

.recent-video-thumb span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-radius: 4px;
    padding: 3px 6px;
    color: #fff;
    background: rgba(0, 0, 0, .78);
    font-size: .78rem;
    font-weight: 900;
}

.upcoming-events {
    align-self: start;
    padding: 18px 22px;
}

.event-line {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #dfe5ef;
}

.event-line div {
    display: grid;
    place-items: center;
    border-radius: 6px;
    min-height: 64px;
    color: #fff;
    background: #0b2a66;
}

.event-line strong {
    font-size: 1.35rem;
    line-height: 1;
}

.event-line span {
    font-size: .75rem;
    font-weight: 900;
}

.event-line p {
    margin: 0;
}

.event-line b,
.event-line small {
    display: block;
}

.event-line b {
    margin-bottom: 6px;
    font-size: 1.02rem;
}

.event-line small {
    color: #263858;
}

.public-about-strip,
.public-quiz-panel,
.public-news-detail {
    margin: 18px 0;
    padding: clamp(24px, 4vw, 42px);
    background: #fff;
}

.public-about-strip h2,
.public-quiz-panel h1 {
    color: #0b2a66;
    font-weight: 900;
}

.public-news-footer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
    padding: 18px clamp(18px, 4vw, 64px);
    color: #fff;
    background: #06245f;
    border-top: 3px solid #d89600;
}

.public-news-footer div {
    display: grid;
    gap: 4px;
}

.public-news-footer strong {
    text-transform: uppercase;
}

.detail-cover {
    width: 100%;
    max-height: 560px;
    border-radius: 8px;
    object-fit: cover;
    object-position: top center;
}

.detail-body {
    color: #263858;
    font-size: 1.05rem;
    line-height: 1.75;
}

@media (max-width: 1180px) {
    .public-news-hero,
    .public-news-main {
        grid-template-columns: 1fr;
    }

    .public-quiz-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .latest-news-grid,
    .recent-video-grid,
    .home-photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-news-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-news-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .news-media-row,
    .news-video-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-news-brand img {
        width: 54px;
        height: 54px;
    }

    .site-news-nav {
        justify-content: flex-start;
    }

    .latest-news-grid,
    .recent-video-grid,
    .home-photo-gallery,
    .public-quiz-menu,
    .public-news-footer,
    .news-admin-grid {
        grid-template-columns: 1fr;
    }

    .public-featured,
    .daily-verse {
        min-height: 320px;
    }
}

.parish-news-page {
    background:
        linear-gradient(180deg, rgba(245, 248, 252, .96), rgba(255, 255, 255, .86) 34%, rgba(238, 244, 241, .95)),
        #f6f8fb;
}

.site-news-header {
    min-height: 92px;
    border-bottom: 1px solid rgba(7, 27, 77, .08);
    background:
        radial-gradient(circle at 8% 0%, rgba(242, 169, 0, .12), transparent 28%),
        linear-gradient(110deg, rgba(255, 255, 255, .97), rgba(247, 251, 255, .94));
    box-shadow: 0 18px 48px rgba(7, 27, 77, .10), inset 0 -1px 0 rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px);
}

.site-news-brand {
    min-width: min(430px, 100%);
}

.site-news-brand img {
    width: 76px;
    height: 76px;
    border: 1px solid rgba(7, 60, 157, .10);
    border-radius: 18px;
    padding: 5px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(7, 27, 77, .14), 0 0 0 5px rgba(20, 132, 101, .07);
}

.site-news-brand strong {
    color: #06245f;
    letter-spacing: 0;
}

.site-news-brand em {
    color: #b47a00;
}

.site-news-nav {
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(7, 27, 77, .08);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(239, 246, 255, .92));
    box-shadow: 0 10px 24px rgba(7, 27, 77, .06);
}

.site-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid rgba(7, 27, 77, .12);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, #edf5ff);
    color: #06245f;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(7, 27, 77, .10);
    transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}

.site-menu-toggle:hover {
    color: #0b5b85;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(7, 27, 77, .16);
}

.site-menu-toggle-close {
    display: none;
    font-size: 1.05rem;
}

.site-news-header.is-menu-open .site-menu-toggle-open {
    display: none;
}

.site-news-header.is-menu-open .site-menu-toggle-close {
    display: inline;
}

.site-news-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    padding: 10px 13px;
    color: #10254c;
    font-size: .78rem;
    letter-spacing: .035em;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.site-news-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: #f2a900;
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .18s ease, transform .18s ease;
}

.site-news-nav a.active,
.site-news-nav a:hover {
    color: #063d81;
    background: #fff;
    box-shadow: 0 8px 20px rgba(7, 27, 77, .10);
    transform: translateY(-1px);
}

.site-news-nav a.active::after,
.site-news-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-news-nav .login {
    margin-left: 3px;
    padding-inline: 17px;
    background: linear-gradient(135deg, #073c9d, #0a6991 52%, #148465);
    box-shadow: 0 12px 26px rgba(7, 60, 157, .22), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.site-news-nav .login,
.site-news-nav .login:hover {
    color: #fff;
}

.site-news-nav .login::after {
    background: rgba(255, 255, 255, .86);
}

.site-news-nav .login:hover {
    box-shadow: 0 16px 30px rgba(7, 60, 157, .28), inset 0 1px 0 rgba(255, 255, 255, .2);
    transform: translateY(-2px);
}

.public-news-wrap {
    margin-top: 24px;
}

.public-featured-carousel {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(7, 27, 77, .18);
    isolation: isolate;
}

.public-featured-carousel::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    height: 5px;
    background: linear-gradient(90deg, #f2a900, #148465, #073c9d);
}

.public-featured {
    position: absolute;
    inset: 0;
    min-height: 100%;
    border-radius: 0;
    opacity: 0;
    transform: none;
    transition: opacity .75s ease;
    box-shadow: none;
}

.public-featured.is-active {
    z-index: 2;
    opacity: 1;
    transform: none;
}

.public-featured span,
.latest-news-card span {
    background: linear-gradient(135deg, #f2a900, #d66c00);
    box-shadow: 0 10px 22px rgba(214, 108, 0, .22);
}

.public-featured h1 {
    text-shadow: 0 3px 20px rgba(0, 0, 0, .28);
}

.public-featured a {
    background: linear-gradient(135deg, #f2a900, #d66c00);
    box-shadow: 0 14px 30px rgba(214, 108, 0, .24);
    transition: transform .18s ease, box-shadow .18s ease;
}

.public-featured a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(214, 108, 0, .32);
}

.public-featured-dots {
    position: absolute;
    left: clamp(24px, 4vw, 54px);
    bottom: 22px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.public-featured-dots span {
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    transition: width .2s ease, background .2s ease;
}

.public-featured-dots span.is-active {
    width: 52px;
    background: #f2a900;
}

.daily-verse {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(150deg, rgba(255, 249, 230, .94), rgba(236, 248, 243, .96)),
        #fff;
    border: 1px solid rgba(242, 169, 0, .16);
}

.daily-verse::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(11, 42, 102, .10);
    border-radius: 8px;
    pointer-events: none;
}

.verse-icon {
    background: linear-gradient(135deg, #073c9d, #148465);
    box-shadow: 0 16px 32px rgba(7, 60, 157, .20);
}

.public-news-column,
.upcoming-events,
.public-about-strip {
    border: 1px solid rgba(7, 27, 77, .08);
    box-shadow: 0 16px 42px rgba(7, 27, 77, .08);
}

.latest-news-card,
.recent-video-card {
    min-width: 0;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

.latest-news-card:hover,
.recent-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(7, 27, 77, .11);
}

.latest-news-card img,
.recent-video-thumb img,
.recent-video-thumb video,
.home-photo-gallery img {
    box-shadow: 0 10px 24px rgba(7, 27, 77, .10);
}

.recent-video-thumb {
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(7, 27, 77, .96), rgba(18, 35, 61, .92)),
        #071b4d;
}

.recent-video-thumb video {
    display: block;
    background: #071b4d;
}

.upcoming-events {
    background:
        linear-gradient(180deg, #fff, #f7fbff);
}

.event-line div {
    background: linear-gradient(135deg, #073c9d, #148465);
}

.public-about-strip {
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(7, 60, 157, .96), rgba(20, 132, 101, .92)),
        #073c9d;
    color: #fff;
}

.public-about-strip h2 {
    color: #fff;
}

.public-about-strip p {
    max-width: 840px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 1.05rem;
}

.public-news-footer {
    background:
        linear-gradient(135deg, #041633, #06245f 58%, #0c5c4d),
        #06245f;
}

.about-page {
    display: grid;
    gap: 24px;
}

.about-hero {
    min-height: 560px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: clamp(20px, 4vw, 48px);
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    padding: clamp(26px, 5vw, 58px);
    background:
        linear-gradient(135deg, rgba(7, 27, 77, .96), rgba(20, 132, 101, .9)),
        #071b4d;
    color: #fff;
    box-shadow: 0 24px 60px rgba(7, 27, 77, .18);
}

.about-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 7px;
    background: linear-gradient(90deg, #f2a900, #148465, #073c9d);
}

.about-hero-copy {
    position: relative;
    z-index: 1;
}

.about-hero-copy span,
.about-section-head span,
.about-mission-grid span,
.about-story span,
.about-visitor span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff7e4;
    color: #9a6500;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.about-hero h1 {
    max-width: 640px;
    margin: 0;
    font-size: clamp(2.45rem, 6vw, 5rem);
    line-height: .98;
}

.about-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.88);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.65;
    font-weight: 700;
}

.about-hero img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .28);
    position: relative;
    z-index: 1;
}

.about-mission-grid,
.about-values-grid,
.about-leadership-grid,
.about-visitor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.about-mission-grid article,
.about-values-grid article,
.about-leadership-grid article,
.about-visitor,
.about-story {
    border: 1px solid rgba(7, 27, 77, .08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(7, 27, 77, .08);
}

.about-mission-grid article {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 4vw, 34px);
}

.about-mission-grid article::before,
.about-values-grid article::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f2a900, #148465);
}

.about-mission-grid h2,
.about-section-head h2,
.about-story h2,
.about-visitor h2 {
    margin: 0;
    color: #06245f;
    font-weight: 900;
}

.about-mission-grid p,
.about-values-grid p,
.about-story p,
.about-leadership-grid p,
.about-visitor p {
    margin: 12px 0 0;
    color: #344054;
    line-height: 1.65;
    font-weight: 700;
}

.about-section {
    padding: clamp(10px, 2vw, 18px) 0;
}

.about-section-head {
    margin-bottom: 16px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.about-values-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-values-grid article {
    min-height: 180px;
    padding: 22px;
}

.about-values-grid article {
    transition: transform .18s ease, box-shadow .18s ease;
}

.about-values-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(7, 27, 77, .12);
}

.about-values-grid strong {
    display: block;
    color: #06245f;
    font-size: 1.05rem;
}

.about-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 18px;
    align-items: center;
    padding: clamp(22px, 4vw, 38px);
}

.about-story-note {
    border-radius: 8px;
    padding: 22px;
    background: linear-gradient(135deg, #fff7e4, #ecfdf3);
}

.about-story-note strong {
    display: block;
    color: #0c5c4d;
    font-size: 1.15rem;
}

.about-leadership-grid article {
    min-width: 0;
}

.about-leadership-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-leader-card {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 16px;
    min-height: 360px;
    padding: 24px;
    text-align: center;
    background:
        linear-gradient(180deg, #fff, #f8fbff),
        #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

.about-leader-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #073c9d, #148465, #f2a900);
}

.about-leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(7, 27, 77, .14);
}

.about-leader-card span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #06245f;
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.about-leader-card img {
    width: min(100%, 220px);
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    padding: 10px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #f2a900, #148465, #073c9d) border-box;
    border: 5px solid transparent;
    box-shadow: 0 18px 38px rgba(7, 27, 77, .13);
}

.about-leader-card h3 {
    margin: 0;
    color: #06245f;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 900;
}

.about-visitor {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    padding: clamp(22px, 4vw, 38px);
    background:
        radial-gradient(circle at 88% 18%, rgba(242, 169, 0, .18), transparent 28%),
        #fff;
}

.about-visitor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-visitor-grid p {
    margin: 0;
    border-left: 4px solid #148465;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f8fbff;
}

@media (max-width: 1180px) {
    .site-news-header {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .site-menu-toggle {
        display: grid;
        margin-left: auto;
    }

    .site-news-nav {
        display: none;
        width: 100%;
        justify-content: flex-start;
        order: 3;
    }

    .site-news-header.is-menu-open .site-news-nav {
        display: flex;
    }

    .public-featured-carousel {
        min-height: 470px;
    }

    .about-hero,
    .about-story,
    .about-visitor {
        grid-template-columns: 1fr;
    }

    .about-values-grid,
    .about-leadership-grid,
    .about-visitor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-news-header {
        padding: 14px 12px;
    }

    .site-news-brand {
        min-width: 0;
    }

    .site-news-brand span {
        min-width: 0;
    }

    .site-news-brand strong {
        font-size: 1.1rem;
    }

    .site-news-brand em {
        font-size: .78rem;
    }

    .site-news-nav,
    .site-news-header.is-menu-open .site-news-nav {
        display: none;
        grid-template-columns: 1fr;
    }

    .site-news-header.is-menu-open .site-news-nav {
        display: grid;
    }

    .site-news-nav a {
        justify-content: center;
        text-align: center;
    }

    .parish-quiz-welcome {
        padding: 14px;
    }

    .parish-quiz-welcome-grid {
        grid-template-columns: 1fr;
    }

    .parish-quiz-welcome-grid strong {
        min-height: 66px;
    }

    .about-hero {
        min-height: auto;
        padding: 24px 18px;
    }

    .about-mission-grid,
    .about-values-grid,
    .about-leadership-grid,
    .about-visitor-grid {
        grid-template-columns: 1fr;
    }

    .public-featured-carousel {
        min-height: 420px;
    }

    .public-featured {
        padding: 24px 18px 44px;
    }

    .public-featured h1 {
        font-size: 1.75rem;
    }

    .public-featured p {
        font-size: .95rem;
    }

    .public-featured-dots {
        left: 18px;
        bottom: 16px;
    }
}

.site-news-nav a.login:hover,
.site-news-nav a.login:focus {
    color: #fff;
    background: linear-gradient(135deg, #073c9d, #148465);
    box-shadow: 0 14px 30px rgba(7, 60, 157, .28);
}

.latest-news-card h3,
.latest-news-card h3 a,
.recent-video-card h3 {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    word-break: normal;
    overflow-wrap: anywhere;
}

.latest-news-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: start;
}

.latest-news-card {
    height: auto;
    align-self: start;
}

.latest-news-card h3 {
    margin-top: 16px;
    font-size: 1.08rem;
    line-height: 1.36;
}

.public-featured h1,
.public-featured h2 {
    width: 100%;
    max-width: none;
    margin: 18px 0 10px;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 900;
    color: #fff;
    text-align: left;
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .28);
}

.latest-news-card h2,
.latest-news-card h2 a {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    word-break: normal;
    overflow-wrap: anywhere;
}

.latest-news-card h2 {
    margin: 16px 0 6px;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.36;
}

.latest-news-card h2 a {
    color: #071b4d;
    text-decoration: none;
}

@media (max-width: 640px) {
    .public-featured h2 {
        font-size: 1.75rem;
    }
}

/* Historial da paróquia */
.about-history {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: start;
}

.about-history-intro p,
.about-history-detail > p {
    max-width: 78ch;
}

.about-history-timeline {
    position: sticky;
    top: 128px;
    border: 1px solid #dfe8f7;
    border-radius: 14px;
    padding: 22px;
    background: linear-gradient(145deg, #f8fbff, #edf7f2);
}

.about-history-timeline-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.about-history-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0; border-radius: 50%; padding: 0; color: #fff; background: linear-gradient(135deg, #0b2a66, #148465); font-size: 1.2rem; }
.about-history-timeline-head small, .about-history-timeline-head strong { display: block; }
.about-history-timeline-head small { color: #148465; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.about-history-timeline-head strong { color: #06245f; font-size: 1.15rem; }

.about-history-timeline ol { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.about-history-timeline li { position: relative; padding-left: 22px; color: #344054; font-size: .92rem; font-weight: 700; line-height: 1.45; }
.about-history-timeline li::before { content: ""; position: absolute; top: .3rem; left: 0; width: 10px; height: 10px; border: 3px solid #fff; border-radius: 50%; background: #d89600; box-shadow: 0 0 0 2px #d89600; }
.about-history-timeline time, .about-history-timeline li span { display: block; }
.about-history-timeline time { margin-bottom: 2px; color: #0b2a66; font-weight: 900; }

.about-history-detail { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid #e4eaf3; }
.about-history-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.about-history-columns article, .about-pastors { border: 1px solid #e1e8f2; border-radius: 12px; padding: 22px; background: #fbfdff; }
.about-history-columns h3, .about-pastors h3 { margin: 0; color: #0b2a66; font-size: 1.05rem; font-weight: 900; }
.about-history-columns ol, .about-pastors ol { margin: 14px 0 0; padding-left: 1.3rem; color: #263858; font-weight: 700; line-height: 1.65; }
.about-pastors { margin-top: 16px; }
.about-pastors ol { columns: 2; column-gap: 34px; }
.about-pastors li { break-inside: avoid; margin-bottom: 6px; }
.about-pastors em { color: #148465; font-size: .9em; }

.about-history-quote { margin: 16px 0 0; border-left: 5px solid #d89600; border-radius: 0 12px 12px 0; padding: 20px 24px; background: linear-gradient(90deg, #fff7e4, #fffdf8); }
.about-history-quote p { margin: 0; }
.about-history-quote p + p { margin-top: 10px; }
.about-history-quote q { color: #0b2a66; font-style: italic; font-weight: 900; }

@media (max-width: 1180px) {
    .about-history { grid-template-columns: 1fr; }
    .about-history-timeline { position: static; }
}

@media (max-width: 640px) {
    .about-history-columns { grid-template-columns: 1fr; }
    .about-pastors ol { columns: 1; }
    .about-history-timeline, .about-history-columns article, .about-pastors { padding: 18px; }
}

/* Histórico financeiro na ficha do membro */
.member-finance-actions { border: 1px solid #dbe5f3; border-radius: 14px; padding: 20px; background: linear-gradient(135deg, #fbfdff, #f4f9f7); box-shadow: 0 14px 32px rgba(36, 87, 166, .08); }
.member-finance-actions-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid #dfe8f2; }
.member-finance-actions-head span, .member-finance-history-head > div > span { color: #148465; font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.member-finance-actions-head h4 { margin: 4px 0 0; color: #0b2a66; font-size: 1.18rem; font-weight: 900; }
.member-finance-actions-head p { max-width: 460px; margin: 0; color: #667085; font-size: .9rem; font-weight: 700; }
.member-finance-action-groups { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-top: 16px; }
.member-finance-action-group { border: 1px solid #dfe8f2; border-radius: 12px; padding: 16px; background: #fff; }
.member-finance-action-group > strong { display: block; margin-bottom: 11px; color: #0b2a66; font-size: .94rem; }
.member-finance-action-group > div { display: flex; flex-wrap: wrap; gap: 8px; }
.member-finance-action-group .btn { min-height: 36px; font-size: .82rem; }
.member-finance-action-group.is-tithe { border-top: 4px solid #148465; }.member-finance-action-group.is-contribution { border-top: 4px solid #2457a6; }
.member-finance-action-group.is-attendance { border-top: 4px solid #d89600; }

.member-finance-history { display: grid; gap: 18px; }.member-finance-history-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.member-finance-history-head h4 { margin: 4px 0; color: #0b2a66; font-size: 1.35rem; font-weight: 900; }.member-finance-history-head small { color: #667085; font-weight: 700; }
.member-finance-year-form { display: flex; align-items: center; gap: 8px; border: 1px solid #d0dbe9; border-radius: 9px; padding: 8px 10px; background: #f8fbff; }.member-finance-year-form label { color: #475467; font-size: .8rem; font-weight: 900; }.member-finance-year-form select { border: 0; color: #0b2a66; background: transparent; font-weight: 900; outline: 0; }
.member-finance-total-card { display: grid; gap: 4px; border-radius: 14px; padding: 20px; color: #fff; background: linear-gradient(135deg, #0b2a66, #174ea6); box-shadow: 0 14px 30px rgba(11, 42, 102, .18); }.member-finance-history-dizimos .member-finance-total-card { background: linear-gradient(135deg, #0c5c4d, #148465); }.member-finance-total-card span { font-size: .8rem; font-weight: 800; opacity: .86; text-transform: uppercase; letter-spacing: .06em; }.member-finance-total-card strong { font-size: 1.75rem; }.member-finance-total-card small { opacity: .82; font-weight: 700; }
.member-finance-history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.member-finance-month-list { border: 1px solid #cce9dd; border-radius: 12px; overflow: hidden; }.member-finance-month-list.is-unpaid { border-color: #f1ddb1; }.member-finance-month-list.is-focused { box-shadow: 0 0 0 3px rgba(20, 132, 101, .16); }.member-finance-month-list h5 { display: flex; justify-content: space-between; margin: 0; padding: 14px 16px; color: #0c5c4d; background: #ecfdf3; font-size: .95rem; }.member-finance-month-list.is-unpaid h5 { color: #8a5a00; background: #fff8e8; }.member-finance-month-list h5 span { display: grid; place-items: center; min-width: 25px; height: 25px; border-radius: 50%; color: #fff; background: #148465; font-size: .75rem; }.member-finance-month-list.is-unpaid h5 span { background: #d89600; }.member-finance-month-list ul { margin: 0; padding: 0; list-style: none; }.member-finance-month-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid #edf1f5; }.member-finance-month-list li div { display: grid; gap: 2px; }.member-finance-month-list li small { color: #667085; font-size: .78rem; font-weight: 700; }.member-finance-month-list li b { color: #0c5c4d; white-space: nowrap; }.member-finance-month-list .is-empty { justify-content: flex-start; color: #667085; font-size: .88rem; }
.member-finance-table { border: 1px solid #dfe8f2; border-radius: 12px; }.member-finance-table .table { margin: 0; }.member-finance-table th { color: #475467; background: #f8fbff; font-size: .77rem; text-transform: uppercase; }.member-finance-history-footer { display: flex; justify-content: flex-end; padding-top: 2px; }

.attendance-history-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; border: 1px solid #dfe8f2; border-radius: 12px; padding: 14px; background: #f8fbff; }.attendance-history-filter label { display: grid; gap: 5px; color: #475467; font-size: .75rem; font-weight: 900; text-transform: uppercase; }.attendance-history-filter input, .attendance-history-filter select { min-height: 38px; border: 1px solid #cdd8e6; border-radius: 7px; padding: 7px 9px; color: #172033; background: #fff; font: inherit; text-transform: none; }.attendance-history-filter .btn { min-height: 38px; white-space: nowrap; }
.attendance-history-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }.attendance-history-metrics > div { display: grid; gap: 5px; min-height: 92px; border: 1px solid #dfe8f2; border-radius: 12px; padding: 14px; background: #fff; }.attendance-history-metrics span { color: #667085; font-size: .74rem; font-weight: 900; text-transform: uppercase; }.attendance-history-metrics strong { color: #0b2a66; font-size: 1.45rem; }.attendance-history-metrics .is-present { border-top: 4px solid #148465; }.attendance-history-metrics .is-present strong { color: #0c5c4d; }.attendance-history-metrics .is-absent { border-top: 4px solid #d89600; }.attendance-history-metrics .is-absent strong { color: #9a6500; }.attendance-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: .78rem; font-weight: 900; }.attendance-status.is-present { color: #0c5c4d; background: #dff8ed; }.attendance-status.is-absent { color: #925f00; background: #fff1d3; }
.attendance-print-sheet header { border-color: #d89600; }.attendance-print-sheet .financial-print-summary { color: #704900; background: #fff8e8; }.attendance-print-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 18px 0; }.attendance-print-metrics span { border: 1px solid #dbe2ea; border-radius: 8px; padding: 10px; color: #475467; font-size: .83rem; }.attendance-print-metrics strong { display: block; margin-top: 4px; color: #0b2a66; font-size: 1.1rem; }

.financial-print-sheet { width: min(900px, 100%); min-height: 100vh; margin: 0 auto; padding: 38px; color: #172033; background: #fff; box-shadow: 0 8px 28px rgba(15, 23, 42, .12); }.financial-print-sheet header { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 3px solid #2457a6; }.financial-print-dizimos header { border-color: #148465; }.financial-print-sheet header img { width: 78px; height: 78px; object-fit: contain; }.financial-print-sheet header p { margin: 0 0 5px; color: #475467; font-size: .82rem; font-weight: 800; text-transform: uppercase; }.financial-print-sheet header h1 { margin: 0 0 6px; color: #0b2a66; font-size: 1.7rem; }.financial-print-sheet header strong, .financial-print-sheet header span { display: block; }.financial-print-sheet header span { margin-top: 3px; color: #667085; font-size: .88rem; }.financial-print-summary { display: flex; justify-content: space-between; gap: 16px; margin: 22px 0; border-radius: 10px; padding: 14px 16px; color: #0b2a66; background: #edf4ff; font-size: 1rem; }.financial-print-dizimos .financial-print-summary { color: #0c5c4d; background: #ecfdf3; }.financial-print-columns { display: grid; grid-template-columns: 1.55fr .75fr; gap: 18px; }.financial-print-sheet h2 { margin: 0 0 12px; color: #0b2a66; font-size: 1.05rem; }.financial-print-sheet table { width: 100%; border-collapse: collapse; }.financial-print-sheet th, .financial-print-sheet td { padding: 10px; border: 1px solid #dbe2ea; text-align: left; }.financial-print-sheet th { color: #475467; background: #f7f9fc; font-size: .76rem; text-transform: uppercase; }.financial-print-sheet ol { margin: 0; padding: 12px 16px 12px 32px; border: 1px solid #dbe2ea; line-height: 1.8; }.financial-print-table { margin-top: 8px; }.financial-print-sheet footer { margin-top: 54px; padding-top: 10px; border-top: 1px solid #98a2b3; color: #667085; font-size: .82rem; }

@media (max-width: 760px) { .member-finance-actions-head, .member-finance-history-head { align-items: flex-start; flex-direction: column; }.member-finance-action-groups, .member-finance-history-grid, .financial-print-columns, .attendance-history-metrics, .attendance-print-metrics { grid-template-columns: 1fr; }.attendance-history-filter { grid-template-columns: 1fr; }.financial-print-sheet { padding: 22px; }.financial-print-summary { align-items: flex-start; flex-direction: column; } }
@media print { .financial-print-sheet { width: 100%; box-shadow: none; } }

/* Educação Cristã */
.educacao-title { position: relative; overflow: hidden; border-radius: 16px; padding: 24px 28px; color: #fff; background: linear-gradient(125deg, #0b2a66, #176a98 58%, #148465); box-shadow: 0 14px 32px rgba(11, 42, 102, .18); }
.educacao-title::after { content: ''; position: absolute; width: 230px; height: 230px; right: -70px; top: -110px; border: 35px solid rgba(255,255,255,.12); border-radius: 50%; }
.educacao-title span { position: relative; z-index: 1; display: block; margin-bottom: 5px; font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; opacity: .84; }
.educacao-title h2 { position: relative; z-index: 1; margin: 0; color: #fff; font-weight: 900; }.educacao-title p { position: relative; z-index: 1; margin: 6px 0 0; opacity: .9; }
.education-choirs { display: inline-block; max-width: 250px; color: #0c5c4d; font-size: .84rem; font-weight: 800; line-height: 1.35; }
.education-report-card { height: 100%; border-radius: 16px; padding: 28px; color: #fff; background: linear-gradient(135deg, #0b2a66, #2457a6); box-shadow: 0 14px 30px rgba(11,42,102,.18); }.education-report-card.is-green { background: linear-gradient(135deg, #0c5c4d, #148465); box-shadow: 0 14px 30px rgba(12,92,77,.18); }.education-report-card span { font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }.education-report-card h4 { margin: 10px 0 8px; font-size: 1.35rem; font-weight: 900; }.education-report-card p { min-height: 48px; margin: 0 0 20px; opacity: .88; }.education-report-card .btn { color: #0b2a66; font-weight: 800; }
.education-view-report { width: min(980px, 100%); margin: 0 auto; border: 1px solid #dbe5f3; border-radius: 14px; padding: 34px; background: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, .1); }.education-view-report header { display: flex; justify-content: center; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 3px solid #0b2a66; text-align: center; }.education-view-report header img { width: 64px; height: 64px; object-fit: contain; }.education-view-report header div { display: grid; gap: 2px; }.education-view-report header strong { color: #0b2a66; font-size: 1.12rem; }.education-view-report header span { color: #475467; font-size: .86rem; font-weight: 700; }.education-view-report header em { margin-top: 3px; color: #148465; font-size: .82rem; font-style: normal; font-weight: 900; }.education-view-report h2 { margin: 26px 0 5px; color: #0b2a66; font-size: 1.05rem; font-weight: 900; text-align: center; }.education-view-subtitle { margin: 0 0 20px; color: #667085; font-size: .85rem; font-weight: 700; text-align: center; }.education-view-report .table { margin-bottom: 0; border: 1px solid #dbe5f3; }.education-view-report .table thead th { color: #fff; background: #0b2a66; border-color: #0b2a66; font-size: .76rem; text-transform: uppercase; }.education-view-report .table td { font-size: .88rem; }.education-view-report footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid #dbe5f3; color: #667085; font-size: .78rem; text-align: center; }.education-view-report.is-morning { max-width: 720px; }.education-view-report.is-morning header { border-color: #148465; }.education-view-report.is-morning h2 { color: #0c5c4d; }.education-view-report.is-morning .table thead th { background: #148465; border-color: #148465; }
.activities-report { max-width: 1040px; }.activities-report header { border-color: #6d3ca4; }.activities-report header em, .activities-report h2 { color: #6d3ca4; }.activities-report .table thead th { background: #6d3ca4; border-color: #6d3ca4; }.activities-report .table tbody tr:nth-child(even) { background: #fbf9ff; }
@media (max-width: 640px) { .education-view-report { padding: 20px 14px; }.education-view-report header { align-items: flex-start; gap: 10px; }.education-view-report header img { width: 48px; height: 48px; }.education-view-report header strong { font-size: .94rem; }.education-view-report h2 { font-size: .9rem; } }
