/* ─── StackHQ demo mode chrome ────────────────────────────────────────────
 * Loaded by index.php when the visitor has no active licence, and by the free
 * page (free_page.php). Styled to sit inside the existing RPG theme (parchment
 * + gold) rather than looking like a bolted-on paywall. Right to left: the
 * html[dir="rtl"] rules at the end.
 */

/* Slim persistent ribbon, directly under the portal nav. Deliberately not a
   blocking overlay: the tool IS the pitch, so it must stay visible. */
#tbcDemoRibbon {
  position: fixed;
  top: var(--tbc-navbar-h, 52px);
  left: 0;
  right: 0;
  z-index: 2147483598;          /* under the portal bar + its mobile panel */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(180deg, rgba(60,36,10,0.97), rgba(38,22,5,0.97));
  border-bottom: 1px solid var(--gold-dk, #8a6a2f);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
}
#tbcDemoRibbon .tbc-demo-tag {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--gold, #f0c75e);
  border-radius: 3px;
  color: var(--gold, #f0c75e);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}
#tbcDemoRibbon .tbc-demo-copy { color: #e7d9b4; }
#tbcDemoRibbon .tbc-demo-cta {
  padding: 0.3rem 0.9rem;
  background: linear-gradient(180deg, #f6d97e, #d8a83f);
  color: #2a1a05;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
#tbcDemoRibbon .tbc-demo-cta:hover { filter: brightness(1.07); }

/* The ribbon is fixed, so the page content has to clear it. */
body { padding-top: calc(var(--tbc-navbar-h, 52px) + var(--tbc-demo-ribbon-h, 44px)) !important; }

/* Feature card - the actual pitch, next to the numbers. */
#tbcDemoCard {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(180deg, rgba(50,30,10,0.9), rgba(30,18,4,0.96));
  border: 1px solid var(--gold-dk, #8a6a2f);
  border-left: 3px solid var(--gold, #f0c75e);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(240,199,94,0.14), 0 4px 14px rgba(0,0,0,0.5);
}
#tbcDemoCard .tbc-demo-card-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-dk, #8a6a2f);
  border-radius: 8px;
  background: rgba(240,199,94,0.08);
  color: var(--gold, #f0c75e);
  font-size: 1.2rem;
}
#tbcDemoCard h3 {
  margin: 0 0 0.4rem;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--gold, #f0c75e);
}
#tbcDemoCard p {
  margin: 0 0 0.6rem;
  color: #ded0ad;
  font-size: 0.88rem;
  line-height: 1.55;
}
#tbcDemoCard strong { color: #f7e9c2; }
#tbcDemoCard ul {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
  color: #cdbf9c;
  font-size: 0.84rem;
  line-height: 1.7;
}
#tbcDemoCard .tbc-demo-card-cta {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: linear-gradient(180deg, #f6d97e, #d8a83f);
  color: #2a1a05;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
#tbcDemoCard .tbc-demo-card-cta:hover { filter: brightness(1.07); }
#tbcDemoCard .tbc-demo-card-note {
  margin-left: 0.7rem;
  color: #a2946f;
  font-size: 0.78rem;
}

@media (max-width: 620px) {
  #tbcDemoCard { flex-direction: column; gap: 0.75rem; }
  #tbcDemoRibbon { font-size: 0.78rem; }
  body { padding-top: calc(var(--tbc-navbar-h, 52px) + 64px) !important; }
}

/* ─── Inside the site (free_page.php's chrome: free.php?chrome=1, /troops-calculator/) ───
   The site's bar is fixed at the top and the ribbon right under it (--tbc-navbar-h follows the
   bar's height), and the body's top padding clears both, so the tool's header line needs no top
   margin of its own. The ribbon goes under the bar, whose drop-downs open over it. */
html body > .tbc-chrome.tbc-toolhead { margin-top: 0; }
html.tbc-has-nav #tbcDemoRibbon { z-index: 50; }

/* The calculator's fixed Copy All button (30 px from the bottom, about 52 px tall, above the bar's
   z-index) stays off the site's phone menu while it is open (the calculator sets its display inline,
   hence !important), and the footer ends 48 page px lower, so its last line is never under it. */
html.tbc-has-nav.tbc-menu-open #copyAllBtn { display: none !important; }
body > .tbc-chrome.tbc-footer { margin-bottom: calc(48px / var(--tbc-nav-scale, 1)); }

/* Under the calculator: the bonuses video and the page's questions, in the
   calculator's own panels and fonts. On a phone the page is laid out 820 px wide and shown zoomed
   out, so the section is enlarged by the bar's own scale (as the site's footer is) and its grids
   then fall to one column; its side padding is divided by that scale, so its panels keep the
   calculator's edges (.page: 1400 px, 2rem). */
.tbc-calc-more {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 calc(2rem / var(--tbc-nav-scale, 1));
  zoom: var(--tbc-nav-scale, 1);
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--tbc-text, #f3eee0);
}
.tbc-calc-part {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.75rem 1.75rem;
  background: rgba(19, 19, 22, 0.60);
  border: 1px solid var(--tbc-border, rgba(200, 152, 99, 0.12));
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 40px -24px rgba(0, 0, 0, 0.8);
}
html.tbc-phone .tbc-calc-part { padding: 1.25rem 1.1rem 1.4rem; }
.tbc-calc-more h2 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--tbc-border-strong, rgba(200, 152, 99, 0.28));
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-hi, #e0b97a);
}
.tbc-calc-lead {
  max-width: 46ch;
  margin: 0 0 1.1rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--tbc-muted, #a8a193);
}
/* The bonuses video: its words beside it on a wide page, above it on a narrow one. The picture is a
   frame of the video kept in this folder; troops-demo.js puts the player in its place on a press. */
.tbc-calc-bonuses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem 2.5rem;
  align-items: center;
}
.tbc-calc-video-name {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tbc-text, #f3eee0);
}
.tbc-calc-video-name span {
  display: block;
  margin-top: 0.2rem;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--tbc-muted, #a8a193);
}
.tbc-calc-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--tbc-border-strong, rgba(200, 152, 99, 0.28));
  border-radius: 8px;
  background: #0c0c0e;
}
.tbc-calc-video { position: absolute; inset: 0; display: block; }
.tbc-calc-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.tbc-calc-video:hover img,
.tbc-calc-video:focus-visible img { opacity: 1; }
.tbc-calc-video:focus-visible { outline: 2px solid var(--gold-hi, #e0b97a); outline-offset: -2px; }
.tbc-calc-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-hi, #e0b97a), var(--gold, #c89863));
  box-shadow: 0 12px 40px -10px rgba(200, 152, 99, 0.7);
}
.tbc-calc-play::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 20px;
  border-left: 19px solid #1a1208;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.tbc-calc-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tbc-calc-faq { margin: 0; }
.tbc-calc-qa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.35rem 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--tbc-border-soft, rgba(255, 255, 255, 0.07));
}
.tbc-calc-qa:first-child { border-top: 0; padding-top: 0.25rem; }
.tbc-calc-qa dt {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--tbc-text, #f3eee0);
}
.tbc-calc-qa dd {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--tbc-muted, #a8a193);
}

/* The free page's locked presets (troops-demo.js, Preset 2 and Preset 3): shown in the bar, dimmed,
   with a padlock, and not to be opened; the hover does not lift them. */
.preset-tab.tbc-preset-locked,
.preset-tab.tbc-preset-locked:hover {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(180deg, var(--parchment), var(--parchment-dk));
  border-color: var(--gold-dk);
}
.preset-tab.tbc-preset-locked .preset-tab-name::before {
  content: "\f023";
  margin-right: 0.45em;
  font-family: "Font Awesome 6 Free";
  font-size: 0.8em;
  font-weight: 900;
}

/* ─── The free page sells the TBCounter app (free_page.php, Barak 2026-11-19) ───
   Only the free page writes these classes (and #tbcDemoCard inside .tbc-calc-more), so the paid page's demo is
   untouched. The opening takes the place of the chrome's tool head and is drawn like it, in the chrome's fonts
   (loaded by free_page.php); it keeps the calculator's edges (.page: 1400 px, 2rem) and, on a phone (the page laid
   out 820 px wide and shown zoomed out), is enlarged by the bar's own scale as .tbc-calc-more is. */
.tbc-calc-open {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px calc(2rem / var(--tbc-nav-scale, 1)) 6px;
  zoom: var(--tbc-nav-scale, 1);
  box-sizing: border-box;
  font-family: "Geist", "Segoe UI", sans-serif;
  color: #f3eee0;
  -webkit-font-smoothing: antialiased;
}
.tbc-calc-open *, .tbc-calc-open *::before, .tbc-calc-open *::after { box-sizing: border-box; }
.tbc-calc-open-text { flex: 1 1 560px; min-width: 0; max-width: 760px; }
.tbc-calc-open p, .tbc-calc-open h1 {
  margin: 0; padding: 0; border: 0; background: none;
  text-align: start; text-transform: none; text-shadow: none; font-style: normal;
}
.tbc-calc-open .tbc-calc-eyebrow {
  margin-bottom: 10px;
  font: 400 12px/1.5 "Geist Mono", Consolas, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c89863;
}
.tbc-calc-open h1 { font: 500 42px/1.08 "Fraunces", Georgia, serif; letter-spacing: -.01em; color: #f3eee0; }
.tbc-calc-open .tbc-calc-intro { margin-top: 12px; max-width: 64ch; font: 400 16.5px/1.6 "Geist", "Segoe UI", sans-serif; color: #cfc8b8; }
.tbc-calc-open-cta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; }
.tbc-calc-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tbc-calc-open .tbc-calc-note { margin-top: 10px; }
/* The notice for the old troop.tbcounter.com's visitors: a slim box across the opening. */
.tbc-calc-notice {
  flex: 1 0 100%;
  padding: 10px 16px;
  border: 1px solid rgba(200, 152, 99, .22);
  border-inline-start: 3px solid #c89863;
  border-radius: 10px;
  background: rgba(19, 19, 22, .7);
}
.tbc-calc-open .tbc-calc-notice p { font: 400 14.5px/1.5 "Geist", "Segoe UI", sans-serif; color: #e0dac9; }

/* The site's gold button (the chrome's .tbc-th-btn, a size larger) and its outlined second. */
.tbc-calc-btn {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid rgba(224, 185, 122, .5);
  border-radius: 999px;
  background: #c89863;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 30px -12px rgba(200, 152, 99, .5);
  font: 600 15px/1.5 "Geist", "Segoe UI", sans-serif;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s;
}
.tbc-calc-btn:link, .tbc-calc-btn:visited, .tbc-calc-btn:hover, .tbc-calc-btn:focus, .tbc-calc-btn:active { color: #1a1208; text-decoration: none; }
.tbc-calc-btn:hover { background: #e0b97a; }
.tbc-calc-btn:focus-visible { outline: 2px solid #e0b97a; outline-offset: 2px; }
.tbc-calc-btn.tbc-calc-btn-alt { background: rgba(19, 19, 22, .6); border-color: rgba(200, 152, 99, .45); box-shadow: none; }
.tbc-calc-btn.tbc-calc-btn-alt:link, .tbc-calc-btn.tbc-calc-btn-alt:visited, .tbc-calc-btn.tbc-calc-btn-alt:hover,
.tbc-calc-btn.tbc-calc-btn-alt:focus, .tbc-calc-btn.tbc-calc-btn-alt:active { color: #f3eee0; }
.tbc-calc-btn.tbc-calc-btn-alt:hover { background: rgba(200, 152, 99, .14); }
.tbc-calc-note { font: 400 13px/1.5 "Geist", "Segoe UI", sans-serif; color: #a8a193; }
.tbc-calc-btn + .tbc-calc-note { margin-inline-start: 14px; }
.tbc-calc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }

/* The Auto Stacker card, right after the calculator: the paid demo's card (#tbcDemoCard above), its words larger. */
.tbc-calc-more #tbcDemoCard { align-items: center; margin: 0 0 1.5rem; padding: 1.4rem 1.6rem; }
.tbc-calc-more #tbcDemoCard h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.tbc-calc-more #tbcDemoCard p { max-width: 70ch; margin-bottom: 1rem; font-size: 1.1rem; }
html.tbc-phone .tbc-calc-more #tbcDemoCard { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.25rem 1.1rem; }

/* What the app adds: a table on a wide page; on a phone each row stacks, its cells naming their column. */
.tbc-calc-compare {
  width: 100%;
  margin: 0.25rem 0 1.4rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}
.tbc-calc-compare th, .tbc-calc-compare td {
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--tbc-border-soft, rgba(255, 255, 255, .07));
  text-align: start;
  vertical-align: top;
}
.tbc-calc-compare thead th {
  border-top: 0;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tbc-muted, #a8a193);
}
.tbc-calc-compare thead th:last-child { color: var(--gold-hi, #e0b97a); background: rgba(200, 152, 99, .14); border-radius: 8px 8px 0 0; }
.tbc-calc-compare tbody th { width: 22%; font-weight: 600; color: var(--tbc-text, #f3eee0); }
.tbc-calc-compare td { width: 22%; color: var(--tbc-muted, #a8a193); }
.tbc-calc-compare td:last-child { width: auto; color: var(--tbc-text, #f3eee0); background: rgba(200, 152, 99, .07); }
.tbc-calc-compare tbody tr:last-child td:last-child { border-radius: 0 0 8px 8px; }
.tbc-calc-compare td i { margin-inline-end: 0.6em; font-size: 0.85em; color: var(--gold-hi, #e0b97a); }
html.tbc-phone .tbc-calc-compare, html.tbc-phone .tbc-calc-compare tbody { display: block; }
html.tbc-phone .tbc-calc-compare thead { display: none; }
html.tbc-phone .tbc-calc-compare tr {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 0.4rem 0.6rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--tbc-border-soft, rgba(255, 255, 255, .07));
}
html.tbc-phone .tbc-calc-compare tbody tr:first-child { border-top: 0; padding-top: 0.2rem; }
html.tbc-phone .tbc-calc-compare th, html.tbc-phone .tbc-calc-compare td { width: auto; border: 0; }
html.tbc-phone .tbc-calc-compare tbody th { grid-column: 1 / -1; padding: 0; }
html.tbc-phone .tbc-calc-compare td { padding: 0.5rem 0.7rem; border-radius: 6px; }
html.tbc-phone .tbc-calc-compare tbody tr:last-child td:last-child { border-radius: 6px; }
html.tbc-phone .tbc-calc-compare td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.15rem;
  font: 400 11px/1.5 "Geist Mono", Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tbc-muted, #a8a193);
}

/* The closing band before the footer. */
.tbc-calc-close {
  padding: 2.6rem 1.75rem 2.8rem;
  text-align: center;
  border-color: rgba(200, 152, 99, .35);
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 152, 99, .18), rgba(19, 19, 22, .6) 70%);
}
.tbc-calc-more .tbc-calc-close h2 { padding: 0; border: 0; font-size: 1.7rem; margin-bottom: 0.6rem; }
.tbc-calc-close p { max-width: 52ch; margin: 0 auto 1.4rem; font-size: 1.15rem; line-height: 1.55; color: var(--tbc-muted, #a8a193); }
.tbc-calc-close .tbc-calc-btn { padding: 13px 28px; font-size: 16px; }

html.tbc-phone .tbc-calc-open { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 18px; }
html.tbc-phone .tbc-calc-open-text { flex: none; }
html.tbc-phone .tbc-calc-open h1 { font-size: 32px; }
html.tbc-phone .tbc-calc-open .tbc-calc-intro { font-size: 15.5px; }

/* ─── Right to left (Arabic: html dir="rtl", website translation part 3e) ───
   The three boxes this stylesheet places by left and right, mirrored: the card's gold edge (#tbcDemoCard, the paid
   demo's and the free page's), its bullets' indent, the gap before "Cancel anytime.". The rules above are English's and
   stay as they are; these match a right-to-left page only. The padlock on a locked tab has none: its glyph (Font
   Awesome, a private-use character) runs left to right with the English preset name, so it stays on the name's left
   with its gap on its right, as in English. The video's play triangle
   (.tbc-calc-play::after) points right in every language, so it has none; the rest is centred, logical (inline-start /
   end, text-align: start) or flex and grid, which follow the page's direction by themselves. */
html[dir="rtl"] #tbcDemoCard {
  border-left: 1px solid var(--gold-dk, #8a6a2f);
  border-right: 3px solid var(--gold, #f0c75e);
}
html[dir="rtl"] #tbcDemoCard ul { padding-left: 0; padding-right: 1.1rem; }
html[dir="rtl"] #tbcDemoCard .tbc-demo-card-note { margin-left: 0; margin-right: 0.7rem; }

/* ─── A help text stays on the screen (the free page in English, 2026-11-19) ───
   The calculator centres each help text (.tooltip-text, 495 px, hidden until its icon is hovered) under its icon. In
   English five left the screen: the third input panel's (Extra Bonuses) ran 55 px past the right edge at 1440 px and
   laid the whole page out 1495 px wide; the first input panel's was cut off on the left from 1101 to 1366 px, and
   Kill Order's, Category Order's and Expected Damage's at 1100 and on a phone, where Category Order's also widened the
   page by a pixel. These place them as troops-i18n.css does on a translated page (which therefore has none of this):
   the outer two input panels' open inwards with their arrow under the icon while the three panels are side by side;
   the other three hang from their title's own box, Kill Order's from
   its start and the column's two from their end, without the arrow (it could not point at the icon). English only
   (html[lang="en"]) and the free page only (it alone writes .tbc-calc-more; the paid page's demo also loads this
   file); every other help text is where it was. */
html[lang="en"]:has(.tbc-calc-more) :is(#killOrderSection > h2, .kill-order-categories > h3, .expected-damage-head) {
  position: relative;
}
html[lang="en"]:has(.tbc-calc-more) :is(#killOrderSection > h2, .kill-order-categories > h3, .expected-damage-head) .tooltip-wrapper {
  position: static;
}
html[lang="en"]:has(.tbc-calc-more) #killOrderSection > h2 .tooltip-text {
  top: calc(100% + 8px); left: 0; right: auto; transform: none;
}
html[lang="en"]:has(.tbc-calc-more) :is(.kill-order-categories > h3, .expected-damage-head) .tooltip-text {
  top: calc(100% + 8px); left: auto; right: 0; transform: none;
}
html[lang="en"]:has(.tbc-calc-more) :is(#killOrderSection > h2, .kill-order-categories > h3, .expected-damage-head) .tooltip-text::after {
  display: none;
}
@media (min-width: 1101px) {
  html[lang="en"]:has(.tbc-calc-more) .input-section:first-child h2 .tooltip-text { left: -12px; right: auto; transform: none; }
  html[lang="en"]:has(.tbc-calc-more) .input-section:first-child h2 .tooltip-text::after { left: 15px; right: auto; transform: none; }
  html[lang="en"]:has(.tbc-calc-more) .input-section:last-child h2 .tooltip-text { left: auto; right: -12px; transform: none; }
  html[lang="en"]:has(.tbc-calc-more) .input-section:last-child h2 .tooltip-text::after { left: auto; right: 15px; transform: none; }
}

/* ─── The free page in the other languages (website translation part 3e, task 5) ───
   Looked at in all 19 languages at 1440, 1100 and 390 px (a phone lays the page out 820 px wide and shows it zoomed
   out). Each rule names a translated page (only a translated page says another language: English and the plain page
   say lang="en") or a right-to-left one, so English is drawn by the rules above alone.
   - A trial button keeps its words on one line where they fit, as in English, and wraps them inside its pill where they
     do not: on a phone the closing band's larger button ("Начать 7-дневный бесплатный период", "Почати 7-денний
     безкоштовний період") was wider than its panel and laid the whole page out wider than the screen; in French and
     Norwegian it ran into the panel's padding, off centre. A label that wraps is balanced over its lines (no word
     alone on the second), and on a phone the closing button's sides are 8 px narrower, so French and Norwegian keep
     theirs on one line.
   - The closing band's title on a phone: a compound word on a line of its own ("TROPPEKALKULATOREN",
     "TROEPENCALCULATOR", "TRUPPKALKYLATORN") was wider than the panel at 1.7rem with 1.5px between its letters, and
     pushed the page wider. A size smaller and tighter there (still the largest title of the section); a word that is
     still too long breaks rather than leave its panel. */
html[lang]:not([lang="en"]) .tbc-calc-btn { max-width: 100%; white-space: normal; text-align: center; text-wrap: balance; }
html[lang]:not([lang="en"]).tbc-phone .tbc-calc-close .tbc-calc-btn { padding-left: 20px; padding-right: 20px; }
html[lang]:not([lang="en"]) .tbc-calc-more h2 { overflow-wrap: break-word; }
html[lang]:not([lang="en"]).tbc-phone .tbc-calc-more .tbc-calc-close h2 { font-size: 1.4rem; letter-spacing: 0.5px; }
/* Arabic in the two monospace spots (the opening's eyebrow, the phone table's column names): Geist Mono has no Arabic,
   and the monospace face that stood in drew every letter in a cell of its own, the words stretched apart. The
   system's face draws them joined, as on the Research page (part 3d); TBCOUNTER stays Geist Mono. */
html[dir="rtl"] .tbc-calc-open .tbc-calc-eyebrow,
html[dir="rtl"] .tbc-calc-compare td::before { font-family: "Geist Mono", system-ui, sans-serif; }
