/* Layout: "Nave" — a dark candlelit cathedral opens the page, then ivory vellum sections divided by gold hairlines, like walking from the nave into the side chapels. */
:root {
  --bg: #FBF7EE;
  --surface: #FFFDF8;
  --surface-2: #F3ECDD;
  --ink: #2A2118;
  --muted: #6E604E;
  --line: #E2D5BA;
  --gold: #86601F;
  --gold-soft: #EADBB8;
  --marian: #22457A;
  --marian-soft: #DCE5F2;
  --wine: #7A1F2B;
  --wine-soft: #F2DEDF;
  --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 8px 24px rgba(60, 40, 10, .07);
  --nave: #100C0A;
  --nave-ink: #F3EAD7;
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-inscription: "Cinzel", "Trajan Pro", "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --wrap: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110E; --surface: #1C1814; --surface-2: #241F19; --ink: #F1E8D6; --muted: #B5A78E;
    --line: #3A3227; --gold: #D6B169; --gold-soft: #3B3122; --marian: #9DB9E6; --marian-soft: #1E2A3D;
    --wine: #E0848F; --wine-soft: #3A2024; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14110E; --surface: #1C1814; --surface-2: #241F19; --ink: #F1E8D6; --muted: #B5A78E;
  --line: #3A3227; --gold: #D6B169; --gold-soft: #3B3122; --marian: #9DB9E6; --marian-soft: #1E2A3D;
  --wine: #E0848F; --wine-soft: #3A2024; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--nave); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }

/* ───────── Navigation ───────── */
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background .4s, box-shadow .4s, color .4s;
  color: var(--nave-ink);
}
.nav.solid { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-inscription); letter-spacing: .14em; font-size: 15px; white-space: nowrap; }
.brand svg { width: 22px; height: 22px; color: var(--gold); }
.nav.solid .brand svg { color: var(--gold); }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; font-size: 14.5px; padding: 8px 10px; border-radius: 8px; opacity: .85; transition: opacity .2s, background .2s; white-space: nowrap; }
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.nav-tools { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); background: transparent; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 1320px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); color: var(--ink); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 12px 24px rgba(0,0,0,.15); border-top: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-btn { display: grid; }
  .nav-tools { margin-left: auto; }
}

/* ───────── Hero: the nave ───────── */
.hero { position: relative; height: clamp(600px, 92vh, 900px); background: var(--nave) url("katedral.jpg") 62% 50% / cover no-repeat; color: var(--nave-ink); overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; }
.hero canvas.nave3d { opacity: 0; transition: opacity 1.6s ease; }
.hero.ready3d canvas.nave3d { opacity: 1; }
.hero-content { position: relative; z-index: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 60% 40%, transparent 40%, rgba(5, 3, 2, .55) 100%), linear-gradient(90deg, rgba(8, 5, 3, .72) 0%, rgba(8, 5, 3, .25) 45%, transparent 70%); }
.hero h1, .hero-verse, .hero-eyebrow { text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }

/* Intro: layar hitam dengan salib emas yang memudar saat halaman dibuka */
.intro { position: fixed; inset: 0; z-index: 90; background: #060404; display: grid; place-items: center; pointer-events: none; animation: introOut 1.3s ease .9s forwards; }
.intro-mark { display: grid; justify-items: center; gap: 14px; color: #D9B870; font-family: var(--font-inscription); letter-spacing: .4em; font-size: 13px; animation: introMark 1.6s ease both; }
.intro-mark svg { width: 34px; height: 34px; filter: drop-shadow(0 0 18px rgba(230, 190, 110, .8)); }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
@keyframes introMark { from { opacity: 0; transform: translateY(8px); letter-spacing: .6em; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* Kilau emas yang bergerak pelan pada kata bercetak miring di judul */
.sec-head h2 em, .hero h1 em {
  background: linear-gradient(100deg, var(--wine) 0%, var(--wine) 40%, var(--gold) 50%, var(--wine) 60%, var(--wine) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s ease-in-out infinite;
}
.hero h1 em { background-image: linear-gradient(100deg, #E7CB8B 0%, #E7CB8B 40%, #FFF3D1 50%, #E7CB8B 60%, #E7CB8B 100%); }
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sec-head h2 em, .hero h1 em { animation: none; } }

/* Tilt + Spotlight (dari 21st) */
.fx-tilt { position: relative; overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.fx-spot { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 0;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--gold) 34%, transparent), color-mix(in srgb, var(--gold) 10%, transparent) 45%, transparent 72%); filter: blur(18px); }
.fx-tilt > :not(.fx-spot) { position: relative; z-index: 1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--nave)); z-index: -1; pointer-events: none; }
.hero-content { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 96px clamp(48px, 9vh, 96px); }
.hero-eyebrow { font-family: var(--font-inscription); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: #D9B870; display: flex; align-items: center; gap: 14px; }
.hero-eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(56px, 10vw, 136px); font-weight: 500; letter-spacing: -.01em; margin-top: 14px; line-height: .95; }
.hero h1 em { font-style: italic; color: #E7CB8B; font-weight: 400; }
.hero-verse { margin-top: 22px; max-width: 34ch; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-style: italic; line-height: 1.4; color: #EFE3CB; }
.hero-verse cite { display: block; margin-top: 8px; font-family: var(--font-inscription); font-style: normal; font-size: 12px; letter-spacing: .24em; color: #C9A964; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .02em; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #E3C47F, #B88A3A); color: #1C1308; box-shadow: 0 6px 24px rgba(214, 170, 80, .35); }
.btn-ghost { border-color: rgba(243, 234, 215, .4); color: var(--nave-ink); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(243, 234, 215, .8); }
.hero-scroll { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 28px; font-family: var(--font-inscription); font-size: 11px; letter-spacing: .3em; color: #BFA370; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.hero-scroll::after { content: ""; width: 1px; height: 56px; background: linear-gradient(#BFA370, transparent); animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); } }

/* ───────── Sections ───────── */
section.block { padding-block: clamp(72px, 10vw, 120px); }
section.alt { background: var(--surface-2); }
.sec-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.eyebrow { font-family: var(--font-inscription); font-size: 12.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; }
.eyebrow svg { width: 14px; height: 14px; }
.sec-head h2 { font-size: clamp(40px, 5.5vw, 64px); font-weight: 500; }
.sec-head h2 em { font-style: italic; color: var(--wine); font-weight: 400; }
.sec-head p { color: var(--muted); font-size: 18px; max-width: 60ch; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); padding-block: 8px; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: min(28vw, 220px); background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { width: 18px; height: 18px; }

.reveal { transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s; }
.reveal.pre { transform: translateY(18px); opacity: .3; }
@media (prefers-reduced-motion: reduce) { .reveal.pre { transform: none; opacity: 1; } html { scroll-behavior: auto; } .hero-scroll::after { animation: none; } }

/* ───────── Prayers ───────── */
.prayer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.prayer-card {
  text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; cursor: pointer; display: grid; gap: 8px; align-content: start; min-width: 0;
  transition: border-color .25s, transform .25s, box-shadow .25s; position: relative;
}
.prayer-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.prayer-card .latin { font-family: var(--font-inscription); font-size: 11px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.prayer-card h3 { font-size: 27px; }
.prayer-card p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prayer-card .open { font-size: 13.5px; font-weight: 600; color: var(--marian); margin-top: 6px; }

dialog.sheet {
  border: 1px solid var(--line); border-radius: 18px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: min(86vh, 760px);
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
dialog.sheet::backdrop { background: rgba(16, 12, 10, .6); backdrop-filter: blur(4px); }
.sheet-inner { padding: 32px clamp(20px, 5vw, 44px) 28px; display: grid; gap: 16px; }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.sheet h3 { font-size: clamp(32px, 5vw, 42px); }
.sheet .prayer-text { font-family: var(--font-display); font-size: 22px; line-height: 1.6; white-space: pre-line; }
.sheet .prayer-text b { font-family: var(--font-body); font-size: 13px; letter-spacing: .08em; color: var(--wine); font-weight: 700; }
.sheet-foot { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.btn-line { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--gold); }

/* ───────── Rosary ───────── */
.rosary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .rosary { grid-template-columns: 1fr; } }
.rosary-visual { position: relative; background: radial-gradient(circle at 50% 38%, var(--surface) 0%, var(--surface-2) 70%); border: 1px solid var(--line); border-radius: 24px; padding: 16px; }
.rosary-visual svg { width: 100%; height: auto; display: block; max-height: 640px; }
.bead { cursor: pointer; transition: r .2s; }
.bead circle { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 1.2; transition: fill .3s; }
.bead.big circle { fill: var(--marian-soft); stroke: var(--marian); }
.bead.done circle { fill: var(--gold); }
.bead.big.done circle { fill: var(--marian); }
.bead.current circle { fill: var(--wine); stroke: var(--wine); }
.rosary-visual .bead circle.halo { fill: none; stroke: none; }
.rosary-visual .bead.current circle.halo { stroke: var(--wine); stroke-width: 1.5; opacity: .45; animation: halo 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.bead.current .crucifix path { fill: var(--wine); }
@keyframes halo { from { transform: scale(1); opacity: .6; } to { transform: scale(2.2); opacity: 0; } }
.rosary-chain { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .6; }
.crucifix path { fill: var(--gold); }
.bead.current .crucifix-glow { opacity: 1; }
.rosary-panel { display: grid; gap: 18px; min-width: 0; }
.set-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.set-tab { border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; }
.set-tab[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.set-tab .today { font-weight: 400; opacity: .7; font-size: 12px; margin-left: 4px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; box-shadow: var(--shadow); }
.step-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.step-card h3 { font-size: clamp(30px, 4vw, 40px); }
.mystery { border-left: 2px solid var(--wine); padding: 4px 0 4px 16px; display: grid; gap: 2px; }
.mystery .label { font-family: var(--font-inscription); font-size: 11.5px; letter-spacing: .2em; color: var(--wine); text-transform: uppercase; }
.mystery .title { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.mystery .ref { font-size: 13.5px; color: var(--muted); }
.step-text { font-family: var(--font-display); font-size: 21px; line-height: 1.55; white-space: pre-line; max-height: 300px; overflow: auto; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--wine)); width: 0; transition: width .4s; }
.step-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.step-nav .btn-solid { background: var(--ink); color: var(--bg); }
.hint { font-size: 13.5px; color: var(--muted); }

/* ───────── Liturgical calendar ───────── */
.liturgy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 900px) { .liturgy { grid-template-columns: 1fr; } }
.season-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
@media (max-width: 560px) { .season-card { grid-template-columns: 1fr; } }
.season-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--lit, var(--gold)); }
.season-date { font-size: 14px; color: var(--muted); }
.season-name { font-size: clamp(40px, 5vw, 58px); font-family: var(--font-display); font-weight: 600; line-height: 1; margin-top: 6px; }
.season-week { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--muted); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); }
.chip i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.2); }
.season-desc { margin-top: 16px; color: var(--muted); max-width: 52ch; }
.year-ring { width: 210px; max-width: 100%; justify-self: center; }
.year-ring text { font-family: var(--font-body); fill: var(--muted); }
.year-ring .ring-center { font-family: var(--font-display); fill: var(--ink); }
.feasts { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.feasts h3 { font-size: 28px; margin-bottom: 8px; }
.feast-list { list-style: none; padding: 0; margin: 0; }
.feast-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feast-list li:last-child { border-bottom: 0; }
.feast-date { text-align: center; font-variant-numeric: tabular-nums; line-height: 1.05; }
.feast-date b { display: block; font-family: var(--font-display); font-size: 28px; }
.feast-date small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.feast-name { font-weight: 600; }
.feast-name small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.feast-left { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.color-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.color-legend div { display: flex; gap: 12px; align-items: start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; }
.color-legend i { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); margin-top: 2px; }
.color-legend b { display: block; }
.color-legend span { color: var(--muted); }

/* ───────── Sacraments ───────── */
.sac-groups { display: grid; gap: 40px; }
.sac-group h3 { font-family: var(--font-inscription); font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; display: flex; gap: 12px; align-items: center; }
.sac-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sac-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sac { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.sac-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.sac-icon svg { width: 26px; height: 26px; }
.sac h4 { font-family: var(--font-display); font-size: 28px; margin: 0; font-weight: 600; }
.sac p { color: var(--muted); font-size: 15.5px; }
.sac .sign { font-size: 13.5px; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.sac .sign b { color: var(--wine); font-weight: 600; }

/* ───────── Teaching tabs ───────── */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tab { background: none; border: 0; padding: 12px 16px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.panel-intro { color: var(--muted); max-width: 62ch; margin-bottom: 24px; }
.num-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; counter-reset: n; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.num-list li::before { content: counter(n, upper-roman); font-family: var(--font-display); font-size: 26px; color: var(--gold); line-height: 1.1; font-weight: 600; }
.num-list b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.3; }
.num-list span { color: var(--muted); font-size: 15px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.t-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.t-card .k { font-family: var(--font-inscription); font-size: 11px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.t-card h4 { margin: 0; font-family: var(--font-display); font-size: 25px; font-weight: 600; line-height: 1.15; }
.t-card p { color: var(--muted); font-size: 15px; }
.split-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.split-2 h4 { font-family: var(--font-display); font-size: 28px; margin: 0 0 8px; font-weight: 600; }

/* ───────── Mass ───────── */
.mass { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface); }
@media (max-width: 980px) { .mass { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mass { grid-template-columns: 1fr; } }
.mass-part { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; min-width: 0; }
.mass-part .no { font-family: var(--font-inscription); font-size: 12px; letter-spacing: .24em; color: var(--gold); }
.mass-part h3 { font-size: 30px; }
.mass-part p { color: var(--muted); font-size: 15px; }
.mass-part ol { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.mass-part ol li::marker { color: var(--gold); font-variant-numeric: tabular-nums; }
.mass-part ol small { color: var(--muted); display: block; font-size: 13px; }

/* ───────── Timeline ───────── */
.tl-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), var(--line)); }
.tl-item { display: grid; grid-template-columns: 74px 24px minmax(0, 1fr); gap: 0 12px; padding: 14px 0; align-items: start; }
.tl-year { font-family: var(--font-display); font-size: 24px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; margin: 9px auto 0; background: var(--bg); border: 2px solid var(--gold); position: relative; z-index: 1; }
.tl-item.id .tl-dot { border-color: var(--wine); background: var(--wine); }
.tl-body b { font-weight: 600; font-size: 17px; }
.tl-body p { color: var(--muted); font-size: 15px; }
.tl-tag { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; background: var(--wine-soft); color: var(--wine); }

/* ───────── Saints ───────── */
.saints { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.saint { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; transition: transform .25s, box-shadow .25s; }
.saint:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.saint-art { aspect-ratio: 16 / 9; max-width: 100%; position: relative; display: grid; place-items: center; overflow: hidden; }
.saint-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.saint-art .mono { position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-inscription); font-size: 26px; color: #2A1E0E; background: radial-gradient(circle at 35% 30%, #F6E3AE, #C2923F 70%); box-shadow: 0 0 0 4px rgba(255,240,200,.25), 0 0 40px rgba(255, 210, 120, .5); }
.saint-body { padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start; }
.saint-feast { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--wine); }
.saint h4 { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.15; }
.saint .patron { font-size: 13.5px; color: var(--marian); font-weight: 600; }
.saint p { color: var(--muted); font-size: 15px; }
.saint .id-badge { justify-self: start; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; padding: 3px 9px; border-radius: 6px; background: var(--wine-soft); color: var(--wine); }

/* ───────── Quiz ───────── */
.quiz { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; box-shadow: var(--shadow); }
.quiz-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quiz h3 { font-size: clamp(28px, 3.6vw, 36px); }
.options { display: grid; gap: 10px; }
.opt { text-align: left; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 16px; transition: border-color .2s, background .2s; }
.opt:hover:not(:disabled) { border-color: var(--gold); }
.opt.right { border-color: #3D7A4A; background: color-mix(in srgb, #3D7A4A 14%, var(--bg)); }
.opt.wrong { border-color: var(--wine); background: var(--wine-soft); }
.opt:disabled { cursor: default; }
.explain { font-size: 15px; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 14px; }

/* ───────── Mengenal Iman Katolik ───────── */
.sub-h { font-family: var(--font-display); font-size: clamp(26px, 3vw, 32px); font-weight: 600; margin: 0 0 16px; }
.basics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); margin-bottom: 56px; }
.basic { padding: 22px 20px; border-right: 1px solid var(--line); display: grid; gap: 6px; align-content: start; min-width: 0; }
.basic:last-child { border-right: 0; }
.basic h4 { margin: 0; font-family: var(--font-display); font-size: 25px; font-weight: 600; color: var(--wine); }
.basic p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .basic { border-right: 0; border-bottom: 1px solid var(--line); } .basic:last-child { border-bottom: 0; } }
.kenal-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 56px; }
@media (max-width: 900px) { .kenal-grid { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.faq-item[open] { border-color: var(--gold); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 600; font-size: 16.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: 0 0 18px; height: 18px; position: relative; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .25s; }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-item p { padding: 0 18px 18px; color: var(--muted); font-size: 15.5px; max-width: 70ch; }
.visit-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 28px); position: sticky; top: 90px; }
.visit-intro { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.visit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.visit-list li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.visit-list b { font-weight: 600; }
.visit-list span { color: var(--muted); font-size: 14.5px; }
.journey { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; counter-reset: j; }
.journey li { counter-increment: j; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 6px; align-content: start; position: relative; min-width: 0; }
.journey li::before { content: counter(j); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.journey b { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.2; }
.journey span { color: var(--muted); font-size: 14.5px; }
.gloss-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.gloss-head .sub-h { margin: 0; }
.gloss-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; width: min(360px, 100%); }
.gloss-search:focus-within { border-color: var(--gold); }
.gloss-search svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.gloss-search input { border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; width: 100%; min-width: 0; }
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; margin: 0; }
.g-row { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.g-row dt { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--wine); }
.g-row dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* ───────── Jalan Salib (pita gelap) ───────── */
section.passion { position: relative; background: var(--nave); color: var(--nave-ink); overflow: hidden; isolation: isolate; }
section.passion::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("katedral.jpg") center 30% / cover no-repeat; opacity: .42; filter: saturate(.85); }
section.passion::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 75% 30%, rgba(214, 160, 80, .16), transparent 70%), linear-gradient(180deg, var(--nave) 0%, rgba(16, 12, 10, .55) 30%, rgba(16, 12, 10, .7) 70%, var(--nave) 100%); }
.passion .sec-head p, .passion .hint { color: #BFAF95; }
.passion .eyebrow { color: #D9B870; }
.passion .sec-head h2 em { background-image: linear-gradient(100deg, #E0848F 0%, #E0848F 40%, #F3D28E 50%, #E0848F 60%, #E0848F 100%); }
.via { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .via { grid-template-columns: 1fr; } .via-path { max-height: 260px; overflow: auto; } }
.via-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: relative; }
.via-path::before { content: ""; position: absolute; left: 21px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(#D6B169, rgba(214, 177, 105, .15)); }
.via-stop { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; background: none; border: 0; padding: 7px 8px 7px 0; cursor: pointer; color: #CDBFA6; border-radius: 10px; transition: background .2s, color .2s; }
.via-stop:hover { background: rgba(255, 240, 210, .05); color: #F3EAD7; }
.via-no { width: 30px; height: 30px; margin-left: 6px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; background: #1E1712; border: 1px solid rgba(214, 177, 105, .45); position: relative; z-index: 1; }
.via-stop.past .via-no { background: #6B4F2A; color: #F3EAD7; }
.via-stop.on { color: #FFF4DD; background: rgba(214, 177, 105, .1); }
.via-stop.on .via-no { background: #D6B169; color: #1C1308; box-shadow: 0 0 18px rgba(214, 177, 105, .7); }
.via-t { font-size: 15px; line-height: 1.3; }
.via-card { background: rgba(28, 22, 17, .82); backdrop-filter: blur(8px); border: 1px solid rgba(214, 177, 105, .28); border-radius: 24px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); position: sticky; top: 90px; color: var(--nave-ink); }
.via-head { display: flex; gap: 20px; align-items: center; }
.via-big { font-family: var(--font-display); font-size: clamp(64px, 9vw, 110px); line-height: .8; color: #D6B169; font-weight: 500; min-width: 1.2em; }
.via-label { font-family: var(--font-inscription); font-size: 11.5px; letter-spacing: .22em; color: #C9A964; text-transform: uppercase; }
.via-card h3 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 6px; }
.via-ref { font-size: 14px; color: #B5A78E; }
.via-ant { border-left: 2px solid #E0848F; padding-left: 16px; font-family: var(--font-display); font-size: 19px; line-height: 1.5; }
.via-ant b { font-family: var(--font-body); font-size: 12px; color: #E0848F; letter-spacing: .08em; }
.via-med { font-family: var(--font-display); font-size: 22px; line-height: 1.55; font-style: italic; color: #F0E4CC; }
.via-close { font-size: 14.5px; color: #B5A78E; }
.via-card .btn-line { color: var(--nave-ink); border-color: rgba(243, 234, 215, .3); }
.via-card .btn-solid { background: linear-gradient(180deg, #E3C47F, #B88A3A); color: #1C1308; }
.via-card .progress { background: rgba(255, 255, 255, .08); }

/* ───────── Sabda ───────── */
.sabda { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .sabda { grid-template-columns: 1fr; } }
.sabda-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 5vw, 56px); position: relative; display: grid; gap: 18px; overflow: hidden; }
.sabda-mark { position: absolute; top: -40px; right: 20px; font-family: var(--font-display); font-size: 260px; line-height: 1; color: var(--gold); opacity: .14; pointer-events: none; }
.sabda-card blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 50px); line-height: 1.2; font-weight: 500; text-wrap: balance; }
.sabda-card figcaption { font-family: var(--font-inscription); font-size: 13px; letter-spacing: .24em; color: var(--wine); text-transform: uppercase; }
.sabda-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.sabda-card .btn-solid { background: var(--ink); color: var(--bg); }
.sabda-side { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; align-content: start; }
.sabda-side h3 { font-size: 28px; }
.sabda-side p { color: var(--muted); font-size: 15.5px; }
.sabda-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color .2s, background .2s; }
.sabda-link:hover { border-color: var(--gold); background: var(--surface-2); }
.sabda-link span { color: var(--gold); }

/* ───────── Novena ───────── */
#novenaTabs { margin-bottom: 20px; }
.novena { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .novena { grid-template-columns: 1fr; } }
.novena-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 14px; }
.novena-card .k { font-family: var(--font-inscription); font-size: 11.5px; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; }
.novena-card h3 { font-size: clamp(30px, 3.6vw, 40px); }
.novena-status { font-weight: 600; color: var(--marian); }
.novena-prayer { font-family: var(--font-display); font-size: 21px; font-style: italic; line-height: 1.5; border-left: 2px solid var(--gold); padding-left: 16px; }
.novena-card .btn { justify-self: start; }
.novena-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.novena-days label { display: grid; grid-template-columns: 22px 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.novena-days label:hover { border-color: var(--gold); }
.novena-days input { width: 20px; height: 20px; accent-color: var(--wine); margin: 0; }
.novena-days input:checked ~ .nd-t { text-decoration: line-through; text-decoration-color: var(--gold); color: var(--muted); }
.nd-no { font-family: var(--font-inscription); font-size: 11.5px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.nd-t { font-size: 15.5px; }

/* ───────── Footer ───────── */
footer { background: var(--nave); color: var(--nave-ink); padding-block: 80px 48px; }
.foot-verse { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-style: italic; line-height: 1.3; max-width: 26ch; color: #F0E2C4; }
.foot-verse cite { display: block; margin-top: 14px; font-family: var(--font-inscription); font-style: normal; font-size: 12px; letter-spacing: .26em; color: #C9A964; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(214, 177, 105, .25); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 0; }
.foot-links a { text-decoration: none; opacity: .75; font-size: 15px; }
.foot-links a:hover { opacity: 1; }
.foot-note { font-size: 13.5px; opacity: .6; max-width: 46ch; }
.music {
  position: fixed; z-index: 55;
  left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(20, 14, 10, .78); color: #F3EAD7; border: 1px solid rgba(214, 177, 105, .45);
  backdrop-filter: blur(10px); font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .3); transition: border-color .3s, box-shadow .3s;
}
.music:hover { border-color: #D6B169; }
.music.on { box-shadow: 0 0 0 1px rgba(214, 177, 105, .5), 0 0 28px rgba(214, 177, 105, .35); }
.music-icon { display: inline-flex; align-items: flex-end; gap: 2px; width: 18px; height: 16px; }
.music-icon i { flex: 1; background: #D6B169; border-radius: 2px; height: 30%; transition: height .4s; }
.music.on .music-icon i { animation: eq 1.6s ease-in-out infinite; }
.music.on .music-icon i:nth-child(2) { animation-delay: -.4s; }
.music.on .music-icon i:nth-child(3) { animation-delay: -.9s; }
.music.on .music-icon i:nth-child(4) { animation-delay: -1.2s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .music.on .music-icon i { animation: none; height: 70%; } }
@media (max-width: 480px) { .music-label { display: none; } .music { padding: 12px; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .3s; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
