/* Oddiyana Ling — layout clone. Colors and fonts are placeholders; swap the tokens below. */
:root {
  --maroon: #7a1f1f;
  --maroon-dark: #5a1414;
  --saffron: #d9932b;
  --gold: #c8a24a;
  --cream: #faf5ec;
  --ink: #2b2420;
  --muted: #6e625a;
  --line: #e7dccb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(43, 36, 32, .08);
  --container: 1180px;
  --font-head: "Cormorant Garamond", "Noto Serif Tibetan", Georgia, serif;
  --font-body: "Mulish", "Noto Serif Tibetan", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--saffron); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--maroon); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: 999px; background: var(--saffron); color: #fff; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--maroon); color: #fff; transform: translateY(-1px); }
.btn--outline { background: transparent; border: 2px solid currentColor; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--maroon); }

/* Top bar + header */
.topbar { background: var(--maroon-dark); color: #f3e6d2; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; flex-wrap: wrap; }
.topbar a { color: #f3e6d2; }
.lang-switch { display: inline-flex; margin-left: 14px; border: 1px solid rgba(243,230,210,.45); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.lang-switch a { padding: 1px 11px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.lang-switch a[aria-current] { background: #f3e6d2; color: var(--maroon-dark); }
@media (pointer: coarse) { .lang-switch a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; } }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark { width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--gold), var(--maroon)); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.logo-text { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.logo-text small { display: block; font-family: var(--font-body); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a, .nav-list button.sub-toggle { display: block; white-space: nowrap; padding: 10px 11px; color: var(--ink); font-weight: 600; font-size: .95rem; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--saffron); }
.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: 6px; }
.sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--saffron); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.has-sub > a::after { display: inline-block; transition: transform .2s; }
.has-sub.open > a::after { transform: rotate(180deg); }
.sub-menu a { padding: 8px 20px; font-weight: 500; white-space: normal; }
.nav .btn { white-space: nowrap; padding: 12px 22px; }
.nav-donate { display: none; }
.site-header .logo { flex: none; }
.sub-toggle { display: none !important; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: .2s; }

@media (max-width: 1200px) {
  .menu-toggle { display: block; }
  .nav .nav-cta { display: none; }
  .nav-list > li.nav-donate { display: block; padding: 16px 20px; border-bottom: 0; }
  .nav-list .nav-donate .btn { display: block; text-align: center; color: #fff; background: var(--saffron); padding: 14px 22px; }
  .nav-list .nav-donate .btn:hover { background: var(--maroon); color: #fff; }
  .nav-list { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .nav-open .nav-list { max-height: 80vh; overflow-y: auto; }
  .nav-list > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; }
  .nav-list > li > a { flex: 1; padding: 14px 20px; white-space: normal; }
  .has-sub > a::after { content: none; }
  .sub-toggle { display: block !important; padding: 14px 20px !important; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; width: 100%; display: none; background: var(--cream); }
  .has-sub:hover > .sub-menu { display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .sub-menu a { padding: 10px 36px; }
}

/* Hero slider */
.hero { position: relative; height: clamp(520px, 52vw, 820px); overflow: hidden; color: #fff; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; display: flex; align-items: flex-end; }
.slide.active { opacity: 1; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30,10,8,.8) 0%, rgba(30,10,8,.45) 28%, rgba(30,10,8,0) 55%); }
.slide .container { position: relative; padding-bottom: 64px; }
.slide h1, .slide h2 { color: #fff; max-width: 700px; }
.slide p { max-width: 560px; font-size: 1.1rem; opacity: .95; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--saffron); font-weight: 700; margin-bottom: 12px; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.hero-arrow.prev { left: 16px; } .hero-arrow.next { right: 16px; }
@media (max-width: 640px) { .hero-arrow { display: none; } }

/* Placeholder imagery (replace with real photos) */
.ph { background-size: cover; background-position: center; }
.ph-1 { background-image: linear-gradient(135deg, #5a1414, #b5652a 60%, #e0b45c); }
.ph-2 { background-image: linear-gradient(135deg, #2c3e50, #7a1f1f 55%, #d9932b); }
.ph-3 { background-image: linear-gradient(160deg, #6b4423, #c8a24a); }
.ph-4 { background-image: linear-gradient(200deg, #3d2a1e, #9c3d2a 50%, #e8c27a); }
.ph-5 { background-image: linear-gradient(120deg, #7a1f1f, #e0a94a); }
.ph-6 { background-image: linear-gradient(45deg, #4a3728, #b08840); }
.ph-label { position: relative; display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; }

/* Sections */
.section { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--maroon-dark); color: #f3e6d2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.divider { width: 70px; height: 3px; background: var(--saffron); margin: 16px auto 0; border-radius: 2px; }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
blockquote.quote { margin: 24px 0; padding: 24px 28px; border-left: 4px solid var(--saffron); background: var(--cream); font-family: var(--font-head); font-size: 1.3rem; font-style: italic; }
blockquote.quote cite { display: block; margin-top: 10px; font-family: var(--font-body); font-size: .9rem; font-style: normal; color: var(--muted); font-weight: 700; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.panel h3 { color: var(--maroon); }
.panel ol, .panel ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.panel li { margin-bottom: 6px; }

.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.donate-img { aspect-ratio: 4/5; border-radius: var(--radius); }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 10px; font-weight: 600; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--saffron); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.cause-card { margin-top: 28px; }
.cause-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 14px 0; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--saffron), var(--maroon)); }
.cause-numbers { display: flex; justify-content: space-between; margin-bottom: 18px; }
.cause-numbers strong { font-size: 1.2rem; color: var(--maroon); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid .ph { aspect-ratio: 4/3; border-radius: var(--radius); transition: transform .3s; cursor: zoom-in; }
.gallery-grid .ph:hover { transform: scale(1.02); }
.gallery-grid .tall { grid-row: span 2; aspect-ratio: auto; }

.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.post-card:hover { transform: translateY(-4px); }
.post-card .ph { aspect-ratio: 16/10; }
.post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-date { font-size: .8rem; color: var(--saffron); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.post-body h3 { font-size: 1.25rem; margin: 6px 0 8px; }
.post-body h3 a { color: var(--ink); }
.post-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.read-more { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 16px; }
.contact-list .ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--saffron); color: #fff; display: grid; place-items: center; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-weight: 700; }

form.form { display: grid; gap: 14px; }
form.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.form input, form.form textarea, form.form select { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
form.form textarea { min-height: 140px; resize: vertical; }
form.form input:focus, form.form textarea:focus { outline: 2px solid var(--saffron); border-color: transparent; }
.form-note { font-size: .9rem; color: var(--maroon); min-height: 1.4em; }

/* Inner pages */
.page-hero { padding: 110px 0 70px; color: #fff; text-align: center; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(30,10,8,.55); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.breadcrumb { font-size: .9rem; opacity: .9; }
.breadcrumb a { color: var(--gold); }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
/* Pasted content often wraps body text in <h4>: render it like normal paragraphs */
.two-col h4, .prose h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 400; line-height: 1.8; margin: 0 0 .9em; }
.two-col strong, .prose strong { font-weight: 700; }
.two-col h1 { font-size: clamp(2rem, 4vw, 3rem); }
.two-col .ph { aspect-ratio: 4/3; border-radius: var(--radius); }
.two-col .ph:has(img) { display: flex; align-items: center; justify-content: center; padding: 32px; aspect-ratio: auto; }
.two-col .ph:has(img) br { display: none; }
.two-col .ph img { display: block; width: auto; height: auto; max-width: 100%; max-height: 640px; object-fit: cover; border-radius: 14px; box-shadow: 0 14px 34px rgba(30,10,8,.35); border: 4px solid rgba(255,255,255,.85); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .num { font-family: var(--font-head); font-size: 2.4rem; color: var(--saffron); line-height: 1; }
/* Lineage holders: a gold thread with an arched portrait niche for each teacher.
   Insert a photo anywhere inside a holder's item in the admin and it replaces the placeholder.
   The portrait floats into the left gutter (negative margin) so text never wraps underneath it. */
.prose:has(> .timeline) { max-width: 960px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--gold); }
.timeline li { position: relative; display: flow-root; padding: 0 0 64px 256px; font-size: 1.02rem; line-height: 1.8; min-height: 236px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--saffron); border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--gold); }
.timeline li h3 { margin: 0 0 .5em; font-size: clamp(1.45rem, 2.6vw, 2rem); color: var(--maroon); }
.timeline li h3 strong { display: inline; font-weight: 700; }
.timeline li p { margin: 0 0 .9em; max-width: 64ch; }
.timeline li h3::before,
.timeline li img {
  float: left; width: 176px; aspect-ratio: 3 / 4; height: auto; margin: 0 0 18px -212px;
  border-radius: 999px 999px 10px 10px;
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--gold), 0 18px 34px rgba(60,25,15,.22);
}
.timeline li h3::before {
  content: ""; background: url('../img/logo.png') center 44% / 62% no-repeat, linear-gradient(180deg, #fff, #efe0c6);
  background-blend-mode: multiply, normal;
}
.timeline li:has(img) h3::before { display: none; }
.timeline li img { object-fit: cover; object-position: center 20%; }
.timeline li p:has(> img:only-child) { float: left; margin: 0 0 18px -212px; }
.timeline li p > img:only-child { float: none; margin: 0; display: block; }
@media (max-width: 760px) {
  .timeline li { padding-left: 28px; min-height: 0; }
  .timeline li h3::before, .timeline li img, .timeline li p:has(> img:only-child) { float: none; display: block; margin: 0 0 20px; width: 150px; }
  .timeline li p > img:only-child { width: 150px; }
}

.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--saffron); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }

.event-list { display: grid; gap: 18px; }
.event { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.event-date { text-align: center; background: var(--maroon); color: #fff; border-radius: 8px; padding: 10px 0; }
.event-date b { display: block; font-size: 1.8rem; font-family: var(--font-head); line-height: 1; }
.event-date span { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.event h3 { margin-bottom: 4px; }
.event p { margin: 0; color: var(--muted); font-size: .92rem; }

.amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.amounts button { padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.amounts button.active { background: var(--saffron); border-color: var(--saffron); color: #fff; }

/* CTA band + footer */
.cta-band { padding: 72px 0; color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.site-footer { background: #1f1714 url('../img/footer-bg.jpg') center / cover no-repeat; color: #c9bcae; padding-top: 72px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.site-footer a { color: #c9bcae; }
.site-footer a:hover { color: var(--saffron); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--saffron); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; background: var(--maroon); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; place-items: center; z-index: 200; }
.lightbox.open { display: grid; }
.lightbox .ph { width: min(900px, 92vw); aspect-ratio: 4/3; border-radius: var(--radius); }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* Responsive */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .about-grid, .donate-grid, .contact-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .cards-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .event { grid-template-columns: 72px 1fr; }
  .event .btn { grid-column: 1 / -1; justify-self: start; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .tall { grid-row: auto; aspect-ratio: 4/3; }
  form.form .row { grid-template-columns: 1fr; }
  .logo-text { font-size: 1.1rem; }
}

/* CMS additions */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.logo-img { max-height: 72px; width: auto; }
.logo-img.on-dark { max-height: 110px; background: #fff; border-radius: 12px; padding: 4px; }
figure.ph { margin: 0; }
.page-content > :first-child:not(section) { margin-top: 64px; }
.prose img, .page-content img { height: auto; border-radius: var(--radius); }
.slide { background-size: cover; background-position: center 18%; }

/* Albums: arched covers on the gallery page, columns of photos inside an album */
.section--album { background: var(--cream); }
/* Flex, not a fixed 3-column grid: with one or two albums the cards stay centered instead of leaving empty columns. */
.album-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 56px 44px; max-width: 1080px; margin: 0 auto; padding-bottom: 48px; }
.album { display: flex; flex-direction: column; align-items: center; width: calc((100% - 88px) / 3); text-align: center; color: var(--ink); }
.album-grid:has(.album:nth-child(3)) .album:nth-child(3n+2) { margin-top: 48px; }
.album-cover { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 12px 12px; background: linear-gradient(180deg, #fff, #efe0c6); box-shadow: 0 0 0 5px var(--cream), 0 0 0 7px var(--gold), 0 22px 40px rgba(60,25,15,.2); }
.album-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.album-cover--empty { background: url('../img/logo.png') center 45% / 46% no-repeat, linear-gradient(180deg, #fff, #efe0c6); background-blend-mode: multiply, normal; }
.album-title { margin-top: 28px; font-family: var(--font-head); font-size: 1.65rem; font-weight: 700; line-height: 1.2; color: var(--maroon); }
.album-count { margin-top: 4px; font-size: .9rem; color: var(--muted); }
.album:hover .album-cover img, .album:focus-visible .album-cover img { transform: scale(1.05); }
.album:hover .album-title { color: var(--saffron); }
.album:focus-visible { outline: 3px solid var(--saffron); outline-offset: 10px; border-radius: 12px; }

.album-intro { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.album-intro p { margin: 0 0 8px; font-size: 1.1rem; }
.album-photos { column-width: 300px; column-gap: 18px; }
.album-photos .photo { margin: 0 0 18px; break-inside: avoid; }
.album-photos .photo a { display: block; overflow: hidden; border-radius: 8px; cursor: zoom-in; box-shadow: 0 6px 18px rgba(60,25,15,.14); }
.album-photos img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.album-photos a:hover img { transform: scale(1.03); }
.album-photos a:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.album-photos figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.album-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.album-back { margin: 48px 0 0; text-align: center; }
.album-others { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); text-align: center; }
.album-others h2 { margin-bottom: 16px; font-size: 1.3rem; }
.album-others ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.album-others a { display: inline-block; min-height: 44px; padding: 9px 18px; border: 1px solid var(--gold); border-radius: 999px; background: #fff; color: var(--maroon); font-weight: 700; }
.album-others a:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.album-others a span { margin-left: 6px; font-size: .85rem; font-weight: 400; opacity: .75; }
.center-link { margin: 36px 0 0; text-align: center; }

/* Photo viewer inside an album */
.lb { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(20,10,8,.94); }
.lb.open { display: flex; }
.lb figure { display: flex; flex-direction: column; align-items: center; max-width: min(1100px, 92vw); margin: 0; padding: 60px 0 24px; }
.lb img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 4px; }
.lb figcaption { min-height: 1.4em; max-width: 70ch; margin-top: 14px; text-align: center; font-size: .95rem; color: #f3e6d2; }
.lb button { position: absolute; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lb button:hover, .lb button:focus-visible { background: var(--saffron); outline: none; }
.lb-close { top: 14px; right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-count { position: absolute; top: 26px; left: 22px; font-size: .9rem; color: #c9bcae; }
.lb.single .lb-prev, .lb.single .lb-next { display: none; }
@media (max-width: 900px) {
  .album-grid { gap: 44px 28px; }
  .album { width: calc((100% - 28px) / 2); }
  .album-grid:has(.album:nth-child(3)) .album:nth-child(3n+2) { margin-top: 0; }
  .album-grid:has(.album:nth-child(3)) .album:nth-child(2n) { margin-top: 40px; }
}
@media (max-width: 560px) {
  .album-grid { max-width: 340px; }
  .album { width: 100%; }
  .album-grid:has(.album:nth-child(3)) .album:nth-child(2n) { margin-top: 0; }
  .album-photos { column-width: 220px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb figure { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .album-cover img, .album-photos img { transition: none; }
  .album:hover .album-cover img, .album-photos a:hover img { transform: none; }
}

.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; }

/* Blog: search and recent posts on the left, two columns of posts on the right */
.blog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.blog-side { position: sticky; top: 108px; display: grid; gap: 40px; }
.blog-search { display: flex; }
.blog-search input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: #fff; font: inherit; }
.blog-search input:focus-visible { outline: 2px solid var(--saffron); outline-offset: -1px; }
.blog-search button { padding: 0 20px; border: 0; border-radius: 0 999px 999px 0; background: var(--maroon); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s; }
.blog-search button:hover, .blog-search button:focus-visible { background: var(--saffron); }
.blog-recent h2 { margin: 0 0 20px; font-size: 1.4rem; }
.blog-recent h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; background: var(--saffron); }
.blog-recent ul { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.blog-recent li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.blog-recent-img { display: block; aspect-ratio: 1; border-radius: 8px; }
.blog-recent li div a { display: block; color: var(--ink); font-weight: 700; line-height: 1.3; }
.blog-recent li div a:hover { color: var(--maroon); }
.blog-recent time { display: block; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.blog-result { margin: 0 0 28px; color: var(--muted); }
.blog-result a { margin-left: 10px; font-weight: 700; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 52px 36px; }
.blog-card { display: flex; flex-direction: column; }
.blog-card-img { display: block; aspect-ratio: 3 / 2; border-radius: 6px; }
.blog-card time { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.blog-card h3 { margin: 6px 0 10px; font-size: 1.7rem; line-height: 1.2; }
.blog-card h3 a { color: var(--maroon); }
.blog-card h3 a:hover { color: var(--saffron); }
.blog-card p { flex: 1; margin: 0 0 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .read-more { align-self: flex-start; text-transform: none; letter-spacing: 0; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination a, .pagination .pg-info { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; }
.pagination a:hover { border-color: var(--gold); color: var(--maroon); }
.pagination a.current { border-color: var(--maroon); background: var(--maroon); color: #fff; }
.pagination .pg-info { border: 0; background: none; font-weight: 400; color: var(--muted); }
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; gap: 48px; }
  .blog-side { position: static; order: 2; grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card h3 { font-size: 1.5rem; }
}

/* Long-form posts: reading column for text, full width for the blocks below */
.post-wrap { max-width: 1080px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 740px; margin: 0 auto 36px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.post-meta a { font-weight: 700; }
.post-content { font-size: 1.05rem; line-height: 1.85; }
.post-content > :is(p, h2, h3, h4, ul, ol, blockquote, hr) { max-width: 740px; margin-left: auto; margin-right: auto; }
.post-content h2 { margin-top: 1.8em; }
.post-content img { max-width: 100%; height: auto; border-radius: 6px; }
.post-content .centered { text-align: center; }

/* Blocks for the editor (Source code view): lineage strip, image + text split, verses, chapter cards */
.arch-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 40px 30px; max-width: 920px; margin: 0 auto 48px; }
.arch-strip figure { margin: 0; text-align: center; }
.arch-strip img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 10px 10px; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--gold), 0 16px 30px rgba(60,25,15,.18); }
.arch-strip figcaption { margin-top: 20px; font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: var(--maroon); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; margin: 48px 0; }
.split-media { position: sticky; top: 108px; }
.split-media img { display: block; width: 100%; box-shadow: 0 14px 34px rgba(60,25,15,.2); }
.split-text > :first-child { margin-top: 0; }
.verse { max-width: 620px; margin: 0 auto 32px; text-align: center; }
.verse p { margin: 0; max-width: none; }
.verse .bo { font-size: 1.35rem; line-height: 2; }
.verse .tr { margin: 2px 0; font-weight: 700; letter-spacing: .02em; }
.verse .en { color: var(--muted); }
.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 56px 0; }
.chapters > * { padding: 22px 22px 20px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--cream); }
.chapters h3 { margin: 0 0 6px; font-size: 1.4rem; color: var(--maroon); }
.chapters p { margin: 0; max-width: none; font-size: .92rem; color: var(--muted); }
.chapters a { display: block; color: inherit; transition: background .2s, border-color .2s; }
.chapters a:hover, .chapters a:focus-visible { border-left-color: var(--saffron); background: #f4ead9; }
.post-content h2[id] { scroll-margin-top: 110px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 740px; margin: 64px auto 0; }
.post-nav a { display: block; padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.post-nav a:hover { border-color: var(--gold); }
.post-nav small { display: block; margin-bottom: 4px; font-size: .85rem; color: var(--muted); }
.post-nav strong { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.2; color: var(--maroon); }
.post-nav .prev { grid-column: 1; }
.post-nav .next { grid-column: 2; text-align: right; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-media { position: static; }
}
@media (max-width: 560px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: 1; text-align: left; }
}

/* Compact table of contents for long posts, and a clear break before each section */
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 920px; margin: 0 auto 64px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border: 1px solid var(--gold); border-radius: 999px; background: #fff; color: var(--maroon); font-weight: 700; font-size: .95rem; transition: background .2s, color .2s; }
.toc a:hover, .toc a:focus-visible { border-color: var(--maroon); background: var(--maroon); color: #fff; }
.post-content h2.centered { margin: 88px auto 32px; }
.post-content h2.centered::before { content: ""; display: block; width: 56px; height: 3px; margin: 0 auto 22px; background: var(--saffron); }
.split-text > h2.centered:first-child { margin-top: 0; }
@media (max-width: 860px) { .post-content h2.centered { margin-top: 64px; } .toc { margin-bottom: 48px; } }

/* ===== Post building blocks (class names are not scoped, so the admin editor previews them too) ===== */
.post-lead { max-width: 740px; margin: 0 auto 2em; text-align: center; font-family: var(--font-head); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.45; color: var(--maroon); }
.dropcap::first-letter { float: left; margin-right: .1em; padding-top: .06em; font-family: var(--font-head); font-size: 4.3em; font-weight: 700; line-height: .8; color: var(--maroon); }
.pullquote { position: relative; max-width: 740px; margin: 3em auto; padding: 0 12px; border: 0; background: none; text-align: center; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); font-style: italic; line-height: 1.3; color: var(--ink); }
.pullquote::before { content: "“"; display: block; margin-bottom: 14px; font-size: 5rem; font-style: normal; line-height: .55; color: var(--gold); }
.pullquote cite { display: block; margin-top: 18px; font-family: var(--font-body); font-size: .95rem; font-style: normal; font-weight: 700; color: var(--muted); }
.figure-wide { max-width: 1080px; margin: 2.6em auto; }
.figure-wide img, .media-row img, .photo-row img { display: block; width: 100%; height: auto; border-radius: 8px; }
.figure-wide img { box-shadow: 0 18px 40px rgba(60,25,15,.2); }
.figure-wide figcaption, .media-row figcaption, .photo-row figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; }
.media-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: center; max-width: 1080px; margin: 3.2em auto; }
.media-row figure { margin: 0; }
.media-row img { box-shadow: 0 16px 36px rgba(60,25,15,.2); }
.media-row.reverse figure { order: 2; }
.media-row h3 { margin: 0 0 .5em; font-size: 1.9rem; color: var(--maroon); }
.media-row p { margin: 0 0 1em; }
.media-row > div > :last-child { margin-bottom: 0; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; max-width: 1080px; margin: 2.6em auto; }
.photo-row figure { margin: 0; }
.photo-row img { aspect-ratio: 4 / 3; object-fit: cover; }
.callout { max-width: 740px; margin: 2.6em auto; padding: 24px 28px; border-left: 4px solid var(--saffron); border-radius: 0 12px 12px 0; background: var(--cream); }
.callout h3, .callout h4 { margin: 0 0 .4em; font-size: 1.45rem; color: var(--maroon); }
.callout p, .callout ul { margin: 0 0 .8em; }
.callout > :last-child { margin-bottom: 0; }
.callout--dark { border-left-color: var(--gold); background: var(--maroon-dark); color: #f3e6d2; }
.callout--dark h3, .callout--dark h4 { color: #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); max-width: 920px; margin: 2.6em auto; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.facts > div { padding: 22px 18px; border-left: 1px solid var(--line); text-align: center; }
.facts > div:first-child { border-left: 0; }
.facts span { display: block; margin-bottom: 4px; font-size: .88rem; color: var(--muted); }
.facts strong { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.2; color: var(--maroon); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; max-width: 920px; margin: 2.6em auto; text-align: center; }
.stats-row strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--maroon); }
.stats-row span { display: block; margin-top: 8px; color: var(--muted); }
.steps { max-width: 740px; margin: 2.6em auto; padding: 0; list-style: none; border-left: 2px solid var(--gold); }
.steps li { position: relative; padding: 0 0 28px 34px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: -9px; top: 7px; width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 2px var(--gold); }
.steps strong { display: block; font-family: var(--font-head); font-size: 1.4rem; line-height: 1.25; color: var(--maroon); }
.post-cta { max-width: 1080px; margin: 4em auto 1em; padding: 46px 40px; border-radius: 14px; text-align: center; color: #f3e6d2; background: linear-gradient(135deg, var(--maroon-dark), var(--maroon) 62%, #9a3a22); }
.post-cta h2, .post-cta h3 { margin: 0 0 .4em; color: #fff; }
.post-cta p { max-width: 52ch; margin: 0 auto 1.3em; }
.ornament { position: relative; max-width: 520px; height: 1px; margin: 3.2em auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ornament::after { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; background: var(--saffron); box-shadow: 0 0 0 5px #fff; transform: translateX(-50%) rotate(45deg); }
@media (max-width: 760px) {
  .media-row { grid-template-columns: 1fr; gap: 24px; }
  .media-row.reverse figure { order: 0; }
  .facts > div { border-left: 0; border-top: 1px solid var(--line); }
  .facts > div:first-child { border-top: 0; }
  .post-cta { padding: 36px 22px; }
}

/* ===== Course article: numbered sessions with key points and a video ===== */
.video-embed { position: relative; max-width: 920px; margin: 2.6em auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #1a0f0c; box-shadow: 0 16px 36px rgba(60,25,15,.22); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-row.poster img { border: 6px solid #fff; border-radius: 4px; box-shadow: 0 0 0 2px var(--gold), 0 18px 34px rgba(60,25,15,.24); }
.media-row.arch img { border-radius: 999px 999px 10px 10px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold), 0 18px 34px rgba(60,25,15,.22); }
.session { position: relative; max-width: 1080px; margin: 0 auto; padding: 56px 0 24px 124px; border-top: 1px solid var(--line); }
.session-num { position: absolute; left: 0; top: 44px; font-family: var(--font-head); font-size: 6.6rem; font-weight: 700; font-variant-numeric: lining-nums; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gold); user-select: none; }
.session h3 { max-width: 30ch; margin: 0 0 .7em; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; color: var(--maroon); }
.session-body { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.session-body .video-embed { margin: 0; max-width: none; }
.points { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.points > li { padding-left: 18px; border-left: 2px solid var(--gold); }
.points > li > strong { display: block; margin-bottom: 3px; font-family: var(--font-head); font-size: 1.32rem; line-height: 1.25; color: var(--maroon); }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.terms li { padding: 10px 14px; border-radius: 8px; background: var(--cream); font-size: .93rem; line-height: 1.45; color: var(--muted); }
.terms b, .terms strong { display: block; margin-bottom: 2px; font-family: var(--font-body); font-size: .98rem; font-weight: 700; color: var(--maroon); }
@media (max-width: 900px) {
  .session { padding: 44px 0 16px; }
  .session-num { position: static; display: block; margin-bottom: 4px; font-size: 4.4rem; }
  .session-body { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Project / fundraising article: raised figures, cost table, voices, pillars ===== */
.stats-row.raised { position: relative; z-index: 1; max-width: 940px; margin-top: -72px; padding: 30px 28px; border-radius: 14px; background: #fff; box-shadow: 0 20px 48px rgba(60,25,15,.2); border-top: 4px solid var(--saffron); }
.figure-wide:has(+ .stats-row.raised) { margin-bottom: 0; }
.stats-row.raised > div + div { border-left: 1px solid var(--line); }
.pullquote.long { max-width: 780px; font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.45; }
.data-table { width: 100%; max-width: 860px; margin: 2.2em auto; border-collapse: collapse; font-size: 1.02rem; }
.data-table caption { padding-bottom: 12px; text-align: left; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--maroon); }
.data-table th { padding: 12px 16px; border-top: 2px solid var(--gold); border-bottom: 1px solid var(--gold); text-align: left; font-size: .9rem; font-weight: 700; color: var(--muted); }
.data-table td { padding: 16px; border-bottom: 1px solid var(--line); }
.data-table td:first-child { font-weight: 700; }
.data-table th:nth-child(n+2), .data-table td:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td:nth-child(2) { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--maroon); }
.data-table td:nth-child(3) { color: var(--muted); }
.data-table tbody tr:last-child td { border-bottom: 2px solid var(--gold); }
.ref-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 860px; margin: 1.4em auto 2em; }
.ref-row span { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .92rem; color: var(--muted); }
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 36px 40px; max-width: 1080px; margin: 3em auto; }
.voices blockquote { position: relative; margin: 0; padding: 38px 0 0; border: 0; background: none; font-family: var(--font-head); font-size: 1.4rem; font-style: italic; line-height: 1.45; color: var(--ink); }
.voices blockquote::before { content: "“"; position: absolute; left: 0; top: 0; font-size: 4.2rem; font-style: normal; line-height: 1; color: var(--gold); }
.voices blockquote p { margin: 0; }
.voices cite { display: block; margin-top: 14px; font-family: var(--font-body); font-size: .92rem; font-style: normal; font-weight: 700; color: var(--muted); }
.needs-list { margin: 0; padding: 0; list-style: none; }
.needs-list li { position: relative; padding: 6px 0 6px 26px; }
.needs-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; max-width: 1080px; margin: 2.6em auto; }
.pillars > div { padding: 34px 28px 30px; border-top: 4px solid var(--saffron); border-radius: 0 0 14px 14px; background: var(--cream); }
.pillars h3 { margin: 0 0 .5em; font-size: 1.7rem; color: var(--maroon); }
.pillars p { margin: 0 0 .7em; }
.pillars ul { margin: 0; padding-left: 1.1em; }
.pillars li { margin: 0 0 .5em; }
.pillars h3::before { content: ""; display: block; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 50%; background: #fff center / 30px no-repeat; box-shadow: 0 0 0 2px var(--gold); }
.pillars h3.water::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a1f1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c3.5 4.2 6 7.2 6 10.2a6 6 0 0 1-12 0C6 10.2 8.5 7.2 12 3z'/%3E%3C/svg%3E"); }
.pillars h3.school::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a1f1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A1.5 1.5 0 0 1 5.5 4H11v15H5.5A1.5 1.5 0 0 1 4 17.5zM20 5.5A1.5 1.5 0 0 0 18.5 4H13v15h5.5a1.5 1.5 0 0 0 1.5-1.5z'/%3E%3C/svg%3E"); }
.pillars h3.dharma::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a1f1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v3M10.5 6h3M7 20v-3.5a5 5 0 0 1 10 0V20M4 20h16M9 11.5h6'/%3E%3C/svg%3E"); }
.figure-plan img { padding: 18px; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 26px rgba(60,25,15,.12); }
@media (max-width: 760px) {
  .stats-row.raised { margin-top: -40px; padding: 22px 16px; }
}
@media (max-width: 560px) {
  .stats-row.raised > div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}
@media (max-width: 560px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .data-table td { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border: 0 !important; text-align: right; }
  .data-table td:first-child { display: block; text-align: left; }
  .data-table td::before { content: attr(data-label); font-family: var(--font-body); font-size: .9rem; font-weight: 400; color: var(--muted); }
  .data-table td:first-child::before { content: none; }
}

/* ===== Multi-year programme article: journey timeline, texts studied, numbered curriculum ===== */
.post-content > ol.journey { max-width: 1000px; }
.journey { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1000px; margin: 2.8em auto; padding: 0; list-style: none; }
.journey li { position: relative; padding: 40px 18px 0; text-align: center; }
.journey li::before { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: var(--line); }
.journey li:first-child::before { left: 50%; }
.journey li:last-child::before { right: 50%; }
.journey li.done::before { background: var(--gold); }
.journey li::after { content: ""; position: absolute; top: 3px; left: 50%; width: 16px; height: 16px; margin-left: -8px; box-sizing: border-box; border: 3px solid var(--gold); border-radius: 50%; background: #fff; }
.journey li.done::after { background: var(--saffron); }
.journey span { display: block; font-size: .92rem; color: var(--muted); }
.journey strong { display: block; font-family: var(--font-head); font-size: 1.75rem; line-height: 1.15; color: var(--maroon); }
.journey small { display: inline-block; margin-top: 8px; padding: 2px 12px; border-radius: 999px; background: var(--cream); font-size: .82rem; font-weight: 700; color: #6e4d0e; }
.journey li.done small { background: #f3e2b8; }
.journey p { margin: 8px 0 0; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.texts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; max-width: 1080px; margin: 2.6em auto; }
.texts article { padding: 28px 26px 26px 30px; border-left: 8px solid var(--maroon); border-radius: 4px 12px 12px 4px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.texts .text-year { display: block; font-size: .9rem; font-weight: 700; color: #7a5410; }
.texts h3 { margin: 6px 0 4px; font-size: 1.7rem; line-height: 1.15; color: var(--maroon); }
.texts .text-author { margin: 0 0 .8em; font-style: italic; color: var(--muted); }
.texts p:last-child { margin: 0; }
.curriculum { counter-reset: subject; }
.session.phase { padding-top: 48px; }
.phase .session-num { font-size: 4.6rem; top: 40px; }
.phase-source { margin: -.4em 0 1.4em; color: var(--muted); font-style: italic; }
.subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 22px 40px; margin: 0; padding: 0; list-style: none; }
.subjects li { position: relative; padding-left: 50px; counter-increment: subject; }
.subjects li::before { content: counter(subject, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: #8a6414; }
.subjects strong { display: block; margin-bottom: 2px; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.25; color: var(--maroon); }
@media (max-width: 760px) {
  .journey { grid-template-columns: 1fr; }
  .journey li { padding: 0 0 26px 40px; text-align: left; }
  .journey li:last-child { padding-bottom: 0; }
  .journey li::before, .journey li:first-child::before, .journey li:last-child::before { top: 14px; bottom: -14px; left: 7px; right: auto; width: 2px; height: auto; }
  .journey li:last-child::before { display: none; }
  .journey li::after { top: 6px; left: 0; margin-left: 0; }
}
@media (max-width: 900px) {
  .phase .session-num { font-size: 3.4rem; }
}

/* Donation page: bank details with a QR code that is easy to scan */
.bank-box { display: block; }
.bank-box.has-qr { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.bank-info > :first-child { margin-top: 0; }
.qr-card { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; box-shadow: 0 10px 26px rgba(60,25,15,.12); }
.qr-card a { display: block; }
.qr-card img { display: block; width: 100%; height: auto; background: #fff; }
.qr-card figcaption { margin-top: 10px; font-size: .92rem; font-weight: 700; color: var(--maroon); }
@media (max-width: 560px) {
  .bank-box.has-qr { grid-template-columns: 1fr; }
  .qr-card { width: min(300px, 100%); margin: 0 auto; }
}

/* Events and calendar page */
:root { --c-teaching: #7a1f1f; --c-empowerment: #8a5a0a; --c-ritual: #b4531a; --c-retreat: #2f5d50; --c-course: #2f4f78; --c-festival: #9a2f5a; --c-other: #6e625a; }
.ev-page { --c-teaching: #7a1f1f; --c-empowerment: #8a5a0a; --c-ritual: #b4531a; --c-retreat: #2f5d50; --c-course: #2f4f78; --c-festival: #9a2f5a; --c-other: #6e625a; background: var(--cream); }
.ev-page [hidden] { display: none !important; }
.cat-teaching { --c: var(--c-teaching); } .cat-empowerment { --c: var(--c-empowerment); } .cat-ritual { --c: var(--c-ritual); }
.cat-retreat { --c: var(--c-retreat); } .cat-course { --c: var(--c-course); } .cat-festival { --c: var(--c-festival); } .cat-other { --c: var(--c-other); }
.ev-intro { max-width: 760px; margin: 0 auto 32px; }
.ev-block { margin-top: 56px; scroll-margin-top: 110px; }
.ev-block > h2 { margin-bottom: 20px; }
.ev-empty, .ev-none { color: var(--muted); }

/* Today strip */
.ev-today { display: grid; grid-template-columns: auto 1fr; gap: 12px 36px; align-items: center; padding: 22px 28px; background: var(--maroon-dark); color: #f6ead6; border-radius: 14px; border-bottom: 4px solid var(--gold); }
.ev-today-date { display: grid; gap: 2px; }
.ev-today-label { font-size: .85rem; font-weight: 700; color: #ecc97a; }
.ev-today-date b { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; color: #fff; }
.ev-today-date span:last-child { font-size: .95rem; }
.ev-today-note p { margin: 0 0 4px; font-size: .95rem; }
.ev-today-note b { color: #ecc97a; }
.ev-today-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Section tabs */
.ev-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 18px; }
.ev-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.ev-tabs a:hover { border-color: var(--maroon); color: var(--maroon); }
.ev-tabs span { min-width: 24px; padding: 0 7px; border-radius: 999px; background: var(--maroon); color: #fff; font-size: .8rem; text-align: center; line-height: 24px; }

/* Search and filter */
.ev-filter { display: grid; gap: 12px; }
.ev-search input { width: 100%; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; color: var(--ink); }
.ev-search input:focus { outline: 3px solid rgba(217,147,43,.45); border-color: var(--saffron); }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chip-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.ev-chip-btn:hover { border-color: var(--maroon); }
.ev-chip-btn.is-on { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.ev-status { margin: 0; min-height: 1.4em; color: var(--muted); font-size: .92rem; }

/* Buttons */
.ev-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 2px solid var(--maroon); border-radius: 999px; background: var(--maroon); color: #fff; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.ev-btn:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; }
.ev-btn--ghost { background: transparent; color: var(--maroon); }
.ev-btn--ghost:hover { background: var(--maroon); color: #fff; }
.ev-page :focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* Event cards */
.ev-list { display: grid; gap: 18px; }
.ev-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 26px; padding: 22px 26px 22px 22px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--c, var(--maroon)); border-radius: 14px; box-shadow: var(--shadow); scroll-margin-top: 110px; }
.ev-card.is-flash { animation: ev-flash 1.6s ease-out 1; }
@keyframes ev-flash { from { box-shadow: 0 0 0 4px rgba(217,147,43,.75); } to { box-shadow: var(--shadow); } }
.ev-date { align-self: start; text-align: center; padding: 10px 6px; background: var(--c, var(--maroon)); color: #fff; border-radius: 10px; line-height: 1.1; }
.ev-date b { display: block; font-family: var(--font-head); font-size: 2.7rem; line-height: 1; }
.ev-date-m { font-weight: 700; font-size: .95rem; }
.ev-date-y { font-size: .85rem; opacity: .92; }
.ev-date-to { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.4); font-size: .78rem; }
.ev-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.ev-tag { display: inline-block; padding: 2px 12px; border: 1.5px solid var(--c, var(--maroon)); border-radius: 999px; color: var(--c, var(--maroon)); font-size: .82rem; font-weight: 700; line-height: 1.6; }
.ev-when { display: inline-block; padding: 2px 12px; border-radius: 999px; background: #f3e6d2; color: #5a3a08; font-size: .82rem; font-weight: 700; line-height: 1.6; }
.ev-when.is-soon { background: var(--saffron); color: #2b1a00; }
.ev-card h3 { margin: 0 0 8px; font-size: 1.65rem; }
.ev-meta { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: .95rem; }
.ev-meta li { display: flex; gap: 10px; align-items: baseline; }
.ev-ico { flex: none; width: 16px; height: 16px; align-self: center; background: var(--c, var(--maroon)); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ev-ico--cal { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3v18H4V4h3zm-1 8v10h12V10zm0-4v2h12V6z'/%3E%3C/svg%3E"); }
.ev-ico--pin { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.ev-ico--wheel { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2.5a7.5 7.5 0 0 1 7.5 7.5H15a3 3 0 0 0-3-3zM12 20a8 8 0 0 1-7.5-7.5H9a3 3 0 0 0 3 3z'/%3E%3C/svg%3E"); }
.ev-sum { margin: 0 0 8px; }
.ev-more { margin: 6px 0 10px; }
.ev-more summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--maroon); cursor: pointer; }
.ev-more .prose { padding: 4px 0 8px; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.ev-card.is-past { background: #fbf8f2; box-shadow: none; }
.ev-card.is-past .ev-date { background: #8d8279; }
.ev-card.is-past h3 { color: #4a413b; }
.ev-morewrap { margin-top: 20px; text-align: center; }

/* Calendar block */
.ev-cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.ev-cal-main { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); transition: opacity .2s; }
.ev-cal-main.is-loading { opacity: .5; }
.ev-cal-head { display: grid; grid-template-columns: 48px 1fr 48px; gap: 12px; align-items: center; }
.ev-cal-title { text-align: center; }
.ev-cal-title h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ev-cal-title p { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.ev-nav { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); color: var(--maroon); font-size: 1.8rem; line-height: 1; }
.ev-nav:hover { background: var(--maroon); color: #fff; }
.ev-nav[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.ev-jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 16px; }
.ev-jump select, .ev-jump input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); }
.ev-jump input { width: 96px; }
.ev-weekdays, .ev-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ev-weekdays span { padding: 6px 0; text-align: center; font-weight: 700; font-size: .85rem; color: var(--muted); }
.ev-weekdays .is-weekend { color: var(--maroon); }
.ev-grid { margin: 0; padding: 0; list-style: none; }
.ev-grid li { display: block; min-width: 0; }
.ev-cell { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; align-content: start; width: 100%; min-height: 58px; padding: 6px 7px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; }
.ev-cell:hover { border-color: var(--saffron); background: #fffaf0; }
.ev-cell.is-out { background: #f7f2e9; color: #8d8279; }
.ev-cell.is-weekend .ev-g { color: var(--maroon); }
.ev-cell.is-out .ev-g { color: #8d8279; }
.ev-cell.is-today { border: 2px solid var(--maroon); }
.ev-cell.is-today .ev-g { background: var(--maroon); color: #fff; }
.ev-cell.is-picked, .ev-cell.has-practice.is-picked { box-shadow: 0 0 0 3px var(--saffron); border-color: var(--saffron); }
.ev-cell.has-practice { box-shadow: inset 0 -4px 0 var(--gold); }
.ev-cell.has-festival { background: #fff4d6; border-color: var(--gold); }
.ev-g { justify-self: start; min-width: 26px; padding: 0 4px; border-radius: 13px; font-weight: 700; font-size: 1.05rem; line-height: 26px; text-align: center; }
.ev-t { align-self: center; font-size: .78rem; color: var(--muted); }
.ev-t i { font-style: normal; font-weight: 700; color: #8a5a0a; }
.ev-marks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 14px; margin-top: 3px; }
.ev-moon { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #8a5a0a; }
.ev-moon--full { background: #f0cf7a; }
.ev-moon--new { background: #3a2f29; border-color: #3a2f29; }
.ev-star { display: inline-block; width: 11px; height: 11px; background: #b9801a; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.ev-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--c, var(--maroon)); }
.ev-lbl, .ev-chip { display: none; grid-column: 1 / -1; font-size: .72rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-lbl { color: #6b4a08; }
.ev-chip { margin-top: 2px; padding: 1px 5px; border-radius: 4px; background: var(--maroon); color: #fff; font-weight: 600; }

/* Day panel, legend, holy days */
.ev-side { display: grid; gap: 18px; position: sticky; top: 104px; }
.ev-panel, .ev-legend, .ev-holy { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.ev-panel { border-top: 4px solid var(--gold); }
.ev-panel h3, .ev-legend h3, .ev-holy h3 { margin: 0 0 6px; font-size: 1.35rem; }
.ev-detail-tib { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.ev-obs { margin: 0 0 10px; padding: 8px 12px; border-left: 4px solid var(--gold); background: #fff8e6; }
.ev-obs b { display: block; }
.ev-obs span { font-size: .92rem; color: #4a413b; }
.ev-obs.is-festival { border-left-color: #b9801a; background: #fff0c4; }
.ev-pick { display: block; margin: 0 0 8px; padding: 10px 12px; min-height: 44px; border-left: 4px solid var(--c, var(--maroon)); background: var(--cream); color: var(--ink); font-weight: 600; }
.ev-pick:hover { background: #f3e6d2; color: var(--ink); }
.ev-pick .ev-tag { font-size: .75rem; padding: 0 8px; margin-right: 4px; }
.ev-legend ul, .ev-holy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.ev-legend li { display: flex; gap: 10px; align-items: center; }
.ev-lg-g { min-width: 26px; text-align: center; }
.ev-lg-bar { flex: none; width: 26px; height: 16px; border: 1px solid var(--line); border-radius: 4px; box-shadow: inset 0 -4px 0 var(--gold); }
.ev-lg-t { min-width: 26px; text-align: center; font-weight: 400; font-size: .8rem; color: var(--muted); }
.ev-holy a { display: block; min-height: 44px; padding: 6px 12px; border-left: 4px solid var(--line); color: var(--ink); }
.ev-holy a:hover { border-left-color: var(--saffron); background: var(--cream); color: var(--ink); }
.ev-holy li.is-festival a { border-left-color: #b9801a; background: #fff8e6; }
.ev-holy b, .ev-holy span { display: block; }
.ev-holy span { font-size: .85rem; color: var(--muted); }

@media (min-width: 1100px) {
  .ev-cell { min-height: 98px; }
  .ev-lbl, .ev-chip { display: block; }
}
@media (max-width: 1000px) {
  .ev-cal-layout { grid-template-columns: 1fr; }
  .ev-side { position: static; }
}
@media (max-width: 760px) {
  .ev-today { grid-template-columns: 1fr; padding: 18px 20px; }
  .ev-card { grid-template-columns: 1fr; padding: 18px; }
  .ev-date { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: flex-start; width: max-content; max-width: 100%; padding: 8px 16px; margin-bottom: 12px; text-align: left; }
  .ev-date b { font-size: 1.9rem; }
  .ev-date-to { flex-basis: 100%; margin: 0; padding: 0; border: 0; }
  .ev-cal-main { padding: 12px; }
  .ev-weekdays, .ev-grid { gap: 2px; }
  .ev-cell { min-height: 52px; padding: 4px 3px; border-radius: 8px; justify-items: center; grid-template-columns: 1fr; }
  .ev-g { justify-self: center; font-size: .95rem; }
  .ev-t { font-size: .68rem; }
  .ev-marks { justify-content: center; gap: 2px; }
  .ev-actions .ev-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-card.is-flash { animation: none; }
  .ev-cal-main { transition: none; }
}

/* Home page: quick strip under the hero */
.btn--small { padding: 10px 22px; font-size: .8rem; }
.btn--ghost { background: transparent; color: var(--maroon); border: 2px solid var(--maroon); padding: 8px 20px; }
.btn--ghost:hover { background: var(--maroon); color: #fff; }
.home-strip { position: relative; z-index: 2; margin-top: -44px; }
.strip-card { display: grid; grid-template-columns: 1.1fr 1.2fr auto; align-items: center; background: #fff; border-radius: 14px; border-top: 4px solid var(--saffron); box-shadow: 0 20px 48px rgba(60,25,15,.2); }
.strip-item { display: grid; gap: 2px; padding: 20px 28px; font-size: .92rem; color: var(--muted); }
.strip-item + .strip-item { border-left: 1px solid var(--line); }
.strip-item b { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.25; color: var(--ink); }
.strip-item b a { color: inherit; }
.strip-item b a:hover { color: var(--maroon); }
.strip-label { font-size: .8rem; font-weight: 700; color: #8a5a0a; }
.strip-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* About: lead paragraph, readable text, steps */
.section--about { padding-top: 88px; }
.about-text p, .about-text li, .about-text h4 { text-align: left !important; }
.about-text > p:first-child { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.55; color: var(--ink); }
.about-text p { max-width: 68ch; }
.progress-panel { position: sticky; top: 108px; border-top: 4px solid var(--gold); }
.progress-panel h4 { margin: 1.4em 0 .6em; font-family: var(--font-body); font-size: .85rem; font-weight: 700; color: #8a5a0a; }
.steps { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps li { position: relative; margin: 0 0 14px; padding-left: 0; }
.steps li::before { content: counter(step); counter-increment: step; position: absolute; left: -30px; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); color: #8a5a0a; font-size: .75rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.steps--now li::before { content: "✓"; background: var(--maroon); border-color: var(--maroon); color: #fff; }
.steps--now::before { background: var(--maroon); }

/* Quote band */
.quote-band { padding: 84px 0; background: var(--maroon-dark); color: #f6ead6; text-align: center; position: relative; overflow: hidden; }
.quote-band::before { content: "“"; position: absolute; top: -40px; left: 50%; transform: translateX(-50%); font-family: var(--font-head); font-size: 20rem; line-height: 1; color: rgba(236,201,122,.12); pointer-events: none; }
.quote-band blockquote { position: relative; max-width: 860px; margin: 0 auto; }
.quote-band p { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.6; font-style: italic; color: #fff; margin: 0 0 22px; }
.quote-band cite { display: inline-block; padding-top: 14px; border-top: 2px solid var(--gold); font-style: normal; font-weight: 700; color: #ecc97a; }

/* Home events */
.section--events { background: #fff; }
.home-events { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.he-list { display: grid; gap: 14px; }
.he-item { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 16px 18px; background: var(--cream); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--maroon)); border-radius: 12px; color: var(--ink); }
.he-item:hover { box-shadow: var(--shadow); color: var(--ink); }
.he-date { display: grid; place-content: center; text-align: center; border-radius: 10px; background: var(--c, var(--maroon)); color: #fff; line-height: 1.1; padding: 8px 0; }
.he-date b { font-family: var(--font-head); font-size: 2rem; }
.he-date small { font-size: .85rem; font-weight: 700; }
.he-body { display: grid; gap: 2px; align-content: center; }
.he-body strong { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.25; }
.he-meta { font-size: .9rem; color: var(--muted); }
.he-body .ev-tag { justify-self: start; margin-bottom: 4px; }
.he-holy { padding: 22px 24px; background: var(--maroon-dark); color: #f6ead6; border-radius: 14px; border-bottom: 4px solid var(--gold); }
.he-holy h3 { color: #fff; margin-bottom: 12px; font-size: 1.4rem; }
.he-holy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.he-holy li { padding-left: 14px; border-left: 3px solid rgba(236,201,122,.4); }
.he-holy li.is-festival { border-left-color: #ecc97a; }
.he-holy b, .he-holy span { display: block; }
.he-holy li.is-festival b { color: #ecc97a; }
.he-holy span { font-size: .88rem; opacity: .9; }

/* Gallery mosaic: first photo larger */
.gallery-grid { grid-auto-flow: dense; }
.gallery-grid > :first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 320px; }

@media (max-width: 900px) {
  .strip-card { grid-template-columns: 1fr; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--line); }
  .home-events { grid-template-columns: 1fr; }
  .progress-panel { position: static; }
  .gallery-grid > :first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; min-height: 0; }
}
@media (max-width: 560px) {
  .home-strip { margin-top: -28px; }
  .strip-item { padding: 16px 20px; }
  .he-item { grid-template-columns: 60px 1fr; gap: 14px; }
  .quote-band { padding: 60px 0; }
  .about-text > p:first-child { font-size: 1.3rem; }
}
.hero-dots { bottom: 64px; }
.slide .container { padding-bottom: 96px; }
@media (max-width: 560px) { .hero-dots { bottom: 48px; } .slide .container { padding-bottom: 76px; } }

/* Dharma translation page: books and text list */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; max-width: 1080px; margin: 0 auto 3em; }
.book-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; align-items: center; padding: 22px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 14px; box-shadow: var(--shadow); }
.book-cover { margin: 0; }
.book-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #eef0f2; }
.book-body h3 { margin: 0 0 .4em; font-size: 1.6rem; color: var(--maroon); }
.book-body p { margin: 0 0 1em; }
.book-body > :last-child { margin-bottom: 0; }
.text-list { list-style: none; max-width: 820px; margin: 0 auto 3em; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.text-list li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 28px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.text-list strong { font-family: var(--font-head); font-size: 1.4rem; line-height: 1.25; color: var(--maroon); }
@media (max-width: 560px) {
  .book-card { grid-template-columns: 1fr; text-align: center; }
  .book-cover { width: min(240px, 100%); margin: 0 auto; }
  .text-list li { grid-template-columns: 1fr; }
}

/* Permission letter: one portrait document, centred, with its caption and note under it */
.letter-card, .media-row:has(img[alt^="Permission"]) { display: block; max-width: 540px; margin: 2.4em auto 1.6em; text-align: center; }
.letter-card { padding: 14px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; box-shadow: 0 20px 44px rgba(60,25,15,.2); }
.media-row:has(img[alt^="Permission"]) figure { margin: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; box-shadow: 0 20px 44px rgba(60,25,15,.2); }
.letter-card img, .media-row:has(img[alt^="Permission"]) img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: none; }
.letter-card figcaption, .media-row:has(img[alt^="Permission"]) figcaption { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.media-row:has(img[alt^="Permission"]) figcaption h3 { margin: 1.2em 0 0; font-size: 1.6rem; color: var(--maroon); }
.media-row:has(img[alt^="Permission"]) > div:has(> h3:only-child) { display: none; }
.letter-note { max-width: 640px; margin: 0 auto 2.4em; text-align: center; }
.letter-note h3 { margin: 0 0 .4em; font-size: 1.6rem; color: var(--maroon); }

/* Ngondro Vietnamese Translation Book Cover / Standalone Book Presentation */
.book-showcase,
.media-row:has(img[src*="bia-sach"]),
.media-row:has(img[alt*="Vietnamese Translation"]),
.media-row:has(img[alt*="Bản dịch"]),
.media-row:has(> figure:only-child):not(:has(img[alt^="Permission"])) {
  display: block;
  max-width: 780px;
  margin: 2.8em auto 2.4em;
  text-align: center;
}

.book-showcase figure,
.media-row:has(img[src*="bia-sach"]) figure,
.media-row:has(img[alt*="Vietnamese Translation"]) figure,
.media-row:has(img[alt*="Bản dịch"]) figure,
.media-row:has(> figure:only-child):not(:has(img[alt^="Permission"])) figure {
  margin: 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(60, 25, 15, 0.16), 0 4px 12px rgba(60, 25, 15, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-showcase figure:hover,
.media-row:has(img[src*="bia-sach"]) figure:hover,
.media-row:has(img[alt*="Vietnamese Translation"]) figure:hover,
.media-row:has(img[alt*="Bản dịch"]) figure:hover,
.media-row:has(> figure:only-child):not(:has(img[alt^="Permission"])) figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(60, 25, 15, 0.22), 0 6px 16px rgba(60, 25, 15, 0.08);
}

.book-showcase img,
.media-row:has(img[src*="bia-sach"]) img,
.media-row:has(img[alt*="Vietnamese Translation"]) img,
.media-row:has(img[alt*="Bản dịch"]) img,
.media-row:has(> figure:only-child):not(:has(img[alt^="Permission"])) img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  object-fit: contain;
}

.book-showcase figcaption,
.media-row:has(img[src*="bia-sach"]) figcaption,
.media-row:has(img[alt*="Vietnamese Translation"]) figcaption,
.media-row:has(img[alt*="Bản dịch"]) figcaption,
.media-row:has(> figure:only-child):not(:has(img[alt^="Permission"])) figcaption {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.02em;
}

.book-showcase figcaption::after,
.media-row:has(img[src*="bia-sach"]) figcaption::after,
.media-row:has(img[alt*="Vietnamese Translation"]) figcaption::after,
.media-row:has(img[alt*="Bản dịch"]) figcaption::after,
.media-row:has(> figure:only-child):not(:has(img[alt^="Permission"])) figcaption::after {
  content: "";
  display: block;
  width: 42px;
  height: 2.5px;
  background: var(--saffron);
  margin: 10px auto 0;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .book-showcase figure,
  .media-row:has(img[src*="bia-sach"]) figure,
  .media-row:has(img[alt*="Vietnamese Translation"]) figure,
  .media-row:has(img[alt*="Bản dịch"]) figure,
  .media-row:has(> figure:only-child):not(:has(img[alt^="Permission"])) figure {
    padding: 10px;
    border-radius: 10px;
  }
}

/* Accessibility pass: contrast, small text, touch targets, motion */
:root { --gold-text: #8a5a0a; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Buttons: dark text on the saffron fill (6.5:1; white was 2.6:1) */
.btn, .nav-list .nav-donate .btn, .site-footer a.btn, .to-top { color: #2b1a00; }
.btn:hover, .nav-list .nav-donate .btn:hover, .site-footer a.btn:hover, .to-top:hover { color: #fff; }
.btn--outline { color: #fff; }
.btn--outline:hover { color: var(--maroon); }
.btn--ghost { color: var(--maroon); }
.btn--ghost:hover { color: #fff; }
/* Small gold text on light backgrounds: darker gold (5.9:1); light gold stays on dark backgrounds */
.eyebrow, .post-date, .card .num { color: var(--gold-text); }
.slide .eyebrow, .page-hero .eyebrow, .section--dark .eyebrow, .quote-band .eyebrow, .post-cta .eyebrow { color: #ecc97a; }
.logo-text small { font-size: .75rem; }
.ev-t { font-size: .75rem; }
.ev-cell.is-out, .ev-cell.is-out .ev-g { color: #6e625a; }
/* Touch targets: 44px hit areas without changing the look */
.topbar a { display: inline-block; padding: 13px 4px; margin: -13px 0; }
.lang-switch a { padding-block: 3px; }
@media (pointer: coarse) { .lang-switch a { min-height: 44px; } }
.menu-toggle { min-width: 44px; min-height: 44px; }
.hero-dots { gap: 32px; }
.hero-dots button { position: relative; }
.hero-dots button::after { content: ""; position: absolute; inset: -16px; }
.hero-pause { position: absolute; right: 16px; bottom: 44px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); cursor: pointer; }
.hero-pause::before { content: ""; position: absolute; inset: 14px 15px; border-left: 5px solid #fff; border-right: 5px solid #fff; }
.hero-pause.is-paused::before { inset: 13px 14px 13px 17px; border: 0; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hero-pause:hover, .hero-pause:focus-visible { background: rgba(255,255,255,.4); }
.hero-arrow:focus-visible, .hero-pause:focus-visible, .hero-dots button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.breadcrumb a { display: inline-block; padding: 12px 2px; margin: -12px 0; }
.footer-grid li { margin-bottom: 0; }
.footer-grid li a { display: inline-block; padding: 11px 0; }
.socials a { width: 44px; height: 44px; }
.blog-recent li div a { padding: 4px 0; }
.post-nav a, .read-more { min-height: 44px; }
.read-more { display: inline-flex; align-items: center; }
@media (max-width: 560px) { .hero-pause { bottom: 28px; right: 12px; } }

/* Second pass: 44px buttons and links, past-event contrast */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; }
.post-body h3 a, .strip-item b a { display: inline-block; padding: 9px 0; }
.footer-grid li a { display: block; }
.footer-bottom a { display: inline-block; padding: 12px 4px; margin: -12px 0; }
.blog-recent li div a { padding: 8px 0; }
.ev-card.is-past .ev-date { background: #6e625a; }
.post-body h3 a, .post-card h3 a, .blog-recent li div a, .strip-item b a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.ev-lbl, .ev-chip { font-size: .75rem; }
.topbar .lang-switch a { display: inline-block; margin: 0; padding: 3px 11px; }
@media (pointer: coarse) { .topbar .lang-switch a { display: inline-flex; align-items: center; padding: 0 16px; } }
/* Footer logo: the small line under the name was grey on the dark photo */
.site-footer .logo-text small { color: #f3e6d2; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

/* Event images are shown whole, never cropped: portrait and square images sit beside the text, landscape ones go wider */
.ev-media { grid-column: 3; grid-row: 1; align-self: start; display: block; overflow: hidden; border-radius: 12px; background: var(--cream); box-shadow: 0 10px 26px rgba(60,25,15,.18); }
.ev-media img { display: block; width: 100%; height: auto; transition: transform .3s; }
.ev-media:hover img { transform: scale(1.02); }
.ev-card--port { grid-template-columns: 112px minmax(0, 1fr) 250px; }
.ev-card--sq { grid-template-columns: 112px minmax(0, 1fr) 300px; }
.ev-card--land { grid-template-columns: 112px minmax(0, 1fr) 420px; }
@media (max-width: 1000px) {
  .ev-card--port { grid-template-columns: 112px minmax(0, 1fr) 200px; }
  .ev-card--sq { grid-template-columns: 112px minmax(0, 1fr) 230px; }
  .ev-card--land { grid-template-columns: 112px minmax(0, 1fr); }
  .ev-card--land .ev-media { grid-column: 1 / -1; grid-row: auto; margin-top: 18px; }
}
@media (max-width: 760px) {
  .ev-card--port, .ev-card--sq, .ev-card--land { grid-template-columns: 1fr; }
  .ev-media, .ev-card--land .ev-media { grid-column: 1; grid-row: auto; margin-top: 14px; }
  .ev-card--port .ev-media { width: min(340px, 100%); margin-inline: auto; }
  .ev-card--sq .ev-media { width: min(420px, 100%); margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .ev-media img { transition: none; } .ev-media:hover img { transform: none; } }

@media (max-width: 1200px) {
  .has-sub > a { display: flex; align-items: center; justify-content: space-between; }
  .has-sub.open > a { color: var(--maroon); }
  .sub-menu { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .has-sub > a::after { transition: none; } }
