:root {
    --blue-950: #042a50;
    --blue-900: #063a6f;
    --blue-800: #07467f;
    --blue-700: #075896;
    --gold-700: #bb8109;
    --gold-600: #d59a18;
    --gold-100: #fff3dd;
    --ink: #12304f;
    --muted: #5d7185;
    --line: #dce6ef;
    --soft: #f4f8fb;
    --paper: #ffffff;
    --shadow: 0 16px 38px rgba(14, 44, 76, .12);
}

* {
    box-sizing: border-box;
}

.sr-only {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

body {
    background: #f7fafc;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.site-frame {
    background:
        radial-gradient(circle at 84% 42%, rgba(213, 154, 24, .07), transparent 20rem),
        linear-gradient(180deg, #fbfdff 0, #eef4f8 49rem, #f7fafc 100%);
    border: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    max-width: none;
    min-height: 100vh;
    overflow: hidden;
    width: 100%;
}

.top-header {
    align-items: center;
    background: #fff;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    min-height: 88px;
    padding: 14px clamp(28px, 5vw, 86px) 12px;
}

.brand {
    align-items: center;
    display: flex;
    gap: 18px;
    flex: 0 1 430px;
    min-width: 0;
}

.brand-logo {
    display: block;
    height: auto;
    max-height: 72px;
    max-width: min(430px, 46vw);
    object-fit: contain;
    object-position: left center;
    width: 100%;
}

.header-actions {
    align-items: center;
    display: flex;
    gap: 24px;
}

.social-link {
    align-items: center;
    border-left: 1px solid #dac8aa;
    color: var(--blue-900);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 12px;
    line-height: 1.25;
    padding-left: 22px;
}

.social-link:first-child {
    border-left: 0;
    padding-left: 0;
}

.social-link strong {
    color: var(--blue-950);
}

.social-icon {
    display: inline-block;
    flex: 0 0 28px;
    height: 28px;
    position: relative;
    width: 28px;
}

.social-icon.instagram {
    border: 3px solid #f0388b;
    border-radius: 8px;
}

.social-icon.instagram::before {
    border: 3px solid #f0388b;
    border-radius: 50%;
    content: "";
    height: 8px;
    left: 6px;
    position: absolute;
    top: 6px;
    width: 8px;
}

.social-icon.instagram::after {
    background: #f0388b;
    border-radius: 50%;
    content: "";
    height: 4px;
    position: absolute;
    right: 4px;
    top: 4px;
    width: 4px;
}

.social-icon.globe {
    border: 3px solid var(--blue-900);
    border-radius: 50%;
}

.social-icon.globe::before,
.social-icon.globe::after {
    background: var(--blue-900);
    content: "";
    left: 4px;
    position: absolute;
    right: 4px;
    top: 11px;
    height: 3px;
}

.social-icon.globe::after {
    bottom: 4px;
    left: 11px;
    right: auto;
    top: 4px;
    width: 3px;
    height: auto;
}

.donate-button {
    align-items: center;
    background: linear-gradient(135deg, #cf991d, #a96f03);
    border-radius: 6px;
    box-shadow: 0 10px 18px rgba(169, 111, 3, .2);
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    padding: 0 24px;
    text-transform: uppercase;
    white-space: nowrap;
}

.donate-button::before {
    content: "♥";
    font-size: 16px;
}

.header-account {
    align-items: center;
    background: linear-gradient(120deg, var(--blue-950), #075184);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 9px 20px rgba(4, 48, 85, .16);
    color: #fff;
    display: grid;
    cursor: pointer;
    flex: 0 1 225px;
    font: inherit;
    gap: 9px;
    grid-template-columns: 44px minmax(95px, 1fr);
    min-height: 58px;
    padding: 7px 9px;
    text-align: left;
}

.header-account:hover,
.header-account:focus-visible {
    box-shadow: 0 0 0 3px rgba(210, 151, 19, .28), 0 9px 20px rgba(4, 48, 85, .16);
}

.header-account-avatar {
    background:
        radial-gradient(circle, rgba(236, 185, 70, .3), transparent 68%),
        var(--hero-image, url("../img/nossa-senhora.png")) center 10% / auto 58px no-repeat;
    border: 1px solid rgba(234, 184, 66, .7);
    border-radius: 50%;
    display: block;
    height: 42px;
    width: 42px;
}

.header-account-copy {
    min-width: 0;
}

.header-account-copy small,
.header-account-copy strong,
.header-account-copy > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.15;
    margin: 0 0 3px;
    max-width: 145px;
}

.header-account-copy > span {
    color: rgba(255, 255, 255, .82);
    font-size: 9px;
    max-width: 145px;
}

.header-account-controls {
    align-items: center;
    display: grid;
    gap: 4px;
    justify-items: stretch;
}

.header-account-controls .api-status-line {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, .68);
    display: block;
    font-size: 7px;
    margin: 0;
    max-width: 82px;
    overflow: hidden;
    padding: 0;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-controls .api-status-line.ok { color: #a7f3d0; }
.header-account-controls .api-status-line.error { color: #fecdd3; }

.header-account-controls button {
    background: #fff;
    border: 0;
    border-radius: 5px;
    color: var(--blue-950);
    cursor: pointer;
    font-size: 9px;
    font-weight: 900;
    min-height: 27px;
    padding: 5px 8px;
    white-space: nowrap;
}

.header-account-controls button:hover,
.header-account-controls button:focus-visible {
    background: #fff0c8;
}

.main-nav {
    align-items: center;
    background: var(--blue-950);
    display: flex;
    justify-content: center;
    min-height: 42px;
    padding: 0 42px;
    position: sticky;
    top: 0;
    z-index: 60;
}

.main-nav a {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    height: 42px;
    padding: 0 20px;
    position: relative;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav a.active {
    color: var(--gold-600);
}

.main-nav a.active::after {
    background: var(--gold-600);
    bottom: 0;
    content: "";
    height: 3px;
    left: 22px;
    position: absolute;
    right: 22px;
}

.devotee-main {
    box-sizing: border-box;
    flex: 1 0 auto;
    margin: 0 auto;
    max-width: 1224px;
    padding: 12px 16px 18px;
    width: 100%;
}

.page-title {
    text-align: center;
}

.page-title h1 {
    color: var(--blue-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.15;
    margin: 0;
}

.page-title span {
    display: inline-block;
    height: 14px;
    position: relative;
    width: 102px;
}

.page-title span::before,
.page-title span::after {
    background: var(--gold-600);
    content: "";
    height: 1px;
    position: absolute;
    top: 8px;
    width: 42px;
}

.page-title span::before {
    left: 0;
}

.page-title span::after {
    right: 0;
}

.hero-panel {
    align-items: center;
    background:
        radial-gradient(circle at 52% 0, rgba(236, 185, 70, .16), transparent 18rem),
        linear-gradient(106deg, var(--blue-950) 0, #064778 72%, #05315a 100%);
    border-radius: 10px;
    box-shadow: var(--shadow);
    color: #fff;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 104px;
    overflow: hidden;
    padding: 14px 18px;
    position: relative;
}

@media (min-width: 821px) {
    .hero-panel {
        position: sticky;
        top: 54px;
        z-index: 45;
    }
}

.hero-copy {
    align-items: center;
    display: flex;
    gap: 15px;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.hero-avatar {
    background:
        radial-gradient(circle, rgba(236, 185, 70, .28), transparent 67%),
        var(--hero-image, url("../img/nossa-senhora.png")) center 10% / auto 100px no-repeat;
    border: 2px solid rgba(234, 184, 66, .55);
    border-radius: 50%;
    display: block;
    flex: 0 0 72px;
    height: 72px;
}

.hero-identity {
    min-width: 0;
}

.hero-identity > span {
    color: var(--gold-600);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.hero-copy h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 7px;
}

.hero-copy h2 strong {
    color: #e0a51a;
    font: inherit;
}

.hero-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.email-line {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 10px;
}

.api-status-line {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: rgba(255, 255, 255, .86);
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    margin-top: 0;
    padding: 4px 8px;
}

.hero-quick-actions {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.hero-action {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    flex-direction: row-reverse;
    font-size: 11px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    min-height: 42px;
    padding: 7px 11px;
    white-space: nowrap;
}

.hero-action:hover,
.hero-action:focus-visible {
    background: rgba(255, 255, 255, .17);
}

.hero-action-primary {
    background: #fff;
    border-color: #fff;
    color: var(--blue-950);
}

.hero-action-primary:hover,
.hero-action-primary:focus-visible {
    background: #fff3d3;
}

.hero-action svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

.api-status-line.ok {
    background: rgba(22, 101, 52, .24);
    border-color: rgba(187, 247, 208, .48);
    color: #dcfce7;
}

.api-status-line.error {
    background: rgba(159, 18, 57, .28);
    border-color: rgba(254, 205, 211, .5);
    color: #ffe4e6;
}

.email-line svg {
    fill: none;
    height: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 19px;
}

.hero-figure {
    align-self: end;
    background:
        radial-gradient(circle at center 42%, rgba(234, 183, 60, .34), transparent 7rem),
        var(--hero-image, url("../img/nossa-senhora.png")) center bottom / auto 182px no-repeat;
    height: 154px;
    position: relative;
}

.hero-figure::before {
    border: 2px dashed rgba(230, 179, 55, .28);
    border-radius: 50%;
    content: "";
    height: 128px;
    left: 88px;
    position: absolute;
    top: 8px;
    width: 128px;
}

.logout-button {
    align-items: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 18px;
    justify-self: center;
    min-height: 42px;
    padding: 0 18px 0 25px;
}

.logout-button svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 20px;
}

.resources {
    margin-top: 14px;
}

.section-head h2 {
    color: var(--blue-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 1.15;
    margin: 0 0 3px;
}

.section-head p {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 12px;
}

.resource-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-card {
    align-items: center;
    background: var(--paper);
    border: 1px solid #e5ebf0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .07);
    color: var(--ink);
    cursor: pointer;
    display: grid;
    gap: 14px;
    grid-template-columns: 52px minmax(0, 1fr) 18px;
    min-height: 83px;
    padding: 14px 18px;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    width: 100%;
}

.resource-card:hover,
.resource-card:focus-visible {
    border-color: rgba(213, 154, 24, .55);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .11);
    outline: 0;
    transform: translateY(-2px);
}

.resource-icon {
    align-items: center;
    background: #fff0d2;
    border-radius: 50%;
    color: var(--blue-900);
    display: inline-flex;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.resource-card:nth-child(4n) .resource-icon,
.resource-card:nth-child(8n) .resource-icon {
    color: var(--gold-700);
}

.resource-icon svg {
    fill: none;
    height: 34px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
    width: 34px;
}

.resource-copy strong {
    color: var(--blue-950);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.2;
}

.resource-copy small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 5px;
}

.resource-arrow {
    color: var(--gold-700);
    font-size: 30px;
    line-height: 1;
}

.blessing-banner {
    align-items: center;
    background:
        linear-gradient(90deg, #fff 0, #fffaf4 100%);
    border: 1px solid #efd8b7;
    border-radius: 9px;
    display: grid;
    gap: 18px;
    grid-template-columns: 58px minmax(0, 1fr) 160px;
    margin-top: 14px;
    min-height: 70px;
    overflow: hidden;
    padding: 10px 22px;
    position: relative;
}

.heart-badge {
    align-items: center;
    background: linear-gradient(135deg, #d19a1b, #9f6f04);
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(159, 111, 4, .24);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.heart-badge::before {
    color: #fff;
    content: "♥";
    font-size: 25px;
}

.blessing-banner p {
    color: var(--blue-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.35;
    margin: 0;
}

.blessing-banner strong {
    color: var(--gold-700);
    display: block;
    font-style: italic;
    font-weight: 500;
}

.rosary-watermark {
    border: 8px dotted rgba(213, 154, 24, .18);
    border-radius: 50%;
    height: 96px;
    justify-self: end;
    margin-right: 24px;
    width: 96px;
}

.rosary-watermark::after {
    color: rgba(213, 154, 24, .24);
    content: "✝";
    display: block;
    font-size: 40px;
    margin: 70px 0 0 33px;
}

.site-footer {
    background: linear-gradient(115deg, var(--blue-950), #07477e);
    color: #fff;
    margin-top: 0;
}

.footer-content {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.5fr .8fr 1fr .8fr 1.25fr;
    margin: 0 auto;
    max-width: 1224px;
    padding: 20px 16px 16px;
}

.footer-brand {
    align-items: center;
    display: flex;
    gap: 18px;
}

.footer-logo-card {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    display: inline-flex;
    padding: 8px 10px;
}

.footer-logo {
    display: block;
    height: auto;
    max-width: 100%;
    width: 248px;
}

.footer-brand p,
.footer-content a {
    color: rgba(255, 255, 255, .82);
    display: block;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
}

.footer-brand strong {
    color: #fff;
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.2;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.footer-content > div:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, .22);
    padding-left: 24px;
}

.footer-content h3 {
    color: var(--gold-600);
    font-size: 12px;
    letter-spacing: .02em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .75);
    display: flex;
    gap: 28px;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
}

.footer-bottom span,
.footer-bottom small {
    font-size: 11px;
}

.footer-bottom small {
    margin-left: auto;
}

.resource-dialog,
.auth-dialog,
.account-dialog {
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(4, 42, 80, .28);
    color: var(--ink);
    max-width: 460px;
    padding: 28px;
    width: calc(100% - 32px);
}

.auth-dialog {
    max-width: 500px;
}

.resource-dialog::backdrop,
.auth-dialog::backdrop,
.account-dialog::backdrop {
    background: rgba(4, 28, 52, .46);
}

.resource-dialog > span,
.auth-dialog > span,
.account-dialog > span {
    color: var(--gold-700);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 9px;
    text-transform: uppercase;
}

.resource-dialog h2,
.auth-dialog h2,
.account-dialog h2 {
    color: var(--blue-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    margin: 0 0 10px;
}

.resource-dialog p {
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 20px;
}

.auth-intro,
.auth-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.auth-note {
    background: #f8fbff;
    border: 1px solid #e4edf6;
    border-radius: 8px;
    padding: 12px 13px;
}

.dialog-close {
    background: transparent;
    border: 0;
    color: var(--blue-950);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 14px;
}

.dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dialog-form,
.auth-form {
    display: grid;
    gap: 13px;
    margin: 18px 0 20px;
}

.dialog-form[hidden],
.auth-form[hidden] {
    display: none;
}

.dialog-form label,
.auth-form label {
    color: #334155;
    display: grid;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
}

.dialog-form textarea,
.auth-form input {
    border: 1px solid #ccd8e4;
    border-radius: 7px;
    color: var(--ink);
    font: inherit;
    min-height: 43px;
    padding: 10px 12px;
    width: 100%;
}

.password-field {
    display: block;
    position: relative;
}

.password-field input {
    display: block;
    padding-right: 48px;
}

.password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--blue-900);
    cursor: pointer;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
}

.password-toggle svg {
    fill: none;
    height: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 19px;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: #edf4fa;
    outline: 0;
}

.dialog-form textarea {
    min-height: 118px;
    resize: vertical;
}

.dialog-form textarea:focus,
.auth-form input:focus {
    border-color: var(--blue-900);
    box-shadow: 0 0 0 3px rgba(6, 58, 111, .11);
    outline: 0;
}

.dialog-message {
    border-radius: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    min-height: 0;
}

.dialog-message.ok,
.dialog-message.error {
    padding: 10px 12px;
}

.dialog-message.ok {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.dialog-message.error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.auth-tabs {
    background: #edf4fa;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, 1fr);
    margin: 16px 0;
    padding: 6px;
}

.auth-tabs[hidden] {
    display: none;
}

.auth-tabs button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--blue-900);
    cursor: pointer;
    font-weight: 900;
    min-height: 40px;
}

.auth-tabs button.is-active {
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.auth-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: space-between;
}

.link-action {
    background: transparent;
    border: 0;
    color: var(--blue-900);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    padding: 0;
    text-align: left;
}

.link-action:hover {
    color: var(--gold-700);
    text-decoration: underline;
}

.auth-back-action {
    justify-self: start;
}

.account-summary {
    background: linear-gradient(135deg, #f8fbff, #fffaf1);
    border: 1px solid #e4edf6;
    border-radius: 8px;
    display: grid;
    gap: 3px;
    margin: 14px 0;
    padding: 13px 14px;
}

.account-summary strong {
    color: var(--blue-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.account-summary small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.account-actions {
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 16px;
}

.check-line {
    align-items: center;
    display: flex !important;
    gap: 9px !important;
}

.check-line input {
    min-height: 0;
    width: auto;
}

.primary-action,
.secondary-action {
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    min-height: 42px;
    padding: 0 17px;
}

.primary-action {
    background: linear-gradient(135deg, #cf991d, #a96f03);
    border: 0;
    color: #fff;
}

.primary-action:disabled,
.secondary-action:disabled,
.danger-action:disabled {
    cursor: wait;
    opacity: .72;
}

.secondary-action {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--blue-950);
}

.danger-action {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    color: #9f1239;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    min-height: 42px;
    padding: 0 17px;
}

.bible-module {
    margin-top: 18px;
}

body.bible-page-open .page-title,
body.bible-page-open .hero-panel,
body.bible-page-open .resources,
body.bible-page-open .blessing-banner,
body.rosary-page-open .page-title,
body.rosary-page-open .hero-panel,
body.rosary-page-open .resources,
body.rosary-page-open .blessing-banner,
body.devotion-page-open .page-title,
body.devotion-page-open .hero-panel,
body.devotion-page-open .resources,
body.devotion-page-open .blessing-banner,
body.guided-page-open .page-title,
body.guided-page-open .hero-panel,
body.guided-page-open .resources,
body.guided-page-open .blessing-banner {
    display: none;
}

body.bible-page-open,
body.rosary-page-open,
body.devotion-page-open,
body.guided-page-open {
    background: #f6f1e7;
}

body.bible-page-open .site-frame,
body.rosary-page-open .site-frame,
body.devotion-page-open .site-frame,
body.guided-page-open .site-frame {
    min-height: 100vh;
}

body.bible-page-open .devotee-main,
body.rosary-page-open .devotee-main,
body.devotion-page-open .devotee-main,
body.guided-page-open .devotee-main {
    padding-top: 18px;
}

body.bible-page-open .bible-module {
    margin-top: 0;
}

.bible-module[hidden],
.bible-panel[hidden],
.rosary-module[hidden],
.devotion-module[hidden],
.guided-module[hidden],
.guided-list-view[hidden],
.guided-journey-view[hidden] {
    display: none;
}

.bible-shell {
    background: #fffdf8;
    border: 1px solid #ead9b9;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(51, 36, 20, .12);
    overflow: hidden;
}

body.bible-page-open .bible-shell {
    border-radius: 8px;
    min-height: calc(100vh - 36px);
}

.bible-topbar {
    align-items: center;
    background: linear-gradient(105deg, #4a3324, #173d61);
    color: #fff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 18px 20px;
}

.bible-topbar span {
    color: #d8b65a;
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bible-topbar h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    line-height: 1.1;
    margin: 4px 0 0;
}

.bible-heading p {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    margin: 6px 0 0;
}

.bible-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.bible-tools button,
.bible-tabs button,
.reader-head button,
.reader-actions button,
.reader-nav button,
.chapter-picker button,
.bible-global-search button,
.reader-verse button,
.bible-result button {
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 900;
}

.bible-tools button {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    min-height: 38px;
    padding: 0 13px;
}

.bible-tools button.is-active,
.bible-tools button:hover {
    background: #d8b65a;
    color: #2d1b12;
}

.bible-panel {
    padding: 18px;
}

body.bible-page-open .bible-panel {
    padding: 22px;
}

.bible-library-controls {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(240px, .8fr) minmax(420px, 1.2fr);
}

.bible-search-line input,
.bible-global-search input {
    border: 1px solid #e0cfad;
    border-radius: 8px;
    color: #2d1b12;
    font: inherit;
    min-height: 44px;
    padding: 0 14px;
    width: 100%;
}

.bible-tabs {
    background: #f5ead7;
    border: 1px solid #ead9b9;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    padding: 5px;
}

.bible-library-summary {
    color: #765a3a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    margin: 18px 2px 10px;
    text-transform: uppercase;
}

.bible-tabs button {
    background: transparent;
    color: #6e5437;
    min-height: 40px;
}

.bible-tabs button.is-active {
    background: #8b5e34;
    color: #fff;
}

.bible-books-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bible-book-card {
    background: #fffaf1;
    border: 1px solid #ead9b9;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(45, 27, 18, .06);
    color: #2d1b12;
    cursor: pointer;
    align-items: center;
    display: grid;
    gap: 2px 12px;
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 72px;
    padding: 10px 12px;
    position: relative;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.bible-book-card::after {
    color: #b79155;
    content: "›";
    font-size: 24px;
    line-height: 1;
    position: absolute;
    right: 12px;
    top: 23px;
}

.bible-book-card span {
    align-items: center;
    align-self: center;
    background: #f0dfbe;
    border: 1px solid #d7bc82;
    border-radius: 8px;
    color: #8b5e34;
    display: inline-flex;
    font-weight: 900;
    grid-row: 1 / span 2;
    height: 44px;
    justify-content: center;
    justify-self: center;
    min-width: 44px;
    padding: 0 7px;
}

.bible-book-card strong {
    align-self: end;
    font-size: 14px;
    line-height: 1.15;
    overflow: hidden;
    padding-right: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bible-book-card small {
    align-self: start;
    color: #7c684c;
    font-size: 11px;
    font-weight: 800;
}

.bible-book-card:hover,
.bible-book-card:focus-visible,
.bible-result:hover,
.bible-result:focus-visible {
    border-color: #bb8109;
    box-shadow: 0 12px 25px rgba(83, 54, 26, .1);
    outline: 0;
    transform: translateY(-2px);
}

.reader-head,
.reader-nav {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.reader-head {
    background: #4a3324;
    border-radius: 8px;
    color: #fff6e5;
    padding: 12px;
}

.reader-head > div:nth-child(2) {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.reader-head strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-head span {
    color: #e9d4a7;
    font-size: 13px;
    font-weight: 800;
}

.reader-head button,
.reader-actions button,
.reader-nav button,
.chapter-picker button,
.reader-verse button,
.bible-result button {
    background: #f2e4c8;
    color: #4a3324;
    min-height: 36px;
    padding: 0 11px;
}

.reader-actions {
    display: flex;
    gap: 7px;
}

.chapter-picker {
    display: flex;
    gap: 7px;
    margin: 14px 0;
    overflow-x: auto;
    padding-bottom: 3px;
}

.chapter-picker button {
    flex: 0 0 38px;
    padding: 0;
}

.chapter-picker button.is-active {
    background: #bb8109;
    color: #fff;
}

.reader-page {
    background: #fff6e5;
    border: 1px solid #d8c29b;
    border-radius: 8px;
    color: #2d1b12;
    line-height: 1.58;
    min-height: 360px;
    padding: 22px;
}

.bible-reader.is-dark .reader-page {
    background: #102033;
    border-color: rgba(255, 255, 255, .12);
    color: #f8fafc;
}

.reader-verse {
    border-bottom: 1px solid rgba(139, 111, 53, .18);
    padding: 0 0 14px;
}

.reader-verse + .reader-verse {
    margin-top: 14px;
}

.reader-verse p {
    font-family: Georgia, "Times New Roman", serif;
    margin: 0;
}

.reader-verse sup {
    color: #8b6f35;
    font-size: .78em;
    font-weight: 900;
    margin-right: 7px;
}

.reader-verse div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.reader-nav {
    margin-top: 14px;
}

.reader-nav span {
    color: #6e5437;
    font-weight: 900;
}

.bible-global-search {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 124px;
}

.bible-global-search button {
    background: #8b5e34;
    color: #fff;
}

.bible-results {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.bible-result {
    background: #fffaf1;
    border: 1px solid #ead9b9;
    border-radius: 8px;
    color: #2d1b12;
    display: grid;
    gap: 6px;
    padding: 13px 14px;
    text-align: left;
}

.bible-result strong {
    color: #063a6f;
    font-family: Georgia, "Times New Roman", serif;
}

.bible-result span {
    color: #4f3d2b;
    line-height: 1.45;
}

.bible-result button {
    justify-self: start;
    margin-top: 4px;
}

.bible-empty {
    color: #7c684c;
    font-weight: 900;
    margin: 0;
    padding: 18px;
    text-align: center;
}

.rosary-module {
    margin-top: 18px;
}

body.rosary-page-open .rosary-module {
    margin-top: 0;
}

.rosary-shell {
    background: #fffdf8;
    border: 1px solid #ead9b9;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(51, 36, 20, .12);
    min-height: calc(100vh - 36px);
    overflow: hidden;
}

.rosary-topbar {
    align-items: center;
    background: linear-gradient(105deg, #221a12, #123f65);
    color: #fff;
    display: grid;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 16px 18px;
}

.rosary-topbar button,
.rosary-tools select,
.rosary-tools button,
.rosary-actions button {
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 900;
    min-height: 40px;
}

.rosary-topbar > button {
    background: #f2e4c8;
    color: #4a3324;
    padding: 0 14px;
}

.rosary-topbar span {
    color: #d8b65a;
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rosary-topbar h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    line-height: 1.1;
    margin: 3px 0 0;
}

.rosary-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.rosary-tools select {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    padding: 0 12px;
}

.rosary-tools select option {
    color: #221a12;
}

.rosary-tools button {
    background: #d8b65a;
    color: #2d1b12;
    padding: 0 13px;
}

.rosary-progress {
    padding: 18px 22px 0;
}

.rosary-progress > div {
    background: #e8ddcc;
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
}

.rosary-progress span[data-rosary-progress-bar] {
    background: linear-gradient(90deg, #bb8109, #d8b65a);
    display: block;
    height: 100%;
    transition: width .25s ease;
    width: 0;
}

.rosary-progress p {
    align-items: center;
    color: #7a6a58;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: space-between;
    margin: 10px 0 0;
}

.rosary-progress p span {
    color: #bb8109;
}

.rosary-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
    padding: 18px 22px 0;
}

.rosary-visual {
    align-items: center;
    aspect-ratio: 1 / 1.03;
    display: flex;
    justify-content: center;
    min-height: 430px;
    position: relative;
}

.rosary-visual img {
    filter: drop-shadow(0 18px 24px rgba(74, 51, 36, .18));
    max-height: 58%;
    max-width: 42%;
    position: relative;
    z-index: 2;
}

.rosary-beads {
    inset: 0;
    position: absolute;
}

.rosary-string {
    border: 3px solid rgba(187, 129, 9, .22);
    display: block;
    position: absolute;
}

.rosary-string-loop {
    border-radius: 50%;
    height: 62%;
    left: 14%;
    top: 12%;
    width: 72%;
}

.rosary-string-tail {
    border-left-width: 3px;
    border-radius: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 0;
    height: 25%;
    left: 50%;
    top: 73%;
}

.rosary-bead {
    background: #f6dfc0;
    border: 1px solid #d7bc82;
    border-radius: 50%;
    box-shadow: 2px 4px 8px rgba(45, 27, 18, .16);
    height: 12px;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 12px;
    z-index: 3;
}

.rosary-bead.is-big {
    height: 17px;
    width: 17px;
}

.rosary-bead.is-done {
    background: #bb8109;
    border-color: #9f6b07;
}

.rosary-bead.is-current {
    animation: rosaryPulse 1s infinite alternate;
    background: #b63a2b;
    border-color: #8d261b;
    box-shadow: 0 0 0 8px rgba(182, 58, 43, .16), 2px 4px 10px rgba(45, 27, 18, .18);
}

.rosary-cross {
    bottom: 2%;
    height: 52px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 38px;
}

.rosary-cross::before,
.rosary-cross::after {
    background: #8a5a24;
    border-radius: 8px;
    content: "";
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.rosary-cross::before {
    height: 50px;
    width: 6px;
}

.rosary-cross::after {
    height: 6px;
    margin-top: -9px;
    width: 34px;
}

.rosary-prayer-card {
    align-self: center;
    background: #fff;
    border: 1px solid #e8ddcc;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(45, 27, 18, .08);
    color: #3a2c1d;
    padding: 24px;
}

.rosary-prayer-card > span {
    color: #7a6a58;
    display: block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 6px;
}

.rosary-prayer-card h3 {
    color: #221a12;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1.05;
    margin: 0 0 16px;
}

.rosary-prayer-card p {
    color: #3a2c1d;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.58;
    margin: 0;
    max-height: 340px;
    overflow: auto;
}

.rosary-prayer-card p.is-meditation {
    color: #063a6f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 900;
}

.rosary-prayer-card small {
    color: #7a6a58;
    display: block;
    font-weight: 800;
    line-height: 1.4;
    margin-top: 14px;
}

.rosary-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px;
}

.rosary-actions button {
    min-height: 48px;
}

.rosary-actions button:first-child {
    background: #fffaf1;
    border: 1px solid #d8b65a;
    color: #221a12;
}

.rosary-actions button:first-child:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.rosary-actions button:last-child {
    background: #221a12;
    color: #fff;
}

@keyframes rosaryPulse {
    from {
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        transform: translate(-50%, -50%) scale(1.16);
    }
}

.devotion-module {
    margin-top: 18px;
}

body.devotion-page-open .devotion-module {
    margin-top: 0;
}

.devotion-shell {
    background: #fffdf8;
    border: 1px solid #ead9b9;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(51, 36, 20, .12);
    min-height: calc(100vh - 36px);
    overflow: hidden;
}

.devotion-topbar {
    align-items: center;
    color: #fff;
    display: grid;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px 18px;
}

.prayer-topbar {
    background: linear-gradient(105deg, #153f68, #4a3324);
}

.candle-topbar {
    background: linear-gradient(105deg, #3b2617, #855b08);
}

.devotion-topbar button {
    background: #f2e4c8;
    border: 0;
    border-radius: 7px;
    color: #4a3324;
    cursor: pointer;
    font-weight: 900;
    min-height: 40px;
    padding: 0 14px;
}

.devotion-topbar span {
    color: #d8b65a;
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.devotion-topbar h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.08;
    margin: 3px 0 0;
}

.devotion-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    padding: 22px;
}

.devotion-visual,
.devotion-panel {
    border-radius: 8px;
}

.devotion-visual {
    align-content: center;
    background: #fff6e5;
    border: 1px solid #ead9b9;
    color: #3a2c1d;
    display: grid;
    gap: 14px;
    min-height: 460px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.prayer-visual {
    background:
        radial-gradient(circle at 22% 18%, rgba(216, 182, 90, .28), transparent 28%),
        linear-gradient(145deg, #fffaf1, #eaf4ff);
}

.prayer-visual > span {
    background: #063a6f;
    border-radius: 50%;
    box-shadow: 0 0 0 12px rgba(6, 58, 111, .08);
    height: 74px;
    position: relative;
    width: 74px;
}

.prayer-visual > span::before,
.prayer-visual > span::after {
    background: #fff6e5;
    border-radius: 12px 12px 4px 4px;
    content: "";
    height: 34px;
    position: absolute;
    top: 20px;
    width: 15px;
}

.prayer-visual > span::before {
    left: 22px;
    transform: rotate(-28deg);
}

.prayer-visual > span::after {
    right: 22px;
    transform: rotate(28deg);
}

.candle-visual {
    background:
        radial-gradient(circle at 50% 26%, rgba(255, 196, 88, .42), transparent 22%),
        linear-gradient(145deg, #fff7e8, #3b2617);
    color: #fffaf1;
}

.devotion-visual strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    line-height: 1.12;
    max-width: 420px;
}

.devotion-visual p {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    max-width: 420px;
}

.virtual-candle {
    align-items: center;
    display: flex;
    height: 180px;
    justify-content: center;
    position: relative;
}

.virtual-candle::before {
    background: linear-gradient(#fff8dd, #d8b65a);
    border-radius: 16px 16px 8px 8px;
    bottom: 12px;
    box-shadow: 0 18px 28px rgba(0, 0, 0, .24);
    content: "";
    height: 112px;
    position: absolute;
    width: 62px;
}

.virtual-candle span {
    animation: candleFlame 1.1s infinite alternate ease-in-out;
    background: radial-gradient(circle at 50% 68%, #fff7b0 0 18%, #f5a018 42%, #b63a2b 72%);
    border-radius: 60% 60% 55% 55%;
    box-shadow: 0 0 26px rgba(245, 160, 24, .78), 0 0 62px rgba(245, 160, 24, .34);
    height: 72px;
    position: absolute;
    top: 0;
    transform-origin: 50% 90%;
    width: 42px;
}

.devotion-panel {
    background: #fff;
    border: 1px solid #e8ddcc;
    box-shadow: 0 16px 34px rgba(45, 27, 18, .08);
    display: grid;
    gap: 20px;
    padding: 22px;
}

.devotion-form {
    display: grid;
    gap: 14px;
}

.devotion-form label {
    color: #221a12;
    display: grid;
    gap: 8px;
    font-weight: 900;
}

.devotion-form textarea {
    border: 1px solid #e0cfad;
    border-radius: 8px;
    color: #2d1b12;
    font: inherit;
    line-height: 1.5;
    min-height: 180px;
    padding: 14px;
    resize: vertical;
    width: 100%;
}

.devotion-form button {
    justify-self: start;
    min-width: 180px;
}

.devotion-history {
    border-top: 1px solid #ead9b9;
    padding-top: 18px;
}

.devotion-history h3 {
    color: #063a6f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    margin: 0 0 12px;
}

.devotion-history > div {
    display: grid;
    gap: 10px;
}

.devotion-item {
    background: #fffaf1;
    border: 1px solid #ead9b9;
    border-radius: 8px;
    color: #2d1b12;
    display: grid;
    gap: 5px;
    padding: 13px 14px;
}

.devotion-item strong {
    line-height: 1.35;
}

.devotion-item span,
.devotion-empty {
    color: #7a6a58;
    font-size: 13px;
    font-weight: 800;
}

.devotion-empty {
    margin: 0;
}

@keyframes candleFlame {
    from {
        transform: rotate(-3deg) scale(.96);
    }

    to {
        transform: rotate(4deg) scale(1.05);
    }
}

.guided-module {
    margin-top: 18px;
}

body.guided-page-open .guided-module {
    margin-top: 0;
}

.guided-shell {
    background: #fffdf8;
    border: 1px solid #ead9b9;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(51, 36, 20, .12);
    min-height: calc(100vh - 36px);
    overflow: hidden;
}

.guided-topbar {
    align-items: center;
    background: linear-gradient(105deg, #063a6f, #3d5f35);
    color: #fff;
    display: grid;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px 18px;
}

.guided-topbar button,
.guided-journey-head button,
.guided-day-card button,
.guided-card,
.guided-day-tile {
    border-radius: 7px;
    cursor: pointer;
    font-weight: 900;
}

.guided-topbar button,
.guided-journey-head button {
    background: #f2e4c8;
    border: 0;
    color: #4a3324;
    min-height: 40px;
    padding: 0 14px;
}

.guided-topbar span {
    color: #d8b65a;
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.guided-topbar h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1.08;
    margin: 3px 0 0;
}

.guided-list-view,
.guided-journey-view {
    padding: 22px;
}

.guided-intro {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.guided-intro > span {
    background: #063a6f;
    border-radius: 20px;
    flex: 0 0 5px;
    height: 44px;
}

.guided-intro h3,
.guided-journey-head h3,
.guided-days-panel h3 {
    color: #063a6f;
    font-family: Georgia, "Times New Roman", serif;
    margin: 0;
}

.guided-intro h3 {
    font-size: 26px;
}

.guided-intro p,
.guided-journey-head p {
    color: #61708a;
    font-weight: 700;
    line-height: 1.35;
    margin: 4px 0 0;
}

.guided-journeys {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guided-card {
    background: #fff;
    border: 1px solid #e8ddcc;
    box-shadow: 0 12px 26px rgba(45, 27, 18, .06);
    color: #2d1b12;
    display: grid;
    gap: 7px;
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 132px;
    padding: 16px;
    text-align: left;
}

.guided-card-icon {
    align-items: center;
    align-self: start;
    background: rgba(216, 182, 90, .18);
    border-radius: 16px;
    color: #bb8109;
    display: inline-flex;
    font-size: 26px;
    grid-row: span 3;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.guided-card strong {
    color: #061d36;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
}

.guided-card small {
    color: #61708a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.guided-card em {
    color: #063a6f;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.guided-card.is-locked {
    opacity: .72;
}

.guided-card.is-locked .guided-card-icon {
    background: #f8fafc;
    color: #94a3b8;
}

.guided-journey-head {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-bottom: 16px;
}

.guided-journey-head h3 {
    font-size: 26px;
}

.guided-progress-card,
.guided-day-card,
.guided-days-panel {
    background: #fff;
    border: 1px solid #e8ddcc;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(45, 27, 18, .06);
}

.guided-progress-card {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px;
}

.guided-progress-card > div:first-child {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.guided-progress-card strong {
    color: #063a6f;
}

.guided-progress-card span {
    color: #bb8109;
    font-weight: 900;
}

.guided-progress-dots {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(15, minmax(0, 1fr));
}

.guided-progress-dots span {
    background: #e8ddcc;
    border-radius: 20px;
    height: 10px;
}

.guided-progress-dots span.is-done,
.guided-progress-dots span.is-active {
    background: #bb8109;
}

.guided-day-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
}

.guided-day-card {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.guided-day-card > span {
    color: #bb8109;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.guided-day-card h3 {
    color: #063a6f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.08;
    margin: 0;
}

.guided-day-card > strong {
    color: #2d1b12;
}

.guided-day-card > p,
.guided-day-card section p {
    color: #3a2c1d;
    font-weight: 650;
    line-height: 1.5;
    margin: 0;
}

.guided-day-card section h4 {
    color: #2d1b12;
    margin: 0 0 5px;
}

.guided-day-card button {
    border: 0;
    min-height: 46px;
    padding: 0 16px;
}

.guided-day-card button[data-guided-open-bible] {
    background: #063a6f;
    color: #fff;
    justify-self: start;
}

.guided-day-card button[data-guided-complete] {
    background: #221a12;
    color: #fff;
}

.guided-day-card button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.guided-day-card label {
    display: grid;
    gap: 8px;
    font-weight: 900;
}

.guided-day-card textarea {
    border: 1px solid #e0cfad;
    border-radius: 8px;
    color: #2d1b12;
    font: inherit;
    line-height: 1.45;
    min-height: 116px;
    padding: 13px;
    resize: vertical;
}

.guided-days-panel {
    align-self: start;
    display: grid;
    gap: 12px;
    padding: 18px;
}

.guided-days-panel h3 {
    font-size: 22px;
}

.guided-days-panel > div {
    display: grid;
    gap: 9px;
}

.guided-day-tile {
    background: #fffaf1;
    border: 1px solid #ead9b9;
    color: #2d1b12;
    display: grid;
    gap: 3px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 10px;
    text-align: left;
}

.guided-day-tile > span {
    align-items: center;
    align-self: center;
    background: #f2e4c8;
    border-radius: 12px;
    color: #8b5e34;
    display: flex;
    font-weight: 900;
    grid-row: span 2;
    height: 38px;
    justify-content: center;
}

.guided-day-tile strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guided-day-tile small {
    color: #61708a;
    font-weight: 700;
}

.guided-day-tile em {
    align-self: center;
    color: #61708a;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    grid-column: 3;
    grid-row: 1 / span 2;
}

.guided-day-tile.is-done > span,
.guided-day-tile.is-active > span {
    background: #063a6f;
    color: #fff;
}

.guided-day-tile.is-active {
    border-color: #bb8109;
}

.guided-day-tile:disabled {
    cursor: not-allowed;
    opacity: .58;
}

@media (max-width: 1180px) {
    .site-frame {
        margin: 0;
        max-width: none;
        min-height: 100vh;
    }

    .top-header {
        gap: 15px;
        padding: 18px 24px;
    }

    .header-actions {
        gap: 12px;
    }

    .header-account {
        flex-basis: 225px;
    }

    .main-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

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

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

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

    .rosary-layout {
        grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr);
    }

    .devotion-layout {
        grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
    }

    .guided-day-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .top-header,
    .header-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        gap: 14px;
        width: 100%;
    }

    .header-account {
        box-sizing: border-box;
        flex-basis: auto;
        max-width: 380px;
        width: 100%;
    }

    .social-link {
        border-left: 0;
        padding-left: 0;
    }

    .brand {
        flex-basis: auto;
        max-width: 430px;
        width: 100%;
    }

    .brand-logo {
        max-width: min(430px, 88vw);
    }

    .hero-panel {
        gap: 14px;
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .hero-quick-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .hero-action {
        white-space: normal;
    }

    .hero-figure {
        display: none;
    }

    .logout-button {
        justify-self: start;
        margin-top: 18px;
    }

    .blessing-banner {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .rosary-watermark {
        display: none;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .footer-bottom small {
        margin-left: 0;
    }

    .bible-topbar,
    .reader-head {
        align-items: stretch;
        flex-direction: column;
    }

    .bible-library-controls {
        grid-template-columns: 1fr;
    }

    .bible-tools,
    .reader-actions {
        justify-content: flex-start;
    }

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

    .rosary-topbar {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .rosary-tools {
        justify-content: flex-start;
    }

    .rosary-layout {
        grid-template-columns: 1fr;
    }

    .rosary-visual {
        min-height: 360px;
    }

    .devotion-layout {
        grid-template-columns: 1fr;
    }

    .devotion-visual {
        min-height: 320px;
    }

    .guided-journeys {
        grid-template-columns: 1fr;
    }

    .guided-journey-head {
        align-items: stretch;
        grid-template-columns: 1fr;
    }
}

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

    .brand {
        align-items: center;
        max-width: 330px;
    }

    .brand-logo {
        max-height: 64px;
        max-width: min(330px, 88vw);
    }

    .main-nav {
        padding: 0 8px;
    }

    .main-nav a {
        font-size: 12px;
        padding: 0 14px;
    }

    .devotee-main {
        padding: 12px;
    }

    .page-title h1 {
        font-size: 27px;
    }

    .hero-copy h2 {
        font-size: 23px;
    }

    .hero-avatar {
        flex-basis: 60px;
        height: 60px;
    }

    .hero-quick-actions {
        grid-template-columns: 1fr;
    }

    .resource-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .resource-card {
        grid-template-columns: 52px minmax(0, 1fr) 16px;
        min-height: 86px;
        padding: 14px;
    }

    .resource-icon {
        height: 52px;
        width: 52px;
    }

    .footer-content > div:not(:first-child) {
        border-left: 0;
        padding-left: 0;
    }

    .bible-panel {
        padding: 12px;
    }

    .bible-tools {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .bible-tools button {
        width: 100%;
    }

    .bible-books-grid {
        grid-template-columns: 1fr;
    }

    .bible-tabs button {
        font-size: 13px;
    }

    .bible-global-search {
        grid-template-columns: 1fr;
    }

    .reader-page {
        min-height: 320px;
        padding: 17px;
    }

    .rosary-progress,
    .rosary-layout,
    .rosary-actions {
        padding-left: 12px;
        padding-right: 12px;
    }

    .rosary-progress p,
    .rosary-actions {
        grid-template-columns: 1fr;
    }

    .rosary-progress p {
        align-items: flex-start;
        display: grid;
        gap: 4px;
    }

    .rosary-visual {
        min-height: 300px;
    }

    .rosary-bead {
        height: 10px;
        width: 10px;
    }

    .rosary-bead.is-big {
        height: 15px;
        width: 15px;
    }

    .rosary-prayer-card {
        padding: 18px;
    }

    .rosary-prayer-card h3 {
        font-size: 26px;
    }

    .rosary-prayer-card p {
        font-size: 15.5px;
        max-height: none;
    }

    .devotion-layout {
        padding: 12px;
    }

    .devotion-topbar {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .devotion-visual,
    .devotion-panel {
        padding: 18px;
    }

    .devotion-visual {
        min-height: 260px;
    }

    .devotion-visual strong {
        font-size: 25px;
    }

    .devotion-form button {
        justify-self: stretch;
    }

    .guided-list-view,
    .guided-journey-view {
        padding: 12px;
    }

    .guided-topbar {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .guided-card {
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 14px;
    }

    .guided-day-card,
    .guided-days-panel,
    .guided-progress-card {
        padding: 14px;
    }

    .guided-day-card h3 {
        font-size: 25px;
    }

    .guided-progress-dots {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .guided-day-tile {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .guided-day-tile em {
        grid-column: 2;
        grid-row: auto;
    }
}
