/* i18n.css: script fallbacks + the EN | BG | ES | FR | HI | JA switcher + book notes. */
/* Michroma, Syncopate and Share Tech Mono have no Cyrillic. These faces extend the same family names with
   Cyrillic glyphs only (unicode-range), so Latin text is untouched and Bulgarian text gets a close match:
   Unbounded (wide geometric, OFL) for the display fonts, PT Mono (OFL) for the mono font. */
@font-face{font-family:"Michroma";src:url(/fonts/unbounded-cyr.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Syncopate";src:url(/fonts/unbounded-cyr.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Share Tech Mono";src:url(/fonts/ptmono-cyr.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Black Ops One";src:url(/fonts/unbounded-cyr.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0400-045F}

/* Noto Sans Devanagari + Noto Sans JP: named families, and the same files aliased onto the display fonts for those unicode ranges only. */
@font-face{font-family:"Noto Sans Devanagari";src:url(/fonts/noto-sans-devanagari-regular.woff2) format("woff2");font-weight:100 500;font-style:normal;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF,U+1CD0-1CFF,U+200C,U+200D}
@font-face{font-family:"Noto Sans Devanagari";src:url(/fonts/noto-sans-devanagari-bold.woff2) format("woff2");font-weight:600 900;font-style:normal;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF,U+1CD0-1CFF,U+200C,U+200D}
@font-face{font-family:"Michroma";src:url(/fonts/noto-sans-devanagari-regular.woff2) format("woff2");font-weight:100 500;font-style:normal;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF,U+1CD0-1CFF,U+200C,U+200D}
@font-face{font-family:"Michroma";src:url(/fonts/noto-sans-devanagari-bold.woff2) format("woff2");font-weight:600 900;font-style:normal;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF,U+1CD0-1CFF,U+200C,U+200D}
@font-face{font-family:"Syncopate";src:url(/fonts/noto-sans-devanagari-regular.woff2) format("woff2");font-weight:100 500;font-style:normal;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF,U+1CD0-1CFF,U+200C,U+200D}
@font-face{font-family:"Syncopate";src:url(/fonts/noto-sans-devanagari-bold.woff2) format("woff2");font-weight:600 900;font-style:normal;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF,U+1CD0-1CFF,U+200C,U+200D}
@font-face{font-family:"Share Tech Mono";src:url(/fonts/noto-sans-devanagari-regular.woff2) format("woff2");font-weight:100 500;font-style:normal;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF,U+1CD0-1CFF,U+200C,U+200D}
@font-face{font-family:"Share Tech Mono";src:url(/fonts/noto-sans-devanagari-bold.woff2) format("woff2");font-weight:600 900;font-style:normal;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF,U+1CD0-1CFF,U+200C,U+200D}
@font-face{font-family:"Black Ops One";src:url(/fonts/noto-sans-devanagari-regular.woff2) format("woff2");font-weight:100 500;font-style:normal;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF,U+1CD0-1CFF,U+200C,U+200D}
@font-face{font-family:"Black Ops One";src:url(/fonts/noto-sans-devanagari-bold.woff2) format("woff2");font-weight:600 900;font-style:normal;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF,U+1CD0-1CFF,U+200C,U+200D}
@font-face{font-family:"Inter";src:url(/fonts/noto-sans-devanagari-regular.woff2) format("woff2");font-weight:100 500;font-style:normal;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF,U+1CD0-1CFF,U+200C,U+200D}
@font-face{font-family:"Inter";src:url(/fonts/noto-sans-devanagari-bold.woff2) format("woff2");font-weight:600 900;font-style:normal;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF,U+1CD0-1CFF,U+200C,U+200D}

@font-face{font-family:"Noto Sans JP";src:url(/fonts/noto-sans-jp-regular.woff2) format("woff2");font-weight:100 500;font-style:normal;font-display:swap;unicode-range:U+3040-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+3000-303F,U+FF01-FF60,U+FF66-FF9F}
@font-face{font-family:"Noto Sans JP";src:url(/fonts/noto-sans-jp-bold.woff2) format("woff2");font-weight:600 900;font-style:normal;font-display:swap;unicode-range:U+3040-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+3000-303F,U+FF01-FF60,U+FF66-FF9F}
@font-face{font-family:"Michroma";src:url(/fonts/noto-sans-jp-regular.woff2) format("woff2");font-weight:100 500;font-style:normal;font-display:swap;unicode-range:U+3040-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+3000-303F,U+FF01-FF60,U+FF66-FF9F}
@font-face{font-family:"Michroma";src:url(/fonts/noto-sans-jp-bold.woff2) format("woff2");font-weight:600 900;font-style:normal;font-display:swap;unicode-range:U+3040-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+3000-303F,U+FF01-FF60,U+FF66-FF9F}
@font-face{font-family:"Syncopate";src:url(/fonts/noto-sans-jp-regular.woff2) format("woff2");font-weight:100 500;font-style:normal;font-display:swap;unicode-range:U+3040-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+3000-303F,U+FF01-FF60,U+FF66-FF9F}
@font-face{font-family:"Syncopate";src:url(/fonts/noto-sans-jp-bold.woff2) format("woff2");font-weight:600 900;font-style:normal;font-display:swap;unicode-range:U+3040-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+3000-303F,U+FF01-FF60,U+FF66-FF9F}
@font-face{font-family:"Share Tech Mono";src:url(/fonts/noto-sans-jp-regular.woff2) format("woff2");font-weight:100 500;font-style:normal;font-display:swap;unicode-range:U+3040-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+3000-303F,U+FF01-FF60,U+FF66-FF9F}
@font-face{font-family:"Share Tech Mono";src:url(/fonts/noto-sans-jp-bold.woff2) format("woff2");font-weight:600 900;font-style:normal;font-display:swap;unicode-range:U+3040-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+3000-303F,U+FF01-FF60,U+FF66-FF9F}
@font-face{font-family:"Black Ops One";src:url(/fonts/noto-sans-jp-regular.woff2) format("woff2");font-weight:100 500;font-style:normal;font-display:swap;unicode-range:U+3040-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+3000-303F,U+FF01-FF60,U+FF66-FF9F}
@font-face{font-family:"Black Ops One";src:url(/fonts/noto-sans-jp-bold.woff2) format("woff2");font-weight:600 900;font-style:normal;font-display:swap;unicode-range:U+3040-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+3000-303F,U+FF01-FF60,U+FF66-FF9F}
@font-face{font-family:"Inter";src:url(/fonts/noto-sans-jp-regular.woff2) format("woff2");font-weight:100 500;font-style:normal;font-display:swap;unicode-range:U+3040-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+3000-303F,U+FF01-FF60,U+FF66-FF9F}
@font-face{font-family:"Inter";src:url(/fonts/noto-sans-jp-bold.woff2) format("woff2");font-weight:600 900;font-style:normal;font-display:swap;unicode-range:U+3040-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+3000-303F,U+FF01-FF60,U+FF66-FF9F}

.ht-lang{--t:#46d7cd;--g:#e6c25a;--lav:#b9a7ff;position:relative;display:inline-flex;align-items:center;gap:1px;flex:0 0 auto;
  padding:3px;border-radius:999px;isolation:isolate;
  background:linear-gradient(180deg,#ffffff 0%,#e9ecf3 45%,#c9ced9 55%,#f4f6fa 100%);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 -1px 0 rgba(120,128,150,.25) inset,0 4px 14px rgba(70,60,140,.16),0 0 0 1px rgba(150,140,210,.28);
  font-family:"Michroma",system-ui,sans-serif;line-height:1;-webkit-tap-highlight-color:transparent}
.ht-lang__glow{position:absolute;inset:-3px;border-radius:inherit;z-index:-1;opacity:.55;filter:blur(6px);
  background:conic-gradient(from 200deg,var(--t),var(--lav),var(--g),var(--t));pointer-events:none}
.ht-lang i{font-style:normal;font-size:9px;color:rgba(90,96,120,.45);padding:0 1px;user-select:none}
.ht-lang button{appearance:none;border:0;margin:0;cursor:pointer;font:inherit;font-size:10px;letter-spacing:.14em;
  padding:6px 8px 6px 9px;border-radius:999px;color:#4a5068;background:transparent;transition:background .25s,color .25s,box-shadow .25s}
.ht-lang button:hover{color:#1d2236}
.ht-lang button[aria-pressed="true"]{color:#08262a;
  background:linear-gradient(180deg,#7ff0e6 0%,var(--t) 55%,#2fb8ae 100%);
  box-shadow:0 0 0 1px rgba(230,194,90,.95),0 0 10px rgba(70,215,205,.55),0 1px 0 rgba(255,255,255,.7) inset}
.ht-lang button:focus-visible{outline:2px solid var(--g);outline-offset:2px}
.ht-lang--nav{margin:0 10px 0 8px}
.ht-lang--float{position:fixed;z-index:2147483000;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right))}
@media (max-width:820px){.ht-lang button{font-size:9px;padding:6px 6px 6px 7px;letter-spacing:.1em}.ht-lang--nav{margin:0 6px 0 4px}
  /* compact nav switcher: only the active code shows (with a small caret); tap it to drop down the other languages */
  .ht-lang--nav i{display:none}
  .ht-lang--nav button[aria-pressed="false"]{display:none}
  .ht-lang--nav button[aria-pressed="true"]::after{content:"";display:inline-block;width:0;height:0;margin-left:5px;vertical-align:1px;
    border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid currentColor;opacity:.75;transition:transform .2s}
  .ht-lang--nav[data-open] button[aria-pressed="true"]::after{transform:rotate(180deg)}
  .ht-lang--nav[data-open]{z-index:60}
  .ht-lang--nav[data-open] button[aria-pressed="false"]{display:block;position:absolute;left:50%;transform:translateX(-50%);
    top:calc(100% + 6px + (var(--i,1) - 1) * 32px);min-width:44px;padding:8px 9px;text-align:center;color:#2b3048;
    background:linear-gradient(180deg,#ffffff 0%,#eceff5 50%,#d6dae4 100%);
    box-shadow:0 0 0 1px rgba(150,140,210,.45),0 4px 12px rgba(70,60,140,.22),0 0 8px rgba(70,215,205,.25)}
  .ht-lang--nav[data-open] button[aria-pressed="false"]:active{background:linear-gradient(180deg,#7ff0e6,#46d7cd)}
}
@media (prefers-reduced-motion:reduce){.ht-lang button{transition:none}}
/* Book title extras: BG shows the English title as a subtitle; ES/FR show a translated tagline under the English title.
   Plus a small "the book is in English" note under the buy links. */
.ht-maf-sub{display:block;margin-top:2px;font-family:var(--text,Inter,system-ui,sans-serif);font-size:.62em;font-weight:600;letter-spacing:.02em;text-transform:none;color:#7a5fd0;opacity:.9}
.ht-maf-sub--es,.ht-maf-sub--fr{font-size:.56em;font-weight:500;line-height:1.3;letter-spacing:0;margin-top:3px}
.ht-maf-note{margin:6px 0 0;font-size:11px;line-height:1.35;color:#6a6f86;font-style:italic}
/* Cyrillic Й sits above cap height; chrome text (background-clip:text) and the word-reveal masks would cut off its breve.
   Give those boxes a little headroom in Bulgarian only, with a matching negative margin so layout does not move. */
html[lang="bg"] .w{padding-top:.2em;margin-top:-.2em}
html[lang="bg"] h2 .wi,html[lang="bg"] .newbook-title{padding-top:.2em;margin-top:-.2em}
html[lang="bg"] h2:not([data-split]){padding-top:.2em;margin-top:-.2em}
/* Hindi and Japanese: put Noto first on the site's font variables, ease letter-spacing on display type,
   and give Devanagari a little headroom so matras are not clipped (same idea as the Bulgarian breve). */
html[lang="hi"]{--text:"Noto Sans Devanagari",-apple-system,BlinkMacSystemFont,Inter,system-ui,sans-serif;--disp:"Noto Sans Devanagari","Michroma","Syncopate",system-ui,sans-serif;--wide:"Noto Sans Devanagari","Syncopate","Michroma",system-ui,sans-serif}
html[lang="ja"]{--text:"Noto Sans JP",-apple-system,BlinkMacSystemFont,Inter,system-ui,sans-serif;--disp:"Noto Sans JP","Michroma","Syncopate",system-ui,sans-serif;--wide:"Noto Sans JP","Syncopate","Michroma",system-ui,sans-serif}
html[lang="hi"] h1,html[lang="hi"] h2,html[lang="hi"] h3,html[lang="hi"] h4,html[lang="hi"] .btn,html[lang="hi"] .newbook-title,html[lang="hi"] [data-split],html[lang="ja"] h1,html[lang="ja"] h2,html[lang="ja"] h3,html[lang="ja"] h4,html[lang="ja"] .btn,html[lang="ja"] .newbook-title,html[lang="ja"] [data-split]{text-transform:none;letter-spacing:.02em}
html[lang="ja"] h1,html[lang="ja"] h2,html[lang="ja"] h3,html[lang="ja"] [data-split],html[lang="ja"] .newbook-title{letter-spacing:.04em;line-height:1.4}
html[lang="hi"] .w,html[lang="hi"] h2 .wi,html[lang="hi"] .newbook-title,html[lang="hi"] h2:not([data-split]){padding-top:.25em;margin-top:-.25em}
.ht-maf-sub--hi,.ht-maf-sub--ja{font-size:.62em;font-weight:600;letter-spacing:.02em}
