/* ᱢᱟᱹᱦᱤᱛ Santali calendar — styles. Brand: artagom (navy, amber, cream; Outfit + Noto Sans Ol Chiki). */
:root {
  --navy:#13263F; --navy80:#2B4060; --navy60:#5A6B85; --amber:#E8A43C; --amber-soft:#FBEBD0; --deep:#96600F;
  --cream:#F7F3EA; --paper:#FFFDF8; --soft:#4A5668; --line:#E4E0D6; --muted-dark:#B9C2CF; --ok:#2F6B3A; --bad:#A83222;
  --top:52px; --bar:58px; --r:18px;
  --sat:'OlChiki','Outfit',system-ui,sans-serif;
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { margin:0; height:100%; background:var(--cream); color:var(--navy); font-family:'Outfit',system-ui,sans-serif; }
[lang="sat"] { font-family:var(--sat); }
body.app { overflow:hidden; overscroll-behavior:none; }
button { font:inherit; color:inherit; }
a { color:var(--navy); }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
svg.i { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }

/* ---------- top bar ---------- */
.top { position:fixed; top:0; left:0; right:0; z-index:4; height:calc(var(--top) + env(safe-area-inset-top)); padding:env(safe-area-inset-top) 6px 0 14px;
  display:flex; align-items:center; gap:4px; background:var(--cream); border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:8px; margin-right:auto; text-decoration:none; color:var(--navy); }
.brand .sym { width:24px; height:24px; }
.brand b { font-family:var(--sat); font-size:19px; font-weight:600; line-height:1; }
.iconbtn { appearance:none; border:0; background:none; width:44px; height:44px; border-radius:22px; display:grid; place-items:center; cursor:pointer; position:relative; }
.iconbtn:active { background:var(--line); }
.iconbtn .badge { position:absolute; top:9px; right:10px; width:8px; height:8px; border-radius:4px; background:var(--amber); box-shadow:0 0 0 2px var(--cream); }
.todaybtn { appearance:none; border:1.5px solid var(--navy); background:none; height:32px; padding:0 12px; border-radius:16px; font-size:13px; font-weight:600;
  letter-spacing:.04em; cursor:pointer; margin-right:2px; }
.todaybtn[hidden] { display:none; }

/* ---------- month pager (three panes, recentred after each swipe) ---------- */
.pager { position:fixed; left:0; right:0; top:calc(var(--top) + env(safe-area-inset-top)); bottom:calc(var(--bar) + env(safe-area-inset-bottom));
  display:flex; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; }
.pager::-webkit-scrollbar { display:none; }
.pg { flex:0 0 100%; height:100%; overflow-y:auto; overflow-x:hidden; scroll-snap-align:start; scroll-snap-stop:always; display:flex; flex-direction:column; }
.vine { display:block; width:100%; height:auto; flex:none; margin-top:auto; }
.wrap { width:100%; max-width:560px; margin:0 auto; padding:12px 12px 0; }

/* photo carousel */
.photo { position:relative; aspect-ratio:178/67; border-radius:var(--r); overflow:hidden; background:var(--line); }
.photo .slides { display:flex; width:100%; height:100%; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:none; }
.photo .slides::-webkit-scrollbar { display:none; }
.photo img { flex:0 0 100%; width:100%; height:100%; object-fit:cover; display:block; scroll-snap-align:start; scroll-snap-stop:always; }
.dots { position:absolute; left:0; right:0; bottom:4px; display:flex; justify-content:center; pointer-events:none; }
.dots button { pointer-events:auto; appearance:none; border:0; background:none; width:24px; height:24px; padding:0; cursor:pointer; display:grid; place-items:center; }
.dots button::before { content:''; width:7px; height:7px; border-radius:4px; background:rgba(255,255,255,.7); box-shadow:0 0 0 1px rgba(19,38,63,.3); transition:width .2s; }
.dots button[aria-selected="true"]::before { width:18px; background:#fff; }

/* month heading: Santali first */
.head { text-align:center; padding:12px 0 8px; border-bottom:1.5px solid var(--navy); }
.head h1 { margin:0; font-family:var(--sat); font-size:38px; font-weight:600; line-height:1.25; }
.head .sub { display:flex; flex-wrap:wrap; justify-content:center; align-items:baseline; gap:0 10px; font-size:14px; line-height:1.7; }
.head .sub .l { font-weight:500; }
.head .sub .y { font-family:var(--sat); font-weight:500; }
.head .sub .g { color:var(--soft); }
.sep { color:var(--navy60); }
.ev { list-style:none; margin:4px 0 0; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:2px 16px; font-size:13px; line-height:1.55; }
.ev li { display:inline-flex; align-items:center; gap:5px; cursor:pointer; }
.ev b { color:var(--deep); font-weight:600; font-family:var(--sat); }
.ev small { color:var(--soft); font-size:11.5px; }
.dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--amber); flex:none; }

/* weekdays + grid */
.wd { display:grid; grid-template-columns:repeat(7,1fr); text-align:center; padding:6px 0 5px; }
.wd .o { display:block; font-family:var(--sat); font-size:11.5px; font-weight:500; line-height:1.5; }
.wd .e { display:block; font-size:9.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--soft); line-height:1.2; }
.wd .sun .e, .wd .sun .o { color:var(--deep); }
.grid { display:grid; grid-template-columns:repeat(7,1fr); border-top:1.5px solid var(--navy); border-left:1px solid var(--navy); }
.c { appearance:none; background:none; border:0; border-right:1px solid var(--navy); border-bottom:1px solid var(--navy); border-radius:0; margin:0;
  position:relative; min-height:clamp(60px, 16vw, 80px); display:flex; flex-direction:column; align-items:center; padding:6px 1px 4px; cursor:pointer; color:var(--navy); }
.c:disabled { cursor:default; }
.c .sd { font-family:var(--sat); font-size:clamp(23px, 7.4vw, 33px); font-weight:600; line-height:1.1; font-variant-numeric:tabular-nums; }
.c .gd { font-size:12px; line-height:1.4; color:var(--soft); margin-top:2px; display:inline-flex; align-items:center; gap:3px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.c .gd .dot { width:5px; height:5px; }
.c .gm { font-size:9.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--deep); line-height:1.2; }
.c.gfirst .gd { color:var(--navy); font-weight:600; }
.c.sun .sd, .c.hol .sd { color:var(--deep); }
.c.hol { background:var(--amber-soft); }
.c.lead { align-items:flex-start; padding:8px; cursor:default; }
.c.lead .sym { width:22px; height:22px; }
.c.today { box-shadow:inset 0 0 0 3px var(--amber); }
.c:not(.lead):not(:disabled):active { background:var(--line); }

/* sponsor card */
.spon { margin:14px 0 0; display:flex; gap:12px; align-items:center; width:100%; text-align:left; appearance:none; cursor:pointer;
  background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:10px; color:var(--navy); }
.spon img, .spon .ph { width:64px; height:64px; border-radius:12px; object-fit:cover; flex:none; background:var(--line); }
.spon .tx { display:flex; flex-direction:column; gap:1px; min-width:0; flex:1; }
.spon .k { font-size:10.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--deep); }
.spon b { font-size:16px; font-weight:600; line-height:1.3; }
.spon span.o { font-size:13.5px; color:var(--soft); line-height:1.35; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.spon .chev { color:var(--navy60); }
.spon.empty { background:none; border:1.5px dashed var(--line); padding:12px 14px; }
.spon.empty .k { color:var(--navy60); }
.spon.empty b { font-size:14.5px; font-weight:500; }

.mfoot { display:flex; flex-direction:column; align-items:center; gap:6px; padding:18px 0 14px; }
.mfoot .wm { width:96px; height:auto; }
.mfoot small { font-size:11.5px; color:var(--navy60); }

/* ---------- bottom bar ---------- */
.bar { position:fixed; left:0; right:0; bottom:0; z-index:4; height:calc(var(--bar) + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom);
  background:var(--navy); color:#fff; display:flex; align-items:center; }
.bar button { appearance:none; border:0; background:none; color:inherit; height:var(--bar); cursor:pointer; }
.bar .nav { width:64px; font-size:28px; line-height:1; color:var(--amber); }
.bar .nav:disabled { opacity:.3; }
.bar .label { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; }
.bar .label b { font-family:var(--sat); font-size:17px; font-weight:600; line-height:1.3; }
.bar .label small { font-size:11px; font-weight:500; color:var(--muted-dark); letter-spacing:.04em; }

/* ---------- sheets ---------- */
.scrim { position:fixed; inset:0; z-index:10; background:rgba(19,38,63,.42); opacity:0; transition:opacity .2s; }
.scrim.on { opacity:1; }
.sheet { position:fixed; left:0; right:0; bottom:0; z-index:11; max-height:88vh; max-height:88dvh; overflow-y:auto; overscroll-behavior:contain;
  background:var(--paper); border-radius:22px 22px 0 0; box-shadow:0 -8px 32px rgba(19,38,63,.2);
  padding:8px 18px calc(20px + env(safe-area-inset-bottom)); width:100%; max-width:600px; margin:0 auto;
  transform:translateY(100%); transition:transform .24s cubic-bezier(.2,.8,.2,1); }
.sheet.on { transform:none; }
.sheet.full { top:0; max-height:none; border-radius:0; padding-top:calc(8px + env(safe-area-inset-top)); }
.grab { width:40px; height:4px; border-radius:2px; background:var(--line); margin:4px auto 10px; }
.sheet h2 { margin:4px 0 6px; font-size:21px; font-weight:600; line-height:1.3; }
.sheet h3 { margin:16px 0 6px; font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--navy60); }
.sheet p { margin:6px 0; font-size:15px; line-height:1.55; color:var(--soft); }
.shead { display:flex; align-items:center; gap:8px; margin:0 -6px 4px; position:sticky; top:-8px; background:var(--paper); z-index:1; padding:6px 0; }
.shead h2 { flex:1; margin:0; }
.btn { appearance:none; border:0; background:var(--amber); color:var(--navy); height:48px; padding:0 20px; border-radius:24px; font-size:15.5px; font-weight:600;
  cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; }
.btn.line { background:none; border:1.5px solid var(--navy); }
.btn.navy { background:var(--navy); color:#fff; }
.btn.small { height:38px; padding:0 14px; font-size:14px; }
.btn:disabled { opacity:.45; cursor:default; }
.btn.block { width:100%; }
.row { display:flex; gap:8px; flex-wrap:wrap; }
.row > .btn { flex:1; }
.link { appearance:none; border:0; background:none; padding:0; color:var(--navy); text-decoration:underline; text-underline-offset:3px; cursor:pointer; font-size:14px; }
.muted { color:var(--navy60) !important; font-size:13px !important; }
.note { background:var(--amber-soft); border-radius:12px; padding:10px 12px; font-size:14px; line-height:1.5; color:var(--navy); margin:10px 0; }
.err { color:var(--bad); font-size:14px; margin:8px 0; min-height:1px; }

/* day sheet */
.dayhead { display:flex; align-items:center; gap:16px; padding:4px 0 10px; border-bottom:1px solid var(--line); }
.dayhead .big { font-family:var(--sat); font-size:52px; font-weight:600; line-height:1.1; min-width:64px; text-align:center; }
.dayhead .meta { display:flex; flex-direction:column; gap:1px; }
.dayhead .meta b { font-family:var(--sat); font-size:20px; font-weight:600; }
.dayhead .meta span { font-size:15px; color:var(--soft); }
.dayhead .meta .w { font-family:var(--sat); }
.evcard { border:1px solid var(--line); border-radius:14px; padding:12px; margin:10px 0; display:flex; flex-direction:column; gap:8px; }
.evcard .t { display:flex; align-items:flex-start; gap:8px; font-size:16px; font-weight:500; line-height:1.4; }
.evcard .t .dot { margin-top:8px; }
.evcard .t small { display:block; font-family:var(--sat); font-size:14px; color:var(--soft); font-weight:400; }
.evcard .hol { font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--deep); }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { appearance:none; border:1.5px solid var(--line); background:var(--paper); border-radius:20px; height:38px; padding:0 14px; font-size:14px; font-weight:500;
  display:inline-flex; align-items:center; gap:6px; cursor:pointer; color:var(--navy); }
.chip[aria-pressed="true"] { border-color:var(--navy); background:var(--navy); color:#fff; }
.chip:disabled { opacity:.4; text-decoration:line-through; cursor:not-allowed; }
.chip .ol { font-family:var(--sat); }
.greet { display:flex; gap:10px; align-items:center; border-radius:14px; background:var(--amber-soft); padding:10px; margin:10px 0; cursor:pointer; border:0; width:100%; text-align:left; }
.greet img { width:44px; height:44px; border-radius:10px; object-fit:cover; }
.greet span { font-size:13.5px; line-height:1.4; }

/* list rows (menu, reminders) */
.list { list-style:none; margin:0; padding:0; }
.list li { border-bottom:1px solid var(--line); }
.list li:last-child { border-bottom:0; }
.item { appearance:none; border:0; background:none; width:100%; min-height:54px; display:flex; align-items:center; gap:14px; text-align:left; cursor:pointer;
  font-size:16px; padding:8px 2px; text-decoration:none; color:var(--navy); }
.item svg.i { color:var(--navy60); }
.item span { flex:1; display:flex; flex-direction:column; }
.item small { font-size:13px; color:var(--navy60); }
.switch { appearance:none; width:48px; height:28px; border-radius:14px; background:var(--line); position:relative; cursor:pointer; flex:none; transition:background .15s; border:0; }
.switch::after { content:''; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:11px; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:left .15s; }
.switch:checked { background:var(--navy); }
.switch:checked::after { left:23px; }

/* month picker */
.yearrow { display:flex; align-items:center; justify-content:space-between; margin:4px 0 10px; }
.yearrow b { font-family:var(--sat); font-size:20px; }
.yearrow b small { font-family:'Outfit'; font-size:13px; color:var(--navy60); font-weight:500; margin-left:6px; }
.months { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.months button { appearance:none; border:1.5px solid var(--line); background:var(--paper); border-radius:14px; padding:10px 4px; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:1px; color:var(--navy); }
.months button b { font-family:var(--sat); font-size:16px; font-weight:600; }
.months button small { font-size:11.5px; color:var(--navy60); }
.months button.cur { border-color:var(--navy); }
.months button.now { background:var(--amber-soft); border-color:var(--amber); }

/* sponsor detail */
.sd-photos { margin:0 -18px; aspect-ratio:4/3; position:relative; background:var(--line); }
.sd-photos .slides { display:flex; width:100%; height:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.sd-photos .slides::-webkit-scrollbar { display:none; }
.sd-photos img { flex:0 0 100%; width:100%; height:100%; object-fit:cover; scroll-snap-align:start; }
.verified { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--ok); margin-top:6px; }
.verified svg { width:16px; height:16px; }
.facts { margin:10px 0; display:grid; grid-template-columns:auto 1fr; gap:6px 12px; font-size:14.5px; line-height:1.45; }
.facts dt { color:var(--navy60); font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; padding-top:2px; }
.facts dd { margin:0; }
.acts { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:12px 0; }
.acts a, .acts button { appearance:none; border:1px solid var(--line); background:var(--paper); border-radius:14px; height:64px; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:4px; font-size:12.5px; font-weight:500; text-decoration:none; color:var(--navy); cursor:pointer; }
.sd-foot { display:flex; justify-content:space-between; gap:10px; padding-top:10px; border-top:1px solid var(--line); margin-top:14px; }
.adtag { font-size:11px; color:var(--navy60); margin:8px 0 0; }

/* pop-up */
.pop { position:fixed; z-index:12; left:50%; top:50%; transform:translate(-50%,-46%) scale(.98); opacity:0; transition:all .2s; width:min(92vw, 420px); max-height:86vh; overflow:auto;
  background:var(--paper); border-radius:22px; box-shadow:0 18px 50px rgba(19,38,63,.35); }
.pop.on { opacity:1; transform:translate(-50%,-50%); }
.pop img { width:100%; display:block; aspect-ratio:4/3; object-fit:cover; }
.pop .in { padding:16px 18px 18px; }
.pop h2 { margin:0 0 6px; font-size:20px; }
.pop p { margin:6px 0; font-size:15px; line-height:1.55; color:var(--soft); }
.pop .x { position:absolute; top:8px; right:8px; background:rgba(255,255,255,.9); }
.pop .k { font-size:10.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--deep); }

/* forms (advertise) */
.steps { display:flex; gap:6px; margin:4px 0 14px; }
.steps i { flex:1; height:4px; border-radius:2px; background:var(--line); }
.steps i.on { background:var(--amber); }
label.f { display:flex; flex-direction:column; gap:5px; margin:12px 0; font-size:14px; font-weight:500; }
label.f small { font-weight:400; color:var(--navy60); }
input.t, textarea.t, select.t { font:inherit; font-size:16px; color:var(--navy); background:#fff; border:1.5px solid var(--line); border-radius:12px; padding:11px 12px; width:100%; }
textarea.t { min-height:84px; resize:vertical; }
input.t:focus, textarea.t:focus, select.t:focus { outline:none; border-color:var(--navy); }
.opt { display:flex; gap:12px; align-items:flex-start; border:1.5px solid var(--line); border-radius:14px; padding:12px; margin:8px 0; cursor:pointer; background:#fff; }
.opt:has(input:checked) { border-color:var(--navy); box-shadow:0 0 0 1px var(--navy) inset; }
.opt input { margin-top:3px; accent-color:var(--navy); width:18px; height:18px; flex:none; }
.opt span { display:flex; flex-direction:column; gap:2px; font-size:15px; font-weight:500; }
.opt small { font-size:13px; color:var(--soft); font-weight:400; line-height:1.45; }
.thumbs { display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
.thumbs img { width:72px; height:72px; object-fit:cover; border-radius:10px; }
.stickybtns { position:sticky; bottom:calc(-20px - env(safe-area-inset-bottom)); background:var(--paper); padding:12px 0 calc(8px + env(safe-area-inset-bottom)); margin-top:18px; display:flex; gap:10px; }
.stickybtns .btn { flex:1; }
.check { display:flex; gap:10px; align-items:flex-start; font-size:14px; line-height:1.5; margin:12px 0; }
.check input { width:20px; height:20px; accent-color:var(--navy); flex:none; margin-top:1px; }
.summary { border:1px solid var(--line); border-radius:14px; padding:12px; font-size:14.5px; line-height:1.6; }
.summary b { font-weight:600; }

/* application tracker */
.track { list-style:none; margin:14px 0; padding:0; }
.track li { display:flex; gap:12px; padding:0 0 16px; position:relative; font-size:15px; }
.track li::before { content:''; width:14px; height:14px; border-radius:7px; border:2px solid var(--line); background:var(--paper); flex:none; margin-top:3px; z-index:1; }
.track li::after { content:''; position:absolute; left:6px; top:18px; bottom:0; width:2px; background:var(--line); }
.track li:last-child::after { display:none; }
.track li.done::before { background:var(--navy); border-color:var(--navy); }
.track li.now::before { background:var(--amber); border-color:var(--amber); }
.track li span { display:flex; flex-direction:column; }
.track li small { color:var(--navy60); font-size:13px; }
.qr { display:flex; justify-content:center; margin:12px 0; }
.qr svg, .qr img { width:200px; height:200px; }

/* install */
.install { position:fixed; left:10px; right:10px; bottom:calc(var(--bar) + env(safe-area-inset-bottom) + 10px); z-index:6; max-width:520px; margin:0 auto;
  background:var(--paper); border:1px solid var(--line); border-radius:16px; box-shadow:0 8px 28px rgba(19,38,63,.22); padding:14px;
  display:grid; grid-template-columns:auto 1fr; gap:4px 12px; transform:translateY(16px); opacity:0; transition:transform .18s, opacity .18s; }
.install.on { transform:none; opacity:1; }
.install[hidden] { display:none; }
.install .sym { width:40px; height:40px; display:block; }
.install .tx { display:flex; flex-direction:column; gap:2px; font-size:14px; line-height:1.4; color:var(--soft); }
.install .tx > b { font-size:16px; font-weight:600; color:var(--navy); }
.install .tx svg { width:16px; height:16px; vertical-align:-3px; fill:none; stroke:var(--navy); stroke-width:2; }
.install .bt { grid-column:1 / -1; display:flex; justify-content:flex-end; gap:8px; margin-top:8px; }
.install[data-mode="prompt"] .ios, .install[data-mode="ios"] .p, .install[data-mode="ios"] .yes { display:none; }

.toast { position:fixed; left:50%; bottom:calc(var(--bar) + env(safe-area-inset-bottom) + 16px); transform:translate(-50%, 10px); z-index:20; opacity:0; transition:all .2s;
  background:var(--navy); color:#fff; border-radius:22px; padding:11px 18px; font-size:14px; max-width:90vw; text-align:center; pointer-events:none; }
.toast.on { opacity:1; transform:translate(-50%, 0); }

/* text pages (privacy, terms, advert rules) */
body.doc { background:var(--cream); }
.doc main { max-width:680px; margin:0 auto; padding:24px 18px 48px; }
.doc header { display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid var(--line); }
.doc header a { display:flex; align-items:center; gap:8px; text-decoration:none; color:var(--navy); }
.doc header .sym { width:24px; height:24px; }
.doc h1 { font-size:28px; margin:8px 0 4px; }
.doc h2 { font-size:18px; margin:26px 0 6px; }
.doc p, .doc li { font-size:16px; line-height:1.65; color:var(--soft); }
.doc .upd { font-size:13px; color:var(--navy60); }

@media (min-width:700px) {
  .sheet { border-radius:22px; bottom:16px; }
  .sheet.full { top:16px; bottom:16px; border-radius:22px; }
}
@media (prefers-reduced-motion:reduce) { * { transition:none !important; scroll-behavior:auto !important; } }
