/* Шрифты (OFL, assets/fonts/OFL.txt) */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-400-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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-400-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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-500-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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-500-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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-600-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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-600-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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-700-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;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexsans-normal-700-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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexmono-normal-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexmono-normal-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexmono-normal-500-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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexmono-normal-500-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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexmono-normal-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexmono-normal-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexmono-normal-600-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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/plex/plex-ibmplexmono-normal-600-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;
}

/*
 * Тема ledger — «проспект»: светлый деловой стиль, IBM Plex Sans, моноширинный Plex только для цифр.
 * Рейтинг — строки таблицы, оценка — шкала рядом с числом (templates/ledger/partials/rating.php).
 */

:root {
  --bg: #f2f4f6;
  --surface: #ffffff;
  --surface-2: #e9edf2;
  --text: #0e1a2b;
  --muted: #56637a;
  --border: #d3dae3;
  --accent: #2350e6;
  --accent-ink: #ffffff;
  --cta: #f5b700;
  --cta-ink: #0e1a2b;
  --star: #2350e6;
  --good: #0f7b4f;
  --bad: #c2362b;
  --radius: 8px;
  --radius-btn: 6px;
  --shadow: 0 1px 0 rgba(14, 26, 43, .04);
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --header-bg: #0e1a2b;
  --header-ink: #e6ebf2;
  --footer-bg: #0e1a2b;
  --footer-ink: #c9d2de;
  --hero-bg: #0e1a2b;
  --hero-ink: #ffffff;
  --hero-muted: #b9c4d3;
  --wrap: 1200px;
  --prose: 700px;
}

.theme-ledger h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; max-width: 24ch; }
.theme-ledger h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: -.01em; }
.theme-ledger :focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.theme-ledger .rating-num, .theme-ledger .tool-out b, .theme-ledger .data td, .theme-ledger .lg-num, .theme-ledger .card-pos { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* Шапка и первый экран: тёмно-синий блок, шафрановая линия снизу */
.theme-ledger .topnote { background: #091221; color: #8fa0b8; }
.theme-ledger .site-header { border-bottom: 0; }
.theme-ledger .site-mark { border-radius: 6px; background: var(--cta); color: var(--cta-ink); }
.theme-ledger .site-nav a { font-weight: 500; opacity: .9; }
.theme-ledger .site-nav a:hover { color: var(--cta); opacity: 1; }
.theme-ledger .nav-toggle { border-color: #2a3a52; }
.theme-ledger .hero { padding: 44px 0 40px; box-shadow: inset 0 -4px 0 var(--cta); }
.theme-ledger .hero .avatar { background: #1d2c44; color: #fff; }
.theme-ledger .hero .lead { max-width: 64ch; }
.theme-ledger .hero .meta-line a { color: #fff; }

/* Оценка — шкала и число */
.bar-rating { display: inline-grid; grid-template-columns: 72px auto; align-items: center; gap: 10px; }
.bar-rating .track { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar-rating .track span { display: block; height: 100%; width: var(--pct); background: var(--accent); }
.bar-rating b { font-family: var(--font-num); font-weight: 600; font-size: .95rem; }
.bar-rating small { color: var(--muted); font-weight: 400; }
.bar-rating.rating-lg { grid-template-columns: 120px auto; }
.bar-rating.rating-lg b { font-size: 1.3rem; }

/* Общие компоненты */
.theme-ledger .btn-play { font-weight: 600; }
.theme-ledger .btn-play:hover { filter: none; background: #ffc61a; }
.theme-ledger .badge { border-radius: 4px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); text-transform: none; letter-spacing: 0; font-size: .74rem; font-weight: 600; }
.theme-ledger .label { text-transform: none; letter-spacing: 0; font-size: .78rem; }
.theme-ledger .data thead th { text-transform: none; letter-spacing: 0; font-size: .78rem; color: var(--muted); }
.theme-ledger .tool-box { border-top: 3px solid var(--accent); }
.theme-ledger .tool-out .tool-main { background: var(--text); color: #fff; }
.theme-ledger .chip-btn { border-radius: 6px; }
.theme-ledger .faq details { border-radius: 6px; }
.theme-ledger .site-footer .footer-tagline, .theme-ledger .site-footer .footer-bottom { color: #8fa0b8; }
.theme-ledger .site-footer .footer-bottom { border-top-color: #1d2c44; }
.theme-ledger .site-footer { border-top: 0; }
.theme-ledger .verdict { border-left-color: var(--cta); }

/* Рейтинг строками (templates/ledger/partials/toplist.php) */
.lg-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); font-size: .92rem; }
.lg-table th, .lg-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.lg-table thead th { background: var(--surface-2); color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.lg-table tbody tr:hover { background: #f8fafc; }
.lg-table tbody tr:first-child { box-shadow: inset 4px 0 0 var(--cta); background: #fffcf0; }
.lg-pos { width: 44px; font-family: var(--font-num); font-weight: 700; color: var(--muted); }
.lg-brand { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.lg-brand h3 { margin: 0; font-size: 1rem; }
.lg-bonus strong { display: block; line-height: 1.35; }
.lg-num { font-family: var(--font-num); white-space: nowrap; }
.lg-cta { width: 170px; text-align: center; }
.lg-cta .btn { width: 100%; padding: .65em 1em; }
.lg-cta .link-review { display: block; margin-top: 4px; font-size: .78rem; }
.lg-table .is-more { display: none; }
.toplist.show-all .lg-table .is-more, .toplist.filtered .lg-table .is-more { display: table-row; }
.lg-table tr[hidden] { display: none !important; }
@media (max-width: 860px) {
  .lg-table thead { display: none; }
  .lg-table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; width: 100%; }
  .lg-table tr { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 10px; padding: 12px; border-bottom: 1px solid var(--border); }
  .toplist.show-all .lg-table .is-more, .toplist.filtered .lg-table .is-more { display: grid; }
  .lg-table td { padding: 0; border: 0; }
  .lg-table .lg-pos { grid-row: span 2; }
  .lg-table .lg-num { display: inline-block; width: auto; margin-right: 12px; font-size: .85rem; }
  .lg-table .lg-num::before { content: attr(data-label) ": "; color: var(--muted); font-family: var(--font-body); }
  .lg-table .lg-cta { grid-column: 1 / -1; width: 100%; margin-top: 8px; }
}
