:root {
    --bg: #d6ecff;
    --surface: rgba(244, 251, 255, 0.9);
    --surface-strong: #eef8ff;
    --surface-alt: #e4f2ff;
    --text: #2b2f38;
    --muted: #4e6179;
    --line: rgba(37, 75, 104, 0.16);
    --blue: #1397c9;
    --blue-deep: #11688c;
    --gold: #2f8fc9;
    --gold-soft: rgba(47, 143, 201, 0.16);
    --shadow: 0 18px 44px rgba(32, 88, 135, 0.14);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), transparent 24%),
        linear-gradient(180deg, #cfe9ff 0%, #e6f4ff 42%, #f4fbff 76%, #fbfeff 100%);
}

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

img {
    max-width: 100%;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.site-header {
    position: sticky;
    top: 10px;
    z-index: 50;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    /* overflow visible so .nav-dropdown__menu (position:absolute) is not clipped */
    overflow: visible;
    background: url("header.jpg") center / cover no-repeat;
}

.legacy-banner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    min-height: 110px;
    padding: 18px 24px 14px 108px;
    overflow: hidden;
    transition: min-height 0.22s ease, padding 0.22s ease, opacity 0.18s ease;
}

@media (min-width: 768px) {
    .legacy-banner.legacy-banner--scrolled {
        display: none;
    }
}

.legacy-logo-badge {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 90px;
    height: 90px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
}

.legacy-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.eyebrow,
.section-kicker,
.card-label,
.resource-tag {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}


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

.intro-panel,
.section {
    scroll-margin-top: 170px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    position: relative;
    z-index: 2;
    padding: 0 10px 8px 12px;
    background: transparent;
}

.site-nav__menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    -webkit-appearance: none;
    appearance: none;
}

.site-nav__menu-icon,
.site-nav__menu-icon::before,
.site-nav__menu-icon::after {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav__menu-icon {
    position: relative;
}

.site-nav__menu-icon::before,
.site-nav__menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.site-nav__menu-icon::before {
    top: -5px;
}

.site-nav__menu-icon::after {
    top: 5px;
}

.site-nav__menu-toggle[aria-expanded="true"] .site-nav__menu-icon {
    background: transparent;
}

.site-nav__menu-toggle[aria-expanded="true"] .site-nav__menu-icon::before {
    transform: translateY(5px) rotate(45deg);
}

.site-nav__menu-toggle[aria-expanded="true"] .site-nav__menu-icon::after {
    transform: translateY(-5px) rotate(-45deg);
}

.site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #4bb0e6, #1f7fb8);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.18);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: linear-gradient(180deg, #6ac2ee, #2f97d0);
    color: #fff;
}

/* Vietnamese School nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    margin: 0;
    border: none;
    border-radius: 8px 8px 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(180deg, #4bb0e6, #1f7fb8);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.nav-dropdown__toggle::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.nav-dropdown__toggle:hover,
.nav-dropdown__toggle:focus-visible {
    background: linear-gradient(180deg, #6ac2ee, #2f97d0);
    color: #fff;
    outline: none;
}

.nav-dropdown:hover .nav-dropdown__toggle,
.nav-dropdown:focus-within .nav-dropdown__toggle {
    background: linear-gradient(180deg, #dbf1ff, #c7e8ff);
    color: #173347;
}

.nav-dropdown__caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    opacity: 0.85;
}

.nav-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: min(340px, 92vw);
    margin: 0;
    padding: 0;
    list-style: none;
    background: linear-gradient(180deg, #6ec7f0 0%, #339ed3 55%, #1f84bc 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-top: none;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 36px rgba(21, 77, 115, 0.28);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.nav-dropdown--open .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown__menu a {
    display: block;
    padding: 12px 18px;
    margin: 0;
    border-radius: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    box-shadow: none;
    color: #1a1a1a;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown__menu a:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    color: #0f1720;
}

/* Prayers page (legacy .kinhbg) */
.kinh-page .kinhbg {
    display: block;
    margin: 8px 0 20px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(143, 245, 170, 0.35);
    border: 1px solid rgba(17, 104, 140, 0.12);
}

.kinh-page .hdFont {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-deep);
}

.kinh-page .kinhbg p {
    margin: 0 0 10px;
    white-space: pre-line;
}

.kinh-page .kinhbg p:last-child {
    margin-bottom: 0;
}

.kinh-page .kinh-browser {
    margin-top: 4px;
}

.kinh-page .kinh-browser__layout {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 24px;
    align-items: start;
}

.kinh-page .kinh-browser__sidebar {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.kinh-page .kinh-browser__hint {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.4;
}

.kinh-page .kinh-browser__hint--mobile {
    display: none;
}

.kinh-page .kinh-browser__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kinh-page .kinh-browser__list li {
    margin: 0;
}

.kinh-page .kinh-browser__link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    margin: 0 0 2px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.25;
}

.kinh-page .kinh-browser__link:hover,
.kinh-page .kinh-browser__link:focus-visible {
    background: var(--gold-soft);
    outline: none;
}

.kinh-page .kinh-browser__link--active {
    background: rgba(19, 151, 201, 0.14);
    color: var(--blue-deep);
}

.kinh-page .kinh-browser__title {
    margin: 0 0 12px;
    font-size: 1.12rem;
}

.kinh-page .kinh-browser__body {
    margin: 0;
}

.kinh-page .kinh-browser__body ul {
    margin: 0 0 10px;
    padding-left: 1.2em;
}

.kinh-page .kinh-browser__body li {
    margin: 0 0 6px;
}

@media (max-width: 720px) {
    .kinh-page .kinh-browser__layout {
        grid-template-columns: 1fr;
    }

    .kinh-page .kinh-browser__sidebar {
        position: relative;
        top: auto;
        max-height: min(42vh, 320px);
    }

    .kinh-page .kinh-browser__hint--desktop {
        display: none;
    }

    .kinh-page .kinh-browser__hint--mobile {
        display: block;
    }
}

.nqgvhs-page .nq-inner {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.nqgvhs-page .nq-toc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 28px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    border: 1px solid var(--line);
    font-size: 0.9rem;
}

.nqgvhs-page .nq-toc__label {
    font-weight: 700;
    color: var(--muted);
    margin-right: 2px;
}

.nqgvhs-page .nq-toc a {
    color: var(--blue-deep);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(19, 151, 201, 0.35);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nqgvhs-page .nq-toc a:hover,
.nqgvhs-page .nq-toc a:focus-visible {
    color: var(--blue);
    border-bottom-color: var(--blue);
    outline: none;
}

.nqgvhs-page .nq-toc__sep {
    color: var(--muted);
    user-select: none;
}

.nqgvhs-page .nq-section {
    scroll-margin-top: 120px;
}

.nqgvhs-page .nq-section + .nq-section {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.nqgvhs-page .nq-section__head {
    margin-bottom: 1.25rem;
}

.nqgvhs-page .nq-section__title {
    margin: 0 0 8px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--blue-deep);
    line-height: 1.28;
}

.nqgvhs-page .nq-section__meta {
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: var(--muted);
}

.nqgvhs-page .nq-section__meta time {
    font-weight: 600;
    color: var(--text);
}

.nqgvhs-page .nq-section__actions {
    margin-top: 2px;
    flex-wrap: wrap;
    gap: 10px;
}

.nqgvhs-page .nq-lead {
    margin: 0 0 1.25rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text);
}

.nqgvhs-page .nq-list {
    margin: 0;
    padding-left: 1.35rem;
    line-height: 1.65;
    font-size: 0.98rem;
}

.nqgvhs-page .nq-list > li {
    margin: 0 0 0.85em;
    padding-left: 0.2em;
}

.nqgvhs-page .nq-list > li::marker {
    font-weight: 700;
    color: var(--gold);
}

.nqgvhs-page .nq-list--alpha {
    margin-top: 0.65em;
    margin-bottom: 0.5em;
    padding-left: 1.5rem;
}

.nqgvhs-page .nq-list--alpha > li {
    margin-bottom: 0.55em;
}

@media (max-width: 640px) {
    .nqgvhs-page .nq-toc {
        flex-direction: column;
        align-items: flex-start;
    }

    .nqgvhs-page .nq-toc__sep {
        display: none;
    }
}

.lang-toggle {
    margin-left: auto;
    padding: 7px 16px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #fff;
    transform: scale(1.07);
}

.section-heading h2 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    line-height: 1.1;
}

.section-heading p {
    color: rgba(255, 247, 234, 0.92);
    font-size: 1.02rem;
    line-height: 1.7;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(145deg, #4bb0e6, #1f7fb8);
    color: #fff;
    box-shadow: 0 10px 24px rgba(31, 127, 184, 0.24);
}

.button-secondary {
    background: rgba(236, 247, 255, 0.22);
    color: #fffef9;
    border: 1px solid rgba(210, 235, 251, 0.34);
}

.button.small {
    min-height: 40px;
    font-size: 0.95rem;
}


.contact-list,
.detail-list,
.stacked-list {
    margin: 0;
    padding: 0;
    list-style: none;
}


.section {
    margin-top: 28px;
    padding: 40px;
    border-radius: 36px;
    background: rgba(244, 251, 255, 0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(51, 158, 211, 0.16);
}

.section.alt {
    background: linear-gradient(180deg, rgba(47, 143, 201, 0.08), rgba(244, 251, 255, 0.96));
}

.section-heading {
    max-width: 760px;
}

.section-heading h2 {
    font-size: clamp(1.9rem, 1.5rem + 1vw, 3rem);
    color: var(--blue-deep);
}

.section-heading p {
    margin: 14px 0 0;
    color: var(--muted);
}

.section-heading.narrow {
    max-width: 680px;
}


.detail-list {
    display: grid;
    gap: 12px;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(29, 36, 48, 0.08);
    color: var(--muted);
}

.detail-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-list strong {
    color: var(--text);
    text-align: right;
}


.stacked-list {
    display: grid;
    gap: 10px;
    color: var(--muted);
}

.stacked-list a {
    color: var(--blue);
    font-weight: 600;
}


.resource-tag {
    display: inline-block;
    margin-bottom: 12px;
}


.news-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.news-links a {
    padding: 12px 14px;
    border-radius: 999px;
    background: #e6f3ff;
    color: var(--blue-deep);
    font-weight: 600;
}

.visit-section {
    background:
        radial-gradient(circle at top right, rgba(88, 188, 236, 0.2), transparent 32%),
        rgba(244, 251, 255, 0.94);
}

.phone-section__panel {
    margin: 0;
}

.phone-section__summary {
    display: none;
}

.phone-section__content {
    margin: 0;
}

.ll-page-section .ll-card,
.glvn-page-section .ll-card {
    padding: 22px 24px;
    margin-top: 18px;
    background: rgba(255, 254, 248, 0.96);
}

.ll-page-section .ll-card p,
.glvn-page-section .ll-card p {
    margin: 0;
    line-height: 1.7;
    color: var(--muted);
}

.ll-page-section .ll-card p + p,
.glvn-page-section .ll-card p + p {
    margin-top: 12px;
}

.ll-clergy-list {
    margin: 0;
    padding-left: 1.1rem;
    line-height: 1.65;
    color: var(--muted);
}

.ll-clergy-list ul {
    margin: 6px 0 14px;
    padding-left: 1.25rem;
}

.ll-clergy-list > li:last-child ul {
    margin-bottom: 0;
}

.table-scroll {
    margin-top: 22px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: rgba(255, 254, 248, 0.96);
}

.directory-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.98rem;
}

.directory-table td,
.directory-table th {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(17, 104, 140, 0.12);
}

.directory-table tr:last-child td {
    border-bottom: none;
}

.directory-table tr.directory-section th {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-deep);
    background: linear-gradient(90deg, rgba(47, 143, 201, 0.2), rgba(244, 251, 255, 0.5));
    border-bottom: 2px solid rgba(47, 143, 201, 0.45);
}

.directory-table td:first-child {
    font-weight: 600;
    color: var(--blue-deep);
    white-space: nowrap;
}

.directory-table a {
    color: var(--blue);
    font-weight: 600;
}

/* Hymn catalog (giaynhac.html) */
.hymn-page-section .hymn-controls-card {
    margin-top: 18px;
}

.hymn-controls {
    display: grid;
    gap: 16px;
}

@media (min-width: 900px) {
    .hymn-controls {
        grid-template-columns: 1.2fr 1fr 0.95fr;
        align-items: end;
    }
}

.hymn-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}

.hymn-input,
.hymn-select {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    font: inherit;
    background: #fff;
    color: var(--text);
}

.hymn-count {
    margin: 14px 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.hymn-load-err {
    color: #b91c1c;
    margin-top: 14px;
    font-weight: 600;
}

.hymn-table-wrap {
    margin-top: 18px;
}

.hymn-table thead th {
    background: linear-gradient(180deg, rgba(47, 143, 201, 0.12), rgba(244, 251, 255, 0.65));
    font-weight: 700;
    color: var(--blue-deep);
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: 0 1px 0 rgba(17, 104, 140, 0.12);
}

.hymn-table tbody td:first-child {
    white-space: normal;
    max-width: min(280px, 36vw);
}

.intro-panel,
.updates-card,
.mini-card,
.liturgy-card,
.resource-card-modern,
.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 28px;
    padding: 30px;
    background: rgba(255, 249, 234, 0.94);
}

.intro-copy h2 {
    margin: 0;
    color: var(--blue-deep);
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2rem, 1.7rem + 1.2vw, 3.2rem);
    line-height: 1.12;
}

.intro-text {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.75;
}

.daily-quote {
    margin: 22px 0 0;
    padding: 20px 22px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(47, 143, 201, 0.35);
    border-left: 5px solid var(--gold);
    background: #f6fbff;
    box-shadow: 0 10px 28px rgba(24, 92, 138, 0.12), 0 2px 8px rgba(17, 104, 140, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.daily-quote:hover {
    box-shadow: 0 14px 36px rgba(24, 92, 138, 0.16), 0 4px 12px rgba(17, 104, 140, 0.08);
}

.daily-quote--flash {
    animation: dailyQuoteFlash 0.38s ease;
}

@keyframes dailyQuoteFlash {
    0% {
        opacity: 1;
    }
    45% {
        opacity: 0.55;
    }
    100% {
        opacity: 1;
    }
}

.daily-quote--hidden {
    display: none;
}

.daily-quote-ref {
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f7fb8;
}

.daily-quote-text {
    margin: 0;
    padding: 0;
    border: none;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem);
    font-weight: 600;
    line-height: 1.58;
    color: var(--blue-deep);
}

.daily-quote-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(47, 143, 201, 0.22);
}

.daily-quote-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    color: #195f8a;
    background: linear-gradient(180deg, #dff2ff, #bee4fa);
    border: 1px solid rgba(31, 127, 184, 0.45);
    box-shadow: 0 4px 12px rgba(31, 127, 184, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.daily-quote-refresh:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(31, 127, 184, 0.28);
    filter: brightness(1.03);
}

.daily-quote-refresh:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.daily-quote-refresh:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


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

.action-card {
    display: block;
    min-height: 180px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fcff 0%, #e6f3ff 100%);
    border: 1px solid rgba(51, 158, 211, 0.18);
    box-shadow: 0 16px 34px rgba(24, 72, 100, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover,
.action-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px rgba(24, 72, 100, 0.14);
}

.action-primary {
    background: linear-gradient(180deg, #4bb0e6 0%, #1f7fb8 100%);
    color: #fff;
}

.action-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    color: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.action-card h3 {
    margin: 0 0 12px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.15;
}

.action-card p {
    margin: 0;
    color: inherit;
    line-height: 1.65;
}

.week-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 28px;
    align-items: start;
}

.week-sidebar {
    display: grid;
    gap: 18px;
}

.week-sidebar-card {
    padding: 22px;
    background: rgba(244, 251, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.week-sidebar-card h3,
.updates-card h3,
.mini-card h3,
.liturgy-card h3,
.resource-card-modern h3,
.contact-card h3 {
    margin: 0 0 14px;
    color: var(--blue-deep);
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.4rem;
    line-height: 1.15;
}

.updates-list {
    margin: 0;
    padding: 0;
    list-style: none;
}


.content-grid,
.double-panel,
.liturgy-grid,
.news-resource-grid,
.programs-grid {
    display: grid;
    gap: 20px;
}

.programs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.updates-card,
.mini-card,
.liturgy-card,
.resource-card-modern,
.contact-card {
    padding: 24px;
    background: var(--surface-strong);
}

.poster-card {
    padding: 16px;
    text-align: center;
}

.poster-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(24, 72, 100, 0.14);
}

.stacked-list {
    line-height: 1.7;
}

.liturgy-section {
    margin-top: 24px;
}

.liturgy-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 28px;
}

.liturgy-card {
    background: linear-gradient(180deg, rgba(249, 253, 255, 1), rgba(236, 247, 255, 1));
}

.button-light {
    background: #f4fbff;
    color: var(--blue-deep);
    border: 1px solid rgba(17, 104, 140, 0.14);
}

.news-resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.resource-card-modern {
    min-height: 210px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card-modern:hover,
.resource-card-modern:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px rgba(24, 72, 100, 0.14);
}

.wide-card {
    grid-column: span 2;
}

.contact-card {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

/* PDF viewer (Muoi Men, etc.) */
.pdf-viewer-wrap {
    margin-top: 28px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.pdf-viewer {
    display: block;
    width: 100%;
    height: 75vh;
    border: none;
    background: #fff;
}

.pdf-viewer-scroll {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 10px;
    background: #fff;
    overflow-anchor: none;
}

.pdf-viewer-page {
    contain: layout style paint;
}

.pdf-viewer-wrap[data-pdf-viewer] > iframe,
.pdf-viewer-wrap[data-pdf-viewer] > .pdf-viewer {
    display: block;
}

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
    .pdf-viewer-wrap[data-pdf-viewer] > iframe,
    .pdf-viewer-wrap[data-pdf-viewer] > .pdf-viewer {
        display: none !important;
    }

    .pdf-viewer-wrap[data-pdf-viewer] > .pdf-viewer-scroll {
        display: flex;
    }

    .pdf-viewer-wrap[data-pdf-viewer].pdf-viewer-wrap--iframe-fallback > iframe,
    .pdf-viewer-wrap[data-pdf-viewer].pdf-viewer-wrap--iframe-fallback > .pdf-viewer {
        display: block !important;
        height: 48vh;
        min-height: 320px;
    }

    .pdf-viewer-wrap[data-pdf-viewer].pdf-viewer-wrap--iframe-fallback > .pdf-viewer-scroll {
        display: none !important;
    }

    .pdf-viewer-wrap[data-pdf-viewer].pdf-viewer-wrap--inapp-fallback > iframe,
    .pdf-viewer-wrap[data-pdf-viewer].pdf-viewer-wrap--inapp-fallback > .pdf-viewer {
        display: none !important;
    }

    .pdf-viewer-wrap[data-pdf-viewer].pdf-viewer-wrap--inapp-fallback > .pdf-viewer-scroll {
        display: flex !important;
    }
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .pdf-viewer-wrap[data-pdf-viewer] > .pdf-viewer-scroll {
        display: none !important;
    }
}

.pdf-viewer-page canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(21, 77, 115, 0.12);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.pdf-viewer-status {
    margin: 20px 0;
    text-align: center;
    color: var(--muted);
}

.pdf-inapp-fallback {
    padding: 18px 14px;
    text-align: center;
}

.pdf-inapp-fallback__lead {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.6;
}

.pdf-inapp-fallback__button {
    display: inline-block;
    margin: 0 0 16px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(145deg, #4bb0e6, #1f7fb8);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(31, 127, 184, 0.24);
}

.pdf-inapp-fallback__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.pdf-mobile-note {
    display: none;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.6;
}

.pdf-actions {
    justify-content: center;
    margin-top: 20px;
}

/* Vatican News feed */
.vatican-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.news-item {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover,
.news-item:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px rgba(24, 72, 100, 0.14);
}

.news-item-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-alt);
}

.news-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-item-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-item-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.news-item-title {
    margin: 0 0 8px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.12rem;
    line-height: 1.3;
    color: var(--blue-deep);
}

.news-item-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
    flex: 1;
}

.news-item-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue);
}

.news-loading {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 48px 0;
}

.news-loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.4;
    animation: news-pulse 1.2s ease-in-out infinite;
}

.news-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.news-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes news-pulse {
    0%, 100% { opacity: 0.25; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.1); }
}

.news-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 16px;
    color: var(--muted);
    font-size: 1rem;
}

.news-error a {
    color: var(--blue);
    font-weight: 600;
}

@media (max-width: 1100px) {
    .intro-panel,
    .programs-grid,
    .liturgy-grid,
    .news-resource-grid,
    .vatican-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .contact-card {
        flex-direction: column;
        align-items: stretch;
    }

    .wide-card {
        grid-column: auto;
    }
}

@media (max-width: 820px) {
    .page-shell {
        width: min(100% - 16px, 1180px);
        padding-top: 12px;
    }

    .intro-panel,
    .section {
        padding: 20px;
        border-radius: 28px;
    }

    .site-header {
        top: 6px;
        border-radius: 24px;
    }

    .legacy-banner {
        min-height: auto;
        padding: 14px 16px 18px 74px;
        align-items: flex-start;
    }

    .legacy-logo-badge {
        left: 8px;
        width: 60px;
        height: 60px;
    }

    .legacy-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 767px) {
    .section {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-header {
        background:
            linear-gradient(180deg, rgba(207, 233, 255, 0.98), rgba(233, 246, 255, 0.98));
    }

    .legacy-banner {
        min-height: 90px;
        padding: 8px 16px 6px;
        justify-content: center;
        align-items: center;
    }

    .legacy-logo-badge {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        width: 92px;
        height: 92px;
        margin: 0 auto;
    }

    .legacy-logo {
        width: 92px;
        height: 92px;
    }

    .site-nav {
        margin-top: -8px;
        gap: 8px;
        padding: 0 10px 10px;
        align-items: center;
    }

    .action-grid,
    .week-layout,
    .programs-grid,
    .liturgy-grid,
    .news-resource-grid,
    .vatican-news-grid {
        grid-template-columns: 1fr;
    }

    .site-nav__menu-toggle {
        display: inline-flex;
        order: 1;
        border-color: rgba(17, 104, 140, 0.22);
        background: rgba(232, 245, 255, 0.96);
        color: var(--blue-deep);
        text-shadow: none;
        box-shadow: 0 8px 18px rgba(21, 77, 115, 0.14);
    }

    .site-nav > .lang-toggle {
        order: 2;
        margin-left: auto;
        min-height: 44px;
        padding: 0 14px;
        font-size: 0.82rem;
        border-color: rgba(17, 104, 140, 0.22);
        background: rgba(232, 245, 255, 0.96);
        color: var(--blue-deep);
        text-shadow: none;
        box-shadow: 0 8px 18px rgba(21, 77, 115, 0.14);
    }

    .site-nav__menu-toggle:hover,
    .site-nav__menu-toggle:focus-visible,
    .site-nav > .lang-toggle:hover,
    .site-nav > .lang-toggle:focus-visible {
        background: #f6fbff;
        color: var(--blue-deep);
        border-color: rgba(17, 104, 140, 0.3);
    }

    .site-nav > a,
    .site-nav > .nav-dropdown {
        display: none;
        order: 3;
        flex: 1 1 100%;
        width: 100%;
    }

    .site-nav.site-nav--open > a {
        display: flex;
    }

    .site-nav.site-nav--open > .nav-dropdown {
        display: block;
    }

    .site-nav.site-nav--open > a,
    .site-nav.site-nav--open .nav-dropdown__toggle {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        border: none;
        border-radius: 16px;
        box-shadow: 0 10px 20px rgba(21, 77, 115, 0.12);
    }

    .site-nav .nav-dropdown__menu {
        position: static;
        left: auto;
        right: auto;
        min-width: 0;
        width: 100%;
        margin-top: 6px;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        background: transparent;
    }

    .site-nav .nav-dropdown.nav-dropdown--open .nav-dropdown__menu {
        max-height: 420px;
    }

    .site-nav .nav-dropdown__menu a {
        margin-top: 6px;
        padding: 11px 14px;
        border: none;
        border-radius: 14px;
        background: rgba(244, 251, 255, 0.96);
        color: var(--text);
        text-align: left;
        text-transform: none;
        letter-spacing: 0.01em;
    }

    .site-nav .nav-dropdown__menu a:last-child {
        border-radius: 14px;
    }

    .intro-copy h2 {
        max-width: none;
    }

    .action-card,
    .resource-card-modern {
        min-height: auto;
    }

    .detail-list li {
        flex-direction: column;
        align-items: start;
    }

    .detail-list strong {
        text-align: left;
    }

    .site-header.site-header--scrolled .legacy-banner,
    .legacy-banner.legacy-banner--scrolled {
        display: flex;
        max-height: 0;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: none;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .site-header {
        background-position: left center;
    }

    .site-header.site-header--scrolled .legacy-banner,
    .legacy-banner.legacy-banner--scrolled {
        display: flex;
        max-height: 0;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: none;
    }
}

@media (max-width: 767px) and (orientation: portrait) {
    .home-main {
        display: flex;
        flex-direction: column;
    }

    .home-priority-hero {
        order: 1;
    }

    #this-week.home-priority-primary {
        order: 2;
    }

    #mass-times.home-priority-primary {
        order: 3;
    }

    #visit.home-priority-primary {
        order: 4;
    }

    .home-priority-secondary {
        order: 5;
    }

    .intro-panel {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .phone-section__summary {
        position: relative;
        display: block;
        padding-right: 40px;
        list-style: none;
        cursor: pointer;
    }

    .phone-section__summary::-webkit-details-marker {
        display: none;
    }

    .phone-section__summary::before,
    .phone-section__summary::after {
        position: absolute;
        right: 8px;
        top: 50%;
        width: 16px;
        height: 2px;
        border-radius: 999px;
        background: var(--blue);
        content: "";
        transform: translateY(-50%);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .phone-section__summary::after {
        transform: translateY(-50%) rotate(90deg);
    }

    .phone-section__panel[open] > .phone-section__summary::after {
        opacity: 0;
    }

    .phone-section__kicker {
        display: block;
        margin-bottom: 6px;
        color: var(--gold);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .phone-section__title {
        display: block;
        color: var(--blue-deep);
        font-family: "Fraunces", Georgia, serif;
        font-size: clamp(1.35rem, 1.1rem + 2vw, 1.8rem);
        line-height: 1.15;
    }

    .phone-section__hint {
        display: inline-flex;
        margin-top: 10px;
        color: var(--muted);
        font-size: 0.92rem;
        font-weight: 600;
    }

    .phone-section__panel[open] > .phone-section__content {
        margin-top: 16px;
    }

    .phone-section__panel[open] > .phone-section__content > .section-heading {
        display: none;
    }

    .story-reader-controls__row {
        gap: 8px;
    }

    .story-reader-field {
        flex: 0 0 auto;
        gap: 4px;
    }

    .story-reader-actions {
        flex: 0 0 auto;
    }

    .story-reader-count {
        margin-top: 8px;
    }
}

@media (max-width: 520px) {
    .page-shell {
        width: min(100% - 12px, 1180px);
        padding-top: 8px;
        padding-bottom: 40px;
    }

    .intro-panel,
    .section {
        padding: 18px;
        border-radius: 22px;
        scroll-margin-top: 116px;
    }

    .section {
        margin-top: 20px;
    }

    .section-kicker,
    .card-label,
    .resource-tag {
        margin-bottom: 6px;
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .section-heading h2 {
        font-size: clamp(1.6rem, 1.25rem + 4vw, 2.2rem);
        line-height: 1.16;
    }

    .section-heading p,
    .intro-text,
    .story-reader-page .story-reader-lead {
        font-size: 0.96rem;
        line-height: 1.6;
    }

    .intro-panel {
        gap: 18px;
        padding: 20px 18px;
    }

    .intro-copy h2 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
        line-height: 1.14;
    }

    .daily-quote {
        margin-top: 16px;
        padding: 16px;
    }

    .daily-quote-text {
        line-height: 1.5;
    }

    .button-row {
        gap: 10px;
        margin-top: 18px;
    }

    .button,
    .lang-toggle,
    .site-nav__menu-toggle,
    .story-reader-btn {
        min-height: 44px;
    }

    .week-sidebar-card,
    .updates-card,
    .mini-card,
    .liturgy-card,
    .resource-card-modern,
    .contact-card {
        padding: 18px;
    }

    .action-grid {
        gap: 12px;
    }

    .action-card {
        min-height: auto;
        padding: 18px;
    }

    .action-card h3,
    .week-sidebar-card h3,
    .updates-card h3,
    .mini-card h3,
    .liturgy-card h3,
    .resource-card-modern h3,
    .contact-card h3 {
        font-size: 1.22rem;
    }

    .table-scroll {
        margin-top: 16px;
    }

    .directory-table {
        min-width: 440px;
        font-size: 0.92rem;
    }

    .directory-table td,
    .directory-table th {
        padding: 10px 12px;
    }

    .directory-table td:first-child {
        white-space: normal;
    }

    .hymn-table tbody td:first-child {
        max-width: none;
    }

    .story-reader-controls__row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .story-reader-field,
    .story-reader-actions {
        width: 100%;
    }

    .story-reader-actions .story-reader-btn {
        width: 100%;
        justify-content: center;
    }

    .story-lang {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .story-reader-sidebar {
        max-height: 180px;
        padding: 10px;
    }

    .story-reader-card {
        padding: 20px 18px 22px;
    }

    .story-reader-body {
        font-size: 1rem;
        line-height: 1.68;
    }

    .kinh-page .kinh-browser__sidebar {
        max-height: 180px;
        padding: 10px 12px;
    }

    .pdf-mobile-note {
        display: block;
    }

    .pdf-actions {
        justify-content: stretch;
    }

    .pdf-actions .button {
        flex: 1 1 100%;
    }
}

/* Forms page — school / youth PDFs emphasized */
.dt-priority-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.dt-priority-list a {
    color: #b91c1c;
    font-weight: 700;
}

.dt-priority-list a:hover,
.dt-priority-list a:focus-visible {
    color: #7f1d1d;
    text-decoration: underline;
}

/* 300 illustrated stories reader */
.story-reader-page .story-reader-hero-title {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.2;
    max-width: 28ch;
}

.story-reader-page .story-reader-lead {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.story-reader-disclaimer__text {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.story-reader-controls__row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: flex-end;
}

.story-reader-field {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
}

.story-reader-input,
.story-reader-select {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font: inherit;
    background: var(--surface-strong);
    color: var(--text);
}

.story-reader-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-reader-btn {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    background: var(--surface-strong);
    color: var(--text);
}

.story-reader-btn--ghost:hover,
.story-reader-btn--ghost:focus-visible {
    border-color: var(--blue);
    color: var(--blue-deep);
    outline: none;
}

.story-reader-count {
    margin: 12px 0 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.story-reader-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 8px;
}

.story-reader-sidebar {
    position: sticky;
    top: 140px;
    max-height: calc(100vh - 160px);
    overflow: auto;
    padding: 14px 12px 18px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.story-reader-hint {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: var(--muted);
}

.story-reader-hint--mobile {
    display: none;
}

.story-reader-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.story-reader-link {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--text);
    border: 1px solid transparent;
}

.story-reader-link:hover,
.story-reader-link:focus-visible {
    background: var(--gold-soft);
    outline: none;
}

.story-reader-link--active {
    background: var(--surface-strong);
    border-color: var(--gold);
    font-weight: 600;
}

.story-reader-pane__toolbar {
    margin-bottom: 12px;
}

.story-lang {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.story-lang__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.story-lang__toggle {
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--surface-alt);
}

.story-lang__btn {
    border: none;
    margin: 0;
    padding: 8px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--muted);
}

.story-lang__btn--active {
    background: var(--surface-strong);
    color: var(--blue-deep);
}

.story-lang__btn:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.story-reader-issue {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #b45309;
}

.story-reader-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, var(--surface-strong) 0%, var(--surface) 55%, var(--surface-alt) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 26px 28px 32px;
    position: relative;
    overflow: hidden;
}

.story-reader-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--blue));
    opacity: 0.85;
}

.story-reader-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 12px;
}

.story-reader-num {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-deep);
}

.story-reader-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.story-reader-chip {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    border: 1px solid rgba(184, 134, 11, 0.35);
}

.story-reader-title {
    margin: 0 0 18px;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.25;
    color: var(--text);
    max-width: 42ch;
}

.story-reader-body {
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 65ch;
    color: var(--text);
    white-space: pre-wrap;
}

.story-reader-loading {
    margin: 14px 0 0;
    font-style: italic;
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    .story-reader-link,
    .story-reader-btn,
    .story-lang__btn {
        transition: none;
    }
}

@media (max-width: 900px) {
    .story-reader-layout {
        grid-template-columns: 1fr;
    }

    .story-reader-sidebar {
        position: static;
        max-height: 220px;
    }

    .story-reader-hint--desktop {
        display: none;
    }

    .story-reader-hint--mobile {
        display: block;
    }
}

@media (max-width: 767px) and (orientation: portrait) {
    .story-reader-page .story-reader-controls__row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .story-reader-page .story-reader-field,
    .story-reader-page .story-reader-actions {
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
    }

    .story-reader-page .story-reader-field {
        gap: 4px;
    }

    .story-reader-page .story-reader-actions .story-reader-btn {
        width: 100%;
        justify-content: center;
    }

    .story-reader-page .story-reader-count {
        margin-top: 8px;
    }
}

/* Homepage: random story spotlight (above Vatican news) */
.home-story-spotlight .section-heading {
    max-width: none;
}

.home-story-spotlight .home-story-spotlight-card {
    max-width: none;
    width: 100%;
}

.home-story-spotlight .story-reader-title {
    max-width: none;
}

.home-story-spotlight .home-story-body {
    margin: 0 0 1.25rem;
    max-width: none;
    width: 100%;
}

.home-story-spotlight .home-story-spotlight-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.youtube-page__title-art {
    margin: 14px auto 18px;
    max-width: 820px;
    overflow: hidden;
    border-radius: calc(var(--radius-lg) + 4px);
    border: 1px solid rgba(142, 213, 248, 0.45);
    box-shadow: 0 18px 36px rgba(11, 32, 74, 0.14);
}

.youtube-page__title-art img {
    display: block;
    width: 100%;
    height: auto;
}

.video-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(244, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
    border: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(11, 32, 74, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(28, 60, 114, 0.2);
    box-shadow: 0 24px 42px rgba(11, 32, 74, 0.15);
}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-embed iframe,
.video-embed img {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-embed img {
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-embed--link {
    overflow: hidden;
}

.video-card:hover .video-embed img {
    transform: scale(1.04);
}

.video-embed--link::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 23, 52, 0.06), rgba(9, 23, 52, 0.44));
    content: "";
}

.video-embed__play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(232, 245, 255, 0.96);
    color: var(--blue-deep);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.video-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
}

.video-card__body h3 {
    margin: 0;
    color: var(--blue-deep);
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.4;
    word-break: break-word;
}

.video-card__desc {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.65;
    font-size: 0.95rem;
}

.video-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 2px;
}

.video-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(28, 60, 114, 0.08);
    color: var(--blue-deep);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.video-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 40px;
    margin-top: 2px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(28, 60, 114, 0.18);
}

.video-card__link:hover,
.video-card__link:focus-visible {
    color: #fff;
}

@media (max-width: 1100px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Food committee page (BAT_Menu.html) */
.bat-menu-page .bat-menu-figure {
    margin: 16px 0 0;
}

.bat-menu-page .bat-menu-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
}

.bat-menu-page .bat-menu-caption {
    margin: 10px 0 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.45;
}

.bat-menu-page .bat-menu-note {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--muted);
    line-height: 1.6;
}

.bat-menu-page .bat-committee-layout {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 8px;
}

.bat-menu-page .bat-committee-photo {
    margin: 0;
}

.bat-menu-page .bat-committee-text p {
    margin: 0 0 14px;
    line-height: 1.65;
}

.bat-menu-page .bat-committee-text .button {
    margin-right: 10px;
    margin-bottom: 8px;
}

@media (max-width: 720px) {
    .bat-menu-page .bat-committee-layout {
        grid-template-columns: 1fr;
    }
}

.archive-note {
    margin: 16px 0 0;
    font-size: 0.92rem;
}

.archive-note a {
    color: var(--blue-deep);
    text-decoration: underline;
}
