/* ==========================================================================
   TMBCC — Tibetan Mongolian Buddhist Cultural Center · Kumbum Chamtse Ling
   Design system. Colours are taken from the center itself: the brown of the
   original logo, gilt of the stupa spire, lapis of the dome niche, the red
   lacquer of the gate pillars, the jade trim of the prayer-wheel house, and
   the deep blue of an Indiana night over the prayer flags.
   ========================================================================== */

:root {
  --ink: #2B1A10;            /* logo brown */
  --ink-soft: #5E4836;
  --ink-mute: #8A7461;
  --paper: #FBF6EC;          /* stupa white, warmed */
  --paper-2: #F3E9D6;
  --paper-3: #E9DCC2;
  --khata: #FFFDF7;
  --gold: #C8902B;
  --gold-hi: #F2D28A;
  --gold-deep: #8F6115;
  --lapis: #1D3E8C;          /* dome niche */
  --lapis-deep: #14295C;
  --sky: #7FA6DC;            /* logo lotus */
  --red: #B32A1F;            /* gate pillars */
  --maroon: #6B1A1C;         /* robes */
  --jade: #2D7A5A;           /* roof trim, logo leaves */
  --night: #0F1730;          /* dark sections */
  --night-2: #18234A;
  --line: rgba(43, 26, 16, .13);
  --line-light: rgba(242, 210, 138, .2);

  --gilt: linear-gradient(100deg, #9C6A1E 0%, #F2D28A 40%, #C8902B 60%, #8F6115 100%);

  --f-display: "Cormorant Garamond", "Jomolhari", "Iowan Old Style", Georgia, serif;
  --f-brand: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --f-body: "Manrope", "Jomolhari", "Segoe UI", system-ui, sans-serif;   /* Tibetan characters fall through to the Tibetan face */
  --f-tib: "Jomolhari", "Noto Serif Tibetan", "Kailasa", serif;
  --f-tib-body: "Noto Serif Tibetan", "Jomolhari", "Kailasa", serif;

  --t-xs: .78rem;
  --t-sm: .9rem;
  --t-base: 1.04rem;
  --t-md: 1.22rem;
  --t-lg: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --t-xl: clamp(2rem, 1.4rem + 2.2vw, 3.2rem);
  --t-2xl: clamp(2.5rem, 1.5rem + 3.8vw, 4.8rem);
  --t-hero: clamp(2.9rem, 1.4rem + 5.8vw, 6.6rem);

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --r-s: 6px;
  --r-m: 14px;
  --r-l: 22px;
  --arch: 999px 999px 14px 14px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 78px;
  --shadow: 0 18px 50px -22px rgba(43, 26, 16, .45);
  --shadow-s: 0 8px 24px -14px rgba(43, 26, 16, .5);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-base)/1.7 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: italic; }
::selection { background: var(--gold-hi); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: var(--r-s); transition: top .2s; }
.skip:focus { top: 1rem; }
[hidden] { display: none !important; }
svg.i { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- language-specific type ---------- */
:lang(mn) body, html:lang(mn) { --f-display: "Cormorant Garamond", "Alice", Georgia, serif; }
html:lang(bo) { --t-base: 1.08rem; }
html:lang(bo) body { --f-body: "Manrope", "Noto Serif Tibetan", "Jomolhari", system-ui, sans-serif; font-family: var(--f-body); line-height: 1.95; }
html:lang(bo) h1, html:lang(bo) h2, html:lang(bo) h3, html:lang(bo) h4 { font-family: var(--f-tib); font-weight: 400; line-height: 1.45; letter-spacing: 0; }
[lang="bo"], .tib { font-family: var(--f-tib); font-weight: 400; letter-spacing: 0; }
html:lang(bo) .btn span, html:lang(bo) .nav a, html:lang(bo) .tag { position: relative; top: .12em; }    /* optical centring of Tibetan */
html.i18n-wait main, html.i18n-wait .header, html.i18n-wait .footer { opacity: 0; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--night); color: #EDE6D6; }
.section--dark h2, .section--dark h3 { color: #FFF8E8; }
.section--dark .section-head p { color: rgba(237, 230, 214, .78); }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("../assets/img/paper.webp") center/600px; opacity: .35; mix-blend-mode: multiply; }
.section--dark.grain::after { mix-blend-mode: soft-light; opacity: .25; }

.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3.6rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--t-2xl); }
.section-head p { font-size: var(--t-md); color: var(--ink-soft); }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font: 700 var(--t-xs)/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1.1rem; }
.section--dark .kicker { color: var(--gold-hi); }
.kicker svg { width: 22px; height: 22px; color: var(--gold); }
html:lang(bo) .kicker { letter-spacing: .02em; font-family: var(--f-tib); font-size: .95rem; text-transform: none; }
html:lang(mn) .kicker { letter-spacing: .14em; }
.lede { font-size: var(--t-md); color: var(--ink-soft); }
.gilt-text { background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn { --bg: var(--red); --fg: #FFF8EC; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid transparent; background: var(--bg); color: var(--fg); font: 700 .95rem/1 var(--f-body); letter-spacing: .02em; text-decoration: none; transition: transform .35s var(--ease-out), background .25s, box-shadow .3s; box-shadow: 0 10px 26px -14px rgba(179, 42, 31, .9); will-change: transform; }
.btn:hover { background: #9C2118; box-shadow: 0 14px 30px -14px rgba(179, 42, 31, 1); }
.btn svg { width: 18px; height: 18px; }
.btn--gold { --bg: var(--gold); --fg: var(--ink); box-shadow: 0 10px 26px -14px rgba(200, 144, 43, .9); }
.btn--gold:hover { background: #D9A23D; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.btn--ink { --bg: var(--ink); --fg: var(--paper); box-shadow: var(--shadow-s); }
.btn--ink:hover { background: #45301F; }
.btn--sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .85rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none; color: var(--red); }
.section--dark .link-arrow { color: var(--gold-hi); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Loader
   ========================================================================== */
.loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--paper); transition: opacity .7s var(--ease), visibility .7s; }
html:not(.js) .loader, html.is-ready .loader { opacity: 0; visibility: hidden; pointer-events: none; }
html.is-loaded .loader { display: none; }
.loader__mark { width: 112px; animation: lpulse 2.4s var(--ease) infinite; }
.loader__ring { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 1px solid rgba(200, 144, 43, .35); border-top-color: var(--gold); animation: lspin 1.6s linear infinite; }
.loader__text { position: absolute; margin-top: 230px; font: 600 .72rem/1 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-mute); }
@keyframes lpulse { 0%, 100% { transform: scale(.97); opacity: .85 } 50% { transform: scale(1.02); opacity: 1 } }
@keyframes lspin { to { transform: rotate(360deg) } }

/* ==========================================================================
   Header
   ========================================================================== */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: #FFF8EC; transition: transform .45s var(--ease-out), background .35s, color .35s, box-shadow .35s; }
.header::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(10, 14, 30, .55), transparent); pointer-events: none; transition: opacity .35s; }
.header.is-solid { background: rgba(251, 246, 236, .94); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(43, 26, 16, .4); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
.header.is-solid::before { opacity: 0; }
.header.is-hidden { transform: translateY(-100%); }
body.page-light .header:not(.is-solid) { color: var(--ink); }
body.page-light .header:not(.is-solid)::before { opacity: 0; }
.header__in { position: relative; height: 100%; display: flex; align-items: center; gap: 1.2rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; flex: none; }
.brand__mark { width: 50px; height: 53px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.header.is-solid .brand__mark, body.page-light .brand__mark { filter: none; }
.brand__text { display: grid; line-height: 1; }
.brand__top, .brand__bot { font: 700 .56rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.brand__name { font: 400 1.75rem/1 var(--f-brand); letter-spacing: .08em; margin: .12rem 0 .1rem; }
html:lang(bo) .brand__top, html:lang(bo) .brand__bot { font-family: var(--f-tib); text-transform: none; letter-spacing: 0; font-size: .74rem; line-height: 1.3; }
.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav > ul { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav a, .nav__btn { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .75rem; border-radius: 999px; border: 0; background: none; font: 600 .9rem/1 var(--f-body); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover, .nav__btn:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); }
.header.is-solid .nav a:hover, .header.is-solid .nav__btn:hover, .header.is-solid .nav a[aria-current="page"], body.page-light .nav a:hover, body.page-light .nav a[aria-current="page"] { background: rgba(43, 26, 16, .07); }
.nav__btn svg { width: 14px; height: 14px; transition: transform .25s; }
.nav li { position: relative; }
.dd { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 260px; padding: .5rem; list-style: none; margin: 0; background: var(--khata); color: var(--ink); border-radius: var(--r-m); box-shadow: var(--shadow), 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease-out), visibility .2s; }
.dd::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
li.is-open > .dd { opacity: 1; visibility: visible; transform: none; }
li.is-open > .nav__btn svg { transform: rotate(180deg); }
.dd a { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .65rem .8rem; border-radius: 10px; white-space: normal; }
.dd a:hover, .dd a[aria-current="page"] { background: var(--paper-2) !important; }
.dd small { font-weight: 500; font-size: .78rem; color: var(--ink-mute); }
.header__tools { display: flex; align-items: center; gap: .5rem; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.header.is-solid .lang, body.page-light .lang { background: rgba(43, 26, 16, .07); }
.lang__btn { border: 0; background: none; min-width: 36px; height: 30px; padding: 0 .5rem; border-radius: 999px; font: 700 .72rem/1 var(--f-body); letter-spacing: .06em; }
.lang__btn[data-lang="bo"] { font-family: var(--f-tib); font-size: .9rem; letter-spacing: 0; padding-top: 3px; }
.lang__btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.sound { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid currentColor; background: none; display: grid; place-items: center; opacity: .85; }
.sound:hover { opacity: 1; }
.sound__bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__bars i { width: 2px; height: 30%; background: currentColor; border-radius: 1px; }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 1.1s ease-in-out infinite; }
.sound__bars i:nth-child(2) { animation-delay: -.3s !important; } .sound__bars i:nth-child(3) { animation-delay: -.6s !important; } .sound__bars i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { 0%, 100% { height: 25% } 50% { height: 100% } }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.burger span:nth-child(1) { top: 15px } .burger span:nth-child(2) { top: 21px } .burger span:nth-child(3) { top: 27px }
.header__donate { margin-left: .3rem; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__bg { position: absolute; inset: 0; background: rgba(10, 14, 30, .5); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 92vw); background: var(--paper); color: var(--ink); padding: 1.1rem 1.4rem 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .45s var(--ease-out); display: flex; flex-direction: column; gap: 1rem; overscroll-behavior: contain; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__close { width: 44px; height: 44px; border: 0; background: var(--paper-2); border-radius: 50%; display: grid; place-items: center; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav > ul > li { border-bottom: 1px solid var(--line); }
.drawer nav a { display: block; padding: .85rem .2rem; text-decoration: none; font: 600 1.35rem/1.2 var(--f-display); }
html:lang(bo) .drawer nav a { font-family: var(--f-tib); font-size: 1.15rem; }
.drawer nav ul ul a { font: 500 1rem/1.3 var(--f-body); padding: .45rem .2rem .45rem 1rem; color: var(--ink-soft); }
.drawer nav ul ul { padding-bottom: .6rem; }
.drawer .lang { background: var(--paper-2); align-self: flex-start; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #FFF8EC; overflow: clip; isolation: isolate; background: var(--night); }
.hero__media { position: absolute; inset: -6% 0 -6%; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 16, 40, .35) 0%, rgba(10, 16, 40, 0) 30%, rgba(10, 16, 40, .05) 50%, rgba(12, 14, 26, .78) 100%), linear-gradient(90deg, rgba(12, 14, 26, .55) 0%, rgba(12, 14, 26, 0) 60%); }
.hero__inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; padding: calc(var(--header-h) + 4rem) 0 clamp(3rem, 8vh, 6rem); }
.hero__mantra { font: 400 clamp(1.2rem, 1rem + .8vw, 1.7rem)/1.4 var(--f-tib); color: var(--gold-hi); margin-bottom: .6rem; letter-spacing: .02em; text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.hero__title { font-size: var(--t-hero); font-weight: 500; line-height: .98; margin-bottom: 1.4rem; text-shadow: 0 4px 40px rgba(0, 0, 0, .35); max-width: 14ch; }
.hero__title em { font-weight: 500; color: var(--gold-hi); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
html:lang(bo) .hero__title { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.2rem); line-height: 1.35; }
html:lang(mn) .hero__title { font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5.6rem); max-width: 16ch; }
.hero__lede { max-width: 560px; font-size: clamp(1.05rem, .95rem + .4vw, 1.28rem); color: rgba(255, 248, 236, .9); text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__credit { position: absolute; right: 1rem; bottom: .7rem; font-size: .68rem; color: rgba(255, 255, 255, .55); }
.next-card { width: 340px; padding: 1.4rem 1.5rem; border-radius: var(--r-l); background: rgba(16, 22, 48, .55); border: 1px solid rgba(242, 210, 138, .25); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.next-card__top { display: flex; align-items: center; gap: .55rem; font: 700 .7rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: .9rem; }
html:lang(bo) .next-card__top { font-family: var(--f-tib); font-size: .9rem; letter-spacing: 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #F1C36A; box-shadow: 0 0 0 0 rgba(241, 195, 106, .7); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(241, 195, 106, 0) } 100% { box-shadow: 0 0 0 0 rgba(241, 195, 106, 0) } }
.next-card h3 { font-size: 1.55rem; margin-bottom: .45rem; color: #FFF8EC; }
.next-card p { font-size: .93rem; color: rgba(255, 248, 236, .8); margin-bottom: 1rem; }
.next-card__when { display: grid; gap: .25rem; padding: .8rem 0; margin-bottom: .9rem; border-block: 1px solid rgba(242, 210, 138, .2); font-size: .9rem; }
.next-card__when b { color: var(--gold-hi); font-weight: 700; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.2rem; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(255, 248, 236, .6); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-hi); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 80% { transform: translateY(12px); opacity: 0 } 100% { opacity: 0 } }

/* page hero (inner pages) */
.phero { position: relative; min-height: min(78svh, 760px); display: grid; align-items: end; color: #FFF8EC; overflow: clip; isolation: isolate; background: var(--night); }
.phero__media { position: absolute; inset: -8% 0; z-index: -2; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 16, 40, .45) 0%, rgba(10, 16, 40, .05) 40%, rgba(12, 14, 26, .82) 100%); }
.phero__in { padding: calc(var(--header-h) + 5rem) 0 clamp(2.5rem, 6vh, 4.5rem); }
.phero h1 { font-size: var(--t-2xl); font-weight: 500; max-width: 18ch; margin-bottom: .8rem; }
html:lang(bo) .phero h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); }
.phero p { max-width: 620px; font-size: var(--t-md); color: rgba(255, 248, 236, .88); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.2rem; padding: 0; font: 600 .78rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 248, 236, .75); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-hi); }
html:lang(bo) .crumbs { text-transform: none; font-family: var(--f-tib); letter-spacing: 0; font-size: .9rem; }

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker { display: flex; align-items: center; background: var(--ink); color: #F3E9D6; overflow: hidden; font-size: .9rem; }
.ticker__label { flex: none; display: flex; align-items: center; gap: .5rem; padding: .85rem 1.2rem; background: var(--red); font: 700 .72rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #FFF; z-index: 1; }
.ticker__label svg { width: 18px; height: 18px; }
.ticker__view { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; animation: tick var(--dur, 60s) linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track a { display: inline-flex; align-items: center; gap: .7rem; padding: .85rem 2rem; text-decoration: none; white-space: nowrap; }
.ticker__track a::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.ticker__track a:hover { color: var(--gold-hi); }
.ticker__track time { color: var(--gold-hi); font-weight: 700; }
@keyframes tick { to { transform: translateX(-50%) } }

/* ==========================================================================
   Welcome / intro split
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--rev > :first-child { order: 2; }
.split__text h2 { font-size: var(--t-2xl); }
.split__text .lede { margin-bottom: 1.4rem; }
.stack { position: relative; aspect-ratio: 5 / 5.4; }
.stack figure { position: absolute; margin: 0; overflow: hidden; box-shadow: var(--shadow); }
.stack figure img { width: 100%; height: 100%; object-fit: cover; }
.stack__a { inset: 0 18% 18% 0; border-radius: var(--arch); }
.stack__b { inset: 46% 0 0 42%; border-radius: var(--r-l); border: 6px solid var(--paper); }
.stack__seal { position: absolute; left: -2%; bottom: 4%; width: 120px; height: 120px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-s); display: grid; place-items: center; text-align: center; }
.stack__seal b { display: block; font: 600 2.2rem/1 var(--f-display); color: var(--red); }
.stack__seal span { font: 700 .62rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
html:lang(bo) .stack__seal span { font-family: var(--f-tib); letter-spacing: 0; font-size: .8rem; text-transform: none; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; padding: 1.4rem 0; border-block: 1px solid var(--line); }
.facts b { display: block; font: 600 clamp(2rem, 1.6rem + 1.4vw, 2.8rem)/1 var(--f-display); color: var(--red); }
.facts span { font-size: .84rem; color: var(--ink-soft); }

/* ==========================================================================
   Lineage (three teachers)
   ========================================================================== */
.lineage { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.tcard { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--khata); border-radius: var(--r-l); overflow: hidden; box-shadow: 0 1px 0 var(--line), var(--shadow-s); transition: transform .5s var(--ease-out), box-shadow .5s; }
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tcard__img { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--paper-3); border-radius: var(--arch); margin: 1rem 1rem 0; }
.tcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tcard:hover .tcard__img img { transform: scale(1.05); }
.tcard__body { padding: 1.3rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.tcard__role { font: 700 .7rem/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .5rem; }
html:lang(bo) .tcard__role { font-family: var(--f-tib); letter-spacing: 0; font-size: .88rem; text-transform: none; }
.tcard h3 { font-size: 1.75rem; margin-bottom: .2rem; }
.tcard__tib { font: 400 1.05rem/1.4 var(--f-tib); color: var(--ink-mute); margin-bottom: .7rem; }
.tcard p { font-size: .95rem; color: var(--ink-soft); }
.tcard .link-arrow { margin-top: auto; }
.tcard__years { position: absolute; top: 1.6rem; right: 1.6rem; z-index: 1; padding: .35rem .7rem; border-radius: 999px; background: rgba(251, 246, 236, .92); font: 700 .74rem/1 var(--f-body); color: var(--ink); }

/* ==========================================================================
   Kora (stupa circumambulation, image-sequence player)
   ========================================================================== */
.kora { overflow: clip; }
.kora__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.kora__stage { position: relative; aspect-ratio: 1 / 1.08; display: grid; place-items: center; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.kora__stage:active { cursor: grabbing; }
.kora__halo { position: absolute; inset: 6% 6% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 210, 138, .45), rgba(242, 210, 138, .12) 55%, transparent 72%); }
.kora__path { position: absolute; left: 6%; right: 6%; bottom: 6%; height: 22%; border-radius: 50%; border: 1px dashed rgba(242, 210, 138, .45); }
.kora__canvas, .kora__still { position: relative; width: 100%; height: 100%; object-fit: contain; }
.kora__still { position: absolute; inset: 0; }
.kora__stage.is-live .kora__still { opacity: 0; }
.kora__walker { position: absolute; left: 50%; bottom: 6%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 14px 4px rgba(242, 210, 138, .6); offset-path: none; }
.kora__count { display: flex; gap: 2rem; margin: 1.6rem 0; }
.kora__count div { display: grid; }
.kora__count b { font: 600 2.6rem/1 var(--f-display); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.kora__count span { font-size: .8rem; color: rgba(237, 230, 214, .7); letter-spacing: .06em; }
.kora__hint { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: rgba(237, 230, 214, .7); }
.kora__hint svg { width: 20px; height: 20px; color: var(--gold-hi); }
.mantra-ring { font: 400 1.05rem/1 var(--f-tib); color: rgba(242, 210, 138, .8); }

/* ==========================================================================
   Grounds (sacred places)
   ========================================================================== */
.places { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.place { position: relative; grid-column: span 4; min-height: 380px; border-radius: var(--r-l); overflow: hidden; color: #FFF8EC; text-decoration: none; isolation: isolate; display: flex; align-items: flex-end; background: var(--night-2); }
.place--wide { grid-column: span 8; }
.place--tall { grid-row: span 2; }
.place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out); }
.place::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10, 14, 30, .85)); }
.place:hover img { transform: scale(1.06); }
.place__body { padding: 1.4rem 1.5rem; }
.place__no { font: 600 .72rem/1 var(--f-body); letter-spacing: .2em; color: var(--gold-hi); }
.place h3 { font-size: 1.7rem; margin: .4rem 0 .3rem; color: #FFF8EC; }
.place p { font-size: .92rem; color: rgba(255, 248, 236, .82); margin: 0; max-width: 46ch; }
.place__tib { font: 400 1rem/1.3 var(--f-tib); color: rgba(242, 210, 138, .85); }

/* ==========================================================================
   Schedule & events
   ========================================================================== */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; }
.day { background: var(--khata); border-radius: var(--r-m); padding: 1rem .9rem 1.1rem; box-shadow: 0 1px 0 var(--line); min-height: 170px; display: flex; flex-direction: column; gap: .55rem; }
.day.is-today { outline: 2px solid var(--gold); box-shadow: var(--shadow-s); }
.day h3 { font: 700 .76rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 .2rem; }
html:lang(bo) .day h3 { font-family: var(--f-tib); letter-spacing: 0; text-transform: none; font-size: .95rem; }
.day__item { font-size: .86rem; line-height: 1.4; }
.day__item time { display: block; font-weight: 800; color: var(--red); font-size: .8rem; }
.day__none { color: var(--ink-mute); font-size: .84rem; }
.note { font-size: .85rem; color: var(--ink-mute); margin-top: 1rem; }

.events { display: grid; gap: 1rem; }
.event { display: grid; grid-template-columns: 96px 1fr auto; gap: 1.4rem; align-items: center; padding: 1.2rem 1.4rem; border-radius: var(--r-m); background: var(--khata); box-shadow: 0 1px 0 var(--line); text-decoration: none; transition: transform .4s var(--ease-out), box-shadow .4s; }
.event:hover { transform: translateX(6px); box-shadow: var(--shadow-s); }
.event__date { text-align: center; border-right: 1px solid var(--line); padding-right: 1.2rem; }
.event__date b { display: block; font: 600 2.4rem/1 var(--f-display); color: var(--red); }
.event__date span { font: 700 .72rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.event h3 { font-size: 1.35rem; margin: 0 0 .25rem; }
.event p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.tag { display: inline-flex; align-items: center; padding: .35rem .75rem; border-radius: 999px; font: 700 .7rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; background: var(--paper-2); color: var(--ink-soft); white-space: nowrap; }
.tag--red { background: rgba(179, 42, 31, .1); color: var(--red); }
.tag--lapis { background: rgba(29, 62, 140, .1); color: var(--lapis); }
.tag--jade { background: rgba(45, 122, 90, .12); color: var(--jade); }
html:lang(bo) .tag { font-family: var(--f-tib); letter-spacing: 0; text-transform: none; font-size: .85rem; }

/* festival calendar */
.festivals { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.fest { position: relative; padding: 1.5rem 1.5rem 1.4rem; border-radius: var(--r-l); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-light); overflow: hidden; }
.fest::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 210, 138, .22), transparent); }
.fest__when { font: 700 .72rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }
.fest h3 { font-size: 1.45rem; margin: .6rem 0 .1rem; }
.fest__tib { font: 400 1rem/1.4 var(--f-tib); color: rgba(242, 210, 138, .75); margin-bottom: .6rem; }
.fest p { font-size: .92rem; color: rgba(237, 230, 214, .78); margin: 0; }

/* ==========================================================================
   Prayer wheel (image-sequence player — reused pipeline)
   ========================================================================== */
.wheel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.wheel__stage { position: relative; aspect-ratio: 840 / 1092; max-width: 420px; margin-inline: auto; width: 100%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.wheel__stage::before { content: ""; position: absolute; inset: 8% -10% 0; background: radial-gradient(closest-side, rgba(242, 210, 138, .35), transparent 70%); }
.wheel__canvas { position: relative; width: 100%; height: 100%; }
.wheel__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.wheel__stage.is-sprite .wheel__fallback { display: none; }
.wheel__count { font: 600 3rem/1 var(--f-display); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.wheel__btn { margin-top: 1.2rem; }

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(var(--gold) var(--tl, 0%), var(--line) var(--tl, 0%)); }
.tl { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 1.4rem 0; }
.tl::before { content: ""; position: absolute; left: 50%; top: 2.1rem; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg); background: var(--paper); border: 2px solid var(--gold); }
.tl__year { text-align: right; font: 600 clamp(2rem, 1.6rem + 1.6vw, 3rem)/1 var(--f-display); color: var(--red); padding-top: .9rem; }
.tl:nth-child(even) .tl__year { order: 2; text-align: left; }
.tl:nth-child(even) .tl__body { text-align: right; }
.tl__body { padding: 1rem 1.3rem; border-radius: var(--r-m); background: var(--khata); box-shadow: 0 1px 0 var(--line); }
.tl__body h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.tl__body p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.tl__body img { border-radius: 10px; margin-top: .8rem; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ==========================================================================
   Quotes
   ========================================================================== */
.quotes { position: relative; text-align: center; max-width: 900px; margin-inline: auto; min-height: 300px; }
.quote { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; }
.quote.is-on { opacity: 1; visibility: visible; position: relative; }
.quote blockquote { margin: 0 0 1.2rem; font: 500 italic clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem)/1.35 var(--f-display); }
html:lang(bo) .quote blockquote { font-family: var(--f-tib); font-style: normal; line-height: 1.7; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); }
.quote figcaption { font: 700 .78rem/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }
.quote__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.6rem; }
.quote__dots button { width: 34px; height: 34px; border: 0; background: none; display: grid; place-items: center; }
.quote__dots button::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); border: 1.5px solid var(--gold-hi); transition: background .3s; }
.quote__dots button[aria-current="true"]::before { background: var(--gold-hi); }
.quote-mark { width: 52px; height: 52px; margin: 0 auto 1rem; color: var(--gold); }

/* ==========================================================================
   Gallery / lightbox
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filters button { border: 1px solid var(--line); background: var(--khata); padding: .55rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .85rem; transition: background .2s, color .2s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
html:lang(bo) .filters button { font-family: var(--f-tib); font-weight: 400; font-size: .95rem; }
.masonry { columns: 3 280px; column-gap: 1rem; }
.masonry figure { break-inside: avoid; margin: 0 0 1rem; position: relative; border-radius: var(--r-m); overflow: hidden; cursor: zoom-in; background: var(--paper-3); }
.masonry img { width: 100%; transition: transform 1s var(--ease-out); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; inset: auto 0 0; padding: 2rem 1rem .8rem; color: #FFF8EC; font-size: .85rem; background: linear-gradient(transparent, rgba(10, 14, 30, .75)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease-out); }
.masonry figure:hover figcaption, .masonry figure:focus-visible figcaption { opacity: 1; transform: none; }
.strip { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.strip figure { flex: 0 0 clamp(240px, 30vw, 380px); margin: 0; scroll-snap-align: start; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.strip figure:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(8, 10, 20, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82vh; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: #EDE6D6; text-align: center; margin-top: 1rem; font-size: .92rem; max-width: 70ch; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: 1rem; right: 1rem; } .lb-prev { left: 1rem; top: 50%; translate: 0 -50%; } .lb-next { right: 1rem; top: 50%; translate: 0 -50%; }

/* ==========================================================================
   Support / donate
   ========================================================================== */
.give { position: relative; overflow: clip; isolation: isolate; color: #FFF8EC; }
.give__bg { position: absolute; inset: -10% 0; z-index: -2; }
.give__bg img { width: 100%; height: 100%; object-fit: cover; }
.give::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 23, 48, .94) 0%, rgba(15, 23, 48, .82) 45%, rgba(15, 23, 48, .35) 100%); }
.give__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.give h2 { font-size: var(--t-2xl); color: #FFF8EC; }
.give p { color: rgba(255, 248, 236, .85); }
.goal { padding: 1.6rem; border-radius: var(--r-l); background: rgba(251, 246, 236, .08); border: 1px solid var(--line-light); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.goal__k { font: 700 .72rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }
.goal__n { font: 600 3.4rem/1 var(--f-display); margin: .6rem 0 .2rem; }
.goal__bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; margin: 1rem 0 .5rem; }
.goal__bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--gilt); border-radius: inherit; }
.amounts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.amounts button { min-width: 74px; padding: .7rem 1rem; border-radius: 999px; border: 1px solid var(--line-light); background: transparent; color: inherit; font-weight: 800; }
.amounts button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.way { padding: 1.6rem; border-radius: var(--r-l); background: var(--khata); box-shadow: 0 1px 0 var(--line); }
.way svg { width: 36px; height: 36px; color: var(--red); margin-bottom: .8rem; }
.way h3 { font-size: 1.4rem; }
.way p { color: var(--ink-soft); font-size: .95rem; }

/* ==========================================================================
   Visit
   ========================================================================== */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.info { display: grid; gap: 1.2rem; align-content: start; }
.info__row { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.info__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--red); }
.info__ic svg { width: 20px; height: 20px; }
.info h3 { font: 700 .74rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin: .2rem 0 .35rem; }
html:lang(bo) .info h3 { font-family: var(--f-tib); letter-spacing: 0; text-transform: none; font-size: .95rem; }
.info p { margin: 0; }
.info a { text-decoration-color: rgba(179, 42, 31, .35); text-underline-offset: 3px; }
.map { position: relative; min-height: 420px; border-radius: var(--r-l); overflow: hidden; background: var(--paper-3) center/cover; box-shadow: var(--shadow-s); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.15) saturate(.9); }
.map__load { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .8rem; background: linear-gradient(rgba(15, 23, 48, .45), rgba(15, 23, 48, .65)); color: #FFF8EC; border: 0; width: 100%; }
.etiquette { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; counter-reset: et; }
.etiquette li { list-style: none; padding: 1.3rem 1.3rem 1.2rem; border-radius: var(--r-m); background: var(--khata); box-shadow: 0 1px 0 var(--line); counter-increment: et; position: relative; }
.etiquette li::before { content: counter(et, decimal-leading-zero); font: 600 1.6rem/1 var(--f-display); color: var(--gold); display: block; margin-bottom: .5rem; }
.etiquette h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.etiquette p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--khata); border-radius: var(--r-m); box-shadow: 0 1px 0 var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; display: flex; justify-content: space-between; gap: 1rem; font: 600 1.2rem/1.3 var(--f-display); }
html:lang(bo) .faq summary { font-family: var(--f-tib); font-weight: 400; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--f-body); color: var(--gold); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* forms */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font: 700 .76rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
html:lang(bo) .field label { font-family: var(--f-tib); letter-spacing: 0; text-transform: none; font-size: .9rem; }
.field input, .field textarea, .field select { font: inherit; padding: .85rem 1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--khata); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 144, 43, .2); }
.field textarea { min-height: 140px; resize: vertical; }
.newsletter { display: flex; gap: .5rem; max-width: 520px; }
.newsletter input { flex: 1; min-width: 0; font: inherit; padding: .85rem 1.2rem; border-radius: 999px; border: 1px solid var(--line-light); background: rgba(255, 255, 255, .06); color: inherit; }
.newsletter input::placeholder { color: rgba(237, 230, 214, .55); }

/* ==========================================================================
   Article / prose / bio pages
   ========================================================================== */
.prose { font-size: 1.08rem; }
.prose h2 { font-size: var(--t-xl); margin-top: 2.2em; }
.prose h3, .prose h2.prose__h { font-size: var(--t-lg); margin-top: 1.8em; }
.prose p, .prose li { color: #3E2B1E; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 2rem 0; padding: 1.2rem 1.6rem; border-left: 3px solid var(--gold); background: var(--paper-2); border-radius: 0 var(--r-m) var(--r-m) 0; font: 500 italic 1.35rem/1.5 var(--f-display); }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--r-m); }
.prose figcaption { font-size: .85rem; color: var(--ink-mute); margin-top: .5rem; }
.dropcap::first-letter { float: left; font: 600 4.4rem/.8 var(--f-display); color: var(--red); padding: .35rem .6rem 0 0; }
html:lang(bo) .dropcap::first-letter { float: none; font: inherit; color: inherit; padding: 0; }
.aside-card { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.5rem; border-radius: var(--r-l); background: var(--khata); box-shadow: 0 1px 0 var(--line), var(--shadow-s); }
.aside-card dl { display: grid; gap: .9rem; margin: 0; }
.aside-card dt { font: 700 .7rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.aside-card dd { margin: .15rem 0 0; font-size: .95rem; }
html:lang(bo) .aside-card dt { font-family: var(--f-tib); letter-spacing: 0; font-size: .88rem; text-transform: none; }
.bio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.names { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 0 0 1rem; }
.names span { font: 400 1.35rem/1.3 var(--f-display); color: var(--gold-hi); }
.names .tib { font-family: var(--f-tib); font-size: 1.3rem; }
.portrait { position: relative; border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); border: 8px solid var(--khata); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.credit { font-size: .74rem; color: var(--ink-mute); margin-top: .5rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pillar { padding: 1.6rem; border-radius: var(--r-l); background: var(--khata); box-shadow: 0 1px 0 var(--line); position: relative; overflow: hidden; }
.pillar__n { font: 600 3.2rem/1 var(--f-display); color: var(--paper-3); position: absolute; right: 1rem; top: .6rem; }
.pillar h3 { font-size: 1.45rem; }
.pillar p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.section--dark .pillar { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-light); box-shadow: none; }
.section--dark .pillar p { color: rgba(237, 230, 214, .78); }
.section--dark .pillar__n { color: rgba(242, 210, 138, .12); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video__play { position: absolute; right: 1.2rem; bottom: 1.2rem; width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .3s var(--ease-out); }
.video__play:hover { transform: scale(1.08); }
.video__play svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; stroke: none; }

/* news cards */
.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ncard { display: flex; flex-direction: column; text-decoration: none; background: var(--khata); border-radius: var(--r-l); overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .5s var(--ease-out), box-shadow .5s; }
.ncard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ncard__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ncard:hover .ncard__img img { transform: scale(1.05); }
.ncard__body { padding: 1.2rem 1.3rem 1.4rem; }
.ncard__meta { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; font-size: .8rem; color: var(--ink-mute); }
.ncard h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.ncard p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   Ornaments: endless knot divider, prayer flags, cloud band
   ========================================================================== */
.divider { display: flex; align-items: center; justify-content: center; gap: 1.2rem; color: var(--gold); padding-block: 1rem; }
.divider::before, .divider::after { content: ""; height: 1px; width: min(28vw, 260px); background: linear-gradient(90deg, transparent, currentColor); opacity: .6; }
.divider::after { transform: scaleX(-1); }
.divider svg { width: 40px; height: 40px; }
.flags { position: relative; height: clamp(90px, 13vw, 190px); pointer-events: none; overflow: hidden; }
.flags__line { position: absolute; inset: 0; width: 100%; height: 100%; }
.flag-pin { position: absolute; transform: rotate(var(--rot)); transform-origin: 50% 8%; }
.flag { width: 100%; transform-origin: 50% 6%; }
.flags.is-live .flag { animation: sway var(--fd) ease-in-out var(--fdl) infinite alternate; }
@keyframes sway { from { transform: rotate(calc(var(--fa) * -1)) skewX(-1.5deg) } to { transform: rotate(var(--fa)) skewX(1.5deg) } }
.clouds { position: absolute; left: 0; right: 0; height: 80px; color: var(--paper); pointer-events: none; }
.clouds--top { top: -1px; transform: scaleY(-1); }
.clouds--bot { bottom: -1px; }
.clouds svg { width: 100%; height: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; background: var(--night); color: rgba(237, 230, 214, .8); padding: 0 0 2rem; font-size: .93rem; overflow: hidden; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-hi); }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-top: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
.footer .brand { color: #FFF8EC; margin-bottom: 1.2rem; }
.footer h3 { font: 700 .74rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 1.1rem; }
html:lang(bo) .footer h3 { font-family: var(--f-tib); letter-spacing: 0; text-transform: none; font-size: .95rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); transition: background .2s, color .2s; }
.social a:hover { background: var(--gold); color: var(--ink); }
.social svg { width: 18px; height: 18px; }
.footer__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .82rem; color: rgba(237, 230, 214, .55); }
.footer__dedication { text-align: center; padding: 2.2rem 0 0; }
.footer__dedication p { font: 400 1.15rem/1.6 var(--f-tib); color: rgba(242, 210, 138, .75); margin: 0; }
.footer__dedication small { display: block; font-size: .8rem; color: rgba(237, 230, 214, .55); max-width: 60ch; margin: .4rem auto 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 260; translate: -50% 0; padding: .9rem 1.3rem; border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); font-size: .92rem; opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .4s var(--ease-out); pointer-events: none; max-width: calc(100vw - 2rem); }
.toast.is-on { opacity: 1; transform: none; }

/* ==========================================================================
   Motion
   ========================================================================== */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal="scale"] { transform: scale(.94); }
html.js [data-reveal="clip"] { clip-path: inset(12% 12% 12% 12% round 24px); transform: none; transition: clip-path 1.4s var(--ease-out) var(--d, 0s), opacity .8s var(--ease) var(--d, 0s); }
html.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round 0); }
html.js.intro [data-hero] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}

/* ==========================================================================
   Standalone mode (minyak-rinpoche page served on its own domain)
   ========================================================================== */
.solo-only { display: none; }
html.solo .solo-only { display: revert; }
html.solo .tmbcc-only { display: none !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav > ul, .header__donate { display: none; }
  .burger { display: block; }
  .nav { margin-left: auto; }
}
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .next-card { width: min(100%, 440px); }
  .week { grid-template-columns: repeat(4, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .ngrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .split, .kora__grid, .wheel, .give__grid, .visit { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .lineage { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .place, .place--wide { grid-column: span 12; min-height: 320px; }
  .place--tall { grid-row: auto; }
  .pillars { grid-template-columns: 1fr; }
  .timeline::before { left: 18px; }
  .tl { grid-template-columns: 1fr; gap: .4rem; padding-left: 48px; }
  .tl::before { left: 18px; }
  .tl__year, .tl:nth-child(even) .tl__year { order: 0; text-align: left; padding-top: 0; }
  .tl:nth-child(even) .tl__body { text-align: left; }
  .event { grid-template-columns: 72px 1fr; }
  .event .tag { grid-column: 2; justify-self: start; }
  .brand__mark { width: 42px; height: 44px; }
  .brand__name { font-size: 1.45rem; }
  .brand__top, .brand__bot { font-size: .5rem; }
  .stack { max-width: 520px; }
}
@media (max-width: 640px) {
  .hero { min-height: 92svh; }
  .hero__inner { padding-top: calc(var(--header-h) + 6rem); }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }
  .week { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .form__row { grid-template-columns: 1fr; }
  .ngrid { grid-template-columns: 1fr; }
  .masonry { columns: 2 150px; column-gap: .6rem; }
  .masonry figure { margin-bottom: .6rem; }
  .sound { width: 36px; height: 36px; }
  .lang__btn { min-width: 30px; padding: 0 .35rem; }
  .header__tools { gap: .3rem; }
  .brand__top, .brand__bot { display: none; }
  .newsletter { flex-direction: column; }
  .stack__seal { width: 96px; height: 96px; }
  .stack__seal b { font-size: 1.7rem; }
}
@media (max-width: 380px) {
  .brand__name { font-size: 1.25rem; }
  .brand__mark { width: 36px; height: 38px; }
}

/* ==========================================================================
   Article pages (light header)
   ========================================================================== */
.ahead { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: 2rem; }
.ahead h1 { font-size: var(--t-2xl); margin: .8rem 0 1rem; }
.crumbs--ink { color: var(--ink-mute); }
.crumbs--ink a:hover { color: var(--red); }
.afig { margin: 0 auto 2.5rem; }
.afig > div { border-radius: var(--r-l); overflow: hidden; background: var(--paper-3); display: grid; place-items: center; max-height: 78vh; cursor: zoom-in; }
.afig img { width: 100%; max-height: 78vh; object-fit: contain; }
.afig .credit { text-align: right; }
.article .prose { padding-bottom: var(--section); }
.asrc { margin-top: 2rem; }
.ashare { margin-top: 1rem; }
.ashare .link-arrow svg { margin-right: .2rem; }
.page-light .header:not(.is-solid) { background: transparent; }

/* ==========================================================================
   Minyak Rinpoche page
   ========================================================================== */
.brand__name--solo { font: 500 1.55rem/1 var(--f-display); letter-spacing: .01em; }
html:lang(bo) .brand__name--solo { font-family: var(--f-tib); font-size: 1.2rem; }
.brand--solo .brand__bot { font-family: var(--f-tib); text-transform: none; letter-spacing: 0; font-size: .8rem; }
html.solo .brand--solo { display: flex; }
.mhero { position: relative; min-height: 100svh; display: grid; align-items: center; color: #FFF8EC; overflow: clip; isolation: isolate; background: radial-gradient(120% 90% at 75% 40%, #1E2D63 0%, var(--night) 60%); }
.mhero__bg { position: absolute; inset: -6% 0; z-index: -2; opacity: .28; }
.mhero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(1.1); }
.mhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 23, 48, .96) 0%, rgba(15, 23, 48, .75) 50%, rgba(15, 23, 48, .35) 100%), linear-gradient(0deg, var(--night) 0%, transparent 30%); }
.mhero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: calc(var(--header-h) + 3rem) 0 4rem; }
.mhero h1 { font-size: clamp(3rem, 1.8rem + 5vw, 6.4rem); font-weight: 500; line-height: .95; margin-bottom: 1rem; }
.mhero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.mhero h1 .line > span { display: inline-block; }
html:lang(bo) .mhero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem); line-height: 1.35; }
.mhero__honor { font: 700 .74rem/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 1.2rem; }
html:lang(bo) .mhero__honor { font-family: var(--f-tib); letter-spacing: 0; font-size: 1rem; text-transform: none; }
.mhero__sub { font-size: var(--t-md); color: rgba(255, 248, 236, .85); max-width: 560px; }
.mhero__names { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: 0 0 1.6rem; padding: 0 0 1.2rem; border-bottom: 1px solid var(--line-light); }
.mhero__names span { font: 400 1.4rem/1.3 var(--f-display); color: var(--gold-hi); }
.mhero__names .tib { font-family: var(--f-tib); font-size: 1.45rem; }
.mhero__portrait { position: relative; justify-self: center; width: min(100%, 420px); }
.mhero__arch { position: relative; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; border: 1px solid rgba(242, 210, 138, .5); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); background: #2a1c14; }
.mhero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.mhero__ring { position: absolute; inset: -9% -9% -5%; border-radius: var(--arch); border: 1px solid rgba(242, 210, 138, .22); pointer-events: none; }
.mhero__ring + .mhero__ring { inset: -17% -17% -10%; border-color: rgba(242, 210, 138, .1); }
.mhero__seal { position: absolute; left: -10%; bottom: 8%; padding: .9rem 1.1rem; border-radius: var(--r-m); background: rgba(251, 246, 236, .95); color: var(--ink); box-shadow: var(--shadow); }
.mhero__seal b { display: block; font: 600 1.6rem/1 var(--f-display); color: var(--red); }
.mhero__seal span { font: 700 .66rem/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
html:lang(bo) .mhero__seal span { font-family: var(--f-tib); letter-spacing: 0; text-transform: none; font-size: .85rem; }
.mhero__glyph { position: absolute; right: -8%; top: 4%; width: 90px; color: var(--gold); opacity: .55; }
.retreats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.retreat { position: relative; display: flex; flex-direction: column; border-radius: var(--r-l); background: var(--khata); box-shadow: 0 1px 0 var(--line); overflow: hidden; }
.retreat__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.retreat__img img { width: 100%; height: 100%; object-fit: cover; }
.retreat__body { padding: 1.3rem 1.4rem 1.5rem; }
.retreat__when { font: 800 .78rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.retreat h3 { font-size: 1.4rem; margin: .5rem 0 .4rem; }
.retreat p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.retreat--next { outline: 2px solid var(--gold); }
.solo-note { padding: 1.4rem 1.6rem; border-radius: var(--r-l); border: 1px dashed var(--gold); background: rgba(200, 144, 43, .07); }
@media (max-width: 960px) {
  .mhero__in { grid-template-columns: 1fr; }
  .mhero__portrait { order: -1; width: min(72%, 320px); margin-top: 1rem; }
  .retreats { grid-template-columns: 1fr; max-width: 520px; }
}
html.solo .nav > ul.solo-only { display: flex; }
@media (max-width: 1180px) { html.solo .nav > ul.solo-only { display: none; } }
.timeline--dark::before { background: linear-gradient(var(--gold-hi) var(--tl, 0%), rgba(242, 210, 138, .15) var(--tl, 0%)); }
.timeline--dark .tl::before { background: var(--night); border-color: var(--gold-hi); }
.timeline--dark .tl__year { color: var(--gold-hi); }
.timeline--dark .tl__body { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-light); box-shadow: none; }
.timeline--dark .tl__body p { color: rgba(237, 230, 214, .78); }
.teacher { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.teacher:last-child { border-bottom: 0; }
.teacher__img { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.teacher__img .portrait { aspect-ratio: 4 / 4.6; }
.teacher h2 { font-size: var(--t-xl); margin-bottom: .2rem; }
.teacher__tib { font: 400 1.35rem/1.4 var(--f-tib); color: var(--gold-deep); margin-bottom: .2rem; }
.teacher__role { font: 700 .74rem/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 1.2rem; }
html:lang(bo) .teacher__role { font-family: var(--f-tib); letter-spacing: 0; text-transform: none; font-size: .95rem; }
@media (max-width: 860px) { .teacher { grid-template-columns: 1fr; } .teacher__img { position: static; max-width: 300px; } }
.table-wrap { overflow-x: auto; border-radius: var(--r-l); background: var(--khata); box-shadow: 0 1px 0 var(--line), var(--shadow-s); }
.rates { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.rates th { text-align: left; font: 700 .72rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
html:lang(bo) .rates th { font-family: var(--f-tib); letter-spacing: 0; text-transform: none; font-size: .9rem; }
.rates td { padding: .95rem 1.2rem; border-bottom: 1px solid var(--line); }
.rates tr:last-child td { border-bottom: 0; }
.rates td:nth-child(n+3), .rates th:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.rates tbody tr { transition: background .2s; }
.rates tbody tr:hover { background: var(--paper-2); }
/* fixes after first review */
.nav > ul.solo-only { display: none; }
html.solo .nav > ul.solo-only { display: flex; }
.kora h2, .wheel h2, #mongolia h2 { font-size: var(--t-2xl); }
.quotes { min-height: 230px; }
.rates--halls td:nth-child(2), .rates--halls th:nth-child(2) { text-align: right; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .8rem; aspect-ratio: 1 / 1.05; }
.mosaic figure { margin: 0; border-radius: var(--r-m); overflow: hidden; cursor: zoom-in; position: relative; }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; inset: auto 0 0; padding: 2rem .8rem .6rem; font-size: .76rem; color: #FFF8EC; background: linear-gradient(transparent, rgba(10, 14, 30, .8)); }
@media (max-width: 640px) {
  .hero::before { background: linear-gradient(180deg, rgba(10, 16, 40, .55) 0%, rgba(10, 16, 40, .35) 35%, rgba(12, 14, 26, .72) 62%, rgba(12, 14, 26, .92) 100%); }
  .hero__lede { font-size: 1rem; }
  .quotes { min-height: 260px; }
}
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 2rem) var(--gutter) 4rem; }
.notfound h1 { font-size: var(--t-2xl); }
html.i18n-busy { cursor: progress; }

html:lang(bo) .nav a, html:lang(bo) .nav__btn { font-size: 1rem; font-weight: 500; }
html:lang(bo) .btn { font-size: 1.02rem; font-weight: 600; }
html:lang(bo) .dd small { font-size: .85rem; }
/* kora: real-time 3D canvas fades in over the still image */
.kora__gl { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s var(--ease); touch-action: pan-y; }
.kora__stage.is-gl .kora__gl { opacity: 1; }
.kora__stage.is-gl .kora__still { opacity: 0; transition: opacity 1.2s var(--ease); }
/* wordmark: a larger TMBCC; the small lines are fitted to its exact width by main.js (fitBrand) */
.brand__mark { width: 58px; height: 61px; }
.brand__name { font-size: 2.25rem; letter-spacing: .06em; margin: .06rem 0 .04rem; line-height: .9; }
.brand__top, .brand__bot { display: block; width: max-content; letter-spacing: .1em; }
.brand__text.is-fit .brand__top, .brand__text.is-fit .brand__bot { font-size: var(--fs, .56rem); }
@media (max-width: 860px) { .brand__mark { width: 46px; height: 48px; } .brand__name { font-size: 1.8rem; } }
@media (max-width: 640px) { .brand__top, .brand__bot { display: block; } .brand__name { font-size: 1.55rem; } }
@media (max-width: 380px) { .brand__name { font-size: 1.35rem; } }
@media (max-width: 640px) { .header .brand__top, .header .brand__bot { display: none; } }

.brand__text { justify-items: start; }
.brand__name { width: max-content; }

/* ==========================================================================
   Review pass 1 (UI/UX)
   ========================================================================== */
/* -- richer backgrounds: silk light + lokta paper fibre on every light section -- */
body { background: var(--paper) url("../assets/img/paper-tile.webp") 0 0 / 640px; }
.section:not(.section--dark):not(.give) { background-image: radial-gradient(1100px 520px at 88% 0%, rgba(200, 144, 43, .10), transparent 62%), radial-gradient(900px 480px at 0% 100%, rgba(179, 42, 31, .05), transparent 60%), url("../assets/img/paper-tile.webp"); background-size: auto, auto, 640px; }
.section--paper2 { background-color: var(--paper-2); }
.grain::after { display: none; }
/* five-colour eave trim, from the painted lintel of the gate */
.section--paper2::before, .trim::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--lapis) 0 20%, #FFF8EC 0 40%, var(--red) 0 60%, var(--jade) 0 80%, var(--gold) 0); opacity: .9; }
/* gold cloud frieze divider */
.clouds-band { height: clamp(34px, 4vw, 56px); background: url("../assets/img/orn-clouds.svg") center / auto 100% repeat-x; opacity: .55; margin: 0 auto; max-width: var(--wrap); }
/* lotus rosette watermarks */
.section-head, .split__text { position: relative; }
.has-rosette { position: relative; overflow: clip; }
.has-rosette::after { content: ""; position: absolute; width: min(560px, 70vw); aspect-ratio: 1; right: -140px; top: -80px; background: url("../assets/img/orn-mandala.svg") center / contain no-repeat; opacity: .14; pointer-events: none; animation: rosette 120s linear infinite; z-index: 0; }
.has-rosette--left::after { right: auto; left: -160px; top: auto; bottom: -120px; }
.has-rosette > .wrap, .has-rosette > .wrap--narrow { position: relative; z-index: 1; }
.section--dark.has-rosette::after { filter: brightness(1.6) saturate(.8); opacity: .07; }
@keyframes rosette { to { rotate: 360deg; } }
/* maroon band for the Mongolian section */
.section--maroon { background: linear-gradient(160deg, #6B1A1C, #4A1013) !important; color: #F6EAD8; }
.section--maroon h2 { color: #FFF8EC; }
.section--maroon .kicker { color: var(--gold-hi); }
.section--maroon .lede, .section--maroon p { color: rgba(246, 234, 216, .86); }
.section--maroon .link-arrow { color: var(--gold-hi); }
.section--maroon .stack__b { border-color: #5A1517; }
/* full-width photo break */
.photo-break { position: relative; min-height: 62vh; display: grid; place-items: center; text-align: center; color: #FFF8EC; overflow: clip; isolation: isolate; }
.photo-break img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.photo-break::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(10, 14, 30, .35), rgba(10, 14, 30, .7)); }
.photo-break p { font: 500 italic clamp(1.6rem, 1.1rem + 2.2vw, 3rem)/1.25 var(--f-display); max-width: 22ch; margin: 0 auto; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
html:lang(bo) .photo-break p { font-family: var(--f-tib); font-style: normal; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.6; }
.photo-break small { display: block; margin-top: 1rem; font: 700 .74rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); }

/* -- hero / page hero readability -- */
.hero::before { background: linear-gradient(90deg, rgba(12, 14, 26, .72) 0%, rgba(12, 14, 26, .35) 45%, transparent 70%), linear-gradient(180deg, rgba(10, 16, 40, .35) 0%, rgba(10, 16, 40, 0) 30%, rgba(12, 14, 26, .78) 100%); }
.phero::before { background: linear-gradient(90deg, rgba(12, 14, 26, .6) 0%, rgba(12, 14, 26, .2) 55%, transparent 75%), linear-gradient(180deg, rgba(10, 16, 40, .45) 0%, rgba(10, 16, 40, .05) 40%, rgba(12, 14, 26, .85) 100%); }
@media (max-width: 640px) {
  .hero::before, .phero::before { background: linear-gradient(180deg, rgba(12, 14, 26, .3) 0%, rgba(12, 14, 26, .45) 30%, rgba(12, 14, 26, .88) 60%, rgba(12, 14, 26, .95) 100%); }
}
.hero__credit, .phero__credit { position: absolute; right: 1rem; bottom: .6rem; z-index: 2; font-size: .68rem; color: rgba(255, 255, 255, .6); }

/* -- header: compact Give heart on tablets -- */
@media (max-width: 1180px) and (min-width: 641px) {
  .header__donate { display: inline-flex !important; width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .header__donate span { display: none; }
}

/* -- rates: stacked rows on phones -- */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  .rates, .rates tbody, .rates tr, .rates td { display: block; min-width: 0; }
  .rates thead { display: none; }
  .rates tr { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
  .rates tr:last-child { border-bottom: 0; }
  .rates td { padding: .12rem 0; border: 0; text-align: left !important; }
  .rates td:first-child { font-size: 1.02rem; padding-bottom: .3rem; }
  .rates td:nth-child(n+2)::before { content: attr(data-label) ": "; color: var(--ink-mute); font-size: .82rem; }
}

/* -- grids without stray cards -- */
.ways--3 { grid-template-columns: repeat(3, 1fr); }
.pillars--4 { grid-template-columns: repeat(4, 1fr); }
.etiquette { padding: 0; margin: 0; grid-template-columns: repeat(4, 1fr); }
@media (min-width: 1180px) { .festivals--5 { grid-template-columns: repeat(5, 1fr); } }
.ngrid--feature > :first-child { grid-column: span 2; }
.ngrid--feature > :first-child .ncard__img { aspect-ratio: 16 / 8.2; }
@media (max-width: 1024px) { .ways--3, .pillars--4, .etiquette { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ways--3, .pillars--4, .etiquette { grid-template-columns: 1fr; } .ngrid--feature > :first-child { grid-column: auto; } }
#kora-trail { grid-column: 1 / -1; min-height: 440px; }

/* -- article lead image -- */
.afig > div { background: none; }
.afig img { object-fit: cover; aspect-ratio: 16 / 9; max-height: 72vh; border-radius: var(--r-l); }
.afig--poster img { object-fit: contain; aspect-ratio: auto; width: auto; max-width: min(100%, 620px); margin: 0 auto; box-shadow: var(--shadow); border-radius: var(--r-m); }

/* -- Minyak hero badge on phones -- */
@media (max-width: 640px) { .mhero__seal { left: 50%; bottom: -1.2rem; translate: -50% 0; padding: .6rem .9rem; white-space: nowrap; } }

/* -- tap targets and small text -- */
.lang__btn { height: 36px; min-width: 38px; }
@media (pointer: coarse) { .lang__btn { height: 40px; min-width: 40px; } .link-arrow { min-height: 44px; } .footer li a { display: inline-block; padding: .35rem 0; } }
.quote__dots button { width: 44px; height: 44px; }
.tag, .next-card__top { font-size: .75rem; }

/* -- quotes band sized to its tallest quote -- */
.quotes { display: grid; min-height: 0; }
.quote { grid-area: 1 / 1; position: static !important; }
.quote blockquote.tib { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.7; }
.quote figcaption span:first-child { display: block; font: 500 italic 1.3rem/1.5 var(--f-display); letter-spacing: 0; text-transform: none; color: #FFF8EC; margin-bottom: .6rem; }

/* -- week: lighter empty days, list on phones, Today pill -- */
.day:not(:has(.day__item)) { min-height: auto; }
.day.is-today h3::after { content: attr(data-today); margin-left: .5rem; padding: .2rem .5rem; border-radius: 99px; background: var(--gold); color: var(--ink); font-size: .62rem; letter-spacing: .1em; vertical-align: 1px; }
@media (max-width: 640px) {
  .week { grid-template-columns: 1fr; gap: .4rem; }
  .day { min-height: 0; display: grid; grid-template-columns: 96px 1fr; gap: .2rem .8rem; padding: .8rem 1rem; }
  .day h3 { grid-row: span 3; margin: .15rem 0 0; }
}

/* -- cards over busy photos -- */
.place::before { background: linear-gradient(180deg, transparent 25%, rgba(10, 14, 30, .55) 55%, rgba(10, 14, 30, .9)); }
.tcard__years { top: 1.5rem; right: 1.5rem; box-shadow: var(--shadow-s); }

/* -- timeline: left-aligned text on both sides, only the year flips -- */
.tl:nth-child(even) .tl__body { text-align: left; }

/* -- forms -- */
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background: var(--khata) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F6115' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .9rem center / 18px no-repeat; }

/* -- horizontal strips hint that they scroll -- */
.strip { mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }

/* -- support cards: actions aligned at the bottom -- */
.way { display: flex; flex-direction: column; }
.way > .btn, .way > div:last-child:empty { margin-top: auto; align-self: flex-start; }

/* -- Tibetan reading comfort -- */
html:lang(bo) .hero__lede, html:lang(bo) .phero p { font-size: 1.12em; line-height: 2; }
html:lang(bo) .hero__title { max-width: 12ch; }

/* -- gallery -- */
@media (min-width: 1280px) { .masonry { columns: 4 260px; } }
@media (hover: none) { .masonry figcaption { opacity: 1; transform: none; } }

/* -- back to top -- */
.totop { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-light); background: rgba(15, 23, 48, .86); color: var(--gold-hi); display: grid; place-items: center; box-shadow: var(--shadow-s); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { width: 20px; height: 20px; transform: rotate(-90deg); }

/* -- 404 chips -- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.6rem; }
.chips a { padding: .55rem 1rem; border-radius: 99px; background: var(--khata); box-shadow: 0 1px 0 var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chips a:hover { background: var(--paper-2); }

/* -- credit captions over stacked photos -- */
.credit--over { position: absolute; right: .6rem; bottom: .4rem; margin: 0; padding: .15rem .45rem; border-radius: 6px; background: rgba(10, 14, 30, .5); color: rgba(255, 255, 255, .8) !important; font-size: .64rem; }

/* ==========================================================================
   Review pass 1 (accessibility / cross-browser)
   ========================================================================== */
:root { --ink-mute: #7A6452; --gold-deep: #855A12; }
.tag--jade { color: #256B4E; }
/* focus ring visible on light and dark */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 4px var(--gold-hi); }
.section--dark :focus-visible, .footer :focus-visible, .hero :focus-visible, .phero :focus-visible, .mhero :focus-visible, .section--maroon :focus-visible { outline-color: var(--gold-hi); box-shadow: 0 0 0 4px rgba(15, 23, 48, .6); }
@supports not selector(:focus-visible) { :focus { outline: 2px solid var(--ink); outline-offset: 3px; } }
/* Safari 15: overflow: clip and svh units */
body { overflow-x: hidden; overflow-x: clip; }
.hero, .phero, .mhero, .give, .kora, .photo-break, .has-rosette { overflow: hidden; overflow: clip; }
.hero { min-height: 100vh; min-height: 100svh; }
.mhero { min-height: 100vh; min-height: 100svh; }
@media (max-width: 640px) { .hero { min-height: 92vh; min-height: 92svh; } }
/* moving content pauses for keyboard users too */
.ticker:focus-within .ticker__track { animation-play-state: paused; }
/* loader is gone at once on later pages */
html.is-loaded .loader { display: none; }
/* lightbox buttons on photos */
.lb-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; border-radius: inherit; }
.lb-btn img { display: block; }
.strip .lb-btn, .mosaic .lb-btn, .afig .lb-btn { height: 100%; }
/* footer headings are h2 now */
.footer h2 { font: 700 .74rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 1.1rem; }
html:lang(bo) .footer h2 { font-family: var(--f-tib); letter-spacing: 0; text-transform: none; font-size: .95rem; }
.footer__news { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding-block: 2rem; border-bottom: 1px solid var(--line-light); }
.footer__news h2 { margin-bottom: .4rem; }
.footer__news p { margin: 0; }
.footer__news .newsletter { flex: 1 1 360px; max-width: 520px; }
.next-card h2 { font-size: 1.55rem; margin-bottom: .45rem; color: #FFF8EC; }
.day__item time, .retreat__when, .amounts button { font-weight: 700; }
.ways--2 { grid-template-columns: repeat(2, 1fr); }
.way--link { text-decoration: none; transition: transform .4s var(--ease-out), box-shadow .4s; }
.way--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.way--link .link-arrow { margin-top: auto; }
@media (max-width: 640px) { .ways--2 { grid-template-columns: 1fr; } }
a[href^="tel:"] { white-space: nowrap; }

/* ==========================================================================
   Today at the temple (live strip)
   ========================================================================== */
.today { position: relative; background: linear-gradient(180deg, #121B38, var(--night)); color: #EDE6D6; border-bottom: 1px solid var(--line-light); }
.today__in { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); gap: 1.4rem; align-items: center; padding-block: 1.15rem; }
.today__title { display: flex; align-items: center; gap: .6rem; margin: 0; font: 700 .72rem/1.2 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); white-space: nowrap; }
html:lang(bo) .today__title { font-family: var(--f-tib); letter-spacing: 0; text-transform: none; font-size: .95rem; }
.today__item { display: flex; gap: .7rem; align-items: center; min-width: 0; }
.today__item svg { width: 26px; height: 26px; flex: none; color: var(--gold); }
.today__item b { display: block; font: 600 1rem/1.25 var(--f-display); font-size: 1.12rem; color: #FFF8EC; }
.today__item span { display: block; font-size: .8rem; color: rgba(237, 230, 214, .7); line-height: 1.35; }
html:lang(bo) .today__item b { font-family: var(--f-tib); font-size: 1rem; }
@media (max-width: 1100px) { .today__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .today__title { grid-column: 1 / -1; } }
@media (max-width: 560px) { .today__in { grid-template-columns: 1fr; gap: .9rem; } }
@media (max-width: 640px) { .hero .next-card { display: none; } .hero__inner { padding-bottom: 3.5rem; } }

.ashare { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.pn { display: grid; gap: .3rem; padding: 1rem 1.2rem; border-radius: var(--r-m); background: var(--khata); box-shadow: 0 1px 0 var(--line); text-decoration: none; transition: transform .3s var(--ease-out); }
.pn:hover { transform: translateY(-3px); }
.pn small { font: 700 .7rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
html:lang(bo) .pn small { font-family: var(--f-tib); letter-spacing: 0; text-transform: none; font-size: .9rem; }
.pn span { font: 600 1.1rem/1.3 var(--f-display); }
.pn--next { grid-column: 2; text-align: right; }
@media (max-width: 640px) { .pnav { grid-template-columns: 1fr; } .pn--next { grid-column: auto; } }

/* language composition */
html:lang(bo) .hero__title { max-width: 15ch; }
html:lang(bo) .hero__title .line > span, html:lang(mn) .hero__title .line > span { text-wrap: balance; }
@media (max-width: 640px) {
  html:lang(mn) .hero__title { font-size: clamp(2rem, 1.2rem + 4vw, 2.6rem); max-width: none; }
  html:lang(bo) .hero__title { font-size: clamp(1.7rem, 1.1rem + 3.6vw, 2.3rem); max-width: none; }
  html:lang(mn) .phero h1, html:lang(mn) .mhero h1 { font-size: clamp(2.1rem, 1.3rem + 4vw, 2.8rem); }
  .day.is-today h3::after { display: table; margin: .35rem 0 0; }
}
html:lang(mn) .section-head h2, html:lang(mn) .split__text h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.9rem); }
.pillar__n::before { content: attr(data-n); }
.way__t { font-size: 1.4rem; margin-bottom: .5em; }
html:lang(bo) .way__t { font-family: var(--f-tib); font-weight: 400; font-size: 1.2rem; }

.nav__btn.is-current { background: rgba(255, 255, 255, .14); }
.header.is-solid .nav__btn.is-current, body.page-light .nav__btn.is-current { background: rgba(43, 26, 16, .07); }

/* loader (every page) */
.loader { background: radial-gradient(circle at 50% 46%, #FFFDF7 0%, var(--paper) 45%, var(--paper-2) 100%); }
.loader__mark { width: 104px; animation: lpulse 2.4s var(--ease) infinite, lrise .9s var(--ease-out) both; }
.loader__ring { border-width: 1.5px; }
.loader__ring::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(200, 144, 43, .35); animation: lspin 9s linear infinite reverse; }
@keyframes lrise { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
html:lang(bo) .loader__text { font-family: var(--f-tib); letter-spacing: 0; text-transform: none; font-size: .95rem; }
html:lang(mn) .loader__text { letter-spacing: .2em; }

/* Mongolian hero: three composed lines that never break inside (sized so the longest line fits) */
html:lang(mn) .hero__title { max-width: none; font-size: clamp(2.1rem, .9rem + 4.6vw, 5.4rem); }
html:lang(mn) .hero__title .line > span { white-space: nowrap; }
@media (max-width: 640px) { html:lang(mn) .hero__title { font-size: clamp(1.9rem, .8rem + 6.2vw, 2.6rem); } }

/* ==========================================================================
   Loader, as on the sister site: invisible for fast loads (the mark, mantra and bar only fade in after 0.5 s),
   the lotus opens and the stupa rises from it; a safety fade at 8 s if a script ever fails.
   ========================================================================== */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--night); overflow: hidden;
  opacity: 1; visibility: visible; pointer-events: none; animation: loader-out .6s 8s forwards; transition: none; }
.loader::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 44%, rgba(242, 210, 138, .22), rgba(15, 23, 48, .2) 38%, rgba(10, 14, 30, .96) 72%); }
.loader__rosette { position: absolute; width: min(120vmin, 980px); aspect-ratio: 1; left: 50%; top: 44%; translate: -50% -50%; background: url("../assets/img/orn-mandala.svg") center / contain no-repeat; opacity: .1; filter: brightness(1.8); animation: lspin 90s linear infinite; }
html:not(.js) .loader { display: none; }
html.is-ready .loader { opacity: 0; visibility: hidden; animation: none; transition: opacity .5s var(--ease), visibility 0s .5s; }
html.is-loaded .loader { display: none; }
.loader__inner { position: relative; display: grid; justify-items: center; gap: 1rem; opacity: 0; animation: loader-in .5s .5s forwards; }
.loader__mark { position: relative; width: 128px; aspect-ratio: 384 / 401; filter: drop-shadow(0 6px 26px rgba(242, 210, 138, .25)); }
.loader__mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__inner .lm-lotus { transform-origin: 50% 85%; animation: lm-bloom 1.1s .55s var(--ease-out) both; }
.loader__inner .lm-stupa { animation: lm-rise 1.3s .9s var(--ease-out) both, lm-breathe 4.5s 2.4s ease-in-out infinite alternate; clip-path: inset(0 0 26% 0); }
.loader__mantra { margin: .2rem 0 0; font: 400 1.45rem/1.7 var(--f-tib); background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent; animation: loader-glow 2.4s ease-in-out infinite alternate; }
.loader__bar { width: 160px; height: 2px; border-radius: 2px; background: rgba(242, 210, 138, .18); overflow: hidden; }
.loader__bar i { display: block; width: 40%; height: 100%; background: var(--gold); animation: loader-bar 1.4s var(--ease) infinite; }
.loader__text { position: static; margin: 0; font: 600 .66rem/1 var(--f-body); letter-spacing: .32em; text-transform: uppercase; color: rgba(242, 210, 138, .6); }
@keyframes loader-in { to { opacity: 1; } }
@keyframes loader-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@keyframes loader-glow { from { opacity: .65; } to { opacity: 1; } }
@keyframes loader-bar { from { transform: translateX(-110%); } to { transform: translateX(280%); } }
@keyframes lm-bloom { from { opacity: 0; transform: scale(.55, .3); } }
@keyframes lm-rise { from { opacity: 0; transform: translateY(26%); } }
@keyframes lm-breathe { from { filter: brightness(1); } to { filter: brightness(1.12); } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }
.loader__mark { animation: none; }
/* counters: steady lining figures (old-style numerals of the display face rise and drop), no jumping */
.wheel__count, .kora__count b, .facts b, .goal__n, .event__date b, .stack__seal b, .mhero__seal b, .tl__year, [data-count] { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.wheel__count, .kora__count b { display: inline-block; min-width: 2ch; transform-origin: left center; transition: text-shadow .6s var(--ease); }
.loader__mark { width: 150px; }
.loader__mark { aspect-ratio: 379 / 401; }

/* the four names painted on the gate */
.footer__names { display: grid; gap: .15rem; margin: 0 0 .4rem; font-size: .84rem; color: rgba(242, 210, 138, .78); }
.footer__names [lang="bo"] { font-family: var(--f-tib); font-size: 1rem; line-height: 1.6; }
.footer__names [lang="zh"] { font-family: "PingFang SC", "Noto Serif SC", "Songti SC", serif; letter-spacing: .25em; }
/* Tibetan wordmark: the two Tibetan lines centred on "TMBCC", with room for the tall Tibetan glyphs */
html:lang(bo) .brand__text { justify-items: center; }
html:lang(bo) .brand__top, html:lang(bo) .brand__bot { line-height: 1.45; }
html:lang(bo) .brand__top { margin-bottom: .12rem; }
html:lang(bo) .brand__bot { margin-top: .18rem; }
html:lang(bo) .brand__name { line-height: .86; }

/* Tibetan wordmark: compact enough to sit inside the header bar */
html:lang(bo) .brand__name { font-size: 1.95rem; line-height: .84; margin: .02rem 0; }
html:lang(bo) .brand__top, html:lang(bo) .brand__bot { line-height: 1.32; }
html:lang(bo) .brand__top { margin-bottom: 0; }
html:lang(bo) .brand__bot { margin-top: .08rem; }
@media (max-width: 860px) { html:lang(bo) .brand__name { font-size: 1.6rem; } }

/* ==========================================================================
   Deep scan C (events, visit, stay, support, news, gallery, 404)
   ========================================================================== */
/* 2/3: lining figures everywhere; no "(c)" → © ligature in running text */
body { font-variant-numeric: lining-nums; font-variant-ligatures: no-common-ligatures; }
h1, h2, h3, h4 { font-variant-ligatures: common-ligatures; }
/* 1: phones: the menu button stays fully on screen */
@media (max-width: 640px) {
  .nav { display: none; }
  .header__in { gap: .5rem; }
  .header__tools { margin-left: auto; gap: .2rem; }
  .lang__btn { min-width: 34px; padding: 0 .3rem; }
  .burger { margin-right: -10px; }
}
/* 5: arrows in the visit / give cards */
.way .link-arrow svg { width: 18px; height: 18px; margin: 0; color: currentColor; }
/* 7: phones: gallery captions under the photo, not over it */
@media (hover: none) and (max-width: 640px) {
  .masonry figure { background: none; overflow: visible; }
  .masonry .lb-btn { border-radius: var(--r-m); overflow: hidden; }
  .masonry figcaption { position: static; background: none; color: var(--ink-soft); padding: .35rem .15rem 0; font-size: .74rem; line-height: 1.35; opacity: 1; transform: none; }
}
/* 8: Mongolian day names */
html:lang(mn) .day h3 { line-height: 1.3; letter-spacing: .1em; }
html:lang(mn) .day.is-today h3::after { display: table; margin: .35rem 0 0; }
/* 9: donation figure does not shift while counting */
.goal__n { font-variant-numeric: lining-nums tabular-nums; }
.goal__of { display: block; margin-top: .45rem; font-size: .42em; opacity: .8; }
/* 11: Tibetan has no bold face: never fake it */
html:lang(bo) { font-synthesis-weight: none; }
html:lang(bo) .pn span, html:lang(bo) .goal__n small, html:lang(bo) .today__item b, html:lang(bo) .tag, html:lang(bo) .field label { font-family: var(--f-tib); font-weight: 400; }
/* 13: Tibetan table labels with a shad, not a colon */
@media (max-width: 640px) { html:lang(bo) .rates td:nth-child(n+2)::before { content: attr(data-label) "། "; } }
/* 15/16: Givebutter forms (js/main.js loads the widget when a form comes near the screen) */
.gb { min-width: 0; }
.gb givebutter-widget { display: block; width: 100%; }
.gb.is-ready .gb__wait { display: none; }
.gb__wait { margin: 0; }
p.gb__wait { color: var(--ink-soft); font-size: .92rem; }
.give__side { display: grid; gap: 1.25rem; min-width: 0; }
.goal p { margin: 0; font-size: .92rem; }
/* the widget's own text is dark: it sits on a light panel over the dark photo */
.gb--roof { min-height: 3rem; }
.gb--roof.is-ready { padding: 1rem 1.25rem; border-radius: var(--r-l); background: var(--khata); color: var(--ink); box-shadow: var(--shadow); }
.gb__k { display: none; margin: .2rem .3rem .8rem; font: 700 .72rem/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.give .gb--roof.is-ready .gb__k { display: block; color: var(--ink-soft); }
html:lang(bo) .gb__k { font-size: .9rem; letter-spacing: 0; text-transform: none; }
.gb__fail { display: none; }
.gb.is-failed .gb__fail { display: block; margin: 0; color: var(--ink-soft); font-size: .92rem; }
.gb.is-failed p.gb__wait { display: none; }
@media (max-width: 860px) { .give__side { max-width: 34rem; } }
/* Support: the Online card with its form on the left, the other ways stacked beside it */
.ways--online { grid-template-columns: minmax(0, 31rem) minmax(0, 1fr); }
.way--online { grid-row: span 3; }
.way--online:has(.gb.is-failed) { grid-row: auto; }
.way--online .gb { margin-top: 1.25rem; min-height: 6rem; }
@media (max-width: 760px) { .ways--online { grid-template-columns: 1fr; } .way--online { grid-row: auto; } }
/* 18/19: festival and event dates */
.fest__when { line-height: 1.45; text-wrap: balance; }
.event__date span { display: block; line-height: 1.2; white-space: nowrap; }
html:lang(mn) .event__date span { letter-spacing: .04em; }
/* 20: Mongolian appeal heading */
html:lang(mn) .give h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); }
/* 21: posters readable in articles */
.afig--poster img { max-height: none; width: min(100%, 620px); }
/* 23/25: no single words left alone */
.today__item b, .today__item span, .pn span { text-wrap: balance; }
@media (max-width: 640px) { .pn--next { text-align: left; } }
/* 28: lightbox arrows below the photo on phones */
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 1.2rem; translate: none; } }
/* 34: festival cards line up whether or not they carry a Tibetan name */
.fest h3 + p { margin-top: 2.05rem; }
html:lang(bo) .fest h3 + p { margin-top: 1rem; }

/* ==========================================================================
   Deep scan A (home, Minyak Rinpoche, teachers)
   ========================================================================== */
/* 2: solo mode shows its own nav only on wide screens */
@media (max-width: 1180px) { html.solo .nav > ul.solo-only { display: none !important; } }
/* 4: steady clock digits */
.today__item b { font-variant-numeric: lining-nums tabular-nums; }
/* 5: teachers: name sits right under the Tibetan line */
.teacher .prose > h2 { margin: 0 0 .45rem; }
.teacher__tib { margin-bottom: .35rem; }
.teacher__role { margin-top: .3rem; text-wrap: balance; }
/* 6: titles never run into the big number */
.pillar h3 { padding-right: 3.4rem; }
/* 7: no scroll cue on small screens */
@media (max-width: 860px) { .scroll-cue { display: none; } }
/* 8: Tibetan has no italic */
html:lang(bo) em, html:lang(bo) i { font-style: normal; font-synthesis: none; }
/* 9: drop cap spans exactly two lines */
.dropcap::first-letter { line-height: .76; padding: .12rem .55rem 0 0; }
/* 10: timeline years sit level with their diamond */
.tl__year { padding-top: .25rem; }
.tl::before { top: 2.7rem; }
@media (max-width: 860px) { .tl::before { top: 2.1rem; } }
/* 11: no seams between light sections: the paper runs on from the body, the glows never touch an edge */
.section:not(.section--dark):not(.give):not(.section--maroon) { background-image: radial-gradient(1100px 520px at 88% 340px, rgba(200, 144, 43, .10), transparent 62%), radial-gradient(900px 480px at 0% calc(100% - 300px), rgba(179, 42, 31, .05), transparent 60%); background-size: auto; background-color: transparent; }
.section--paper2 { background-color: rgba(233, 220, 194, .45) !important; }
/* 12: only the card's own icon is large */
.way > svg { width: 36px; height: 36px; }
.way svg:not(:first-child) { width: 18px; height: 18px; }
/* 13: "since 1979" reads in order in English */
html:lang(en) .stack__seal > div { display: flex; flex-direction: column-reverse; align-items: center; }
/* 16: header tools don't move when the language changes */
@media (min-width: 1181px) { .header__donate { min-width: 8.5rem; } }
/* 18: Tibetan never below 13 px */
html:lang(bo) :is(.goal__k, .tcard__years, .mosaic figcaption, .retreat__when, .today__item span, .kora__count span, .facts span, .credit, .tag, .ncard__meta) { font-size: .9rem; letter-spacing: 0; text-transform: none; }
/* 19: appeal label legible on the photo */
.give .kicker { color: var(--gold-hi); }
/* 20/21: breathing room */
.dd small { line-height: 1.35; }
.place__tib { margin: .3rem 0 .15rem; }
/* 22: wrapped links keep their arrow with the last word */
.prose .link-arrow { display: inline; }
.prose .link-arrow svg { display: inline-block; vertical-align: -.2em; margin-left: .35rem; }
/* 23/24: teacher cards line up */
.tcard__role { min-height: 2.6em; display: flex; align-items: flex-end; text-wrap: balance; }
/* 27: phones: the stupa before its button, like the prayer wheel */
@media (max-width: 860px) { .kora__stage { order: -1; } }
/* 30: the Sunday card stays beside the title down to 900 px */
@media (max-width: 1024px) and (min-width: 901px) { .hero__inner { grid-template-columns: 1fr auto; } .next-card { width: 320px; } }
/* 35: no lonely words */
.facts span { text-wrap: balance; }
/* 38: footer flags not clipped */
.footer .flags { padding-top: 8px; }
/* the five-colour trim: the white band stays visible on cream */
.section--paper2::before, .trim::before { box-shadow: 0 1px 0 rgba(43, 26, 16, .08); }
.brand--solo .brand__top { letter-spacing: .3em; font-size: .56rem; }
.brand--solo .brand__bot { font-size: .9rem; }

/* ==========================================================================
   Deep scan B (about, grounds, the path, Tibetan Buddhism, Life of the Buddha)
   ========================================================================== */
/* 1: every counter and number in lining figures */
.pillar__n, .truths li::before, .etiquette li::before, .deeds li::before, .way h3, .btl time, .fest h3 { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
/* 2/13/27: mantra cards: label, script and romanization never collide; one size for every mantra */
.fest__when { margin-bottom: .5rem; }
.festivals--5 .fest__tib { font-size: 1.4rem !important; line-height: 1.9; }
.festivals--5 .fest h3 { font-size: 1.15rem; color: rgba(255, 248, 236, .85); font-style: italic; }
html:lang(bo) .festivals--5 .fest h3 { display: none; }
.fest > * { position: relative; z-index: 1; }
/* 5: no ghost stupa: the still fades out first, then the live stupa fades in */
.kora__stage.is-gl .kora__still { transition-duration: .2s; }
.kora__gl { transition-delay: .2s; }
/* 6: symbol cards don't change the page height on hover */
@media (min-width: 1025px) { .sym { min-height: 18rem; } }
/* 7: timeline diamonds level with the year on wide screens */
@media (min-width: 861px) { .tl::before { top: calc(1.4rem + .25rem + clamp(2rem, 1.6rem + 1.6vw, 3rem) / 2 - 7px); } }
/* 11: years on Tibetan pages in the display face */
html:lang(bo) section[aria-labelledby="visits-title"] .way h3 { font-family: var(--f-display); font-weight: 600; }
/* 14: archival photos never blown up */
.tl__body img[src*="h-"] { max-width: 380px; }
/* 16/17: Tibetan reading comfort */
.sym__tib { font-size: 1.3rem; color: var(--ink-soft); }
html:lang(bo) :is(.path8__group li, .deeds li) { line-height: 1.85; }
html:lang(bo) :is(.way p, .pillar p, .tl__body p, .place__body p, .fest p, .etiquette p) { font-size: 1.02rem; line-height: 1.9; }
html:lang(bo) .deeds li { align-items: center; }
/* 18/19: soft joins between paper tones; the white band of the trim stays visible */
.section--paper2 + .section:not(.section--dark):not(.give):not(.section--maroon) { background-image: linear-gradient(rgba(233, 220, 194, .45), transparent 5rem); }
.section--paper2::before, .trim::before { background: linear-gradient(90deg, var(--lapis) 0 20%, #FFFFFF 0 40%, var(--red) 0 60%, var(--jade) 0 80%, var(--gold) 0); border-block: 1px solid var(--line); }
/* 21: no lonely last words in captions */
.prose figcaption, figcaption { text-wrap: balance; }
/* 25: one size for photo credits */
.credit, .credit--over, .phero__credit, .hero__credit { font-size: .72rem; }
/* 26: the ring bullet drawn in CSS (the glyph fell back to a system font) */
.path8__group li::before { content: "" !important; display: inline-block; width: .42em; height: .42em; border: 1.5px solid currentColor; border-radius: 50%; margin-right: .5em; vertical-align: .12em; }
/* 30/31: layout at tablet widths */
@media (max-width: 1180px) { .bud-prose { margin-inline: auto; } }
@media (min-width: 641px) and (max-width: 860px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.festivals--5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 1180px) { .festivals--5 > :last-child:nth-child(odd) { grid-column: auto; } }
@media (max-width: 400px) { html:lang(bo) .brand__name, html:lang(mn) .brand__name { font-size: 1.3rem; } .brand__mark { width: 34px; height: 36px; } .header__in { gap: .35rem; } }
/* Tibetan wordmark is taller (head marks above, vowels below): a taller header so nothing is ever clipped */
html:lang(bo) { --header-h: 88px; }
@media (max-width: 860px) { html:lang(bo) { --header-h: 70px; } }

/* hero text in its own layer, above the moving photo; lines stop clipping once revealed */
.hero__inner, .phero__in, .mhero__in { position: relative; z-index: 1; transform: translateZ(0); }
.hero__title .line.is-in, .phero h1 .line.is-in, .mhero h1 .line.is-in { overflow: visible; }
html:not(.intro) .hero__title .line > span { will-change: auto; }

/* ---------------- website back end (PHP): items per language, visitor forms, protected contact details ---------------- */
/* items without text in the visitor's language are not shown in it (data-langs from the server) */
html[lang="en"] [data-langs]:not([data-langs~="en"]), html[lang="mn"] [data-langs]:not([data-langs~="mn"]), html[lang="bo"] [data-langs]:not([data-langs~="bo"]) { display: none !important; }
/* robot traps: off-screen, never seen or reached by people */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-size: .95rem; line-height: 1.5; }
.form__status.is-error { color: var(--red, #9b2226); font-weight: 600; }
.newsletter { flex-wrap: wrap; }
.newsletter .form__status { flex: 1 0 100%; color: inherit; }
.newsletter .form__status.is-error { color: #ffb4a8; }
/* on phones the round back-to-top button sits over the end of the line under the form */
@media (max-width: 600px) { form[data-form] > .form__status { padding-right: 3.5rem; } }
button[aria-busy="true"] { opacity: .7; cursor: progress; }
.obf { overflow-wrap: anywhere; }
