
/* Layout: the festival page as the almanac's own wheel — the day from sunrise to sunrise drawn as a chakra with the festival's picture at its hub: sunrise at the left, noon at the top, sunset at the right, the night across the bottom; the sixty ghatis around the rim, the tithi as an inner ring, the rite's hour as a red wedge at dusk, the dead of night in ink. The wheel fits a phone whole and turns itself once as the page opens. Around it the jantri hand: ink on paper, the stacked red name, the timings as an almanac strip, the pothi of verses with one leaf open. Every size a step of one rem scale, no fixed pixel. */
:root{--paper:#efe5cf;--paper2:#e3d6bb;--board:#cbbd9c;--ink:#161411;--red:#b3261e;--saffron:#d6891a;--gold:#a8842b;--rule:#8c7b5a;--faint:#5e5340;--leafink:#30200c;--manu:#8f1508;
  --dev-display:"Tiro Devanagari Hindi","Martel","Noto Serif Devanagari",serif;--dev:"Martel","Noto Serif Devanagari",serif;--scribe:"Amita","Tiro Devanagari Sanskrit","Noto Serif Devanagari",serif;--en:"Literata","Georgia","Times New Roman",serif;--en-display:"Old Standard TT","Literata","Georgia",serif;
  --fs-xs:clamp(1rem,.93rem + .3cqw,1.125rem);--fs-s:clamp(1.0625rem,.97rem + .4cqw,1.25rem);--fs-b:clamp(1.1875rem,1.06rem + .5cqw,1.375rem);--fs-m:clamp(1.3125rem,1.15rem + .6cqw,1.5rem);--fs-l:clamp(1.5rem,1.3rem + .8cqw,1.875rem);--fs-xl:clamp(2.25rem,1.8rem + 2cqw,3.25rem);
  color-scheme:light}
*{box-sizing:border-box}
html{font-size:100%}
body{margin:0;background:var(--board);color:var(--ink);font-family:var(--en);font-size:var(--fs-b);line-height:1.5;font-variant-numeric:tabular-nums}
a{color:var(--red)}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.board{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:1.6rem 4rem;display:flex;flex-direction:column;align-items:center;gap:2.75rem}
.sheet{width:100%;max-width:1120px;min-width:0}
.shcap{font-family:var(--en);font-size:.8125rem;letter-spacing:.22em;text-transform:uppercase;color:#3f3524;margin:0 0 .6rem}.shcap b{font-family:var(--dev);font-weight:400;font-size:1rem;letter-spacing:0;margin-right:.4rem}
.frame{background:var(--paper);background-image:repeating-linear-gradient(0deg,transparent 0 27px,rgba(22,20,17,.045) 27px 28px);box-shadow:0 22px 44px -20px rgba(30,18,4,.65),0 1px 0 rgba(255,255,255,.4) inset}
.frame.desk{width:100%}
.frame.phone{width:400px;max-width:100%;border-radius:22px;overflow:hidden;border:1px solid rgba(22,20,17,.4);margin:0 auto}
.page{container:page / inline-size;padding-left:1.25rem;padding-right:1.25rem;padding-block:.75rem 3.5rem;font-size:var(--fs-b)}
.frame.phone .page{padding-left:1rem;padding-right:1rem}
@media (prefers-reduced-motion:no-preference){
  .page.enter .hname2{animation:print .95s cubic-bezier(.25,.6,.2,1) .15s both}
  .page.enter .hub{animation:lit 1.6s ease-out 1.2s both}
  @keyframes print{from{clip-path:inset(-30% 100% -30% -3%)}to{clip-path:inset(-30% -3% -30% -3%)}}@keyframes lit{from{filter:brightness(.08) sepia(.6)}to{filter:brightness(1) sepia(0)}}
}

/* ─── the masthead ─── */
.mast{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:.9rem;border-top:3px double var(--ink);border-bottom:1px solid var(--ink);padding:.4rem 0 .3rem;font-family:var(--dev)}
.mast .l,.mast .r{font-size:var(--fs-xs);color:var(--faint);white-space:nowrap}.mast .r{text-align:right}
.mast .c{text-align:center;font-size:var(--fs-m);color:var(--red);font-family:var(--dev-display)}.mast .c small{display:block;font-family:var(--en);font-size:var(--fs-xs);letter-spacing:.09em;color:var(--ink)}
.mast .l small,.mast .r small{display:block;font-family:var(--en);font-size:var(--fs-xs)}.mast a{text-decoration:none}

/* ─── the hero: the wheel and the name ─── */
.hero{display:grid;grid-template-columns:minmax(0,46%) minmax(0,1fr);grid-template-areas:"wheel nm";gap:0 2.4rem;align-items:center;padding:1rem 0 .75rem;border-bottom:1px solid var(--rule)}
.nm{grid-area:nm;min-width:0}
.hname2{font-family:var(--dev-display);font-weight:400;font-size:clamp(2.4rem,1rem + 6.4cqw,5rem);line-height:1.08;margin:0;padding:.03em 0;color:var(--red);letter-spacing:-.004em}.hname2 span{display:block}
.hen2{font-family:var(--en-display);font-style:italic;font-size:clamp(1.25rem,.9rem + 1.3cqw,1.6rem);margin:.75rem 0 0;line-height:1.2}.hen2 span{color:var(--faint)}
.dline{display:flex;align-items:center;gap:1rem;margin:1rem 0 0}
.dline .big{font-family:var(--dev-display);font-size:clamp(3.5rem,2rem + 4cqw,5rem);line-height:.78;color:var(--red)}
.dline .cal{font-family:var(--dev);font-size:var(--fs-s);line-height:1.35;color:var(--ink);border-left:1px solid var(--ink);padding-left:.9rem}.dline .cal i{font-family:var(--en);font-style:normal;color:var(--faint)}.dline .cal b{font-family:var(--en);font-weight:400;font-size:var(--fs-l);display:block;line-height:1;margin-bottom:.2rem}
.hsub2{margin:.75rem 0 0;max-width:40ch;font-size:var(--fs-m)}
.kept2{margin:.75rem 0 0;max-width:46ch;font-size:var(--fs-b);color:var(--ink)}.kept2 b{font-family:var(--dev-display);font-weight:400;color:var(--red);margin-right:.4rem}
.strip{display:flex;flex-wrap:wrap;gap:.4rem 1.1rem;font-size:var(--fs-s);color:var(--faint);margin-top:.9rem}.strip a{text-decoration:none;border-bottom:1px solid var(--red)}.strip b{font-family:var(--dev);font-weight:400;color:var(--red)}
/* the wheel */
.wheel{grid-area:wheel;position:relative;width:100%;max-width:560px;margin:0 auto}
.wheel .disc{position:relative;width:100%}
.wheel svg{width:100%;height:auto;display:block}
.wheel .hub{position:absolute;left:50%;top:50%;width:62.5%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;object-fit:cover;object-position:50% 30%;box-shadow:0 0 0 3px var(--gold),0 0 0 5px var(--paper),0 10px 30px -10px rgba(20,10,0,.6)}
.wheel .cap .saf{color:#9c6410}
.wheel text{font-family:var(--dev);fill:var(--ink)}.wheel .gh{font-size:17px;fill:var(--faint)}.wheel .lab{font-size:19px}.wheel .lab.red{fill:var(--red)}.wheel .lab.saf{fill:#9c6410}.wheel .lab.q{fill:var(--faint)}.wheel .en{font-family:var(--en);font-size:16px;fill:var(--faint)}
.wheel .cap{text-align:center;font-family:var(--dev-display);color:var(--red);font-size:var(--fs-s);margin:.5rem 0 0}.wheel .cap i{font-family:var(--en);font-style:italic;color:var(--faint);font-size:var(--fs-xs);margin-left:.4rem}
.legend{display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.25rem;font-size:var(--fs-s);color:var(--faint);margin:.6rem 0 0}.legend b{display:inline-block;width:1.4em;height:.6em;vertical-align:middle;margin-right:.4em}
@media (prefers-reduced-motion:no-preference){
  .wheel.pre .t,.wheel.pre .night,.wheel.pre .band,.wheel.pre .wedge,.wheel.pre .blk,.wheel.pre .lab,.wheel.pre .gh,.wheel.pre .hz{opacity:0}
  .wheel.pre .rim{stroke-dasharray:1;stroke-dashoffset:1}
  .wheel.anim .rim{stroke-dasharray:1;stroke-dashoffset:1;animation:draw 1.3s ease-out both}
  .wheel.anim .t,.wheel.anim .gh{animation:fade .3s both;animation-delay:calc(var(--d)*1ms)}
  .wheel.anim .hz{animation:fade .6s both .9s}
  .wheel.anim .night{animation:fade .8s ease-out both 1s}
  .wheel.anim .band{animation:fade .6s both 1.3s}
  .wheel.anim .wedge{stroke-dasharray:1;stroke-dashoffset:1;animation:draw .8s ease-out both 1.7s}
  .wheel.anim .blk{animation:fade .5s both 2.1s}
  .wheel.anim .lab{animation:fade .5s both;animation-delay:calc(2s + var(--d)*1ms)}
  @keyframes draw{to{stroke-dashoffset:0}}@keyframes fade{from{opacity:0}to{opacity:1}}
}

h2{font-family:var(--dev-display);font-weight:400;color:var(--red);font-size:var(--fs-l);margin:0 0 .5rem;border-bottom:1px solid var(--rule);padding-bottom:.25rem}
h2 i{font-family:var(--en);font-style:italic;font-size:var(--fs-xs);color:var(--faint);margin-left:.5rem}
section{margin:0 0 1.5rem}.full{padding:1rem 0 0}
.why{font-size:var(--fs-b);max-width:72ch;margin:0}
details{margin-top:.4rem}details summary{cursor:pointer;list-style:none;font-family:var(--dev);color:var(--red);font-size:var(--fs-s)}details summary::-webkit-details-marker{display:none}details summary::before{content:"»  "}details p{margin:.4rem 0 0;max-width:72ch}
.tim{display:grid;grid-template-columns:2.75rem minmax(0,1.1fr) minmax(0,1fr) minmax(0,1.3fr);gap:0 .9rem;align-items:center;padding:.6rem 0;border-bottom:1px dotted var(--rule)}
.tim.main{background:linear-gradient(90deg,rgba(214,137,26,.22),rgba(214,137,26,0) 70%);border-left:4px solid var(--saffron);padding-left:.6rem;margin-left:-.9rem}
.tim svg{width:2.4rem;height:2.4rem;display:block}
.tim .k{font-family:var(--dev);font-size:var(--fs-m);color:var(--red)}.tim .k i{display:block;font-family:var(--en);font-style:italic;font-size:var(--fs-xs);color:var(--faint)}
.tim .t{font-family:var(--en);font-size:var(--fs-l);line-height:1.05}.tim .t small{display:block;font-family:var(--dev);font-size:var(--fs-xs);color:var(--faint);margin-top:.2rem}
.tim .n{font-size:var(--fs-s);color:var(--ink)}
.trad{border-left:3px solid var(--red);padding-left:.9rem;margin:0;max-width:78ch;font-size:var(--fs-b)}.trad p{margin:0 0 .5rem}
.news{column-count:2;column-gap:2.5rem;column-rule:1px solid var(--rule);margin-top:1.1rem}
.news section{break-inside:avoid;margin:0 0 1.4rem}
ol.keep{padding-left:1.2em;margin:0;font-size:var(--fs-b)}ol.keep li{margin:.4rem 0}
.story p{margin:0 0 .75rem;max-width:68ch;font-size:var(--fs-b)}
.mantra{font-family:var(--dev);font-size:var(--fs-s);margin:.75rem 0 0;border-top:1px dotted var(--rule);padding-top:.6rem;color:#9c6410}.mantra .sa{font-family:var(--dev-display);font-size:var(--fs-l);display:block;color:var(--red);line-height:1.5}.mantra i{font-family:var(--en);font-style:italic;color:var(--faint);font-size:var(--fs-xs)}
.years{display:grid;grid-template-columns:auto 1fr;gap:.25rem .9rem;font-size:var(--fs-b)}.years .y{font-family:var(--dev);color:var(--faint)}.years .y i{font-family:var(--en);font-style:normal;font-size:var(--fs-xs)}.years .now{color:var(--red)}.years a{text-decoration:none;border-bottom:1px solid var(--rule)}.years a.now{border-bottom-color:var(--red)}
.near{list-style:none;padding:0;margin:0;font-size:var(--fs-b)}.near li{border-bottom:1px dotted var(--rule)}
.near a{display:flex;gap:.75rem;justify-content:space-between;align-items:baseline;padding:.45rem 0;color:var(--ink);text-decoration:none}
.near a::before{content:"";flex:0 0 .7em;width:.7em;height:.7em;border-radius:50%;border:2px solid var(--red);background:var(--paper);align-self:center}
.near li.quiet a{color:var(--faint)}.near li.quiet a::before{border-color:var(--rule);background:var(--paper2);width:.55em;height:.55em;flex-basis:.55em}
.near li.now a{background:linear-gradient(90deg,rgba(214,137,26,.22),rgba(214,137,26,0) 80%);margin:0 -.5rem;padding-left:.5rem;padding-right:.5rem}.near li.now a::before{background:var(--saffron);box-shadow:0 0 0 3px var(--paper),0 0 0 5px var(--red)}
.near a span{flex:1 1 auto;min-width:0}.near a:hover span,.near a:focus-visible span{text-decoration:underline}
.near b{font-family:var(--dev);font-weight:400;color:var(--faint);white-space:nowrap}.near b i{font-family:var(--en);font-style:normal;font-size:var(--fs-xs)}.near li.now b{color:var(--red)}
.near small{display:block;font-size:var(--fs-xs);color:var(--faint)}
.foot{border-top:3px double var(--ink);margin-top:.4rem;padding-top:.6rem;display:flex;flex-wrap:wrap;gap:1.1rem;align-items:center;font-size:var(--fs-s)}.foot a{text-decoration:none;border-bottom:1px solid var(--red)}.foot .pn{font-family:var(--dev)}

/* ─── the pothi: one leaf open, the rest folded beneath; a tap lets them roll down ─── */
.pothi{padding:1rem 0 .6rem;border-bottom:1px solid var(--rule);margin:0 0 .4rem}
.pothi .cap{font-family:var(--dev-display);color:var(--red);font-size:var(--fs-m);margin:0 0 .6rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}.pothi .cap i{font-family:var(--en);font-style:italic;color:var(--faint);font-size:var(--fs-xs);margin-left:.5rem}
.bundle{position:relative;padding-bottom:4px;perspective:1200px;cursor:pointer}
.bundle .cordlong{position:absolute;left:9%;top:-16px;bottom:10px;width:8px;transform:translateX(-50%);background:linear-gradient(90deg,rgba(255,250,220,.35),rgba(255,250,220,0) 45%,rgba(60,20,5,.3)),repeating-linear-gradient(52deg,#e9c43b 0 4px,#b3261e 4px 9px);border-radius:4px;box-shadow:1px 0 3px rgba(0,0,0,.45);z-index:0}
.leaf{position:relative;color:var(--leafink);padding:1.6rem 7% 1.4rem 17%;min-height:9rem;margin:0 0 1rem;transform-origin:50% 0;z-index:1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .06' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .19 0 0 0 0 .04 0 0 0 .42 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(90deg,rgba(55,30,4,.42),rgba(55,30,4,.08) 9%,rgba(55,30,4,0) 20%,rgba(55,30,4,0) 80%,rgba(55,30,4,.1) 92%,rgba(55,30,4,.45)),
    linear-gradient(180deg,rgba(255,241,206,0) 9%,rgba(255,241,206,.15) 20%,rgba(255,241,206,.15) 86%,rgba(255,241,206,0) 95%),
    repeating-linear-gradient(0deg,rgba(70,42,10,.11) 0 1px,transparent 1px 5px,rgba(110,75,25,.06) 5px 6px,transparent 6px 11px),
    repeating-linear-gradient(0deg,transparent 0 37px,rgba(40,22,4,.17) 37px 38px,transparent 38px 71px),
    radial-gradient(ellipse at 22% 35%,rgba(70,40,8,.26),transparent 42%),radial-gradient(ellipse at 78% 70%,rgba(70,40,8,.22),transparent 38%),radial-gradient(ellipse at 48% 60%,rgba(90,55,15,.18),transparent 30%),radial-gradient(ellipse at 90% 40%,rgba(50,28,6,.3),transparent 26%),radial-gradient(ellipse at 55% 15%,rgba(255,235,190,.16),transparent 30%),
    repeating-linear-gradient(0deg,transparent 0 2px,rgba(255,236,200,.07) 2px 3px,transparent 3px 9px,rgba(60,35,8,.08) 9px 10px,transparent 10px 16px),
    linear-gradient(180deg,#cfa561,#bf9150 55%,#aa7f41);
  background-blend-mode:multiply,normal,normal,normal,normal,normal,normal,normal,normal,normal,normal,normal;
  box-shadow:inset 0 0 34px rgba(50,28,4,.45),inset 0 1px 0 rgba(255,238,200,.32),inset 0 -2px 0 rgba(255,235,190,.2),0 12px 24px -10px rgba(20,10,0,.6);
  clip-path:polygon(1% 11%,2.6% 3%,6% .8%,12% 2%,19% .6%,31% 1.9%,44% .2%,57% 1.8%,69% .5%,81% 1.6%,90% .4%,95% 1.8%,98% 4%,99.6% 13%,100% 46%,99.2% 84%,98% 95%,95% 99.3%,86% 98.2%,74% 99.7%,61% 98.1%,48% 99.6%,35% 98.3%,22% 99.5%,11% 98.4%,5% 99.1%,2% 96%,.4% 86%,0 52%)}
.leaf:nth-child(odd){clip-path:polygon(.5% 14%,1.9% 4%,5% .5%,14% 2.2%,24% .3%,37% 2%,49% .4%,62% 1.9%,75% .2%,86% 1.7%,94% .6%,97.4% 3%,99.3% 10%,99.9% 44%,99.4% 83%,98.2% 96%,94% 99.5%,83% 98%,70% 99.8%,55% 98.4%,41% 99.7%,27% 98.1%,15% 99.4%,6% 98.6%,2.2% 95%,.3% 85%,0 50%)}
.bundle .leaf:nth-child(3){transform:rotate(.4deg)}.bundle .leaf:nth-child(4){transform:rotate(-.35deg) translateX(3px);filter:sepia(.08)}.bundle .leaf:nth-child(5){transform:rotate(.3deg) translateX(-2px);filter:brightness(.97)}
.leaf::after{content:"";position:absolute;inset:0;pointer-events:none}
.bundle .leaf:nth-child(2)::after{background:linear-gradient(135deg,var(--paper) 0 13px,rgba(30,15,2,.55) 13px 15px,transparent 16px) no-repeat 0 0 / 60px 60px,radial-gradient(ellipse at 97% 30%,rgba(28,14,2,.5),transparent 9%)}
.bundle .leaf:nth-child(3)::after{background:linear-gradient(90deg,rgba(40,20,4,.5),rgba(40,20,4,.22) 6%,transparent 16%)}
.bundle .leaf:nth-child(4)::after{background:linear-gradient(225deg,var(--paper) 0 10px,rgba(30,15,2,.5) 10px 12px,transparent 13px) no-repeat 100% 0 / 50px 50px,radial-gradient(ellipse at 30% 90%,rgba(28,14,2,.42),transparent 14%)}
.bundle .leaf:nth-child(5)::after{background:linear-gradient(270deg,rgba(40,20,4,.5),rgba(40,20,4,.2) 7%,transparent 18%)}
.leaf .hole{position:absolute;left:9%;top:50%;width:30px;height:22px;transform:translate(-50%,-50%);border-radius:50%;overflow:hidden;background:radial-gradient(ellipse at 45% 45%,#0e0702 0 44%,#2e1d0a 64%,rgba(120,80,25,.45) 80%,rgba(200,160,90,.35) 90%,transparent 96%);box-shadow:0 0 0 2px rgba(60,38,8,.35),inset 0 2px 3px rgba(0,0,0,.6);z-index:1}
.leaf .hole::after{content:"";position:absolute;left:50%;top:-4px;height:64%;width:8px;transform:translateX(-50%);background:linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.55)),repeating-linear-gradient(52deg,#e9c43b 0 4px,#b3261e 4px 9px);border-radius:0 0 4px 4px}
.leaf .thread{position:absolute;left:9%;top:-3px;height:calc(50% + 2px);width:8px;transform:translateX(-50%);background:linear-gradient(90deg,rgba(255,250,220,.35),rgba(255,250,220,0) 45%,rgba(60,20,5,.3)),repeating-linear-gradient(52deg,#e9c43b 0 4px,#b3261e 4px 9px);border-radius:4px 4px 0 0;box-shadow:2px 2px 4px rgba(20,10,0,.5);z-index:2}
.leaf .shri{position:absolute;left:calc(9% + 12px);top:.7rem;font-family:var(--scribe);font-weight:700;font-size:var(--fs-s);color:var(--manu);text-shadow:0 0 2px rgba(255,238,205,.45);z-index:2}
.leaf .mbar{position:absolute;top:7%;bottom:7%;width:8px;background:linear-gradient(90deg,#7e1f14,#b0301d 45%,#7e1f14);opacity:.72;border-radius:1px}.leaf .mbar.l{left:14.2%}.leaf .mbar.r{right:4.6%}
.leaf .num{position:absolute;right:1.4%;top:50%;transform:translateY(-50%) rotate(90deg);font-family:var(--scribe);font-weight:700;font-size:var(--fs-s);color:var(--manu)}
.leaf .sa{font-family:var(--scribe);font-weight:700;font-size:var(--fs-l);line-height:1.75;margin:0 0 .5rem;letter-spacing:.012em;color:var(--manu);text-shadow:0 0 2px rgba(255,238,205,.45);position:relative;z-index:1}
.leaf .mn{font-family:var(--en);font-style:normal;font-weight:600;font-size:var(--fs-b);line-height:1.5;margin:0 0 .25rem;color:#1a0f05;text-shadow:0 0 2px rgba(255,238,205,.35);max-width:70ch;position:relative;z-index:1}
.edges{position:relative;height:30px;margin:-10px 1.5% 0 1.5%;z-index:0}
.edges i{position:absolute;left:0;right:0;height:10px;border-radius:2px;background:linear-gradient(180deg,#c39a57,#a57a3b);box-shadow:inset 0 -2px 0 rgba(0,0,0,.28),0 2px 3px rgba(0,0,0,.2)}
.edges i:nth-child(1){top:0;left:2px;right:5px}.edges i:nth-child(2){top:8px;left:6px;right:1px}.edges i:nth-child(3){top:16px;left:3px;right:4px}
.bundle:not(.open) .leaf:not(:first-of-type){display:none}
.pothi .tag{display:flex;justify-content:flex-end;margin-top:.4rem}
.pothi .tag button{font-family:var(--dev);font-size:var(--fs-s);color:var(--red);background:none;border:0;border-bottom:1px solid var(--red);padding:.1rem 0;cursor:pointer}.pothi .tag button i{font-family:var(--en);font-style:italic;color:var(--faint);font-size:var(--fs-xs);margin-left:.4rem}
@media (prefers-reduced-motion:no-preference){
  .bundle.open .leaf:not(:first-of-type){animation:drop .62s cubic-bezier(.3,.7,.3,1) both}
  .bundle.open .leaf:nth-of-type(2){animation-delay:.05s}.bundle.open .leaf:nth-of-type(3){animation-delay:.32s}.bundle.open .leaf:nth-of-type(4){animation-delay:.59s}.bundle.open .leaf:nth-of-type(5){animation-delay:.86s}
  @keyframes drop{from{transform:rotateX(-92deg) translateY(-6px);opacity:.2}to{transform:rotateX(0) translateY(0);opacity:1}}
}

/* ─── the phone: the name first, then the wheel whole ─── */
@container page (max-width:640px){
  .mast{grid-template-columns:1fr;gap:.1rem;padding:.3rem 0 .25rem}.mast .l,.mast .r{display:none}.mast .c small{letter-spacing:.04em}.mast .yr{display:none}
  .hero{grid-template-columns:1fr;grid-template-areas:"nm" "wheel";gap:1rem 0;padding:.75rem 0 .6rem}
  .hname2{font-size:clamp(2.1rem,1rem + 10.5cqw,3.4rem)}.hen2{font-size:var(--fs-s);margin-top:.5rem}
  .dline{margin-top:.75rem}.dline .big{font-size:3.6rem}
  .hsub2{margin-top:.6rem;max-width:none}.kept2{max-width:none}.strip{margin-top:.6rem}
  .wheel .gh{font-size:21px}.wheel .lab{font-size:22px}.wheel .en{font-size:21px}
  .tim{grid-template-columns:2.25rem 1fr;gap:.25rem .6rem}.tim .t{grid-column:2}.tim .n{grid-column:2}.tim.main{margin-left:0}
  .leaf{padding:1.4rem 9% 1.2rem 19%}.leaf .num{display:none}
  .foot{gap:.75rem 1rem}
}
@container page (max-width:760px){.news{column-count:1}}

/* the Diwali language pass (2026-10-22): a verse's when, the aarti leaf, the sixteen under their step, the katha line */
.leaf .when{font-family:var(--en);font-style:italic;font-size:var(--fs-xs);line-height:1.4;color:var(--faint);margin:0 0 .35rem;position:relative;z-index:1}
.leaf .at{font-family:var(--dev-display);font-size:var(--fs-m);color:var(--manu);margin:0 0 .45rem;position:relative;z-index:1}
.leaf .at i{font-family:var(--en);font-style:italic;font-size:var(--fs-xs);color:var(--faint);margin-left:.5rem}
.leaf .sa.aa{font-size:var(--fs-b);line-height:1.7}
/* a verse's long compound breaks at the leaf's margin bar instead of running over it (seen on the phone sheet, Diwali verse 1, the lines ending नमिता and खचितैः; Harsh 2026-10-22 "do it") — no hyphen, no letter touched, no effect where the word fits */
.leaf .sa{overflow-wrap:anywhere}
/* the vidhi list's left room: the board's 1.2em holds one digit, so "10." was clipped at the margin (Harsh 2026-10-22 "the number 10. in pooja vidhi is also getting cut") — room for two digits and the point */
ol.keep{padding-left:2em}
ol.keep .lexsub{display:block;margin:.25rem 0 0 1rem;font-size:var(--fs-xs);line-height:1.5;color:var(--faint)}
.story .kathanote{font-size:var(--fs-xs);color:var(--faint);margin:.35rem 0 0}
.story .kathanote svg{width:.8em;height:.8em;vertical-align:-.05em;margin-right:.35em}
/* the masthead's other-reckoning bracket (Harsh 2026-10-23 "the Ashwin amanta thing should come in next line below … the whole bracket thing should be lower line" · "masthead approved"): on the desk the year stays beside the date and the bracket stands whole on its own lower line; on the phone, where the year does not print, the bracket stays on the tithi's line, whole, with its dot */
.mast .c small .am{display:block}
@container page (max-width:640px){.mast .c small .am{display:inline;white-space:nowrap}.mast .c small .am::before{content:" · "}}

/* the Hindi meaning line under a verse's English meaning (Harsh 2026-10-28 "hindi: all"): the .mn line's own size, weight and ink, in the Devanagari face */
.leaf .mn.hi{font-family:var(--dev);line-height:1.65;margin:.2rem 0 .25rem}

/* T5 — the print's style attributes as classes (W-PRINT-PREP, 2026-10-31: the launch's style-src 'self' refuses a style attribute); each declaration verbatim */
.legend b.t5-next{background:#d6891a}
.legend b.t5-now{background:#e3d6bb;border:1px solid #8c7b5a}
.legend b.t5-hour{border:2px solid #b3261e}
.legend b.t5-mark{background:#b3261e;height:3px;border-radius:2px}
.legend b.t5-block{background:#a8842b}
p.t5-who{margin:0}

/* THE PRINT'S TAIL — Harsh 2026-11-07 10:2x on the ninth sheet ("Recommend A. -- approvedfor sheets"): in print the page's and the board's bottom rooms are 0, so no sheet is laid for the room below the foot (the bisection's copy 12_two-pads, 9 → 8 sheets, the content's end unmoved); the screen is unchanged; and the foot is never broken across two sheets — the seat's third run 10:5x: a wrapped foot left a name-only trailing sheet on chhath and makara — his "foot: yes" 2026-11-07 11:1x */
@media print{.page{padding-bottom:0}.board{padding-bottom:0}.foot{break-inside:avoid}}
