/*! Hái Lộc Thánh – © hailocthanh.com. Bảo lưu mọi quyền. All rights reserved. */
/* Hái Lộc Thánh. Theme qua <html data-theme="tet|neutral">. */

:root,
[data-theme="neutral"] {
  --bg: #f7f3ea;
  --bg-soft: #fffdf8;
  --surface: #ffffff;
  --surface-2: #f2ece0;
  --text: #2a2420;
  --muted: #6e655c;
  --border: rgba(42, 36, 32, .12);
  --primary: #1f3a5f;
  --primary-ink: #ffffff;
  --primary-hover: #17304f;
  --accent: #b8862b;
  --hero-bg: radial-gradient(1200px 600px at 75% 30%, #ffffff 0%, #f7f0e1 55%, #efe5d1 100%);
  --branch: #6b5a45;
  --blossom: #ffffff;
  --blossom-stroke: #d9cdb6;
  --blossom-core: #d8a63c;
  --card-bg: #fffdf6;
  --card-frame: #1f3a5f;
  --card-gold: #c8922e;
  --card-text: #2a2420;
  --env: #f4ead6;
  --env-edge: #c8922e;
  --ad-bg: repeating-linear-gradient(45deg, #efe8da 0 10px, #f5efe3 10px 20px);
  --shadow: 0 18px 40px -18px rgba(42, 36, 32, .35);
  --danger: #b3261e;
  --petals: none;
}

[data-theme="tet"] {
  --bg: #2b0306;
  --bg-soft: #360409;
  --surface: #43070d;
  --surface-2: #520a12;
  --text: #fbefd9;
  --muted: #d9b9a0;
  --border: rgba(241, 195, 91, .22);
  --primary: #f1c35b;
  --primary-ink: #4a0408;
  --primary-hover: #ffd77e;
  --accent: #f1c35b;
  --hero-bg: radial-gradient(1100px 620px at 72% 30%, #a3141d 0%, #6a070e 45%, #2b0306 100%);
  --branch: #4a2a18;
  --blossom: #ffcf2e;
  --blossom-stroke: #d99a00;
  --blossom-core: #e07b00;
  --card-bg: #fffaf0;
  --card-frame: #a8131c;
  --card-gold: #d9a441;
  --card-text: #3b1a12;
  --env: #c3141e;
  --env-edge: #f1c35b;
  --ad-bg: repeating-linear-gradient(45deg, #3a050a 0 10px, #40070d 10px 20px);
  --shadow: 0 24px 50px -20px rgba(0, 0, 0, .6);
  --danger: #ffb4a8;
  --petals: block;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background-color .4s, color .4s;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .15s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--lg { padding: 14px 26px; font-size: 17px; }
.btn__icon { width: 14px; height: 18px; fill: currentColor; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Top bar (desktop only) */
.topbar { background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 34px; }
.topbar__date { font-weight: 600; color: var(--text); }
.topbar__date::before { content: "✦"; margin-right: 8px; color: var(--accent); }
.topbar__slogan { font: italic 400 13px/1 Lora, serif; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  transition: box-shadow .25s;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border); pointer-events: none;
}
[data-theme="tet"] .site-header::after {
  height: 2px;
  background: linear-gradient(90deg, transparent, #b8862b 10%, #f6dc8e 50%, #b8862b 90%, transparent);
}
.site-header.is-scrolled { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; transition: height .25s; }
.site-header.is-scrolled .site-header__inner { height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: contain; display: block;
  transition: width .25s, height .25s;
}
.brand__name { font: 700 21px/1 "Playfair Display", serif; white-space: nowrap; }
.brand__tld { margin-left: 1px; font: italic 600 .62em/1 Lora, serif; color: var(--accent); letter-spacing: .02em; }
.brand--header { gap: 12px; }
.brand--header .brand__mark { width: 42px; height: 42px; }
.site-header.is-scrolled .brand__mark { width: 36px; height: 36px; }
.brand__text { display: grid; gap: 4px; }
.brand__tagline {
  max-height: 18px; overflow: hidden; font-size: 11px; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); transition: max-height .25s, opacity .25s;
}
.site-header.is-scrolled .brand__tagline { font-size: 10px; }
.brand__blossoms {
  flex: none; width: 52px; height: 23px; align-self: flex-start; margin: 2px 0 0 -4px;
  fill: var(--blossom); stroke: var(--blossom-stroke); stroke-width: .5;
}

.nav { display: flex; align-items: center; gap: 14px; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .2s, background-color .2s;
}
button.nav__link { border: 0; background: none; font-family: inherit; cursor: pointer; }
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s ease;
}
.nav__link:hover, .nav__link:focus-visible { color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.nav__icon {
  flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; transition: color .2s, transform .25s;
}
.nav__link:hover .nav__icon { transform: translateY(-1px) scale(1.08); }
.nav__link.is-active .nav__icon, .nav__link:hover .nav__icon { color: var(--accent); }
.nav__auth { display: flex; align-items: center; gap: 12px; padding-left: 14px; border-left: 1px solid var(--border); }
.nav__register { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav__register:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.nav__login { padding: 8px 16px; }
.nav__cta { box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--primary) 80%, transparent); }
.nav__cta:hover { transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; padding: 12px 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); }
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
  align-items: center; min-height: 600px; padding-block: 56px;
}
.kicker {
  margin: 0 0 14px; font: 600 28px/1 "Dancing Script", cursive; color: var(--accent);
}
.hero__title { font: 700 clamp(38px, 5.2vw, 62px)/1.08 "Playfair Display", serif; }
.hero__title em { color: var(--accent); }
.hero__lead { max-width: 520px; margin: 18px 0 28px; color: var(--muted); font-size: 18px; }

.pick-form {
  max-width: 560px; padding: 18px; border-radius: 20px; scroll-margin-top: 96px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.pick-form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.pick-form label span { color: var(--muted); font-weight: 400; }
.pick-form__row { display: flex; gap: 10px; }
.pick-form input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  font: inherit; outline: none;
}
.pick-form input:focus { border-color: var(--accent); }
.pick-form__hint { margin: 10px 4px 0; font-size: 13px; color: var(--muted); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip {
  display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 14px; color: var(--muted);
}
.chip b { color: var(--text); }
.chip--streak b { color: var(--accent); }

.hero__visual {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  min-height: 560px; padding: 44px 0 20px;
}
.hero__branch { position: absolute; inset: -10px -60px auto auto; width: 115%; }
.branch { fill: none; stroke: var(--branch); stroke-width: 9; stroke-linecap: round; }
.branch--thin { stroke-width: 5; }
.blossoms use { fill: var(--blossom); stroke: var(--blossom-stroke); stroke-width: .5; }
.blossoms .flower-core, .flower-core { fill: var(--blossom-core); stroke: none; }

.env {
  position: absolute; width: 46px; height: 64px; border-radius: 6px;
  background: var(--env); border: 2px solid var(--env-edge); box-shadow: var(--shadow);
  transform-origin: 50% -30px; animation: sway 3.6s ease-in-out infinite;
}
.env::before {
  content: ""; position: absolute; left: 50%; top: -30px; width: 1px; height: 30px; background: var(--env-edge);
}
.env::after {
  /* Latin cross (same shape as #i-cross): short top arm, long bottom arm. */
  content: ""; position: absolute; left: 50%; top: 18px; width: 15px; height: 20px; transform: translateX(-50%);
  background: var(--env-edge);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M10 0h4v9h8v4h-8v19h-4V13H2V9h8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M10 0h4v9h8v4h-8v19h-4V13H2V9h8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.env--1 { top: 120px; left: 30px; }
.env--2 { top: 70px; right: 40px; animation-delay: -1.2s; }
.env--3 { top: 300px; right: 0; animation-delay: -2.1s; }
@keyframes sway { 50% { transform: rotate(5deg); } 0%, 100% { transform: rotate(-5deg); } }

.loc-card {
  position: relative; width: min(320px, 100%); padding: 26px 24px 16px;
  transform: rotate(-3deg);
  background: radial-gradient(circle at 50% 40%, #fffdf5, var(--card-bg) 60%, #f4e6c4);
  color: var(--card-text); text-align: center; border-radius: 6px;
  border: 10px solid var(--card-frame);
  outline: 2px solid var(--card-gold); outline-offset: -16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.loc-card__corner {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, var(--blossom-core) 25%, var(--blossom) 30%);
  box-shadow: 0 0 0 1px var(--blossom-stroke);
}
.loc-card__corner--tl { top: 12px; left: 12px; }
.loc-card__corner--tr { top: 12px; right: 12px; }
.loc-card__corner--bl { bottom: 12px; left: 12px; }
.loc-card__corner--br { bottom: 12px; right: 12px; }
.loc-card__cross { display: block; width: 16px; height: 22px; margin: 0 auto; fill: var(--card-gold); }
.loc-card__title {
  margin: 6px 0 0; padding-left: .25em; font: 700 20px/1.1 "Playfair Display", serif; letter-spacing: .25em;
  text-transform: uppercase; color: var(--card-frame);
}
.loc-card__year { margin: 6px 0 0; font: 600 20px/1.1 "Dancing Script", cursive; color: var(--card-gold); }
.loc-card__divider {
  position: relative; display: block; width: 120px; height: 11px; margin: 6px auto 4px;
  background: linear-gradient(90deg, transparent, var(--card-gold) 30%, var(--card-gold) 70%, transparent) center / 100% 1px no-repeat;
}
.loc-card__divider::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
  background: var(--card-gold); transform: translate(-50%, -50%) rotate(45deg);
}
.loc-card__body { padding: 6px 0 2px; }
.loc-card__verse { margin: 0; font: italic 500 18px/1.55 Lora, serif; overflow-wrap: anywhere; text-wrap: balance; }
.loc-card__verse[data-size="m"] { font-size: 16px; }
.loc-card__verse[data-size="l"] { font-size: 14.5px; }
.loc-card__verse[data-size="xl"] { font-size: 13px; }
.loc-card__ref { margin: 8px 0 0; font: 700 italic 14px/1.3 "Playfair Display", serif; color: var(--card-frame); overflow-wrap: anywhere; }
.loc-card__ref::before { content: "— "; }
.loc-card__to { margin-top: 8px; }
.loc-card__to-label { display: block; padding-left: .3em; font-size: 9px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #8a6a2e; }
.loc-card__name { margin: 2px 0 0; font: 700 24px/1.15 "Dancing Script", cursive; color: var(--card-frame); overflow-wrap: anywhere; }
.loc-card__foot {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 82%; margin: 12px auto 0; padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--card-gold) 60%, transparent); text-align: left;
}
.loc-card__logo {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; overflow: hidden; border-radius: 50%;
  background: var(--card-frame); color: var(--card-gold); box-shadow: 0 0 0 2px var(--card-gold);
}
.loc-card__logo svg { width: 11px; height: 15px; fill: currentColor; }
.loc-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.loc-card__org { display: flex; flex-direction: column; min-width: 0; }
.loc-card__org-name { font: 700 13px/1.2 "Playfair Display", serif; color: var(--card-text); overflow-wrap: anywhere; }
.loc-card__org-sub { font: 600 9px/1.3 "Be Vietnam Pro", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--card-frame); overflow-wrap: anywhere; }
.loc-card__org-slogan { font: italic 400 10.5px/1.3 Lora, serif; color: #8a6f55; overflow-wrap: anywhere; }
.loc-card__meta { margin: 9px 0 0; padding-left: .18em; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: #8a6a2e; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Sealed card: static placeholders, an empty template (no animation) */
.loc-card__bar {
  display: block; width: 100%; height: 12px; margin: 0 auto 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--card-gold) 24%, transparent);
}
.loc-card__bar--mid { width: 90%; }
.loc-card__bar--short { width: 62%; }
.loc-card__bar--ref { width: 30%; height: 10px; margin-top: 14px; }
.loc-card__caption { margin: 12px 0 0; font: italic 500 13px/1.4 Lora, serif; color: color-mix(in srgb, var(--card-text) 78%, transparent); }
.loc-card__pill {
  display: inline-block; margin-top: 4px; padding: 4px 20px; border: 1.5px dashed var(--card-gold); border-radius: 999px;
  font: 600 19px/1.2 "Dancing Script", cursive; color: color-mix(in srgb, var(--card-frame) 60%, transparent);
}

.loc-card__ribbon {
  position: absolute; top: -24px; left: 50%; z-index: 2; padding: 6px 16px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transform: translateX(-50%); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}
.loc-card__ribbon--sealed { background: var(--card-frame); color: #fff7e0; border: 2px solid var(--card-gold); }
.loc-card__ribbon--opened { background: var(--card-gold); color: #3b1a12; border: 2px solid #fffaf0; }

.loc-card__seal {
  position: absolute; right: -22px; bottom: 100px; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%; color: #f6d98a; transform: rotate(10deg);
  background: radial-gradient(circle at 35% 30%, #d83a3f, #9c1219 70%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .35), inset 0 0 0 3px rgba(255, 255, 255, .12), inset 0 -4px 8px rgba(0, 0, 0, .25);
}
.loc-card__seal svg { width: 17px; height: 23px; fill: currentColor; }

.loc-card[data-state="sealed"] { cursor: pointer; }
.loc-card[data-state="sealed"]:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }

.hero__petals { display: var(--petals); position: absolute; inset: 0; pointer-events: none; }
.hero__petals i {
  position: absolute; top: -20px; width: 12px; height: 16px; border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle at 40% 70%, #fff6b0, #ffcf2e 55%, #eea400);
  animation: fall 11s linear infinite; opacity: .9;
}
.hero__petals i:nth-child(1) { left: 6%; animation-delay: 0s; }
.hero__petals i:nth-child(2) { left: 18%; animation-delay: -3s; animation-duration: 13s; }
.hero__petals i:nth-child(3) { left: 33%; animation-delay: -7s; }
.hero__petals i:nth-child(4) { left: 47%; animation-delay: -1.5s; animation-duration: 14s; }
.hero__petals i:nth-child(5) { left: 61%; animation-delay: -5s; }
.hero__petals i:nth-child(6) { left: 74%; animation-delay: -9s; animation-duration: 12s; }
.hero__petals i:nth-child(7) { left: 86%; animation-delay: -4s; }
.hero__petals i:nth-child(8) { left: 95%; animation-delay: -8s; animation-duration: 15s; }
@keyframes fall {
  from { transform: translate(0, 0) rotate(0); }
  to { transform: translate(-60px, 680px) rotate(540deg); }
}

/* Ads: fixed min-height reserves space so loading ads never shift the layout. */
.ad {
  display: grid; place-items: center; margin: 28px auto; border-radius: 12px;
  background: var(--ad-bg); border: 1px dashed var(--border); color: var(--muted);
  font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
}
.ad--responsive { min-height: 100px; max-width: 970px; }
.ad--infeed { min-height: 250px; }
.ad--sidebar { width: 300px; min-height: 600px; margin: 0 0 20px; }

/* Stats */
.stats { padding: 8px 0 12px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
}
.stat { padding: 22px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font: 700 30px/1.1 "Playfair Display", serif; color: var(--accent); }
.stat span { font-size: 14px; color: var(--muted); }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; margin-top: 36px; }
.aside-sticky { position: sticky; top: 88px; }
.section { margin-bottom: 44px; scroll-margin-top: 88px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section__kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.section__title { font: 700 30px/1.2 "Playfair Display", serif; }
.note { font-size: 14px; color: var(--muted); }

/* Week strip */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 18px; }
.week__day {
  display: grid; justify-items: center; gap: 6px; padding: 10px 0; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted);
}
.week__day i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border); }
.week__day.is-done i { background: var(--accent); border-color: var(--accent); }
.week__day.is-today { border-color: var(--accent); color: var(--text); font-weight: 600; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--border); }
.timeline__item {
  position: relative; margin-bottom: 16px; padding: 18px 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
}
.timeline__item::before {
  content: ""; position: absolute; left: -31px; top: 22px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--bg);
}
.timeline__item time { font-size: 13px; color: var(--muted); }
.timeline__verse { margin: 6px 0 10px; font: italic 500 18px/1.5 Lora, serif; }
.timeline__foot { display: flex; align-items: center; justify-content: space-between; }
.timeline__ref { font: 700 italic 15px/1 "Playfair Display", serif; color: var(--accent); }
.timeline__actions { display: flex; align-items: center; gap: 6px; }
.timeline__verse a { color: inherit; text-decoration: none; }
.timeline__verse a:hover { color: var(--accent); }
.timeline__detail {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 14px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.timeline__detail svg { width: 16px; height: 16px; }
.timeline__detail:hover { border-color: var(--accent); background: var(--surface-2); }
.tag { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); font-size: 12px; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border); color: var(--muted); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-btn.is-on { color: #e0464e; border-color: #e0464e; }
.icon-btn.is-on svg { fill: currentColor; }
a.icon-btn { text-decoration: none; font-size: 20px; line-height: 1; }
.icon-btn.is-disabled { opacity: .35; }

/* Lộc của tôi */
.mine { padding: 36px 0 20px; }
.mine__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.mine__head h1 { margin: 0; }
.mine__summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.mine__summary div { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.mine__summary b { display: block; font: 700 28px/1.1 "Playfair Display", serif; color: var(--accent); }
.mine__summary span { font-size: 14px; color: var(--muted); }
.mine__guest { margin: 0 0 18px; }
.mine__grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.cal { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.mine__side { position: sticky; top: 88px; display: grid; gap: 20px; }
.mine__side .ad { margin: 0; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__title { margin: 0; font: 700 18px/1.2 "Playfair Display", serif; }
.cal__table { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal__table th { font-size: 12px; font-weight: 600; color: var(--muted); }
.cal__day { text-align: center; }
.cal__day a, .cal__day span {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: 14px; color: var(--text); text-decoration: none;
}
.cal__day.is-future span { color: var(--muted); opacity: .45; }
.cal__day.has-pick a { background: var(--accent); color: var(--primary-ink, #fff); font-weight: 700; }
.cal__day.has-pick a:hover { filter: brightness(1.1); }
.cal__day.is-fav a { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #e0464e; }
.cal__day.is-today span, .cal__day.is-today a { outline: 2px dashed var(--accent); outline-offset: 2px; }
.cal__legend { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.cal__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.cal__dot--fav { margin-left: 10px; background: transparent; border: 2px solid #e0464e; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 14px; text-decoration: none;
}
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--primary-ink, #fff); font-weight: 600; }
.timeline__ad { list-style: none; margin: 0 0 16px; }
.pick-note { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 10px; }
.pick-note summary { font-size: 13px; color: var(--muted); cursor: pointer; }
.pick-note__form { display: grid; gap: 8px; margin-top: 8px; }
.pick-note__form textarea {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font: 15px/1.5 inherit; font-family: inherit; resize: vertical;
}
.pick-note__form .btn { justify-self: end; padding: 8px 16px; font-size: 14px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14px; }
.pager__link { color: var(--accent); font-weight: 600; text-decoration: none; }
.pager__link.is-disabled { color: var(--muted); opacity: .5; }
.pager__info { color: var(--muted); }
@media (max-width: 860px) {
  .mine__grid { grid-template-columns: 1fr; }
  .mine__side { position: static; }
  .mine__side-ad { display: none; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.step b {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); font-family: "Playfair Display", serif;
}
.step h3 { font-size: 17px; }
.step p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }

/* Parish */
.parish {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center;
  padding: 32px; border-radius: 24px; background: var(--surface-2); border: 1px solid var(--border);
}
.checklist { margin: 18px 0 24px; padding: 0; list-style: none; }
.parish__lead { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.parish__lead b { color: var(--accent); }
.checklist li { position: relative; padding: 6px 0 6px 28px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E");
}
code { padding: 2px 6px; border-radius: 6px; background: var(--surface); font-size: 13px; }
.poster {
  width: 240px; margin-inline: auto; padding: 22px 20px; text-align: center; border-radius: 10px;
  background: #fffdf8; color: #2a2420; box-shadow: var(--shadow); transform: rotate(2deg);
  border-top: 8px solid var(--card-frame);
}
.poster__logo {
  display: grid; place-items: center; width: 56px; height: 56px; margin: -50px auto 8px; border-radius: 50%;
  background: var(--card-frame); color: #fff; border: 4px solid #fffdf8;
}
.poster__logo svg { width: 16px; height: 22px; fill: currentColor; }
.poster__logo img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.poster__name { margin: 0; font: 700 18px/1.2 "Playfair Display", serif; }
.poster__slogan { margin: 4px 0 12px; font: italic 13px/1.3 Lora, serif; color: #8a6a3a; }
.poster__qr { width: 150px; height: 150px; }
.poster__qr rect { fill: #1a1a1a; }
.poster__hint { margin: 8px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

.parish-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.parish-search { margin-bottom: 18px; }
.parish-search select { max-width: 260px; }
.parish-list + .pager { margin-top: 18px; }
.parish-chip {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: inherit;
}
.parish-chip:hover { border-color: var(--accent); }
.parish-chip i {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); font-size: 13px; font-weight: 700; font-style: normal;
}
.parish-chip span { display: grid; font-weight: 600; font-size: 14px; line-height: 1.3; }
.parish-chip small { font-weight: 400; color: var(--muted); }

/* Panels */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.panel h3 { font: 700 20px/1.3 "Playfair Display", serif; }
.panel p { margin: 8px 0 16px; color: var(--muted); font-size: 15px; }
.panel--small { padding: 20px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form input, .inline-form select {
  flex: 1 1 140px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); font: inherit;
}
.inline-form select { flex: 0 0 auto; }
.quote { margin: 0; font: italic 500 17px/1.5 Lora, serif; }
.quote__ref { margin: 6px 0 0 !important; font: 700 italic 14px/1 "Playfair Display", serif; color: var(--accent) !important; }

/* Footer */
.site-footer { margin-top: 20px; padding: 40px 0 24px; background: var(--bg-soft); border-top: 1px solid var(--border); }
.site-footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.site-footer__slogan { margin: 10px 0 0; max-width: 340px; font: italic 15px/1.4 Lora, serif; color: var(--muted); }
.site-footer__col { display: grid; align-content: start; gap: 8px; }
.site-footer__col h4 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.site-footer__col a { width: fit-content; text-decoration: none; color: var(--muted); font-size: 14px; }
.site-footer__col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.site-footer__copy p { margin: 0; }
.site-footer__copy .site-footer__verse { margin-bottom: 6px; font-style: italic; font-size: 14px; }
.site-footer__verse span { font-style: normal; white-space: nowrap; }

/* Form feedback, hero actions */
.form-error { margin: 10px 4px 0; font-size: 13px; font-weight: 600; color: var(--danger); }
.pick-form button[disabled] { opacity: .6; cursor: progress; }
.hero__actions { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero__note { margin: 0; font-size: 13px; color: var(--muted); }
.hero__note:empty { display: none; }
.parish-chip__logo { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
button:disabled { cursor: not-allowed; }
.btn:disabled, .btn[disabled] { opacity: .55; }
a.icon-btn { text-decoration: none; }

/* Ads that are live: no dashed placeholder look, reserved height.
   place-items is reset: it is inherited from .ad and newer Chrome applies it to block containers too,
   which shrinks <ins class="adsbygoogle"> to width 0 so initAds() skips it and no ad is ever requested. */
.ad--live { display: block; place-items: normal; position: relative; background: none; border: 0; text-align: center; overflow: hidden; }
.ad--live > ins.adsbygoogle { justify-self: stretch; }
/* AdSense had nothing to serve (new site, no fill): collapse the empty frame instead of leaving a blank gap. */
.ad--live:has(> ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* Static card (share page) */
.loc-card--static { width: min(380px, 100%); margin: 0 auto; padding: 30px 28px 18px; transform: rotate(-1.5deg); }
.loc-card--static .loc-card__verse { font-size: 20px; }
.loc-card--static .loc-card__verse[data-size="m"] { font-size: 18px; }
.loc-card--static .loc-card__verse[data-size="l"] { font-size: 16px; }
.loc-card--static .loc-card__verse[data-size="xl"] { font-size: 14px; }

/* Share page */
.share { background: var(--hero-bg); color: var(--text); padding: 56px 0 48px; }
.share__inner { display: grid; justify-items: center; gap: 28px; }
.share__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share__actions .btn { min-height: 46px; }
.share__actions .btn--primary { padding-inline: 24px; }

/* Meaning article: a light surface in both themes */
.meaning { margin-top: 44px; }
.article {
  max-width: 680px; margin: 0 auto; padding: 30px 32px 24px; border-radius: 18px;
  background: var(--card-bg); color: var(--card-text);
  border: 1px solid color-mix(in srgb, var(--card-gold) 45%, transparent); box-shadow: var(--shadow);
}
.article__head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--card-gold) 40%, transparent);
}
.article__icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--card-frame); color: var(--card-gold); box-shadow: 0 0 0 2px var(--card-gold);
}
.article__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.article__kicker { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8a6a2e; }
.article__title { font: 700 24px/1.25 "Playfair Display", serif; color: var(--card-frame); }
.article__body { font: 400 17px/1.7 Lora, serif; overflow-wrap: anywhere; }
.article__body p { margin: 0 0 14px; }
.article__body strong, .article__body b { font-family: "Be Vietnam Pro", system-ui, sans-serif; font-size: .92em; font-weight: 600; color: var(--card-frame); }
.article__body ul, .article__body ol { margin: 0 0 14px; padding: 0; list-style: none; }
.article__body ol { counter-reset: step; }
.article__body li { position: relative; margin: 0 0 10px; padding-left: 40px; }
.article__body li > p { margin: 0; }
.article__body ol > li { counter-increment: step; }
.article__body ol > li::before {
  content: counter(step); position: absolute; left: 0; top: .22em; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--card-frame); color: #fff7e0; font: 700 13px/1 "Be Vietnam Pro", system-ui, sans-serif;
}
.article__body ul > li::before {
  content: ""; position: absolute; left: 10px; top: .75em; width: 8px; height: 8px; background: var(--card-gold); transform: rotate(45deg);
}
.article__body > :last-child { margin-bottom: 0; }
.article__note {
  margin: 22px 0 0; padding: 12px 16px; border-radius: 10px; font: italic 400 14px/1.5 Lora, serif; color: #6b5a45;
  background: color-mix(in srgb, var(--card-gold) 14%, transparent);
}

.share-cta {
  max-width: 680px; margin: 0 auto 44px; padding: 28px; border-radius: 18px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
}
.share-cta h2 { font: 700 24px/1.25 "Playfair Display", serif; }
.share-cta p { margin: 8px 0 18px; color: var(--muted); }
@media (max-width: 520px) {
  .article { padding: 24px 20px 20px; }
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100% - 32px); padding: 10px 18px;
  border-radius: 999px; background: #111; color: #fff; font-size: 14px;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .layout__aside { display: none; }
}
@media (max-width: 1240px) {
  .brand__blossoms, .nav__register { display: none; }
  .nav { gap: 10px; }
  .nav__link { padding-inline: 10px; }
}
.nav__link, .btn { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 1025px) {
  .nav__link { gap: 5px; padding-inline: 7px; }
  .nav__auth { gap: 8px; padding-left: 10px; }
}
@media (max-width: 1024px) {
  .topbar { display: none; }
  .site-header__inner, .site-header.is-scrolled .site-header__inner { height: 62px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 14px;
    max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto;
    padding: 14px 16px 22px; background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .5);
    visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { min-height: 52px; padding: 12px 14px; border-radius: 14px; font-size: 17px; color: var(--text); }
  .nav__link::after { display: none; }
  .nav__icon { width: 22px; height: 22px; color: var(--accent); }
  .nav__auth { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--border); gap: 8px; }
  .nav__register { display: block; flex: 1; padding: 12px; text-align: center; }
  .nav__login { flex: 1; min-height: 48px; }
  .nav__cta { width: 100%; min-height: 54px; font-size: 17px; }
  .nav-toggle { display: block; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-block: 36px; }
  .hero__visual { min-height: 540px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .steps, .duo, .parish { grid-template-columns: 1fr; }
  .parish-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .pick-form__row { flex-direction: column; }
  .parish-list { grid-template-columns: 1fr; }
  .hero__branch { width: 140%; }
}
@media (prefers-reduced-motion: reduce) {
  .env, .hero__petals i { animation: none; }
  .nav, .nav__link, .nav__link::after, .nav-toggle span { transition: none; }
  .hero__petals { display: none; }
}

/* Auth: pages (.auth-*) and account menu (.user-menu) */
.auth { padding: 48px 0 64px; background: var(--hero-bg); }
.auth-card {
  position: relative; width: min(440px, 100%); margin: 36px auto 0; padding: 44px 32px 28px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.auth-card__mark {
  position: absolute; top: -28px; left: 50%; width: 56px; height: 56px; transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--accent) 45%, transparent);
}
.auth-card__title { margin: 0; text-align: center; font: 700 28px/1.2 "Playfair Display", serif; }
.auth-card__title--sm { font-size: 22px; text-align: left; }
.auth-card__lead { margin: 8px 0 22px; text-align: center; color: var(--muted); font-size: 15px; }
.auth-card--flat { width: 100%; margin: 0; padding: 28px; }
.auth-form { display: grid; gap: 16px; margin-top: 18px; }
.auth-card__lead + .auth-form, .auth-status + .auth-form { margin-top: 0; }
.auth-field { display: grid; gap: 6px; }
.auth-field label { font-size: 14px; font-weight: 600; }
.auth-field input, .auth-field textarea {
  width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); font: inherit; outline: none;
}
.auth-field textarea { resize: vertical; }
.auth-field input:focus, .auth-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.auth-field input[aria-invalid="true"], .auth-field textarea[aria-invalid="true"] { border-color: var(--danger); }
.auth-field label small { font-weight: 400; color: var(--muted); }
.auth-hint { margin: 0; font-size: 13px; color: var(--muted); }
.auth-card--wide { width: min(600px, 100%); }
.auth-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.auth-choice legend { margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.auth-choice label {
  display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg-soft); cursor: pointer;
}
.auth-choice label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.auth-choice input { margin-top: 3px; accent-color: var(--accent); }
.auth-choice span { display: grid; gap: 2px; font-size: 14px; }
.auth-choice small { font-size: 12px; color: var(--muted); }
.account-parishes { margin-bottom: 20px; }
.badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); }
.badge--ok { color: var(--accent); border-color: var(--accent); }
.auth-error { margin: 0; font-size: 13px; font-weight: 600; color: var(--danger); }
.auth-status {
  margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 500;
  background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.auth-status--banner { margin: 16px 0 0; }
.auth-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.auth-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.auth-form__submit { width: 100%; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.social-login { display: grid; gap: 10px; margin-top: 18px; }
.btn--social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #1f1f1f; border: 1px solid var(--border); font-weight: 600; }
.btn--social:hover { border-color: var(--accent); }
.btn--social svg { width: 20px; height: 20px; flex: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
form.auth-links { justify-content: center; }
.auth-linkbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; }
.auth-linkbtn:hover { text-decoration: underline; }
.auth-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.auth--wide .container { max-width: 960px; }
.auth-page__title { margin: 0 0 18px; font: 700 32px/1.2 "Playfair Display", serif; }
.auth-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.auth-stats div { padding: 18px 12px; text-align: center; }
.auth-stats div + div { border-left: 1px solid var(--border); }
.auth-stats b { display: block; font: 700 28px/1.1 "Playfair Display", serif; color: var(--accent); }
.auth-stats span { font-size: 14px; color: var(--muted); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.avatar {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); font-size: 13px; font-weight: 700; line-height: 1;
}
.user-menu { position: relative; }
.user-menu__button {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.user-menu__button:hover, .user-menu.is-open .user-menu__button { border-color: var(--accent); }
.user-menu__name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.user-menu.is-open .user-menu__caret { transform: rotate(180deg); }
.user-menu__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: none; min-width: 190px; padding: 6px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.user-menu.is-open .user-menu__list { display: grid; }
.user-menu__list a, .user-menu__list button {
  display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none;
  color: var(--text); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer;
}
.user-menu__list a:hover, .user-menu__list button:hover, .user-menu__list a:focus-visible, .user-menu__list button:focus-visible {
  background: color-mix(in srgb, var(--accent) 14%, transparent); outline: none;
}
.nav__account { display: none; }
.user-menu__group { display: grid; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border); }
.user-menu__label { padding: 6px 12px 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.user-menu__list a small { display: block; font-size: 12px; color: var(--muted); }
.user-menu__list form { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--border); }
.my-parish {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
}
.my-parish__logo { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff; }
.my-parish__body p { margin: 0; }
.my-parish__kicker { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.my-parish__body .my-parish__name { margin-top: 2px; font: 700 20px/1.3 "Playfair Display", serif; }
.my-parish__sub, .my-parish__note { font-size: 14px; color: var(--muted); }
.my-parish__body .my-parish__note { margin-top: 6px; }
.my-parish__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.my-parish__actions:empty { display: none; }
.auth-card .my-parish { margin: 18px 0; }
.nav__account form { display: contents; }
.nav__logout { width: 100%; border: 0; background: none; font-family: inherit; cursor: pointer; }
.nav__account-name { display: flex; align-items: center; gap: 10px; padding: 6px 14px; font-weight: 600; }

@media (max-width: 1024px) {
  .user-menu { display: none; }
  .nav__auth:has(.nav__account) { display: block; }
  .nav__account { display: grid; gap: 4px; }
  .auth-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .auth { padding-top: 36px; }
  .auth-card { padding: 40px 20px 22px; }
  .auth-card--flat { padding: 22px 18px; }
}

/* Nút "Cài ứng dụng" (footer + nav) và hộp hướng dẫn iOS. */
.site-footer__install {
  justify-self: start; padding: 0; border: 0; background: none; color: var(--muted);
  font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.site-footer__install:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.install-dialog { width: min(92vw, 380px); padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.install-dialog::backdrop { background: rgba(42, 36, 32, .5); }
.install-dialog__inner { display: grid; gap: 14px; padding: 24px; }
.install-dialog h3 { margin: 0; font: 700 18px/1.4 "Playfair Display", serif; color: var(--primary); }
.install-dialog p { margin: 0; }
.install-dialog .btn { justify-self: center; }

/* Nội dung trang tĩnh (giới thiệu, điều khoản, quyền riêng tư, liên hệ). */
.prose { max-width: 720px; }
.prose h2 { margin: 28px 0 12px; font: 700 24px/1.3 "Playfair Display", serif; color: var(--primary); }
.prose h3 { margin: 22px 0 10px; font: 700 19px/1.35 "Playfair Display", serif; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 24px; }
.prose li { margin-bottom: 6px; line-height: 1.7; }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--primary); }
.prose blockquote { margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: 0; font-style: italic; }
.contact-card { max-width: 720px; margin-top: 36px; }
.contact-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-status--error { border-color: color-mix(in srgb, #b3261e 55%, var(--border)); color: #b3261e; }
.page-head { margin: 40px 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.page-head__title { margin: 0; font: 700 clamp(30px, 4vw, 40px)/1.15 "Playfair Display", serif; color: var(--text); }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; margin-bottom: 56px; }
.page-layout__aside { display: grid; gap: 16px; }
.page-layout__aside .panel { margin: 0; }
.panel .page-nav__title, .panel .page-cta__title { margin: 0 0 8px; font: 700 17px/1.3 "Playfair Display", serif; color: var(--text); }
.panel .page-nav__title { padding: 0 12px; }
.page-nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.page-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.page-nav a:hover { background: var(--surface-2); }
.page-nav a[aria-current="page"] { background: var(--surface-2); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.page-cta { text-align: center; }
.page-cta img { display: block; margin: 0 auto 10px; }
.panel .page-cta__text { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.page-fanpage { text-align: center; }
.page-updated { margin-top: 28px; }
.page-ad-mobile { display: none; margin-top: 32px; }
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; gap: 32px; }
  .page-nav { display: none; }
  .page-ad-desktop { display: none; }
  .page-ad-mobile { display: block; }
}

/* 404 page */
.nf { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 80px) 0 clamp(56px, 9vw, 104px); background: var(--hero-bg); text-align: center; }
.nf__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.nf__code {
  display: flex; align-items: center; justify-content: center; gap: .04em; margin-bottom: 18px;
  font: 700 clamp(92px, 20vw, 176px)/1 "Playfair Display", serif; color: var(--accent);
  text-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 35%, transparent);
}
.nf__zero {
  display: grid; place-items: center; width: .8em; height: .8em; border-radius: 50%;
  border: .055em solid var(--accent);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  animation: nf-glow 3.2s ease-in-out infinite alternate;
}
.nf__cross { width: .27em; height: .36em; fill: var(--accent); transform-origin: 50% 100%; animation: sway 4.5s ease-in-out infinite; }
@keyframes nf-glow {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent), inset 0 0 18px color-mix(in srgb, var(--accent) 12%, transparent); }
  to { box-shadow: 0 0 46px 6px color-mix(in srgb, var(--accent) 38%, transparent), inset 0 0 30px color-mix(in srgb, var(--accent) 30%, transparent); }
}
.nf .kicker { margin-bottom: 6px; }
.nf__title { font: 700 clamp(30px, 5vw, 48px)/1.15 "Playfair Display", serif; }
.nf__lead { max-width: 540px; margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.nf__verse {
  max-width: 560px; margin: 28px 0 0; padding: 18px 24px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.nf__verse blockquote { margin: 0; font: italic 400 19px/1.5 Lora, serif; }
.nf__verse figcaption { margin-top: 8px; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.nf__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.nf__links .chip { text-decoration: none; transition: border-color .2s, color .2s, transform .15s; }
.nf__links .chip:hover, .nf__links .chip:focus-visible { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.nf__sparks { position: absolute; inset: 0; pointer-events: none; }
.nf__sparks span { position: absolute; color: var(--accent); opacity: .25; animation: nf-twinkle 4s ease-in-out infinite; }
.nf__sparks span:nth-child(1) { top: 14%; left: 9%; font-size: 22px; }
.nf__sparks span:nth-child(2) { top: 26%; right: 11%; font-size: 30px; animation-delay: -1.2s; }
.nf__sparks span:nth-child(3) { top: 58%; left: 15%; font-size: 16px; animation-delay: -2.4s; }
.nf__sparks span:nth-child(4) { top: 70%; right: 16%; font-size: 24px; animation-delay: -.6s; }
.nf__sparks span:nth-child(5) { top: 8%; left: 44%; font-size: 14px; animation-delay: -3s; }
.nf__sparks span:nth-child(6) { bottom: 8%; left: 40%; font-size: 18px; animation-delay: -1.8s; }
@keyframes nf-twinkle { 50% { opacity: .8; transform: scale(1.25) rotate(12deg); } }
@media (max-width: 520px) {
  .nf__actions .btn { width: 100%; }
  .nf__verse { padding: 16px 18px; }
  .nf__verse blockquote { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .nf__zero, .nf__cross, .nf__sparks span { animation: none; }
}
