/*
Theme Name: Plugindock
Theme URI: https://plugindock.pro/
Description: Theme for the Plugindock catalog of free WordPress plugins and themes. Requires the Plugindock Core plugin.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
Author: Plugindock
License: GPLv2 or later
Text Domain: plugindock
*/

/* Mockup v1 — free plugin catalog */
:root {
  --canvas: #F3F6FA;
  --surface: #FFFFFF;
  --ink: #172033;
  --ink-2: #4A5568;
  --ink-3: #7A8699;
  --line: #DCE3EC;
  --line-soft: #E9EEF4;
  --accent: #1F5EFF;
  --accent-ink: #1747C7;
  --accent-wash: #E8EEFF;
  --ok: #1A8F5A;
  --ok-wash: #E3F4EB;
  --fresh: #B86E00;
  --fresh-wash: #FCF1DE;
  --star: #E0A100;

  --r-panel: 16px;
  --r-card: 12px;
  --r-control: 10px;
  --r-chip: 6px;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "tnum" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search input {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: var(--r-control);
  background: var(--canvas); padding: 0 16px 0 42px; font: inherit; font-size: 15px; color: var(--ink);
}
.header-search input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-wash); }
.header-search svg { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; color: var(--ink-3); }
.header-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; color: var(--ink-2); margin-left: auto; }
.header-nav a:hover { color: var(--accent); }
.header-nav a[aria-current="page"] { color: var(--ink); }

.cat-bar { border-top: 1px solid var(--line-soft); }
.cat-bar ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; height: 48px; align-items: center; }
.cat-bar li:first-child a { margin-left: -12px; }
.cat-bar a { display: block; padding: 6px 12px; border-radius: var(--r-chip); font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.cat-bar a:hover { background: var(--canvas); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 20px; max-width: 14ch;
}
.hero p.lede { font-size: 18px; color: var(--ink-2); max-width: 46ch; margin: 0 0 28px; }

.big-search { display: flex; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-panel); padding: 6px; max-width: 580px; }
.big-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 17px; padding: 0 14px; min-width: 0; color: var(--ink); }
.big-search input:focus { outline: none; }
.big-search select { border: 0; border-left: 1px solid var(--line); background: none; font: inherit; font-size: 15px; color: var(--ink-2); padding: 0 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--r-control); border: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn svg { width: 18px; height: 18px; }

.quick-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink-3); align-items: center; }
.quick-tags a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--surface); }
.quick-tags a:hover { border-color: var(--accent); color: var(--accent); }

/* Release feed — the signature element */
.feed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.feed-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.feed-head h2 { font-size: 16px; margin: 0; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(26,143,90,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(26,143,90,.45); } 70% { box-shadow: 0 0 0 8px rgba(26,143,90,0); } 100% { box-shadow: 0 0 0 0 rgba(26,143,90,0); } }
.feed-head a { font-size: 14px; color: var(--accent); font-weight: 500; }
.feed ol { list-style: none; margin: 0; padding: 4px 0; }
.feed li a { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 11px 20px; }
.feed li a:hover { background: var(--canvas); }
.feed .name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.feed .bump { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.feed .bump .old { text-decoration: line-through; text-decoration-color: rgba(122,134,153,.6); }
.feed .bump .new { color: var(--ink); font-weight: 600; background: var(--fresh-wash); color: var(--fresh); padding: 0 6px; border-radius: 4px; }
.feed time { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* Plugin icon placeholders */
.icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 14px; flex: none; }
.icon.lg { width: 64px; height: 64px; border-radius: 14px; font-size: 22px; }
.icon.xl { width: 96px; height: 96px; border-radius: 20px; font-size: 32px; }
.i1 { background: #2C3E91; } .i2 { background: #A3268F; } .i3 { background: #1E7F74; } .i4 { background: #7F54B3; }
.i5 { background: #E25B2C; } .i6 { background: #0F6E9E; } .i7 { background: #D9405F; } .i8 { background: #3B4252; }
.i9 { background: #2A8A3E; } .i10 { background: #B8860B; } .i11 { background: #5B4BDB; } .i12 { background: #C2410C; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
.section-head a { font-size: 15px; color: var(--accent); font-weight: 500; }
.section-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 15px; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.cat:hover { border-color: var(--accent); }
.cat svg { width: 26px; height: 26px; color: var(--accent); }
.cat strong { font-size: 15px; display: block; }
.cat span { font-size: 13px; color: var(--ink-3); }

/* Plugin cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card:hover { border-color: #B7C3D4; }
.card-top { display: flex; gap: 14px; align-items: flex-start; }
.card h3 { font-size: 17px; margin: 0; line-height: 1.3; }
.card h3 a:hover { color: var(--accent); }
.card .by { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-soft); border-radius: 8px; margin-top: auto; }
.facts div { padding: 8px 10px; }
.facts div + div { border-left: 1px solid var(--line-soft); }
.facts dt { font-size: 12px; color: var(--ink-3); }
.facts dd { margin: 0; font-size: 14px; font-weight: 600; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); }
.stars { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 500; }
.stars svg { width: 14px; height: 14px; color: var(--star); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-chip); }
.chip-ok { background: var(--ok-wash); color: var(--ok); }
.chip-fresh { background: var(--fresh-wash); color: var(--fresh); }
.chip svg { width: 13px; height: 13px; }

/* Guides (editorial) */
.guides { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.guide { border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; border: 1px solid var(--line); background: var(--surface); }
.guide.lead { background: var(--ink); color: #fff; border-color: var(--ink); }
.guide.lead .meta { color: #A9B4C6; }
.guide h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.01em; }
.guide.lead h3 { font-size: 26px; }
.guide .meta { font-size: 13px; color: var(--ink-3); }
.guide .stack { display: flex; margin-top: 20px; }
.guide .stack .icon { width: 30px; height: 30px; font-size: 11px; border: 2px solid var(--ink); margin-right: -6px; }
.guide:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 14px; color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--accent); }
.foot-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-3); }

/* Mobile bottom nav */
.bottom-nav { display: none; }

/* ---------- Plugin page ---------- */
.crumbs { font-size: 14px; color: var(--ink-3); padding: 20px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { color: var(--line); }
.p-banner { margin-top: 16px; height: 220px; border-radius: var(--r-panel); background:
  radial-gradient(circle at 85% 30%, rgba(255,255,255,.18) 0 90px, transparent 91px),
  radial-gradient(circle at 70% 120%, rgba(255,255,255,.12) 0 140px, transparent 141px),
  #2C3E91; position: relative; overflow: hidden; }
.p-banner .banner-label { position: absolute; left: 32px; bottom: 28px; color: #fff; font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; opacity: .95; }
.p-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; margin-top: -40px; position: relative; }
.p-title { display: flex; gap: 20px; align-items: flex-end; padding: 0 0 0 24px; }
.p-title .icon.xl { border: 4px solid var(--canvas); }
.p-title h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
.p-title .by { color: var(--ink-3); font-size: 15px; margin-top: 4px; }
.p-title .by a { color: var(--accent); }
.p-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 0 24px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 28px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab-panel { padding: 24px 0; }
.tab-panel[hidden] { display: none; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose ul { padding-left: 20px; }

.our-take { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-card); padding: 22px 24px; margin-bottom: 28px; }
.our-take h2 { font-size: 18px !important; margin: 0 0 8px !important; }
.our-take .who { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.pros-cons h3 { font-size: 14px; margin: 0 0 6px; }
.pros-cons ul { margin: 0; padding-left: 18px; font-size: 15px; }

.changelog { list-style: none; padding: 0; margin: 0; max-width: 68ch; }
.changelog li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.changelog strong { font-size: 15px; }
.changelog time { display: block; font-size: 13px; color: var(--ink-3); }
.changelog p { margin: 0; color: var(--ink-2); font-size: 15px; }

.aside { position: sticky; top: 140px; align-self: start; display: grid; gap: 16px; margin-top: 56px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px; }
.box .btn { width: 100%; }
.box .btn + .btn { margin-top: 10px; }
.dl-note { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; text-align: center; }
.info { margin: 0; display: grid; }
.info div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.info div:last-child { border-bottom: 0; }
.info dt { color: var(--ink-3); }
.info dd { margin: 0; font-weight: 600; text-align: right; }
.info dd a { color: var(--accent); }
.report { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; }
.report:hover { color: var(--accent); }
.report svg { width: 16px; height: 16px; }

.alts { display: grid; gap: 2px; }
.alts a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; margin: 0 -8px; }
.alts a:hover { background: var(--canvas); }
.alts strong { font-size: 14.5px; display: block; line-height: 1.3; }
.alts .sub { display: block; font-size: 13px; color: var(--ink-3); }
.box h3 { font-size: 15px; margin: 0 0 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .guides { grid-template-columns: 1fr 1fr; }
  .guide.lead { grid-column: 1 / -1; }
  .header-nav { display: none; }
  .p-layout { grid-template-columns: 1fr; margin-top: -40px; }
  .aside { position: static; margin-top: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .header-row { height: 60px; gap: 12px; }
  .header-search { display: none; }
  .logo { font-size: 18px; }
  .hero { padding: 32px 0; }
  .big-search { flex-wrap: wrap; gap: 6px; }
  .big-search input { flex-basis: 100%; height: 44px; }
  .big-search select { border-left: 0; flex: 1; height: 44px; background: var(--canvas); border-radius: 8px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .grid, .guides { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .p-banner { height: 140px; }
  .p-banner .banner-label { font-size: 20px; left: 20px; bottom: 50px; }
  .p-title { padding-left: 12px; gap: 14px; flex-direction: column; align-items: flex-start; }
  .p-title .icon.xl { width: 72px; height: 72px; font-size: 24px; }
  .p-title h1 { font-size: 26px; }
  .p-chips { margin-left: 0; }
  .pros-cons { grid-template-columns: 1fr; }
  .changelog li { grid-template-columns: 1fr; gap: 4px; }

  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: var(--ink-2); padding: 6px 0; position: relative; }
  .bottom-nav a[aria-current="page"] { color: var(--accent); }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav .badge { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
}

@media (max-width: 640px) {
  .site-footer { padding-bottom: 100px; }
}

/* fixes after review */
.p-layout > *, .hero-grid > * { min-width: 0; }
.p-title { align-items: flex-start; }
.p-title > div { padding-top: 54px; }
@media (max-width: 640px) {
  .p-title > div { padding-top: 0; }
}
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

/* ---------- Themes ---------- */
.theme-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.theme-filters a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.theme-filters a:hover { border-color: var(--ink-3); }
.theme-filters a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.theme { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.theme:hover { border-color: #B7C3D4; }
.shot { display: grid; gap: 8px; padding: 12px; aspect-ratio: 4 / 3; background: var(--t2); border-bottom: 1px solid var(--line-soft); align-content: start; }
.s-nav { height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--t) 0 18%, transparent 18% 60%, rgba(0,0,0,.12) 60% 66%, transparent 66% 70%, rgba(0,0,0,.12) 70% 76%, transparent 76% 80%, rgba(0,0,0,.12) 80% 86%, transparent 86%); }
.s-hero { height: 78px; border-radius: 6px; background: var(--t); position: relative; }
.s-hero::before { content: ""; position: absolute; left: 12px; top: 18px; width: 52%; height: 10px; border-radius: 3px; background: rgba(255,255,255,.9); box-shadow: 0 16px 0 -2px rgba(255,255,255,.5); }
.s-hero::after { content: ""; position: absolute; left: 12px; bottom: 14px; width: 26%; height: 12px; border-radius: 3px; background: rgba(255,255,255,.95); }
.s-serif { background: transparent; border: 1.5px solid var(--t); }
.s-serif::before { background: var(--t); box-shadow: 0 16px 0 -2px rgba(0,0,0,.25); width: 70%; height: 14px; }
.s-serif::after { background: var(--t); }
.s-split { background: linear-gradient(90deg, var(--t) 0 55%, rgba(0,0,0,.08) 55%); }
.s-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-two { grid-template-columns: 2fr 1fr; }
.s-row i { height: 36px; border-radius: 4px; background: rgba(0,0,0,.08); }
.theme-body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.theme-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.theme h3 { font-size: 16px; margin: 0; }
.theme h3 a:hover { color: var(--accent); }
.theme .by { font-size: 13px; color: var(--ink-3); }
.theme-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
@media (min-width: 641px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
@media (max-width: 1024px) { .themes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .themes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .theme-meta { flex-direction: column; align-items: flex-start; }
  .bottom-nav { grid-template-columns: repeat(5, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.theme-meta { flex-wrap: wrap; }
.theme-meta > * { white-space: nowrap; }
@media (max-width: 640px) {
  .theme-title { flex-direction: column; gap: 2px; }
  .theme h3 { font-size: 15px; }
  .theme-body { padding: 12px; }
  .theme-meta > * { white-space: normal; }
}

/* ---------- Category page ---------- */
.cat-head { padding: 28px 0 8px; display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: end; }
.cat-head h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 12px; }
.cat-head p { color: var(--ink-2); margin: 0; max-width: 60ch; font-size: 17px; }
.picks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 16px 18px; }
.picks h2 { font-size: 15px; margin: 0 0 10px; }
.picks ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.picks li a { display: grid; grid-template-columns: 22px 32px 1fr; gap: 10px; align-items: center; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; }
.picks li a:hover { background: var(--canvas); }
.picks .rank { font-weight: 700; color: var(--ink-3); font-size: 14px; text-align: center; }
.picks .icon { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
.picks strong { display: block; font-size: 14.5px; line-height: 1.25; }
.picks .why { display: block; font-size: 13px; color: var(--ink-3); }

.listing { display: grid; grid-template-columns: 250px 1fr; gap: 32px; margin-top: 28px; }
.listing > * { min-width: 0; }
.filters { position: sticky; top: 140px; align-self: start; display: grid; gap: 22px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.filters legend { font-weight: 600; font-size: 14.5px; margin-bottom: 8px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.check .n { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.filters .reset { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 500; font-size: 14px; cursor: pointer; justify-self: start; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { font-size: 15px; color: var(--ink-2); }
.toolbar .count strong { color: var(--ink); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.sort select { height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; font-size: 14.5px; color: var(--ink); padding: 0 10px; }
.filter-toggle { display: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 16px; }
.active-filters:empty { display: none; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent); background: var(--accent-wash); color: var(--accent-ink); border-radius: 999px; padding: 4px 10px 4px 12px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.active-filters button span { font-size: 16px; line-height: 1; }
.listing .grid { grid-template-columns: repeat(2, 1fr); }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--r-card); }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 500; font-size: 14.5px; padding: 0 12px; }
.pager a:hover { border-color: var(--ink-3); }
.pager a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.cat-faq { margin-top: 48px; max-width: 72ch; }
.cat-faq h2 { font-size: 22px; margin: 0 0 12px; letter-spacing: -0.01em; }
.cat-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.cat-faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.cat-faq summary::-webkit-details-marker { display: none; }
.cat-faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1; }
.cat-faq details[open] summary::after { content: "−"; }
.cat-faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- Theme page ---------- */
.t-hero { display: grid; grid-template-columns: 1fr 340px; gap: 32px; margin-top: 16px; }
.t-hero > * { min-width: 0; }
.browser { border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; background: var(--surface); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar .url { flex: 1; height: 26px; border-radius: 6px; background: var(--canvas); font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; padding: 0 10px; }
.devices { display: flex; gap: 2px; background: var(--canvas); border-radius: 8px; padding: 2px; }
.devices button { border: 0; background: none; border-radius: 6px; padding: 4px 8px; cursor: pointer; color: var(--ink-3); display: grid; place-items: center; }
.devices button svg { width: 16px; height: 16px; }
.devices button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.stage { background: var(--canvas); display: grid; place-items: center; padding: 0; transition: padding .25s ease; }
.stage .site { width: 100%; transition: width .3s ease; background: #fff; }
.stage.is-mobile { padding: 24px 0; }
.stage.is-mobile .site { width: 300px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.site { --t: #0B5FD9; font-size: 13px; }
.site .s-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; }
.site .s-logo { font-weight: 700; color: var(--t); font-size: 15px; }
.site .s-menu { display: flex; gap: 16px; color: #555; }
.site .s-banner { background: var(--t); color: #fff; padding: 48px 24px; }
.site .s-banner b { display: block; font-size: 26px; line-height: 1.15; max-width: 16ch; margin-bottom: 10px; }
.site .s-banner span { opacity: .85; display: block; max-width: 40ch; }
.site .s-btn { display: inline-block; margin-top: 18px; background: #fff; color: var(--t); padding: 8px 16px; border-radius: 6px; font-weight: 600; }
.site .s-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px; }
.site .s-cols div { background: #F1F4F9; border-radius: 8px; height: 90px; }
.stage.is-mobile .s-menu { display: none; }
.stage.is-mobile .s-cols { grid-template-columns: 1fr; }
.stage.is-mobile .s-banner b { font-size: 22px; }

.t-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.t-title h1 { font-size: 34px; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
.t-title .by { color: var(--ink-3); margin-top: 6px; }
.t-title .by a { color: var(--accent); }
.save { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); font-weight: 500; cursor: pointer; }
.save svg { width: 18px; height: 18px; }
.save[aria-pressed="true"] { color: #D9405F; border-color: #F2B8C4; }
.save[aria-pressed="true"] svg { fill: currentColor; }
.good-for { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.good-for a { font-size: 14px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.good-for a:hover { border-color: var(--accent); color: var(--accent); }
.t-body { display: grid; grid-template-columns: 1fr 340px; gap: 32px; margin-top: 28px; }
.t-body > * { min-width: 0; }
.perf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 28px; }
.perf div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; }
.perf dt { font-size: 13px; color: var(--ink-3); }
.perf dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.perf dd small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.works { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.works li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.works li svg { width: 14px; height: 14px; color: var(--ok); }

@media (max-width: 1024px) {
  .cat-head, .t-hero, .t-body { grid-template-columns: 1fr; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: var(--surface); z-index: 50; padding: 20px; overflow-y: auto; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .25s ease; top: 0; align-content: start; }
  .filters.open { transform: none; }
  .filters .close { display: inline-flex; }
  .filter-toggle { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 500; font-size: 14.5px; cursor: pointer; }
  .filter-toggle svg { width: 16px; height: 16px; }
  .scrim { position: fixed; inset: 0; background: rgba(23,32,51,.4); z-index: 40; }
  .scrim[hidden] { display: none; }
}
.filters .close { display: none; justify-self: end; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-2); }
@media (max-width: 640px) {
  .listing .grid { grid-template-columns: 1fr; }
  .toolbar .count { width: 100%; }
  .perf { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .perf div { padding: 10px; }
  .perf dd { font-size: 18px; }
  .t-title h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .filters, .stage, .stage .site { transition: none; }
}
.cat-head { align-items: center; }
.site .s-banner .s-btn { display: inline-block; }
.prose .works { padding-left: 0; }
@media (max-width: 1024px) { .filters .close { display: inline-flex; } }

/* ==========================================================================
   WordPress-specific additions
   ========================================================================== */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.header-nav li, .cat-bar li { list-style: none; }
.header-nav li a[aria-current], .header-nav .current-menu-item > a { color: var(--ink); }
.cat-bar a[aria-current="page"], .cat-bar .current-menu-item > a { background: var(--canvas); color: var(--ink); }

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line); margin-right: 8px; }

.chip-warn { background: #FDECEC; color: #B42318; }
.chip-info { background: var(--accent-wash); color: var(--accent-ink); }
.icon-img { background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; }
.icon-img img { width: 100%; height: 100%; object-fit: cover; }

.p-banner.has-img { background: var(--line-soft); }
.p-banner.has-img img { width: 100%; height: 100%; object-fit: cover; }
.p-chips { align-items: center; }
.p-chips .save { margin-left: auto; height: 34px; }
.p-chips.flush { margin-left: 0; }
.dl-hash { font-size: 12px; color: var(--ink-3); text-align: center; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.download-box .btn + .dl-note + .btn, .download-box .dl-hash + .btn { margin-top: 12px; }

.shot.has-img { padding: 0; display: block; }
.shot.has-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stage { min-height: 200px; }
.site-shot { width: 100%; display: block; transition: width .3s ease; }
.stage.is-mobile .site-shot { width: 300px; height: 540px; object-fit: cover; object-position: top; border-radius: 16px; border: 1px solid var(--line); }
.site-empty { padding: 80px 16px; color: var(--ink-3); }
.t-aside { margin-top: 0; top: 96px; }
.t-side { display: grid; gap: 16px; align-content: start; }

.cat-head.no-picks { grid-template-columns: 1fr; }
.cat-head p:last-child { margin-bottom: 0; }
.filters .apply { display: none; }
.filters a.reset { color: var(--accent); font-weight: 500; font-size: 14px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent); background: var(--accent-wash); color: var(--accent-ink); border-radius: 999px; padding: 4px 10px 4px 12px; font-size: 13.5px; font-weight: 500; }
.active-filters a span { font-size: 16px; line-height: 1; }
.themes-3 { grid-template-columns: repeat(3, 1fr); }

.pager .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 500; font-size: 14.5px; padding: 0 12px; }
.pager a.page-numbers:hover { border-color: var(--ink-3); }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; }

.feed-empty { padding: 20px; margin: 0; color: var(--ink-3); font-size: 15px; }

.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 10px; }
.page-head .meta { color: var(--ink-3); font-size: 15px; display: flex; gap: 16px; margin: 0; }
.post-list { display: grid; gap: 12px; margin-top: 16px; max-width: 760px; }
.post-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; }
.post-row h2 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.01em; }
.post-row h2 a:hover { color: var(--accent); }
.post-row p { margin: 0; color: var(--ink-2); }
.post-row .meta { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.article { max-width: 760px; }
.article .prose { max-width: none; }
.article-cover { margin: 16px 0 24px; }
.article-cover img { border-radius: var(--r-panel); width: 100%; height: auto; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose img { height: auto; border-radius: 8px; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--ink-2); }
.prose pre, .prose code { font-size: 14px; background: var(--line-soft); border-radius: 6px; }
.prose code { padding: 1px 5px; }
.prose pre { padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.alignwide, .alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.not-found { max-width: 620px; margin: 64px auto; text-align: center; }
.not-found h1 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 12px; }
.not-found p { color: var(--ink-2); }
.not-found .big-search { margin: 24px auto; text-align: left; }
.not-found a { color: var(--accent); font-weight: 500; }

.saved-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; max-width: 640px; }
.saved-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 18px; }
.saved-list a { font-weight: 600; }
.saved-list a:hover { color: var(--accent); }
.saved-list button { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 14px; }
.saved-list button:hover { color: #B42318; }

@media (max-width: 1024px) {
  .filters .apply { display: inline-flex; width: 100%; }
  .themes-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .p-chips .save { margin-left: 0; }
  .stage.is-mobile .site-shot { width: 240px; height: 430px; }
}

.bottom-nav .badge[hidden] { display: none; }
