/* ═══════════════════════════════════════════════════════════════════════════
   ArtLair — theme 2026 "Ember Ink"
   Loaded after style.css and scoped with body.theme-2026, so it re-skins the
   existing markup without touching page HTML. Every rule here is an override;
   nothing in the site depends on this file, so deleting the <link> reverts.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Palette: warm ink ground, cream type, ember accent, jade support */
  --ui-bg: #0c0b10;
  --ui-bg-2: #121019;
  --ui-surface: #151220;
  --ui-surface-2: #1b1726;
  --ui-line: #2c2739;
  --ui-line-soft: #221e2c;
  --ui-ink: #f4efe6;
  --ui-ink-dim: #a9a2b6;
  --ui-ink-faint: #6f687e;
  --ui-ember: #ff684a;
  --ui-ember-2: #ffc46b;
  --ui-jade: #46d9a5;
  --ui-sky: #6fa8ff;
  --ui-radius: 18px;
  --ui-radius-sm: 12px;
  --ui-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
  --ui-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ui-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  /* Legacy variables the old stylesheet reads — remapped so old rules match */
  --bg: var(--ui-bg);
  --surface: var(--ui-surface);
  --surface2: var(--ui-surface-2);
  --border: var(--ui-line);
  --accent: var(--ui-ember);
  --accent-light: var(--ui-ember-2);
  --accent-dark: #d94f30;
  --text: var(--ui-ink);
  --muted: var(--ui-ink-dim);
}

body.theme-2026 {
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(255, 107, 74, .10), transparent 60%),
    radial-gradient(900px 520px at 88% 0%, rgba(111, 168, 255, .07), transparent 62%),
    var(--ui-bg);
  color: var(--ui-ink);
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: .004em;
}

/* ── Type scale ───────────────────────────────────────────────────────────── */
body.theme-2026 h1,
body.theme-2026 .landing-title,
body.theme-2026 .idx-hero h1 {
  font-family: var(--ui-serif);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.06;
  color: var(--ui-ink);
}
body.theme-2026 h2, body.theme-2026 h3 { letter-spacing: -.01em; }
body.theme-2026 a { color: var(--ui-ember-2); }
body.theme-2026 a:hover { color: var(--ui-ember); }
body.theme-2026 ::selection { background: rgba(255, 107, 74, .32); color: #fff; }

/* ── Focus + scrollbars ───────────────────────────────────────────────────── */
body.theme-2026 :focus-visible {
  outline: 2px solid var(--ui-ember-2);
  outline-offset: 2px;
  border-radius: 6px;
}
body.theme-2026 ::-webkit-scrollbar { width: 10px; height: 10px; }
body.theme-2026 ::-webkit-scrollbar-track { background: var(--ui-bg); }
body.theme-2026 ::-webkit-scrollbar-thumb {
  background: #2f2940;
  border-radius: 99px;
  border: 2px solid var(--ui-bg);
}
body.theme-2026 ::-webkit-scrollbar-thumb:hover { background: #3d3553; }

/* ── Top navigation ───────────────────────────────────────────────────────── */
body.theme-2026 .navbar {
  background: rgba(12, 11, 16, .78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--ui-line-soft);
  position: sticky;
  top: 0;
  z-index: 300;
}
body.theme-2026 .nav-container { gap: 18px; max-width: 1440px; margin: 0 auto; padding: 10px 24px; }
body.theme-2026 .nav-links { gap: 4px; }
body.theme-2026 .nav-links > li > a {
  color: var(--ui-ink-dim);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .16s ease, background .16s ease;
}
body.theme-2026 .nav-links > li > a:hover,
body.theme-2026 .nav-links > li > a.active {
  color: var(--ui-ink);
  background: rgba(255, 255, 255, .06);
}
body.theme-2026 .nav-avatar { border: 1px solid var(--ui-line); }

/* ── Landing hero ─────────────────────────────────────────────────────────── */
body.theme-2026 .landing-wrap { padding: clamp(48px, 9vw, 108px) 20px clamp(28px, 5vw, 48px); }
body.theme-2026 .landing-inner { max-width: 880px; }
body.theme-2026 .landing-logo { filter: drop-shadow(0 12px 32px rgba(255, 107, 74, .25)); }
body.theme-2026 .landing-title {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  margin-bottom: .35em;
  background: linear-gradient(104deg, var(--ui-ink) 22%, var(--ui-ember-2) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.theme-2026 .landing-sub {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: var(--ui-ink-dim);
  margin-bottom: 1.6em;
}
body.theme-2026 .landing-intro {
  color: var(--ui-ink-faint);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 62ch;
  margin: 0 auto 2.2em;
}

/* ── Search ───────────────────────────────────────────────────────────────── */
body.theme-2026 .landing-search,
body.theme-2026 .idx-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  padding: 8px;
  box-shadow: var(--ui-shadow);
}
body.theme-2026 .idx-search { justify-content: flex-start; border-radius: var(--ui-radius); }
body.theme-2026 .landing-search input[type="text"],
body.theme-2026 .idx-search input[type="text"] {
  flex: 1 1 260px;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ui-ink);
  font-size: 1rem;
  padding: 12px 18px;
}
body.theme-2026 .landing-search input::placeholder,
body.theme-2026 .idx-search input::placeholder { color: var(--ui-ink-faint); }
body.theme-2026 .landing-search .ss-wrap,
body.theme-2026 .idx-search .ss-wrap { flex: 1 1 260px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
body.theme-2026 .btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  padding: 11px 20px;
  border: 1px solid transparent;
  transition: transform .14s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
body.theme-2026 .btn:active { transform: translateY(1px); }
body.theme-2026 .btn-primary {
  background: linear-gradient(100deg, var(--ui-ember), var(--ui-ember-2));
  color: #22130c;
  border-color: transparent;
  box-shadow: 0 12px 26px -16px rgba(255, 107, 74, .9);
}
body.theme-2026 .btn-primary:hover {
  background: linear-gradient(100deg, #ff7d60, #ffc272);
  color: #1b0f09;
}
body.theme-2026 .btn-secondary {
  background: rgba(255, 255, 255, .04);
  border-color: var(--ui-line);
  color: var(--ui-ink);
}
body.theme-2026 .btn-secondary:hover {
  background: rgba(255, 255, 255, .09);
  border-color: #3b3450;
  color: var(--ui-ink);
}
body.theme-2026 .btn-sm { padding: 8px 14px; font-size: .84rem; }
body.theme-2026 .btn-danger { background: var(--ui-ember); color: #1b0f09; }

/* ── Filter panel ─────────────────────────────────────────────────────────── */
body.theme-2026 .idx-filter-panel {
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  padding: 16px;
}
body.theme-2026 .idx-filter-pill {
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 10px;
}
body.theme-2026 .tag,
body.theme-2026 .landing-tags .tag {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--ui-line-soft);
  color: var(--ui-ink-dim);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .82rem;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
body.theme-2026 .tag:hover {
  color: var(--ui-ink);
  border-color: var(--ui-ember);
  background: rgba(255, 107, 74, .1);
}

/* ── Browse hero ──────────────────────────────────────────────────────────── */
body.theme-2026 .idx-hero {
  background: linear-gradient(150deg, rgba(255, 107, 74, .09), rgba(111, 168, 255, .05) 55%, transparent);
  border: 1px solid var(--ui-line-soft);
  border-radius: 26px;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 22px;
}
body.theme-2026 .idx-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); }
body.theme-2026 .idx-result-count {
  background: rgba(255, 107, 74, .12);
  color: var(--ui-ember-2);
  border: 1px solid rgba(255, 107, 74, .28);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
body.theme-2026 .idx-hero-intro { color: var(--ui-ink-dim); line-height: 1.7; }

/* ── Layout: sidebar + grid ───────────────────────────────────────────────── */
body.theme-2026 .idx-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 56px;
}
body.theme-2026 .idx-sidebar { position: sticky; top: 84px; display: grid; gap: 16px; }
body.theme-2026 .idx-tags-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line-soft);
  border-radius: var(--ui-radius);
  padding: 16px;
}
body.theme-2026 .idx-card-heading {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ui-ink-faint);
  margin-bottom: 12px;
}
body.theme-2026 .idx-tag-list { display: grid; gap: 2px; }
body.theme-2026 .idx-tag-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--ui-ink-dim);
  font-size: .86rem;
  transition: background .14s ease, color .14s ease;
}
body.theme-2026 .idx-tag-bar:hover { background: rgba(255, 255, 255, .05); color: var(--ui-ink); }
body.theme-2026 .idx-tag-count { color: var(--ui-ink-faint); font-size: .76rem; font-variant-numeric: tabular-nums; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
body.theme-2026 .idx-grid {
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px;
}
body.theme-2026 .idx-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line-soft);
  border-radius: var(--ui-radius);
  overflow: hidden;
  transition: transform .2s cubic-bezier(.2, .7, .3, 1), border-color .2s ease, box-shadow .2s ease;
}
body.theme-2026 .idx-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 74, .45);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 107, 74, .12);
}
body.theme-2026 .idx-thumb,
body.theme-2026 .idx-video-placeholder {
  height: auto;
  aspect-ratio: 4 / 3;
  background: var(--ui-surface-2);
}
body.theme-2026 .idx-thumb img,
body.theme-2026 .idx-video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
body.theme-2026 .idx-card:hover .idx-thumb img { transform: scale(1.035); }
body.theme-2026 .idx-card-info { padding: 12px 14px 14px; }
body.theme-2026 .idx-card-meta { color: var(--ui-ink-faint); font-size: .8rem; gap: 12px; }
body.theme-2026 .idx-card-stats span { color: var(--ui-ink-dim); }
body.theme-2026 .idx-rating-badge {
  border-radius: 8px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 3px 6px;
  backdrop-filter: blur(6px);
  background: rgba(10, 9, 14, .72);
  border: 1px solid rgba(255, 255, 255, .14);
}
body.theme-2026 .rb-safe { color: var(--ui-jade); }
body.theme-2026 .rb-questionable { color: var(--ui-ember-2); }
body.theme-2026 .rb-mature { color: #ff8080; }
body.theme-2026 .rb-ai { color: var(--ui-sky); }
body.theme-2026 .idx-status-badge { border-radius: 8px; font-weight: 700; }
body.theme-2026 .idx-play {
  background: rgba(10, 9, 14, .6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
}
body.theme-2026 .idx-empty {
  background: var(--ui-surface);
  border: 1px dashed var(--ui-line);
  border-radius: var(--ui-radius);
  color: var(--ui-ink-dim);
  padding: 28px;
  text-align: center;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
body.theme-2026 .pagination,
body.theme-2026 .paginate { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 8px; }
body.theme-2026 .pagination a,
body.theme-2026 .pagination span,
body.theme-2026 .paginate a,
body.theme-2026 .paginate span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--ui-line-soft);
  background: var(--ui-surface);
  color: var(--ui-ink-dim);
  font-size: .86rem;
  font-weight: 600;
  padding: 0 12px;
}
body.theme-2026 .pagination a:hover,
body.theme-2026 .paginate a:hover { border-color: var(--ui-ember); color: var(--ui-ink); }
body.theme-2026 .pagination .current,
body.theme-2026 .paginate .current {
  background: linear-gradient(100deg, var(--ui-ember), var(--ui-ember-2));
  border-color: transparent;
  color: #22130c;
}

/* ── Image page surfaces ──────────────────────────────────────────────────── */
body.theme-2026 .ip-panel,
body.theme-2026 .ip-sidebar .ip-panel {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line-soft);
  border-radius: var(--ui-radius);
}
body.theme-2026 .ip-desc, body.theme-2026 .ip-meta { color: var(--ui-ink-dim); }
body.theme-2026 .ip-btn {
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--ui-line);
  color: var(--ui-ink);
}
body.theme-2026 .ip-btn:hover { border-color: var(--ui-ember); color: var(--ui-ink); }
body.theme-2026 input[type="text"],
body.theme-2026 input[type="email"],
body.theme-2026 input[type="password"],
body.theme-2026 input[type="search"],
body.theme-2026 textarea,
body.theme-2026 select {
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  color: var(--ui-ink);
  padding: 11px 14px;
}
body.theme-2026 input:focus, body.theme-2026 textarea:focus, body.theme-2026 select:focus {
  border-color: var(--ui-ember);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 74, .18);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
body.theme-2026 .site-footer {
  background: var(--ui-bg-2);
  border-top: 1px solid var(--ui-line-soft);
  color: var(--ui-ink-dim);
  margin-top: 40px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
body.theme-2026 .footer-container { max-width: 1440px; margin: 0 auto; padding: 36px 24px; }

/* ── Mobile header + drawer ───────────────────────────────────────────────── */
body.theme-2026 .m-header {
  background: rgba(12, 11, 16, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ui-line-soft);
  padding-top: env(safe-area-inset-top, 0);
}
body.theme-2026 .m-icon-btn { color: var(--ui-ink-dim); border-radius: 12px; }
body.theme-2026 .m-badge {
  background: var(--ui-ember);
  color: #1b0f09;
  font-weight: 800;
  border-radius: 999px;
}
body.theme-2026 .m-drawer {
  background: var(--ui-bg-2);
  border-left: 1px solid var(--ui-line);
}
body.theme-2026 .m-drawer-body a { color: var(--ui-ink-dim); border-radius: 10px; }
body.theme-2026 .m-drawer-body a:hover,
body.theme-2026 .m-drawer-body a.active { background: rgba(255, 255, 255, .06); color: var(--ui-ink); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  body.theme-2026 .idx-layout { grid-template-columns: 208px minmax(0, 1fr); gap: 18px; padding: 0 18px 48px; }
  body.theme-2026 .idx-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
}

@media (max-width: 860px) {
  /* Sidebar becomes a horizontal rail above the grid */
  body.theme-2026 .idx-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0 14px 40px; }
  body.theme-2026 .idx-sidebar { position: static; display: block; }
  body.theme-2026 .idx-tags-card { padding: 12px; }
  body.theme-2026 .idx-tag-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  body.theme-2026 .idx-tag-list::-webkit-scrollbar { display: none; }
  body.theme-2026 .idx-tag-bar {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--ui-line-soft);
    border-radius: 999px;
    padding: 8px 12px;
  }
  body.theme-2026 .idx-tag-count { margin-left: 6px; }
  body.theme-2026 .idx-hero { border-radius: 20px; padding: 18px; }
  body.theme-2026 .idx-hero-intro { display: none; }
  body.theme-2026 .landing-search,
  body.theme-2026 .idx-search { border-radius: 20px; padding: 8px; }
  body.theme-2026 .landing-search .btn,
  body.theme-2026 .idx-search .btn { flex: 1 1 auto; justify-content: center; }
  body.theme-2026 .idx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.theme-2026 .idx-card { border-radius: 14px; }
  body.theme-2026 .idx-card:hover { transform: none; }
  body.theme-2026 .idx-card-info { padding: 9px 10px 11px; }
  body.theme-2026 .idx-card-meta { font-size: .74rem; gap: 8px; }
  body.theme-2026 .landing-wrap { padding-top: 40px; }
  body.theme-2026 .landing-intro { display: none; }
}

@media (max-width: 430px) {
  body.theme-2026 .idx-grid { gap: 8px; }
  body.theme-2026 .idx-thumb, body.theme-2026 .idx-video-placeholder { aspect-ratio: 1 / 1; }
  body.theme-2026 .landing-search input[type="text"] { font-size: 16px; } /* stops iOS zoom */
  body.theme-2026 .pagination a, body.theme-2026 .pagination span { min-width: 34px; height: 34px; }
}

/* Touch devices: no hover lift, bigger tap targets */
@media (hover: none) {
  body.theme-2026 .idx-card:hover { transform: none; box-shadow: none; border-color: var(--ui-line-soft); }
  body.theme-2026 .idx-tag-bar { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-2026 *,
  body.theme-2026 *::before,
  body.theme-2026 *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Phone layout (from the approved mobile mock)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* two fixed columns rather than auto-fill: predictable on every phone */
  /* index.php renders the grid as #gwGrid, and an id beats a class — match it
     explicitly or the desktop column rule wins on phones. */
  .theme-2026 .idx-grid,
  .theme-2026 #gwGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .theme-2026 .idx-thumb { aspect-ratio: 4 / 3; height: auto; }
  .theme-2026 .idx-card { border-radius: 14px; }
  .theme-2026 .idx-card-info { padding: 8px 10px 10px; }

  /* search: the button collapses to a round "Go" */
  .theme-2026 .idx-search,
  .theme-2026 .landing-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
  }
  .theme-2026 .idx-search input[type="text"],
  .theme-2026 .landing-search input[type="text"] {
    border: 0;
    background: transparent;
    padding: 8px 6px 8px 12px;
    font-size: 16px;            /* stops iOS zooming the page on focus */
  }
  .theme-2026 .idx-search button[type="submit"],
  .theme-2026 .landing-search button[type="submit"] {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;               /* hide the word */
  }
  .theme-2026 .idx-search button[type="submit"]::after,
  .theme-2026 .landing-search button[type="submit"]::after {
    content: "Go";
    font-size: 13px;
    font-weight: 700;
  }
  /* the filter and clear buttons drop below the field */
  .theme-2026 .idx-search .idx-filter-wrap,
  .theme-2026 .landing-search .idx-filter-wrap { grid-column: 1 / -1; }

  /* sidebar becomes a scrollable pill rail above the grid */
  .theme-2026 .idx-layout { display: block; }
  .theme-2026 .idx-sidebar {
    position: static;
    margin: 0 -14px 14px;
    padding: 0 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .theme-2026 .idx-sidebar::-webkit-scrollbar { display: none; }
  .theme-2026 .idx-tags-card {
    display: flex;
    gap: 8px;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 0;
    min-width: max-content;
  }
  .theme-2026 .idx-card-heading { display: none; }
  .theme-2026 .idx-tag-list { display: flex; gap: 8px; }
  .theme-2026 .idx-tag-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ui-surface);
    border: 1px solid var(--ui-line);
  }
  .theme-2026 .idx-tag-bar:first-child,
  .theme-2026 .idx-tag-bar.active {
    border-color: var(--ui-ember);
    color: var(--ui-ember);
  }

  /* header: one row, logo left, credits + menu right */
  .theme-2026 .m-header-inner { gap: 10px; }
  .theme-2026 .idx-hero h1 { font-size: 1.6rem; }
  .theme-2026 .landing-title { font-size: clamp(2.1rem, 11vw, 3rem); }
}

@media (max-width: 380px) {
  .theme-2026 .idx-grid { gap: 8px; }
  .theme-2026 .idx-card-info { padding: 7px 8px 9px; }
  .theme-2026 .idx-card-meta { font-size: 11px; }
}

/* style.css drops the grid to display:block under 860px, which makes every
   grid-template-columns rule a no-op. Pin the layout explicitly. */
body.theme-2026 .idx-grid,
body.theme-2026 #gwGrid {
  display: grid;
  align-items: start;
}
@media (max-width: 860px) {
  body.theme-2026 .idx-grid,
  body.theme-2026 #gwGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* the round Go button: fixed box, no inherited padding */
body.theme-2026 .idx-search button[type="submit"],
body.theme-2026 .landing-search button[type="submit"] {
  box-sizing: border-box;
}
@media (max-width: 640px) {
  body.theme-2026 .idx-search button[type="submit"],
  body.theme-2026 .landing-search button[type="submit"] {
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    padding: 0;
    flex: 0 0 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Base layer. style.css normally provides these resets; repeating them here
   means the theme still looks right on its own, in either load order.
   ═══════════════════════════════════════════════════════════════════════════ */
body.theme-2026 { margin: 0; padding-bottom: 0; }
body.theme-2026 *,
body.theme-2026 *::before,
body.theme-2026 *::after { box-sizing: border-box; }
body.theme-2026 ul,
body.theme-2026 ol { list-style: none; margin: 0; padding: 0; }
body.theme-2026 li { list-style: none; }
body.theme-2026 a { text-decoration: none; }
body.theme-2026 img { max-width: 100%; height: auto; }
body.theme-2026 button,
body.theme-2026 input,
body.theme-2026 select,
body.theme-2026 textarea { font: inherit; color: inherit; }
body.theme-2026 .nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
body.theme-2026 .nav-links > li { position: relative; }

/* menus stay closed until they are hovered or clicked open */
body.theme-2026 .nav-links .dropdown-menu { display: none; }
body.theme-2026 .nav-links .dropdown:hover > .dropdown-menu,
body.theme-2026 .nav-links .dropdown.open > .dropdown-menu { display: block; }
@media (min-width: 1024px) {
  /* the rail shows category/social children inline (rule lives in the sidebar
     section); the profile menu still opens on hover */
  body.theme-2026 .nav-links > li.dropdown:has(#profileDropdown):hover > a#profileDropdown { background: var(--ui-surface-2); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Tag list: the row is the pill, the inline-width progress bar is hidden
   ═══════════════════════════════════════════════════════════════════════════ */
body.theme-2026 .idx-tag-bar { display: none !important; }
body.theme-2026 .idx-tag-list { display: grid; gap: 2px; margin: 0; padding: 0; }
body.theme-2026 .idx-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border-bottom: 0;
  position: relative;
  transition: background .14s ease;
}
body.theme-2026 .idx-tag-row:hover { background: rgba(255, 255, 255, .05); }
body.theme-2026 .idx-tag-row.is-active { background: rgba(255, 107, 74, .12); }
body.theme-2026 .idx-tag-link {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ui-ink-dim);
  font-size: .86rem;
}
body.theme-2026 .idx-tag-row:hover .idx-tag-link { color: var(--ui-ink); }
body.theme-2026 .idx-tag-row.is-active .idx-tag-link { color: var(--ui-ember); font-weight: 600; }
body.theme-2026 .idx-tag-count {
  margin-left: auto;
  color: var(--ui-ink-faint);
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  body.theme-2026 .idx-tag-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  body.theme-2026 .idx-tag-list::-webkit-scrollbar { display: none; }
  body.theme-2026 .idx-tag-row {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--ui-surface);
    border: 1px solid var(--ui-line-soft);
    min-height: 38px;
  }
  body.theme-2026 .idx-tag-count { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Top bar (the old header): horizontal navigation, no rail, no body offset
   ═══════════════════════════════════════════════════════════════════════════ */
body.theme-2026 { padding-left: 0 !important; }
body.theme-2026 .navbar {
  position: sticky;
  top: 0;
  inset: auto;
  width: 100%;
  height: auto;
  z-index: 300;
  overflow: visible;
  border-right: 0;
  border-bottom: 1px solid var(--ui-line-soft);
}
body.theme-2026 .nav-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1440px;
  min-height: 0;
  margin: 0 auto;
  padding: 10px 24px;
}
body.theme-2026 .nav-brand { padding: 0; border-bottom: 0; }
body.theme-2026 .nav-brand-logo { height: 36px !important; }
body.theme-2026 .nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  width: auto;
  flex: 0 1 auto;
}
body.theme-2026 .nav-links > li { width: auto; }
body.theme-2026 .nav-links > li > a {
  width: auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .92rem;
}
body.theme-2026 .nav-links .dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  padding: 6px;
  margin: 0;
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  box-shadow: var(--ui-shadow);
  z-index: 350;
}
body.theme-2026 .nav-links .dropdown-menu a {
  display: block;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: .88rem;
  color: var(--ui-ink-dim);
}
body.theme-2026 .nav-links .dropdown-menu a:hover {
  background: rgba(255, 255, 255, .07);
  color: var(--ui-ink);
}
body.theme-2026 .nav-avatar { width: 28px; height: 28px; border-radius: 999px; }
body.theme-2026 .idx-sidebar { top: 84px; }
body.theme-2026 .idx-layout { max-width: 1440px; }

@media (min-width: 1024px) {
  body.theme-2026 .idx-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 22px; }
  body.theme-2026 .idx-grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Menu hover bridge
   The 6px space under a trigger is real space: the pointer crossed it, left the
   <li>, and the menu closed on the way down. An invisible strip fills that gap
   and belongs to the same <li>, so the menu stays open while the pointer
   travels into it.
   ═══════════════════════════════════════════════════════════════════════════ */
body.theme-2026 .nav-links > li.dropdown { position: relative; }
body.theme-2026 .nav-links > li.dropdown::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 100%;
  height: 14px;
  background: transparent;
  z-index: 340;
  pointer-events: auto;
}
/* The trigger pill is ~7px taller than its <li>, so position from the li edge
   plus 9px to land 2px under the pill, inside the bridge above. */
body.theme-2026 .nav-links > li.dropdown > .dropdown-menu {
  top: calc(100% + 9px);
  z-index: 350;
}
