/* Self-hosted Google Fonts (SIL Open Font License 1.1): Heebo, Rubik, Fredoka */
/* Heebo hebrew */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/heebo-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* Heebo latin-ext */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/heebo-latin-ext.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;
}
/* Heebo latin */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/heebo-latin.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;
}
/* Rubik hebrew */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/rubik-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* Rubik latin-ext */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/rubik-latin-ext.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;
}
/* Rubik latin */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/rubik-latin.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;
}
/* Fredoka hebrew */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/fredoka-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* Fredoka latin-ext */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/fredoka-latin-ext.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;
}
/* Fredoka latin */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/fredoka-latin.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;
}

/* ===== Site typography (preview) — one family for Hebrew + Latin. Switch: change --brand-font. ===== */
:root{
  --brand-font:"Fredoka";
  --font-he:var(--brand-font),"Heebo",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --font-ui:var(--font-he);
  --fs-body:16px; --fs-ui:15px; --fs-small:14px; --fs-label:13px;
  --lh-body:1.65;
}
html body{font-family:var(--font-he)!important;font-size:var(--fs-body);line-height:1.6;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html body *:not(code):not(pre):not(kbd):not(samp){font-family:inherit!important}
html body code,html body pre,html body kbd,html body samp{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important}
html body input,html body button,html body select,html body textarea{font-family:var(--font-he)!important}
/* Hebrew: no tracking */
html[dir="rtl"] body *{letter-spacing:normal!important}
/* Reading text on guides >=16px, comfortable line height */
main p:not([class]),main li:not([class]),main dd,main blockquote,
.tip-line,.q-lines,.guide-block>p,.guide-block>ul>li,.guide-block>ol>li{font-size:var(--fs-body);line-height:var(--lh-body)}
.tip-line .tip-line,.q-lines .tip-line{font-size:inherit}
main h1{line-height:1.25} main h2,main h3{line-height:1.35}
/* tables: readable but compact */
main td,main th{line-height:1.5}
/* tabular digits only where numbers line up (tables, prices, card stats) */
td,th,.mc-p,.mc-kv dd,.mc-stats dd,.mc-tip,.mc-gt,[class*="price"]{font-variant-numeric:tabular-nums}
tr.row>td{font-size:15px} tr.row>td.src,.gap-definition,.gap-caution{font-size:14px}
.q-src,main figcaption,.ns-name small{font-size:14px;line-height:1.5}

/* ===== Text alignment: Hebrew RTL start (right); English LTR left. ===== */
/* Content blocks follow the page direction. UI chrome (nav, buttons, badges,
   Discord banner, ads, in-game shop replica) is left untouched. */

html[dir="rtl"] :is(
  p, h1, h2, h3, h4, h5, h6, li, dt, dd, td, th, caption, figcaption,
  blockquote, address, header, footer, article, section, aside,
  .hero, .hero p, .hero h1, .page-hero, .lede, .note, .note p,
  .gap-caution, .gap-definition, .npc-comparison, .npc-comparison p, .npc-comparison h2,
  .q-src, .q-credit, .q-lines, .tip-line, .q-shot figcaption,
  .mc-credit, .mc-credit-in, .mc-sec, .mc-sec p, .mc-mname, .mc-line, .mc-note,
  .site-footer, .site-footer p, .data-note, .my-char-intro, .my-char-summary,
  .empty-market, .search-empty, .site-search-empty, .cnt,
  .rk-num, .rk-txt, .rk-txt h3, .rk-txt li, .cc-tot, .cc-tot div,
  .guide-block, .guide-head, .guide-list, .card, .card h2, .card li,
  .market-table-title, .market-related, .sources, .sp-table, .sp-table caption,
  .kpq-fig figcaption, .msw-fig figcaption, .sp-prose .sp-npc figcaption,
  .ns-table th, .ns-table td, .ns-name, .ns-name small
){
  text-align: right;
}

/* Table cells stay RTL so English <bdi> names sit on the right, not the left.
   Numbers, prices and every cell are right-aligned — not end (which is left in RTL). */
html[dir="rtl"] td,
html[dir="rtl"] th{
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] td.n,
html[dir="rtl"] dialog dd,
html[dir="rtl"] .mc-cost,
html[dir="rtl"] .mc-cnt,
html[dir="rtl"] td,
html[dir="rtl"] th{
  text-align: right !important;
}

/* Hebrew market cards: put the number immediately after the item name on the right,
   instead of pushing it to the far left with space-between. */
html[dir="rtl"] .card li,
html[dir="rtl"] .mc-line,
html[dir="rtl"] .mc-rl,
html[dir="rtl"] .mc-kv>div,
html[dir="rtl"] .mc-stats dl>div{
  justify-content: flex-start;
}

/* Notes and hero lines stay flush with the card/hero content edge. */
html[dir="rtl"] .hero p,
html[dir="rtl"] .hero h1,
html[dir="rtl"] .npc-comparison p,
html[dir="rtl"] .npc-comparison h2,
html[dir="rtl"] .gap-caution,
html[dir="rtl"] .gap-definition,
html[dir="rtl"] .note,
html[dir="rtl"] .note p{
  text-align: right;
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding-inline: 0;
  max-width: none;
}

/* In-game shop replica stays LTR, as in the original .msw styles. */
html[dir="rtl"] .msw,
html[dir="rtl"] .msw *{
  direction: ltr;
  text-align: left !important;
}

/* Intro/footer max-width blocks stay on the RTL start edge, never centered */
html[dir="rtl"] .lede,
html[dir="rtl"] .site-footer p,
html[dir="rtl"] .mc-credit{
  margin-inline-start: 0;
  margin-inline-end: auto;
}

/* English pages: everything content-related is left-aligned, including
   table cells, numbers, prices, card stats, notes and headers. */
html[dir="ltr"] :is(
  p, h1, h2, h3, h4, h5, h6, li, dt, dd, td, th, caption, figcaption,
  blockquote, address, header, footer, article, section, aside, main,
  .hero, .hero p, .hero h1, .page-hero, .lede, .note, .note p,
  .gap-caution, .gap-definition, .npc-comparison, .npc-comparison p, .npc-comparison h2,
  .q-src, .q-credit, .q-lines, .tip-line, .q-shot figcaption,
  .mc-credit, .mc-credit-in, .mc-sec, .mc-sec p, .mc-mname, .mc-line, .mc-note,
  .mc-cost, .mc-cnt, .mc-stats, .mc-kv, .mc-kv dd, .mc-stats dd,
  .site-footer, .site-footer p, .data-note, .my-char-intro, .my-char-summary,
  .empty-market, .search-empty, .site-search-empty, .cnt,
  .rk-num, .rk-txt, .rk-txt h3, .rk-txt li, .rk-cta, .cc-tot, .cc-tot div,
  .guide-block, .guide-head, .guide-list, .card, .card h2, .card li,
  .market-table-title, .market-related, .sources,
  .dc2-body, .dc2-text
){
  text-align: left;
}

html[dir="ltr"] td,
html[dir="ltr"] th,
html[dir="ltr"] td.n,
html[dir="ltr"] dialog dd,
html[dir="ltr"] caption{
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .lede,
html[dir="ltr"] .site-footer p,
html[dir="ltr"] .mc-credit{
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: left;
}

/* English: don't push prices/stats to the opposite edge with space-between */
html[dir="ltr"] .card li,
html[dir="ltr"] .mc-line,
html[dir="ltr"] .mc-rl,
html[dir="ltr"] .mc-kv>div,
html[dir="ltr"] .mc-stats dl>div{
  justify-content: flex-start;
}
html[dir="ltr"] td.n,
html[dir="ltr"] dialog dd,
html[dir="ltr"] .mc-cost,
html[dir="ltr"] td.src,
html[dir="ltr"] th,
html[dir="ltr"] td{
  text-align: left !important;
}
