/* Booth Manager — shared styles */
:root{
  --navy:#0c2b52; --navy-2:#123c6e; --ink:#16202b; --muted:#61708a;
  --line:#d7dfea; --paper:#eef2f6; --card:#fff;
  --indigo:#4b3fa0; --orange:#dd5f27; --green:#1a8f4c; --blue:#2069c9;
  --amber:#dd9411; --red:#bf2419; --teal:#1aa5b8; --saffron:#f07c00; --ok:#12a150;
  --tap:46px;
  /* One height scale for every button in the application. */
  --btn-h:46px; --btn-h-lg:52px; --btn-h-sm:38px;
  --btn-r:10px; --btn-r-pill:26px;
  --font-ui:"Inter","Barlow",system-ui,-apple-system,sans-serif;
  --font-display:"Barlow Condensed",sans-serif;
}
body.lang-hi{
  --font-ui:"Noto Sans Devanagari","Inter",system-ui,sans-serif;
  --font-display:"Noto Sans Devanagari",sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font-ui);
  background:var(--paper); color:var(--ink); -webkit-text-size-adjust:100%;
  padding-bottom:76px;
}
body.plain{padding-bottom:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
a{color:var(--blue)}
:focus-visible{outline:3px solid #ffb703;outline-offset:2px}
.hidden{display:none !important}

/* ---------- LOGIN ---------- */
.loginpage{
  min-height:100dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;
  padding:28px 18px;
  background:radial-gradient(120% 70% at 50% 0%, #17457e 0%, #0c2b52 55%, #071c37 100%);
}
.brandmark{width:64px;height:64px;border-radius:16px;background:#fff;display:grid;place-items:center;
  margin-bottom:16px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.brandmark svg{width:38px;height:38px}
.login-title{font-family:var(--font-display);letter-spacing:.06em;font-size:40px;
  font-weight:700;color:#fff;margin:0;line-height:1}
.login-sub{color:#9fc0e8;font-size:13px;margin:8px 0 26px}
.login-card{width:100%;max-width:400px;background:var(--card);border-radius:16px;
  padding:22px 20px 24px;box-shadow:0 24px 60px rgba(3,17,35,.45)}
.login-card h2{margin:0 0 4px;font-size:19px}
.login-card p.hint{margin:0 0 18px;font-size:13px;color:var(--muted)}
.login-err{color:var(--red);font-size:13.5px;font-weight:600;margin:0 0 12px;background:#fdecea;
  border-right:4px solid var(--red);padding:9px 11px;border-radius:7px}
.demo{margin-top:16px;font-size:12.5px;color:var(--muted);text-align:center;line-height:1.7;
  border-top:1px dashed var(--line);padding-top:14px}
.demo b{color:var(--ink)}

/* ---------- FORM ---------- */
.field{margin-bottom:14px}
.field label{display:block;font-size:13.5px;font-weight:600;margin-bottom:6px}
.field input,.field select,.field textarea{
  width:100%;padding:12px 13px;border:1.5px solid var(--line);border-radius:9px;
  background:#fbfcfe;font-size:16px;min-height:var(--tap)}
.field textarea{min-height:88px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);background:#fff}
/* ---------- BUTTONS ----------
   Every button in the application is sized and centred by this one rule.
   The classes under it add only their colour and where they sit in a row;
   none of them re-declares a height, a font or how the label is centred. */
.btn-primary,.btn-clear,.btn-go,.linkbtn,.act,.wide,.chip-btn,
.pager a,.slipfoot a,.slipfoot button,.sheet .close{
  -webkit-appearance:none;appearance:none;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:var(--btn-h);padding:0 16px;min-width:0;
  border:0;border-radius:var(--btn-r);
  font-family:inherit;font-size:14.5px;font-weight:600;line-height:1.2;
  text-align:center;text-decoration:none;cursor:pointer;
  transition:filter .12s ease,transform .12s ease}
.btn-primary:active,.btn-clear:active,.btn-go:active,.linkbtn:active,.act:active,
.wide:active,.chip-btn:active,.pager a:active,.slipfoot a:active,
.slipfoot button:active,.sheet .close:active{transform:translateY(1px);filter:brightness(.94)}
@media(prefers-reduced-motion:reduce){
  .btn-primary,.btn-clear,.btn-go,.linkbtn,.act,.wide,.chip-btn,
  .pager a,.slipfoot a,.slipfoot button,.sheet .close{transition:none}
}

.btn-primary{width:100%;min-height:var(--btn-h-lg);background:var(--green);color:#fff;
  font-weight:700;font-size:16.5px}
.formcard{background:#fff;border-radius:12px;padding:16px 14px;border:1px solid var(--line)}
.formrow{display:grid;gap:12px}
@media(min-width:640px){.formrow{grid-template-columns:1fr 1fr}}
/* Buttons in an action row stretch to a common height, and wrap rather than
   squeeze themselves unreadable when a Hindi label is long. */
.formactions{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;margin-top:16px}
.formactions>*{flex:1 1 auto}
.btn-clear{flex:1 1 140px;background:var(--amber);color:#fff;font-weight:700}
.btn-go{flex:1.4 1 160px;background:var(--green);color:#fff;font-weight:700}

/* ---------- CHROME ---------- */
.topbar{background:var(--navy);color:#fff;padding:9px 12px;display:flex;align-items:center;gap:10px;
  position:sticky;top:0;z-index:40}
.topbar .logo{width:28px;height:28px;background:#fff;border-radius:7px;display:grid;place-items:center;flex:0 0 auto}
.topbar .logo svg{width:18px;height:18px}
.topbar h1{font-family:var(--font-display);font-size:23px;font-weight:700;
  letter-spacing:.08em;margin:0;line-height:1}
.topbar .tag{font-size:9.5px;letter-spacing:.16em;color:#8fb4de;line-height:1;margin-top:3px}
.topbar .who{margin-right:auto}
.topbar .booth{font-size:11px;background:rgba(255,255,255,.13);padding:5px 9px;border-radius:20px;
  color:#d6e6fb;white-space:nowrap}
.tabs{display:flex;overflow-x:auto;scrollbar-width:none;position:sticky;top:46px;z-index:39}
.tabs::-webkit-scrollbar{display:none}
.tab{flex:1 0 auto;min-width:82px;min-height:52px;color:#fff;font-weight:600;font-size:13.5px;
  line-height:1.2;padding:8px 10px;display:grid;place-items:center;text-align:center;
  border-left:1px solid rgba(255,255,255,.22);text-decoration:none}
.tab:first-child{border-left:0}
.tab.t-slip{background:var(--indigo)} .tab.t-update{background:var(--orange)}
.tab.t-search{background:var(--green);flex:1.6 0 auto} .tab.t-location{background:var(--blue)}
.tab.t-print{background:var(--amber)} .tab.t-logout{background:var(--red)}
.tab.active{box-shadow:inset 0 -4px 0 rgba(255,255,255,.85)}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);
  border-bottom:1px solid var(--line)}
.stat{background:#fff;padding:9px 6px;text-align:center}
.stat b{display:block;font-family:"Barlow",sans-serif;font-size:19px;font-weight:700;line-height:1.1}
.stat span{font-size:11px;color:var(--muted)}
.stat.v b{color:var(--ok)} .stat.p b{color:var(--saffron)} .stat.o b{color:var(--red)}
.bottomnav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);
  display:grid;grid-template-columns:repeat(4,1fr);z-index:41;padding-bottom:env(safe-area-inset-bottom)}
.bnav{padding:8px 4px 9px;text-align:center;font-size:11px;color:var(--muted);font-weight:600;
  text-decoration:none;display:block}
.bnav svg{display:block;margin:0 auto 3px;width:21px;height:21px}
.bnav.active{color:var(--navy)}

/* ---------- PANELS ---------- */
.panel{padding:14px 12px 8px;max-width:760px;margin:0 auto}
.panel h2{font-size:17px;margin:0 0 4px}
.panel p.lede{margin:0 0 16px;color:var(--muted);font-size:13.5px;line-height:1.6}
.tile{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:12px}
.tile h3{margin:0 0 6px;font-size:15.5px}
.tile p{margin:0;color:var(--muted);font-size:13.5px;line-height:1.65}
.linkbtn{border-radius:var(--btn-r-pill);background:var(--blue);color:#fff}
.linkbtn.g{background:var(--green)} .linkbtn.n{background:var(--navy-2)} .linkbtn.a{background:var(--amber)}
/* The gap used to be a margin on the button itself, which pushed it out of
   line with any plain button standing next to it. It belongs to the tile. */
.tile>.linkbtn{margin-top:12px}
.btnrow{display:flex;flex-wrap:wrap;align-items:stretch;gap:9px;margin-top:12px}
.btnrow>*{flex:0 1 auto}
.backlink{display:inline-block;margin:12px 0 0;font-size:14px;font-weight:600;text-decoration:none}

/* ---------- VOTER LIST ---------- */
.quickbar{display:flex;gap:8px;padding:10px 12px;background:#fff;border-bottom:1px solid var(--line);
  position:sticky;top:98px;z-index:38}
.quickbar input{flex:1;padding:10px 12px;border:1.5px solid var(--line);border-radius:24px;
  font-size:15px;min-height:42px;background:#f7f9fc}
.chip-btn{border:1.5px solid var(--line);border-radius:var(--btn-r-pill);padding:0 14px;
  font-size:13px;background:#f7f9fc;min-height:42px;white-space:nowrap}
.chip-btn.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.filternote{background:#fff8e2;border-bottom:1px solid #f0e0b0;padding:8px 12px;font-size:13px;
  display:flex;justify-content:space-between;gap:10px;align-items:center}
.filternote button{color:var(--red);font-weight:700;font-size:13px}
.lhead{display:none;background:#dfe6ef;font-size:12px;font-weight:700;color:#3b4b60;
  border-bottom:1px solid #c6d1de}
.lhead>div{padding:9px 8px}
.vlist{background:#fff}
.vrow{display:flex;align-items:center;gap:11px;padding:11px 12px;width:100%;text-align:right;
  border-bottom:1px solid #e7edf4;background:#fff}
.vrow:nth-child(even){background:#f7fafd}
.vrow:active{background:#e8f1fb}
.tick{flex:0 0 auto;width:34px;height:34px;border-radius:50%;border:2px solid #c3cfdd;background:#fff;
  display:grid;place-items:center;color:transparent;font-size:17px;font-weight:700}
.tick.on{background:var(--ok);border-color:var(--ok);color:#fff}
.serial{flex:0 0 auto;font-family:"Barlow",sans-serif;font-size:13px;color:#8494aa;font-weight:600;
  min-width:26px;text-align:center}
.c-name{flex:1;min-width:0}
.c-name .nm{font-size:15.5px;font-weight:600;line-height:1.35;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.c-name .sub{font-size:13px;color:var(--muted);margin-top:2px}
.chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
.chips i{font-style:normal;font-size:11px;background:#eef3f9;color:#4a5b70;border-radius:5px;
  padding:2px 6px;border:1px solid #dfe7f0}
.badge-out{background:#fdeceb;color:var(--red);border-color:#f7cfcc}
.badge-sv{background:#e9f5ec;color:#12703a;border-color:#c9e6d3}
.col{display:none}
.empty{padding:44px 20px;text-align:center;color:var(--muted)}
.empty svg{width:46px;height:46px;opacity:.35;margin-bottom:10px}
@media(min-width:760px){
  .lhead{display:grid;grid-template-columns:44px 52px 1.3fr 1.3fr 56px 74px 128px 92px}
  .vrow{display:grid;grid-template-columns:44px 52px 1.3fr 1.3fr 56px 74px 128px 92px;gap:0;padding:0}
  .vrow>*{padding:10px 8px}
  .tick{margin:6px}
  .col{display:block;font-size:14px}
  .c-name .sub,.c-name .chips{display:none}
  .c-name{padding-top:12px}
  .serial{padding-top:13px}
}

/* ---------- SHEET / MODAL ---------- */
.scrim{position:fixed;inset:0;background:rgba(8,20,36,.55);z-index:60;display:flex;
  align-items:flex-end;justify-content:center}
.sheet{width:100%;max-width:520px;background:#f2f8fc;border-radius:18px 18px 0 0;
  padding:14px 16px calc(20px + env(safe-area-inset-bottom));max-height:88dvh;overflow:auto;
  box-shadow:0 -12px 40px rgba(0,0,0,.3);animation:up .18s ease-out}
@keyframes up{from{transform:translateY(14px);opacity:.6}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.sheet{animation:none}}
.grab{width:38px;height:4px;background:#c4d2df;border-radius:4px;margin:0 auto 12px}
.sheet h3{margin:0 0 2px;font-size:17px;text-align:center;color:var(--navy-2)}
.sheet .sh-sub{text-align:center;color:var(--muted);font-size:13px;margin:0 0 14px}
.sheet input,.sheet textarea{width:100%;padding:12px 13px;border:1.5px solid #cfdbe8;border-radius:10px;
  background:#fff;font-size:15.5px;margin-bottom:10px;min-height:var(--tap)}
.sheet textarea{min-height:74px;resize:vertical}
.wide{width:100%;min-height:var(--btn-h-lg);border-radius:var(--btn-r-pill);background:var(--blue);
  color:#fff;font-weight:700;font-size:16px;margin-bottom:12px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
/* Three across on the narrowest phone, so these labels wrap instead of
   overflowing â 'à¤µà¥à¤¹à¤¾à¤à¥à¤¸à¤à¤ª' does not fit on one line at 33% of 320px. */
.act{border-radius:var(--btn-r-pill);color:#fff;font-size:13.5px;
  padding:8px 6px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
.act.msg{background:#1e6fd9} .act.call{background:var(--teal)} .act.slip{background:var(--amber)}
.act.fam{background:var(--red)} .act.wa{background:#25a13f} .act.survey{background:#1663c7}
.sheet .close{width:100%;margin-top:12px;border-radius:var(--btn-r-pill);background:#e2e9f1;
  color:#3d4d62}

/* ---------- SLIP ---------- */
.slipwrap{padding:12px;background:#dde5ee}
.slip{max-width:420px;margin:0 auto;background:#fff;border-radius:6px;overflow:hidden;
  box-shadow:0 6px 24px rgba(10,25,45,.2)}
.poster{position:relative;background:linear-gradient(160deg,#fff6e6 0%,#ffe9c9 60%,#ffd9a0 100%);
  padding:14px 14px 10px;overflow:hidden}
.poster .ward{display:inline-block;background:var(--red);color:#fff;font-size:11px;font-weight:700;
  padding:3px 10px;border-radius:3px}
.poster .yuva{font-size:42px;font-weight:700;color:#c2231a;line-height:.95;margin:6px 0 0;text-shadow:2px 2px 0 #fff}
.poster .chehra{font-size:17px;color:#7a3b06;margin:0 0 6px;font-weight:600}
.poster .cname{font-family:var(--font-display);font-size:33px;font-weight:700;color:#0d3b7a;line-height:1}
.poster .area{display:inline-block;background:#0d3b7a;color:#fff;font-size:12px;padding:3px 10px;
  border-radius:3px;margin:6px 0}
.poster .party{font-size:15px;font-weight:600}
.poster .photo{position:absolute;left:8px;bottom:0;width:132px;height:170px}
.poster .photo svg{width:100%;height:100%;display:block}
.seal{margin-top:10px;background:#0d3b7a;color:#fff;border-radius:26px;padding:7px 12px;
  display:flex;align-items:center;gap:8px;justify-content:flex-end}
.seal .v{background:#ffd400;color:#0d3b7a;font-weight:700;border-radius:50%;width:26px;height:26px;
  display:grid;place-items:center;font-size:14px;font-style:normal}
.seal span{font-size:14px;font-weight:700}
.values{background:#c2231a;color:#fff;text-align:center;font-size:12px;padding:5px;letter-spacing:.04em}
.slipbody{padding:14px}
.slipbody .token{font-family:"Barlow",sans-serif;font-size:13px;color:var(--muted);margin-bottom:6px}
.dbox{border:1.5px dashed #9fb2c6;border-radius:8px;padding:12px}
.drow{display:flex;gap:8px;font-size:14.5px;padding:4px 0;border-bottom:1px dotted #dbe3ec}
.drow:last-child{border-bottom:0}
.drow b{flex:0 0 128px;font-weight:600;color:#41546b}
.drow span{flex:1;font-weight:600}
.slipfoot{display:flex;gap:9px;padding:12px;max-width:420px;margin:0 auto}
.slipfoot a,.slipfoot button{flex:1 1 0;font-weight:700;color:#fff}
.sf-wa{background:#25a13f} .sf-print{background:var(--navy-2)} .sf-back{background:#e2e9f1;color:#3d4d62}

/* ---------- FAMILY / SURVEY ---------- */
.famrow{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px dotted #dbe3ec;font-size:14.5px}
.famrow:last-child{border:0}
.famrow em{font-style:normal;color:var(--muted);font-size:13px}
.radiolist{display:grid;gap:9px;margin-bottom:6px}
.radio{display:flex;align-items:center;gap:10px;border:1.5px solid var(--line);border-radius:10px;
  padding:12px 13px;background:#fbfcfe;font-size:15px;font-weight:600;cursor:pointer}
.radio input{width:20px;height:20px;accent-color:var(--blue)}
.radio.sel{border-color:var(--blue);background:#eef5ff}

/* ---------- TOAST ---------- */
#toast{position:fixed;left:50%;transform:translateX(-50%);bottom:90px;z-index:99;background:#10233c;
  color:#fff;padding:12px 18px;border-radius:26px;font-size:14px;box-shadow:0 8px 26px rgba(0,0,0,.35);
  max-width:88vw;text-align:center}

@media print{
  body{background:#fff;padding:0}
  .topbar,.tabs,.stats,.quickbar,.bottomnav,.slipfoot,.scrim,.backlink,.filternote,#toast{display:none !important}
  .slipwrap{padding:0;background:#fff}
  .slip{box-shadow:none;max-width:100%}
}

/* ---------- language toggle ---------- */
.langbtn{
  flex:0 0 auto;background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.3);
  border-radius:20px;min-height:34px;padding:0 12px;font-size:12.5px;font-weight:700;letter-spacing:.02em;
  display:inline-flex;align-items:center;justify-content:center;
}
.langbtn:active{background:rgba(255,255,255,.26)}
.langbtn.onlight{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.35)}
.loginpage .langbtn{margin-bottom:18px}
@media(max-width:400px){ .topbar .booth{display:none} }
@media print{ .langbtn{display:none !important} }

/* ---------- booth / part scope bar ---------- */
.scopebar{
  display:flex;gap:8px;align-items:center;background:#fff;border-bottom:1px solid var(--line);
  padding:8px 12px;overflow-x:auto;scrollbar-width:none;
}
.scopebar::-webkit-scrollbar{display:none}
.scopefield{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.scopefield label{font-size:11.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.scopefield select{
  border:1.5px solid var(--line);border-radius:8px;background:#f7f9fc;padding:7px 9px;
  font-size:14px;min-height:38px;max-width:190px;
}
.scopecount{margin-left:auto;flex:0 0 auto;font-size:12px;color:var(--muted);white-space:nowrap}
.boothtag{
  display:inline-block;background:#eef3f9;border:1px solid #dfe7f0;color:#41546b;
  border-radius:5px;padding:2px 6px;font-size:11px;margin-right:6px;
}
@media print{ .scopebar{display:none !important} }

/* ============================================================================
   Additions for the ASP.NET version.

   The prototype built several of these widgets with JavaScript; here they are
   server-rendered controls, and they need a little styling the script used to
   apply by hand.
   ============================================================================ */

/* Whole-row link — the row used to be clickable through a JS listener. An
   overlay anchor keeps the grid layout intact and works without script. */
.vrow{position:relative}
.rowlink{position:absolute;inset:0;z-index:1;text-indent:-9999px;overflow:hidden}
.vrow .tick{position:relative;z-index:2}
a.tick{text-decoration:none}
a.tick:hover{border-color:var(--ok)}

/* Paging replaced "the browser holds every voter". */
.pager{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px;background:#fff;border-top:1px solid var(--line)}
.pager a{min-height:42px;background:var(--navy-2);color:#fff;font-size:14px;white-space:nowrap}
.pager a[disabled],.pager a.aspNetDisabled{background:#c9d3e0;color:#7a8798;pointer-events:none;
  transform:none;filter:none}
.pager .pageinfo{font-size:12.5px;color:var(--muted);text-align:center;flex:1}

/* Search results on the data-update page. */
.findlist{margin-top:14px;border-top:1px solid var(--line);padding-top:10px}
.findlist .famrow a{font-weight:600}

/* RadioButtonList renders input + label pairs, not the prototype's .radio
   cards; this gets them back to the same size and feel. */
.radiolist{display:grid;gap:9px;margin-bottom:6px}
.radiolist input[type="radio"]{width:20px;height:20px;accent-color:var(--blue);vertical-align:middle}
.radiolist label{display:inline-flex;align-items:center;gap:10px;border:1.5px solid var(--line);
  border-radius:10px;padding:12px 13px;background:#fbfcfe;font-size:15px;font-weight:600;
  cursor:pointer;width:100%;min-height:var(--tap);box-sizing:border-box}
.radiolist span{display:block}

/* A disabled LinkButton still renders an <a>; make it look unavailable. */
.linkbtn.aspNetDisabled,.act.aspNetDisabled,.slipfoot .aspNetDisabled{opacity:.45;pointer-events:none}

/* The scope bar's ward label, when there is only one ward to show. */
.scopebar .scopefield label{white-space:nowrap}

/* Textareas on the action page need room for a slip message. */
.formcard textarea{min-height:120px}

/* The slip header image, once an administrator has uploaded one. The box is a
   fixed 132 x 170 in the poster, so a photo of any shape is cropped to fill it
   rather than stretched. */
.poster .photo img{width:100%;height:100%;object-fit:cover;display:block}

/* Admin — campaign settings. */
.tab.t-admin{background:var(--teal)}

.headpick{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-start;margin-top:12px}
.headnow{flex:0 0 auto;text-align:center}
.headnow .photo{width:132px;height:170px;border:1px solid var(--line);border-radius:8px;
  overflow:hidden;background:linear-gradient(160deg,#fff6e6 0%,#ffe9c9 60%,#ffd9a0 100%)}
.headnow .photo svg,.headnow .photo img{width:100%;height:100%;display:block;object-fit:cover}
.headstate{display:block;margin-top:8px;font-size:12px;color:var(--muted);max-width:132px}
.headform{flex:1 1 240px;min-width:240px}
.headform .hint{font-size:12.5px;color:var(--muted);margin:8px 0 0}
.headform input[type=file]{width:100%;box-sizing:border-box;border:1px solid var(--line);
  border-radius:10px;padding:10px 11px;background:#fbfcfe;font-size:14px;min-height:var(--tap)}

/* ---------- VOTER ACTIONS, OVER THE LIST ----------
   The prototype's bottom sheet, back as a pop-up — but opened by an ordinary
   link to ?open=<id> and closed by a link back to the plain address, so it
   needs no script and the browser's back button dismisses it. */

/* The backdrop is itself the dismiss link, so a tap outside the card closes
   the pop-up. Its label is for screen readers only. */
.scrim-close{position:absolute;inset:0;display:block;text-indent:-9999px;
  overflow:hidden;white-space:nowrap;z-index:0}
.scrim{padding:0;overflow-y:auto}
.scrim .sheet{position:relative;z-index:1}

/* The pop-up carries the same fields as the page, so it uses .field markup;
   these keep the spacing tight enough for a phone. */
.sheet .va-name{margin:0 0 2px;font-size:17px;text-align:center;color:var(--navy-2)}
.sheet .va-sub{margin:16px 0 8px;font-size:14px;color:var(--navy-2)}
.sheet .field{margin-bottom:10px}
.sheet .field label{font-size:12.5px;color:var(--muted)}
.sheet .formactions{margin-top:12px}

/* On a page rather than in the pop-up, the same control reads as a heading. */
.va-name{margin:0 0 2px;font-size:17px}
.va-sub{margin:18px 0 10px;font-size:15px}

/* Room for a long Hindi label in the three-across grid on a narrow phone. */
@media(max-width:360px){ .grid3{gap:7px} .act{font-size:12.5px;padding:8px 4px} }
