/* The site chrome of tbcounter.com: the navigation bar, the footer and a tool page's header line that
   site-chrome.js renders.
   One file for the Next pages and the tool pages alike, linked as /chrome/site-chrome.css?v=<CHROME_V>
   (bump CHROME_V in site-chrome.js whenever this file changes: the host caches .css for 30 days).

   It looks the same with or without the site's own stylesheet: the colours and fonts are its own
   --tbc-* copies of the site's tokens, and it resets what it uses on its own elements, because tool
   pages carry global rules such as `button { background: none; padding: 0 }` and `img { display: block }`.
   Every rule is scoped to .tbc-chrome, .tbc-modal or the chrome's own placeholders and classes; the
   component rules start with .tbc-nav / .tbc-footer / .tbc-toolhead so they outrank the reset (.tbc-chrome button).

   The phone layout (the burger) is the class tbc-phone on <html>, set up to PHONE_MAX (1080 px, where
   the wide bar starts to fit) by the page's head script and kept up to date by site-chrome.js. It is
   not a media query: a page that forces a wide layout on a phone (the calculator renders 820 px wide)
   never matches one. There the bar and the footer are enlarged by zoom: var(--tbc-nav-scale). Under
   zoom, Chrome multiplies vw and vh by the zoom too, so a vh length inside the chrome is divided by
   the scale first. */

/* ---- tokens and the reset of the chrome's own elements ---- */
.tbc-chrome,
.tbc-modal {
  --tbc-bg: #0b0b0d;
  --tbc-surface: #131316;
  --tbc-surface-2: #1a1a1e;
  --tbc-gold: #c89863;
  --tbc-gold-bright: #e0b97a;
  --tbc-text: #f3eee0;
  --tbc-muted: #a8a193;
  --tbc-dim: #6b6557;
  --tbc-border: rgba(200, 152, 99, .22);
  --tbc-border-faint: rgba(200, 152, 99, .10);
  --tbc-line: rgba(255, 255, 255, .06);
  --tbc-ink: #1a1208;
  --tbc-display: var(--font-fraunces, "Fraunces", Georgia, serif);
  --tbc-sans: var(--font-geist-sans, "Geist", "Segoe UI", sans-serif);
  --tbc-mono: var(--font-geist-mono, "Geist Mono", Consolas, monospace);
}
.tbc-chrome,
.tbc-chrome *,
.tbc-chrome *::before,
.tbc-chrome *::after { box-sizing: border-box }
.tbc-chrome {
  font-family: var(--tbc-sans); font-size: 16px; font-weight: 400; font-style: normal; line-height: 1.5;
  color: var(--tbc-text); letter-spacing: normal; text-align: left; text-transform: none;
  font-feature-settings: normal; -webkit-font-smoothing: antialiased;
}
.tbc-chrome div, .tbc-chrome span, .tbc-chrome p, .tbc-chrome h1, .tbc-chrome h4,
.tbc-chrome b, .tbc-chrome small, .tbc-chrome i, .tbc-chrome svg { margin: 0; padding: 0 }
.tbc-chrome a {
  display: inline; margin: 0; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-decoration: none;
}
.tbc-chrome button {
  display: inline-block; width: auto; height: auto; min-width: 0; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  font: inherit; color: inherit; letter-spacing: inherit; text-align: inherit; text-transform: none;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
.tbc-chrome img {
  display: inline-block; width: auto; height: auto; max-width: none; margin: 0; padding: 0; border: 0;
  vertical-align: middle;
}
.tbc-chrome input {
  display: block; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; font: inherit; color: inherit; -webkit-appearance: none; appearance: none;
}
/* a host page's a:hover { text-decoration: underline } must not reach the chrome's links, whichever
   stylesheet comes last: these are a class and a pseudo-class above a bare a:hover. For the same reason
   every link's colour is set by its own component rule (two classes or more), never left to the
   reset's inherit, which a bare a:link or a:hover after this file would replace. */
.tbc-chrome a:link, .tbc-chrome a:visited, .tbc-chrome a:hover,
.tbc-chrome a:focus, .tbc-chrome a:active { text-decoration: none }
.tbc-chrome [hidden] { display: none !important }
.tbc-chrome a:focus-visible,
.tbc-chrome button:focus-visible { outline: 2px solid var(--tbc-gold-bright); outline-offset: 2px }
.tbc-chrome .tbc-sr,
html.tbc-phone .tbc-nav [data-tbc-tz-label],
html.tbc-phone .tbc-nav .tbc-nm {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---- the bar ---- */
.tbc-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: 64px; margin: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 20px;
  background: linear-gradient(rgba(17, 17, 20, .97), rgba(13, 13, 16, .93));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 0; border-bottom: 1px solid var(--tbc-border); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8);
  zoom: var(--tbc-nav-scale, 1);
}
.tbc-nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(224, 185, 122, .55) 30%, rgba(224, 185, 122, .55) 70%, transparent);
}
.tbc-modal { zoom: var(--tbc-nav-scale, 1) }

.tbc-nav .tbc-caret {
  display: block; flex: none; width: 7px; height: 7px; margin: -4px 0 0 2px; opacity: .7;
  border: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}

/* the time zone selector */
.tbc-nav .tbc-tz { grid-column: 1; justify-self: start; position: relative }
.tbc-nav .tbc-tzbtn {
  display: flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; white-space: nowrap;
  background: var(--tbc-surface-2); color: var(--tbc-text); border: 1px solid var(--tbc-border); border-radius: 999px;
  font: 500 14px var(--tbc-sans); cursor: pointer;
}
.tbc-nav .tbc-tzbtn:hover { border-color: var(--tbc-gold) }
.tbc-nav [data-tbc-tz-label] { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.tbc-nav .tbc-tzbtn svg { display: block; flex: none; width: 17px; height: 17px; fill: none; stroke: var(--tbc-gold-bright); stroke-width: 1.6 }
.tbc-nav .tbc-tzbtn .tbc-caret { margin: -3px 2px 0 2px; opacity: 1; border-color: var(--tbc-muted) }
.tbc-nav .tbc-tzlist {
  position: absolute; left: 0; top: calc(100% + 8px); width: 300px; padding: 8px;
  background: var(--tbc-surface); border: 1px solid var(--tbc-border); border-radius: 12px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .85);
}
.tbc-nav .tbc-tzlist input {
  width: 100%; margin: 0 0 6px; padding: 8px 10px; outline: none;
  background: var(--tbc-surface-2); border: 1px solid var(--tbc-border); border-radius: 8px;
  color: var(--tbc-text); font: 14px var(--tbc-sans);
}
.tbc-nav .tbc-tzlist input::placeholder { color: var(--tbc-muted); opacity: 1 }
.tbc-nav .tbc-tzlist input:focus { border-color: var(--tbc-gold) }
.tbc-nav [data-tbc-tz-items] { max-height: min(430px, calc(100vh / var(--tbc-nav-scale, 1) - 150px)); overflow: auto }
.tbc-nav .tbc-tzitem {
  display: block; width: 100%; padding: 7px 10px; border-radius: 8px; text-align: left;
  font-size: 14px; line-height: 1.5; color: var(--tbc-text); cursor: pointer;
}
.tbc-nav .tbc-tzitem:hover { background: rgba(200, 152, 99, .16) }
.tbc-nav .tbc-tzitem:focus-visible { outline-offset: -2px }
.tbc-nav .tbc-tzitem.tbc-current { color: var(--tbc-gold-bright); font-weight: 600 }
.tbc-nav .tbc-tznone { padding: 8px 10px; font-size: 13.5px; color: var(--tbc-muted) }

/* the menu */
.tbc-nav .tbc-menu {
  grid-column: 2; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(26, 26, 30, .85); border: 1px solid var(--tbc-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.tbc-nav .tbc-menu > a,
.tbc-nav .tbc-has > button {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--tbc-text); white-space: nowrap; cursor: pointer;
  transition: background .15s, color .15s;
}
.tbc-nav .tbc-menu > a:hover,
.tbc-nav .tbc-has > button:hover,
.tbc-nav .tbc-has.tbc-open > button { background: rgba(200, 152, 99, .16); color: var(--tbc-gold-bright) }
.tbc-nav .tbc-menu > a.tbc-on,
.tbc-nav .tbc-has.tbc-on > button { background: var(--tbc-gold); color: var(--tbc-ink); font-weight: 600 }
.tbc-nav .tbc-menu > a > img { height: 26px; width: auto; margin-left: -6px }
.tbc-nav .tbc-has { position: relative }
.tbc-nav .tbc-drop {
  position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); width: 560px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px;
  background: var(--tbc-surface); border: 1px solid var(--tbc-border); border-radius: 14px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .9);
}
.tbc-nav .tbc-drop a {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 11px; align-items: center;
  padding: 8px; border-radius: 10px; cursor: pointer; color: var(--tbc-text);
}
.tbc-nav .tbc-drop a:hover { background: rgba(200, 152, 99, .14) }
.tbc-nav .tbc-drop img { display: block; width: 88px; height: 55px; object-fit: cover; border-radius: 6px; border: 1px solid var(--tbc-border) }
.tbc-nav .tbc-drop span { font-size: 12.5px; line-height: 1.3; color: var(--tbc-muted) }
.tbc-nav .tbc-drop b { display: block; margin-bottom: 2px; font-size: 14.5px; font-weight: 600; color: var(--tbc-text) }

/* Sign in */
.tbc-nav .tbc-who { grid-column: 3; justify-self: end; position: relative }
.tbc-nav .tbc-signin {
  display: inline-block; padding: 9px 26px; border-radius: 999px; white-space: nowrap; cursor: pointer;
  background: var(--tbc-gold); color: var(--tbc-ink); font-size: 15px; font-weight: 600; line-height: 1.5;
  border: 1px solid rgba(224, 185, 122, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 24px -10px rgba(200, 152, 99, .6);
}

/* the account button and its menu, in place of Sign in when someone is signed in (site-chrome.js setAccount) */
.tbc-nav .tbc-acctbtn {
  display: flex; align-items: center; gap: 9px; padding: 5px 14px 5px 6px; white-space: nowrap; cursor: pointer;
  background: var(--tbc-surface-2); color: var(--tbc-text); border: 1px solid var(--tbc-border); border-radius: 999px;
  font: 500 14.5px/1.5 var(--tbc-sans);
}
.tbc-nav .tbc-acctbtn:hover { border-color: var(--tbc-gold) }
.tbc-nav .tbc-av {
  display: flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tbc-gold), #a67a45); color: #17110a; font-weight: 700; line-height: 1;
}
/* a long name ends in an ellipsis (site-chrome.js fitNames sets its max-width); the menu's head has it whole */
.tbc-nav .tbc-nm { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis }
.tbc-nav .tbc-acctmenu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 280px; padding: 6px;
  background: var(--tbc-surface); border: 1px solid var(--tbc-border); border-radius: 12px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .9);
}
.tbc-nav .tbc-acct-head { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--tbc-line); overflow-wrap: anywhere }
.tbc-nav .tbc-acct-head b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.5; color: var(--tbc-text) }
/* the clan: inline in the head's 16 px line, as the prototype has it */
.tbc-nav .tbc-acct-head span { font-size: 12.5px; color: var(--tbc-muted) }
.tbc-nav .tbc-acctmenu a {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--tbc-text);
}
.tbc-nav .tbc-acctmenu a:hover { background: rgba(200, 152, 99, .14) }
.tbc-nav .tbc-acctmenu a.tbc-plain { display: block }
.tbc-nav .tbc-acctmenu img { height: 28px; width: auto; margin: -2px 0 -2px -4px }
.tbc-nav .tbc-acctmenu small { display: block; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--tbc-muted) }
.tbc-nav .tbc-acct-div { height: 1px; margin: 6px 0; background: var(--tbc-line) }

/* the phone menu button: three lines drawn here */
.tbc-nav .tbc-burger { display: none }

/* ---- the footer ---- */
.tbc-footer {
  display: block; position: relative; width: min(1144px, calc(100% - 56px)); margin: 90px auto 0; padding: 56px 0 60px;
  background: none; border: 0; border-top: 1px solid var(--tbc-border-faint);
  zoom: var(--tbc-nav-scale, 1);
}
.tbc-footer .tbc-ft-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr); gap: 44px }
.tbc-footer .tbc-ft-logo { display: flex; align-items: center; gap: 12px; color: var(--tbc-text) }
.tbc-footer .tbc-ft-logo img { height: 52px; width: auto }
.tbc-footer .tbc-ft-logo b { display: block; font-family: var(--tbc-display); font-weight: 500; font-size: 24px; line-height: 1; color: var(--tbc-text) }
.tbc-footer .tbc-ft-logo small {
  display: block; margin-top: 5px; font-family: var(--tbc-mono); font-size: 10.5px; line-height: 1.5;
  letter-spacing: .22em; text-transform: uppercase; color: var(--tbc-dim);
}
.tbc-footer .tbc-ft-brand p { margin-top: 20px; max-width: 42ch; font-size: 13.5px; line-height: 1.6; color: var(--tbc-muted) }
.tbc-footer .tbc-ft-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px }
.tbc-footer .tbc-ft-cols h4 {
  margin-bottom: 14px; font-family: var(--tbc-mono); font-weight: 500; font-size: 10.5px; line-height: 1.5;
  letter-spacing: .2em; text-transform: uppercase; color: var(--tbc-gold);
}
.tbc-footer .tbc-ft-cols a { display: block; padding: 4px 0; font-size: 13.5px; color: var(--tbc-muted); cursor: pointer }
.tbc-footer .tbc-ft-cols a:hover { color: var(--tbc-text) }
.tbc-footer .tbc-ft-bot {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 52px; padding-top: 26px;
  border-top: 1px solid var(--tbc-line); font-family: var(--tbc-mono); font-size: 11px; color: var(--tbc-dim);
}
.tbc-footer .tbc-ft-bot span + span { letter-spacing: .18em; text-transform: uppercase; font-size: 10.5px }

/* ---- the header line of a tool page (site-chrome.js renderToolHead) ----
   "Free tool", the tool's name, its sentence, and the promo with the page's one trial link, right
   under the fixed bar: its top margin is the bar's height, which is in page pixels, so it is divided
   by the zoom the forced-wide layout gives it (the same zoom as the bar and the footer). The phone
   layout puts the promo under the sentence. */
.tbc-toolhead {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 30px;
  max-width: 1500px; margin: calc(var(--tbc-chrome-h, 64px) / var(--tbc-nav-scale, 1)) auto 0;
  padding: 22px 28px 16px; background: none; border: 0;
  zoom: var(--tbc-nav-scale, 1);
}
.tbc-toolhead .tbc-th-text { min-width: 0 }
.tbc-toolhead h1,
.tbc-toolhead p {
  display: block; width: auto; max-width: none; margin: 0; padding: 0; border: 0; background: none;
  font-style: normal; text-align: left; text-transform: none; text-shadow: none;
}
.tbc-toolhead .tbc-th-eyebrow {
  margin-bottom: 6px; font: 400 12px/1.5 var(--tbc-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tbc-gold);
}
.tbc-toolhead h1 { font: 500 34px/1.1 var(--tbc-display); letter-spacing: -.01em; color: var(--tbc-text) }
.tbc-toolhead .tbc-th-text h1 + p { margin-top: 4px; font: 400 15.5px/1.5 var(--tbc-sans); letter-spacing: normal; color: var(--tbc-muted) }
.tbc-toolhead .tbc-th-promo {
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 999px;
  border: 1px solid var(--tbc-border); background: var(--tbc-surface); font-size: 14.5px; line-height: 1.5; color: #e0dac9;
}
.tbc-toolhead .tbc-th-promo b { font-weight: 600; color: var(--tbc-text) }
/* the site's gold button, small */
.tbc-toolhead .tbc-th-btn {
  display: inline-block; flex: none; padding: 9px 18px; border-radius: 999px; white-space: nowrap; cursor: pointer;
  background: var(--tbc-gold); color: var(--tbc-ink); font-size: 14px; font-weight: 600; line-height: 1.5;
  border: 1px solid rgba(224, 185, 122, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 30px -12px rgba(200, 152, 99, .5);
  transition: background-color .2s;
}
.tbc-toolhead .tbc-th-btn:link, .tbc-toolhead .tbc-th-btn:visited, .tbc-toolhead .tbc-th-btn:hover,
.tbc-toolhead .tbc-th-btn:focus, .tbc-toolhead .tbc-th-btn:active { color: var(--tbc-ink); text-decoration: none }
.tbc-toolhead .tbc-th-btn:hover { background: var(--tbc-gold-bright) }

/* ---- the checkout window (site-chrome.js openCheckout) ----
   The checkout page in a frame over the page, 940 px wide and as tall as the checkout says it is
   (--tbc-frame-h, posted by the frame, plus the 2 px of border), up to the screen less 24 px above
   and below. The frame is what scrolls; the page behind is held (html.tbc-modal-open) and inert
   (site-chrome.js). On a phone it fills the screen. One sheet, the prototype's: the site's surface
   colour edge to edge (the embedded checkout draws no card of its own, globals.css). It stays out of
   sight (.tbc-wait) until the frame has said its height, so it opens at its real size. */
.tbc-modal {
  position: fixed; inset: 0; z-index: 5000; margin: 0; padding: 24px;
  display: grid; place-items: center; box-sizing: border-box;
  background: rgba(6, 6, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tbc-modal[hidden] { display: none }
.tbc-modal .tbc-sheet {
  position: relative; box-sizing: border-box; width: min(940px, 100%); margin: 0; padding: 0; overflow: hidden;
  height: min(calc(var(--tbc-frame-h, 700px) + 2px), calc(100vh / var(--tbc-nav-scale, 1) - 48px));
  background: var(--tbc-surface); border: 1px solid var(--tbc-border); border-radius: 16px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9);
  transition: height .2s ease-out; animation: tbc-rise .22s ease-out;
}
.tbc-modal .tbc-sheet.tbc-wait { visibility: hidden; animation: none; transition: none }
@keyframes tbc-rise { from { opacity: 0; transform: translateY(14px) scale(.985) } }
.tbc-modal iframe {
  display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0;
  background: var(--tbc-surface);
}
.tbc-modal .tbc-x {
  position: absolute; right: 6px; top: 6px; z-index: 1; display: block; box-sizing: border-box;
  width: 34px; height: 34px; min-width: 0; min-height: 0; margin: 0; padding: 0; cursor: pointer;
  border: 1px solid var(--tbc-border); border-radius: 50%; background: var(--tbc-surface-2); box-shadow: none;
  font: inherit; color: var(--tbc-text); -webkit-appearance: none; appearance: none;
}
.tbc-modal .tbc-x:hover { border-color: var(--tbc-gold) }
.tbc-modal .tbc-x:focus-visible { outline: 2px solid var(--tbc-gold-bright); outline-offset: 2px }
.tbc-modal .tbc-x::before,
.tbc-modal .tbc-x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px;
  background: var(--tbc-text); transform: translate(-50%, -50%) rotate(45deg);
}
.tbc-modal .tbc-x::after { transform: translate(-50%, -50%) rotate(-45deg) }
/* the window's own line when its checkout has not come up (site-chrome.js watchFrame), across the top of the
   frame under the X, with a plain link to the checkout page itself; every state of the link named, so a page's
   bare a:link or a:hover cannot restyle it */
.tbc-modal .tbc-co-slow {
  position: absolute; left: 0; right: 0; top: 0; box-sizing: border-box; margin: 0; padding: 13px 56px 13px 20px;
  background: var(--tbc-surface); border: 0; border-bottom: 1px solid var(--tbc-border);
  font: 400 14.5px/1.5 var(--tbc-sans); color: var(--tbc-text); text-align: left; letter-spacing: normal; text-transform: none;
}
.tbc-modal .tbc-co-slow span { margin: 0; padding: 0; font: inherit; color: inherit }
.tbc-modal .tbc-co-slow a,
.tbc-modal .tbc-co-slow a:link, .tbc-modal .tbc-co-slow a:visited, .tbc-modal .tbc-co-slow a:hover,
.tbc-modal .tbc-co-slow a:focus, .tbc-modal .tbc-co-slow a:active {
  display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 600;
  color: var(--tbc-gold-bright); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.tbc-modal .tbc-co-slow a:focus-visible { outline: 2px solid var(--tbc-gold-bright); outline-offset: 2px }
html.tbc-modal-open,
html.tbc-modal-open body { overflow: hidden }
/* a page that had a classic scrollbar keeps its room while held, so nothing behind the window shifts */
html.tbc-modal-open.tbc-modal-gutter { scrollbar-gutter: stable }
html.tbc-phone .tbc-modal { padding: 0 }
html.tbc-phone .tbc-modal .tbc-sheet {
  position: absolute; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .tbc-modal .tbc-sheet { transition: none; animation: none }
}

/* ---- the sign-in window (site-chrome.js openSignin) ----
   The prototype's sign-in sheet: 420 px wide, as tall as its view up to the screen less 24 px above and
   below (then it scrolls), in the checkout window's shell (.tbc-modal). Its element also carries
   .tbc-chrome, so the reset above holds against a tool page's global rules; every element is styled here.
   On a phone it fills the screen. */
.tbc-modal .tbc-si {
  position: relative; box-sizing: border-box; width: min(420px, 100%); margin: 0; padding: 30px 30px 24px;
  max-height: calc(100vh / var(--tbc-nav-scale, 1) - 48px); overflow: auto; overscroll-behavior: contain;
  background: var(--tbc-surface); border: 1px solid var(--tbc-border); border-radius: 16px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); animation: tbc-rise .22s ease-out;
  font: 400 16px/1.5 var(--tbc-sans); color: var(--tbc-text); text-align: left;
}
.tbc-modal .tbc-si:focus { outline: none }
.tbc-modal .tbc-si .tbc-x { right: 14px; top: 14px; z-index: 2 }
.tbc-modal .tbc-si form, .tbc-modal .tbc-si label, .tbc-modal .tbc-si h2 { margin: 0; padding: 0; border: 0; background: none }
.tbc-modal .tbc-si .tbc-si-logo { display: block; width: auto; height: 76px; margin: -8px auto 6px }
.tbc-modal .tbc-si-tabs {
  display: flex; gap: 4px; margin-top: 6px; padding: 4px; border-radius: 12px;
  background: var(--tbc-surface-2); border: 1px solid var(--tbc-border);
}
.tbc-modal .tbc-si-tabs button {
  flex: 1; padding: 9px 8px; border-radius: 8px; text-align: center; cursor: pointer;
  font: 400 11px/1.5 var(--tbc-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tbc-muted);
}
.tbc-modal .tbc-si-tabs button:hover { color: var(--tbc-text) }
.tbc-modal .tbc-si-tabs button[aria-selected="true"] { background: var(--tbc-gold); color: var(--tbc-ink); font-weight: 500 }
.tbc-modal .tbc-si-blurb { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--tbc-muted); overflow-wrap: anywhere }
.tbc-modal .tbc-si-blurb b { font-weight: 700; color: var(--tbc-text) }
.tbc-modal .tbc-si .tbc-si-h {
  margin: 4px 0 0; text-align: center; color: var(--tbc-text);
  font: 500 26px/1.1 var(--tbc-display); letter-spacing: -.01em;
}
.tbc-modal .tbc-si .tbc-si-h i { font-style: italic; font-weight: 400; color: var(--tbc-gold-bright) }
.tbc-modal .tbc-si .tbc-si-label { display: block; margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--tbc-muted) }
.tbc-modal .tbc-si .tbc-si-fld {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; outline: none;
  background: var(--tbc-surface-2); border: 1px solid var(--tbc-border); border-radius: 8px;
  font: 400 15px/1.5 var(--tbc-sans); color: var(--tbc-text);
}
.tbc-modal .tbc-si .tbc-si-fld::placeholder { color: var(--tbc-dim); opacity: 1 }
.tbc-modal .tbc-si .tbc-si-fld:focus { border-color: var(--tbc-gold) }
/* the six digits as far apart as the prototype draws them; the indent equals the spacing the last digit
   carries after it, so the digits are centred */
.tbc-modal .tbc-si .tbc-si-code {
  margin-top: 16px; text-align: center; text-indent: 1.2em; font: 400 20px/1.5 var(--tbc-mono); letter-spacing: 1.2em;
}
.tbc-modal .tbc-si-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.55; color: var(--tbc-dim) }
/* the site's gold button, the sheet's width */
.tbc-modal .tbc-si .tbc-si-btn {
  display: block; width: 100%; margin-top: 16px; padding: 12px 24px; border-radius: 999px; text-align: center; cursor: pointer;
  background: var(--tbc-gold); color: var(--tbc-ink); font: 600 15.5px/1.5 var(--tbc-sans);
  border: 1px solid rgba(224, 185, 122, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 30px -12px rgba(200, 152, 99, .5);
  transition: background-color .2s;
}
.tbc-modal .tbc-si .tbc-si-btn:hover { background: var(--tbc-gold-bright) }
.tbc-modal .tbc-si .tbc-si-btn:disabled { opacity: .6; cursor: progress }
.tbc-modal .tbc-si-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 16px 0 0 }
.tbc-modal .tbc-si-foot button {
  cursor: pointer; font: 400 11px/1.5 var(--tbc-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--tbc-muted); text-decoration: underline;
}
.tbc-modal .tbc-si-foot button:hover { color: var(--tbc-text) }
.tbc-modal .tbc-si-foot button:disabled { opacity: .6; cursor: progress }
/* the two Create account choices */
.tbc-modal .tbc-si .tbc-si-pick {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%;
  margin-top: 12px; padding: 14px; border-radius: 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--tbc-border); background: var(--tbc-surface-2); transition: border-color .15s, background .15s;
}
.tbc-modal .tbc-si .tbc-si-pick:hover { border-color: var(--tbc-gold); background: rgba(200, 152, 99, .12) }
.tbc-modal .tbc-si .tbc-si-pick img { display: block; width: 58px; height: auto }
.tbc-modal .tbc-si-pick span { font-size: 13.5px; line-height: 1.45; color: var(--tbc-muted) }
.tbc-modal .tbc-si-pick b { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 600; color: var(--tbc-text) }
/* the portal's message, in its kind (the checkout's own red for a problem), and a suggested address */
.tbc-modal .tbc-si-msg {
  margin-top: 16px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--tbc-border);
  font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere;
  background: rgba(200, 152, 99, .08); color: #e0dac9;
}
.tbc-modal .tbc-si-msg[data-kind="danger"] { background: rgba(214, 124, 130, .1); border-color: rgba(214, 124, 130, .4); color: #e8a3a8 }
.tbc-modal .tbc-si-msg[data-kind="success"] { background: rgba(106, 147, 119, .14); border-color: rgba(106, 147, 119, .45); color: #9fd3a7 }
.tbc-modal .tbc-si-sug { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px }
.tbc-modal .tbc-si-sug button { cursor: pointer; font-weight: 600; color: inherit; text-decoration: underline; overflow-wrap: anywhere; text-align: left }
.tbc-modal .tbc-si-sug button:disabled { opacity: .6; cursor: progress }
/* the "not available" line's link to the portal's sign-in page: the banner's colour, underlined, whatever a
   page's own link rules say (each state named, so a bare a:hover after this file cannot win) */
.tbc-modal .tbc-si-msg .tbc-si-out,
.tbc-modal .tbc-si-msg .tbc-si-out:link, .tbc-modal .tbc-si-msg .tbc-si-out:visited, .tbc-modal .tbc-si-msg .tbc-si-out:hover,
.tbc-modal .tbc-si-msg .tbc-si-out:focus, .tbc-modal .tbc-si-msg .tbc-si-out:active {
  display: inline; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer;
}
html.tbc-phone .tbc-modal .tbc-si {
  position: absolute; inset: 0; width: auto; max-height: none; padding: 56px 20px 24px;
  border: 0; border-radius: 0; box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .tbc-modal .tbc-si, .tbc-modal .tbc-si * { animation: none; transition: none }
}

/* ---- the page under the bar ---- */
.tbc-below-nav { padding-top: var(--tbc-chrome-h, 64px) }
html.tbc-phone .tbc-below-nav { padding-top: var(--tbc-chrome-h, 56px) }

/* ================= phone ================= */
html.tbc-phone .tbc-nav { grid-template-columns: auto 1fr auto auto; height: 56px; padding: 0 12px; column-gap: 8px }
html.tbc-phone .tbc-nav .tbc-tz { position: static }
html.tbc-phone .tbc-nav .tbc-tzbtn { padding: 9px }
html.tbc-phone .tbc-nav .tbc-tzbtn .tbc-caret { display: none }
html.tbc-phone .tbc-nav .tbc-tzlist { left: 12px; right: 12px; top: 54px; width: auto; max-width: 400px }
html.tbc-phone .tbc-nav .tbc-menu { display: none }
html.tbc-phone .tbc-nav .tbc-who { grid-column: 3; position: static }
html.tbc-phone .tbc-nav .tbc-signin { padding: 8px 16px; font-size: 14px }
/* the account button shows the initial; its menu hangs from the bar, its right edge under the button's
   (the burger's 40 px, the 8 px gap and the bar's 12 px padding), never wider than the screen allows */
html.tbc-phone .tbc-nav .tbc-acctbtn { padding: 4px 10px 4px 4px }
html.tbc-phone .tbc-nav .tbc-acctmenu { right: 60px; top: 58px; width: min(280px, calc(100% - 72px)) }
html.tbc-phone .tbc-nav .tbc-burger {
  display: block; grid-column: 4; position: relative; width: 40px; height: 40px; padding: 0; cursor: pointer;
  border: 1px solid var(--tbc-border); border-radius: 10px; background: var(--tbc-surface-2);
}
html.tbc-phone .tbc-nav .tbc-burger::before {
  content: ""; position: absolute; left: 11px; right: 11px; top: 13px; height: 2px; border-radius: 2px;
  background: var(--tbc-text); box-shadow: 0 6px 0 var(--tbc-text), 0 12px 0 var(--tbc-text);
}

/* The open phone menu: full screen under the bar. The bar's backdrop-filter makes it the containing
   block of a fixed child, so the menu is absolute, and it has no explicit grid column (that would make
   the grid area its containing block). */
html.tbc-phone.tbc-menu-open .tbc-nav .tbc-menu {
  display: flex; grid-column: auto; grid-row: auto; position: absolute; left: 0; right: 0; top: 56px;
  height: calc(100vh / var(--tbc-nav-scale, 1) - 56px); height: calc(100dvh / var(--tbc-nav-scale, 1) - 56px);
  flex-direction: column; align-items: stretch; gap: 4px; padding: 14px; overflow: auto; overscroll-behavior: contain;
  border-radius: 0; border: 0; background: var(--tbc-bg); box-shadow: none;
}
html.tbc-phone.tbc-menu-open .tbc-nav .tbc-menu > a,
html.tbc-phone.tbc-menu-open .tbc-nav .tbc-has > button { height: 54px; font-size: 18px; border-radius: 12px }
html.tbc-phone.tbc-menu-open .tbc-nav .tbc-has > button { width: 100% }
/* the four tools are simply listed under Free tools here: its open state is not painted */
html.tbc-phone.tbc-menu-open .tbc-nav .tbc-has.tbc-open:not(.tbc-on) > button:not(:hover) { background: none; color: var(--tbc-text) }
html.tbc-phone.tbc-menu-open .tbc-nav .tbc-menu > a > img { height: 34px }
html.tbc-phone.tbc-menu-open .tbc-nav .tbc-has > button .tbc-caret { display: none }
html.tbc-phone.tbc-menu-open .tbc-nav .tbc-drop {
  position: static; transform: none; width: auto; grid-template-columns: 1fr; gap: 2px;
  padding: 0 0 0 12px; background: none; border: 0; box-shadow: none;
}
/* the page behind the open phone menu does not scroll */
html.tbc-menu-open,
html.tbc-menu-open body { overflow: hidden }

html.tbc-phone .tbc-footer { width: calc(100% - 36px); margin-top: 56px; padding: 36px 0 40px }
html.tbc-phone .tbc-footer .tbc-ft-top { grid-template-columns: 1fr; gap: 28px }
/* two columns on a phone, all five on a wide window still in the phone layout (up to PHONE_MAX) */
html.tbc-phone .tbc-footer .tbc-ft-cols { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px }
html.tbc-phone .tbc-footer .tbc-ft-bot { flex-direction: column; gap: 8px; margin-top: 32px }

/* the tool's header line: the promo under the sentence, its button under its text when they do not fit */
html.tbc-phone .tbc-toolhead {
  flex-direction: column; align-items: flex-start; padding: 14px 16px 12px;
  margin-top: calc(var(--tbc-chrome-h, 56px) / var(--tbc-nav-scale, 1));
}
html.tbc-phone .tbc-toolhead h1 { font-size: 26px }
html.tbc-phone .tbc-toolhead .tbc-th-promo { flex-wrap: wrap; padding: 12px; border-radius: 14px }

/* ================= a translated tool page (website translation, part 3b) =================
   Only a page that opted in (site-chrome.js i18nPage) has the bar's first column (.tbc-start) with the flag button
   and its list: a translated tool page, and since part 4 every Next.js page. A page in another language carries it
   on <html>: dir="rtl" for Arabic, lang="ar" for its letters; that is a translated tool page or a Next.js language
   page (/ar/, /ja/...), and app/[lang]/languages.css adds the language pages' own rules. An English page, tool or
   Next.js, matches none of the html[lang] and html[dir] rules below. They come last, so that among rules of the same
   weight they win where they mean to. */

/* the time zone and the flag button share the bar's first column */
.tbc-nav .tbc-start { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: 8px }
.tbc-nav .tbc-lang { position: relative; flex: none }
.tbc-nav .tbc-langbtn {
  display: flex; align-items: center; justify-content: center; padding: 9px 11px; line-height: 0; cursor: pointer;
  background: var(--tbc-surface-2); border: 1px solid var(--tbc-border); border-radius: 999px;
}
.tbc-nav .tbc-langbtn:hover,
.tbc-nav .tbc-langbtn[aria-expanded="true"] { border-color: var(--tbc-gold) }
/* the drawn flags (the runtime's _tbcFlagSvg), as the portal's bar shows them */
.tbc-nav .tbc-flag { display: block; flex: none; width: 24px; height: 16px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35) }
.tbc-nav .tbc-langlist {
  position: absolute; left: 0; top: calc(100% + 8px); width: 240px; padding: 6px;
  max-height: min(520px, calc(100vh / var(--tbc-nav-scale, 1) - 90px)); overflow: auto; overscroll-behavior: contain;
  background: var(--tbc-surface); border: 1px solid var(--tbc-border); border-radius: 12px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .85);
}
.tbc-nav .tbc-langhead { padding: 6px 10px; font: 400 10.5px/1.5 var(--tbc-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tbc-muted) }
.tbc-nav .tbc-langitem {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 8px; text-align: start;
  font-size: 14px; line-height: 1.5; color: var(--tbc-text); cursor: pointer;
}
.tbc-nav .tbc-langitem:hover { background: rgba(200, 152, 99, .16) }
.tbc-nav .tbc-langitem:focus-visible { outline-offset: -2px }
.tbc-nav .tbc-langitem.tbc-current { color: var(--tbc-gold-bright); font-weight: 600 }
/* each name in its own script, isolated, so an Arabic name reads right to left in a list that does not */
.tbc-nav .tbc-langitem [lang] { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: isolate }
.tbc-nav .tbc-langtick { flex: none; visibility: hidden; color: var(--tbc-gold-bright) }
.tbc-nav .tbc-langitem.tbc-current .tbc-langtick { visibility: visible }
.tbc-nav .tbc-langlist[aria-busy="true"] .tbc-langitem { cursor: progress; opacity: .6 }
/* the phone layout: the flag stays in the bar beside the globe; its list hangs from the bar, as the zone list does */
html.tbc-phone .tbc-nav .tbc-lang { position: static }
html.tbc-phone .tbc-nav .tbc-langbtn { padding: 9px }
html.tbc-phone .tbc-nav .tbc-langlist { left: 12px; right: 12px; top: 54px; width: auto; max-width: 400px }

/* right to left (Arabic): the grid, the flex rows and the footer's columns follow dir by themselves; what is placed by
   left or right, aligned left, or padded on one side changes sides here */
html[dir="rtl"] .tbc-chrome { text-align: right }
html[dir="rtl"] .tbc-nav .tbc-tzitem,
html[dir="rtl"] .tbc-toolhead h1,
html[dir="rtl"] .tbc-toolhead p { text-align: right }
html[dir="rtl"] .tbc-nav .tbc-tzlist,
html[dir="rtl"] .tbc-nav .tbc-langlist { left: auto; right: 0 }
html[dir="rtl"] .tbc-nav .tbc-acctmenu { right: auto; left: 0 }
html[dir="rtl"] .tbc-nav .tbc-tzbtn { padding: 8px 12px 8px 14px }
html[dir="rtl"] .tbc-nav .tbc-acctbtn { padding: 5px 6px 5px 14px }
html[dir="rtl"] .tbc-nav .tbc-has > button .tbc-caret,
html[dir="rtl"] .tbc-nav .tbc-acctbtn .tbc-caret { margin: -4px 2px 0 0 }
html[dir="rtl"] .tbc-nav .tbc-menu > a > img { margin-left: 0; margin-right: -6px }
html[dir="rtl"] .tbc-nav .tbc-acctmenu img { margin: -2px -4px -2px 0 }
html[dir="rtl"] .tbc-toolhead .tbc-th-promo { padding: 8px 18px 8px 8px }
html[dir="rtl"].tbc-phone .tbc-nav .tbc-tzlist,
html[dir="rtl"].tbc-phone .tbc-nav .tbc-langlist { left: 12px; right: 12px }
html[dir="rtl"].tbc-phone .tbc-nav .tbc-tzbtn,
html[dir="rtl"].tbc-phone .tbc-nav .tbc-langbtn { padding: 9px }
html[dir="rtl"].tbc-phone .tbc-nav .tbc-acctbtn { padding: 4px 4px 4px 10px }
html[dir="rtl"].tbc-phone .tbc-nav .tbc-acctmenu { right: auto; left: 60px }
html[dir="rtl"].tbc-phone.tbc-menu-open .tbc-nav .tbc-drop { padding: 0 12px 0 0 }
html[dir="rtl"].tbc-phone .tbc-toolhead .tbc-th-promo { padding: 12px }
/* the checkout window's X and its own line (the sign-in window is task 4's) */
html[dir="rtl"] .tbc-modal .tbc-sheet > .tbc-x { right: auto; left: 6px }
html[dir="rtl"] .tbc-modal .tbc-co-slow { padding: 13px 20px 13px 56px; text-align: right }
/* Arabic is written joined: the spaced capitals of the labels are never letter-spaced */
html[lang="ar"] .tbc-nav .tbc-langhead,
html[lang="ar"] .tbc-toolhead .tbc-th-eyebrow,
html[lang="ar"] .tbc-footer .tbc-ft-logo small,
html[lang="ar"] .tbc-footer .tbc-ft-cols h4,
html[lang="ar"] .tbc-footer .tbc-ft-bot span + span { letter-spacing: 0 }
/* Arabic, Chinese, Japanese and Korean in those labels (and the sign-in window's tabs): Geist Mono has none of their
   letters, and what stood in after it drew them in a monospace face on a tool page (Courier New, NSimSun, GulimChe,
   BIZ UDGothic) and, on a Next language page, in next/font's "Geist Mono Fallback" (Arial made 35% bigger). The
   figures and Latin words stay Geist Mono, the script is the system's face: the wiki's choice (tools/game-wiki/i18n.css
   --font-data), on the tool pages and the Next language pages alike. Every other language keeps the token above. */
html[lang="ar"] .tbc-chrome,
html[lang="ar"] .tbc-modal { --tbc-mono: "Geist Mono", system-ui, "Segoe UI", Tahoma, sans-serif }
html:is([lang="ja"], [lang="ko"], [lang="zh-hans"], [lang="zh-hant"]) .tbc-chrome,
html:is([lang="ja"], [lang="ko"], [lang="zh-hans"], [lang="zh-hant"]) .tbc-modal { --tbc-mono: "Geist Mono", system-ui, sans-serif }
/* Their headings (a tool page's h1, the sign-in window's title, the footer's name) in --tbc-display: Fraunces has Latin
   letters only, and --font-fraunces, which a Next language page sets to the language's face (app/[lang]/languages.css),
   is set by nothing on a PHP tool page (web/shared/chrome.php), so there the browser picked a face. The token names the
   language pages' faces outright (the wiki's --font-display too, and never Yu Mincho for Japanese), so a tool page and
   a Next language page draw the heading alike; every other language keeps the token above. */
html[lang="ja"] .tbc-chrome,
html[lang="ja"] .tbc-modal { --tbc-display: "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif CJK JP", serif }
html[lang="ko"] .tbc-chrome,
html[lang="ko"] .tbc-modal { --tbc-display: AppleMyungjo, "Noto Serif KR", "Noto Serif CJK KR", "Malgun Gothic", serif }
html[lang="zh-hans"] .tbc-chrome,
html[lang="zh-hans"] .tbc-modal { --tbc-display: "Songti SC", STSong, "Noto Serif SC", "Noto Serif CJK SC", "Microsoft YaHei", serif }
html[lang="zh-hant"] .tbc-chrome,
html[lang="zh-hant"] .tbc-modal { --tbc-display: "Songti TC", "Noto Serif TC", "Noto Serif CJK TC", "Microsoft JhengHei", serif }
html[lang="ar"] .tbc-chrome,
html[lang="ar"] .tbc-modal { --tbc-display: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, serif }
/* The tool page's own headings, in the same faces: the Academy's --display and the calendar's and Seasonal Kingdoms'
   --font-display, which each page sets to Fraunces on :root (html.tbc-tool[lang] outranks :root whichever stylesheet
   loads last). html.tbc-tool is a PHP tool page with the site's chrome, never a Next page; the wiki (html.on-site) is
   left out, as it sets its own --font-display per language (tools/game-wiki/i18n.css). */
html.tbc-tool[lang="ja"]:not(.on-site) { --display: "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif CJK JP", serif; --font-display: "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif CJK JP", serif }
html.tbc-tool[lang="ko"]:not(.on-site) { --display: AppleMyungjo, "Noto Serif KR", "Noto Serif CJK KR", "Malgun Gothic", serif; --font-display: AppleMyungjo, "Noto Serif KR", "Noto Serif CJK KR", "Malgun Gothic", serif }
html.tbc-tool[lang="zh-hans"]:not(.on-site) { --display: "Songti SC", STSong, "Noto Serif SC", "Noto Serif CJK SC", "Microsoft YaHei", serif; --font-display: "Songti SC", STSong, "Noto Serif SC", "Noto Serif CJK SC", "Microsoft YaHei", serif }
html.tbc-tool[lang="zh-hant"]:not(.on-site) { --display: "Songti TC", "Noto Serif TC", "Noto Serif CJK TC", "Microsoft JhengHei", serif; --font-display: "Songti TC", "Noto Serif TC", "Noto Serif CJK TC", "Microsoft JhengHei", serif }
html.tbc-tool[lang="ar"]:not(.on-site) { --display: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, serif; --font-display: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, serif }
/* The Troop Calculator's opening (web/troops/troops-demo.css .tbc-calc-open, on that page only, in place of the chrome's
   header line) names Fraunces on its h1 itself, so there is no token to set: the face goes on the heading. html[lang]
   outranks the page's own rule whichever stylesheet loads last. */
html[lang="ja"] .tbc-calc-open h1 { font-family: "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif CJK JP", serif }
html[lang="ko"] .tbc-calc-open h1 { font-family: AppleMyungjo, "Noto Serif KR", "Noto Serif CJK KR", "Malgun Gothic", serif }
html[lang="zh-hans"] .tbc-calc-open h1 { font-family: "Songti SC", STSong, "Noto Serif SC", "Noto Serif CJK SC", "Microsoft YaHei", serif }
html[lang="zh-hant"] .tbc-calc-open h1 { font-family: "Songti TC", "Noto Serif TC", "Noto Serif CJK TC", "Microsoft JhengHei", serif }
html[lang="ar"] .tbc-calc-open h1 { font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, serif }
/* Arabic letters join: the header line's -.01em, slight as it is, comes off its h1, as it does on the Next pages (the
   calculator's own stylesheets take it off its opening's h1) */
html[lang="ar"] .tbc-toolhead h1 { letter-spacing: 0 }
html[lang="ar"] .tbc-modal .tbc-si .tbc-si-h { letter-spacing: 0 }

/* ---- every language's words fitting (website translation part 3b, task 8): html[lang] other than "en" is on a
   translated tool page or a Next.js language page, so no English page matches these ---- */
/* a long word in the footer's narrow columns or the Free tools drop-down ("Nutzungsbedingungen",
   "Evenementenkalender") breaks, with a hyphen where the browser knows the language, instead of running out of its column */
html[lang]:not([lang="en"]) .tbc-footer .tbc-ft-cols h4,
html[lang]:not([lang="en"]) .tbc-footer .tbc-ft-cols a,
html[lang]:not([lang="en"]) .tbc-nav .tbc-drop b { hyphens: auto; overflow-wrap: anywhere }
/* the zone list a little wider on the wide bar: a country's own name with the English name it was found by
   ("Vereinigte Staaten · Ostküstenzeit · United States (UTC-5)") on one line */
html[lang]:not([lang="en"]):not(.tbc-phone) .tbc-nav .tbc-tzlist { width: 400px }
/* the zone's name in Chinese, Japanese or Korean: its letters come from the system's face (Noto Sans JP, Malgun Gothic...),
   whose normal line is 20 px at 14 px where Geist's is 18, so the zone's button stood 38 px tall beside the 36 px flag
   button and Sign in's row (chrome-dom.check.mjs on /ja/, /ko/). Geist's 18 px line, the height English has */
html:is([lang="ja"], [lang="ko"], [lang="zh-hans"], [lang="zh-hant"]) .tbc-nav [data-tbc-tz-label] { line-height: 18px }
/* the wide bar at its narrowest: a longer menu (Russian, Ukrainian, Polish, Norwegian...) takes less room, so the
   zone's and the account's names keep about what English's keep and nothing passes the screen's edge; under 1200 px the
   menu's crests also step aside and Sign in is narrower */
@media (max-width: 1439px) {
  html[lang]:not([lang="en"]):not(.tbc-phone) .tbc-nav .tbc-menu > a,
  html[lang]:not([lang="en"]):not(.tbc-phone) .tbc-nav .tbc-has > button { gap: 6px; padding: 0 11px; font-size: 14px }
}
@media (max-width: 1199px) {
  html[lang]:not([lang="en"]):not(.tbc-phone) .tbc-nav .tbc-menu > a,
  html[lang]:not([lang="en"]):not(.tbc-phone) .tbc-nav .tbc-has > button { padding: 0 10px; font-size: 13.5px }
  html[lang]:not([lang="en"]):not(.tbc-phone) .tbc-nav .tbc-menu > a > img { display: none }
  html[lang]:not([lang="en"]):not(.tbc-phone) .tbc-nav .tbc-signin { padding: 9px 18px }
}
/* the sign-in window, right to left: its X at the top left (as the checkout window's), the code's six digits read
   left to right, centred; its tabs' and links' spaced capitals never letter-spaced in Arabic (Arabic letters join) */
html[dir="rtl"] .tbc-modal .tbc-si .tbc-x { right: auto; left: 14px }
/* right to left: an account's name cut short on the wide bar keeps its own start (a Latin name "Boom Chests · BIG Bo...",
   never "...om Chests · BIG Boom"; an Arabic name from the right, as before) */
html[dir="rtl"] .tbc-nav .tbc-nm { unicode-bidi: plaintext }
html[dir="rtl"] .tbc-modal .tbc-si .tbc-si-code { direction: ltr }
html[lang="ar"] .tbc-modal .tbc-si-tabs button,
html[lang="ar"] .tbc-modal .tbc-si-foot button { letter-spacing: 0 }
