/* What the site adds to the two Hebrew pages (on top of he.css): the legal block that every page of the site carries (English text, left to right).
   Logical properties only, no letter-spacing. */
.legal-wrap{margin-block-start:24px;padding-block:20px 8px;border-block-start:1px solid var(--line);color:var(--muted);font-size:14px}
.legal-foot{display:grid;gap:8px;justify-items:start;margin-block-start:12px}
.legal-foot p{margin:0}
.legal-foot a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.footer__inline{display:flex;flex-wrap:wrap;gap:0 20px;list-style:none;margin:0;padding:0}
.footer__inline a,.legal-foot__langs a{display:inline-flex;align-items:center;min-block-size:44px}
.footer__withdraw{display:inline-flex;align-items:center;min-block-size:44px;padding-inline:16px;border:1px solid currentColor;border-radius:10px;font-weight:700;text-decoration:none!important}
.sim-page .legal-foot a{color:var(--ink)}
.calc-page .legal-foot a{color:var(--brand)}
.calc-page .legal-wrap,.calc-page .footer .legal-foot{color:var(--muted-d)}
.calc-page .footer__withdraw{background:#fff;color:var(--brand)}
.sim-page .legal-foot .footer__withdraw{background:transparent;color:var(--ink)}
/* (v4.3) the row with the language switcher: one row at the end of the line, 44 px high. The switcher's own rules (src/l10n/langsw.css) are appended to this file by build.mjs. */
.topbar{display:flex;justify-content:flex-end;align-items:center;padding-block:8px 0}
.calc-page .nav__inner{gap:4px 12px;flex-wrap:wrap}
.calc-page .logo{display:inline-block;min-block-size:44px;line-height:44px}   /* UX audit C8: the brand link is a stand-alone link, 44 px tall like the switcher beside it (it was 29 to 32 px). The bar does not change where the switcher shares its row (it is 44 px tall already); where the switcher wraps under the logo (320 px, Indonesian and Brazilian) the logo row is 15 px taller, and no hit area meets another. Not a flex box: the markup is "CFO <i>Brain</i>" with a plain space, which a flex container would drop */
.calc-page .nav__end{display:flex;align-items:center;gap:12px;min-inline-size:0;margin-inline-start:auto}
@media (max-width:559px){.calc-page .nav__end .t-small{display:none}}
/* onyx and gold skin (spec section 8). he.css is byte-locked (tests/tools.mjs A6), so its colours are re-set here, after it: the same variable block and the same page-scoped overrides as src/l10n/l10n.css.
   --blue is the focus ring and the slider accent; --blue-strong is the fill of the three buttons with a literal white text, so those rules set their text colour too. State colours stay (--green --amber --red --ok, .verdict.*, .chip[aria-pressed], .sw.*, .wk__bar i, .kpi-l.main, .badge, .testbar). */
:root{--navy:#0B0C0E; --panel:#15171B; --panel2:#1B1E23; --line:rgba(239,236,230,.12); --ink:#EFECE6; --muted:#BDB8AE;
  --paper:#FBF9F4; --card:#FFFFFF; --ink-d:#2A271E; --muted-d:#5E5A50; --line-d:#E5DECB; --brand:#0B0C0E;}
.sim-page{--blue:#EFECE6; --blue-strong:#D4AF37}
.calc-page{--blue:#0B0C0E}
.sim-page .seg button[aria-pressed="true"]{background:#EFECE6;color:#0B0C0E}
.sim-page .abtn.primary,.sim-page .sheet .row .go{background:#D4AF37;border-color:#D4AF37;color:#0B0C0E}
.sim-page .actionbar{background:rgba(11,12,14,.96)}
.sim-page #chart circle[stroke="#0D1B2F"]{stroke:var(--panel)}
.sim-page .toast{--blue:#0B0C0E}
.sim-page .mark rect{fill:#0B0C0E}
.sim-page .mark circle{stroke:#0B0C0E}
.calc-page .logo i,.calc-page .eyebrow,.calc-page .btn--ghost{color:#755C14}
.calc-page .explain{background:#F5F1E8}
.calc-page .wk__bar{background:#EDE8DA}
.input,.select{border-color:#857F6C}
@media(max-width:639px){.badge,.chip-sub{font-size:13px}}   /* UX audit C13: the two 12.5 px labels of the language pages are 13 px on a phone (nothing else here changes; from 640 px they stay 12.5 px). The 13-week bar strip keeps its 10 and 11 px cells: it scrolls sideways. */

@media(max-width:479px){.bkpis{grid-template-columns:minmax(0,1fr)}.bkpis .kpi-l{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:baseline;column-gap:12px}}   /* three boxes side by side are 109 px wide at 375 px: "Rp 249.000.000", "₫1.500.000.000" or "₩84,000,000" did not fit and pushed the page sideways (id, ko, vi at 375; ja, ms too at 320). Below 480 px they stack, label and amount on one line. Same rule in he/he-site.css. */

/* The language switcher (src/l10n/switcher.mjs). One component on every page: the English pages (header and the phone menu), the Hebrew pages and every language page.
   A <details> element: it opens and closes with no JavaScript (the file langsw.js, or the same lines inside site.js, adds Escape, a click outside and one-open-at-a-time).
   Logical properties only (no physical sides) and no added tracking: the same rules serve a page that reads right to left.
   Colours come from custom properties; the English pages use the site's design tokens, the two raw page types set their own below. 44 px targets, a visible focus ring, no movement of the page when it opens
   (the panel is positioned over the page), a calm 3-column grid on a wide screen and 2 columns down to 320 px. */
.langsw{position:relative;font-size:15px;line-height:1.25;--ls-fg:var(--text,#0A1628);--ls-muted:var(--text-muted,#5A6478);--ls-line:var(--border-strong,#D5D1C5);--ls-bg:transparent;--ls-hover:var(--ghost-hover-bg,#E6F6EF);
  --ls-panel:var(--surface,#fff);--ls-panel-line:var(--border,#E6E3DB);--ls-sel-bg:var(--success-bg,#E6F6EF);--ls-sel-fg:var(--success-fg,#00734C);--ls-accent:var(--action,#00875A);--ls-focus:var(--focus,#00875A)}
.langsw>summary{list-style:none;display:inline-flex;align-items:center;gap:8px;min-block-size:44px;padding-inline:12px 10px;border:1px solid var(--ls-line);border-radius:999px;background:var(--ls-bg);color:var(--ls-fg);
  font:inherit;font-weight:600;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;transition:background-color .15s,border-color .15s}
.langsw>summary::-webkit-details-marker{display:none}
.langsw>summary::marker{content:""}
.langsw>summary:hover{background:var(--ls-hover)}
.langsw>summary:focus-visible{outline:3px solid var(--ls-focus);outline-offset:2px}
.langsw[open]>summary{border-color:var(--ls-accent)}
.langsw__globe,.langsw__chev{flex:none;inline-size:18px;block-size:18px;opacity:.85}
.langsw__chev{inline-size:14px;block-size:14px;transition:transform .18s}
.langsw[open] .langsw__chev{transform:rotate(180deg)}
.langsw__cur{white-space:nowrap}
.langsw__panel{position:absolute;z-index:80;inset-block-start:calc(100% + 8px);inset-inline-end:0;inline-size:min(33rem,calc(100vw - 32px));max-block-size:min(75vh,28rem);overflow:auto;overscroll-behavior:contain;
  padding:8px;border:1px solid var(--ls-panel-line);border-radius:16px;background:var(--ls-panel);color:var(--ls-fg);box-shadow:0 18px 48px rgba(10,22,40,.18),0 4px 12px rgba(10,22,40,.08)}
.langsw__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(7.4rem,1fr));gap:2px}
@media (min-width:600px){.langsw__list{grid-template-columns:repeat(auto-fill,minmax(9.6rem,1fr))}}
.langsw__list a{display:flex;align-items:center;gap:8px;min-block-size:44px;padding:4px 12px;border-radius:10px;color:var(--ls-fg);text-decoration:none;font-weight:500;overflow-wrap:anywhere;direction:inherit;unicode-bidi:isolate}   /* every name lines up with the page's own start edge; each link still carries its language's dir, and the letters keep their own order */
.langsw__list a:hover{background:var(--ls-hover);color:var(--ls-fg)}
.langsw__list a:focus-visible{outline:3px solid var(--ls-focus);outline-offset:-3px}
.langsw__list a[aria-current]{background:var(--ls-sel-bg);color:var(--ls-sel-fg);font-weight:650}
.langsw__list a[aria-current]::after{content:"";flex:none;margin-inline-start:auto;inline-size:6px;block-size:11px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px)}
@media (prefers-reduced-motion:reduce){.langsw>summary,.langsw__chev{transition:none}}
@media (forced-colors:active){.langsw>summary{border-color:ButtonText}.langsw__list a[aria-current]{outline:2px solid Highlight}}
@media print{.langsw{display:none!important}}
/* English header: the globe only (the bar is full) and the name from 1320 px; the switcher hides when the bar turns into the phone menu (the nav is a size container: below 880 px the menu button and the drawer take over) */
.langsw--nav .langsw__cur{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.langsw--nav>summary{padding-inline:11px 9px;gap:6px}
@container (min-width:1320px){.langsw--nav .langsw__cur{position:static;inline-size:auto;block-size:auto;overflow:visible;clip-path:none}.langsw--nav>summary{padding-inline:12px 10px;gap:8px}}
@container (max-width:879px){.langsw--nav{display:none}}
/* English phone menu: a full-width row; the list opens in the flow of the menu (nothing floats over the page) */
.langsw--drawer>summary{display:flex;inline-size:100%;min-block-size:48px;border-radius:var(--r-md,9px);margin-block-start:var(--sp-2,8px)}
.langsw--drawer .langsw__panel{position:static;inline-size:auto;max-block-size:none;margin-block-start:6px;box-shadow:none;border-color:var(--ls-panel-line);padding:6px}
.langsw--drawer .langsw__list{grid-template-columns:repeat(2,minmax(0,1fr))}
.nav__drawer .langsw__list a:not(.btn){min-block-size:44px;padding:4px 12px;font-weight:500}
.nav__drawer .langsw__list a[aria-current]{font-weight:650}
/* the pages of the free tools (raw pages) set their own colours */
.sim-page .langsw{--ls-fg:var(--ink,#F2F5FA);--ls-muted:var(--muted,#A9B3C4);--ls-line:#857F6C;--ls-bg:rgba(255,255,255,.04);--ls-hover:rgba(255,255,255,.09);--ls-panel:var(--panel2,#13284B);--ls-panel-line:rgba(255,255,255,.16);
  --ls-sel-bg:rgba(212,175,55,.14);--ls-sel-fg:#E0C770;--ls-accent:#E0C770;--ls-focus:#EFECE6}
.calc-page .langsw{--ls-fg:var(--ink-d,#0A1628);--ls-muted:var(--muted-d,#4A5568);--ls-line:#857F6C;--ls-bg:#fff;--ls-hover:#F5F1E8;--ls-panel:#fff;--ls-panel-line:var(--line-d,#D9DEE7);
  --ls-sel-bg:#F3EDD9;--ls-sel-fg:#755C14;--ls-accent:#755C14;--ls-focus:#0B0C0E}
.sim-page .langsw__panel,.calc-page .langsw__panel{box-shadow:0 18px 48px rgba(2,8,18,.45),0 4px 12px rgba(2,8,18,.25)}
.calc-page .langsw__panel{box-shadow:0 18px 48px rgba(10,22,40,.18),0 4px 12px rgba(10,22,40,.08)}
