/* Layout: a single centred column on pure white. Heading, one search field, one answer. Ink-blue handwriting is the only colour. */
/* fonts: the site's own copies of Geist (variable, 300-700) and Caveat (variable, 500-700), the files and unicode-ranges Google Fonts
   serves (src/fonts/, OFL licences beside them). build.py names each file by its content (/assets/fonts/geist-latin.<hash>.woff2) and
   preloads the latin Geist. Until a face arrives, the text is set in a local face sized to its measurements (size-adjust and the
   ascent/descent overrides: Arial or Roboto for Geist, Segoe Print or Dancing Script for Caveat), so the swap does not move a line */
@font-face{font-family:"Caveat";font-style:normal;font-weight:500 700;font-display:swap;src:url(/assets/fonts/caveat-cyrillic-ext.4956ec7b19.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Caveat";font-style:normal;font-weight:500 700;font-display:swap;src:url(/assets/fonts/caveat-cyrillic.6276a2f5a5.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Caveat";font-style:normal;font-weight:500 700;font-display:swap;src:url(/assets/fonts/caveat-latin-ext.f626b95c1e.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Caveat";font-style:normal;font-weight:500 700;font-display:swap;src:url(/assets/fonts/caveat-latin.891951df5e.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Geist";font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/geist-cyrillic-ext.2317fa4bb2.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Geist";font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/geist-cyrillic.6894439694.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Geist";font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/geist-vietnamese.8fa40e5d24.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:"Geist";font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/geist-latin-ext.824f485b5d.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Geist";font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/geist-latin.19f9c92546.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* end of fonts */
@font-face{font-family:"Geist Fallback";font-weight:300 500;src:local("Arial"),local("ArialMT");size-adjust:101.25%;ascent-override:99.26%;descent-override:29.14%;line-gap-override:0%}
@font-face{font-family:"Geist Fallback";font-weight:600 700;src:local("Arial Bold"),local("Arial-BoldMT");size-adjust:101.11%;ascent-override:99.39%;descent-override:29.17%;line-gap-override:0%}
@font-face{font-family:"Geist Fallback R";font-weight:300 500;src:local("Roboto"),local("Roboto-Regular");size-adjust:102.9%;ascent-override:97.67%;descent-override:28.67%;line-gap-override:0%}
@font-face{font-family:"Geist Fallback R";font-weight:600 700;src:local("Roboto Bold"),local("Roboto-Bold");size-adjust:105.34%;ascent-override:95.4%;descent-override:28%;line-gap-override:0%}
@font-face{font-family:"Caveat Fallback";font-weight:500 700;src:local("Segoe Print");size-adjust:65.87%;ascent-override:145.75%;descent-override:45.55%;line-gap-override:0%}
@font-face{font-family:"Caveat Fallback D";font-weight:500 700;src:local("Dancing Script"),local("DancingScript-Regular"),local("DancingScript");size-adjust:91.34%;ascent-override:105.1%;descent-override:32.84%;line-gap-override:0%}
:root{
  --bg:#FFFFFF;
  --ink:#0E0F11;
  --ink-2:#52545B;
  --ink-3:#9B9CA2;
  --line:#EFEFF1;
  --line-2:#E2E3E6;
  --wash:#F6F6F7;
  --pen:#2A44A8;
  --pen-down:#17734A;
  --pen-soft:rgba(42,68,168,.2);
  --ink-q:#6E7077; /* quiet reading text (facts, notes): grey, but at 4.9:1 on white */
  --shadow:0 18px 50px -20px rgba(14,15,17,.20),0 2px 6px rgba(14,15,17,.04);
  --font:"Geist","Geist Fallback","Geist Fallback R",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --hand:"Caveat","Caveat Fallback","Caveat Fallback D","Segoe Print","Bradley Hand","Comic Sans MS",cursive;
  --ease:cubic-bezier(.22,.8,.24,1);
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--bg);scrollbar-gutter:stable}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--pen);outline-offset:3px;border-radius:8px}

.page{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;align-items:center;padding-block:clamp(56px,13vh,128px) calc(40px + env(safe-area-inset-bottom,0px));padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
.col{width:100%;max-width:600px}

/* ---------- The site header (build.py site_header(), app.js): the name, which goes home; one quiet line of highlights, each a figure or
   a page, taking turns; Explore, which opens every page. It scrolls away with the page, so it never covers the governments page's sticky
   theme bar or the search list. One line on wide screens; on phones the highlights take a line of their own under the name ---------- */
:root{--rr-h:64px}
.rr-head{position:relative;z-index:40;padding-top:env(safe-area-inset-top,0px)}
.rr-in{display:flex;align-items:center;height:64px;max-width:1200px;margin:0 auto;padding:0 max(28px,env(safe-area-inset-right,0px)) 0 max(28px,env(safe-area-inset-left,0px))}
/* The header takes the place of the old name line over the heading (26.5 px), so the heading and the search stay where they were */
.rr-head ~ .page{padding-top:max(0px,calc(clamp(56px,13vh,128px) + 26.5px - var(--rr-h)))}
/* A page that opens on its own subject (main.page.deep: an item, a category, the method, the decades and the governments pages) has no
   tagline: its search and its own heading sit close under the header */
.rr-head ~ .page.deep{padding-top:max(0px,calc(clamp(28px,5vh,56px) + 26.5px - var(--rr-h)))}
/* The name: the mark in pen, which turns back a little on hover, like a rewind. At least as wide as it is in Geist, so the line beside
   it never moves when the font arrives */
.rr-name{flex:0 0 auto;display:flex;align-items:center;gap:9px;min-width:158px;height:40px;margin-left:-6px;padding:0 6px;color:var(--ink);text-decoration:none;font-size:1.02rem;font-weight:600;letter-spacing:-.03em;white-space:nowrap}
.rr-mark{flex:0 0 auto;width:26px;height:26px;color:var(--pen);transition:transform .8s var(--ease)}
.rr-name:hover .rr-mark{transform:rotate(-30deg)}
/* The highlights: all in the page, one shown; the others are hidden (visibility), so only the one on screen can be tabbed to, and
   nothing is announced as they turn. Only the wording on screen is displayed, so each link's name is the words it shows */
.rr-tick{position:relative;flex:1 1 auto;min-width:0;height:40px;margin-left:12px}
.rr-tick::before,.rr-tick::after{content:"";position:absolute;left:0;top:50%;width:1px;height:16px;margin-top:-8px;background:var(--line-2);pointer-events:none}
/* The clock: the hairline darkens a shade from its foot while a highlight is shown; at its end the next one comes (app.js) */
.rr-tick::after{background:#CDCFD4;opacity:0;transform:scaleY(0);transform-origin:50% 100%}
.rr-tick.run::after{animation:rr-dwell 5s linear both}
.rr-tick.run.first::after{animation-delay:1.2s}
.rr-tick.hold::after{animation-play-state:paused}
@keyframes rr-dwell{0%{opacity:1;transform:scaleY(0)}92%{opacity:1;transform:none}100%{opacity:0;transform:none}}
.rr-hl{position:absolute;left:11px;top:0;bottom:0;max-width:calc(100% - 11px);display:flex;align-items:center;padding:0 8px;border-radius:10px;color:var(--ink-q);font-size:.84rem;letter-spacing:-.006em;text-decoration:none;white-space:nowrap;visibility:hidden;opacity:0}
.rr-hl.on{visibility:visible;opacity:1}
.rr-hl b{font-weight:500;color:var(--ink)}
.rr-hl .v{display:none;min-width:0;padding:6px 0;overflow:hidden;text-overflow:ellipsis;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;transition:text-decoration-color .2s}
.rr-hl i{flex:0 0 auto;padding-left:7px;font-style:normal;color:var(--ink-3);transition:transform .45s var(--ease),color .2s}
.rr-hl:hover .v{text-decoration-color:var(--line-2)}
.rr-hl:hover i{transform:translateX(3px);color:var(--ink-2)}
.rr-hl:focus-visible{outline-offset:-2px;border-radius:10px}
/* Which wording: app.js shows the longest that fits (data-fit); without it, the screen's width picks one (on phones the last, shortest) */
.rr-hl[data-fit="1"] .v1,.rr-hl[data-fit="2"] .v2,.rr-hl[data-fit="3"] .v3{display:block}
@media (min-width:1100px){.rr-head:not(.js) .rr-hl .v1{display:block}}
@media (min-width:720px) and (max-width:1099px){.rr-head:not(.js) .rr-hl .v2,.rr-head:not(.js) .rr-hl .v1:nth-last-child(2){display:block}}
@media (max-width:719px){.rr-head:not(.js) .rr-hl .v:nth-last-child(2){display:block}}
.rr-tick.measure .rr-hl{visibility:hidden;right:0;max-width:none}
.rr-tick.measure .rr-hl .v{display:block;flex:none;width:max-content}
.rr-tick.none{visibility:hidden}
/* A turn, as if rewinding: the one leaving drops a little and fades; a breath later the next comes down into its place (transform and
   opacity only, never two lines at once). A tap goes to the line that can be seen: the one leaving stays on top while it fades, and the
   next can be tapped only once it starts to show (it is hidden while it waits) */
.rr-hl.out{visibility:visible;z-index:1;animation:rr-out .34s cubic-bezier(.45,0,.85,.35) both}
.rr-hl.in{animation:rr-in .72s var(--ease) .36s both}
@keyframes rr-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(6px)}}
@keyframes rr-in{from{opacity:0;transform:translateY(-8px);visibility:hidden}to{opacity:1;transform:none;visibility:visible}}
/* Explore: a quiet outlined pill, a <details> (it opens without JavaScript too); its panel is a card under it on wide screens and a
   sheet from the foot of the screen on phones */
.rr-x{position:relative;flex:0 0 auto;margin-left:16px}
.rr-x:not(:has(> summary)){visibility:hidden}
.rr-x > summary{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:6px;min-width:101px;height:40px;padding:0 13px 0 17px;border:1px solid var(--line-2);border-radius:999px;background:var(--bg);color:var(--ink-2);font-size:.86rem;letter-spacing:-.005em;list-style:none;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;transition:border-color .25s,color .25s}
.rr-x > summary::-webkit-details-marker{display:none}
.rr-x > summary:hover,.rr-x[open] > summary{border-color:#D7D8DC;color:var(--ink)}
.rr-x > summary:focus-visible{border-radius:999px;outline-offset:2px}
.rr-x > summary svg{width:15px;height:15px;transition:transform .45s var(--ease)}
.rr-x[open] > summary svg{transform:rotate(180deg)}
.rr-dim{display:none}
.rr-menu{position:absolute;z-index:1;top:calc(100% + 10px);right:0;width:min(780px,calc(100vw - 72px));max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:22px;background:var(--bg);box-shadow:0 30px 80px -28px rgba(14,15,17,.24),0 2px 8px rgba(14,15,17,.04);text-align:left}
.rr-mh{display:none}
.rr-mb{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 16px;padding:20px 14px 14px}
.rr-g > p{margin:0 0 4px;padding:0 12px;font-family:var(--hand);font-weight:600;font-size:1.25rem;line-height:1.3;color:var(--pen)}
.rr-g ul{margin:0;padding:0;list-style:none}
.rr-g a{display:block;padding:8px 12px;border-radius:13px;color:var(--ink);text-decoration:none;transition:background .2s}
.rr-g a:hover{background:var(--wash)}
.rr-g a:focus-visible{outline-offset:-2px;border-radius:13px}
.rr-g a span{display:block;font-size:.9rem;font-weight:500;letter-spacing:-.012em}
.rr-g a small{display:block;margin-top:2px;font-size:.76rem;line-height:1.35;color:var(--ink-q);text-wrap:pretty}
.rr-g a[aria-current] span::after,.rr-cats a[aria-current]::after{content:"";display:inline-block;width:5px;height:5px;margin:0 0 2px 8px;border-radius:50%;background:var(--pen)}
.rr-cats{grid-column:1/-1;margin-top:10px;padding-top:14px;border-top:1px solid var(--line)}
.rr-cats ul{columns:3;column-gap:16px}
.rr-cats a{padding:7px 12px;font-size:.86rem;color:var(--ink-2);break-inside:avoid}
.rr-cats a:hover,.rr-cats a[aria-current]{color:var(--ink)}
.rr-close{display:grid;place-items:center;width:40px;height:40px;margin-top:-6px;border:0;border-radius:50%;background:transparent;color:var(--ink-2);cursor:pointer;transition:background .2s,color .2s}
.rr-close:hover{background:var(--wash);color:var(--ink)}
.rr-close svg{width:18px;height:18px}
.rr-head:not(.js) .rr-close{display:none} /* without JavaScript, Explore itself closes it */
.anim .rr-x[open] .rr-menu{transform-origin:top right;animation:drop .28s var(--ease) both}
@media (max-width:719px){
  :root{--rr-h:84px}
  .rr-in{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px 36px;height:auto;padding:0 max(20px,env(safe-area-inset-right,0px)) 0 max(20px,env(safe-area-inset-left,0px))}
  .rr-name{grid-area:1/1;justify-self:start;min-width:0;gap:8px;font-size:.98rem}
  .rr-mark{width:23px;height:23px}
  .rr-x{grid-area:1/2;margin:0 -2px 0 0}
  .rr-x > summary{min-width:96px;padding:0 11px 0 15px;font-size:.84rem}
  .rr-tick{grid-area:2/1/3/3;align-self:start;margin:-4px 0 0}
  .rr-tick::before{display:none}
  .rr-tick::after{visibility:hidden} /* the clock still keeps the time on phones; it is not drawn */
  .rr-hl{left:-8px;max-width:calc(100% + 16px);font-size:.8rem}
  .rr-tick.measure .rr-hl{right:-8px}
  .rr-head.js .rr-x > summary{z-index:0} /* under the dimmed page: the sheet has its own close button */
  .rr-hl i{padding-left:6px}
}
@media (max-width:359px){
  .rr-hl{font-size:.78rem}
  .rr-hl i{padding-left:5px}
}
@media (max-width:719px){
  .rr-dim{display:block;position:fixed;inset:0;background:rgba(250,250,251,.92)}
  .rr-menu{position:fixed;top:auto;right:0;bottom:0;left:0;width:100%;max-height:calc(100% - 64px);max-height:calc(100dvh - 64px);border-bottom:0;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom,0px);box-shadow:0 -20px 60px -24px rgba(14,15,17,.2)}
  /* The sheet's title, close button and handle stay at its top while its list scrolls under them */
  .rr-mh{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;padding:24px 14px 8px 24px;border-radius:24px 24px 0 0;background:var(--bg)}
  .rr-mh::before{content:"";position:absolute;top:8px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--line-2)}
  .rr-mh p{margin:0;font-size:1.35rem;font-weight:600;letter-spacing:-.03em}
  .rr-mb{grid-template-columns:minmax(0,1fr);gap:14px;padding:0 12px 22px}
  .rr-g a{padding:9px 12px}
  .rr-cats{margin-top:0}
  .rr-cats ul{columns:2;column-gap:4px}
  .rr-cats a{display:flex;align-items:center;min-height:42px;padding:6px 12px}
  .anim .rr-x[open] .rr-menu{animation:sheet-up .42s cubic-bezier(.2,.9,.25,1) both}
  .anim .rr-x[open] .rr-dim{animation:fade .3s ease both}
  html.rr-lock{overflow:hidden}
}
@media print{.rr-tick,.rr-x{display:none}} /* on paper, the name only */

/* Heading (.h1: the tagline, an h1 on the home page and a plain line on its sheet pages; every other page opens on its own heading) */
.h1{margin:14px auto 0;text-align:center;font-weight:600;font-size:clamp(2rem,1.25rem + 3.6vw,3.35rem);line-height:1.04;letter-spacing:-.04em;text-wrap:balance;max-width:8.88em}

/* Search */
.search{position:relative;z-index:30;margin-top:clamp(28px,5vh,44px);scroll-margin-top:8px}
.box{position:relative;display:flex;align-items:center;gap:12px;height:62px;padding:0 10px 0 20px;background:var(--bg);border:1px solid var(--line-2);border-radius:999px;transition:border-color .35s var(--ease),box-shadow .45s var(--ease),transform .45s var(--ease)}
.box:hover{border-color:#D7D8DC}
.search.focus .box{border-color:#D5D7DC;box-shadow:var(--shadow);transform:translateY(-1px)}
.box svg.lens{flex:0 0 auto;width:19px;height:19px;color:var(--ink-3);transition:color .3s,transform .5s var(--ease)}
.search.focus .box svg.lens{color:var(--ink)}
.search.busy .box svg.lens{animation:look .7s var(--ease)}
.box input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:var(--ink);font:400 1.06rem/1 var(--font);letter-spacing:-.01em}
.box input::placeholder{color:var(--ink-3);opacity:1}
.box input::-webkit-search-cancel-button{display:none}
.clear{flex:0 0 auto;width:40px;height:40px;border:0;background:transparent;border-radius:50%;display:grid;place-items:center;color:var(--ink-3);cursor:pointer;opacity:0;pointer-events:none;transform:scale(.8);transition:opacity .2s,transform .3s var(--ease),background .2s}
.clear.on{opacity:1;pointer-events:auto;transform:scale(1)}
.clear:hover{background:var(--wash);color:var(--ink)}
.clear svg{width:16px;height:16px}
.browse{flex:0 0 auto;display:flex;align-items:center;gap:8px;height:42px;padding:0 17px 0 14px;border:0;border-radius:999px;background:var(--wash);color:var(--ink-2);font-size:.88rem;letter-spacing:-.005em;cursor:pointer;transition:background .25s,color .25s}
.browse:hover{background:#EDEDEF;color:var(--ink)}
.browse svg{width:15px;height:15px}
.scan{position:absolute;left:26px;right:26px;bottom:-1px;height:2px;overflow:hidden;border-radius:2px;pointer-events:none}
.scan::after{content:"";position:absolute;top:0;bottom:0;width:38%;background:linear-gradient(90deg,transparent,var(--pen),transparent);transform:translateX(-110%);opacity:0}
.search.busy .scan::after{animation:scan .75s var(--ease)}

.list{position:absolute;z-index:20;top:calc(100% + 10px);left:0;right:0;margin:0;padding:6px;list-style:none;background:var(--bg);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);max-height:min(360px,52vh);overflow-y:auto;overscroll-behavior:contain;transform-origin:top center;animation:drop .28s var(--ease) both}
.list[hidden]{display:none}
.opt{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 14px;border-radius:15px;cursor:pointer;animation:rise .32s var(--ease) both;animation-delay:calc(var(--i,0) * 28ms)}
.opt[aria-selected="true"]{background:var(--wash)}
.opt .n{display:grid;gap:2px;min-width:0;font-size:1rem;color:var(--ink-2);letter-spacing:-.01em}
.opt .n mark{background:none;color:var(--ink);font-weight:600}
.opt .n small{color:var(--ink-q);font-size:.8rem;margin-left:6px}
.opt .cat{display:flex;flex-wrap:wrap;column-gap:.9em;overflow:hidden;font-size:.72rem;letter-spacing:.01em;color:var(--ink-q)}
/* A changed pack size after the category, whole; the dot between them sits in the gap and is clipped away when it starts a new line */
.opt .cat .sk{position:relative;white-space:nowrap}
.opt .cat .sk::before{content:"·";position:absolute;right:100%;width:.9em;text-align:center}
.opt .chg,.ix-h{flex:0 0 auto;font-family:var(--hand);font-weight:600;font-size:1.22rem;line-height:1;color:var(--pen);white-space:nowrap}
.opt .chg.dn,.ix-h.dn{color:var(--pen-down)}
.opt .chg small,.ix-h small{margin-left:6px;font-family:var(--font);font-weight:400;font-size:.72rem;color:var(--ink-3)}
.opt .go{color:var(--ink)}
.hint{padding:10px 14px 4px;font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:var(--ink-3)}
.none{padding:16px 14px;color:var(--ink-q);font-size:.92rem}
.opt.all{margin-top:4px;border-top:1px solid var(--line);border-radius:0 0 15px 15px}
.opt.all .n{color:var(--ink)}
/* Nothing found (or nothing close): a quiet last row to ask for the item; once tapped it says thanks in pen */
.opt.ask{margin-top:4px;border-top:1px solid var(--line);border-radius:0 0 15px 15px}
.none + .opt.ask{margin-top:0}
.opt.ask .t{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-2);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:4px}
.opt.ask.done{cursor:default}
.opt.ask.done .t{font-family:var(--hand);font-weight:600;font-size:1.2rem;line-height:1.15;color:var(--pen);text-decoration:none}

/* Answer */
.answer{margin-top:clamp(44px,8vh,72px);min-height:300px}
.a-head{text-align:center}
.a-name{margin:0;font-weight:600;font-size:clamp(1.5rem,1.2rem + 1.4vw,2.05rem);letter-spacing:-.03em}
.a-meta{margin:6px 0 0;color:var(--ink-q);font-size:.86rem;letter-spacing:.01em}
/* The heading says what the figures are, quietly: "Petrol price", "Gold rate" */
.a-sfx{font-weight:400;color:var(--ink-3)}
/* The answer's views (Price · Work time · ₹1 lakh, or a price per quantity): one full-width segmented switch under the meta line, in the
   Share sheet's Post / Story look. The white pill is one layer that slides to the chosen segment (--k of --n) */
.views{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);margin:16px 0 0;padding:3px;border-radius:999px;background:var(--wash)}
.views::before{content:"";position:absolute;top:3px;bottom:3px;left:3px;width:calc((100% - 6px) / var(--n,2));border-radius:999px;background:var(--bg);box-shadow:0 1px 3px rgba(14,15,17,.1);transform:translateX(calc(var(--k,0) * 100%));transition:transform .38s var(--ease)}
.views button{position:relative;appearance:none;border:0;background:transparent;min-height:36px;padding:0 6px;border-radius:999px;font-size:.84rem;letter-spacing:-.005em;color:var(--ink-q);white-space:nowrap;cursor:pointer;transition:color .2s}
.views button:hover{color:var(--ink-2)}
.views button[aria-pressed=true]{color:var(--ink)}
.views button:focus-visible{border-radius:999px;outline-offset:1px}
@media (max-width:640px){.views button{min-height:40px}}
/* Wider screens: a quiet pill sized to its views, centred, not a bar across the column */
@media (min-width:641px){.views{max-width:calc(var(--n,2) * 150px);margin-left:auto;margin-right:auto}}

.tl{position:relative;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));margin-top:clamp(18px,3vh,28px);padding-top:58px}
.tl .base{position:absolute;top:calc(58px + 5px);left:calc(50% / var(--n));right:calc(50% / var(--n));height:1px;background:var(--line-2);transform-origin:left center}
.node{position:relative;display:grid;justify-items:center;align-content:start;gap:10px;text-align:center}
.dot{width:11px;height:11px;border-radius:50%;background:var(--bg);border:1.5px solid var(--ink)}
.node.last .dot{background:var(--ink)}
.yr{font-size:.74rem;letter-spacing:.16em;color:var(--ink-3)}
/* Every figure keeps the full size's line box, and a smaller (long) one drops by about half the size difference, so all sit on one baseline */
.val{--vs:clamp(1.18rem,.8rem + 2.3vw,2.15rem);position:relative;top:calc((var(--vs) - 1em) * .35);font-weight:600;font-size:var(--vs);line-height:calc(var(--vs) * 1.2);letter-spacing:-.035em;font-variant-numeric:tabular-nums;white-space:nowrap}
.val.long{font-size:clamp(1rem,.62rem + 2vw,1.85rem)}
.val.xlong{font-size:clamp(.9rem,.5rem + 1.8vw,1.6rem)}
/* Pack size (or vehicle variant) under a year's price */
.pk{max-width:100%;margin-top:-4px;padding:0 4px;font-size:.74rem;line-height:1.3;color:var(--ink-q);text-wrap:balance}
.anim .pk{animation:fade .5s var(--ease) both;animation-delay:calc(var(--d) + .3s)}
.node.last .val{color:var(--ink)}
.node:not(.last) .val{color:var(--ink-2)}

/* Handwriting between years */
.seg{position:absolute;top:0;height:56px;pointer-events:none}
.seg svg{position:absolute;left:0;right:0;bottom:0;width:100%;height:28px;overflow:visible}
.seg path{fill:none;stroke:var(--pen);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.seg.dn path{stroke:var(--pen-down)}
.seg .hand{position:absolute;left:50%;top:0;transform:translateX(-50%) rotate(-3deg);font-family:var(--hand);font-weight:600;font-size:clamp(1.15rem,.95rem + 1vw,1.55rem);line-height:1;color:var(--pen);white-space:nowrap}
.seg.dn .hand{color:var(--pen-down)}

.write{display:inline-block}

/* Summary in handwriting */
.sum{position:relative;margin:clamp(30px,5vh,44px) auto 0;width:max-content;max-width:100%;text-align:center}
.sum .big{font-family:var(--hand);font-weight:700;font-size:clamp(1.9rem,1.35rem + 2.6vw,2.9rem);line-height:1.05;color:var(--pen);transform:rotate(-2deg);display:inline-block}
.sum.dn .big{color:var(--pen-down)}
.sum svg{display:block;width:100%;height:16px;margin-top:-2px;overflow:visible}
.sum svg path{fill:none;stroke:var(--pen);stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}
.sum.dn svg path{stroke:var(--pen-down)}
.sum .small{display:block;margin-top:6px;font-family:var(--hand);font-weight:500;font-size:clamp(1.15rem,1rem + .6vw,1.4rem);color:var(--ink-2)}
/* The not-found page has no second line, nor does a summary whose second line gave way (solo): the underline takes the width of the words */
.sum.note svg,.sum.solo svg{width:0;min-width:100%}
/* "₹1 lakh → ₹16.4 lakh" runs longer than a percentage */
.sum.lakh .big{font-size:clamp(1.7rem,1.2rem + 2.4vw,2.6rem)}
/* At most two quieter lines in pen under the summary. Shrinkflation: how the pack itself changed */
.shrink,.work{margin:8px 0 0;text-align:center;font-family:var(--hand);font-weight:500;font-size:clamp(1.02rem,.92rem + .4vw,1.2rem);line-height:1.25;color:var(--pen);opacity:.82;text-wrap:balance}
.shrink.dn{color:var(--pen-down)}
/* Work time in the Price view: "3.2 months of work then, 9.5 months now" */
.work{color:var(--ink-2);opacity:1}
.shrink + .work{margin-top:4px}
/* Inflation: the change set against prices overall, "Rose less than prices overall (+250%)", in the work line's quiet hand */
.infl{margin:8px 0 0;text-align:center;font-family:var(--hand);font-weight:500;font-size:clamp(1.02rem,.92rem + .4vw,1.2rem);line-height:1.25;color:var(--ink-2);text-wrap:balance}
.shrink + .infl,.infl + .work{margin-top:4px}
.anim .answer.quiet .infl{animation:fade .35s var(--ease) both}
/* An item's own source links (the Inflation page) under its source line */
.src.src-links{margin-top:6px}
.src-links a{color:inherit;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px;transition:color .2s,text-decoration-color .2s}
.src-links a:hover{color:var(--ink-2);text-decoration-color:var(--ink-3)}
/* Investable items: a quiet card with what ₹1 lakh became here, in the Sensex (or gold) and as cash, the way into the Compare sheet */
.cmp{margin:clamp(22px,4vh,30px) 0 0;padding:14px 8px 6px;border:1px solid var(--line);border-radius:22px;text-align:left}
.cmp-h{margin:0 12px 6px;font-size:.8rem;line-height:1.45;color:var(--ink-q);text-wrap:balance}
.cmp .iv-list{margin:0}
.cmp .iv-row{padding:9px 12px 10px}
/* Cash has no bar here (on the sheet's log scale it is only a dot); the row keeps its height */
.cmp .iv-row.cash::after{visibility:hidden}
.cmp-go{display:block;margin:2px auto 0;padding:11px 14px;border:0;background:transparent;color:var(--ink-2);font-size:.84rem;letter-spacing:-.005em;cursor:pointer;border-radius:999px;transition:color .2s,background .2s}
.cmp-go:hover{color:var(--ink);background:var(--wash)}
/* Investable items on the not-found page: the way into Browse */
.inv{margin:clamp(18px,3vh,26px) 0 0;text-align:center;font-size:.86rem;line-height:1.6;color:var(--ink-2);text-wrap:balance}
.inv b{font-weight:500;color:var(--ink);white-space:nowrap}
/* A thin link to look at, a finger-sized target to tap */
.inv-go{margin:-8px -2px -8px 2px;padding:10px 6px;white-space:nowrap;border:0;background:transparent;color:var(--ink);font-size:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-2);transition:text-decoration-color .2s}
.inv-go:hover{text-decoration-color:var(--ink)}
.src{margin:clamp(22px,4vh,32px) 0 0;text-align:center;color:var(--ink-q);font-size:.76rem;line-height:1.5}

/* Use my pay, under the Work time view's summary: a quiet link, then an inline field, then the pay in use with Change and Reset */
.pay{margin:14px 0 0;text-align:center;font-size:.84rem;line-height:1.5;color:var(--ink-2)}
.pay p{margin:0}
.pay-link{appearance:none;margin:-4px -2px;padding:4px;border:0;background:transparent;color:var(--ink-2);font-size:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-2);transition:color .2s,text-decoration-color .2s}
.pay-link:hover{color:var(--ink);text-decoration-color:var(--ink-3)}
.pay .pay-fine{margin-top:6px;font-size:.76rem;color:var(--ink-q)}
.pay-acts{white-space:nowrap}
.pay-link:focus-visible{outline-offset:0;border-radius:6px}
.pay-form{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 12px}
.pay .pay-amt{flex:1 1 200px;max-width:260px}
/* Phones: the field takes the whole line (its placeholder in full), Use and Cancel under it; Change and Reset on a line of their own */
@media (max-width:480px){
  .pay .pay-amt{flex-basis:100%;max-width:320px}
  .pay-acts{display:block;margin-top:4px}
  .pay-sep{display:none}
}
.pay-amt input[aria-invalid=true]{color:var(--ink-3)}
.pay-ok{height:44px;padding:0 20px;border:0;border-radius:999px;background:var(--ink);color:#fff;font-size:.88rem;font-weight:500;cursor:pointer;transition:transform .3s var(--ease),box-shadow .3s}
.pay-ok:hover{transform:translateY(-1px);box-shadow:0 12px 24px -14px rgba(14,15,17,.55)}

/* Head to head: the two sides stacked on phones, side by side (wider than the column) on wide screens; "vs" in pen */
.a-name .vs{margin:0 .08em;font-family:var(--hand);font-weight:600;font-size:1.12em;color:var(--pen)}
.pair-name{text-wrap:balance}
.nw{white-space:nowrap}
.pair{position:relative;display:grid;gap:clamp(26px,5vh,38px);margin-top:clamp(22px,4vh,32px)}
.side{min-width:0;text-align:center}
.side + .side{padding-top:clamp(24px,4.5vh,34px);border-top:1px solid var(--line)}
.side-name{margin:0;font-size:1.14rem;font-weight:600;letter-spacing:-.02em;line-height:1.3}
.side-name a{color:var(--ink);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;transition:text-decoration-color .2s}
.side-name a:hover{text-decoration-color:var(--line-2)}
.side .a-meta{margin-top:4px}
.side .tl{margin-top:14px}
.side-chg{margin:18px 0 0;font-family:var(--hand);font-weight:700;font-size:clamp(1.45rem,1.2rem + 1vw,1.85rem);line-height:1.1;color:var(--pen)}
.side-chg.dn{color:var(--pen-down)}
.side-chg small{margin-left:4px;font-family:var(--font);font-weight:400;font-size:.76rem;color:var(--ink-3)}
.sum.verdict .big{font-size:clamp(1.45rem,1.1rem + 1.7vw,2.15rem);line-height:1.15;text-wrap:balance}
@media (min-width:960px){
  .pair{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:64px;width:840px;margin-left:-120px}
  .pair::before{content:"";position:absolute;top:6px;bottom:6px;left:50%;width:1px;background:var(--line)}
  .side + .side{padding-top:0;border-top:0}
  /* Side by side, both changes sit on one line even where only one side has pack sizes under its prices */
  .side{display:flex;flex-direction:column}
  .side-chg{margin-top:auto;padding-top:18px}
  .pair .val{--vs:clamp(1.1rem,.7rem + 1.2vw,1.7rem)}
  .pair .val.long{font-size:1.42rem}
  .pair .val.xlong{font-size:1.24rem}
}

/* Share, and beside it "Compare with…" (or, for a pair, the way back to the first item) */
.share-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:clamp(20px,3.4vh,30px)}
.share-btn{display:flex;align-items:center;gap:8px;max-width:100%;height:40px;padding:0 18px 0 15px;border:1px solid var(--line-2);border-radius:999px;background:var(--bg);color:var(--ink-2);font-size:.88rem;letter-spacing:-.005em;white-space:nowrap;cursor:pointer;transition:border-color .25s,color .25s,box-shadow .35s var(--ease),transform .35s var(--ease)}
.share-btn:hover{color:var(--ink);border-color:#D5D7DC;box-shadow:var(--shadow);transform:translateY(-1px)}
.share-btn svg{flex:0 0 auto;width:15px;height:15px}
.share-btn[hidden],.share-row[hidden]{display:none}
.share-btn:disabled{opacity:.45;pointer-events:none}
.share-btn span{overflow:hidden;text-overflow:ellipsis}
/* Quieter than Share: no outline until hovered; "vs" written in pen */
.vs-btn{border-color:transparent;color:var(--ink-q)}
.vs-btn i{font-family:var(--hand);font-style:normal;font-weight:700;font-size:1.2rem;line-height:1;color:var(--pen);transform:translateY(-1px) rotate(-4deg)}
/* While the search picks a rival, its box takes a touch of pen */
.search.pick .box{border-color:rgba(42,68,168,.4)}
/* An old #item link waits for its item instead of flashing this page's */
.answer.wait{visibility:hidden}
/* Someone who chose Work time or ₹1 lakh, or opened a link to a view: the answer waits for app.js to redraw it that way, so prices
   never flash first; a head to head's link waits for the pair */
.vw-work .answer[data-views~="work"]>:not(.a-head),.vw-lakh .answer[data-views~="lakh"]>:not(.a-head),.vw-qty .answer[data-views~="qty"]>:not(.a-head){visibility:hidden}
.vs-wait .answer,.vs-wait .share-row{visibility:hidden}

/* Home page only: one quiet row of links under the search, each to a page of its own (/top, /compare); two short rows at most on a phone */
.links{display:flex;flex-wrap:wrap;justify-content:center;gap:0 4px;margin-top:12px}
.links a{padding:9px 10px;color:var(--ink-2);font-size:.86rem;letter-spacing:-.005em;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:4px;white-space:nowrap;transition:color .2s,text-decoration-color .2s}
.links a:hover{color:var(--ink);text-decoration-color:var(--ink-3)}
@media (max-width:359px){.links a{padding:9px 6px}}
.links + .answer{margin-top:clamp(30px,6vh,58px)}

/* A first visit's handwritten nudge towards Work time, beside the column; app.js places it and its arrow where they touch nothing */
.pen-note{position:absolute;z-index:5;pointer-events:none;color:var(--pen)}
.pen-note span{position:absolute;display:block;font-family:var(--hand);font-weight:600;font-size:1.32rem;line-height:1.1;white-space:nowrap;transform:rotate(-3deg);transform-origin:left center}
.pen-note svg{position:absolute;left:0;top:0;overflow:visible}
.pen-note path{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.pen-note.out{opacity:0;transition:opacity .4s var(--ease)}

/* Quick list: links to each item's page, looking like the buttons around them */
.quick{margin-top:clamp(40px,7vh,64px);display:flex;flex-wrap:wrap;justify-content:center;gap:6px 4px}
.quick a,.quick button{appearance:none;border:0;background:transparent;padding:8px 12px;border-radius:999px;color:var(--ink-q);font-size:.88rem;line-height:normal;text-decoration:none;cursor:pointer;transition:color .25s,background .25s}
.quick a:hover,.quick button:hover{color:var(--ink);background:var(--wash)}
.quick [aria-current="page"]{color:var(--ink);background:var(--wash)}
.quick .all{color:var(--ink-2)}
/* The footer's one line about anonymous usage stats */
.stats{margin:clamp(28px,5vh,44px) 0 0;text-align:center;font-size:.72rem;line-height:1.5;color:var(--ink-q);text-wrap:balance}

/* An item's facts at the foot of its page (the home page's few lines about the site): small, grey, plain sentences to quote */
.facts{margin:clamp(40px,7vh,64px) auto 0;max-width:34rem;text-align:center;font-size:.78rem;line-height:1.65;color:var(--ink-q);text-wrap:pretty}
.facts:empty{display:none}
.facts p,.facts .f-meta{margin:8px 0 0}
.facts .f-h{margin:0;font-size:.8rem;font-weight:500;letter-spacing:-.005em;color:var(--ink-2);text-wrap:balance}
.f-meta{color:var(--ink-q)}
.facts a,.f-meta a,.doc a,.foot a{color:inherit;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px;transition:color .2s,text-decoration-color .2s}
.facts a:hover,.f-meta a:hover,.doc a:hover,.foot a:hover{color:var(--ink);text-decoration-color:var(--ink-3)}
.crumbs{display:inline}
.crumbs a{text-decoration:none}
/* An item's price history (history.py), above "Keep exploring": its heading in pen like a page's sections, one sentence, the chart (a
   step line for revisions, a line for a yearly series), every point in a quiet table newest first (one wider than a phone scrolls in its
   own box; the oldest rows fold away), why it changed, the same thing elsewhere, links and what could not be verified */
.hist{margin:clamp(40px,7vh,64px) 0 0;text-align:left;scroll-margin-top:12px}
.hist[hidden]{display:none}
.hist .h-h{margin:0;text-align:center;font-family:var(--hand);font-weight:600;font-size:1.45rem;line-height:1.15;color:var(--pen);text-wrap:balance}
.hist p{margin:8px 0 0;font-size:.9rem;line-height:1.65;color:var(--ink-2);text-wrap:pretty}
.hist .h-lede{margin:10px auto 0;max-width:34rem;text-align:center}
.hist a{color:inherit;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px;transition:color .2s,text-decoration-color .2s}
.hist a:hover{color:var(--ink);text-decoration-color:var(--ink-3)}
.h-chart{display:block;width:100%;max-width:440px;height:auto;margin:18px auto 0;overflow:visible}
.h-chart .h-ln{fill:none;stroke:var(--pen);stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.h-chart .h-ax{fill:none;stroke:var(--line-2);stroke-width:1;vector-effect:non-scaling-stroke}
.h-chart .h-dot{fill:var(--pen)}
.h-chart text{font-family:var(--font);font-size:10.5px;fill:var(--ink-q);font-variant-numeric:tabular-nums}
.h-chart .h-v{font-size:11.5px;font-weight:600;fill:var(--ink)}
.h-tw{margin-top:16px;overflow-x:auto;overscroll-behavior-x:contain}
.h-tbl{width:100%;border-collapse:collapse;font-size:.84rem;font-variant-numeric:tabular-nums}
.h-tbl th,.h-tbl td{padding:8px 10px 8px 0;text-align:left;font-weight:400;vertical-align:top}
.h-tbl thead th{padding-top:6px;font-size:.62rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);white-space:nowrap;box-shadow:inset 0 -1px var(--line-2)}
.h-tbl tbody th{color:var(--ink);white-space:nowrap}
.h-tbl td{color:var(--ink-2);white-space:nowrap}
.h-tbl th:last-child,.h-tbl td:last-child{padding-right:0}
.h-tbl td.h-n{width:100%;min-width:8.5rem;white-space:normal;font-size:.78rem;line-height:1.5;color:var(--ink-q)}
.h-tbl small{display:block;margin-top:1px;font-size:.72rem;line-height:1.35;color:var(--ink-q);white-space:normal}
.h-tbl tbody tr + tr{border-top:1px solid var(--line)}
.h-tbl td.up{color:var(--pen)}
.h-tbl td.dn{color:var(--pen-down)}
.h-tbl td.na{color:var(--ink-3)}
.h-also tbody th{min-width:6rem;white-space:normal}
.h-also small{white-space:nowrap}
.h-more summary{margin-top:2px;padding:10px 0;font-size:.84rem;color:var(--ink-2);cursor:pointer;border-top:1px solid var(--line)}
.h-more summary:hover{color:var(--ink)}
.h-more .h-tw{margin-top:0}
.hist .h-sub{margin:26px 0 2px;font-size:.84rem;font-weight:600;letter-spacing:-.005em;color:var(--ink)}
.hist .h-src,.hist .h-see,.hist .h-gap{font-size:.8rem;color:var(--ink-q)}
.hist .h-gap{margin-top:14px;font-style:italic}
/* Phones: each row's date, figure and change on one line, its note and source on a line of their own under them at full width, so
   the table fits the screen and never scrolls sideways */
@media (max-width:560px){
  .h-tbl,.h-tbl thead,.h-tbl tbody{display:block}
  .h-tbl{font-size:.8rem}
  .h-tbl tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr) minmax(0,1.35fr);column-gap:8px}
  .h-also tr{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
  .h-tbl th,.h-tbl td,.h-tbl th:last-child,.h-tbl td:last-child{padding:8px 0 0}
  .h-tbl td{white-space:normal}
  .h-tbl tbody th{white-space:normal}
  .h-tbl thead th{padding-bottom:8px}
  .h-tbl thead th:last-child{display:none}
  .h-tbl td.h-n{grid-column:1/-1;width:auto;min-width:0;padding:2px 0 9px}
}
/* Every page's footer: the price categories, the method and the data's licence, then the line about usage stats */
.foot{margin-top:clamp(28px,5vh,44px);padding-top:clamp(20px,3.5vh,28px);border-top:1px solid var(--line);text-align:center;font-size:.72rem;line-height:1.75;color:var(--ink-q);text-wrap:balance}
.foot p{margin:8px 0 0}
.foot a{text-decoration-color:transparent;white-space:nowrap}
.foot .stats{margin-top:12px}

/* Pages of their own in the answer's place: a category's prices, how the prices are chosen, the decades, a sheet's content without
   app.js. The heading as an item's name, sections labelled in pen as in Browse, quiet tables */
.doc{text-align:left}
.doc h1{margin:0;text-align:center;font-weight:600;font-size:clamp(1.5rem,1.2rem + 1.4vw,2.05rem);line-height:1.15;letter-spacing:-.03em;text-wrap:balance}
.doc .lede{margin:14px auto 0;max-width:36rem;text-align:center;font-size:.94rem;line-height:1.6;color:var(--ink-2);text-wrap:pretty}
.doc h2{margin:clamp(30px,5vh,42px) 0 6px;font-family:var(--hand);font-weight:600;font-size:1.45rem;line-height:1.15;color:var(--pen);text-wrap:balance}
.doc h3{margin:18px 0 4px;font-size:.84rem;font-weight:600;letter-spacing:-.005em;color:var(--ink)}
.doc p{margin:8px 0 0;font-size:.9rem;line-height:1.65;color:var(--ink-2);text-wrap:pretty}
.doc .note{font-size:.8rem;color:var(--ink-q)}
.doc ul{margin:10px 0 0;padding-left:1.1em;font-size:.86rem;line-height:1.65;color:var(--ink-2)}
.doc li + li{margin-top:5px}
.doc .srcs{font-size:.8rem;color:var(--ink-q)}
.doc .f-meta{margin-top:clamp(30px,5vh,40px);text-align:center;font-size:.76rem;line-height:1.6}
/* A category page is prices first: one sentence, then its tables; how its prices did against prices overall and the method note come
   after the last table. Where it has several tables, one quiet line of links to them sits under the sentence: one line at every
   width, scrolling sideways under the finger where the names do not fit (the page itself never does) and fading at its edges */
.doc .after{margin-top:clamp(26px,4.5vh,36px)}
.doc .jump{display:flex;gap:2px;margin:12px -20px 0;padding:0 20px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;white-space:nowrap;font-size:.84rem;-webkit-mask-image:linear-gradient(90deg,transparent,#000 18px,#000 calc(100% - 26px),transparent);mask-image:linear-gradient(90deg,transparent,#000 18px,#000 calc(100% - 26px),transparent)}
.doc .jump::-webkit-scrollbar{display:none}
.doc .jump::before,.doc .jump::after{content:"";margin:auto}
.doc .jump a{flex:0 0 auto;padding:8px 9px;border-radius:999px;color:var(--ink-q);text-decoration:none;transition:color .2s,background .2s}
.doc .jump a:hover{color:var(--ink);background:var(--wash)}
/* With a mouse a line cannot be swiped: there the links wrap, centred, in as few lines as they need */
@media (hover:hover) and (pointer:fine){
  .doc .jump{flex-wrap:wrap;justify-content:center;row-gap:0;margin:12px 0 0;padding:0;overflow:visible;white-space:normal;-webkit-mask-image:none;mask-image:none}
  .doc .jump::before,.doc .jump::after{display:none}
  .doc .jump a{padding:5px 9px}
}
.doc .jump + section h2{margin-top:clamp(20px,3.5vh,30px)}
.doc section{scroll-margin-top:12px}
.dt-wrap{margin-top:6px}
.dt{width:100%;border-collapse:collapse;font-size:.84rem;font-variant-numeric:tabular-nums}
.dt th,.dt td{padding:9px 6px;text-align:right;font-weight:400;vertical-align:top}
.dt thead th{padding-top:6px;padding-bottom:8px;font-size:.68rem;font-weight:500;letter-spacing:.1em;color:var(--ink-3);white-space:nowrap;box-shadow:inset 0 -1px var(--line-2)}
.dt thead th:first-child{text-align:left;font-size:.62rem;text-transform:uppercase}
.dt tbody th,.dt tfoot th{padding-left:0;text-align:left;color:var(--ink)}
.dt tbody th a{color:var(--ink);text-decoration-color:var(--line-2)}
.dt tbody th a:hover{text-decoration-color:var(--ink-3)}
.dt td{color:var(--ink-2);white-space:nowrap}
.dt td:last-child{padding-right:0}
.dt small{display:block;margin-top:1px;font-size:.72rem;line-height:1.35;color:var(--ink-q);white-space:normal}
.dt tbody tr + tr,.dt tr.ref{border-top:1px solid var(--line)}
.dt td.up{color:var(--pen)}
.dt td.dn{color:var(--pen-down)}
.dt td.na{color:var(--ink-3)}
.dt tfoot th,.dt tfoot td{font-weight:600;color:var(--ink);box-shadow:inset 0 1px var(--line-2)}
.dt tr.ref th,.dt tr.ref td{color:var(--ink-3)}
.dt.gov td{white-space:normal}
.dt.wrap td{white-space:normal;text-align:left}
/* Phones: each row on two lines, the item and then its figures under the year labels */
@media (max-width:560px){
  .dt:not(.w1),.dt:not(.w1) thead,.dt:not(.w1) tbody,.dt:not(.w1) tfoot{display:block}
  .dt{font-size:.8rem}
  .dt:not(.w1) tr{display:grid;grid-template-columns:repeat(var(--c),minmax(0,1fr));column-gap:6px}
  /* Three years of prices and two changes: the prices get the room */
  .dt.w5 tr{grid-template-columns:repeat(3,minmax(0,1.22fr)) repeat(2,minmax(0,1fr))}
  .dt:not(.w1) th[scope=row]{grid-column:1/-1;padding-bottom:2px}
  .dt:not(.w1) thead th:first-child{display:none}
  .dt:not(.w1) th,.dt:not(.w1) td,.dt:not(.w1) td:last-child{padding:4px 0 9px;text-align:left}
  .dt td,.dt thead th{white-space:normal}
  .dt thead th{padding-top:4px;letter-spacing:.06em}
  .dt:not(.w1) th[scope=row] small{display:inline;margin-left:6px}
}

/* Browse sheet: a centred card on wide screens, a bottom sheet on phones */
html.locked{overflow:hidden}
.index{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--ink);overflow:hidden;overflow:clip;overscroll-behavior:none}
.index::backdrop{background:rgba(250,250,251,.92)}
@media (hover:hover) and (pointer:fine){.index::backdrop{background:rgba(255,255,255,.66);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}}
.ix-sheet{position:absolute;inset:0;margin:auto;outline:0;will-change:transform,opacity;width:min(640px,calc(100% - 40px));height:min(720px,calc(100% - 64px));display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--line);border-radius:28px;box-shadow:0 40px 100px -30px rgba(14,15,17,.26),0 2px 8px rgba(14,15,17,.04);overflow:hidden}
.ix-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:26px 24px 0 30px}
.ix-head h2{margin:0;font-size:1.35rem;font-weight:600;letter-spacing:-.03em;text-wrap:balance}
.ix-count{margin:4px 0 0;font-size:.8rem;color:var(--ink-3)}
.ix-close{flex:0 0 auto;width:40px;height:40px;margin-top:-6px;border:0;border-radius:50%;background:transparent;color:var(--ink-3);display:grid;place-items:center;cursor:pointer;transition:background .2s,color .2s}
.ix-close:hover{background:var(--wash);color:var(--ink)}
.ix-close svg{width:18px;height:18px}
.ix-tabs{position:relative;flex:0 0 auto;display:flex;gap:26px;margin-top:18px;padding:0 30px;box-shadow:inset 0 -1px var(--line);overflow-x:auto;scrollbar-width:none}
.ix-tabs::-webkit-scrollbar{display:none}
.ix-tabs::after{content:"";flex:0 0 4px}
.ix-tabs [role=tab]{flex:0 0 auto;appearance:none;border:0;background:transparent;padding:12px 0 14px;font-size:.92rem;letter-spacing:-.01em;color:var(--ink-3);white-space:nowrap;cursor:pointer;transition:color .25s}
.ix-tabs [role=tab]:hover{color:var(--ink-2)}
.ix-tabs [role=tab][aria-selected=true]{color:var(--ink)}
.ix-bar{position:absolute;left:0;bottom:0;width:0;height:1.5px;border-radius:2px;background:var(--ink);transition:transform .45s var(--ease),width .45s var(--ease)}
.ix-bar.instant{transition:none}
.ix-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:4px 18px 28px}
/* top cancels .ix-body's top padding, so rows never show above a stuck label */
.ix-label{position:sticky;top:-4px;z-index:1;margin:0;padding:18px 12px 4px;background:var(--bg);font-family:var(--hand);font-weight:600;font-size:1.45rem;line-height:1.1;color:var(--pen)}
.ix-label span{margin-left:6px;font-family:var(--font);font-size:.72rem;font-weight:400;color:var(--ink-3);vertical-align:3px}
/* Each top list can be shared on its own: a quiet button at the end of its label */
.ix-grp[data-list] .ix-label{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ix-share{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;margin:-8px -4px -8px 0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink-3);cursor:pointer;transition:color .2s,background .2s}
.ix-share:hover{color:var(--ink);background:var(--wash)}
.ix-share svg{width:15px;height:15px}
.ix-grp ul{list-style:none;margin:0;padding:0}
.ix-item{display:flex;width:100%;align-items:baseline;justify-content:space-between;gap:16px;padding:12px;border:0;border-radius:14px;background:transparent;color:inherit;text-decoration:none;text-align:left;cursor:pointer;transition:background .2s}
.ix-item:hover{background:var(--wash)}
.ix-n{font-size:.98rem;letter-spacing:-.01em;color:var(--ink-2);transition:color .2s}
.ix-item:hover .ix-n{color:var(--ink)}
.ix-p{flex:0 0 auto;display:grid;justify-items:end;font-size:.84rem;color:var(--ink-3);font-variant-numeric:tabular-nums;white-space:nowrap}
.ix-p small{font-size:.76rem}
/* A changed pack size, on its own line under the price so the name keeps its room */
.ix-sk{margin-top:2px;font-size:.72rem}

/* Share sheet: same card as Browse, sized to its content */
.share .ix-sheet{width:min(480px,calc(100% - 40px));height:fit-content;max-height:calc(100% - 48px)}
.sh-body{overflow-y:auto;overscroll-behavior:contain;padding:18px 26px 22px}
.sh-top{display:flex;justify-content:center}
.sh-formats{display:inline-flex;padding:3px;border-radius:999px;background:var(--wash)}
.sh-formats button{appearance:none;border:0;background:transparent;padding:7px 18px;border-radius:999px;font-size:.84rem;color:var(--ink-3);cursor:pointer;transition:color .2s,background .25s,box-shadow .25s}
.sh-formats button[aria-selected=true],.sh-formats button[aria-pressed=true]{background:var(--bg);color:var(--ink);box-shadow:0 1px 3px rgba(14,15,17,.1)}
.sh-stage{display:flex;align-items:center;justify-content:center;height:min(40vh,400px);margin-top:16px}
.sh-img{display:block;width:auto;height:100%;max-width:100%;aspect-ratio:4/5;object-fit:contain;border-radius:14px;border:1px solid var(--line);background:var(--wash);box-shadow:0 22px 44px -26px rgba(14,15,17,.34);transition:opacity .35s ease}
.sh-stage.story .sh-img{aspect-ratio:9/16}
.sh-img.loading{opacity:.5}
.sh-primary{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;height:50px;margin-top:18px;border:0;border-radius:999px;background:var(--ink);color:#fff;font-size:.95rem;font-weight:500;letter-spacing:-.01em;cursor:pointer;transition:transform .3s var(--ease),box-shadow .3s}
.sh-primary:hover{transform:translateY(-1px);box-shadow:0 14px 28px -14px rgba(14,15,17,.55)}
.sh-primary svg{width:17px;height:17px}
.sh-save{display:block;margin:10px auto 0;padding:4px 8px;border:0;background:transparent;color:var(--ink-3);font-size:.8rem;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-2)}
.sh-save:hover{color:var(--ink)}
.sh-save[hidden]{display:none}
.sh-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 4px;margin-top:20px}
.sh-app{display:grid;justify-items:center;gap:7px;padding:2px 0;border:0;background:transparent;color:var(--ink-2);font-size:.74rem;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer}
.sh-app i{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--wash);color:var(--ink);transition:color .25s,background .25s,transform .35s var(--ease)}
.sh-app svg{width:22px;height:22px}
.sh-app:hover i,.sh-app:focus-visible i{color:var(--brand,var(--ink));background:#EEEEF0;transform:translateY(-2px)}
.sh-toast{min-height:1.3em;margin:16px 0 0;text-align:center;font-size:.82rem;color:var(--ink-2);opacity:0;transform:translateY(4px);transition:opacity .25s,transform .35s var(--ease)}
.sh-toast.on{opacity:1;transform:none}

/* Compare sheet ("If you'd put ₹1 lakh in…"): the Share card's shape, a ranked list inside */
.invest .ix-sheet{width:min(520px,calc(100% - 40px));height:fit-content;max-height:calc(100% - 48px)}
.iv-body{--pb:20px;overflow-y:auto;overscroll-behavior:contain;padding:18px 14px var(--pb)}
.iv-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 12px;padding:0 12px}
.iv-amt{display:flex;align-items:center;gap:6px;flex:1 1 140px;min-width:0;max-width:230px;height:44px;padding:0 16px;border:1px solid var(--line-2);border-radius:999px;color:var(--ink-3);cursor:text;transition:border-color .25s,box-shadow .35s var(--ease)}
.iv-amt:focus-within{border-color:#D5D7DC;box-shadow:var(--shadow)}
.iv-amt input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:var(--ink);font:500 1rem/1 var(--font);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.iv-amt input::placeholder{color:var(--ink-3);opacity:1}
.iv-list{list-style:none;margin:16px 0 0;padding:0}
.iv-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(3.2em,auto);align-items:baseline;column-gap:14px;row-gap:8px;padding:11px 12px 12px;border-radius:14px}
/* A thin bar under each row: its value against the best one */
.iv-row::after{content:"";grid-column:1/-1;width:var(--w);height:2px;border-radius:2px;background:var(--pen-soft);transform-origin:left center}
.iv-row.cur{background:var(--wash)}
.iv-row.cur::after{background:var(--pen)}
.iv-row.cash::after{background:var(--line-2)}
.iv-n{font-size:.96rem;letter-spacing:-.01em;color:var(--ink-2)}
.iv-row.cur .iv-n{color:var(--ink);font-weight:500}
.iv-row.cash .iv-n{color:var(--ink-3)}
.iv-v{font-size:.9rem;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.iv-row.cash .iv-v{color:var(--ink-3)}
.iv-x{justify-self:end;font-family:var(--hand);font-weight:600;font-size:1.2rem;line-height:1;color:var(--pen);white-space:nowrap}
.iv-x.dn{color:var(--pen-down)}
.iv-row.cash .iv-x{color:var(--ink-3)}
.iv-note{margin:10px 12px 0;font-size:.8rem;line-height:1.5;color:var(--ink-2)}
.iv-note[hidden]{display:none}
.iv-fine{margin:14px 12px 0;font-size:.74rem;line-height:1.5;color:var(--ink-3)}
/* Share stays in reach at the foot of the sheet, the list fading out under it; the status line floats just above it */
.iv-foot{position:sticky;bottom:calc(-1 * var(--pb));z-index:1;display:flex;justify-content:center;margin:6px 0 calc(-1 * var(--pb));padding:26px 0 var(--pb);background:linear-gradient(rgba(255,255,255,0),var(--bg) 24px)}
.iv-foot .sh-toast{position:absolute;left:50%;bottom:calc(100% - 22px);width:max-content;max-width:100%;min-height:0;margin:0;padding:3px 12px;border-radius:999px;background:var(--bg);transform:translate(-50%,4px)}
.iv-foot .sh-toast.on{transform:translate(-50%,0)}

/* Household bill: the Compare sheet's shape, a quiet table inside. Wide: item, quantity, one column per year. Phones: each row on two
   lines, the item and its quantity, then the three costs under the years */
.bill .ix-sheet{width:min(620px,calc(100% - 40px));height:fit-content;max-height:calc(100% - 48px)}
/* The year header sticks to the top of the scrolling body with a white band of its own over the rows and a rule under it */
.bill .bl-body{padding-top:0}
.bl-shared{margin:12px 12px 2px;font-size:.84rem;line-height:1.5;color:var(--ink-2)}
.bl-shared[hidden],.bl-left[hidden]{display:none}
.bl-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.bl-table th,.bl-table td{padding:9px 6px;text-align:right;font-weight:400;white-space:nowrap}
.bl-table thead th{position:sticky;top:0;z-index:1;padding-top:12px;padding-bottom:8px;background:var(--bg);font-size:.7rem;font-weight:500;letter-spacing:.14em;color:var(--ink-3);box-shadow:inset 0 -1px var(--line)}
.bl-table thead .bl-y,.bl-table thead .bl-y:last-child{font-size:.7rem;color:var(--ink-3)}
.bl-table thead .bl-it{letter-spacing:.1em;text-transform:uppercase;font-size:.64rem;color:var(--ink-3)}
.bl-table thead .bl-q{letter-spacing:.1em;text-transform:uppercase;font-size:.64rem}
.bl-table .bl-it{padding-left:12px;text-align:left;white-space:normal;font-size:.94rem;letter-spacing:-.01em;color:var(--ink)}
.bl-table tbody .bl-it,.bl-table tfoot .bl-it{font-weight:400}
.bl-table .bl-it small{display:block;margin-top:1px;font-size:.72rem;color:var(--ink-3)}
.bl-table tbody tr + tr{border-top:1px solid var(--line)}
.bl-table .bl-y{width:5.4em;font-size:.9rem;color:var(--ink-2)}
.bl-table .bl-y:last-child{padding-right:12px;color:var(--ink)}
.bl-table .bl-y.none{color:var(--ink-3)}
.bl-table tfoot tr{border-top:1px solid var(--line-2)}
.bl-table tfoot th,.bl-table tfoot td{padding-top:13px;font-weight:600;color:var(--ink)}
.bl-table tfoot .bl-y:not(:last-child){color:var(--ink-2)}
.bl-table .bl-q{width:1%;text-align:center}
.bl-empty td{padding:22px 12px;text-align:center;white-space:normal;color:var(--ink-3);font-size:.88rem}
.step{display:inline-flex;align-items:center}
.step button{flex:0 0 auto;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink-3);cursor:pointer;transition:background .2s,color .2s}
.step button:hover{background:var(--wash);color:var(--ink)}
.step svg{width:15px;height:15px}
.bl-n{min-width:4.8em;text-align:center;font-size:.86rem;color:var(--ink-2)}
.bl-left{margin:12px 12px 0;font-size:.8rem;line-height:1.5;color:var(--ink-2);text-wrap:pretty}
.bl-sum .sum{margin-top:clamp(20px,3.5vh,28px)}
.bl-add{margin:clamp(20px,3.5vh,28px) 12px 0}
.bl-find{display:flex;align-items:center;gap:10px;height:46px;padding:0 18px;border:1px solid var(--line-2);border-radius:999px;color:var(--ink-3);cursor:text;transition:border-color .25s,box-shadow .35s var(--ease)}
.bl-find:focus-within{border-color:#D5D7DC;box-shadow:var(--shadow)}
.bl-find svg{flex:0 0 auto;width:16px;height:16px}
.bl-find input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:var(--ink);font:400 .96rem/1 var(--font);letter-spacing:-.01em}
.bl-find input::placeholder{color:var(--ink-3);opacity:1}
.bl-find input::-webkit-search-cancel-button{display:none}
.bl-list{margin:8px 0 0;padding:6px;list-style:none;border:1px solid var(--line);border-radius:20px;background:var(--bg);box-shadow:var(--shadow)}
.bl-list[hidden]{display:none}
.bl-list .opt{padding:10px 12px}
.bl-list .go{display:grid;place-items:center;color:var(--ink-3)}
.bl-list .go svg{width:15px;height:15px}
.bl-fine{margin-top:18px}
.bl-fine:empty{display:none}
.bl-body .iv-foot{gap:6px}
.bl-reset{appearance:none;height:40px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:var(--ink-3);font-size:.86rem;cursor:pointer;transition:color .2s,background .2s}
.bl-reset:hover{color:var(--ink);background:var(--wash)}
.bl-reset[hidden]{display:none}
/* The whole sheet scrolls, so the bill's body must not be a scroll box of its own or the year header never sticks */
.bl-body{overflow:visible}
@media (max-width:640px){
  .bl-table,.bl-table thead,.bl-table tbody,.bl-table tfoot{display:block}
  .bl-table thead{position:sticky;top:0;z-index:1;background:var(--bg);box-shadow:inset 0 -1px var(--line)}
  .bl-table thead th{position:static;box-shadow:none;background:transparent}
  .bl-table tr{display:flex;flex-wrap:wrap;align-items:center}
  .bl-table .bl-it{flex:1 0 calc(100% - 152px);min-width:0;padding-left:10px}
  .bl-table .bl-q{flex:0 0 152px;width:auto;text-align:right;padding-right:4px}
  .bl-table .bl-y,.bl-table thead .bl-y{flex:1 0 33.333%;width:33.333%;padding-top:0;padding-bottom:10px}
  .bl-table thead .bl-y{padding-top:12px;padding-bottom:8px}
  .bl-table .bl-y:last-child{padding-right:10px}
  .bl-table thead .bl-it,.bl-table thead .bl-q{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0)}
  .bl-table tfoot td.bl-q{padding:0}
  .bl-table tfoot th{padding-bottom:4px}
  .bl-empty td{flex:1 1 100%}
  .bill .ix-sheet{inset:0;width:100%;height:100%;max-height:none;border:0;border-radius:0}
  .bill .ix-sheet::before{display:none}
  .bill .ix-head{padding-top:calc(20px + env(safe-area-inset-top,0px))}
  .bl-add{margin-left:8px;margin-right:8px}
}

/* Guess the price: the Compare sheet's shape (full screen on phones). One round at a time: the item, the latest price on the site's
   timeline with a pen "?" for the first year, then four options; an answer fills in the "?" and writes the change in pen */
.play .ix-sheet{width:min(560px,calc(100% - 40px));height:fit-content;max-height:calc(100% - 48px)}
.pl-body{padding-top:16px}
.pl-in{padding:0 10px;text-align:center}
.pl-marks{display:flex;justify-content:center;gap:10px;margin:0 0 18px;padding:0;list-style:none}
.pl-marks li{display:grid;place-items:center;width:22px;height:22px;border:1.5px solid var(--line-2);border-radius:50%;color:var(--pen)}
.pl-marks li.cur{border-color:var(--ink-2)}
.pl-marks li.ok{border-color:rgba(42,68,168,.35)}
.pl-marks li.no{color:var(--ink-3)}
.pl-marks svg,.pl-mk svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.pl-marks.big{gap:14px;margin:16px 0 0}
.pl-marks.big li{width:38px;height:38px}
.pl-marks.big svg{width:22px;height:22px}
.pl-name{margin:0;font-size:clamp(1.35rem,1.15rem + 1vw,1.75rem);font-weight:600;letter-spacing:-.03em;line-height:1.2;text-wrap:balance}
.pl-in .a-meta{margin-top:4px}
.pl-tl{margin-top:10px}
.pl-tl .val.pl-q{font-family:var(--hand);font-weight:700;font-size:calc(var(--vs) * 1.3);color:var(--pen);letter-spacing:0}
.pl-ask{margin:22px 0 0;font-size:.96rem;color:var(--ink-2)}
.pl-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.pl-opt{min-height:56px;padding:8px 10px;border:1px solid var(--line-2);border-radius:16px;background:var(--bg);color:var(--ink);font:600 1.08rem/1.2 var(--font);letter-spacing:-.02em;font-variant-numeric:tabular-nums;cursor:pointer;transition:border-color .2s,box-shadow .3s var(--ease),transform .3s var(--ease),color .2s,opacity .3s}
.pl-opt:hover{border-color:#D5D7DC;box-shadow:var(--shadow);transform:translateY(-1px)}
.pl-opt[aria-disabled=true]{cursor:default;box-shadow:none;transform:none}
.pl-opt.right{border-color:var(--pen);box-shadow:inset 0 0 0 1px var(--pen);color:var(--pen)}
.pl-opt.wrong{color:var(--ink-3);text-decoration:line-through;text-decoration-color:var(--ink-3)}
.pl-opt.off{opacity:.45}
.pl-after{margin-top:14px}
.pl-after.wait{visibility:hidden}
.pl-verdict{margin:0;font-family:var(--hand);font-weight:700;font-size:1.65rem;line-height:1.1;color:var(--pen)}
.pl-verdict.no{color:var(--ink-2)}
.pl-acts{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 20px;margin-top:14px}
.pl-next{height:46px;padding:0 28px;border:0;border-radius:999px;background:var(--ink);color:#fff;font-size:.92rem;font-weight:500;cursor:pointer;transition:transform .3s var(--ease),box-shadow .3s}
.pl-next:hover{transform:translateY(-1px);box-shadow:0 12px 24px -14px rgba(14,15,17,.55)}
/* The score: written large in pen and underlined, the five marks, a word on it, then each round's real prices */
.pl-score{margin-top:6px;font-weight:inherit;outline:0}
.pl-score svg{width:0;min-width:100%}
.pl-score .big{font-size:clamp(3.4rem,2.6rem + 4vw,4.8rem)}
.pl-remark{margin:12px 0 0;font-family:var(--hand);font-weight:600;font-size:1.35rem;color:var(--ink-2)}
.pl-recap{list-style:none;margin:22px 0 0;padding:6px 0 0;text-align:left;border-top:1px solid var(--line)}
.pl-item{align-items:center}
.pl-item .ix-n{flex:1;min-width:0}
.pl-item .ix-n small{display:block;margin-top:2px;font-size:.78rem;color:var(--ink-3);font-variant-numeric:tabular-nums;white-space:nowrap}
.pl-mk{flex:0 0 auto;display:grid;place-items:center;width:22px;color:var(--pen)}
.pl-mk.no{color:var(--ink-3)}
.pl-end .pl-acts{margin-top:18px}
.pl-fine{text-align:center}
@media (max-width:640px){
  .play .ix-sheet{inset:0;width:100%;height:100%;max-height:none;border:0;border-radius:0}
  .play .ix-sheet::before{display:none}
  .play .ix-head{padding-top:calc(20px + env(safe-area-inset-top,0px))}
  .pl-in{padding:0 6px}
}
/* Motion: a new round (or the score) rises in; an answer only fills in the first year and writes the change in pen */
.anim .pl-in.enter{animation:rise .45s var(--ease) both}
.anim .play .tl .base,.anim .play .tl .dot,.anim .play .tl .yr,.anim .play .tl .val,.anim .play .tl .pk{animation:none}
.anim .play .pl-tl.done .node.then .val,.anim .play .pl-tl.done .node.then .pk{animation:fade .45s var(--ease) both}
.anim .pl-after:not(.wait){animation:fade .4s var(--ease) .2s both}


/* Motion: only switched on once the browser is drawing frames (html.anim), so a paused page still shows everything. The page itself
   (header, heading, search, the rows and the foot) is simply there at the first paint; what follows is the answer's entrance, played
   in full for an item opened in place (.answer.live) and cut down to the pen for the page's own answer ("A landing", below) */
.anim .a-head{animation:rise .6s var(--ease) both}
.anim .tl .base{animation:grow .9s var(--ease) both}
.anim .dot{animation:pop .45s var(--ease) both;animation-delay:var(--d)}
.anim .yr{animation:fade .5s var(--ease) both;animation-delay:var(--d)}
.anim .val{animation:rise .6s var(--ease) both;animation-delay:var(--d)}
/* Arcs and underline are revealed left to right: they are stretched to the column, so dash lengths would not match the drawn length */
.anim .seg svg,.anim .sum svg{clip-path:inset(-60% 100% -60% -4%);animation:wipe .75s var(--ease) both;animation-delay:var(--d)}
.anim .write{clip-path:inset(-20% 100% -30% -4%);animation:write .8s steps(14,end) both;animation-delay:var(--d)}
.anim .src,.anim .inv,.anim .cmp,.anim .pay{animation:fade .8s var(--ease) both;animation-delay:var(--d)}
.anim .cmp .iv-row::after{animation:grow .7s var(--ease) both;animation-delay:calc(var(--d) + .25s + var(--i,0) * 70ms)}
.anim .views{animation:fade .6s var(--ease) .1s both}
/* A landing: the page's own answer, as the page's first frame draws it (and as app.js redraws it in the view someone chose before).
   The name, the switch, the line, the years and the figures are there at the first paint, the figures final, and so is the source
   line. Only the pen moves, and it is done in about a second: the arcs and their percentages, the change line and its stroke, then
   the small lines together */
.anim .answer:not(.live) :is(.a-head,.views,.tl .base,.dot,.yr,.val,.pk,.src){animation:none}
.anim .answer:not(.live) .seg svg{animation-duration:.5s;animation-delay:.1s}
.anim .answer:not(.live) .seg .hand{animation-duration:.45s;animation-delay:.25s}
.anim .answer:not(.live) :is(.sum .big,.side-chg .write){animation-duration:.6s;animation-delay:.35s}
.anim .answer:not(.live) .sum svg{animation-duration:.4s;animation-delay:.7s}
.anim .answer:not(.live) :is(.sum .small,.shrink .write,.infl .write,.work .write){clip-path:none;animation:fade .3s var(--ease) .8s both}
.anim .answer:not(.live) :is(.inv,.cmp,.pay){animation-duration:.3s;animation-delay:.8s}
.anim .answer:not(.live) .cmp .iv-row::after{animation-duration:.35s;animation-delay:calc(.8s + var(--i,0) * 40ms)}
/* The pen note writes itself in, then its arrow is drawn */
.anim .pen-note span{clip-path:inset(-30% 100% -40% -4%);animation:write .8s steps(14,end) both}
.anim .pen-note path.a{stroke-dasharray:var(--len);stroke-dashoffset:var(--len);animation:draw .55s var(--ease) .6s both}
.anim .pen-note path.h{opacity:0;animation:fade .2s ease 1.1s both}
/* The views switch redraws the same item: no entrance, only the figures fade in place */
.anim .answer.quiet *,.anim .answer.quiet .iv-row::after{animation:none}
.anim .answer.quiet .write,.anim .answer.quiet .seg svg,.anim .answer.quiet .sum svg{clip-path:none}
.anim .answer.quiet .val,.anim .answer.quiet .seg .hand,.anim .answer.quiet .sum .big,.anim .answer.quiet .sum .small,.anim .answer.quiet .shrink,.anim .answer.quiet .work,.anim .answer.quiet .pk,.anim .answer.quiet .a-meta,.anim .answer.quiet .src,.anim .answer.quiet .pay-on{animation:fade .35s var(--ease) both}
.anim .iv-list.grow .iv-row::after{animation:grow .7s var(--ease) both;animation-delay:calc(var(--i,0) * 25ms)}
.anim .index[open]::backdrop{animation:fade .3s ease both}
.anim .index[open] .ix-sheet{animation:sheet-in .5s var(--ease) both}
.anim .index.closing::backdrop{animation:fade-out .2s ease-in both}
.anim .index.closing .ix-sheet{animation:sheet-out .2s ease-in both}
.anim .ix-body.swap .ix-grp{animation:rise .4s var(--ease) both;animation-delay:calc(var(--i,0) * 40ms)}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- UPA vs NDA in numbers (/upa-vs-nda, governments.py; its root is div.gv#gov): one theme of measure cards at a time ----------
   The column widens for the grid (three cards a row on a wide screen, two on a tablet, one on a phone) while the rest of the page keeps
   its 600 px; a search there puts an item in the answer's place and the column narrows again (:has). Every government's bar is the same
   neutral ink; a blank is its reason in grey, never a zero bar; a series break is a dashed rule across the card. html.gv-js (set by the
   page's own first line) hides what JavaScript switches; without it every theme, series and the earlier term show at once */
.page.deep{padding-top:clamp(28px,5vh,56px)}
html:has(.gv){scroll-padding-top:68px}
.col:has(.gv){max-width:1064px}
.col:has(.gv) > :not(.answer){width:100%;max-width:600px;margin-left:auto;margin-right:auto}
.deep .search{margin-top:clamp(18px,3vh,28px)}
.deep .answer{margin-top:clamp(24px,4vh,36px)}
.answer:has(.gv){min-height:0}
.gv{--bar:#CDCFD4;text-align:left}
.gv-head{max-width:640px;margin:0 auto;text-align:center}
.gv-head h1{margin:0;font-weight:600;font-size:clamp(1.65rem,1.2rem + 1.8vw,2.4rem);line-height:1.08;letter-spacing:-.035em;text-wrap:balance}
.gv-lede{margin:10px auto 0;max-width:33rem;font-size:.95rem;line-height:1.55;color:var(--ink-2);text-wrap:balance}
.gv-read{margin:8px auto 0;max-width:42rem;font-size:.76rem;line-height:1.55;color:var(--ink-q);text-wrap:pretty}
.gv-read a,.gv-tn a,.gc-notes a{color:inherit;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px;transition:color .2s,text-decoration-color .2s}
.gv-read a:hover,.gv-tn a:hover,.gc-notes a:hover{color:var(--ink);text-decoration-color:var(--ink-3)}
.gv-read a,.gv-tn a{white-space:nowrap}
.gv-rs{display:none}
/* Themes: the Share sheet's Post / Story pill; the bar stays at the top while the cards scroll, with a hairline once stuck. One row
   at every width: where the pills do not fit (phones, narrow tablets) the row scrolls sideways */
.gv-bar{position:sticky;top:0;z-index:6;margin:clamp(14px,2.4vh,22px) 0 0;padding:8px 0;background:var(--bg);transition:box-shadow .25s}
.gv-bar.stuck{box-shadow:0 1px 0 var(--line)}
.gv-tabs{position:relative;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:2px;width:max-content;max-width:100%;margin:0 auto;padding:3px;border-radius:999px;background:var(--wash);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.gv-tabs::-webkit-scrollbar{display:none}
/* Where the bar scrolls sideways, each edge with more themes beyond it fades (app.js gvEdge sets .fl and .fr) */
.gv-tabs.fr{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent)}
.gv-tabs.fl{-webkit-mask-image:linear-gradient(90deg,transparent,#000 44px);mask-image:linear-gradient(90deg,transparent,#000 44px)}
.gv-tabs.fl.fr{-webkit-mask-image:linear-gradient(90deg,transparent,#000 44px,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(90deg,transparent,#000 44px,#000 calc(100% - 44px),transparent)}
.gv-tabs a{flex:0 0 auto;padding:8px 16px;border-radius:999px;font-size:.84rem;letter-spacing:-.005em;color:var(--ink-3);text-decoration:none;white-space:nowrap;transition:color .2s,background .25s,box-shadow .25s}
.gv-tabs a:hover{color:var(--ink-2)}
.gv-tabs a[aria-selected=true]{background:var(--bg);color:var(--ink);box-shadow:0 1px 3px rgba(14,15,17,.1)}
.gv-tabs a:focus-visible{outline-offset:-2px;border-radius:999px}
.gv-opts{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 10px;margin-top:4px}
.gv-chip{display:inline-flex;align-items:center;gap:9px;height:40px;padding:0 16px 0 12px;border:1px solid var(--line-2);border-radius:999px;background:var(--bg);font-size:.86rem;letter-spacing:-.005em;color:var(--ink-2);cursor:pointer;transition:border-color .25s,color .25s}
.gv-chip:hover{border-color:#D5D7DC;color:var(--ink)}
.gv-chip i{position:relative;flex:0 0 auto;width:26px;height:16px;border-radius:999px;background:var(--line-2);transition:background .25s}
.gv-chip i::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:var(--bg);box-shadow:0 1px 2px rgba(14,15,17,.2);transition:transform .25s var(--ease)}
.gv-chip[aria-pressed=true]{color:var(--ink)}
.gv-chip[aria-pressed=true] i{background:var(--ink)}
.gv-chip[aria-pressed=true] i::after{transform:translateX(10px)}
html:not(.gv-js) .gv-opts,html:not(.gv-js) .gc-sh,html:not(.gv-js) .gc-sw{display:none}
html.gv-js .gv-panel:not(.on),html.gv-js .gc-s:not(.on),html.gv-js .gv:not(.early) .early,html.gv-js .gc-l{display:none}
html.gv-js .gv:not(.chg) .gc-ch,html.gv-js .gv.chg .gc-s.has-ch .gc-lv{display:none}
html:not(.gv-js) .gc-ch{margin-top:12px}
.gv-th{margin:28px 0 0;font-size:.68rem;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--ink-3);text-align:center}
html.gv-js .gv-th{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* A theme's own line, where its cards use more than one yardstick (governments.py THEME_NOTE) */
.gv-tn{margin:14px auto 0;max-width:42rem;font-size:.76rem;line-height:1.55;color:var(--ink-q);text-align:center;text-wrap:pretty}
.gv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:14px;align-items:start;margin-top:14px}
/* A measure's card: its name, a switch where it has more than one series, its unit and basis, a bar per government with the value as
   published, the change across the whole period in pen where the series allows it, context, and the notes and sources in place */
.gc{position:relative;min-width:0;padding:16px 16px 12px;border:1px solid var(--line);border-radius:18px;background:var(--bg);scroll-margin-top:12px}
.gc.hi{animation:gc-hi 2.6s var(--ease)}
.gc-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.gc-n{margin:0;font-size:.98rem;font-weight:600;line-height:1.25;letter-spacing:-.015em;color:var(--ink);text-wrap:balance}
.gc-sh{flex:0 0 auto;display:grid;place-items:center;width:34px;height:34px;margin:-7px -9px 0 0;border:0;border-radius:50%;background:transparent;color:var(--ink-3);cursor:pointer;transition:background .2s,color .2s}
.gc-sh:hover{background:var(--wash);color:var(--ink)}
.gc-sh svg{width:16px;height:16px}
.gc-sw{display:inline-flex;flex-wrap:wrap;margin:8px 0 0;padding:2px;border-radius:16px;background:var(--wash)}
.gc-sw button{appearance:none;border:0;background:transparent;min-height:30px;padding:0 11px;border-radius:999px;font-size:.74rem;color:var(--ink-3);cursor:pointer;transition:color .2s,background .25s,box-shadow .25s}
.gc-sw button:hover{color:var(--ink-2)}
.gc-sw button[aria-pressed=true]{background:var(--bg);color:var(--ink);box-shadow:0 1px 2px rgba(14,15,17,.1)}
.gc-l{margin:12px 0 0;font-size:.74rem;font-weight:500;color:var(--ink-2)}
.gc-u{margin:4px 0 0;font-size:.74rem;line-height:1.4;color:var(--ink-q)}
.gc-u em{font-style:normal;color:var(--ink-2)}
.gc-t{width:100%;margin-top:8px;border-collapse:collapse;table-layout:fixed;font-size:.8rem;font-variant-numeric:tabular-nums}
.gc-t .cl{width:6.4rem}
.gc-t .cv{width:var(--cv,5.4rem)}
.gc-t th{padding:4px 10px 4px 0;text-align:left;font-weight:400;font-size:.72rem;line-height:1.4;color:var(--ink-q);white-space:nowrap;vertical-align:top}
.gc-t th b{margin-right:1px;font-weight:600;font-size:.8rem;color:var(--ink)}
.gc-t td{padding:4px 0;line-height:1.35;vertical-align:top}
.gc-t td.v{padding-left:8px;text-align:right;font-weight:500;color:var(--ink);white-space:nowrap}
.gc-t td.na{font-size:.74rem;font-style:italic;color:var(--ink-q)}
.gc-t td small{display:block;margin-top:3px;font-size:.68rem;font-style:normal;line-height:1.3;color:var(--ink-q)}
.gc-t td.b small{position:relative;width:calc(100% + var(--cv,5.4rem))} /* under the bar and on under the value: one line, not three */
.gc-t td.nb small{width:100%;margin-top:2px} /* a value printed without a bar (another definition): its tag where the bar would be */
.gc-t small .nw{white-space:nowrap} /* a year range or a month under a bar never splits at its hyphen (governments.py nowrap) */
.gc-t .tr{position:relative;display:block;height:7px;margin-top:6px}
.gc-t .tr i{position:absolute;top:0;bottom:0;left:calc(var(--a) * 100%);width:max(2px,calc(var(--w) * 100%));border-radius:4px;background:var(--bar);transform-origin:left center}
.gc-t .tr i.neg{transform-origin:right center}
.gc-t .tr.dv::before{content:"";position:absolute;top:-4px;bottom:-4px;left:calc(var(--z) * 100%);width:1px;background:var(--ink-3)}
.gc-t tr.early th,.gc-t tr.early td{color:var(--ink-q)}
.gc-t tr.early th b,.gc-t tr.early td.v{color:var(--ink-2)}
.gc-t tr.early .tr i{background:#E6E7EA}
.gc-t tr.brk td{padding:4px 0 3px;text-align:center;font-size:.68rem;line-height:1.2;color:var(--ink-q);background:linear-gradient(90deg,var(--line-2) 50%,transparent 0) 0 50%/6px 1px repeat-x}
.gc-t tr.brk span{padding:0 7px;background:var(--bg)}
.anim .gv-panel.on .gc-t .tr i{animation:grow .7s var(--ease) both}
.gc-pen{margin:10px 0 0;font-family:var(--hand);font-weight:600;font-size:1.22rem;line-height:1.1;color:var(--pen)}
.gc-pen small{display:block;margin-top:3px;font-family:var(--font);font-weight:400;font-size:.68rem;line-height:1.35;color:var(--ink-q)}
.gc-chn,.gc-nch{margin:8px 0 0;font-size:.68rem;line-height:1.35;color:var(--ink-q)}
.gc-nch{display:none} /* why a card keeps its figures while Change in each term is on: only then */
html.gv-js .gv.chg .gc-nch{display:block}
.gc-pen .nw{white-space:nowrap}
.gc-ctx{margin:8px 0 0;padding:0;list-style:none;font-size:.72rem;line-height:1.45;color:var(--ink-q);text-wrap:pretty}
.gc-ctx li + li{margin-top:3px}
.gc-more{margin-top:10px;padding-top:2px;border-top:1px solid var(--line);font-size:.72rem;color:var(--ink-q)}
.gc-more summary{position:relative;display:block;min-height:28px;padding:6px 20px 4px 0;line-height:1.4;cursor:pointer;list-style:none;border-radius:6px}
.gc-more summary::-webkit-details-marker{display:none}
.gc-more summary::after{content:"";position:absolute;top:11px;right:5px;width:6px;height:6px;border-right:1.4px solid currentColor;border-bottom:1.4px solid currentColor;transform:rotate(45deg);transition:transform .25s var(--ease)}
.gc-more[open] summary::after{top:14px;transform:rotate(-135deg)}
.gc-more summary:hover{color:var(--ink-2)}
.gc-more summary span{color:var(--ink-2)}
.gc-notes{margin-top:4px;font-size:.72rem;line-height:1.5;color:var(--ink-q);overflow-wrap:anywhere}
.gc-notes p{margin:6px 0 0}
.gc-notes ul{margin:6px 0 0;padding:0;list-style:none}
.gc-notes li{margin-top:5px}
.gc-notes b{font-weight:600;color:var(--ink-2)}
.gc-notes .gn-h{margin-top:12px;font-size:.76rem;font-weight:600;color:var(--ink)}
.gc-notes .gn-ctx{color:var(--ink-2)}
/* The method, under every theme */
.gv-method{max-width:640px;margin:clamp(40px,7vh,64px) auto 0;scroll-margin-top:8px}
.gv-method h3[id]{scroll-margin-top:72px} /* a heading a note links to lands below the stuck theme bar */
.gv-out summary{position:relative;display:inline-block;padding:4px 20px 4px 0;cursor:pointer;list-style:none;font-size:.86rem;color:var(--ink-2);border-radius:6px}
.gv-out summary::-webkit-details-marker{display:none}
.gv-out summary::after{content:"";position:absolute;top:10px;right:5px;width:6px;height:6px;border-right:1.4px solid currentColor;border-bottom:1.4px solid currentColor;transform:rotate(45deg);transition:transform .25s var(--ease)}
.gv-out[open] summary::after{top:13px;transform:rotate(-135deg)}
.gv-out summary:hover{color:var(--ink)}
.gv-out ul{font-size:.78rem;color:var(--ink-q);overflow-wrap:anywhere}
.gv-terms{font-size:.8rem}
@keyframes gc-hi{0%,45%{border-color:var(--pen);box-shadow:0 0 0 3px var(--pen-soft)}100%{border-color:var(--line);box-shadow:0 0 0 3px transparent}}
@media (min-width:641px) and (max-width:719px){
  .gv-tabs a{padding:8px 13px} /* a narrow tablet's bar: the last theme peeks in at the faded edge */
}
@media (min-width:720px) and (max-width:1023px){
  /* a tablet's and a small laptop's bar (iPad portrait and up): all eight themes on one row, even beside a classic scrollbar, the
     pills a little smaller and closer, their text and sides growing with the screen up to the usual size (from 1024 px) */
  .gv-tabs{gap:0}
  .gv-tabs a{padding:8px clamp(4.75px,calc(4.75px + (100vw - 720px) * .039),16px);font-size:clamp(.72rem,calc(.72rem + (100vw - 720px) * .0068),.84rem)}
}
@media (max-width:719px){
  /* without JavaScript there are no edge fades (app.js sets them), so a bar too wide for the screen wraps onto more rows, every theme
     in sight, and stays in place at the top of the page */
  html:not(.gv-js) .gv-bar{position:static}
  html:not(.gv-js) .gv-tabs{flex-wrap:wrap;justify-content:center;border-radius:20px}
}
@media (max-width:640px){
  .gv-bar{margin-left:-20px;margin-right:-20px;padding:8px 20px}
  .gv-tabs{flex-wrap:nowrap;justify-content:flex-start;width:auto;border-radius:999px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
  .gv-tabs::-webkit-scrollbar{display:none}
  .gv-tabs a{padding:8px 14px}
  .gv-grid{gap:10px}
  .gc{padding:14px 14px 10px;border-radius:16px}
  .gv-chip{height:38px;gap:7px;padding:0 12px 0 10px;font-size:.82rem}
  .gv-chip i{width:24px;height:14px}
  .gv-chip i::after{width:10px;height:10px}
  .gv-share{height:38px;padding:0 14px 0 12px;font-size:.82rem}
  .gv-opts{gap:8px}
  .gv-rl{display:none}
  .gv-rs{display:inline}
}
@media (max-width:360px){
  .gc-t .cl{width:6.2rem}
  .gc-t th span{font-size:.66rem}
  .gv-opts{gap:8px 6px}
  .gv-chip{padding:0 10px 0 9px;gap:6px;font-size:.8rem}
  .gv-share{padding:0 12px 0 10px;font-size:.8rem}
}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes drop{from{opacity:0;transform:translateY(-6px) scale(.985)}to{opacity:1;transform:none}}
@keyframes pop{0%{opacity:0;transform:scale(.3)}70%{opacity:1;transform:scale(1.15)}100%{opacity:1;transform:scale(1)}}
@keyframes grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes wipe{to{clip-path:inset(-60% -4% -60% -4%)}}
@keyframes write{to{clip-path:inset(-20% -4% -30% -4%)}}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes scan{0%{transform:translateX(-110%);opacity:0}20%{opacity:1}100%{transform:translateX(300%);opacity:0}}
@keyframes look{0%{transform:none}40%{transform:translateX(2px) rotate(-12deg)}100%{transform:none}}
@keyframes fade-out{to{opacity:0}}
@keyframes sheet-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes sheet-out{to{opacity:0;transform:translateY(12px)}}
@keyframes sheet-up{from{transform:translateY(100%)}to{transform:none}}
@keyframes sheet-down{to{transform:translateY(100%)}}

@media (max-width:640px){
  .ix-sheet{inset:auto 0 0 0;margin:0;width:100%;height:calc(100% - 40px);border-bottom:0;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
  .ix-sheet::before{content:"";position:absolute;top:8px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--line-2)}
  .ix-head{padding:24px 16px 0 24px}
  .ix-tabs{gap:22px;padding:0 24px}
  .ix-body{padding:2px 10px 24px}
  .ix-label{top:-2px}
  .share .ix-sheet,.invest .ix-sheet{inset:0;width:100%;height:100%;max-height:none;border:0;border-radius:0}
  .share .ix-sheet::before,.invest .ix-sheet::before{display:none}
  .share .ix-head,.invest .ix-head{padding-top:calc(20px + env(safe-area-inset-top,0px))}
  .sh-body{display:flex;flex-direction:column;flex:1;min-height:0;padding:10px 18px calc(16px + env(safe-area-inset-bottom,0px))}
  .iv-body{--pb:calc(18px + env(safe-area-inset-bottom,0px));flex:1;min-height:0;padding:12px 8px var(--pb)}
  .sh-stage{flex:1;min-height:200px;height:auto}
  .sh-body > :not(.sh-stage){flex-shrink:0} /* on a short phone the sheet scrolls; its button never squashes */
  .anim .index[open] .ix-sheet{animation:sheet-up .42s cubic-bezier(.2,.9,.25,1) both}
  .anim .index.closing .ix-sheet{animation:sheet-down .22s ease-in both}
}
@media (max-width:520px){
  .browse{width:40px;height:40px;padding:0;justify-content:center}
  .browse span{display:none}
}
@media (max-width:480px){
  .box{height:56px;padding-left:16px;padding-right:8px}
  .tl{padding-top:52px}
  .tl .base{top:calc(52px + 5px)}
  .seg{height:50px}
  .seg svg{height:22px}
}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .gc.hi{border-color:var(--pen);box-shadow:0 0 0 3px var(--pen-soft)}
}

/* ---------- Ramayana vs the world (/ramayana-worldwide-box-office: World in ramayana.py) ----------
   The one page that leaves the site's quiet look on purpose: a night-dark poster at the top, then the same quiet type for the charts.
   No script: every figure is in the page as written, each with its conversion under it (search engines, the Markdown twin and
   readers without JavaScript see what everyone sees). Bars and swatches take the film's country: --us Hollywood, --in India, --cn China, --jp Japan and the rest (validated together for colour blindness;
   every bar also carries its country and value in text). The hero breaks out of the 600 px column, up to 1040 px */
.rw{--us:#2a78d6;--in:#eb6834;--cn:#1baf7a;--jp:#eda100;--me:#FFF3EA;--gold:#F2B36F;--night:#0F0C0A}

.rw-hero{position:relative;isolation:isolate;overflow:hidden;width:min(1040px,calc(100vw - 32px));margin:4px 0 0 calc((100% - min(1040px,calc(100vw - 32px))) / 2);padding:clamp(30px,5vw,58px) clamp(18px,5vw,64px) clamp(26px,4vw,44px);border-radius:28px;background:radial-gradient(90% 70% at 50% 8%,#4A2611 0%,#22130B 42%,var(--night) 78%);color:#F7F1EA;text-align:center}
.rw-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(1.4px 1.4px at 12% 22%,rgba(255,236,214,.55),transparent 60%),radial-gradient(1.2px 1.2px at 82% 16%,rgba(255,236,214,.45),transparent 60%),radial-gradient(1.6px 1.6px at 68% 64%,rgba(255,236,214,.35),transparent 60%),radial-gradient(1.2px 1.2px at 26% 74%,rgba(255,236,214,.4),transparent 60%),radial-gradient(1.4px 1.4px at 92% 82%,rgba(255,236,214,.3),transparent 60%),radial-gradient(1px 1px at 6% 58%,rgba(255,236,214,.35),transparent 60%)}
.rw-bow{position:absolute;z-index:-1;left:50%;top:clamp(116px,15vw,150px);width:min(760px,118%);transform:translateX(-50%);overflow:visible}
.rw-bow path{fill:none;stroke:var(--gold);stroke-width:1.6;stroke-linecap:round;opacity:.5;stroke-dasharray:1200;stroke-dashoffset:1200;animation:rw-draw 1.8s .25s var(--ease) forwards}
.rw-bow path + path{stroke-width:1;opacity:.28;animation-delay:.5s}
@keyframes rw-draw{to{stroke-dashoffset:0}}
.rw .rw-kick{margin:0;font-size:.7rem;font-weight:500;letter-spacing:.3em;text-transform:uppercase;color:var(--gold)}
.doc .rw-hero h1{margin:14px auto 0;max-width:15em;color:#FFFFFF;font-size:clamp(1.75rem,1.1rem + 2.9vw,3.1rem);line-height:1.04;letter-spacing:-.035em}
.rw .rw-big{margin:clamp(22px,4vw,34px) 0 0;font-size:clamp(3rem,1.6rem + 7vw,6.4rem);font-weight:700;line-height:.95;letter-spacing:-.05em;color:#FFFFFF;animation:rw-rise .9s .15s var(--ease) both}
.doc .rw-sub{margin:10px auto 0;max-width:30rem;font-size:.92rem;color:#D8CDBF}
.rw .rw-pen{display:inline-block;margin:18px 0 0;font-family:var(--hand);font-weight:700;font-size:clamp(1.45rem,1.1rem + 1.5vw,2.1rem);line-height:1.1;color:var(--gold);transform:rotate(-2deg)}
.rw .rw-pen::after{content:"";display:block;height:3px;margin:4px -6px 0;border-radius:3px;background:var(--gold);opacity:.75;transform:rotate(1deg)}
.rw-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;max-width:760px;margin:clamp(22px,4vw,32px) auto 0}
.rw a.rw-chip{padding:12px 14px 13px;border:1px solid rgba(255,236,214,.14);border-radius:16px;background:rgba(255,236,214,.05);text-align:left;text-decoration:none;color:inherit;animation:rw-rise .8s var(--ease) both}
.rw .rw-chip:nth-child(2){animation-delay:.08s}.rw-chip:nth-child(3){animation-delay:.16s}.rw-chip:nth-child(4){animation-delay:.24s}
.rw a.rw-chip:hover{border-color:rgba(242,179,111,.5)}
.rw .rw-chip b{display:block;font-size:1.45rem;font-weight:650;letter-spacing:-.03em;color:#FFFFFF}
.rw .rw-chip span{display:block;margin-top:2px;font-size:.76rem;line-height:1.35;color:#C9BDAF}
@keyframes rw-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* The leaderboard: tabs, then one ranked list per tab; a bar per film under its name, its value on the right */
.rw-list{margin:12px 0 0;padding:0;list-style:none}
.rw-row{display:grid;grid-template-columns:2em minmax(0,1fr) auto;align-items:baseline;column-gap:10px;row-gap:6px;padding:10px 10px 11px}
.rw-row + .rw-row{border-top:1px solid var(--line)}
.rw-row.me{border-top-color:transparent;border-radius:12px;background:var(--me)}
.rw-row.me + .rw-row{border-top-color:transparent}
.rw-n{font-size:.78rem;color:var(--ink-3);font-variant-numeric:tabular-nums}
.rw-t{min-width:0;font-size:.9rem;line-height:1.3;color:var(--ink)}
.rw-row.me .rw-t{font-weight:650}
.rw-t a{color:inherit;text-decoration-color:var(--line-2)}
.rw-o{display:inline-flex;align-items:center;gap:5px;margin-left:8px;font-size:.72rem;font-weight:400;color:var(--ink-q);white-space:nowrap}
.rw-o::before{content:"";width:8px;height:8px;border-radius:2px;background:var(--c,var(--ink-3))}
.rw-v{font-size:.84rem;color:var(--ink-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.rw-row.me .rw-v{color:var(--ink);font-weight:600}
.rw-bar{grid-column:2 / -1;width:var(--w);min-width:3px;height:10px;border-radius:0 4px 4px 0;background:var(--c,var(--ink-3));transform-origin:left;animation:rw-grow 1s var(--ease) both}
@keyframes rw-grow{from{transform:scaleX(0)}to{transform:none}}
.rw-gap{padding:4px 0 2px 2.9em;font-size:.8rem;color:var(--ink-3);letter-spacing:.2em}
.rw-us{--c:var(--us)}.rw-in{--c:var(--in)}.rw-cn{--c:var(--cn)}.rw-jp{--c:var(--jp)}.rw-kr{--c:#A3A29D}.rw-mk{--c:var(--in)}
.rw-v small{display:block;margin-top:1px;font-size:.7rem;font-weight:400;color:var(--ink-q);text-align:right}
.rw-o.bare::before{display:none}
.rw .rw-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 0 0;font-size:.74rem;color:var(--ink-q)}
.rw-legend span{display:inline-flex;align-items:center;gap:6px}
.rw-legend span::before{content:"";width:10px;height:10px;border-radius:2px;background:var(--c)}
.rw .rw-next{margin-top:12px;padding:12px 14px;border-radius:14px;background:var(--wash);font-size:.86rem;line-height:1.55;color:var(--ink-2)}
.rw-next b{color:var(--ink)}

/* The giants to scale: squares with their area set by the money, side by side on one baseline */
.rw-scale{--u:min(150px,calc((min(100vw,640px) - 190px) / var(--n,3.4)));display:flex;align-items:flex-end;justify-content:center;gap:clamp(6px,1.6vw,12px);margin:16px 0 0}
.rw-sq{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:6px;width:max(calc(var(--s) * var(--u)),56px)}
.rw-sq i{display:block;width:calc(var(--s) * var(--u));aspect-ratio:1;border-radius:4px;background:var(--c);animation:rw-pop .9s var(--ease) both}
.rw-sq:nth-child(2) i{animation-delay:.1s}.rw-sq:nth-child(3) i{animation-delay:.2s}.rw-sq:nth-child(4) i{animation-delay:.3s}
.rw-sq b{font-size:.74rem;font-weight:600;line-height:1.25;text-align:center;color:var(--ink)}
.rw-sq span{font-size:.72rem;color:var(--ink-q);text-align:center;font-variant-numeric:tabular-nums}
@keyframes rw-pop{from{transform:scale(.2);opacity:0}to{transform:none;opacity:1}}

/* Home and away: one tall segmented bar per film, its home market in its country's colour, the rest of the world in grey */
.rw-split{margin:14px 0 0;padding:0;list-style:none}
.rw-split li + li{margin-top:16px}
.rw-split p{margin:0 0 6px;font-size:.86rem;color:var(--ink)}
.rw-split p small{margin-left:6px;font-size:.74rem;color:var(--ink-q)}
.rw-seg{display:flex;gap:2px;height:28px}
.rw-seg span{display:flex;align-items:center;min-width:0;padding:0 9px;border-radius:4px;font-size:.74rem;font-weight:500;white-space:nowrap;overflow:visible}
.rw-seg .home{flex:var(--a) 1 0;background:var(--c);color:#FFFFFF}
.rw-seg .home.dk{color:#0B0B0B}
.rw-seg .away{flex:var(--b) 1 0;background:#E4E3DF;color:#3B3A37}
.rw-seg .tiny{color:transparent}

/* Stat tiles for tickets */
.rw-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:14px 0 0}
.rw-tile{padding:14px 16px;border:1px solid var(--line);border-radius:16px}
.rw-tile b{display:block;font-size:1.5rem;font-weight:650;letter-spacing:-.03em;color:var(--ink)}
.rw-tile span{display:block;margin-top:2px;font-size:.78rem;line-height:1.4;color:var(--ink-q)}
.rw-qa h3{margin-top:20px}
@media (max-width:480px){
  .rw-row{padding:9px 6px 10px;column-gap:8px}
  .rw-o{display:flex;margin:2px 0 0}
  .rw-hero{border-radius:22px}
}

/* ---------- Born in <year>, its hub, the history pages and the inflation calculator (years.py; app.js "Born in") ----------
   Each decade has its own paper and inks (--yb paper, --ya the big year, --yc a second ink, --yk text, --ys the year's offset shadow),
   set on the page and on each decade's row of years; the history pages and the calculator keep the site's own pen */
.yrs{--yb:#F1F3FB;--ya:#2A44A8;--yc:#17734A;--yk:#0E0F11;--ys:rgba(42,68,168,.18)}
.yr-d1950{--yb:#FFF1DC;--ya:#C2362B;--yc:#1F6F6B;--yk:#2A1A12;--ys:rgba(31,111,107,.28)}
.yr-d1960{--yb:#FFEBDD;--ya:#D2600F;--yc:#6C3DA3;--yk:#2B160A;--ys:rgba(108,61,163,.26)}
.yr-d1970{--yb:#F6E9D3;--ya:#A8551B;--yc:#6F5A12;--yk:#2C1D0F;--ys:rgba(111,90,18,.3)}
.yr-d1980{--yb:#FCEAF4;--ya:#C8157A;--yc:#1F66D1;--yk:#1F0B18;--ys:rgba(31,102,209,.3)}
.yr-d1990{--yb:#E5F5F2;--ya:#0B8576;--yc:#6A3BA8;--yk:#0B201D;--ys:rgba(106,59,168,.26)}
.yr-d2000{--yb:#E9F0FB;--ya:#2457C5;--yc:#56657D;--yk:#0E1730;--ys:rgba(86,101,125,.3)}
.yr-d2010{--yb:#FFEDE8;--ya:#D2442A;--yc:#13866A;--yk:#2A100A;--ys:rgba(19,134,106,.26)}
.yr-d2020{--yb:#EFEBFF;--ya:#5B3CD6;--yc:#C8326B;--yk:#170F33;--ys:rgba(200,50,107,.24)}
.yr-hero{position:relative;isolation:isolate;overflow:hidden;width:min(1040px,calc(100vw - 32px));margin:4px 0 0 calc((100% - min(1040px,calc(100vw - 32px))) / 2);padding:clamp(24px,4.5vw,48px) clamp(16px,5vw,56px) clamp(22px,4vw,38px);border-radius:28px;background:var(--yb);color:var(--yk);text-align:center}
.yr-hero::before{content:"";position:absolute;inset:-40% -10% auto;z-index:-1;height:150%;background:repeating-conic-gradient(from 0deg at 50% 62%,var(--ys) 0deg 4deg,transparent 4deg 16deg);opacity:.35;-webkit-mask-image:radial-gradient(closest-side at 50% 62%,#000 30%,transparent 100%);mask-image:radial-gradient(closest-side at 50% 62%,#000 30%,transparent 100%)}
.yrs .yr-kick{margin:0;font-size:.74rem;font-weight:600;letter-spacing:.34em;text-transform:uppercase;color:var(--yc)}
.doc .yr-hero h1{margin:2px 0 0;color:var(--yk)}
.yr-big{display:block;font-size:clamp(5.4rem,2.6rem + 15vw,11.5rem);font-weight:750;line-height:.88;letter-spacing:-.065em;color:var(--ya);text-shadow:.045em .045em 0 var(--ys);font-variant-numeric:lining-nums}
html.anim .yr-big{animation:yr-rise .9s .05s var(--ease) both}
.yr-hub h1{max-width:16em;margin:10px auto 0 !important;font-size:clamp(1.7rem,1.1rem + 2.6vw,2.8rem) !important;line-height:1.08;letter-spacing:-.035em}
.doc .yr-age{margin:12px auto 0;max-width:34rem;font-size:.95rem;line-height:1.5;color:var(--yk)}
.yr-gen{white-space:nowrap;font-weight:600}
.yr-gen small{font-weight:400;opacity:.7}
.yrs .yr-pen{display:inline-block;margin:14px 0 0;font-family:var(--hand);font-weight:700;font-size:clamp(1.55rem,1.1rem + 1.7vw,2.3rem);line-height:1.1;color:var(--yc);transform:rotate(-2deg)}
.yrs .yr-pen::after{content:"";display:block;height:3px;margin:3px -6px 0;border-radius:3px;background:currentColor;opacity:.55;transform:rotate(1deg)}
.yr-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;max-width:780px;margin:clamp(18px,3vw,26px) auto 0}
.yrs a.yr-chip{display:flex;flex-direction:column;gap:1px;padding:11px 14px 12px;border-radius:16px;background:rgba(255,255,255,.74);color:var(--yk);text-align:left;text-decoration:none;transition:transform .3s var(--ease),box-shadow .3s}
html.anim .yrs a.yr-chip{animation:yr-rise .8s var(--ease) both}
.yrs a.yr-chip:hover{transform:translateY(-2px);box-shadow:0 10px 24px -14px rgba(14,15,17,.3)}
.yr-chip:nth-child(2){animation-delay:.07s}.yr-chip:nth-child(3){animation-delay:.14s}.yr-chip:nth-child(4){animation-delay:.21s}
.yr-chip span{font-size:.74rem;color:var(--yk);opacity:.75}
.yr-chip span small{font-size:inherit;opacity:.8}
.yr-chip b{font-size:1.38rem;font-weight:650;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.yr-chip i{font-style:normal;font-size:.76rem;color:var(--yc);font-weight:500}
.yr-acts{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:clamp(18px,3vw,24px) 0 0}
.yrs .yr-btn{display:inline-flex;align-items:center;gap:9px;height:48px;padding:0 22px 0 18px;border:0;border-radius:999px;font:inherit;font-size:.96rem;font-weight:600;letter-spacing:-.01em;text-decoration:none;cursor:pointer;transition:transform .3s var(--ease),box-shadow .3s}
.yrs .yr-btn:hover{transform:translateY(-1px);box-shadow:0 12px 26px -14px rgba(14,15,17,.45)}
.yrs .yr-btn svg{width:20px;height:20px}
.yrs .yr-share{background:var(--yk);color:#FFFFFF}
.yrs .yr-wa{background:#1DAA61;color:#FFFFFF}
.doc .yr-samvat{margin:16px 0 0;font-size:.74rem;color:var(--yk);opacity:.62}
.yr-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;max-width:620px;margin:14px auto 0}
.yr-nav > a,.yr-nav > span{flex:0 0 5.2em;padding:9px 10px;border-radius:999px;color:var(--ink-2);text-decoration:none;font-size:.9rem;font-variant-numeric:tabular-nums}
.yr-nav > a:last-child{text-align:right}
.yr-nav > a:hover{background:var(--wash);color:var(--ink)}
.yr-pick{display:flex;justify-content:center;gap:6px;margin:0}
.yr-pick label{display:block}
.yr-pick input{width:7.4em;height:40px;padding:0 12px;border:1px solid var(--line-2);border-radius:999px;background:var(--bg);color:var(--ink);font:inherit;font-size:.95rem;text-align:center;outline:0;transition:border-color .2s,box-shadow .2s}
.yr-pick input:focus{border-color:var(--pen);box-shadow:0 0 0 3px var(--pen-soft)}
.yr-pick button{height:40px;padding:0 16px;border:0;border-radius:999px;background:var(--ink);color:#FFFFFF;font:inherit;font-size:.9rem;font-weight:600;cursor:pointer}
.yr-pick.big{flex-wrap:wrap;margin:clamp(18px,3vw,26px) 0 0}
.yr-pick.big input{width:11em;height:54px;font-size:1.25rem;font-weight:600;letter-spacing:.04em}
.yr-pick.big button{height:54px;padding:0 24px;font-size:1rem;background:var(--ya)}
.yr-pick.bad input{border-color:#C2362B;box-shadow:0 0 0 3px rgba(194,54,43,.15)}
.doc .yr-lang{margin:12px 0 0;text-align:center;font-size:.82rem}
.yr-lang a{color:var(--ink-q);text-decoration-color:var(--line-2)}
.yr-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,232px),1fr));gap:12px;margin:14px 0 0 !important;padding:0 !important;list-style:none}
.yr-card{display:flex;flex-direction:column;padding:14px 16px 12px;border:1px solid var(--line);border-radius:18px;background:var(--bg)}
.yr-card + .yr-card{margin:0 !important}
.doc .yr-cn{margin:0;font-size:.84rem;font-weight:600;color:var(--ink)}
.yr-cn small{font-size:.76rem;font-weight:400;color:var(--ink-q)}
.doc .yr-tn{display:flex;align-items:flex-end;gap:10px;margin:8px 0 0}
.yr-tn > span:not(.yr-arr){display:flex;flex-direction:column;min-width:0}
.yr-tn small{font-size:.7rem;color:var(--ink-q);font-variant-numeric:tabular-nums}
.yr-tn b{font-size:1.24rem;font-weight:650;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.yr-arr{padding-bottom:3px;color:var(--ink-3)}
.doc .yr-x{margin:6px 0 0;font-family:var(--hand);font-weight:700;font-size:1.7rem;line-height:1;color:var(--pen)}
.yr-spark{display:block;width:100%;height:38px;margin:6px 0 0;overflow:visible}
.yr-spark path{fill:none;stroke:var(--ya);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.yr-spark circle{fill:var(--ya)}
.doc .yr-src{margin:auto 0 0;padding-top:8px;font-size:.72rem;line-height:1.45;color:var(--ink-q)}
.yr-src a,.yr-s{color:var(--ink-q);text-decoration-color:var(--line-2)}
.doc .yr-live{margin:8px 0 0;padding:7px 10px;border-radius:10px;background:var(--wash);font-size:.78rem;line-height:1.4;color:var(--ink-2)}
.yr-live b{color:var(--ink);font-variant-numeric:tabular-nums}
.yr-live small{display:block;font-size:.7rem;color:var(--ink-q)}
.yr-live::before{content:"";display:inline-block;width:7px;height:7px;margin:0 6px 1px 0;border-radius:50%;background:#1DAA61;box-shadow:0 0 0 3px rgba(29,170,97,.18);animation:yr-pulse 2s ease-in-out infinite}
.doc .yr-live.big{max-width:30rem;margin:14px auto 0;padding:10px 14px;text-align:center;font-size:.92rem}
.yr-live.big b{font-size:1.25rem}
.yr-calc{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 10px;margin:12px 0 0;padding:14px 16px;border-radius:16px;background:var(--yb);color:var(--yk);font-size:.95rem}
.yr-calc label{display:inline-flex;align-items:center;gap:4px}
.yr-calc input,.yr-calc select{height:40px;padding:0 10px;border:1px solid rgba(14,15,17,.14);border-radius:10px;background:#FFFFFF;color:var(--ink);font:inherit;font-variant-numeric:tabular-nums}
.yr-calc input{width:7.5em}
.yr-calc output{font-size:1.35rem;font-weight:700;letter-spacing:-.02em;color:var(--ya);font-variant-numeric:tabular-nums}
.yr-calc.big{flex-direction:column;max-width:34rem;margin:18px auto 0;padding:20px 18px;text-align:center}
.yr-calc.big .amt input{width:9em;height:48px;font-size:1.15rem}
.yr-calc.big select{height:48px;font-size:1.05rem}
.doc .yr-calc.big .res{margin:6px 0 0;font-size:1rem;color:var(--yk)}
.yr-calc.big output{display:block;font-size:clamp(2rem,1.4rem + 2.6vw,2.9rem)}
.doc .yr-calc.big .sub{margin:0;font-size:.82rem;color:var(--yk);opacity:.75}
.yr-buys{margin-top:14px}
.yr-buys caption{padding-bottom:6px;font-size:.8rem;font-weight:600;color:var(--ink);text-align:left}
.doc .yr-pen2{margin:10px 0 0;font-family:var(--hand);font-weight:700;font-size:1.6rem;line-height:1.15;color:var(--pen)}
.yr-bars{margin:10px 0 0 !important;padding:0 !important;list-style:none}
.yr-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:5px 10px;padding:8px 0 9px;margin:0 !important}
.yr-bar + .yr-bar{border-top:1px solid var(--line)}
.yr-bn{font-size:.9rem;color:var(--ink)}
.yr-bv{font-size:.92rem;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.yr-bar i{grid-column:1 / -1;display:block;width:var(--w);min-width:3px;height:12px;border-radius:0 6px 6px 0;background:var(--ya);transform-origin:left}
html.anim .yr-bar i{animation:yr-grow 1s var(--ease) both}
.yr-k-gold i{background:#C99A2E}.yr-k-silver i{background:#9AA3AE}.yr-k-usd i{background:#2F855A}.yr-k-sensex i{background:var(--pen)}.yr-k-cash i{background:var(--ink-3)}
.yr-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:10px;margin:14px 0 0}
.yr-tile{padding:14px 16px;border:1px solid var(--line);border-radius:16px}
.yr-tile b{display:block;font-size:1.45rem;font-weight:650;letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums}
.yr-tile span{display:block;margin-top:2px;font-size:.78rem;line-height:1.35;color:var(--ink-2)}
.yr-tile small{display:block;margin-top:6px;font-size:.72rem;color:var(--ink-q)}
.yr-film{position:relative;margin:14px 0 0;padding:16px 18px 15px;border-radius:18px;background:var(--yb);color:var(--yk)}
.yr-film small{display:block;font-size:.68rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--yc)}
.yr-film b{display:block;margin-top:5px;font-size:clamp(1.3rem,1.1rem + 1vw,1.75rem);font-weight:700;line-height:1.12;letter-spacing:-.025em;color:var(--ya)}
.yr-film span{display:block;margin-top:3px;font-size:.84rem;opacity:.85}
.yr-film .yr-s{position:absolute;top:14px;right:16px;font-size:.7rem}
.yr-moments li{font-size:.9rem}
.yr-moments .yr-s{font-size:.7rem}
.yr-older{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0 !important;padding:0 !important;list-style:none}
.yr-older li{margin:0 !important}
.yr-older a{display:inline-flex;align-items:baseline;gap:7px;padding:7px 13px;border-radius:999px;background:var(--yb);color:var(--yk);font-size:.86rem;text-decoration:none;transition:transform .25s var(--ease)}
.yr-older a:hover{transform:translateY(-1px)}
.yr-older.was a{background:var(--wash);color:var(--ink-2)}
.yr-older b{font-weight:600}
.yr-older small{font-size:.72rem;opacity:.65;font-variant-numeric:tabular-nums}
.yr-family{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 0}
.yr-family a{display:flex;flex-direction:column;min-width:8.5em;padding:12px 14px;border:1px solid var(--line);border-radius:16px;color:var(--ink);text-decoration:none}
.yr-family a:hover{border-color:var(--line-2)}
.yr-family small{font-size:.74rem;color:var(--ink-q)}
.yr-family b{font-size:1.4rem;font-weight:650;letter-spacing:-.03em}
.yr-decades{display:grid;gap:12px;margin:16px 0 0}
.yr-dec{display:grid;grid-template-columns:6.2em minmax(0,1fr);align-items:start;gap:8px}
.doc .yr-dec p{margin:6px 0 0;font-size:.86rem;font-weight:650;color:var(--ya)}
.yr-dec ul{display:flex;flex-wrap:wrap;gap:6px;margin:0 !important;padding:0 !important;list-style:none}
.yr-dec li{margin:0 !important}
.yr-dec a{display:block;min-width:3.5em;padding:7px 8px;border-radius:10px;background:var(--yb);color:var(--yk);font-size:.86rem;text-align:center;text-decoration:none;font-variant-numeric:tabular-nums;transition:background .2s,color .2s,transform .2s var(--ease)}
.yr-dec a:hover{transform:translateY(-1px)}
.yr-dec a[aria-current]{background:var(--ya);color:#FFFFFF;font-weight:600}
.yr-hist{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0 !important;padding:0 !important;list-style:none}
.yr-hist li{margin:0 !important}
.yr-hist a{display:inline-block;padding:8px 14px;border:1px solid var(--line-2);border-radius:999px;color:var(--ink);font-size:.86rem;text-decoration:none}
.yr-hist a:hover{border-color:var(--ink-3)}
.yr-decs{margin:12px 0 0 !important;padding:0 !important;list-style:none}
.yr-decs li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:8px 0;margin:0 !important;font-size:.88rem;color:var(--ink-2);font-variant-numeric:tabular-nums}
.yr-decs li + li{border-top:1px solid var(--line)}
.yr-decs b{min-width:3.6em;color:var(--ink)}
.yr-decs span{margin-left:auto;font-family:var(--hand);font-weight:700;font-size:1.25rem;color:var(--pen)}
.yr-chart{margin:14px 0 0}
.yr-chart svg{display:block;width:100%;height:auto;overflow:visible}
.yr-chart rect{fill:var(--ya);opacity:.85;transform-origin:bottom;transform-box:fill-box}
html.anim .yr-chart rect{animation:yr-up .9s var(--ease) both}
.yr-chart rect:hover{opacity:1}
.yr-chart text{font-size:10px;fill:var(--ink-q);text-anchor:middle;font-family:var(--font)}
.yr-chart figcaption{margin-top:6px;font-size:.72rem;color:var(--ink-q);text-align:center}
.yr-all td{text-align:right}
.yr-all td.w{min-width:8em;white-space:normal;text-align:left;font-size:.74rem;line-height:1.4;color:var(--ink-q)}
.yr-all td.w a{color:var(--ink-q)}
.yr-all th a{font-variant-numeric:tabular-nums}
.yr-histpage h1,.yr-calcpage h1{max-width:18em;margin-inline:auto !important}
.doc[lang="hi"]{font-family:var(--font),"Nirmala UI","Noto Sans Devanagari","Kohinoor Devanagari",sans-serif}
.doc[lang="hi"] p,.doc[lang="hi"] li{line-height:1.75}
.doc[lang="hi"] .yr-kick,.doc[lang="hi"] .yr-film small{letter-spacing:0;text-transform:none}
@keyframes yr-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes yr-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes yr-up{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes yr-pulse{0%,100%{box-shadow:0 0 0 3px rgba(29,170,97,.18)}50%{box-shadow:0 0 0 6px rgba(29,170,97,.05)}}
@media (prefers-reduced-motion:reduce){.yr-big,.yrs a.yr-chip,.yr-bar i,.yr-chart rect,.yr-live::before,.live-row .ldot,.live-item .ldot{animation:none}}
@media (max-width:480px){
  .yr-hero{border-radius:22px}
  .yr-nav > a,.yr-nav > span{flex-basis:4.4em;padding:9px 4px}
  .yr-pick input{width:6.2em}
  .yr-dec{grid-template-columns:1fr}
  .doc .yr-dec p{margin:0}
  .yrs .yr-btn{height:46px;padding:0 18px 0 15px;font-size:.92rem}
}

/* ---------- Live rates (app.js "Live rates"): today's gold, silver, dollar and Bitcoin, under an item's answer and in the home page's row ---------- */
.live-row{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 14px;margin:14px 0 0;font-size:.8rem;color:var(--ink-q)}
.live-row[hidden]{display:none}
.live-row a{color:var(--ink-2);text-decoration:none;font-variant-numeric:tabular-nums;white-space:nowrap}
.live-row a b{color:var(--ink);font-weight:600}
.live-row a:hover b{text-decoration:underline;text-decoration-color:var(--line-2)}
.live-row .ldot,.live-item .ldot{display:inline-block;width:7px;height:7px;margin:0 4px 1px 0;border-radius:50%;background:#1DAA61;box-shadow:0 0 0 3px rgba(29,170,97,.18);animation:yr-pulse 2s ease-in-out infinite}
.live-item{max-width:30rem;margin:16px auto 0;padding:11px 14px 12px;border:1px solid var(--line);border-radius:16px;text-align:center;font-size:.86rem;color:var(--ink-2)}
.live-item[hidden]{display:none}
.live-item b{display:block;margin-top:2px;font-size:1.35rem;font-weight:650;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.live-item small{display:block;margin-top:4px;font-size:.72rem;line-height:1.45;color:var(--ink-q)}

/* ---------- Banners (build.py "Banners", app.js syncWay()): the site's features as quiet cards, the home page's showcase and a row
   under every item. Each card: a soft wash of its own colour, a small eyebrow, a title, one real figure and a small drawing in its ink.
   On phones the home page's cards stack and an item's row scrolls sideways, a card at a time ---------- */
.way{margin:clamp(26px,4vh,36px) 0 0;text-align:left}
.way[hidden]{display:none}
.bn-h{margin:0 0 10px;font-family:var(--hand);font-weight:600;font-size:1.4rem;line-height:1.15;color:var(--pen)}
.bns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.bn{--b1:#F4F5F9;--b2:#FBFBFD;--bk:#52545B;--ba:#9B9CA2;position:relative;display:flex;align-items:center;gap:8px;min-width:0;min-height:104px;padding:14px 12px 14px 16px;border:1px solid rgba(14,15,17,.06);border-radius:18px;background:linear-gradient(140deg,var(--b1) 0%,var(--b2) 100%);color:var(--ink);text-decoration:none;overflow:hidden;-webkit-tap-highlight-color:transparent;transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .35s}
a.bn:hover,.bn-has-form:hover,.bn:focus-within{transform:translateY(-2px);border-color:rgba(14,15,17,.1);box-shadow:0 16px 32px -22px rgba(14,15,17,.42)}
a.bn:focus-visible,.bn-cover:focus-visible{outline:2px solid var(--pen);outline-offset:2px}
.bn-t{position:relative;z-index:2;display:flex;flex-direction:column;gap:3px;flex:1 1 auto;min-width:0;pointer-events:none}
.bn-t small{font-size:.64rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--bk)}
.bn-t b{font-size:.97rem;font-weight:650;line-height:1.22;letter-spacing:-.015em;color:var(--ink);text-wrap:balance}
.bn-t > span{font-size:.78rem;line-height:1.4;color:var(--ink-2);text-wrap:pretty}
.bn-art{position:relative;z-index:2;flex:0 0 auto;width:84px;height:40px;color:var(--ba);pointer-events:none;transition:transform .5s var(--ease)}
.bn-art svg{display:block;width:100%;height:100%;overflow:visible}
a.bn:hover .bn-art,.bn-has-form:hover .bn-art{transform:translateX(3px)}
.bn-wide{grid-column:1 / -1;min-height:120px;padding:18px 18px 18px 20px}
.bn-wide .bn-t b{font-size:1.14rem}
.bn-wide .bn-art{width:132px;height:56px}
.bn-cover{position:absolute;inset:0;z-index:1;border-radius:inherit}
.bn-form{position:relative;z-index:3;display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;pointer-events:auto}
.bn-form label{display:block}
.bn-form input{width:9.5em;height:40px;padding:0 12px;border:1px solid rgba(14,15,17,.14);border-radius:999px;background:#FFFFFF;color:var(--ink);font:inherit;font-size:.95rem;text-align:center;outline:0;transition:border-color .2s,box-shadow .2s}
.bn-form input:focus{border-color:var(--bk);box-shadow:0 0 0 3px rgba(11,133,118,.16)}
.bn-form button{height:40px;padding:0 16px;border:0;border-radius:999px;background:var(--bk);color:#FFFFFF;font:inherit;font-size:.88rem;font-weight:600;cursor:pointer}
.bn-form.bad input{border-color:#C2362B;box-shadow:0 0 0 3px rgba(194,54,43,.15)}
.bn-born{--b1:#E2F3EF;--b2:#F5FBF9;--bk:#0B7A6C;--ba:#0B8576}
.bn-play{--b1:#EBEEFA;--b2:#F8F9FE;--bk:#2A44A8;--ba:#2A44A8}
.bn-gold,.bn-dhan{--b1:#F9F0DA;--b2:#FFFCF4;--bk:#8A6718;--ba:#C29429}
.bn-petrol{--b1:#E9EFF7;--b2:#F8FAFD;--bk:#3B5B85;--ba:#4A73A8}
.bn-usd{--b1:#E6F3EB;--b2:#F6FBF8;--bk:#2B6A45;--ba:#2F855A}
.bn-sensex,.bn-sip{--b1:#EBEDFA;--b2:#F8F9FE;--bk:#3E4FA0;--ba:#3A52B8}
.bn-infl{--b1:#FBEBEA;--b2:#FFF8F7;--bk:#9C4236;--ba:#C2584B}
.bn-invest{--b1:#EFEAFA;--b2:#FAF8FE;--bk:#5841A6;--ba:#6A4CC4}
.bn-tax{--b1:#E8F4ED;--b2:#F7FCF9;--bk:#1E6B47;--ba:#2F8A5C}
.bn-pay8,.bn-emi{--b1:#F3EEE4;--b2:#FCFAF6;--bk:#74552A;--ba:#A27A3C}
.bn-ramayana{--b1:#FAEDE2;--b2:#FFF9F4;--bk:#934619;--ba:#CD7535}
.bn-bill{--b1:#EDF3E6;--b2:#F9FCF6;--bk:#4A672C;--ba:#6A8F43}
.bn-ipl{--b1:#E9F0FB;--b2:#F8FBFE;--bk:#2D58A4;--ba:#3C6CC4}
.bn-iphone{--b1:#F0F1F3;--b2:#FAFAFB;--bk:#4A4C54;--ba:#6E7077}
@media (prefers-reduced-motion:reduce){.bn,.bn-art{transition:none}a.bn:hover,.bn-has-form:hover{transform:none}}
@media (max-width:560px){
  .bns{grid-template-columns:1fr}
  .bns.scroll{display:flex;gap:10px;margin:0 -20px;padding:2px 20px 8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding:0 20px;scrollbar-width:none}
  .bns.scroll::-webkit-scrollbar{display:none}
  .bns.scroll .bn{flex:0 0 84%;scroll-snap-align:start}
  .bn-wide{padding:16px 14px 16px 16px}
  .bn-wide .bn-art{width:92px;height:44px}
}
/* WhatsApp beside Share (app.js #wa-open) */
.share-btn.wa-btn{color:#128C4B;text-decoration:none}
@media (max-width:400px){.share-btn.wa-btn span{display:none}.share-btn.wa-btn{padding:0 12px}}
.share-btn.wa-btn svg{width:18px;height:18px}

/* ---------- Calculators and one-question pages (tools.py; app.js "Calculators"), and the game's streak ---------- */
.tl-form{max-width:42rem;margin:18px auto 0;padding:clamp(12px,3vw,18px);border-radius:22px;background:var(--yb)}
.tl-in{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:10px}
.tl-in label{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;padding:9px 12px 8px;border-radius:14px;background:#FFFFFF;font-size:.95rem;cursor:text}
.tl-in label > span{flex:1 0 100%;font-size:.72rem;line-height:1.3;color:var(--ink-q)}
.tl-in label.wide{grid-column:1 / -1}
.tl-in label.check{grid-column:1 / -1;flex-wrap:nowrap;gap:10px;cursor:pointer}
.tl-in label.check > span{flex:1;font-size:.84rem;color:var(--ink-2)}
.tl-in label.check input{width:20px;height:20px;accent-color:var(--ya)}
.tl-in input:not([type=checkbox]),.tl-in select{flex:1;min-width:0;height:34px;padding:0;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:1.12rem;font-weight:600;font-variant-numeric:tabular-nums}
.tl-in label:focus-within{box-shadow:0 0 0 2px var(--ya)}
.tl-in b{font-weight:500;color:var(--ink-2)}
.tl-out{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:10px;margin-top:12px}
.doc .tl-out p{margin:0;padding:10px 12px 11px;border-radius:14px;background:rgba(255,255,255,.6);text-align:center;line-height:1.35}
.tl-out small{display:block;font-size:.72rem;line-height:1.35;color:var(--ink-q)}
.tl-out output{display:block;margin-top:2px;font-size:1.25rem;font-weight:650;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.doc .tl-out p.main{background:#FFFFFF;box-shadow:0 10px 24px -16px rgba(14,15,17,.4)}
.tl-out p.main output{font-size:1.6rem;color:var(--ya)}
.tl-pay{grid-template-columns:1fr}
.tl-bars{display:flex;align-items:flex-end;gap:3px;height:110px;margin-top:14px}
.tl-bars span{flex:1;display:flex;flex-direction:column;justify-content:flex-end;height:100%;min-width:0}
.tl-bars i{display:block;width:100%}
.tl-bars i.gain{border-radius:3px 3px 0 0;background:var(--ya)}
.tl-bars i.put{background:rgba(14,15,17,.18)}
.tl-sched details{margin-top:12px}
.tl-sched summary{cursor:pointer;font-size:.86rem;font-weight:600;color:var(--ink-2)}
.tl-sched .dt-wrap{max-height:340px;overflow:auto;margin-top:8px;padding:0 6px;border-radius:12px;background:#FFFFFF}
.tl-page .yr-bv small{font-weight:400;color:var(--ink-q)}
.yr-k-x i{background:var(--pen)}
.doc .pl-streak,.pl-streak{margin:8px 0 0;text-align:center;font-family:var(--hand);font-weight:700;font-size:1.3rem;line-height:1.2;color:var(--pen)}
@media (max-width:480px){.tl-out p.main output{font-size:1.4rem}}
