/* GENERATED FILE - do not edit.
   Source: static/css/src/10-tokens.css, 20-base.css
   Build:  python tools/build_css.py */

/* ============ 10-tokens.css ============ */
/* Canonical SEOKit design tokens. Public pages and all application shells
   consume this source; tools/build_css.py also builds the tokens-only asset.
   Component aliases may reference these roles, never copy their hex values. */
:root {
  --ui-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, sans-serif;
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font: var(--ui-font);
  /* Legacy UI labels used --mono. Actual code uses --font-code explicitly. */
  --mono: var(--ui-font);
  --font-mono: var(--ui-font);
  --ui-color-scheme: light;
  --ui-brand: #fe391f;
  --ui-on-brand: #171717;
  --ui-canvas: #f8f8f8;
  --ui-surface: #ffffff;
  --ui-raised: #f1f1f1;
  --ui-hover: #ededed;
  --ui-text: #171717;
  --ui-muted: #626262;
  --ui-line: #dddddd;
  --ui-control-line: #858585;
  --ui-accent: #c92a10;
  --ui-selected: #fff0ec;
  --ui-primary: #c92a10;
  --ui-on-primary: #ffffff;
  --ui-inverse: #171717;
  --ui-on-inverse: #f6f6f6;
  --ui-inverse-muted: #b8b8b8;
  --ui-inverse-positive: #8ce1b9;
  --ui-inverse-negative: #ff9289;
  --ui-positive: #087948;
  --ui-negative: #bc302b;
  --ui-positive-soft: #e4f6ed;
  --ui-negative-soft: #fff0ef;
  --ui-warning: #835500;
  --ui-warning-soft: #fff5df;
  --ui-info: #235f96;
  --ui-info-soft: #edf4fc;
  --ui-focus: var(--ui-accent);
  --ui-series-purple: #7b4cb8;
  --ui-series-blue: #1d70a2;
  --ui-shadow: 0 12px 32px rgb(0 0 0 / 10%);
  --ui-shadow-soft: 0 8px 24px rgb(0 0 0 / 7%);
  --ui-overlay: rgb(0 0 0 / 65%);
  --ui-radius: 14px;
  --ui-control-height: 44px;
  /* Shared typography roles. Values alone do not opt a page into the scale.
     Migrated shells use a 100% root; legacy public tools keep their styling. */
  --type-page: 2.5rem;
  --type-display: 3.5rem;
  --type-section: 2rem;
  --type-subheading: 1.5rem;
  --type-card: 1.25rem;
  --type-body: 1.125rem;
  --type-control: 1rem;
  --type-caption: .875rem;
  --type-metric: 2rem;
  --type-weight-body: 400;
  --type-weight-label: 600;
  --type-weight-heading: 700;
  --type-leading-page: 1.15;
  --type-leading-heading: 1.3;
  --type-leading-body: 1.6;
  --type-leading-control: 1.45;
  --type-leading-caption: 1.5;
  --type-tracking-heading: -.02em;
}
@media (max-width:700px) {
  :root {
    --type-page: 2rem;
    --type-display: 2.25rem;
    --type-section: 1.75rem;
    --type-subheading: 1.375rem;
  }
}
html[data-theme="dark"] {
  --ui-color-scheme: dark;
  --ui-canvas: #0e0e0e;
  --ui-surface: #181818;
  --ui-raised: #222222;
  --ui-hover: #292929;
  --ui-text: #f6f6f6;
  --ui-muted: #b8b8b8;
  --ui-line: #3d3d3d;
  --ui-control-line: #888888;
  --ui-accent: #ff9a89;
  --ui-selected: #37221f;
  --ui-positive: #8ce1b9;
  --ui-negative: #ff9289;
  --ui-positive-soft: #17382a;
  --ui-negative-soft: #442725;
  --ui-warning: #f2cc82;
  --ui-warning-soft: #3d321f;
  --ui-info: #9bc9f1;
  --ui-info-soft: #1e3144;
  --ui-series-purple: #caadff;
  --ui-series-blue: #87cafd;
  --ui-shadow: 0 12px 32px rgb(0 0 0 / 35%);
  --ui-shadow-soft: 0 8px 24px rgb(0 0 0 / 25%);
}

/* Compatibility vocabulary: one palette, no second set of theme values. */
:root {
  --bg: var(--ui-canvas);
  --surface: var(--ui-surface);
  --surface2: var(--ui-raised);
  --surface3: var(--ui-hover);
  --border: var(--ui-line);
  --border-strong: var(--ui-control-line);
  --accent: var(--ui-brand);
  --accent2: var(--ui-accent);
  --accent3: var(--ui-accent);
  --green: var(--ui-positive);
  --yellow: var(--ui-warning);
  --red: var(--ui-negative);
  --blue: var(--ui-info);
  --text: var(--ui-text);
  --muted: var(--ui-muted);
  --muted2: var(--ui-muted);
  --glow: color-mix(in srgb, var(--ui-brand) 20%, transparent);
  --shadow: var(--ui-shadow);
  --shadow-soft: var(--ui-shadow-soft);
  --nav-h: 68px;
  --radius: var(--ui-radius);
  --radius-sm: 8px;
  --color-text: var(--text);
  --color-text-muted: var(--muted);
  --color-surface: var(--surface);
  --color-surface-alt: var(--surface2);
  --color-border: var(--border);
  --color-accent: var(--accent2);
  --color-code-bg: var(--surface2);
  --text-muted: var(--muted);
  --panel: var(--surface);
  --acc2: var(--accent2);
  --surf2: var(--surface2);
  --ds-bg: var(--bg);
  --ds-surface: var(--surface);
  --ds-surface-solid: var(--surface);
  --ds-surface-soft: var(--surface2);
  --ds-border: var(--border);
  --ds-border-strong: var(--border-strong);
  --ds-text: var(--text);
  --ds-muted: var(--muted);
  --ds-muted-2: var(--muted2);
  --ds-accent: var(--accent);
  --ds-accent-2: var(--accent2);
  --ds-green: var(--green);
  --ds-radius: 22px;
  --ds-radius-lg: 26px;
  --ds-hero-radius: 30px;
  --ds-faint: var(--ds-muted-2);
  --ds-shadow-soft: var(--shadow-soft);
  --ds-shadow: var(--shadow);
  --ds-shadow-lg: var(--shadow);
  --ds-shell: min(1600px, calc(100vw - 80px));
  --ds-tool-shell: var(--ds-shell);
  --ds-readable: 76ch;
  --ds-gap: 18px;
  --ds-font: var(--font);
  --ds-mono: var(--font);
}
html { scrollbar-color:var(--ui-control-line) var(--ui-canvas); }
body {  color-scheme:var(--ui-color-scheme); }
button, input, select, textarea {  }
pre, code, kbd, samp {  }
/* HTML visibility must survive a component's grid/flex declaration. */
[hidden]:not([hidden="until-found"]) { display:none!important; }
@media print {
  html[data-theme] {
    --ui-canvas:#fff; --ui-surface:#fff; --ui-raised:#f1f1f1;
    --ui-text:#171717; --ui-muted:#626262; --ui-line:#ddd;
    --ui-accent:#c92a10; --ui-positive:#087948; --ui-negative:#bc302b;
    --ui-color-scheme:light;
  }
}

/* ============ 20-base.css ============ */
/* Element defaults and the site shell: header, footer, theme toggle,
   typography. Was core-base.css. */

/* Generated from templates/base.html — shared styles for every page.
   Edit here, not inline in a template. */

/* -- Theme toggle button -------------------------- */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface2); cursor: pointer;
  color: var(--muted); 
  transition: border-color .18s, color .18s, background .18s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }
/* Show correct icon per theme */
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* -- Theme transition ----------------------------- */
/* Smooth color transitions on theme switch, but not on initial page load */
.theme-ready *, .theme-ready *::before, .theme-ready *::after {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: .22s;
  transition-timing-function: ease;
}

/* -- Reset ---------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  
  
  
  min-height: 100vh;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: none;
}
[data-theme="dark"] body { color-scheme: dark; }
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background: transparent;
  background-size: 56px 56px;
}
[data-theme="dark"] body::before {
  background: transparent;
  background-size: auto, auto, auto, 56px 56px, 56px 56px;
}
a { color: inherit; text-decoration: none; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
input, textarea, select, button { color: var(--text); }
input, textarea, select { caret-color: var(--accent2); }
input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: .6;
}
input[type="file"] {
  color: var(--text);
}
input[type="file"]::file-selector-button {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-right: 12px;
  
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
input[type="file"]::file-selector-button:hover {
  border-color: rgba(254,57,31,.45);
  background: rgba(254,57,31,.08);
}

/* -- Scrollbar ------------------------------------ */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cacaca; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ababab; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2c2c2c; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #404040; }

/* -- Navigation ----------------------------------- */
nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(248, 248, 248,.78);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(28, 28, 28, .02);
  transition: background .25s, border-color .25s;
}
/* Only the site header sticks. Breadcrumb and pager navs inside the page
   share the element selector above and must stay in the flow. */
main nav, article nav, footer nav { position: static; }
[data-theme="dark"] nav { background: rgba(14, 14, 14,.74); box-shadow: 0 1px 0 rgba(255,255,255,.03); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
    
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
   box-shadow: 0 14px 34px var(--glow);
  color: #14100f !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  
}
.nav-logo span { color: var(--accent); }
.nav-logo-tld {
  
  
  
  color: var(--accent);
  opacity: .72;
  
  align-self: flex-end;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.nav-link {
  padding: 7px 12px; border-radius: 9px;
    color: var(--muted);
  transition: color .15s, background-color .15s; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.nav-link:hover    { color: var(--text); background: rgba(254,57,31,.08); }
.nav-link.active   { color: var(--accent2); background: rgba(254,57,31,.11); }

/* Dropdown */

.nav-dropdown-btn {
  /* 7px, not 12: eight items with full keyword names need the horizontal room. */
  padding: 7px 7px; border-radius: 9px;
  /* Explicit line-height so the item without a chevron (Pricing) is the same
     height as the ones whose 12px SVG sets it: measured 33 vs 38 px. */
     color: var(--muted);
  cursor: pointer; background: none; border: none;
  display: flex; align-items: center; gap: 5px;
  transition: color .15s, background-color .15s; 
  white-space: nowrap;
}
.nav-dropdown-btn:hover { color: var(--text); background: rgba(254,57,31,.08); }
.nav-dropdown-btn.active { color: var(--accent2); background: rgba(254,57,31,.11); }
[data-theme="dark"] .nav-link.active,
[data-theme="dark"] .nav-dropdown-btn.active { color: #ff9b8b; background: rgba(254,57,31,.17); }
.nav-dropdown-btn .chevron { transition: transform .2s; }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  /* Opaque: --surface is translucent and the menu sits over the hero, where the
     H1 read straight through it. Flat design, so no backdrop blur either. */
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px; min-width: 230px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, visibility .18s, transform .18s; z-index: 100;
}

/* All four dropdowns now sit well left of the viewport edge, so every menu
   opens from its own button. Verified at 1280 and 1440 px: no menu reaches the
   right edge. */
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px;
   color: var(--muted);
  transition: color .15s, background-color .15s;
}
.nav-dropdown-item:hover             { background: rgba(254,57,31,.09); color: var(--text); }
.nav-dropdown-item.active            { color: var(--accent2); background: rgba(254,57,31,.12); }
.nav-dropdown-item-all               { color: var(--accent2);  }
.nav-dropdown-item .item-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
   flex-shrink: 0; transition: background .15s;
}
.nav-dropdown-item:hover .item-icon  { background: rgba(254,57,31,.12); }
.nav-divider  { height: 1px; background: var(--border); margin: 4px 0; }
.nav-badge {
    padding: 1px 6px;
  border-radius: 3px; margin-left: auto;
  background: rgba(254,57,31,.12); color: var(--accent);
}
.nav-badge.soon { background: rgba(101,90,80,.08); color: var(--muted); }

/* -- Category dropdown header ------------------ */
.nav-cat-header {
  
  
  
  color: var(--muted);
  
  text-transform: uppercase;
  padding: 6px 10px 5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
/* A second category inside one menu needs air above it; the first header sits
   flush at the top of the menu and does not. */
.nav-cat-header-2 { margin-top: 8px; }

.nav-dropdown-item.soon { cursor: default; opacity: .42; }
/* 270, not 250: the longest keyworded label ("Инструменты оптимизации
   сниппетов") wrapped to two lines at 250. */
.nav-dropdown-menu      { min-width: 270px; }
/* Platform now carries 12 items (545 px); on a short window the menu would run
   past the fold, so let it scroll instead of clipping. */
.nav-dropdown-menu      { max-height: calc(100vh - 90px); overflow-y: auto; }
.nav-dropdown-menu-tools {
  width: min(780px, calc(100vw - 32px));
  max-height: calc(100vh - 90px);
  padding: 14px;
}
.nav-mega-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, .9fr);
  gap: 14px;
}
.nav-mega-section { min-width: 0; }
.nav-mega-categories {
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
.nav-mega-list { display: grid; gap: 6px; }
.nav-mega-list-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-dropdown-item.nav-mega-card {
  align-items: flex-start;
  min-height: 72px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
}
.nav-mega-card > span:last-child { min-width: 0; }
.nav-mega-card strong,
.nav-mega-card small { display: block; }
.nav-mega-card strong {
  margin-bottom: 3px;
  color: var(--text);
  
  
}
.nav-mega-card small {
  color: var(--muted);
  
  
}
.nav-mega-card:hover,
.nav-mega-card:focus-visible {
  border-color: rgba(254,57,31,.22);
  background: rgba(254,57,31,.08);
}
.nav-mega-card.active { border-color: rgba(254,57,31,.24); }
.nav-mega-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 7px;
  background: rgba(254,57,31,.10);
  color: var(--accent2);
  
  
}
.nav-mega-category { min-height: 59px !important; }
.nav-mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  margin-top: 12px;
  padding: 9px 13px;
  border: 1px solid rgba(254,57,31,.20);
  border-radius: 10px;
  background: rgba(254,57,31,.07);
  color: var(--accent2);
  transition: border-color .15s, background-color .15s;
}
.nav-mega-footer:hover,
.nav-mega-footer:focus-visible {
  border-color: rgba(254,57,31,.40);
  background: rgba(254,57,31,.12);
}
.nav-mega-footer strong,
.nav-mega-footer small { display: block; }
.nav-mega-footer strong {   }
.nav-mega-footer small { margin-top: 2px; color: var(--muted);  }

/* Nav right */
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn-nav {
  /* 13, not 16: at 1440 the Russian bar had exactly 0 px of slack left. */
  padding: 8px 13px; border-radius: 10px;
   
  cursor: pointer; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
   transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
  white-space: nowrap;
}
.btn-nav:hover { border-color: var(--border-strong); color: var(--accent2); background: rgba(254,57,31,.08); }
.btn-nav.primary {
  background: var(--accent);
  border-color: transparent; color: white;
  box-shadow: 0 14px 34px var(--glow);
}
.btn-nav.primary:hover { box-shadow: 0 18px 42px var(--glow); transform: translateY(-1px); }

/* -- Layout --------------------------------------- */
main { position: relative; z-index: 1; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 28px; }

/* -- Shared UI components ------------------------- */
.tag {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px;
    
  background: rgba(254,57,31,.10); color: var(--accent2); border: 1px solid rgba(254,57,31,.20);
}

/* -- Hamburger button ----------------------------- */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface2); cursor: pointer; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .25s, background-color .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* -- Mobile menu ---------------------------------- */
.mob-menu {
  display: none;
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: var(--bg); overflow-y: auto;
  padding: 20px 20px 40px;
  border-top: 1px solid var(--border);
}
.mob-menu.open { display: block; }
.mob-section { margin-bottom: 24px; }
.mob-section-title {
    
  color: var(--muted);  text-transform: uppercase;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.mob-accordion { border-bottom: 1px solid var(--border); }
.mob-accordion > summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 12px 34px 12px 4px; margin-bottom: 0; border-bottom: 0;
}
.mob-accordion > summary::-webkit-details-marker { display: none; }
.mob-accordion > summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%); color: var(--accent2);
   transition: transform .18s ease;
}
.mob-accordion[open] > summary::after { content: '−'; }
.mob-accordion-panel { padding: 4px 0 10px; }
.mob-subsection-title {
  padding: 13px 12px 4px; color: var(--muted);
    text-transform: uppercase;
}
.mob-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 8px;
    color: var(--text);
  transition: background .15s;
}
.mob-link-all { color: var(--accent2); }
.mob-direct-links { display: grid; gap: 8px; margin: 2px 0 22px; }
.mob-standalone-link { margin: 0; border: 1px solid var(--border); background: var(--surface); }
.mob-appearance { margin-top: 4px; }
.mob-account-actions { display: grid; gap: 8px; }
.mob-account-link, .mob-sign-in { justify-content: center; border: 1px solid var(--border); }
.mob-sign-in { width: 100%; background: var(--surface); cursor: pointer;  }
.mob-link:hover, .mob-link.active { background: var(--surface2); color: var(--accent2); }
.mob-link .mob-icon {  width: 20px; text-align: center; flex-shrink: 0; }
.mob-theme-btn {
  width: 100%; border: 0; background: transparent; cursor: pointer;
  text-align: left; 
}
.mob-theme-btn .mob-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
}
.mob-theme-btn .mob-icon svg { display: block; width: 17px; height: 17px; }
.mob-cta {
  display: block; width: 100%; text-align: center;
  padding: 13px; border-radius: 10px; margin-top: 8px;
  background: var(--accent);
  color: white;  
  box-shadow: 0 6px 20px rgba(254,57,31,.3);
  border: 0; cursor: pointer; 
}

/* -- Responsive ----------------------------------- */
/* html propagates to the viewport; body must not become its own scroll
   container, otherwise position: sticky headers stop sticking. */
html { overflow-x: hidden; }
body { overflow-x: clip; }

@media (max-width: 1199px) {
  /* Tighten nav so logo + controls all fit on small screens */

  .container { padding: 0 16px; }
  .lang-toggle { margin-right: 0; }
  .btn-nav.primary { display: none; }

}

/* The consolidated five-item menu fits common laptop widths. Below 1200 px the
   full taxonomy moves into the accordion menu, keeping every destination. */
@media (max-width: 1199px) {

  .nav-hamburger { display: flex; }

  .btn-nav.primary { display: none; }
}

@media (max-width: 640px) {
  .nav-logo-tld { display: none; }
  .lang-opt { padding: 4px 7px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .nav-logo { gap: 7px;  }
  .nav-logo-tld { display: none; }
  .theme-toggle { width: 32px; height: 32px; }
  .lang-toggle { padding: 2px; }
  /* Tool content */
  .tool-content-section h2 {  }
  .tool-content-section p,
  .tool-content-section li {  }
  .tool-faq summary {  }
  /* PTB tables - scrollable on mobile */
  .ptb { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ptb table { min-width: 480px; }
  /* Nav: hide Get Started on very small screens (accessible via hamburger menu) */
  .btn-nav.primary { display: none; }
  .lang-opt { padding: 4px 5px; }
  /* Keep the full header inside a 390 px viewport. The single authenticated
     Workspace action remains available in the opened mobile menu. */
  .nav-user .nav-divider,
  .nav-user .nav-logout { display: none; }
  .nav-user { display: none; }
  /* Sign-in remains available inside the mobile menu. Keeping both controls in
     the header overflows a 390 px viewport once the language switch is shown. */

}

/* -- Nav user ------------------------------------- */
.nav-right { display:flex; align-items:center; flex-shrink:0; }

.nav-user {
  display: flex; align-items: center; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4px 4px 4px 6px;
  transition: border-color .2s;
  text-decoration: none;
  color: var(--text);
}
.nav-user:hover { border-color: rgba(254,57,31,.35); }
.nav-workspace-account { gap: 7px; padding-right: 12px; }

.nav-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-avatar[hidden] { display: none; }
.nav-avatar-placeholder[hidden] { display: none; }
.nav-avatar-placeholder {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
    color: #fff;
  flex-shrink: 0;
}
.nav-user .nav-divider {
  width: 1px; height: 16px;
  background: var(--border);
  flex-shrink: 0;
}
.nav-user-link {
  display: flex; align-items: center; gap: 7px;
  text-decoration: none; border-radius: 20px;
  padding: 2px 4px 2px 0;
  transition: opacity .15s;
}
.nav-user-link:hover { opacity: .82; }
.nav-cab-lbl {
    color: var(--text);
  padding-right: 2px; white-space: nowrap;
}
@media (max-width: 1100px) { .nav-cab-lbl { display: none; } }
.nav-logout {
  /* 4px of padding around 11px type made a 27px target on every page of the
     site. Sign-out is not a link inside a paragraph - it is a control, and a
     control on a phone needs a thumb's worth of height. */
  display: inline-flex;
  align-items: center;
  min-height: 36px;
    
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 18px;
  transition: color .15s, border-color .15s, background-color .15s;
  white-space: nowrap;
}
.nav-logout:hover {
  /* --red follows the theme; #ef4444 was fixed for both. */
  color: var(--red);
  background: color-mix(in oklch, var(--red) 10%, transparent);
}
.mob-account-logout {
  justify-content: center;
  margin-top: 8px;
  color: var(--muted);
}

/* -- Lang toggle ----------------------------------- */
.lang-toggle {
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  margin-right: 10px;
  flex-shrink: 0;
}
.lang-opt {
    
  padding: 4px 9px; border-radius: 14px;
  color: var(--muted); transition: color .15s, background-color .15s; white-space: nowrap;
  
}
.lang-opt:hover { color: var(--text); }
.lang-opt.active {
  background: rgba(254,57,31,.12);
  color: var(--accent);
}
[data-theme="dark"] .lang-opt.active { background: rgba(254,57,31,.17); color: #ffb1a4; }

/* -- CSV download button (auto-injected by CsvExport) ---- */
.csv-dl-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}
.csv-dl-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 7px;
    
  color: var(--muted); background: var(--surface2);
  border: 1px solid var(--border); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.csv-dl-btn:hover {
  color: var(--accent2);
  border-color: rgba(254,57,31,.35);
  background: rgba(254,57,31,.06);
}

/* -- Select / Dropdown ----------- */
select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
  
  
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6b7a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E\");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color .2s;
}
select:focus { border-color: var(--accent); }
select option { background: var(--surface2); color: var(--text); }

/* -- PTB table styles ----------------------------------------- */
.ptb table { width: 100% !important; border-collapse: collapse !important; margin: 18px 0 !important;  }
.ptb thead tr { background: var(--surface2) !important; }
.ptb th { padding: 10px 14px !important; text-align: left !important;    color: var(--accent) !important;  text-transform: uppercase !important; border-bottom: 1px solid var(--border) !important; }
.ptb td { padding: 10px 14px !important; color: var(--muted) !important; border-bottom: 1px solid var(--border) !important;  }
.ptb tr:last-child td { border-bottom: none !important; }
.ptb tr:hover td { background: rgba(254,57,31,.04) !important; }

/* -- Tool page content sections (Guide / Explanation / FAQ) -- */
.tool-content-wrap { max-width: 100%; padding: 0 0 80px; }
.tool-content-section { margin-top: 64px; }
.tool-content-section h2 {   margin-bottom: 22px; color: var(--text);  }
.tool-content-section p {   color: var(--muted); margin-bottom: 18px; max-width: 78ch; }
.tool-content-section ol, .tool-content-section ul {   color: var(--muted); padding-left: 24px; max-width: 78ch; }
.tool-content-section li { margin-bottom: 8px; }
.tool-faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.tool-faq details:first-of-type { border-top: 1px solid var(--border); }
.tool-faq summary {   cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.tool-faq summary::-webkit-details-marker { display: none; }
/* Chevron drawn with borders: the previous '?' marker was identical in both
   states, so the accordion gave no open/closed feedback. */
.tool-faq summary::after {
  content: '';
  width: 8px; height: 8px;
  margin-left: 12px;
  flex-shrink: 0;
  border-right: 2px solid var(--accent2);
  border-bottom: 2px solid var(--accent2);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.tool-faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.tool-faq .faq-answer {   color: var(--muted); padding-top: 12px; }

/* -- Breadcrumb ----------------------------------- */
.bc-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.bc { padding: 11px 0; }
.bc ol { display: flex; align-items: center; list-style: none; flex-wrap: wrap; }
.bc li { display: flex; align-items: center;   color: var(--muted); }
.bc li + li::before { content: '›'; padding: 0 8px; color: var(--border);   }
.bc a { color: var(--muted); transition: color .15s; }
.bc a:hover { color: var(--accent2); }
.bc-cur { color: var(--text) !important;  }

.author-bc-bar {
  position: relative !important;
  z-index: 3 !important;
  margin: 0 !important;
  padding: 14px 0 0 !important;
  border-bottom: 0 !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}
.author-bc {
  display: inline-flex !important;
  max-width: 100%;
  padding: 8px 13px !important;
  border: 1px solid rgba(254,57,31,.20);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  box-shadow: 0 12px 34px rgba(28, 28, 28,.06);
}
.author-bc li {
  color: var(--muted) !important;
  
  
  
}
.author-bc a {
  color: color-mix(in srgb, var(--text) 70%, var(--muted)) !important;
  text-decoration: none;
}
.author-bc a:hover {
  color: var(--accent2) !important;
}
.author-bc .bc-cur {
  color: var(--accent2) !important;
  
}
.author-bc li + li::before {
  color: rgba(254,57,31,.45) !important;
}
[data-theme="dark"] .author-bc-bar {
  background: var(--surface) !important;
}
[data-theme="dark"] .author-bc {
  background: rgba(23, 23, 23,.78);
  border-color: rgba(166, 166, 166,.16);
}

/* ── Touch targets ────────────────────────────────────────────────
   The language switcher rendered 30x19px, too small to hit reliably
   on a phone. Grow the tap area on touch widths without changing the
   pill's visual weight on desktop. */
@media (max-width: 768px) {
  .lang-toggle {
    gap: 2px;
  }

  .lang-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    min-width: 38px;
    padding: 4px 10px;
  }

  .mob-link {
    min-height: 44px;
  }

  .theme-toggle {
    min-width: 38px;
    min-height: 38px;
  }

  /* Footer link lists sat at 22px rows — tight for a thumb. */
  .footer-col a,
  .footer-bottom a {
    display: flex;
    align-items: center;
    min-height: 36px;
    margin-bottom: 2px;
  }
}

@media (max-width: 480px) {
  .nav-logo { gap: 6px;  }
  .nav-logo-icon { width: 32px; height: 32px; }
  .theme-toggle { min-width: 34px; min-height: 34px; }
  .lang-toggle { margin-right: 2px; }
  .lang-opt { min-width: 30px; min-height: 32px; padding: 3px 5px; }
  /* The account chip is duplicated in the open mobile menu. Keep the menu
     button inside the viewport instead of letting the later desktop rule win. */

}
@media (max-width: 300px) {
  /* Theme remains available in the mobile menu on unusually narrow windows. */

}
