/* SNS Giving. Tokens follow swadeshnaiswarga.com (build/css/theme.css, sns.css). */
@font-face { font-family: "Archivo"; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/archivo-latin-var.woff2) format("woff2"); }
@font-face { font-family: "Hind"; font-weight: 400; font-display: swap; src: url(/assets/fonts/hind-06.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Hind"; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/hind-09.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
  --bg: #F5F5F5; --bg-2: #FFFFFF; --fg: #0A0A0A; --fg-2: #3A3A3A; --fg-3: #6B6B6B;
  --accent: #A50E19; --cta: #C1121F; --on-cta: #FFFFFF; --rule: rgba(10, 10, 10, .12); --fill-5: rgba(10, 10, 10, .05);
  --font: "Archivo", "Hind", "Helvetica Neue", Arial, sans-serif;
  --r-in: 12px; --r-card: 24px; --r-pill: 999px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --bg-2: #111; --fg: #F5F5F5; --fg-2: #CFCFCF; --fg-3: #9A9A9A; --accent: #E2352F; --cta: #E2352F; --rule: rgba(245, 245, 245, .14); --fill-5: rgba(245, 245, 245, .06); }
}
html[lang="ne"] { --font: "Hind", "Noto Sans Devanagari", "Archivo", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.55 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 7vw, 4.2rem); max-width: 18ch; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: 1.25rem; }
html[lang="ne"] h1, html[lang="ne"] h2, html[lang="ne"] h3 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 18px; top: 8px; background: var(--bg-2); padding: 8px 12px; z-index: 10; }
.muted { color: var(--fg-3); }
.small { font-size: .875rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: .75em; }
html[lang="ne"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .875rem; }
.lede { font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: var(--fg-2); max-width: 46ch; }

.sandbox { background: #F2C94C; color: #0A0A0A; text-align: center; font-weight: 700; font-size: .875rem; padding: 6px 18px; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px 18px; border-bottom: 1px solid var(--rule); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand span { display: grid; line-height: 1.1; }
.brand b { font-weight: 800; letter-spacing: -.01em; }
.brand small { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; }
.top nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: .95rem; }
.top nav a { text-decoration: none; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.top nav a[aria-current="page"] { border-color: var(--accent); }
.lang-switch { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r-pill); padding: 2px; font-size: .85rem; font-weight: 700; }
.lang-switch a { text-decoration: none; padding: 4px 12px; border-radius: var(--r-pill); }
.lang-switch a[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

main { max-width: 1120px; margin: 0 auto; padding: 32px 18px 64px; }
section { margin-bottom: 56px; }
.hero { padding: 24px 0 8px; }
.hero h1 { color: var(--fg); }
.sec { padding-top: 16px; border-top: 2px solid var(--fg); margin-top: 8px; }

.card { background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.card-in { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-in > .btn { margin-top: auto; align-self: flex-start; }
.card h3 a { text-decoration: none; }
.card.wide .card-in { padding: 28px; }
.general { border-left: 6px solid var(--accent); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.btn { display: inline-block; background: var(--cta); color: var(--on-cta); border: 2px solid var(--cta); border-radius: var(--r-pill); padding: 10px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { color: var(--on-cta); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--fg); color: var(--fg); }
.btn.big { padding: 14px 30px; font-size: 1.1rem; }

progress.bar { appearance: none; -webkit-appearance: none; width: 100%; height: 12px; border: 0; border-radius: var(--r-pill); background: var(--fill-5); overflow: hidden; margin: 8px 0 4px; color: var(--accent); }
progress.bar::-webkit-progress-bar { background: var(--fill-5); border-radius: var(--r-pill); }
progress.bar::-webkit-progress-value { background: var(--accent); border-radius: var(--r-pill); }
progress.bar::-moz-progress-bar { background: var(--accent); border-radius: var(--r-pill); }
progress.bar.small { height: 8px; min-width: 80px; }
.bar-meta { font-size: .95rem; }
.bar-meta span { float: right; font-weight: 700; color: var(--accent); }

.empty { color: var(--fg-3); padding: 18px; border: 1px dashed var(--rule); border-radius: var(--r-in); }
.note { background: var(--fill-5); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 var(--r-in) var(--r-in) 0; }
.error { background: rgba(193, 18, 31, .1); border-left: 4px solid var(--cta); padding: 12px 16px; border-radius: 0 var(--r-in) var(--r-in) 0; font-weight: 600; }

.give { max-width: 640px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.form legend { font-weight: 800; margin-bottom: 10px; font-size: 1.05rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field span { font-weight: 600; font-size: .95rem; }
input, select { font: inherit; color: var(--fg); background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r-in); padding: 12px 14px; min-height: 48px; width: 100%; }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); flex: none; margin: 2px 0 0; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 10px 20px; border: 2px solid var(--rule); border-radius: var(--r-pill); font-weight: 700; cursor: pointer; min-width: 80px; text-align: center; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
input.copy { font-size: .9rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.tab { text-decoration: none; padding: 8px 16px; border: 1px solid var(--rule); border-radius: var(--r-pill); font-weight: 600; font-size: .9rem; }
.tab[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.board { list-style: none; padding: 0; margin: 0; }
.board li { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--rule); }
.board li:nth-child(-n+3) .rank { color: var(--accent); }
.rank { font-weight: 800; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.who { font-weight: 700; display: grid; }
.who small { font-weight: 500; color: var(--fg-3); }
.pts { font-variant-numeric: tabular-nums; color: var(--fg-2); }
.wall { list-style: none; padding: 0; margin: 0 0 12px; }
.wall li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.wall time { color: var(--fg-3); font-size: .875rem; margin-left: 6px; }

.badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r-pill); padding: 6px 16px 6px 6px; }
.badge span { display: grid; line-height: 1.2; }
.badge small { color: var(--fg-3); }
.badge-ico { color: var(--accent); flex: none; }
.catalogue { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.catalogue .badge-ico { width: 56px; height: 56px; margin-bottom: 12px; }
.tiers { padding-left: 1.2em; }
.tiers li { padding: 6px 0; }
.how ol { padding-left: 1.2em; max-width: 60ch; }
.how li { margin-bottom: 10px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stats div { background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 18px; display: grid; gap: 4px; }
.stats small { color: var(--fg-3); font-weight: 600; }
.stats b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
thead th { font-size: .85rem; color: var(--fg-3); }
.spend th { font-weight: 600; }
.detail { max-width: 760px; }
.hero-img { border-radius: var(--r-card); margin: 0 0 20px; }

.receipt { max-width: 620px; background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 28px; }
.receipt header { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.receipt header div { display: grid; }
.receipt dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0 0 16px; }
.receipt dt { color: var(--fg-3); font-weight: 600; }
.receipt dd { margin: 0; }

.foot { border-top: 1px solid var(--rule); padding: 24px 18px 40px; text-align: center; color: var(--fg-3); font-size: .9rem; }

@media (max-width: 640px) {
  .top { padding: 12px 18px; }
  .top nav { order: 3; width: 100%; overflow-x: auto; }
  .top nav ul { flex-wrap: nowrap; }
  .card-in { padding: 18px; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .tab, .chip span { transition: filter .15s, border-color .15s, background-color .15s; } }
@media print {
  .top, .foot, .no-print, .sandbox { display: none; }
  body { background: #fff; color: #000; }
  .receipt { border: 0; }
}
