/* BharatPhoto — shared styles for every generated page */
@import url("/brandguide/tokens.css");

/* Everything below maps the site's older short names onto the brand tokens, so
   there is exactly one place a colour is defined: brandguide/tokens.css. */
:root{
  --brand:var(--color-primary); --brand-dk:#071d3d; --brand-lt:var(--color-light-blue);
  --accent:var(--color-secondary);
  /* Primary action: Brand Orange with white text (brand decision, 2.59:1).
     Swap --go to var(--color-cta-aa) to keep white text and meet AA. */
  --go:var(--color-cta); --go-dk:var(--color-cta-hover); --go-ink:var(--on-secondary);
  --ink:var(--color-text-primary); --muted:var(--color-text-secondary);
  --line:var(--color-border); --bg:var(--color-background); --card:var(--color-surface);
  --warn:var(--color-warning-text); --warnbg:var(--color-light-orange);
  --ok:var(--color-success-text); --okbg:#E8F6EE;
  --r:var(--radius-card);
  --shadow:var(--shadow-card); --shadow-lg:var(--shadow-pop);
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--font-family);font-size:15px;line-height:1.5}
img{max-width:100%}
button,input,select{font:inherit;color:inherit}
a{color:var(--brand)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.wrap{max-width:1040px;margin:0 auto;padding:0 16px}

/* header */
header{background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.hbar{display:flex;align-items:center;gap:12px;height:56px}
/* The logo file is one stacked lockup; these two sprites pull the camera and the
   wordmark out of it by their measured boxes, so the header needs no extra files. */
.logo{display:flex;align-items:center;gap:9px;text-decoration:none;flex:none}
.logo i{display:block;background-image:url(/assets/img/logo.webp);background-repeat:no-repeat}
.logo .mark{width:42px;height:30px;background-size:154.6px 103.8px;background-position:-25.5px -28.1px}
.logo .word{width:127px;height:20px;background-size:187.8px 126px;background-position:-30.7px -73px}
@media(max-width:430px){ .logo .word{width:102px;height:16px;background-size:150.2px 100.8px;background-position:-24.6px -58.4px} }
.hnav{display:flex;gap:2px;margin-left:auto;overflow-x:auto;scrollbar-width:none}
.hnav::-webkit-scrollbar{display:none}
.hnav a{padding:8px 11px;border-radius:var(--radius-input);font-size:13.5px;font-weight:600;color:var(--muted);text-decoration:none;white-space:nowrap}
.hnav a:hover{background:var(--brand-lt);color:var(--brand)}
/* "Navy navigation": the active tool reads as a solid navy pill. The header bar
   itself stays white because the logo artwork is navy on white and would
   disappear on a navy bar — a reversed logo would let the whole bar go navy. */
.hnav a[aria-current=page]{background:var(--brand);color:#fff}
.mnav a{background:var(--color-light-blue)}
.lang{display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.lang:hover{border-color:var(--brand);color:var(--brand)}
@media(max-width:760px){.hnav{display:none}.lang{margin-left:auto}}
.mnav{display:none;background:var(--card);border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.mnav::-webkit-scrollbar{display:none}
.mnav div{display:flex;gap:4px;padding:8px 12px}
.mnav a{flex:none;background:var(--color-light-blue);padding:8px 13px;border-radius:var(--radius-pill);font-size:13px;font-weight:600;color:var(--brand);text-decoration:none}
.mnav a[aria-current=page]{background:var(--brand);color:#fff}
@media(max-width:760px){.mnav{display:block}}

/* ---- header menu: feedback / share / support ---- */
.menuwrap{position:relative;flex:none}
.menubtn{display:flex;align-items:center;gap:7px;height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:#fff;cursor:pointer;color:var(--brand);font-size:13px;font-weight:600;white-space:nowrap}
.menubtn:hover,.menubtn[aria-expanded=true]{background:var(--brand-lt);border-color:var(--brand)}
.menubtn svg{width:16px;height:16px;flex:none}
/* the label is the first thing to go when the header runs out of room */
@media(max-width:560px){ .menubtn{padding:0;width:38px;justify-content:center} .menubtn-t{display:none} }

/* Buy me a coffee — its own link, not a row in a support block */
.coffeelink{display:flex;align-items:center;gap:11px;padding:11px 13px;border:1px solid #f0c419;border-radius:var(--radius-button);background:#ffd43b;text-decoration:none;color:#3b2f00}
.coffeelink:hover{background:#ffcd1a}
.coffeelink .cup{display:grid;place-items:center;width:32px;height:32px;border-radius:var(--radius-button);background:rgba(255,255,255,.65);flex:none}
.coffeelink .cup svg{width:17px;height:17px;color:#7a5c00}
.coffeelink strong{display:block;font-size:13.5px}
.coffeelink em{display:block;font-style:normal;font-size:11.5px;opacity:.75;margin-top:1px;line-height:1.3}
.footmenu{display:flex;justify-content:center;margin-top:var(--space-4)}
/* in the footer there is nothing below, so the popover opens upward */
.menuwrap.foot .menu{top:auto;bottom:46px;right:50%;transform:translateX(50%);text-align:left}
.menu{position:absolute;right:0;top:46px;width:272px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:0 16px 44px rgba(20,24,41,.18);padding:10px;display:none;z-index:60}
.menu.on{display:block}
.menu section{border:1px solid var(--line);border-radius:var(--radius-button);padding:12px;margin-bottom:9px}
.menu section:last-child{margin-bottom:0}
.menu h3{margin:0;font-size:14px;display:flex;align-items:center;gap:7px}
.menu h3 svg{width:15px;height:15px;color:var(--brand)}
.menu .mp{margin:3px 0 10px;font-size:12px;color:var(--muted);line-height:1.4}
.mgrid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.mbtn{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 8px;border:1px solid var(--color-border);border-radius:var(--radius-input);background:#fff;font-size:12.5px;font-weight:600;color:var(--ink);cursor:pointer;text-decoration:none;white-space:nowrap}
.mbtn:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-lt)}
.mbtn svg{width:14px;height:14px;flex:none}
.mbtn.wide{grid-column:1/-1}
.mbtn.coffee{background:#ffd43b;border-color:#f0c419;color:#3b2f00;font-weight:700;padding:11px}
.mbtn.coffee:hover{background:#ffcd1a;color:#3b2f00}
.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 18px;border-radius:999px;font-size:13px;font-weight:600;z-index:200;opacity:0;pointer-events:none;transition:opacity .2s}
.toast.on{opacity:1}
@media(max-width:430px){ .menu{width:min(292px,calc(100vw - 24px))} }

/* breadcrumb + hero */
.crumb{font-size:12.5px;color:var(--muted);padding:12px 0 0}
.crumb a{color:var(--muted);text-decoration:none}
.crumb a:hover{color:var(--brand)}
.hero{text-align:center;padding:18px 0 6px}
.hero h1{margin:0 0 7px;font-size:clamp(22px,3.6vw,31px);letter-spacing:-.4px}
.hero p{margin:0 auto;max-width:620px;color:var(--muted)}
.trust{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:12px;font-size:12.5px}
.trust span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:5px 11px;color:var(--muted);font-weight:500}
.trust b{color:var(--ok)}

.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);margin:18px 0 26px;overflow:hidden}
.steps{display:flex;border-bottom:1px solid var(--line);background:#fafbff}
.steps div{flex:1;padding:10px 8px;text-align:center;font-size:12.5px;font-weight:600;color:#9aa0b8;display:flex;align-items:center;justify-content:center;gap:6px}
.steps div.on{color:var(--brand)}
.steps div.done{color:var(--ok)}
.steps i{width:20px;height:20px;border-radius:50%;background:#e8ebf5;display:grid;place-items:center;font-size:11px;font-style:normal;color:#8a90a8}
.steps div.on i{background:var(--brand);color:#fff}
.steps div.done i{background:var(--ok);color:#fff}
.pad{padding:22px}

/* drop zone */
/* Upload is the page's main surface: light blue, generous padding (guideline 15%) */
.drop{border:2px dashed #C3CFE4;border-radius:var(--r);background:var(--color-light-blue);text-align:center;padding:var(--space-7) var(--space-4);cursor:pointer;transition:.15s}
.drop:hover,.drop.over{border-color:var(--color-secondary-edge);background:var(--color-light-orange)}
.drop .ic{width:46px;height:46px;margin:0 auto 10px;border-radius:var(--radius-card);background:var(--color-surface);display:grid;place-items:center;color:var(--brand)}
.drop .ic svg{width:24px;height:24px}
.pick{display:inline-flex;align-items:center;gap:8px;background:var(--go);color:var(--go-ink);border:0;border-radius:var(--radius-button);padding:13px 30px;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 4px 14px rgba(245,130,32,.30);margin:10px 0 8px}
.pick:hover{background:var(--go-dk)}
.drop small{display:block;color:var(--muted);font-size:12.5px}
.or{margin-top:10px;font-size:13px;color:var(--muted)}
/* lets people see the tool work before trusting it with their own ID photo */
.sample{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 14px 7px 7px;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer;margin-top:10px}
.sample:hover{border-color:var(--accent);color:var(--brand)}
.sample img{width:26px;height:26px;border-radius:50%;object-fit:cover;object-position:50% 18%;flex:none}
.cam{display:none;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:var(--radius-input);padding:9px 16px;font-size:14px;font-weight:600;cursor:pointer;margin-top:8px}
@media(max-width:760px){.cam{display:inline-flex}}

/* editor */
.editor{display:none;grid-template-columns:minmax(0,1.25fr) minmax(0,360px);gap:20px}
.editor.on{display:grid}
@media(max-width:880px){.editor.on{grid-template-columns:1fr}}
.canvasBox{background:repeating-conic-gradient(#eceff7 0% 25%,#fff 0% 50%) 50%/18px 18px;border:1px solid var(--line);border-radius:var(--r);padding:12px;display:flex;justify-content:center;align-items:center;min-height:220px;overflow:hidden}
canvas#view{display:block;max-width:100%;touch-action:none;cursor:grab;box-shadow:0 0 0 1px rgba(0,0,0,.14),0 8px 24px rgba(0,0,0,.12)}
canvas#view:active{cursor:grabbing}
.tbar{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;align-items:center}
.tb{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-input);padding:8px 11px;font-size:13px;font-weight:600;cursor:pointer}
.tb:hover{border-color:var(--brand);color:var(--brand)}
.tb svg{width:15px;height:15px}
.tb.active{background:var(--brand-lt);border-color:var(--brand);color:var(--brand)}
.filemeta{font-size:12px;color:var(--muted);margin-top:8px}

.side h2{margin:0 0 12px;font-size:15px}
.fld{margin-bottom:14px}
.fld label{display:block;font-size:12.5px;font-weight:600;color:var(--muted);margin-bottom:5px}
select,input[type=number],input[type=text]{width:100%;min-width:0;padding:10px 11px;border:1px solid var(--color-border);border-radius:var(--radius-input);background:#fff;font-size:15px}
select:focus,input:focus{outline:2px solid var(--brand);border-color:var(--brand)}
.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}
.three{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:9px;align-items:end}
.unit{display:inline-flex;border:1px solid var(--color-border);border-radius:var(--radius-input);overflow:hidden}
.unit button{background:#fff;border:0;padding:10px;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer}
.unit button.on{background:var(--brand);color:#fff}
.hint{font-size:11.5px;color:var(--muted);margin-top:4px}
.kbbig{display:flex;align-items:center;gap:10px;background:var(--brand-lt);border:1px solid #cfe0fb;border-radius:var(--radius-button);padding:12px}
.kbbig input{flex:1;font-size:19px;font-weight:700;text-align:center;border-color:#c4d0f7}
.kbbig span{font-size:14px;font-weight:700;color:var(--brand);white-space:nowrap}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.chip{background:#f1f4fd;border:1px solid #dde3f7;border-radius:999px;padding:6px 11px;font-size:12.5px;font-weight:600;color:var(--brand);cursor:pointer;text-decoration:none}
.chip:hover,.chip.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.sw{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--line);font-size:14px;font-weight:600}
.tog{position:relative;width:42px;height:24px;flex:none;background:#cdd3e6;border-radius:999px;border:0;cursor:pointer;transition:.15s}
.tog::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:.15s}
.tog[aria-pressed=true]{background:var(--color-success)}
.tog[aria-pressed=true]::after{transform:translateX(18px)}

.cta{width:100%;margin-top:8px;padding:14px;border:0;border-radius:var(--radius-button);background:var(--go);color:var(--go-ink);font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 5px 16px rgba(245,130,32,.30)}
.cta:hover{background:var(--go-dk)}
.cta:disabled{opacity:.5;box-shadow:none;cursor:not-allowed}

.res{display:none;margin-top:14px;border:1px solid var(--line);border-radius:var(--r);padding:14px;background:#fafbff}
.res.on{display:block}
.res .top{display:flex;gap:14px;align-items:flex-start}
.res img{max-width:104px;max-height:124px;border:1px solid var(--line);background:#fff;border-radius:4px}
.badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;margin-bottom:6px}
.badge.ok{background:var(--okbg);color:var(--ok)}
.badge.warn{background:var(--warnbg);color:var(--warn)}
.res .nums{font-size:13.5px;line-height:1.7}
.res .nums b{font-variant-numeric:tabular-nums}
.dl{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:11px;padding:13px;border-radius:var(--radius-button);background:var(--go);color:var(--go-ink);font-weight:700;text-decoration:none;font-size:15px}
.dl:hover{background:var(--go-dk)}
.rnote{font-size:12px;color:var(--muted);margin-top:7px}
.checks{list-style:none;margin:10px 0 0;padding:0;font-size:12.5px}
.checks li{display:flex;gap:7px;align-items:flex-start;padding:3px 0;color:var(--muted)}
.checks li b{color:var(--ok);flex:none}
.checks li.bad b{color:var(--warn)}
.next{display:flex;margin-top:12px;gap:8px;flex-wrap:wrap}
.next button{flex:1 1 150px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-button);padding:11px;font-size:13.5px;font-weight:600;cursor:pointer}
.next button:hover{border-color:var(--brand);color:var(--brand)}

/* ---- feature banner ----
   One source image holds five feature cards; each class shows a single card by
   scaling the sheet and offsetting it, so there is one file and one request.
   Only banner-grid-a is used: banner-grid-b carries a competitor's brand name. */
.fbanner{display:block;width:100%;background-image:url(/assets/img/features.webp);
  background-repeat:no-repeat;border:1px solid var(--color-border);
  border-radius:var(--radius-card);overflow:hidden;box-shadow:var(--shadow-card)}
.fbanner.reduce  {aspect-ratio:810/275;background-size:206.42% auto;background-position:98.38% 50.60%}
.fbanner.increase{aspect-ratio:819/275;background-size:204.15% auto;background-position:1.64% 50.60%}
.fbanner.passport{aspect-ratio:810/314;background-size:206.42% auto;background-position:98.38% 2.23%}
.fbanner.cm      {aspect-ratio:1644/290;background-size:101.70% auto;background-position:50% 98.00%}

/* content sections */
.sec{margin:30px 0}
.sec h2{font-size:20px;margin:0 0 10px}
.sec h3{font-size:16px;margin:18px 0 6px}
.sec p{color:#39405a;margin:0 0 10px}
.how{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-top:12px}
.how div{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:15px}
.how b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;font-size:13px;margin-bottom:8px}
.how p{margin:0;font-size:13.5px;color:var(--muted)}
table.data{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;font-size:14px}
table.data th,table.data td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--line)}
table.data th{background:#f7f9fe;font-size:12.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
table.data tr:last-child td{border-bottom:0}
.tscroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
details{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-button);padding:13px 15px;margin-bottom:9px}
details summary{font-weight:600;cursor:pointer;font-size:14.5px}
details p{margin:9px 0 0;font-size:14px;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.tile{display:block;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:17px;text-align:left;transition:.15s;box-shadow:var(--shadow);text-decoration:none;color:inherit}
.tile:hover{border-color:var(--brand);transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.tile h4{margin:0 0 4px;font-size:16px;color:var(--ink)}
.tile p{margin:0;font-size:13px;color:var(--muted);line-height:1.45}
@media(prefers-reduced-motion:reduce){.tile:hover{transform:none}}
.linkgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:9px}
.linkgrid a{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-button);padding:11px 13px;text-decoration:none;font-size:13.5px;font-weight:600;color:var(--ink)}
.linkgrid a:hover{border-color:var(--brand);color:var(--brand)}
.ratios{display:flex;flex-wrap:wrap;gap:6px}
.ratios button{flex:1 1 auto;min-width:62px;padding:9px 10px;border:1px solid var(--color-border);background:#fff;border-radius:var(--radius-input);font-size:13px;font-weight:600;color:var(--muted);cursor:pointer}
.ratios button:hover{border-color:var(--brand);color:var(--brand)}
.ratios button.on{background:var(--brand);border-color:var(--brand);color:#fff}
canvas#view{touch-action:none}
.docs{display:flex;flex-wrap:wrap;gap:7px}
.docs button{flex:1 1 auto;min-width:92px;padding:11px 14px;border:1px solid var(--color-border);background:#fff;border-radius:var(--radius-button);font-size:14px;font-weight:600;color:var(--muted);cursor:pointer}
.docs button:hover{border-color:var(--brand);color:var(--brand)}
.docs button.on{background:var(--brand);border-color:var(--brand);color:#fff}
.shapes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.shapes button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 4px;border:1px solid var(--color-border);background:#fff;border-radius:var(--radius-button);cursor:pointer;font-size:11px;font-weight:600;color:var(--muted)}
.shapes button svg{width:20px;height:20px}
.shapes button:hover{border-color:var(--brand);color:var(--brand)}
.shapes button.on{background:var(--brand-lt);border-color:var(--brand);color:var(--brand)}
.bordrow{display:flex;align-items:center;gap:9px}
.bordrow input[type=range]{flex:1;accent-color:var(--brand);min-width:0}
.bordrow b{font-size:12px;width:34px;text-align:right;font-variant-numeric:tabular-nums}
.bordrow input[type=color]{width:38px;height:32px;padding:2px;border:1px solid var(--color-border);border-radius:7px;background:#fff;flex:none}
/* Notices sit at the foot of the page in normal flow — never fixed, never
   covering the tool — and can be dismissed. */
.alert,.rule{display:flex;align-items:flex-start;gap:10px}
.alert > div,.rule > div{flex:1;min-width:0}
.xbtn{flex:none;width:26px;height:26px;margin:-2px -4px 0 0;border:0;background:transparent;
  border-radius:var(--radius-input);color:currentColor;opacity:.55;cursor:pointer;display:grid;place-items:center}
.xbtn:hover{opacity:1;background:rgba(0,0,0,.07)}
.xbtn svg{width:14px;height:14px}
.alert[hidden],.rule[hidden]{display:none}
.alert{background:#fdeceb;border:1px solid #f3c2bd;border-left:4px solid #c0392b;color:#8d2b20;border-radius:var(--radius-button);padding:13px 15px;margin:18px 0;font-size:14px;line-height:1.55}
.alert strong{color:#8d2b20}
.alert a,.rule a{color:inherit;font-weight:600;white-space:nowrap}
.rule{background:var(--brand-lt);border:1px solid #cfe0fb;border-left:4px solid var(--brand);color:#24305c;border-radius:var(--radius-button);padding:13px 15px;margin:18px 0;font-size:14px;line-height:1.55}
.when{font-size:11px;color:var(--muted);white-space:nowrap}
.disc{background:var(--warnbg);border:1px solid #f0dcb4;color:var(--warn);border-radius:var(--radius-button);padding:11px 14px;font-size:12.5px;margin-top:14px;text-align:center}
footer{background:#fff;border-top:1px solid var(--line);padding:22px 0;margin-top:30px;text-align:center;font-size:12.5px;color:var(--muted)}
footer a{color:var(--muted);margin:0 7px}
.busy{position:fixed;inset:0;background:rgba(255,255,255,.75);display:none;place-items:center;z-index:99;font-weight:600}
.busy.on{display:grid}
.spin{width:34px;height:34px;border:3px solid #dfe3f2;border-top-color:var(--brand);border-radius:50%;animation:sp .7s linear infinite;margin:0 auto 10px}
@keyframes sp{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.spin{animation:none}}

/* ---- HTML to image ---- */
textarea.code{width:100%;min-width:0;padding:11px 12px;border:1px solid var(--color-border);
  border-radius:var(--radius-input);background:var(--color-surface);font-size:13px;line-height:1.55;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;resize:vertical}
textarea.code:focus{outline:2px solid var(--brand);border-color:var(--brand)}
.previewBox{border:1px solid var(--color-border);border-radius:var(--radius-card);
  background:repeating-conic-gradient(#eceff7 0% 25%,#fff 0% 50%) 50%/18px 18px;
  padding:12px;overflow:hidden}
#preview{border:0;display:block;background:transparent}
#measure{position:absolute;left:-10000px;top:0;width:1200px;height:10px;border:0;visibility:hidden}

/* ---- home tool tiles ---- */
.tile .ti{width:40px;height:40px;border-radius:var(--radius-button);display:grid;place-items:center;margin-bottom:12px}
.tile .ti svg{width:21px;height:21px;color:#fff}
.tile .ti.blue{background:var(--color-primary)}
.tile .ti.orange{background:var(--color-secondary)}

/* ---- home hero banner ---- */
.herobanner{display:block;width:100%;height:auto;margin:var(--space-4) 0 0;
  border-radius:var(--radius-card);border:1px solid var(--color-border);box-shadow:var(--shadow-card)}

/* ---- OCR progress ---- */
.progtrack{height:8px;border-radius:999px;background:var(--color-light-blue);overflow:hidden}
.progbar{height:100%;width:2%;border-radius:999px;background:var(--color-secondary);transition:width .25s}

/* The header nav now holds nine tools and scrolls on narrower desktops.
   A fade on the right edge is the cue that there is more to the side. */
.navwrap{position:relative;flex:1;min-width:0;display:flex;justify-content:flex-end;align-items:center;gap:2px}
.navwrap::after{content:"";position:absolute;right:0;top:0;bottom:0;width:34px;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,255,255,0),var(--color-surface));opacity:0;transition:opacity .15s}
.navwrap.more::after{opacity:1}
.navwrap .hnav{margin-left:0}

/* header "More tools" dropdown */
.morebox{position:relative;align-self:center;flex:0 0 auto;background:none;border:0;border-radius:0;padding:0;margin:0}
.morebox summary{list-style:none;cursor:pointer;padding:8px 11px;border-radius:var(--radius-input);font-size:13.5px;font-weight:600;color:var(--muted);white-space:nowrap}
.morebox summary::-webkit-details-marker{display:none}
.morebox summary::after{content:" ▾"}
.morebox summary:hover,.morebox[open] summary{background:var(--brand-lt);color:var(--brand)}
.morepanel{position:absolute;right:0;top:calc(100% + 6px);z-index:50;display:flex;flex-direction:column;min-width:210px;padding:6px;background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.morepanel a{padding:9px 12px;border-radius:8px;font-size:14px;font-weight:600;color:var(--muted);text-decoration:none;white-space:nowrap}
.morepanel a:hover{background:var(--brand-lt);color:var(--brand)}
.morepanel a[aria-current=page]{background:var(--brand);color:#fff}
@media(max-width:760px){.morebox{display:none}}

/* index-page tabs (exam sizes, government documents) */
.tabpanel{margin-top:18px}
.tabpanel[hidden]{display:none}
.tabpanel h2{margin:0 0 12px;font-size:18px}
.tabgo{margin:14px 0 0}
.tabgo a{font-weight:600}
