/* UI: Sofia Sans (OFL). The 400 file serves 400-500 and the 600 file 600-900, so text is never faux-bolded. */
@font-face { font-family: "Sofia Sans"; font-display: swap; font-weight: 400 500; src: url(/static/fonts/sofia-sans-latin-400.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: "Sofia Sans"; font-display: swap; font-weight: 600 900; src: url(/static/fonts/sofia-sans-latin-600.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: "Sofia Sans"; font-display: swap; font-weight: 400 500; src: url(/static/fonts/sofia-sans-latin-ext-400.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: "Sofia Sans"; font-display: swap; font-weight: 600 900; src: url(/static/fonts/sofia-sans-latin-ext-600.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: "Sofia Sans"; font-display: swap; font-weight: 400 500; src: url(/static/fonts/sofia-sans-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Sofia Sans"; font-display: swap; font-weight: 600 900; src: url(/static/fonts/sofia-sans-cyrillic-600.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
/* Display: Anton (OFL) for page titles, the brand and item names; Oswald 700 covers Cyrillic. */
@font-face { font-family: "Glow Display"; font-display: swap; font-weight: 100 900; src: url(/static/fonts/anton-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: "Glow Display"; font-display: swap; font-weight: 100 900; src: url(/static/fonts/anton-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: "Glow Display"; font-display: swap; font-weight: 100 900; src: url(/static/fonts/anton-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Glow Display"; font-display: swap; font-weight: 100 900; src: url(/static/fonts/oswald-cyrillic-700.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s5); }
body {
  position: relative; margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-base)/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}
/* Anton (display) is single-weight: it is never bolded anywhere. */
h1, h2, h3, h4 { font-family: var(--font-ui); font-weight: 700; line-height: 1.2; margin: 0 0 var(--s3); text-wrap: balance; }
h1 { font: 400 var(--fs-3xl)/1.02 var(--font-display); letter-spacing: .005em; }
h2 { font-size: var(--fs-xl); letter-spacing: -.01em; }
h3 { font-size: var(--fs-md); }
p { margin: 0 0 var(--s3); text-wrap: pretty; }
a { color: var(--link); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
code, kbd, samp { font-family: var(--font-mono); font-size: .9em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.num { font-variant-numeric: tabular-nums; }
select option, select optgroup { background: var(--surface); color: var(--text); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: var(--s2); inset-block-start: -80px; background: var(--accent); color: var(--accent-ink); padding: var(--s1) var(--s2); z-index: 40; }
.skip-link:focus { inset-block-start: var(--s2); }

/* Header: two-bar layout — a full-width top utility bar (ecosystem, language, theme, account)
   above the floating sticky navigation pill (logo + Fortnite sections; drawer on mobile). */
.site-header { display: contents; }
body.nav-drawer-open { overflow: hidden; }

/* Bar 1: full-width top utility bar (normal flow, scrolls away cleanly) */
.site-topbar {
  position: relative; z-index: 30; width: 100%;
  background: var(--header); border-block-end: 1px solid var(--line);
}
.site-topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  max-width: calc(var(--maxw) + 2 * var(--s5)); height: 42px; margin-inline: auto; padding-inline: var(--s5);
}
.site-topbar__links { display: flex; align-items: center; gap: 18px; min-width: 0; }
.topbar__switcher { display: none; position: relative; }
.topbar__switcher-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 2px;
  border: 0; background: transparent; color: var(--text); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; position: relative;
}
.topbar__switcher-btn::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--accent);
}
.topbar__chev { width: 14px; height: 14px; color: var(--text-3); transition: transform var(--ease); }
.topbar__switcher.is-open .topbar__chev { transform: rotate(180deg); color: var(--text); }
.menu--switcher .menu__panel { min-width: 184px; }
.menu--switcher .menu__panel a { display: flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; font-weight: 600; }
.topbar__link, .site-topbar .nav__api {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0;
  color: var(--text-3); font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap; transition: color var(--ease);
}
.topbar__ico { width: 15px; height: 15px; flex: none; object-fit: contain; vertical-align: 0; }
.topbar__ico--home { width: 18px; height: 18px; border-radius: 0; object-fit: contain; }
.topbar__ico--glow { width: 18px; height: 18px; }
.topbar__ico--crown { width: 15px; height: 15px; }
.topbar__link:hover, .site-topbar .nav__api:hover { color: var(--text); text-decoration: none; }
.topbar__link[aria-current="page"], .site-topbar .nav__api[aria-current="page"] { color: var(--text); font-weight: 600; }
.topbar__link[aria-current="page"]::after, .site-topbar .nav__api[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 2px;
  background: var(--accent); transform: none; border-radius: 0;
}
.site-topbar .nav__api::after { display: none; }
.site-topbar .nav__api[aria-current="page"]::after { display: block; }

.site-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.topbar__icon-btn {
  display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0;
  background: none; color: var(--text-3); cursor: pointer; transition: color var(--ease);
}
.topbar__icon-btn:hover,
.has-menu.is-open > .topbar__icon-btn,
.has-menu:focus-within > .topbar__icon-btn { color: var(--text); }
.topbar__icon-btn .icon { width: 18px; height: 18px; vertical-align: 0; }
.topbar__icon-btn .theme-icon { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.theme-icon__half { fill: currentColor; stroke: none; }
:root:not([data-theme]) .topbar__icon-btn .theme-icon--gray,
:root[data-theme="gray"] .topbar__icon-btn .theme-icon--gray,
:root[data-theme="light"] .topbar__icon-btn .theme-icon--light,
:root[data-theme="dark"] .topbar__icon-btn .theme-icon--dark { display: block; }
.menu--theme .menu__panel { min-width: 150px; }
.theme-opt { display: flex !important; align-items: center; gap: 10px; }
.theme-opt .theme-icon { display: block; width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-opt[aria-current="true"] { background: var(--surface-2); color: var(--text); font-weight: 600; }
.theme-opt[aria-current="true"] .theme-icon { color: var(--accent); }
.site-topbar__sep { width: 1px; height: 14px; background: var(--line-strong); flex: none; }
.topbar__auth { display: flex; align-items: center; }
.topbar__login {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  transition: background-color var(--ease), color var(--ease);
}
.topbar__login:hover, .topbar__login[aria-current="page"] { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }
.topbar__login .icon { width: 15px; height: 15px; vertical-align: 0; stroke-width: 2; }
.topbar__user { position: relative; display: flex; align-items: center; }
.topbar__user-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 8px 0 4px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: 600 13px/1 var(--font-ui); cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease);
}
.topbar__user-btn:hover, .topbar__user.is-open > .topbar__user-btn { background: var(--surface-2); border-color: var(--accent); }
.topbar__avatar {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; overflow: hidden;
  background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; flex: none;
}
.topbar__avatar img { width: 100%; height: 100%; object-fit: cover; }
.topbar__user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__user .menu__panel { min-width: 190px; }
.topbar__user-head { padding: 8px 12px; border-block-end: 1px solid var(--line); margin-block-end: 4px; }
.topbar__user-head strong { display: block; font-size: 14px; color: var(--text); }
.topbar__user-head span { display: block; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.menu__panel button.menu__action {
  display: block; width: 100%; text-align: start; padding: 8px 12px; border: 0; border-radius: var(--radius-md);
  background: none; color: var(--text-2); font: 500 15px/1.4 var(--font-ui); cursor: pointer;
}
.menu__panel button.menu__action:hover { background: var(--surface-2); color: var(--text); }
.drawer__user-actions { display: grid; gap: 8px; }
.drawer__logout {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 38px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent;
  color: var(--text-2); font: 600 14px/1 var(--font-ui); cursor: pointer;
}
.drawer__logout:hover { background: var(--surface-2); color: var(--text); }

/* Bar 2: floating sticky navigation pill (logo left, Fortnite sections centred) */
.site-navbar {
  --header-h: 58px; --logo-size: 44px;
  position: sticky; top: var(--s3); z-index: 20;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3);
  width: min(calc(100% - 2 * var(--s4)), calc(var(--maxw) + 2 * var(--s5))); height: var(--header-h);
  margin: var(--s3) auto 0; padding: 0 calc((var(--header-h) - 2px - var(--logo-size)) / 2);
  background: var(--header); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
}
/* Unframed logo mark + SLURPDB dropdown trigger inside the bar's rounded end. */
.brand { justify-self: start; display: flex; align-items: center; }
.brand__logo { display: inline-flex; align-items: center; gap: 8px; padding: 0 6px 0 0; border-radius: 0; color: var(--text-2); }
.brand__logo:hover { color: var(--text); text-decoration: none; }
.brand__mark { inline-size: var(--logo-size); block-size: var(--logo-size); display: block; object-fit: contain; flex: none; border-radius: 0; border: 0; background: none; transition: transform var(--ease); }
.brand__logo:hover .brand__mark { transform: scale(1.04); }
.brand__name { font: 400 21px/1 var(--font-display); letter-spacing: .04em; color: var(--text); text-transform: uppercase; white-space: nowrap; }
.brand__chev { width: 14px; height: 14px; color: var(--text-3); flex: none; transition: transform var(--ease), color var(--ease); }
.brand:hover .brand__chev, .brand:focus-within .brand__chev { transform: rotate(180deg); color: var(--text); }
.site-navbar__end { width: 8px; display: flex; align-items: center; justify-content: flex-end; }
.nav__toggle { display: none; }
.nav { min-width: 0; align-self: stretch; }
.nav__main { display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: center; gap: 2px; height: 100%; }
.nav__main > li { display: flex; align-items: stretch; }
.nav__link {
  position: relative; display: flex; align-items: center; padding: 2px 10px 0; color: var(--text-2);
  font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.25; letter-spacing: .035em;
  text-transform: uppercase; white-space: nowrap; transition: color var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; inset-inline: 10px; inset-block-end: -1px; height: 3px; border-radius: 2px 2px 0 0;
  background: var(--accent); transform: scaleX(0); transition: transform 180ms cubic-bezier(.22, 1, .36, 1);
}
.nav__link:hover, .has-menu:hover > .nav__link, .has-menu:focus-within > .nav__link { color: var(--text); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
/* "More": sections that do not fit (static/js/nav.js) */
.nav__more[hidden] { display: none; }
.nav__more-btn { background: none; border: 0; cursor: pointer; }
.nav__more-btn::after { display: none; }
.nav__more .menu__panel { min-width: 220px; }
[data-nav-more] .nav__link { display: block; padding: 8px 12px; border-radius: var(--radius-md); font-size: 15px; color: var(--text-2); }
[data-nav-more] .nav__link:hover { background: var(--surface-2); color: var(--text); }
[data-nav-more] .nav__link[aria-current="page"] { color: var(--text); background: var(--surface-2); }
[data-nav-more] .nav__link::after, [data-nav-more] .menu { display: none; }
@media (max-width: 1279px) {
  .site-navbar { gap: var(--s2); }
  .site-navbar__end { width: 0; }
  .site-navbar .nav__link { padding-inline: 8px; }
  .site-navbar .nav__link::after { inset-inline: 8px; }
}
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--text-2); cursor: pointer; transition: background-color var(--ease), color var(--ease);
}
.icon-btn:hover, .has-menu:focus-within > .icon-btn { background: var(--surface-2); color: var(--text); }
.icon-btn .icon { width: 22px; height: 22px; }

/* Hover / focus / click menus use the active theme's surface and text together. */
.has-menu { position: relative; }
.menu {
  position: absolute; inset-block-start: 100%; inset-inline-start: calc(-1 * var(--s2)); z-index: 30; padding-block-start: var(--s2);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top left;
  transition: opacity 160ms ease-out, transform 200ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear 200ms;
}
.nav .menu { inset-block-start: calc(100% - 4px); }
.has-menu:hover > .menu, .has-menu:focus-within > .menu, .has-menu.is-open > .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* Click-open menus in topbar: open cleanly on click (not hover) so icons stay understated */
.site-topbar .has-menu:hover > .menu,
.site-topbar .has-menu:focus-within > .menu { opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); }
.site-topbar .has-menu.is-open > .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu--end { inset-inline-start: auto; inset-inline-end: 0; transform-origin: top right; }
.menu__panel {
  min-width: 220px; padding: 6px; border-radius: var(--radius-md);
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
  box-shadow: 0 12px 32px var(--panel-shadow);
}
.menu--cols .menu__panel { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); max-height: 70vh; overflow-y: auto; }
.nav__lang .menu__panel { grid-template-columns: repeat(2, max-content); column-gap: 20px; }
.nav__lang .menu__panel a { padding-inline: 6px; }
.menu__panel a { display: block; padding: 8px 12px; border-radius: var(--radius-md); color: var(--text-2); font-size: 15px; white-space: nowrap; }
.menu__panel a:hover, .menu__panel a:focus-visible { background: var(--surface-2); color: var(--text); text-decoration: none; }
.menu__panel a[aria-current] { color: var(--text); font-weight: 600; background: var(--surface-2); }
.menu--brand .menu__panel--sections {
  display: grid; grid-template-columns: repeat(3, minmax(168px, 1fr)); gap: 16px;
  min-width: 560px; padding: 14px;
}
.brand-menu__col { min-width: 0; }
.brand-menu__title {
  margin: 0 0 6px; padding: 2px 10px 6px; border-block-end: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.brand-menu__list { display: grid; gap: 2px; }
.brand-menu__list a {
  display: block; padding: 7px 10px; border-radius: var(--radius-md);
  color: var(--text-2); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
}
.brand-menu__list a:hover, .brand-menu__list a:focus-visible { background: var(--surface-2); color: var(--text); text-decoration: none; }
.brand-menu__list a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* Mobile drawer */
.nav-drawer[hidden] { display: none; }
.nav-drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.nav-drawer__backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / .6); }
.nav-drawer__panel {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: min(88vw, 340px); height: 100%;
  background: var(--surface); border-inline-start: 1px solid var(--line-strong);
  box-shadow: 0 12px 32px var(--panel-shadow);
}
.nav-drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s3) var(--s4); border-block-end: 1px solid var(--line);
}
.nav-drawer__head .brand__logo { display: inline-flex; align-items: center; gap: 10px; border-radius: 0; color: var(--text); }
.nav-drawer__head .brand__mark { inline-size: 34px; block-size: 34px; }
.nav-drawer__head .brand__name { font-size: 20px; }
.nav-drawer__close { width: 38px; height: 38px; }
.nav-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--s3); }
.drawer__list, .drawer__platform { display: grid; gap: 2px; }
.drawer__link, .drawer__summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 12px;
  border-radius: var(--radius-md); color: var(--text-2); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}
.drawer__link--ico { justify-content: flex-start; gap: 10px; }
.drawer__link:hover, .drawer__summary:hover,
.drawer__link[aria-current="page"], .drawer__summary[data-current="true"] {
  background: var(--surface-2); color: var(--text); text-decoration: none;
}
.drawer__chevron { width: 18px; height: 18px; color: var(--text-3); transition: transform var(--ease), color var(--ease); }
.drawer__group[open] > .drawer__summary .drawer__chevron { transform: rotate(180deg); color: var(--text); }
.drawer__sub {
  display: grid; gap: 2px; padding: 4px 0 8px 12px; margin-inline-start: 10px;
  border-inline-start: 1px solid var(--line);
}
.drawer__sublink {
  display: block; padding: 8px 12px; border-radius: var(--radius); color: var(--text-2); font-size: 14px;
  transition: background-color var(--ease), color var(--ease);
}
.drawer__sublink:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.drawer__sublink[aria-current="page"] { background: var(--surface-2); color: var(--link); font-weight: 600; }
.drawer__divider { height: 1px; background: var(--line); margin: var(--s3) 0; }
.nav-drawer__foot { padding: var(--s3) var(--s4); border-block-start: 1px solid var(--line); background: var(--header); }
.drawer__login {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px;
  border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 700; transition: background-color var(--ease);
}
.drawer__login:hover { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }
.drawer__login .icon { width: 17px; height: 17px; vertical-align: 0; stroke-width: 2; }

/* Main */
main { flex: 1; width: 100%; max-width: var(--maxw); margin-inline: auto; padding: var(--s8) var(--s5) var(--s9); }

/* Footer: brand + tagline + disclaimer on the left, link columns on the right, a thin bottom bar. */
.site-footer { margin-block-start: auto; border-block-start: 1px solid var(--line); background: var(--header); color: var(--text-2); font-size: 14px; }
.site-footer__inner {
  display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2.4fr); gap: var(--s7);
  max-width: var(--maxw); margin-inline: auto; padding: var(--s8) var(--s5) var(--s5);
}
.site-footer__brand { display: grid; align-content: start; gap: var(--s3); }
.site-footer__brand .brand__logo { display: inline-flex; align-items: center; gap: 10px; padding: 0; border-radius: 0; color: var(--text); }
.site-footer__brand .brand__mark { inline-size: 32px; block-size: 32px; }
.site-footer__brand .brand__name { font-size: 22px; }
.site-footer__tagline { margin: 0; max-width: 34ch; color: var(--text-2); }
.site-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s6); }
.site-footer__cols h2 { margin: 0 0 var(--s4); color: var(--text); font: 400 20px/1.1 var(--font-display); letter-spacing: .01em; }
.site-footer__cols ul { display: grid; gap: 10px; }
.site-footer__cols nav:first-child ul { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: var(--s6); }
.site-footer__cols a, .site-footer__legal a { color: var(--text-2); }
.site-footer__cols a:hover, .site-footer__legal a:hover { color: var(--text); text-decoration: none; }
.site-footer__bottom {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5);
  margin-block-start: var(--s4); padding-block-start: var(--s5); border-block-start: 1px solid var(--line);
}
.site-footer__disclaimer { max-width: 760px; margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-3); }
.site-footer__status { display: inline-flex; align-items: center; gap: var(--s2); margin: 0; font-size: 12px; color: var(--text-2); }
.site-footer__status a { color: inherit; }
.site-footer__status [data-state="maintenance"] { color: var(--warn); }
.site-footer__status [data-state="down"] { color: var(--down); }
.back-top { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text-2); font-size: 13px; font-weight: 600; }
.back-top:hover { color: var(--text); text-decoration: none; }

details { position: relative; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

@media (max-width: 1099px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--s6); }
}
@media (max-width: 768px) {
  .site-topbar__inner { padding-inline: var(--s3); gap: var(--s2); }
  .site-topbar__links { display: none; }
  .topbar__switcher { display: inline-flex; align-items: center; }
  .topbar__link, .site-topbar .nav__api { font-size: 12px; }
  .site-tools { gap: 4px; }
  .site-topbar__sep { margin-inline: 0; }
  .topbar__login { padding: 0 10px; font-size: 12px; }
  .site-navbar {
    --header-h: 54px; --logo-size: 40px;
    grid-template-columns: auto 1fr; gap: var(--s2);
    width: calc(100% - 2 * var(--s3)); margin-block-start: var(--s2); top: var(--s2);
    padding: 0 7px 0 calc((var(--header-h) - 2px - var(--logo-size)) / 2);
  }
  .site-navbar .brand__logo { gap: 8px; border-radius: 0; }
  .site-navbar .brand__name { font-size: 20px; }
  .site-navbar .brand__chev { display: none; }
  .site-navbar .brand .menu { display: none; }
  .site-navbar .nav { display: none; }
  .site-navbar__end { width: auto; justify-self: end; }
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
    background: var(--surface); color: var(--text); font: 600 13px/1 var(--font-ui);
    letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
    transition: background-color var(--ease), border-color var(--ease);
  }
  .nav__toggle:hover { background: var(--surface-2); border-color: var(--text-3); }
  .nav__toggle .icon { width: 18px; height: 18px; vertical-align: 0; }
}
@media (max-width: 639px) {
  main { padding: var(--s6) var(--s4) var(--s8); }
  .site-footer__inner { padding: var(--s7) var(--s4) var(--s5); }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__cols nav:first-child { grid-column: 1 / -1; }
}
@media (max-width: 439px) {
  .topbar__link--premium { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Current page hidden inside "More": the button carries the mark */
.nav__more:has([aria-current="page"]) > .nav__more-btn { color: var(--text); }
.nav__more:has([aria-current="page"]) > .nav__more-btn::after { display: block; transform: scaleX(1); }
