/* ===========================================================================
   Shared stylesheet for the rebuilt static sites (ANBA + Do Ngak Dzong).
   Themes are switched via body.theme-anba / body.theme-dongak.
   =========================================================================== */
:root{
  --font-head:'Crimson Text', Georgia, serif;
  --font-body:'Open Sans', system-ui, -apple-system, sans-serif;
  --wrap:1120px;
  --radius:6px;
}
/* ---- theme tokens --------------------------------------------------------- */
body.theme-anba{
  --ink:#181818; --muted:#555; --bg:#ffffff; --panel:#faf9f4;
  --accent:#111111; --accent-2:#f5e400; --accent-ink:#111111;
  --hero-ink:#ffffff; --header-bg:#111111; --header-ink:#ffffff;
  --link:#7a6b00; --rule:#ece9dd;
}
body.theme-dongak{
  --ink:#22201b; --muted:#5c574c; --bg:#ffffff; --panel:#f7f3ea;
  --accent:#8a7433; --accent-2:#c79a3a; --accent-ink:#ffffff;
  --hero-ink:#ffffff; --header-bg:#1b1a17; --header-ink:#f3ead2;
  --link:#96702a; --rule:#eae2d0;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; font-family:var(--font-body); color:var(--ink);
  background:var(--bg); line-height:1.7; font-size:17px;
  -webkit-font-smoothing:antialiased;
}
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 22px;}
.narrow{max-width:720px;}
img{max-width:100%; height:auto; display:block;}
a{color:var(--link);}

/* ---- header / nav --------------------------------------------------------- */
.site-header{background:var(--header-bg); position:sticky; top:0; z-index:50;
  box-shadow:0 1px 0 rgba(255,255,255,.06);}
.nav-inner{display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:64px;}
.brand{color:var(--header-ink); font-family:var(--font-head); font-weight:700;
  font-size:1.35rem; text-decoration:none; letter-spacing:.02em; white-space:nowrap;}
.mainnav>ul{list-style:none; display:flex; gap:2px; margin:0; padding:0; flex-wrap:wrap;}
.mainnav a,.mainnav .navtop{color:var(--header-ink); text-decoration:none; display:block;
  padding:10px 12px; font-size:.82rem; text-transform:uppercase; letter-spacing:.05em;
  cursor:pointer; opacity:.85; border-radius:4px; white-space:nowrap;}
.mainnav a:hover,.mainnav .navtop:hover{opacity:1; background:rgba(255,255,255,.08);}
.mainnav a.active{color:var(--accent-2); opacity:1;}
.has-sub{position:relative;}
.mainnav .submenu{list-style:none; margin:0; position:absolute; left:0; top:100%; min-width:230px; background:var(--header-bg);
  border:1px solid rgba(255,255,255,.12); border-radius:6px; padding:6px;
  display:none; box-shadow:0 12px 30px rgba(0,0,0,.35);}
.mainnav .has-sub:hover>.submenu, .mainnav .has-sub.open>.submenu{display:block;}
.submenu a{text-transform:none; letter-spacing:0; font-size:.9rem; padding:8px 12px;}
.navtoggle,.burger{display:none;}
/* the menu stays on one line on a wide screen */
@media (min-width:861px){ body.theme-anba .mainnav a{padding:10px 9px; font-size:.76rem; letter-spacing:.04em;} }
@media (min-width:861px) and (max-width:1199px){ body.theme-anba .mainnav a{padding:10px 6px; letter-spacing:.02em;} }
@media (min-width:1060px){ body.theme-anba .mainnav>ul{flex-wrap:nowrap;} }

/* ---- hero ----------------------------------------------------------------- */
.hero{position:relative; color:var(--hero-ink); text-align:center;
  background:var(--accent); background-size:cover; background-position:center;}
.hero::before{content:""; position:absolute; inset:0; background:rgba(0,0,0,.42);}
.hero .wrap{position:relative;}
/* a banner's own lines span its width, so a centred line sits on the page's centre */
.hero p{max-width:none;}
.hero-home{min-height:62vh; display:flex; align-items:center; justify-content:center;}
.hero-home h1{font-family:var(--font-head); font-weight:700; font-size:clamp(2.4rem,6vw,4.4rem);
  margin:0; line-height:1.05; text-shadow:0 2px 24px rgba(0,0,0,.5); text-wrap:balance;}
.hero-page{padding:64px 0;}
.hero-page h1{font-family:var(--font-head); font-weight:700; font-size:clamp(2rem,4.5vw,3.1rem);
  margin:0; text-shadow:0 2px 18px rgba(0,0,0,.5); text-wrap:balance;}

/* ---- content sections ----------------------------------------------------- */
.section{padding:52px 0;}
/* a notice from the association, above a page's content */
.site-notice{padding:22px 0; background:#fff7cc; border-bottom:1px solid #e9d977;}
.site-notice p{margin:0 auto; color:#4a4318; font-size:.98rem;}
.site-notice a{color:#6b5a00; font-weight:600;}
.section:nth-of-type(even){background:var(--panel);}
.section .wrap > *:first-child{margin-top:0;}
h2{font-family:var(--font-head); font-weight:700; font-size:clamp(1.7rem,3vw,2.3rem);
  line-height:1.15; margin:0 0 .55em; color:var(--ink);}
h2::after{content:""; display:block; width:56px; height:3px; background:var(--accent-2);
  margin-top:.4em; border-radius:2px;}
h3{font-family:var(--font-head); font-weight:600; font-size:1.35rem; margin:1.6em 0 .5em;}
p{margin:0 0 1.1em; max-width:70ch;}
blockquote{margin:1.4em 0; padding:.4em 0 .4em 1.3em; border-left:4px solid var(--accent-2);
  font-family:var(--font-head); font-size:1.28rem; font-style:italic; color:#333; max-width:64ch;}
figure{margin:1.8em 0;}
figure img{border-radius:var(--radius); box-shadow:0 8px 30px rgba(0,0,0,.12); margin:0 auto;}
/* a picture in the page's flow never stands taller than a screen: its height is capped, its proportions kept */
figure > img{max-height:540px; width:auto;}
.embed{position:relative; width:100%; max-width:760px; aspect-ratio:16/9; margin:1.8em 0;}
.embed iframe{position:absolute; inset:0; width:100%; height:100%; border:0;
  border-radius:var(--radius); box-shadow:0 8px 30px rgba(0,0,0,.14);}
hr{border:0; border-top:1px solid var(--rule); margin:2.4em 0;}

/* ---- buttons -------------------------------------------------------------- */
.btn{display:inline-block; background:var(--accent-2); color:var(--accent-ink);
  font-weight:700; text-decoration:none; padding:13px 26px; border-radius:var(--radius);
  text-transform:uppercase; letter-spacing:.06em; font-size:.85rem; border:0; cursor:pointer;
  transition:transform .12s ease, filter .12s ease;}
.btn:hover{filter:brightness(1.06); transform:translateY(-1px);}

/* ---- forms ---------------------------------------------------------------- */
.form-section{padding:52px 0;}
.form-note{background:#fff7cc; border:1px solid #e9d977; color:#5b5320;
  padding:12px 16px; border-radius:6px; font-size:.9rem; max-width:640px;}
body.theme-dongak .form-note{background:#f3ead2; border-color:#d9c48a; color:#5c4c26;}
.contact-form{display:grid; gap:16px; max-width:560px; margin-top:22px;}
.contact-form label{display:grid; gap:6px; font-weight:600; font-size:.9rem; color:var(--muted);}
.contact-form input,.contact-form textarea{font:inherit; padding:11px 13px;
  border:1px solid #ccc; border-radius:6px; width:100%; background:#fff;}
.contact-form input:focus,.contact-form textarea:focus{outline:2px solid var(--accent-2); border-color:transparent;}
.contact-form .btn{justify-self:start;}
.contact-form .hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}

/* ---- the refuge flow ------------------------------------------------------- */
.steps{max-width:560px; margin:18px 0; padding-left:1.4em; text-align:left;}
.steps li{margin:6px 0;}
.cta{text-align:center; margin:28px 0 8px;}
/* in a page's text a button lines up with the text; a page's closing button stands centred on its own */
.section .cta{text-align:left; margin-bottom:24px;}
.section .cta.cta-end{text-align:center;}
.card-step{margin-left:auto; margin-right:auto;}
.card-step .note{font-size:.9rem; color:var(--muted);}
code{background:#00000010; padding:1px 6px; border-radius:4px; font-size:.85em;}

/* ---- the guided ceremony (DESIGN.md §3) -------------------------------------
   The ceremony pages and the card page take the rite look: Deekshabhoomi behind a dark veil, the recited lines in
   Instrument Serif, cream on black, gold for what guides. Without its script the ceremony shows every panel in
   order, so it reads whole; `assets/js/rite.js` turns it into one panel at a time. */
body.rite{
  --rite-black:#000; --rite-cream:#f5f0e8; --rite-gold:#c4a265; --rite-dim:rgba(245,240,232,.62);
  --rite-serif:'Instrument Serif', Georgia, serif; --rite-sans:'Inter', system-ui, -apple-system, sans-serif;
  background:var(--rite-black); color:var(--rite-cream); font-family:var(--rite-sans); font-weight:300;
}
.rite [hidden]{display:none !important;}
.rite-bg{position:fixed; inset:0; z-index:0; overflow:hidden;}
.rite-bg img{width:100%; height:100%; object-fit:cover; animation:rite-drift 90s ease-in-out infinite;}
@keyframes rite-drift{0%{transform:scale(1.02)} 50%{transform:scale(1.1) translate(-1%,-1%)} 100%{transform:scale(1.02)}}
.rite-veil{position:fixed; inset:0; z-index:1;
  background:linear-gradient(to bottom, rgba(0,0,0,.74), rgba(0,0,0,.66) 40%, rgba(0,0,0,.84));}
.rite-grain{position:fixed; inset:0; z-index:2; pointer-events:none; opacity:.07;}
.rite-grain svg{width:100%; height:100%;}
.rite-top{position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:16px 22px; background:rgba(0,0,0,.35); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(245,240,232,.06);}
.rite-brand{font-family:var(--rite-serif); font-style:italic; font-size:1.3rem; color:var(--rite-cream); text-decoration:none;}
/* the whole ceremony as four steps: each numbered, the current one gold and named, the ones done ticked */
.rite-parts{display:flex; align-items:center; gap:6px; margin:0; padding:0; list-style:none; counter-reset:rite-step;
  font-size:.74rem; letter-spacing:.16em; text-transform:uppercase; color:rgba(245,240,232,.42);}
.rite-parts li{display:flex; align-items:center; gap:8px; counter-increment:rite-step; white-space:nowrap;}
.rite-parts li::before{content:counter(rite-step); display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:24px; border-radius:50%; border:1px solid rgba(245,240,232,.25); font-size:.72rem; letter-spacing:0;}
.rite-parts li:not(:last-child){padding-right:10px; margin-right:4px; border-right:1px solid rgba(245,240,232,.12);}
.rite-parts .done{color:rgba(245,240,232,.7);}
.rite-parts .done::before{content:"✓"; border-color:rgba(196,162,101,.6); color:var(--rite-gold);}
.rite-parts .now{color:var(--rite-gold);}
.rite-parts .now::before{background:var(--rite-gold); border-color:var(--rite-gold); color:#000; font-weight:500;}
.rite-partno{font-size:.74rem; letter-spacing:.3em; text-transform:uppercase; color:var(--rite-gold); margin:0 0 18px;
  max-width:none; opacity:.85;}
.rite-progress{position:fixed; top:0; left:0; right:0; height:2px; z-index:6; background:rgba(245,240,232,.06);}
.rite-progress span{display:block; height:100%; width:0; background:var(--rite-gold); transition:width .6s ease;}
.rite-main{position:relative; z-index:3; max-width:760px; margin:0 auto; padding:0 22px;}
.rite-panel{min-height:calc(100vh - 68px); min-height:calc(100svh - 68px); display:flex; flex-direction:column; justify-content:center;
  align-items:center; text-align:center; padding:56px 0;}
.rite-live .rite-panel{animation:rite-in .7s ease-out;}
@keyframes rite-in{from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none}}
.rite-panel:focus{outline:none;}
.rite-title{font-family:var(--rite-sans); font-weight:500; font-size:.78rem; letter-spacing:.28em; line-height:1.9;
  color:var(--rite-gold); margin:0 0 26px; max-width:46ch;}
.rite-sub{font-family:var(--rite-serif); font-weight:400; font-size:clamp(1.7rem,4.4vw,2.8rem); line-height:1.15;
  letter-spacing:.02em; color:var(--rite-cream); margin:0 0 36px; max-width:24ch;}
.rite-sub::after{display:none;}
.rite-instr{font-style:italic; font-size:.95rem; color:var(--rite-dim); margin:0 0 26px; max-width:none;}
.rite-lines{font-family:var(--rite-serif); font-style:italic; font-size:clamp(1.45rem,3.6vw,2.3rem); line-height:1.38;
  color:var(--rite-cream); margin:0 0 30px; max-width:30ch; text-shadow:0 2px 30px rgba(0,0,0,.6);}
.rite-lines.long{font-size:clamp(1.2rem,2.7vw,1.7rem); max-width:36ch;}
.rite-repeat{font-family:var(--rite-serif); font-style:italic; font-size:1.25rem; color:var(--rite-gold); margin:0 0 28px; max-width:none;}
.rite-note{font-size:.95rem; color:var(--rite-dim); margin:0 0 26px; max-width:46ch;}
.rite-dots{display:flex; gap:12px; justify-content:center; margin:0 0 10px;}
.rite-dots i{width:14px; height:14px; border-radius:50%; border:1px solid var(--rite-gold); transition:background .3s ease;}
.rite-dots i.on{background:var(--rite-gold);}
/* the round being recited: its mark pulses, its name stands under the marks */
.rite-dots i.next{animation:rite-pulse 1.8s ease-in-out infinite;}
@keyframes rite-pulse{0%,100%{box-shadow:0 0 0 0 rgba(196,162,101,.55)} 50%{box-shadow:0 0 0 7px rgba(196,162,101,0)}}
.rite-said{font-family:var(--rite-serif); font-style:italic; font-size:1.35rem; color:var(--rite-cream); margin:4px 0 22px;
  max-width:none;}
/* a press brings the lines back, so each round reads as a new one */
.rite-lines.rite-again{animation:rite-again .9s ease-out;}
@keyframes rite-again{from{opacity:.12; transform:translateY(8px)} to{opacity:1; transform:none}}
html:not(.rite-live) .rite-ctl{display:none !important;}
.rite-nav{display:flex; flex-wrap:wrap; gap:12px; justify-content:center; align-items:center;}
.rite-btn{display:inline-block; font-family:var(--rite-sans); font-weight:500; font-size:.82rem; letter-spacing:.14em;
  text-transform:uppercase; text-decoration:none; cursor:pointer; padding:14px 28px; border-radius:9999px;
  color:var(--rite-gold); background:rgba(0,0,0,.45); border:1px solid rgba(196,162,101,.65);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); transition:background .2s ease, color .2s ease;}
.rite-btn:hover,.rite-btn:focus-visible{background:var(--rite-gold); color:#000; outline:none;}
.rite-btn.ghost{color:rgba(245,240,232,.6); border-color:rgba(245,240,232,.18);}
.rite-btn.ghost:hover,.rite-btn.ghost:focus-visible{background:rgba(245,240,232,.12); color:var(--rite-cream);}
/* the voice: Voice in the top bar turns it off and on (gold while on); Listen on each panel reads it again */
.rite-voice{display:inline-flex; align-items:center; gap:8px; flex:none; font-family:var(--rite-sans); font-weight:500;
  font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; color:var(--rite-gold); background:rgba(0,0,0,.35);
  border:1px solid rgba(196,162,101,.55); border-radius:9999px; padding:7px 14px 7px 10px; cursor:pointer;
  transition:background .2s ease, color .2s ease;}
.rite-voice svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round;
  stroke-linejoin:round;}
.rite-voice .rite-voice-body{fill:currentColor; stroke:none;}
.rite-voice[aria-pressed="true"] .rite-voice-off,.rite-voice[aria-pressed="false"] .rite-voice-on{display:none;}
.rite-voice[aria-pressed="false"]{color:var(--rite-dim); border-color:rgba(245,240,232,.18);}
.rite-voice:hover,.rite-voice:focus-visible{background:rgba(196,162,101,.16); outline:none;}
.rite-listen{display:inline-flex; align-items:center; gap:9px; font-family:var(--rite-sans); font-weight:500;
  font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color:var(--rite-dim); background:none; border:0;
  border-radius:9999px; padding:8px 14px; margin:0 0 18px; cursor:pointer; transition:color .2s ease;}
.rite-listen::before{content:""; border-left:8px solid currentColor; border-top:5px solid transparent;
  border-bottom:5px solid transparent;}
.rite-listen:hover,.rite-listen:focus-visible{color:var(--rite-gold); outline:1px solid rgba(196,162,101,.5);}
.rite .site-footer{position:relative; z-index:3; background:rgba(0,0,0,.6); color:rgba(245,240,232,.5);}
.rite .site-footer .fbrand{font-family:var(--rite-serif); font-style:italic; font-weight:400;}
/* the card page in the rite look: its form on one glass panel */
.rite-card{position:relative; z-index:3; max-width:640px; margin:56px auto; padding:40px 34px; border-radius:24px;
  background:rgba(0,0,0,.5); border:1px solid rgba(245,240,232,.08); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  text-align:center;}
.rite-card p{color:var(--rite-dim); margin-left:auto; margin-right:auto;}
.rite-card .contact-form{margin:26px auto 0; text-align:left;}
.rite-card .contact-form label{color:rgba(245,240,232,.75); font-weight:500;}
.rite-card .contact-form input{background:rgba(255,255,255,.06); border:1px solid rgba(245,240,232,.18); color:var(--rite-cream);}
.rite-card .contact-form input:focus{outline:2px solid var(--rite-gold); border-color:transparent;}
.rite-card .contact-form .rite-btn{justify-self:center; margin-top:6px;}
.rite-card .note{color:rgba(245,240,232,.5); text-align:center;}
.rite-card .note a{color:var(--rite-gold);}
/* the card being made, then made: the button waits, the line under it names the card and offers it again */
.rite-card .rite-btn[disabled]{opacity:.75; cursor:default; background:rgba(0,0,0,.45); color:var(--rite-gold);}
.rite-card .rite-card-status{color:var(--rite-cream); text-align:center; margin:14px auto 0;}
.rite-card .rite-card-status:empty{display:none;}
.rite-card .rite-card-status a{color:var(--rite-gold);}
/* a Hindi label inside a button keeps its letters joined: no added spacing, no case change */
.rite-btn [lang="hi"]{letter-spacing:0; text-transform:none;}
.rite-cardshot{margin:26px auto 8px; max-width:520px;}
.rite-cardshot img{width:100%; height:auto; border-radius:14px; box-shadow:0 18px 50px rgba(0,0,0,.55);}
@media (max-width:640px){
  /* on a phone the top bar takes two rows — the emblem and ANBA with Voice, then the four steps across the width — so
     nothing in it is squeezed under its neighbour, and a panel fills the screen below it */
  .rite-top{flex-wrap:wrap; row-gap:8px; padding:12px 16px;}
  .rite-parts{order:1; flex:1 0 100%; justify-content:center;}
  .rite-panel{min-height:calc(100vh - 92px); min-height:calc(100svh - 92px);}
  /* on a phone the steps keep their numbers and only the current one its name */
  .rite-parts{gap:4px; font-size:.62rem; letter-spacing:.1em;}
  .rite-parts li:not(:last-child){padding-right:6px; margin-right:2px;}
  .rite-parts li:not(.now){font-size:0; gap:0;}
  .rite-parts li::before{font-size:.66rem; width:22px; height:22px;}
  .rite-voice{padding:7px;}
  .rite-voice span{display:none;}
  .rite-panel{padding:40px 0;}
  .rite-card{margin:28px 16px; padding:30px 20px;}
}
@media (prefers-reduced-motion:reduce){
  .rite-bg img{animation:none;}
  .rite-live .rite-panel{animation:none;}
  .rite-progress span{transition:none;}
  .rite-dots i.next{animation:none; box-shadow:0 0 0 3px rgba(196,162,101,.35);}
  .rite-lines.rite-again{animation:none;}
}

/* ---- footer --------------------------------------------------------------- */
.site-footer{background:var(--header-bg); color:var(--header-ink); padding:40px 0; margin-top:0;}
.site-footer .fbrand{font-family:var(--font-head); font-size:1.2rem; font-weight:700; margin:0 0 10px;}
.footnav{margin:0 0 12px; font-size:.9rem;}
.footnav a{color:var(--accent-2); text-decoration:none;}
.footnav a:hover{text-decoration:underline;}
.site-footer .copy{opacity:.6; font-size:.82rem; margin:0;}


/* ---- link cards ------------------------------------------------------------ */
.cardgrid{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:26px; margin:2em 0;}
.cardgrid a.card{display:block; text-decoration:none; color:inherit; border-radius:var(--radius);
  overflow:hidden; box-shadow:0 8px 30px rgba(0,0,0,.12); background:#fff; transition:transform .18s ease, box-shadow .18s ease;}
.cardgrid a.card:hover{transform:translateY(-4px); box-shadow:0 16px 40px rgba(0,0,0,.20);}
.cardgrid a.card img{width:100%; aspect-ratio:4/3; object-fit:cover; display:block; margin:0; border-radius:0; box-shadow:none;}
.cardgrid a.card h3{margin:0; padding:16px 18px; font-size:1rem; letter-spacing:.04em; text-transform:uppercase;}
body.theme-dongak .cardgrid a.card{background:#faf7ef;}


/* ---- external video link (embed disabled by owner) ------------------------- */
.videolink{position:relative; display:block; max-width:760px; margin:1.8em 0; text-decoration:none; color:inherit;
  border-radius:var(--radius); overflow:hidden; box-shadow:0 8px 30px rgba(0,0,0,.18); background:#000;}
.videolink img{width:100%; display:block; margin:0; border-radius:0; box-shadow:none; opacity:.82; transition:opacity .2s ease;}
.videolink:hover img{opacity:1;}
.vl-play{position:absolute; top:38%; left:50%; transform:translate(-50%,-50%);
  width:74px; height:74px; border-radius:50%; background:rgba(0,0,0,.62); color:#fff; font-size:28px;
  display:flex; align-items:center; justify-content:center; padding-left:5px; border:2px solid rgba(255,255,255,.85);}
.videolink:hover .vl-play{background:var(--accent-2); color:#111;}
.vl-cap{display:block; padding:14px 18px; background:var(--header-bg); color:var(--header-ink); font-size:.9rem;}


.connectrow{display:flex; flex-wrap:wrap; gap:12px; align-items:center;}
.connectrow .btn{margin:0;}
.btn-alt{background:transparent; border:2px solid var(--accent-2); color:var(--ink);}
.btn-alt:hover{background:var(--accent-2); color:#111;}

/* ---- responsive ----------------------------------------------------------- */
@media (max-width:860px){
  .burger{display:flex; flex-direction:column; gap:5px; cursor:pointer; padding:8px;}
  .burger span{width:26px; height:2px; background:var(--header-ink); display:block;}
  .mainnav{position:absolute; top:64px; left:0; right:0; background:var(--header-bg);
    max-height:0; overflow:hidden; transition:max-height .3s ease;}
  .navtoggle:checked ~ .mainnav{max-height:80vh; overflow:auto; border-top:1px solid rgba(255,255,255,.1);}
  .mainnav>ul{flex-direction:column; padding:8px;}
  .mainnav .submenu{position:static; display:block; border:0; box-shadow:none; padding-left:14px; background:transparent;}
  .has-sub .navtop{opacity:.65;}
}

/* after the card: the way on to Rinpoche, his teachings and the learning (DESIGN.md §3) */
.rite-after{text-align:center;}
.rite-after p{margin:0 0 18px;}
.rite-after-links{display:flex; flex-wrap:wrap; gap:10px; justify-content:center;}
.rite-after-links .rite-btn{text-decoration:none;}
/* the pairs of buttons the way-through added (DESIGN.md §3): spaced when they wrap, no other button touched */
.cta-pair .btn{margin:5px 4px;}

/* ---- the whole site in the ceremony's look (DESIGN.md §1 · §3) ------------------
   Every ANBA page outside the rite takes the rite's world: Deekshabhoomi behind a dark veil, cream text, gold for what
   guides, Instrument Serif for headings and Inter for the rest, the text in one centred reading column. */
body.theme-anba:not(.rite){
  --ink:#f5f0e8; --muted:rgba(245,240,232,.66); --bg:#000; --panel:rgba(255,255,255,.035);
  --accent:#000; --accent-2:#c4a265; --accent-ink:#000; --hero-ink:#f5f0e8;
  --header-bg:rgba(0,0,0,.62); --header-ink:#f5f0e8; --link:#dcc08a; --rule:rgba(245,240,232,.12);
  --font-head:'Instrument Serif', Georgia, serif; --font-body:'Inter', system-ui, -apple-system, sans-serif;
  background:#000 linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.9)) fixed;
  font-weight:300; color:var(--ink);
}
body.theme-anba:not(.rite)::before{content:""; position:fixed; inset:0; z-index:-1;
  background:url(/images/9b4923f7aba2c9b1.jpeg) center/cover no-repeat; opacity:.16;}
body.theme-anba:not(.rite) .site-header{backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(245,240,232,.07); box-shadow:none;}
body.theme-anba .brand{display:flex; align-items:center; gap:12px; font-family:var(--font-head); font-weight:400;}
body.theme-anba .brand-logo{width:40px; height:40px; flex:none;}
body.theme-anba .brand-text{display:flex; flex-direction:column; line-height:1.1;}
body.theme-anba .brand-name{font-size:1.35rem; letter-spacing:.04em;}
body.theme-anba .brand-sub{font-family:var(--font-body); font-size:.62rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--accent-2); margin-top:3px;}
body.theme-anba:not(.rite) .mainnav a{opacity:.82;}
body.theme-anba:not(.rite) .mainnav a.active{color:var(--accent-2);}
/* the reading column: the page's text centred, at a reading width */
body.theme-anba:not(.rite) main .wrap{max-width:780px;}
body.theme-anba:not(.rite) .section{padding:60px 0;}
body.theme-anba:not(.rite) .section:nth-of-type(even){background:var(--panel);}
body.theme-anba:not(.rite) h2{font-weight:400; font-size:clamp(1.9rem,3.6vw,2.6rem); letter-spacing:.01em;}
body.theme-anba:not(.rite) h3{font-weight:400; font-size:1.5rem; color:var(--ink);}
body.theme-anba:not(.rite) h3 a{color:var(--ink); text-decoration:none;}
body.theme-anba:not(.rite) h3 a:hover{color:var(--accent-2);}
body.theme-anba:not(.rite) p, body.theme-anba:not(.rite) li{color:rgba(245,240,232,.86); max-width:none;}
body.theme-anba:not(.rite) strong{color:var(--ink); font-weight:500;}
body.theme-anba:not(.rite) blockquote{color:rgba(245,240,232,.86); border-left-color:var(--accent-2); font-size:1.4rem;}
body.theme-anba:not(.rite) figure img{box-shadow:0 18px 50px rgba(0,0,0,.6); border-radius:14px;}
body.theme-anba:not(.rite) .hero::before{background:linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.65));}
body.theme-anba:not(.rite) .hero-page{background:transparent; padding:72px 0 40px;}
body.theme-anba:not(.rite) .hero-page::before{display:none;}
body.theme-anba:not(.rite) .hero h1{font-weight:400; letter-spacing:.01em;}
/* the home page opens on the association's emblem: it fills most of the first screen — as wide as a phone allows, as
   tall as a wide screen allows with the title and the button still in view — in a soft gold light on the veil */
body.theme-anba:not(.rite) .hero-home{min-height:calc(100vh - 64px); min-height:calc(100svh - 64px); padding:26px 0 34px;
  background:transparent;}
body.theme-anba:not(.rite) .hero-home::before{background:radial-gradient(closest-side at 50% 44%, rgba(196,162,101,.34),
  rgba(196,162,101,.12) 55%, rgba(0,0,0,0) 100%), linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.55));}
body.theme-anba:not(.rite) .hero-home .wrap{display:flex; flex-direction:column; align-items:center;}
body.theme-anba:not(.rite) .hero-home picture{display:block;}
body.theme-anba:not(.rite) .hero-emblem{width:min(92vw, calc(100vh - 300px), 820px); width:min(92vw, calc(100svh - 300px), 820px);
  height:auto; margin:0 auto 20px; filter:drop-shadow(0 18px 46px rgba(0,0,0,.6)) drop-shadow(0 0 34px rgba(196,162,101,.28));
  animation:anba-emblem-in 1.4s ease-out both;}
body.theme-anba:not(.rite) .hero-home h1{font-size:clamp(2.1rem,5vw,3.6rem);}
body.theme-anba:not(.rite) .hero-home .cta{margin:22px 0 0;}
@keyframes anba-emblem-in{from{opacity:0; transform:scale(.965)} to{opacity:1; transform:none}}
@media (prefers-reduced-motion:reduce){ body.theme-anba:not(.rite) .hero-emblem{animation:none;} }
body.theme-anba:not(.rite) .btn{border-radius:9999px; font-family:var(--font-body); font-weight:500; letter-spacing:.14em;
  font-size:.78rem; padding:14px 28px;}
body.theme-anba:not(.rite) .btn-alt{background:rgba(0,0,0,.35); border:1px solid rgba(196,162,101,.7); color:var(--ink);}
body.theme-anba:not(.rite) .btn-alt:hover{background:var(--accent-2); color:#000;}
body.theme-anba:not(.rite) .site-notice{background:rgba(196,162,101,.1); border-bottom:1px solid rgba(196,162,101,.28);}
body.theme-anba:not(.rite) .site-notice p{color:rgba(245,240,232,.86);}
body.theme-anba:not(.rite) .site-notice a{color:var(--link);}
body.theme-anba:not(.rite) .form-note{background:rgba(196,162,101,.1); border-color:rgba(196,162,101,.35); color:rgba(245,240,232,.86);}
body.theme-anba:not(.rite) .contact-form label{color:rgba(245,240,232,.75); font-weight:500;}
body.theme-anba:not(.rite) .contact-form input, body.theme-anba:not(.rite) .contact-form textarea{background:rgba(255,255,255,.06);
  border:1px solid rgba(245,240,232,.2); color:var(--ink);}
body.theme-anba:not(.rite) .cardgrid a.card{background:rgba(255,255,255,.04); border:1px solid rgba(245,240,232,.08);
  box-shadow:0 18px 40px rgba(0,0,0,.5);}
body.theme-anba:not(.rite) .cardgrid a.card h3{color:var(--ink); font-family:var(--font-body); font-weight:500;}
body.theme-anba:not(.rite) .site-footer{background:rgba(0,0,0,.7); border-top:1px solid rgba(245,240,232,.07);}
body.theme-anba:not(.rite) .site-footer .fbrand{font-weight:400;}
body.theme-anba:not(.rite) .footnav a{color:var(--link);}
/* the header runs wider than the reading column, so the name and the whole menu share one line; below that width
   the long name gives way and the emblem and ANBA stay */
body.theme-anba:not(.rite) .site-header .wrap{max-width:1440px;}
@media (max-width:1439px){ body.theme-anba .brand-sub{display:none;} }
/* the ceremony's header carries the emblem too, at its own width: the steps never squeeze it */
.rite-brand{display:flex; align-items:center; gap:10px; flex:none;}
.rite-brand img{width:34px; height:34px;}

/* ---- the twelve teachings as one path (DESIGN.md §1) ---------------------------
   Each teaching page opens with where it stands on the path: its number of twelve, its group, and the path itself —
   twelve numbered steps in four groups, the ones read ticked gold, the current one filled, and the ceremony at the end. */
.path{position:relative; z-index:1; max-width:780px; margin:28px auto 0; padding:0 22px; text-align:center;}
.path-where{font-size:.72rem; letter-spacing:.24em; text-transform:uppercase; color:#c4a265; margin:0 0 12px;}
.path-steps{display:flex; flex-wrap:wrap; justify-content:center; gap:6px; list-style:none; margin:0; padding:0;}
.path-steps li.group-start:not(:first-child){margin-left:14px;}
.path-steps a{display:inline-flex; align-items:center; justify-content:center; min-width:30px; height:30px; padding:0 8px;
  border-radius:9999px; border:1px solid rgba(245,240,232,.22); color:rgba(245,240,232,.7); font-size:.78rem;
  text-decoration:none;}
.path-steps .done a{border-color:rgba(196,162,101,.6); color:#c4a265;}
.path-steps .now a{background:#c4a265; border-color:#c4a265; color:#000; font-weight:500;}
.path-steps .end a{border-color:rgba(196,162,101,.6); color:#c4a265; letter-spacing:.12em; text-transform:uppercase; font-size:.68rem;}
.path-steps a:hover{border-color:#c4a265; color:#f5f0e8;}
.path-no{display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; margin-right:6px;
  border-radius:50%; border:1px solid rgba(196,162,101,.6); color:#c4a265; font-family:'Inter', system-ui, sans-serif;
  font-size:.8rem; vertical-align:middle;}

/* the learning center: each group of the path as a row of cards, numbered */
body.theme-anba .path-cards{grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:16px; margin:1.2em 0 2.6em;}
body.theme-anba .path-cards a.card img{aspect-ratio:4/3;}
body.theme-anba .path-cards a.card h3{font-size:.98rem; letter-spacing:.02em; text-transform:none; padding:14px 14px 6px;
  display:flex; align-items:center; gap:4px;}
body.theme-anba .path-cards a.card p{font-size:.84rem; padding:0 14px 16px; margin:0; color:rgba(245,240,232,.66);}
