@charset "UTF-8";
/* Geist variable font */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist/Geist[wght].woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist/Geist-Italic[wght].woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
:root {
  --bg: #0b0d10;
  --bg2: #050609;
  --card: #11151a;
  --panel: #0e1217;
  --text: #ecf1f4;
  --muted: #a0a5aa;
  --border: #1a1f27;
  --accent: #2a3441;
  --category: #99aabb;
  --bg-spot-1: #141922;
  --bg-spot-2: #191f2a;
  --bg-spot-3: #0e141f;
  /* new bottom blob */
  /* scroll-driven position + “size” for morph */
  --bg-spot-1-y: 0%;
  --bg-spot-2-y: 10%;
  --bg-spot-3-y: 110%;
  /* starts just below viewport */
  --bg-spot-1-size: 60%;
  --bg-spot-2-size: 55%;
  --bg-spot-3-size: 65%;
}

:root[data-theme=light] {
  --bg: #edf1f9;
  --bg2: #e4ebf7;
  --card: #ffffff;
  --panel: #f0f3f7;
  --text: #0a0c10;
  --muted: #4a5563;
  --border: #dbe2ea;
  --accent: #c9d4e2;
  --category: #3f5a73;
  --bg-spot-1: #dce5f7;
  --bg-spot-2: #ccd7f0;
  --bg-spot-3: #dde7fb;
  --bg-spot-1-y: 0%;
  --bg-spot-2-y: 10%;
  --bg-spot-3-y: 110%;
  --bg-spot-1-size: 60%;
  --bg-spot-2-size: 55%;
  --bg-spot-3-size: 65%;
}

/* Uniform theme flip animation — no global text-color fade */
html.theme-anim,
html.theme-anim * {
  transition: background-color 0.25s ease, border-color 0.25s ease, fill 0.25s ease, stroke 0.25s ease !important;
}

/* If you still want a tiny fade on chrome text (not body copy), opt-in: */
html.theme-anim .brand,
html.theme-anim .accordion-toggle,
html.theme-anim .nav a,
html.theme-anim .cats-chip {
  transition: color 0.18s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.6 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 650px at 20% var(--bg-spot-1-y), var(--bg-spot-1) 0%, transparent var(--bg-spot-1-size)), radial-gradient(1200px 700px at 80% var(--bg-spot-2-y), var(--bg-spot-2) 0%, transparent var(--bg-spot-2-size)), radial-gradient(1400px 800px at 60% var(--bg-spot-3-y), var(--bg-spot-3) 0%, transparent var(--bg-spot-3-size)), linear-gradient(180deg, var(--bg), var(--bg2) 70%, var(--bg) 100%);
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- CLS helpers for images with explicit attributes ---- */
img[width][height] {
  height: auto;
}

/* keep aspect ratio with reserved slot */
.brand-logo {
  width: 41px;
  height: 31px;
  display: block;
  aspect-ratio: 41/31;
}

/* lock header layout */
/* -------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
p,
strong,
ul,
ol,
li {
  margin: 0;
}

.container {
  max-width: 1366px;
  margin: 0 auto;
  padding: 16px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  /* was 280px */
  gap: 16px;
}

.site-header,
.site-footer {
  border-top: 1px solid rgba(27, 34, 44, 0.125);
  border-bottom: 1px solid rgba(27, 34, 44, 0.125);
  background: color-mix(in srgb, var(--bg), #000 5%);
}

.brand {
  font-weight: 800;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  gap: 0.5rem;
  font-size: 2rem;
  line-height: 2rem;
}

.brand:focus-visible,
.nav a:focus-visible,
a.skip-link:focus,
a:focus-visible {
  outline: 2px solid #7fb0ff;
  outline-offset: 2px;
  border-radius: 6px;
}

.content {
  margin: 16px 0;
}

.content .grid .card {
  margin: 0 0 16px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  contain: layout paint;
  margin: 16px 0;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  margin: 6px 0;
}

a {
  color: inherit;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

.sidebar .list a {
  display: inline-block;
  padding: 2px 0;
  text-decoration: none;
  margin-left: 23px;
}

.sidebar .list a:hover {
  text-decoration: underline;
}

.nav a {
  margin-left: 0;
  text-decoration: none;
}

.toggle-container {
  width: 251px;
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background-color: var(--panel);
  border-radius: 6px;
  transition: background-color 0.3s ease-in-out 0.1s;
}

.fa-sun,
.fa-moon {
  font-size: 1.5rem;
  color: #828FA3;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 32px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #635FC7;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 5px;
  bottom: 5px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* Forms */
.input-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.input-row label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.input-row input,
.input-row select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2a2f38;
  background: var(--panel);
  color: var(--text);
}

.input-row input:focus-visible,
.input-row select:focus-visible {
  outline: 2px solid #7fb0ff;
  outline-offset: 2px;
}

.result {
  font-size: 32px;
  font-weight: 700;
}

/* Ads */
.ad {
  background: var(--panel);
  border: 1px dashed var(--accent);
  border-radius: 10px;
  text-align: center;
  color: var(--muted);
  overflow: hidden;
}

/* Reserve space for ads to prevent CLS */
.ad.ad-top,
.ad.ad-bottom {
  min-height: 90px;
}

/* base default */
.ad.ad-incontent {
  min-height: 250px;
}

@media (min-width: 1200px) {
  .ad.ad-top,
  .ad.ad-bottom {
    min-height: 250px;
  }
  .sidebar .ad.ad-sidebar {
    min-height: 600px;
  }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .ad.ad-top,
  .ad.ad-bottom {
    min-height: 90px;
  }
  .sidebar .ad.ad-sidebar {
    min-height: 600px;
  }
  .ad.ad-incontent {
    min-height: 280px;
  }
}
@media (max-width: 900px) {
  .ad.ad-top,
  .ad.ad-bottom {
    min-height: 100px;
  }
}
/* Anchor ad close button */
#ad-anchor {
  position: relative;
}

#ad-anchor .ad-anchor__close {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* A11y helpers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 9999;
}

/* -------- Sidebar positioning -------- */
.sidebar {
  align-self: start;
}

@media (min-width: 901px) {
  .sidebar {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: auto;
  }
}
/* remove outer padding in sidebar card so accordion sits flush */
.sidebar {
  background: transparent;
  border: none;
}

.sidebar .card {
  background: transparent;
  border: none;
  position: relative;
  padding: 0;
}

.help-text {
  color: var(--muted);
  width: 100%;
  text-align: center;
  font-size: 14px;
}

.content .help-text {
  text-align: left;
}

.category-title {
  margin: 12px 0 6px 0;
  color: var(--category);
  font-weight: 600;
  font-size: 13px;
}

.card:is(a) {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card:is(a):hover {
  border-color: color-mix(in srgb, var(--border), currentColor 35%);
}

.card:is(a):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ---------- Sidebar accordion ---------- */
.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}

.accordion-header {
  margin: 0;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
  border-bottom: 1px solid transparent;
}

.accordion-toggle[aria-expanded=true] {
  border-bottom-color: var(--border);
}

.accordion-toggle:focus-visible {
  outline: 2px solid #7fb0ff;
  outline-offset: 2px;
  border-radius: 6px;
}

.acc-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.acc-count {
  color: var(--muted);
  font-weight: 400;
}

.acc-arrow {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.2s ease-in-out;
  margin-right: 2px;
  margin-left: auto;
}

.accordion-toggle[aria-expanded=true] .acc-arrow {
  transform: rotate(45deg);
}

/* animated panel; inner padding provides spacing */
.accordion-panel {
  padding: 0;
}

.accordion-panel__inner {
  padding: 8px 12px 12px;
}

/* ---------- Homepage categories summary ---------- */
.cats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
}

.cat-pill:hover {
  border-color: color-mix(in srgb, var(--border), currentColor 35%);
}

.cat-pill img {
  width: 20px;
  height: 20px;
}

.cat-pill .cat-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cat-pill .cat-count {
  color: var(--muted);
  font-size: 12px;
}

/* NEW: visible category descriptions (homepage) */
.cat-left {
  display: grid;
  grid-auto-rows: min-content;
  gap: 4px;
}

.cat-desc {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  margin-left: 28px;
}

@media (max-width: 600px) {
  .cat-desc {
    margin-left: 0;
  }
}
/* ---- Cats bar tooltip (mobile-only, overlay with fade) ---- */
.cats-wrap {
  position: sticky;
}

.cats-hint {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 6px;
  z-index: 60;
  display: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.cats-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cats-hint.is-hiding {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.cats-hint__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.cats-hint__inner::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: var(--card);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(-45deg);
}

.cats-hint__text {
  font-size: 14px;
  color: var(--muted);
}

.cats-hint__btn {
  margin-left: auto;
  border: 0;
  background: var(--panel);
  color: inherit;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.cats-hint__btn:focus-visible {
  outline: 2px solid #7fb0ff;
  outline-offset: 2px;
  border-radius: 6px;
}

.actions-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.actions-bar .btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.actions-bar .btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.vote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vote__label {
  color: var(--muted);
  width: 100%;
  text-align: center;
}

.vote-btn {
  line-height: 1;
  font-size: 18px;
  width: auto;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /*gap: 8px;*/
  background: none;
  border: none;
}

.vote-btn .ico {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.vote-btn .ico-up {
  -webkit-mask-image: url("/assets/svg/thumbs-up.svg");
  mask-image: url("/assets/svg/thumbs-up.svg");
}

.vote-btn .ico-down {
  -webkit-mask-image: url("/assets/svg/thumbs-down.svg");
  mask-image: url("/assets/svg/thumbs-down.svg");
}

.vote-btn .label {
  font-size: 14px;
}

.vote-btn:hover {
  border-color: color-mix(in srgb, var(--border), currentColor 35%);
}

.vote-btn:active {
  transform: translateY(1px);
}

.vote-btn.is-selected {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* sr-only helper */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .cats-hint {
    display: block;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .input-row {
    grid-template-columns: 1fr;
  }
  .result {
    font-size: 28px;
  }
  .sidebar {
    position: static;
    order: 2;
  }
  .content {
    order: 1;
  }
  .nav a {
    padding: 10px 0;
    display: inline-block;
  }
}
/* Focus style for chips */
.cats-chip:focus-visible {
  outline: 2px solid #7fb0ff;
  outline-offset: 2px;
  border-radius: 6px;
}

.acc-ico {
  width: 16px;
  height: 16px;
  display: inline-block;
}

/* ---------- NEW: dedicated 300x600 ad wrapper under sidebar ---------- */
.sidebar-ad {
  display: none;
}

@media (min-width: 1024px) and (min-height: 700px) {
  .sidebar-ad {
    display: block;
    margin-top: 12px;
  }
}
/* Mobile: make content ads bleed to viewport edges (keep sidebar intact) */
@media (max-width: 900px) {
  .content .ad-slot {
    margin-left: -16px;
    margin-right: -16px;
  }
}
/* ------------ OPTIONAL: per-slot loader styles (if you prefer pure CSS) ---- */
/* You already get these injected by ads.js; keeping here for completeness. */
.ad-slot {
  position: relative;
}

.ad-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: transparent;
}

.ad-loader__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: adloader 0.9s infinite ease-in-out both;
}

.ad-loader__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.ad-loader__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes adloader {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
/* ---------- Breadcrumbs ---------- */
.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted, #a0a5aa);
  font-size: 14px;
}

.breadcrumbs__list a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease all;
}

.breadcrumbs__list a:hover {
  color: #1e5eff;
}

.breadcrumbs__list [aria-current=page] {
  color: var(--text, #ecf1f4);
}

/* ---------- Breadcrumb row (breadcrumbs + actions wrapper) ---------- */
.breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.breadcrumb-row .breadcrumbs {
  margin: 0;
}

.breadcrumbs li[aria-current=page] {
  font-weight: 700;
}

.breadcrumbs li[aria-current=page] a {
  pointer-events: none;
  text-decoration: none;
  color: #1e5eff;
}

/* ---------- Breadcrumb actions (vote + share inline) ---------- */
.breadcrumb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.vote-inline {
  display: flex;
  align-items: center;
  /*gap: 6px;*/
}

.vote-inline .help-text {
  font-size: 13px;
  color: var(--muted, #a0a5aa);
  margin: 0;
}

.breadcrumb-row .vote-count {
  text-align: right;
  color: var(--muted);
  width: 100%;
  text-align: right;
  font-size: 12px;
  margin-bottom: 15px;
  font-weight: 900;
}

.breadcrumb-actions .btn, .breadcrumb-actions .btn img {
  background: none;
  border: none;
  white-space: nowrap;
  transition: 0.3s ease all;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.breadcrumb-actions .btn.vote-btn {
  margin-bottom: 5px;
}

.breadcrumb-actions .btn:hover img {
  transform: scale(1.1);
  filter: saturate(5);
}

@media (max-width: 600px) {
  .breadcrumb-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* ---------- Calculator utility classes (replace inline styles) ---------- */
.form-hint {
  grid-column: 1/-1;
  margin: 0;
}

.results-grid {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.result--highlight {
  font-size: 20px;
}

.code-block {
  white-space: pre-wrap;
  margin: 0;
}

.steps-list {
  margin: 0;
  padding-left: 18px;
}

.toc-list {
  margin-top: 8px;
}

.last-updated .help-text {
  margin: 0 0 10px 0;
}

/* ---------- Category index calculator grid ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.card--calc {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card--calc:hover {
  border-color: color-mix(in srgb, var(--border, #1a1f27), currentColor 35%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card--calc:focus-visible {
  outline: 2px solid #7fb0ff;
  outline-offset: 2px;
}

.card__title {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
}

.card__desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted, #a0a5aa);
  line-height: 1.5;
}

/* ---------- GYIK (FAQ) accordion component ---------- */
.gyik-accordion {
  display: grid;
  gap: 0;
}

.gyik-item {
  border-bottom: 1px solid var(--border, #1a1f27);
}

.gyik-item:last-child {
  border-bottom: 0;
}

.gyik-question {
  margin: 0;
}

.gyik-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text, #ecf1f4);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
}

.gyik-toggle:hover {
  color: var(--link, #7fb0ff);
}

.gyik-toggle:focus-visible {
  outline: 2px solid #7fb0ff;
  outline-offset: 2px;
  border-radius: 4px;
}

.gyik-toggle__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.2s ease;
}

.gyik-toggle__icon::before,
.gyik-toggle__icon::after {
  content: "";
  position: absolute;
  background: var(--muted, #a0a5aa);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1px;
}

.gyik-toggle__icon::before {
  width: 12px;
  height: 2px;
}

.gyik-toggle__icon::after {
  width: 2px;
  height: 12px;
  transition: transform 0.2s ease;
}

.gyik-toggle[aria-expanded=true] .gyik-toggle__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.gyik-answer {
  overflow: hidden;
  max-height: 500px;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  opacity: 1;
}

.gyik-answer--closed {
  max-height: 0;
  opacity: 0;
}

.gyik-answer__inner {
  padding: 0 0 14px 0;
}

.gyik-answer__inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text, #ecf1f4);
}

@media (prefers-reduced-motion: reduce) {
  .gyik-answer {
    transition: none;
  }
  .gyik-toggle__icon::after {
    transition: none;
  }
}
/* ---------- Header component styles (moved from inline <style> in header.php) ---------- */
.hdr-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hdr-nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.hdr-search {
  flex: 1 1 520px;
  min-width: 180px;
  position: relative;
}

.hdr-searchForm {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 10px;
  min-height: 46px;
}

.hdr-searchForm input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 14px;
  min-width: 80px;
}

.hdr-searchForm button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hdr-searchForm button img {
  width: 16px;
  height: 16px;
  display: block;
}

.hdr-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  padding: 6px;
  max-height: 320px;
  overflow: auto;
  display: none;
  z-index: 1000;
}

.hdr-suggestions[aria-expanded=true] {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.hdr-suggestions a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.hdr-suggestions a:hover,
.hdr-suggestions a[aria-selected=true] {
  background: color-mix(in srgb, var(--panel), #fff 4%);
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid #2a2f38;
  border-radius: 10px;
  padding: 6px 10px;
  white-space: nowrap;
}

.cats-wrap {
  position: sticky;
  top: 0;
  z-index: 2;
  border-top: 1px solid color-mix(in srgb, var(--border), #fff 4%);
  border-bottom: 1px solid color-mix(in srgb, var(--border), #fff 4%);
  background: color-mix(in srgb, var(--bg), #000 3%);
  padding: 6px 0;
}

.cats-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-evenly;
  overflow: auto;
  padding: 8px 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.cats-bar::-webkit-scrollbar {
  height: 8px;
}

.cats-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--muted);
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1;
}

.cats-chip img {
  display: inline-block;
}

.cats-chip:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cats-chip.matched {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cats-quick {
  display: none;
}

@media (max-width: 900px) {
  .hdr-line {
    flex-wrap: wrap;
  }
  .hdr-search {
    order: 3;
    flex: 1 1 100%;
  }
  .hdr-nav {
    order: 2;
  }
  .theme-switch {
    order: 2;
    margin-left: auto;
  }
  .brand {
    order: 1;
    font-size: 1.2rem;
  }
  .cats-bar {
    gap: 10px;
    padding: 6px 12px;
  }
  .cats-chip {
    font-size: 13px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
  }
  .cats-chip:hover {
    border-color: color-mix(in srgb, var(--border), currentColor 35%);
    text-decoration: none;
  }
  .cats-chip img {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 640px) {
  .hdr-line {
    gap: 8px;
  }
  .hdr-searchForm {
    padding: 6px 8px;
  }
  .hdr-searchForm input {
    font-size: 16px;
  }
  .theme-switch {
    padding: 6px 8px;
  }
}
/* ---------- Share modal component (merged from modal.scss) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  will-change: backdrop-filter;
  z-index: 3;
}

.modal__panel {
  position: relative;
  max-width: 520px;
  width: calc(100% - 32px);
  margin: 20vh auto;
  background: var(--card, #11151a);
  border: 1px solid var(--border, #1a1f27);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: var(--text, #ecf1f4);
  overflow: hidden;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
  z-index: 4;
}

.modal:not([hidden]) .modal__panel {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .modal__panel {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
.modal__header,
.modal__body,
.modal__footer {
  padding: 12px 14px;
}

.modal__header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border, #1a1f27);
}

.modal__header h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text, #ecf1f4);
}

.modal__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted, #a0a5aa);
  width: 32px;
  height: 32px;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 24px;
}

.modal__close:hover {
  color: var(--text, #ecf1f4);
  background: color-mix(in srgb, var(--panel, #0e1217), #fff 4%);
}

.modal__close:focus-visible {
  outline: 2px solid #7fb0ff;
  outline-offset: 2px;
}

.modal__body p {
  margin: 0 0 10px 0;
  color: var(--text, #ecf1f4);
}

.share-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.share-url {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #1a1f27);
  background: var(--panel, #0e1217);
  color: var(--text, #ecf1f4);
  font: inherit;
}

.share-url:focus-visible {
  outline: 2px solid #7fb0ff;
  outline-offset: 2px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border, #1a1f27);
}

.modal .btn {
  border: 1px solid var(--border, #1a1f27);
  background: var(--panel, #0e1217);
  color: var(--text, #ecf1f4);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.modal .btn:hover {
  border-color: color-mix(in srgb, var(--border, #1a1f27), currentColor 35%);
}

.modal .btn:focus-visible {
  outline: 2px solid #7fb0ff;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .modal__panel {
    width: calc(100% - 24px);
    margin: 8vh 12px;
    border-radius: 12px;
  }
}
/*# sourceMappingURL=style.css.map */