/* Metric-matched stand-in while Cormorant loads, so nowrap prayer lines
   don't spill into the frame during the font swap. */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia");
  size-adjust: 86%;
  ascent-override: 92%;
  descent-override: 28%;
}

/* 7lineprayer.com — site styles
   Palette and type follow the approved mockup (design/7lp-mockup-b.png). */

:root {
  --navy: #13213d;
  --navy-2: #1a2a4a;
  --navy-line: rgba(255, 255, 255, 0.14);
  --cream: #faf4e8;
  --cream-2: #f5ebd8;
  --paper: #fffaf1;
  --ink: #1d2236;
  --ink-soft: #4a4d5c;
  --gold: #e8b85a;
  --gold-deep: #c4933a;
  --gold-text: #8a6220;
  --gold-on-navy: #e9bd62;
  --pill-era-bg: #ecd6a6;
  --pill-era-ink: #5e4818;
  --pill-type-bg: #efe0d6;
  --pill-type-ink: #7a3b33;
  --pill-line-bg: #d9dff0;
  --pill-line-ink: #2c3a63;
  --pill-fiction-bg: #e2d8f2;
  --pill-fiction-ink: #4a3576;
  --card-line: #e6d6b6;

  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --sans: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 5.9vw, 60px);
  --radius: 8px;

  /* spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.005em;
}

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--gold); color: var(--navy);
  padding: 8px 14px; border-radius: 4px; z-index: 100;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}

.brand-mark { width: 40px; height: 40px; flex: none; }

.brand-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  gap: clamp(20px, 3.1vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-on-navy);
  border-bottom-color: var(--gold-on-navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1.5px; background: currentColor; margin: 6px 0;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .brand-name { font-size: 22px; }
  .brand-mark { width: 34px; height: 34px; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--navy);
    border-top: 1px solid var(--navy-line);
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s 0.28s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25); }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--navy-line); }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--navy-line); }
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: #2a2110;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 16, 6, 0.22);
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn:hover { background: #f0c46a; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(20, 16, 6, 0.28); }
.btn:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(20, 16, 6, 0.25); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.arrow { width: 16px; height: 16px; flex: none; transition: transform 0.3s var(--ease); }
a:hover > .arrow, button:hover > .arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-text);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  margin: -10px 0;
}
.text-link > span {
  padding-bottom: 3px;
  background: linear-gradient(var(--gold-deep), var(--gold-deep)) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.text-link:hover > span { background-size: 100% 2px; }

.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-on-navy);
  margin: 0 0 16px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #fff;
  min-height: clamp(520px, 44vw, 660px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 58%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 22, 44, 0.6) 0%, rgba(14, 22, 44, 0.28) 40%, rgba(14, 22, 44, 0) 62%),
    linear-gradient(0deg, rgba(14, 22, 44, 0.3) 0%, rgba(14, 22, 44, 0) 30%);
}

.hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 80px; }

.hero h1 {
  font-size: clamp(46px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(10, 16, 34, 0.35);
}

.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  margin: 22px 0 36px;
  max-width: 34em;
  text-shadow: 0 1px 12px rgba(10, 16, 34, 0.5);
}

/* ---------- Welcome ---------- */

.welcome {
  background: var(--paper);
  text-align: center;
  padding: var(--s5) 0;
}

.welcome .lamp { width: 40px; height: 40px; margin: 0 auto var(--s2); }

.welcome p {
  font-family: var(--serif);
  font-size: clamp(21px, 1.9vw, 25px);
  line-height: 1.5;
  max-width: 30em;
  text-wrap: balance;
  margin: 0 auto;
  color: var(--ink);
}

/* ---------- Prayer band ---------- */

.prayer-band {
  background: var(--navy);
  color: #fff;
  padding: var(--s6) 0;
  text-align: center;
}

.prayer-band h2 { font-size: clamp(36px, 4.2vw, 52px); text-wrap: balance; }

.rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold-on-navy);
  margin: 22px 0 24px;
}
.prayer-head .rule { margin: 22px auto var(--s5); }

.prayer-band .text-link { color: var(--gold-on-navy); font-size: 17px; }
.prayer-band .text-link > span { background-image: linear-gradient(var(--gold-on-navy), var(--gold-on-navy)); }

.prayer-actions {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--s5);
}

/* The gold frame (assets/img/prayer-frame.jpg, 1024x1536) is drawn with
   border-image so the panel can grow with its text. The slice numbers mark
   where the empty indigo field begins inside the ornament; the top slice sits
   below the jewel hanging from the sun-and-moon medallion. */
.prayer-panel {
  --w: min(680px, calc(100vw - 32px));
  width: var(--w);
  margin: 0 auto;
  border-style: solid;
  border-width: calc(var(--w) * 0.205) calc(var(--w) * 0.137) calc(var(--w) * 0.293);
  border-image: url("../img/prayer-frame.jpg") 210 140 300 fill stretch;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

.prayer-text {
  padding: 18px 26px 22px 30px;
  text-align: left;
  font-family: var(--serif);
}

.verse {
  display: grid;
  grid-template-columns: 3.4em 1fr;
  column-gap: 0.75em;
  align-items: baseline;
  margin-bottom: 18px;
}
.verse:last-child { margin-bottom: 0; }
.verse.mantra { margin-top: 26px; position: relative; }
.verse.mantra::before {
  content: "";
  position: absolute;
  left: 4.15em; top: -15px;
  width: 40px; height: 1px;
  background: rgba(244, 210, 126, 0.5);
}

.verse p { margin: 0; }

.verse .ph {
  color: #f4d27e;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.verse .tr {
  color: #f3ebdc;
  font-size: 18px;
  line-height: 1.4;
  text-wrap: balance;
}

.verse .hung { font-size: 17px; line-height: 1.35; letter-spacing: 0.06em; }
.verse .hung:first-child { color: #f4d27e; font-weight: 600; }
.verse .hung:nth-child(3) { color: #f3ebdc; font-size: 15px; line-height: 1.4; }

/* ---------- Section heading ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: var(--s4);
}

.section-title {
  font-size: clamp(32px, 3.2vw, 40px);
  display: inline-block;
  padding-bottom: 12px;
  position: relative;
  margin: 0;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 2px;
  background: var(--gold-deep);
}

.stories-home .eyebrow { color: var(--gold-text); margin: 0 0 12px; }

.section-deck {
  text-wrap: pretty;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* ---------- Stories ---------- */

.stories-home { padding: var(--s6) 0; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.pill {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px 5px;
  border-radius: 3px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pill-era { background: var(--pill-era-bg); color: var(--pill-era-ink); }
.pill-type { background: var(--pill-type-bg); color: var(--pill-type-ink); }
.pill-type.fiction { background: var(--pill-fiction-bg); color: var(--pill-fiction-ink); }
.pill-line { background: var(--pill-line-bg); color: var(--pill-line-ink); }

/* Quiet catalogue line used on the homepage instead of pills */
.meta {
  font: 600 11px/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 12px;
}
.meta .soon { color: var(--ink-soft); }
.feature-card .meta { font: 600 11px/1.3 var(--sans); letter-spacing: 0.16em; color: var(--gold-text); margin: 0 0 14px; max-width: none; }

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: calc((200% - var(--s3)) / 3) 1fr;
  background: var(--paper);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--s3);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.feature-card:has(:focus-visible) { box-shadow: 0 18px 40px rgba(60, 42, 10, 0.14); transform: translateY(-2px); outline: 2px solid var(--gold-text); outline-offset: 3px; }
.feature-card .text-link:focus-visible { outline: none; }
.welcome :focus-visible, .stories-home :focus-visible, .invitation :focus-visible { outline-color: var(--gold-text); }
.feature-card:active { transform: scale(0.99); transition-duration: 0.15s; }

.feature-card .media { min-height: 380px; position: relative; overflow: hidden; background: #1b2540; }
.feature-card .media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 38%; color: transparent;
  transition: transform 1.2s var(--ease);
}
.feature-card:has(:focus-visible) .media img { transform: scale(1.035); }

.feature-card .body { padding: var(--s4); display: flex; flex-direction: column; justify-content: center; }
.feature-card h3 { font-size: clamp(32px, 3.2vw, 40px); margin-bottom: 14px; }
.feature-card h3 a { text-decoration: none; }
.feature-card h3 a:focus-visible { outline: none; }
.feature-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature-card .text-link { position: relative; z-index: 2; align-self: flex-start; }
.feature-card p { text-wrap: pretty; font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink); margin-bottom: 22px; max-width: 30em; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.story-card {
  background: var(--paper);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.story-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60, 42, 10, 0.12); }
a.story-card:active { transform: scale(0.99); transition-duration: 0.15s; }
.story-card:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }

.story-card .media { aspect-ratio: 3 / 2; overflow: hidden; background: #1b2540; }
.story-card .media img { color: transparent; }
.story-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; }
.story-card:focus-visible .media img { transform: scale(1.04); filter: saturate(1.08) brightness(1.03); }

.story-card .body { padding: var(--s3) var(--s3) calc(var(--s3) + 4px); }
.story-card .pills { margin-bottom: 12px; }
.story-card h3 { font-size: 25px; line-height: 1.15; text-wrap: balance; transition: color 0.3s; }
.story-card:focus-visible h3 { color: var(--gold-text); }

/* Coming-soon cards are not links: quieter image, no hover response */
.story-card.is-soon .media img { filter: saturate(0.85); }

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover { box-shadow: 0 18px 40px rgba(60, 42, 10, 0.14); transform: translateY(-2px); }
  .feature-card:hover .media img { transform: scale(1.035); }
  a.story-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60, 42, 10, 0.12); }
  a.story-card:hover .media img { transform: scale(1.04); filter: saturate(1.08) brightness(1.03); }
  a.story-card:hover h3 { color: var(--gold-text); }
}
.story-card .excerpt { text-wrap: pretty; font-family: var(--serif); font-size: 18.5px; line-height: 1.42; color: var(--ink); margin: 10px 0 0; }

/* ---------- Invitation ---------- */

.invitation {
  background: var(--cream-2);
  text-align: center;
  padding: var(--s5) 0 calc(var(--s5) + 8px);
}
.invitation .lotus-small { width: 40px; height: 40px; margin: 0 auto var(--s2); }
.invitation .divider { width: 56px; height: 2px; background: var(--gold-deep); margin: 0 auto 22px; }
.invitation p { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); margin: 0; text-wrap: balance; }
.invitation p a { color: inherit; text-decoration-color: var(--gold-deep); text-underline-offset: 6px; text-decoration-thickness: 1px; transition: text-decoration-color 0.3s, color 0.3s; }
.invitation p a:hover { color: var(--gold-text); text-decoration-thickness: 2px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #fff; padding: 56px 0 40px; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand .brand-name { font-size: 22px; }
.footer-brand .brand-mark { width: 36px; height: 36px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 30px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { display: inline-block; padding: 12px 0; color: rgba(255, 255, 255, 0.9); text-decoration: none; font-size: 14px; letter-spacing: 0.02em; transition: color 0.25s; }
.footer-nav a:hover { color: var(--gold-on-navy); }
.footer-note { width: 100%; font-size: 13px; color: rgba(255, 255, 255, 0.6); margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--navy-line); }

/* ---------- Reveal (added by site.js only when motion is allowed) ---------- */

.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.9s ease, transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.verse.reveal { transition-delay: calc(var(--i, 0) * 110ms); }

/* ---------- Inner pages ---------- */

/* Illustrated page hero: art on the right, headline on the calm left. */
.page-hero {
  position: relative;
  color: #fff;
  background: var(--navy);
  min-height: clamp(420px, 36vw, 540px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 50%;
  color: transparent;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 22, 44, 0.78) 0%, rgba(14, 22, 44, 0.45) 40%, rgba(14, 22, 44, 0) 66%),
    linear-gradient(0deg, rgba(14, 22, 44, 0.55) 0%, rgba(14, 22, 44, 0) 45%);
}
.page-hero .wrap { position: relative; z-index: 1; padding-top: var(--s6); padding-bottom: var(--s5); }
.page-hero h1 {
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.02;
  max-width: 11em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(10, 16, 34, 0.4);
}
.page-hero .lede {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  max-width: 28em;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: pretty;
  text-shadow: 0 1px 12px rgba(10, 16, 34, 0.5);
}

.section { padding: var(--s6) 0; }
.section.tight-top { padding-top: var(--s5); }
.section.paper { background: var(--paper); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy .section-title::after { background: var(--gold-on-navy); }
.section.navy .section-deck { color: rgba(255, 255, 255, 0.78); }

.sec-head { margin-bottom: var(--s4); max-width: 44em; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head.center .section-title::after { left: 50%; transform: translateX(-50%); }
.stories-home .eyebrow,
.section:not(.navy) .eyebrow { color: var(--gold-text); }

/* Long-form reading */
.prose { max-width: 680px; font-family: var(--serif); }
.prose > * + * { margin-top: 0; }
.prose p, .prose li { font-size: 20.5px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.prose p { margin: 0 0 0.9em; }
.prose h2 { font-size: clamp(30px, 3vw, 38px); margin: 1.5em 0 0.45em; }
.prose h3 { font-size: 26px; margin: 1.4em 0 0.35em; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose a { color: var(--gold-text); text-decoration-color: var(--gold-deep); text-underline-offset: 4px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose em { font-style: italic; }
.prose .lead { font-size: 23px; line-height: 1.55; }
.prose.center { margin-left: auto; margin-right: auto; }
.prose .term { font-style: italic; }

/* Two-column layout with a sticky contents rail */
.with-rail { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.rail { position: sticky; top: 84px; font-size: 14px; }
.rail .eyebrow { color: var(--gold-text); margin-bottom: 14px; }
.rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--card-line); }
.rail a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px;
  color: var(--ink-soft); text-decoration: none; border-left: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.rail a:hover, .rail a[aria-current="true"] { color: var(--ink); border-left-color: var(--gold-deep); }

/* Notes and placeholders */
.note {
  background: var(--paper);
  border: 1px solid var(--card-line);
  border-left: 3px solid var(--gold-deep);
  border-radius: 4px;
  padding: 18px 22px;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 28px 0;
}
.note strong { color: var(--ink); }
.placeholder {
  border: 1px dashed var(--gold-deep);
  background: rgba(232, 184, 90, 0.07);
  border-radius: 6px;
  padding: 18px 22px;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 24px 0;
}
.placeholder strong { color: var(--ink); }

/* Teacher callout band */
.teacher-band { text-align: center; }
.teacher-band p:not(.eyebrow) { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.45; max-width: 30em; margin: 0 auto 26px; text-wrap: balance; }
.teacher-band .text-link { color: var(--gold-on-navy); }
.teacher-band .text-link > span { background-image: linear-gradient(var(--gold-on-navy), var(--gold-on-navy)); }

/* ---------- Stories library ---------- */

.filters { display: grid; gap: 10px; margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--card-line); }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.filter-group .label { font: 600 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); width: 84px; }
.chip {
  font: 500 14px/1 var(--sans);
  background: none; color: var(--ink-soft);
  border: 1px solid transparent; border-radius: 999px;
  padding: 9px 14px; cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--ink); border-color: var(--card-line); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty { display: none; font-family: var(--serif); font-size: 20px; color: var(--ink-soft); padding: var(--s4) 0; }
.story-card[hidden] { display: none; }

/* Typographic list of stories in preparation */
.forthcoming { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.forthcoming h3 { font-size: 26px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--card-line); }
.forthcoming h3 small { display: block; font: 600 11px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 8px; }
.forthcoming ol { list-style: none; margin: 0; padding: 0; }
.forthcoming li { padding: 14px 0; border-bottom: 1px solid rgba(230, 214, 182, 0.6); }
.forthcoming li strong { display: block; font: 500 21px/1.25 var(--serif); color: var(--ink); }
.forthcoming li span { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- The Prayer page ---------- */

.prayer-page-panel { margin-top: var(--s2); }
.tibetan {
  font-family: "Noto Serif Tibetan", serif;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 2.1;
  text-align: center;
  color: var(--ink);
  max-width: 34em;
  margin: 0 auto;
}
.tibetan span { display: block; }

.line-list { list-style: none; margin: 0; padding: 0; counter-reset: line; }
.line-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--card-line);
}
.line-list li:first-child { padding-top: 0; }
.line-list .n img { width: 34px; height: 34px; margin-top: 4px; }
.line-list .n { grid-row: span 3; font: 500 44px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--gold-deep); }
.line-list .label { font: 600 11px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.line-list .ph { font: 600 18px/1.35 var(--serif); letter-spacing: 0.06em; color: var(--ink); margin: 6px 0 2px; }
.line-list p { font-family: var(--serif); font-size: 20px; line-height: 1.55; margin: 6px 0 0; color: var(--ink); }

.recite {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.recite h2 { font-size: clamp(36px, 4vw, 50px); }
.recite p:not(.eyebrow):not(.recite-label) { font-family: var(--serif); font-size: 21px; line-height: 1.55; color: rgba(255, 255, 255, 0.86); margin: 18px auto 0; max-width: 30em; }
.recite-count {
  font: 500 clamp(80px, 10vw, 120px)/1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--gold-on-navy);
  margin: var(--s4) 0 6px;
}
.recite-label { font: 600 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: var(--s4); }
.recite .btn-row { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn-ghost {
  background: transparent; color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.recite-count.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* ---------- Figures ---------- */

.figure-group + .figure-group { margin-top: var(--s5); }
.figure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.figure-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0 20px;
  background: var(--paper);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: var(--s3) var(--s3) calc(var(--s3) + 4px);
  scroll-margin-top: 84px;
}
.monogram {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 30px/1 var(--serif);
  color: var(--gold-text);
  background: radial-gradient(circle at 50% 40%, #fff7e6, #f3e3c2);
  box-shadow: inset 0 0 0 1px var(--card-line), inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(196, 147, 58, 0.45);
}
.figure-card h3 { font-size: 28px; line-height: 1.1; margin: 4px 0 6px; }
.figure-card .role { font: 600 11px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 12px; }
.figure-card p { font-family: var(--serif); font-size: 18.5px; line-height: 1.5; color: var(--ink); margin: 0 0 12px; text-wrap: pretty; }
.figure-card .also { font: 500 13.5px/1.5 var(--sans); color: var(--ink-soft); margin: 0; }
.figure-card .also a { color: var(--gold-text); text-underline-offset: 3px; }
.figure-card.wide { grid-column: 1 / -1; }

/* ---------- Sacred Art ---------- */

.attr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.attr-list li { background: var(--paper); border: 1px solid var(--card-line); border-radius: var(--radius); padding: var(--s3); }
.attr-list .k { font: 600 11px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); display: block; margin-bottom: 8px; }
.attr-list h3 { font-size: 25px; margin-bottom: 8px; }
.attr-list p { font-family: var(--serif); font-size: 18.5px; line-height: 1.5; margin: 0; color: var(--ink); }

.manifest { width: 100%; border-collapse: collapse; font-family: var(--serif); }
.manifest th, .manifest td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--card-line); vertical-align: baseline; }
.manifest thead th { font: 600 11px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); border-bottom-color: var(--gold-deep); }
.manifest td:first-child { width: 48px; font-size: 28px; color: var(--gold-deep); font-variant-numeric: lining-nums; }
.manifest td:nth-child(2) { font-size: 22px; white-space: nowrap; }
.manifest td:last-child { font-size: 19px; color: var(--ink); }

.symbol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
.symbol h3 { font-size: 24px; margin: 14px 0 6px; }
.symbol p { font-family: var(--serif); font-size: 18px; line-height: 1.5; margin: 0; color: rgba(255, 255, 255, 0.82); }
.symbol svg { width: 44px; height: 44px; color: var(--gold-on-navy); }

/* ---------- Resources ---------- */

.res-group + .res-group { margin-top: var(--s5); }
.res-group > h2 { font-size: 30px; margin-bottom: 4px; }
.res-group > p { font-family: var(--serif); font-size: 19px; color: var(--ink-soft); margin: 0 0 var(--s3); }
.resource-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--card-line); }
.resource-list li { border-bottom: 1px solid var(--card-line); }
.resource-list a, .resource-list .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  padding: 20px 0;
  text-decoration: none;
  color: inherit;
}
.resource-list .name { font: 500 25px/1.2 var(--serif); color: var(--ink); transition: color 0.25s; }
.resource-list .host { font: 600 11px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); align-self: center; grid-row: span 2; display: inline-flex; align-items: center; gap: 8px; }
.resource-list .desc { font-family: var(--serif); font-size: 18.5px; line-height: 1.5; color: var(--ink-soft); grid-column: 1; }
.resource-list .by { font-style: italic; }
@media (hover: hover) and (pointer: fine) {
  .resource-list a:hover .name { color: var(--gold-text); }
  .resource-list a:hover .arrow { transform: translateX(3px); }
}

/* ---------- Coming Back (letter) ---------- */

.letter { max-width: 640px; margin: 0 auto; }
.letter .salutation { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-soft); margin-bottom: var(--s3); }
.letter .signature { font-family: var(--serif); font-style: italic; font-size: 24px; margin-top: var(--s4); }
.prompts { list-style: none; padding: 0; margin: var(--s3) 0; counter-reset: p; }
.prompts li { position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--card-line); font-family: var(--serif); font-size: 19.5px; color: var(--ink-soft); }
.prompts li::before { counter-increment: p; content: counter(p, upper-roman); position: absolute; left: 0; top: 16px; font: 600 13px/1.9 var(--sans); letter-spacing: 0.1em; color: var(--gold-text); }

/* Form */
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.form input[type="text"], .form input[type="email"], .form textarea, .form select {
  font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--card-line); border-radius: 6px; background: var(--paper); color: var(--ink);
}
.form textarea { min-height: 200px; resize: vertical; }
.form fieldset { border: 1px solid var(--card-line); border-radius: 8px; padding: 18px 20px; margin: 0; display: grid; gap: 12px; }
.form legend { font-family: var(--serif); font-size: 22px; padding: 0 6px; }
.check { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 5px; }

/* ---------- Story page ---------- */

.story-hero { position: relative; color: #fff; background: var(--navy); }
.story-hero img { width: 100%; height: clamp(320px, 62vh, 640px); object-fit: cover; opacity: 0.92; }
.story-hero .overlay { position: absolute; inset: auto 0 0 0; padding: 120px 0 40px; background: linear-gradient(0deg, rgba(14, 22, 44, 0.85), rgba(14, 22, 44, 0)); }
.story-hero h1 { font-size: clamp(44px, 7vw, 78px); }
.story-hero .pills { margin-bottom: 18px; }

.story-body { padding: 48px 0 24px; }
.story-body .prose { margin: 0 auto; }
.story-body .prose p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 4.2em; line-height: 0.8; padding: 6px 10px 0 0; color: var(--gold-text); }

.beat { margin: 44px auto; max-width: 980px; }
.beat img { width: 100%; border-radius: 6px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--cream-2); }
.beat figcaption { font-size: 14px; color: var(--ink-soft); text-align: center; margin-top: 10px; font-style: italic; }

.art-note { max-width: 680px; margin: 40px auto; background: var(--paper); border: 1px solid var(--card-line); border-radius: 8px; }
.art-note summary { cursor: pointer; padding: 16px 22px; font-family: var(--serif); font-size: 22px; list-style: none; }
.art-note summary::after { content: "+"; float: right; color: var(--gold-text); }
.art-note[open] summary::after { content: "–"; }
.art-note .inner { padding: 0 22px 18px; font-size: 16px; color: var(--ink-soft); }

.practice-box { max-width: 680px; margin: 40px auto; padding: 26px 28px; background: var(--cream-2); border-radius: 8px; }
.practice-box h2 { font-size: 28px; margin-bottom: 10px; }

.related { padding: 30px 0 60px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .with-rail { grid-template-columns: 1fr; }
  .rail { position: static; }
  .rail ol { display: flex; flex-wrap: wrap; gap: 4px 24px; border-left: 0; }
  .rail a { padding: 6px 0; border-left: 0; }
  .forthcoming { grid-template-columns: 1fr 1fr; }
  .symbol-grid { grid-template-columns: 1fr 1fr; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card .media { aspect-ratio: 16 / 9; min-height: 0; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --s4: 28px; --s5: 40px; --s6: 56px; }
  body { font-size: 16px; }
  /* Portrait art pinned to the top at its own 2:3 shape; the hero runs
     taller so the headline sits on dark water below the lotus. */
  .hero { min-height: min(800px, 186vw); align-items: flex-end; }
  .hero-img { height: auto; aspect-ratio: 2 / 3; bottom: auto; object-position: 50% 0; }
  .hero::after {
    background: linear-gradient(0deg, var(--navy) 0%, rgba(19, 33, 61, 0.92) 30%, rgba(19, 33, 61, 0.4) 46%, rgba(19, 33, 61, 0) 60%);
  }
  .hero .wrap { padding-top: 40px; padding-bottom: 44px; }
  .hero h1 { font-size: min(40px, 9.6vw); line-height: 1.04; text-shadow: 0 1px 2px rgba(10, 16, 34, 0.55), 0 2px 22px rgba(10, 16, 34, 0.7); }
  .welcome p { font-size: 20px; }
  .welcome p br { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-card { margin-bottom: 12px; }
  .feature-card p { font-size: 18px; }
  .feature-card .body { padding: var(--s3) var(--s3) calc(var(--s3) + 4px); }
  /* Coming-soon stories collapse to compact rows so the thumb isn't
     scrolling past large cards that can't be opened yet. */
  .card-grid { gap: 12px; }
  .story-card.is-soon { display: grid; grid-template-columns: 104px 1fr; align-items: stretch; }
  .story-card.is-soon .media { aspect-ratio: auto; height: 100%; }
  .story-card.is-soon .media img { height: 100%; object-fit: cover; }
  .story-card.is-soon .body { padding: 14px 16px; }
  .story-card.is-soon .meta { margin-bottom: 6px; }
  .story-card.is-soon h3 { font-size: 22px; }
  .story-card.is-soon .excerpt { font-size: 16px; line-height: 1.4; margin-top: 4px; }
  .section-head { gap: 20px; }
  .feature-card .media { aspect-ratio: 3 / 2; }
  .feature-card h3 { font-size: 30px; }
  .site-footer { padding: 40px 0 32px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .footer-brand { flex-wrap: wrap; gap: 12px; }
  .filter-group .label { width: 100%; margin: 6px 0 2px; }
  .page-hero { min-height: 0; display: block; }
  .page-hero-img { position: relative; height: auto; aspect-ratio: 4 / 3; object-position: 78% 50%; }
  .page-hero::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(19, 33, 61, 0) 34%); bottom: auto; height: calc(75vw + 2px); }
  .page-hero .wrap { padding-top: 0; margin-top: -56px; padding-bottom: var(--s5); }
  .page-hero h1 { font-size: min(44px, 11vw); }
  .page-hero .lede { font-size: 19px; }
  .prose p, .prose li { font-size: 19px; }
  .prose .lead { font-size: 21px; }
  .with-rail { grid-template-columns: 1fr; gap: var(--s3); }
  .rail { position: static; }
  .rail ol { display: flex; flex-wrap: wrap; gap: 4px 0; border-left: 0; }
  .rail a { padding: 6px 14px 6px 0; border-left: 0; }
  .forthcoming { grid-template-columns: 1fr; gap: var(--s4); }
  .figure-grid, .attr-list { grid-template-columns: 1fr; }
  .figure-card { grid-template-columns: 48px minmax(0, 1fr); gap: 0 16px; }
  .monogram { width: 48px; height: 48px; font-size: 23px; }
  .figure-card h3 { font-size: 25px; }
  .symbol-grid { grid-template-columns: 1fr 1fr; }
  .line-list li { grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; }
  .line-list .n { font-size: 34px; }
  .line-list .ph { font-size: 14px; letter-spacing: 0.02em; }
  .line-list p { font-size: 18.5px; }
  .manifest td:nth-child(2) { white-space: normal; font-size: 20px; }
  .manifest td:last-child { font-size: 17.5px; }
  .manifest th, .manifest td { padding: 14px 8px; }
  .resource-list .name { font-size: 22px; }
  .resource-list a, .resource-list .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .resource-list .host { grid-row: auto; grid-column: 1; order: -1; }

  /* Full-bleed frame with slimmer side ornament so each phonetic line
     stays on one line, as it would be recited. */
  .prayer-panel {
    --w: 100vw;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    border-width: calc(var(--w) * 0.2) calc(var(--w) * 0.095) calc(var(--w) * 0.27);
  }
  /* Size the recited lines to the frame's real text box so the longest
     line fits from 320px up. */
  .prayer-text { container-type: inline-size; padding: 12px 12px 14px 16px; }
  .verse { grid-template-columns: 3.05em 1fr; column-gap: 0; margin-bottom: 13px; }
  .verse.mantra { margin-top: 22px; }
  .verse .ph, .verse .hung { font-size: min(14px, 4.6cqi); letter-spacing: 0.005em; }
  .verse.mantra::before { left: 3.05em; }
  .verse .ph { white-space: nowrap; }
  .verse .tr { font-size: 15.5px; line-height: 1.38; color: #f7f0e3; }
  .verse .hung:nth-child(3) { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.nowrap { white-space: nowrap; }

/* Inner-page refinements */
.with-rail .sec-head:not(:first-child) { margin-top: var(--s5); }

.prose .text-link, .prose .btn { font-family: var(--sans); font-size: 16px; text-decoration: none; }
.prose .text-link { color: var(--gold-text); }
.teacher-band .eyebrow { margin-bottom: 20px; }

/* ---------- Centers directory (Resources) ---------- */

.dir-tools {
  display: grid;
  gap: 14px;
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--card-line);
}
.dir-search {
  position: relative;
  max-width: 440px;
}
.dir-search input {
  width: 100%;
  font: 400 16px/1.2 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 13px 18px 13px 44px;
}
.dir-search input:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.dir-search svg { position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--gold-text); }
.dir-count { font: 600 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }

.dir-state + .dir-state { margin-top: var(--s4); }
.dir-region + .dir-region { margin-top: var(--s5); }
.dir-region-title { font-size: clamp(30px, 3vw, 38px); margin-bottom: var(--s3); }
.dir-region[hidden] { display: none; }
.dir-state > h4 {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 28px;
  padding-bottom: 10px;
  margin-bottom: var(--s2);
  border-bottom: 1px solid var(--gold-deep);
}
.dir-state > h4 small { font: 600 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); }
.dir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s3); list-style: none; margin: 0; padding: 0; }
.center-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
}
.center-card[hidden], .dir-state[hidden] { display: none; }
.center-card .where { font: 600 11px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 6px; }
.center-card h5 { font: 500 23px/1.2 var(--serif); margin: 0 0 4px; color: var(--ink); }
.center-card .teacher { font: 500 13.5px/1.45 var(--sans); color: var(--ink-soft); margin: 0 0 10px; }
.center-card .desc { font-family: var(--serif); font-size: 17.5px; line-height: 1.5; color: var(--ink); margin: 0 0 14px; text-wrap: pretty; }
.center-card .visit { margin-top: auto; align-self: flex-start; font-size: 14.5px; }
.dir-empty { display: none; font-family: var(--serif); font-size: 20px; color: var(--ink-soft); padding: var(--s3) 0; }
.dir-note { margin-top: var(--s4); }

@media (max-width: 900px) {
  .dir-grid { grid-template-columns: minmax(0, 1fr); }
}

.reading .res-group > h3 { font-size: 28px; margin-bottom: var(--s2); }
.reading { max-width: 860px; }

.prose .note { font-family: var(--sans); font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.center-card { min-width: 0; }
.center-card .visit span { overflow-wrap: anywhere; }

/* Unconfirmed listings */
.dir-unconfirmed { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px dashed var(--gold-deep); }
.dir-unconfirmed[hidden] { display: none; }
.unconf-head { max-width: 46em; margin-bottom: var(--s4); }
.unconf-head p { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.dir-subregion-title { font-size: 26px; margin: var(--s4) 0 var(--s2); color: var(--ink-soft); }
.dir-unconfirmed .dir-region + .dir-region { margin-top: 0; }
.center-card.is-unconfirmed { background: transparent; border-style: dashed; border-color: #d8c49c; }
.center-card .flag { color: var(--ink-soft); }
.center-card .doubt {
  font: 400 13.5px/1.5 var(--sans);
  color: var(--ink-soft);
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 2px solid #d8c49c;
}
.center-card .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.center-card .links .visit { margin-top: 0; }

/* ---------- Recitation video (click to load) ---------- */
.video-card { max-width: 680px; margin: var(--s5) auto 0; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1430;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(233, 189, 98, 0.35);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; text-align: left; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(0.95) brightness(0.82); }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 22, 44, 0.75) 0%, rgba(14, 22, 44, 0.2) 55%, rgba(14, 22, 44, 0) 100%); }
.video-play {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(19, 33, 61, 0.55);
  box-shadow: inset 0 0 0 2px var(--gold-on-navy), 0 8px 30px rgba(0, 0, 0, 0.4);
  color: var(--gold-on-navy);
  backdrop-filter: blur(4px);
  transition: transform 0.35s var(--ease), background 0.35s;
}
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-label { position: absolute; left: 24px; bottom: 20px; z-index: 1; display: grid; gap: 6px; }
.video-label .eyebrow { margin: 0; }
.video-title { font: 500 clamp(22px, 2.6vw, 30px)/1.1 var(--serif); text-shadow: 0 2px 16px rgba(10, 16, 34, 0.6); }
.video-facade:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) {
  .video-facade:hover img { transform: scale(1.03); filter: saturate(1) brightness(0.9); }
  .video-facade:hover .video-play { transform: scale(1.06); background: rgba(19, 33, 61, 0.7); }
}
.video-card figcaption { font: 400 15px/1.55 var(--sans); color: rgba(255, 255, 255, 0.72); text-align: center; margin-top: 14px; }
.video-card figcaption a { color: var(--gold-on-navy); text-underline-offset: 3px; }
@media (max-width: 600px) {
  .video-card { margin-top: var(--s4); }
  .video-play { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
  .video-label { left: 16px; bottom: 14px; }
}

/* ---------- Figures (expanded) ---------- */
.era + .era { margin-top: var(--s6); }
.era-head { margin-bottom: var(--s4); max-width: 46em; }
.era-head .section-deck { font-size: 19px; line-height: 1.55; }
.era[hidden], .figure-card[hidden] { display: none; }
/* Beside the timeline rail two columns get too narrow on mid-size screens; drop to one until there is room. */
[data-figures] .figure-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.era-rail a { display: grid; gap: 2px; }
.era-rail a span { font: 600 10.5px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.figure-card { scroll-margin-top: 90px; }
.figure-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tag-living { font: 600 10px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--card-line); border-radius: 999px; padding: 4px 8px; }
.figure-card .also-name { font-family: var(--serif); font-style: italic; font-size: 16.5px; color: var(--ink-soft); margin: -2px 0 8px; }
.figure-card .fig-roles { font: 500 12.5px/1.4 var(--sans); color: var(--ink-soft); margin: 0 0 10px; }
.figure-card .known { font: 400 14px/1.5 var(--sans); color: var(--ink-soft); margin: 0 0 10px; }
.figure-card .known span { font-weight: 600; color: var(--ink); }
.figure-card .prayer-thread { display: flex; gap: 10px; align-items: flex-start; font: 400 14px/1.5 var(--sans); color: var(--ink); background: rgba(232, 184, 90, 0.12); border-radius: 6px; padding: 10px 12px; margin: 4px 0 12px; }
.figure-card .prayer-thread img { flex: none; margin-top: 1px; }
.figure-card .fig-note { font: 400 13px/1.5 var(--sans); color: var(--ink-soft); border-left: 2px solid #d8c49c; padding-left: 10px; margin: 0 0 10px; }
.figure-card .fig-source { display: inline-flex; align-items: center; gap: 8px; font: 500 13.5px/1 var(--sans); color: var(--gold-text); text-decoration: none; margin-top: 4px; }
.figure-card .fig-source .arrow { width: 13px; height: 13px; }
.chip small { font-size: 11px; opacity: 0.6; margin-left: 2px; }
[data-figures] .filter-group .label { display: none; }

/* Story pages built by tools/build_stories.py */
.story-body .prose h2 { font-size: clamp(28px, 3.2vw, 34px); margin: 40px 0 14px; }
.beat-pending { aspect-ratio: 3 / 2; border-radius: 6px; border: 1px dashed var(--gold-deep); background: var(--cream-2); display: grid; place-content: center; justify-items: center; gap: 10px; font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.beat-pending img { opacity: 0.7; }
.story-sources { margin-top: 40px; }
.story-sources ul { padding-left: 1.2em; text-align: left; }
.story-sources li { margin-bottom: 8px; }
.review-note { text-align: left; }

/* Legal links stay available across every published page. */
.legal-nav { width: 100%; margin-top: 12px; }
.legal-nav ul { gap: 0 24px; }

/* The dedication is shared across all public pages. */
.site-dedication {
  background: var(--cream-2);
  border-bottom: 1px solid var(--card-line);
}
.site-dedication-inner {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.dedication-portrait {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--gold-deep);
  border-radius: 4px;
}
.site-dedication .dedication-text {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
  text-wrap: pretty;
}
.dedication-label {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-text);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .site-dedication-inner {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .dedication-portrait { width: 72px; height: 72px; }
  .site-dedication .dedication-text { font-size: 18px; line-height: 1.4; }
  .dedication-label { font-size: 11px; letter-spacing: .04em; }
}
