/*
Theme Name: GSetups
Theme URI: https://gsetups.com
Author: GSetups
Description: A gaming setup inspiration hub — setup showcases, pro player gear, product database and a setup builder. Custom theme for gsetups.com.
Version: 1.9.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gsetups
*/

:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --ink: #12141c;
  --muted: #5b6172;
  --faint: #9aa1b2;
  --line: #e5e8f0;
  --accent: #3b5bfd;
  --accent-ink: #2a41c4;
  --accent-soft: #eceffe;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(18, 20, 28, 0.05), 0 6px 24px rgba(18, 20, 28, 0.06);
  --c-competitive: #3b5bfd;
  --c-competitive-soft: #eceffe;
  --c-immersive: #7c3aed;
  --c-immersive-soft: #f1eafd;
  --c-productivity: #0e9f6e;
  --c-productivity-soft: #e6f6f0;
  --c-hybrid: #d97706;
  --c-hybrid-soft: #fbf1e2;
  --c-mac: #475569;
  --c-mac-soft: #eef1f5;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 3vw, 1.55rem); font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  color: var(--ink); display: flex; align-items: center; gap: 8px;
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
}
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
}
.main-nav a:hover { color: var(--ink); background: var(--bg); text-decoration: none; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--accent-ink); background: var(--accent-soft); }
.header-cta {
  background: var(--ink); color: #fff; padding: 9px 18px;
  border-radius: 999px; font-size: 0.88rem; font-weight: 600; white-space: nowrap;
}
.header-cta:hover { background: #000; text-decoration: none; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: 1rem; cursor: pointer; color: var(--ink);
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px;
    background: var(--card); border-bottom: 1px solid var(--line); margin: 0; padding: 10px 20px 16px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 36px; text-align: center; }
.hero .kicker {
  display: inline-block; background: var(--accent-soft); color: var(--accent-ink);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { max-width: 640px; margin-left: auto; margin-right: auto; }
.hero p.sub { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }
.hero-search { max-width: 480px; margin: 0 auto; }
.hero-search form { display: flex; gap: 8px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 6px 6px 20px; box-shadow: var(--shadow); }
.hero-search input[type="search"] {
  flex: 1; border: 0; background: none; font: inherit; font-size: 0.95rem; color: var(--ink); min-width: 0;
}
.hero-search input[type="search"]:focus { outline: none; }
.hero-search button {
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 20px; font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.hero-search button:hover { background: var(--accent-ink); }
.hero-stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.stat-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 0.85rem; color: var(--muted);
}
.stat-chip strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; margin-right: 5px; }

/* ---------- Sections ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head .more { font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.section-head p.desc { color: var(--muted); font-size: 0.9rem; margin: 4px 0 0; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 860px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-tile {
  display: block; text-align: center; padding: 22px 12px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  font-weight: 600; font-size: 0.92rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile .cat-ico {
  width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.cat-tile small { display: block; color: var(--faint); font-weight: 500; font-size: 0.76rem; margin-top: 3px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.setup-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.setup-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.setup-card .thumb { aspect-ratio: 16 / 9; background: var(--accent-soft); overflow: hidden; position: relative; }
.setup-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.setup-card .thumb .placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.6rem;
}
.setup-card .body { padding: 14px 16px 16px; }
.setup-card h3 { margin: 8px 0 4px; font-size: 1rem; }
.setup-card h3 a { color: var(--ink); }
.setup-card .meta { color: var(--muted); font-size: 0.82rem; }

.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
}
.badge.style-competitive { background: var(--c-competitive-soft); color: var(--c-competitive); }
.badge.style-immersive { background: var(--c-immersive-soft); color: var(--c-immersive); }
.badge.style-productivity, .badge.style-work-productivity { background: var(--c-productivity-soft); color: var(--c-productivity); }
.badge.style-hybrid, .badge.style-hybrid-work-gaming { background: var(--c-hybrid-soft); color: var(--c-hybrid); }
.badge.style-mac, .badge.style-mac-setup { background: var(--c-mac-soft); color: var(--c-mac); }

/* ---------- Player cards ---------- */
.player-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .player-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .player-grid { grid-template-columns: 1fr; } }
.player-card {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.player-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-card .who { flex: 1; min-width: 0; }
.player-card .who strong { display: block; color: var(--ink); font-size: 0.95rem; }
.player-card .who span { color: var(--muted); font-size: 0.8rem; }
.player-card .go { color: var(--accent-ink); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }

/* ---------- Builder CTA ---------- */
.builder-cta {
  border: 2px solid var(--accent); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), var(--card) 55%);
  padding: 28px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.builder-cta .txt { flex: 1; min-width: 240px; }
.builder-cta h2 { margin-bottom: 6px; }
.builder-cta p { color: var(--muted); margin: 0 0 16px; max-width: 460px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-ink); text-decoration: none; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg); }

/* ---------- Archive / filters ---------- */
.archive-header { padding: 40px 0 8px; }
.archive-header p { color: var(--muted); max-width: 620px; margin-top: 4px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0 26px; }
.filter-bar a {
  padding: 7px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.filter-bar a:hover { color: var(--ink); text-decoration: none; }
.filter-bar a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Single setup ---------- */
.single-hero { padding: 34px 0 10px; }
.breadcrumb { font-size: 0.8rem; color: var(--faint); margin-bottom: 12px; }
.breadcrumb a { color: var(--faint); }
.single-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.single-title-row .byline { color: var(--muted); font-size: 0.88rem; }
.featured-media { border-radius: var(--radius); overflow: hidden; margin: 20px 0; box-shadow: var(--shadow); }
.featured-media img { width: 100%; }

.setup-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 26px; align-items: start; padding-bottom: 50px; }
@media (max-width: 900px) { .setup-layout { grid-template-columns: 1fr; } }
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.prose > *:first-child { margin-top: 0; }
.prose img { border-radius: var(--radius-sm); }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 0; }
.spec { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; }
.spec .label { font-size: 0.74rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }
.spec .value { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

.gear-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; position: sticky; top: 84px;
}
.gear-panel h2 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: baseline; }
.gear-panel h2 small { color: var(--faint); font-size: 0.78rem; font-weight: 500; }
.gear-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.gear-item:last-of-type { border-bottom: 0; }
.gear-item .g-ico {
  width: 38px; height: 38px; border-radius: 10px; background: var(--bg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--muted);
}
.gear-item .g-name { flex: 1; min-width: 0; }
.gear-item .g-name strong { display: block; font-size: 0.88rem; }
.gear-item .g-name span { color: var(--muted); font-size: 0.78rem; }
.gear-item .g-buy {
  background: var(--accent-soft); color: var(--accent-ink); font-size: 0.78rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.gear-item .g-buy:hover { background: var(--accent); color: #fff; text-decoration: none; }
.affiliate-note { color: var(--faint); font-size: 0.72rem; margin: 12px 0 0; }

/* ---------- Single player ---------- */
.player-hero { display: flex; align-items: center; gap: 22px; padding: 40px 0 10px; flex-wrap: wrap; }
.player-hero .avatar { width: 84px; height: 84px; font-size: 1.6rem; }
.player-hero .facts { color: var(--muted); font-size: 0.9rem; }
.player-hero .facts span { margin-right: 14px; }

/* ---------- Single product ---------- */
.product-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; padding: 30px 0 50px; align-items: start; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; } }
.product-media { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.price-tag { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 8px 0 14px; }
.price-tag small { color: var(--faint); font-size: 0.8rem; font-weight: 500; }

/* ---------- Builder ---------- */
.builder-app { display: grid; grid-template-columns: 240px 1fr 260px; gap: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 26px 0 50px; min-height: 520px; }
@media (max-width: 960px) { .builder-app { grid-template-columns: 1fr; } }
.builder-side { padding: 18px; border-right: 1px solid var(--line); }
.builder-side h3, .builder-parts h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.builder-side label { display: block; font-size: 0.82rem; font-weight: 600; margin: 14px 0 5px; }
.builder-side select, .builder-side input[type="number"] {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 0.86rem; background: var(--bg);
}
.builder-side .btn { width: 100%; margin-top: 10px; text-align: center; }
.builder-canvas { padding: 20px; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.builder-canvas svg { width: 100%; max-width: 640px; }
.builder-parts { padding: 18px; border-left: 1px solid var(--line); }
@media (max-width: 960px) { .builder-side, .builder-parts { border: 0; border-bottom: 1px solid var(--line); } }
.part-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.part-row button { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 0.9rem; }
.part-row button:hover { color: #c0392b; }
.parts-total { display: flex; justify-content: space-between; padding-top: 12px; font-weight: 600; }
.fit-note { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.8rem; }
.fit-note.ok { background: var(--c-productivity-soft); color: var(--c-productivity); }
.fit-note.bad { background: #fdecea; color: #c0392b; }

/* ---------- Blog / generic ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .post-list { grid-template-columns: 1fr; } }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card .thumb { aspect-ratio: 16/9; background: var(--accent-soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 14px 16px; }
.post-card h3 { font-size: 0.98rem; margin: 0 0 4px; }
.post-card h3 a { color: var(--ink); }
.post-card .meta { color: var(--faint); font-size: 0.78rem; }

.pagination { display: flex; gap: 6px; justify-content: center; padding: 30px 0 50px; }
.pagination .page-numbers {
  padding: 8px 14px; border-radius: var(--radius-sm); background: var(--card);
  border: 1px solid var(--line); color: var(--muted); font-size: 0.85rem;
}
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--card); border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--muted); font-size: 0.88rem; }
.site-footer .about { color: var(--muted); font-size: 0.88rem; max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--faint); font-size: 0.8rem; }

/* ---------- Gear list v2: numbers, descriptions, prices ---------- */
.gear-item { position: relative; align-items: flex-start; scroll-margin-top: 90px; }
.gear-item .g-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 8px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
}
.gear-item .g-cat { display: block; }
.gear-item .g-desc {
  color: var(--muted); font-size: 0.8rem; line-height: 1.55; margin: 5px 0 0;
}
.gear-item .g-prices {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px;
}
.price-pill {
  background: var(--bg); color: var(--ink); font-size: 0.76rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.price-pill.excluded { color: var(--faint); font-weight: 500; font-style: italic; }
.gear-item.is-excluded .g-ico, .gear-item.is-excluded .g-num { opacity: 0.55; }
.gear-item.is-flash { animation: gs-flash 1.2s ease; }
@keyframes gs-flash {
  0% { background: var(--accent-soft); }
  100% { background: transparent; }
}
.gear-total {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; border-top: 2px solid var(--ink); margin-top: 12px; padding-top: 12px;
}
.gear-total-label { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.gear-total-label small { display: block; color: var(--faint); font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; }
.gear-total-prices { display: flex; gap: 6px; flex-wrap: wrap; }
.total-pill {
  background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600;
  font-size: 0.85rem; padding: 5px 13px; border-radius: 999px;
}

/* ---------- Single setup v2: media row + product table ---------- */
.setup-media-row {
  display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 24px; align-items: start; margin: 22px 0 8px;
}
@media (max-width: 900px) { .setup-media-row { grid-template-columns: 1fr; } }
.setup-media-row .annotate-wrap, .setup-media-row .featured-media { margin: 0; }
.setup-media-row .featured-media img { width: 100%; }
.about-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px;
}
.about-card > h2 { margin-top: 0; }
.about-card p { color: var(--muted); font-size: 0.95rem; }
.about-jump { margin: 16px 0 0; }
.about-jump a { font-weight: 600; font-size: 0.88rem; }

.gear-section { padding: 26px 0 50px; }
.gear-table-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.gear-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.gear-table th {
  text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint);
  padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.gear-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gear-table tbody tr:last-child td { border-bottom: 0; }
.gear-table tbody tr { scroll-margin-top: 90px; transition: background 0.2s ease; }
.gear-table .col-num { width: 46px; padding-right: 0; }
.gear-table .col-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.55; }
.gear-table .col-price { width: 210px; }
.gear-table .col-buy { width: 74px; text-align: right; }
.gear-table .col-product { min-width: 190px; }
.gear-table .col-product .g-ico {
  width: 34px; height: 34px; border-radius: 9px; background: var(--bg); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  margin-right: 10px;
}
.gear-table .g-title { display: inline-block; vertical-align: middle; }
.gear-table .g-title strong { display: block; font-size: 0.9rem; line-height: 1.3; }
.gear-table .g-cat { display: block; color: var(--faint); font-size: 0.76rem; }
.gear-table .g-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 0.74rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.price-stack { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.gear-table tr.is-excluded .g-ico, .gear-table tr.is-excluded .g-num { opacity: 0.55; }
.gear-table tr.is-excluded .col-desc { color: var(--faint); }
.gear-table tr.is-flash { animation: gs-flash 1.4s ease; }
.gear-table tfoot td {
  border-top: 2px solid var(--ink); border-bottom: 0; background: var(--card); padding: 15px 16px;
}
.gear-table tfoot .g-cat { font-size: 0.74rem; }
.gear-section .affiliate-note { margin-top: 10px; }

/* Responsive table: stack into cards on small screens */
@media (max-width: 760px) {
  .gear-table thead { display: none; }
  .gear-table, .gear-table tbody, .gear-table tfoot, .gear-table tr, .gear-table td { display: block; width: 100%; }
  .gear-table tr { padding: 14px 16px 14px 56px; position: relative; border-bottom: 1px solid var(--line); }
  .gear-table tbody tr:last-child { border-bottom: 0; }
  .gear-table td { padding: 2px 0; border: 0; }
  .gear-table .col-num { position: absolute; left: 16px; top: 14px; width: auto; }
  .gear-table .col-price, .gear-table .col-buy { width: auto; text-align: left; padding-top: 8px; }
  .gear-table tfoot tr { padding: 14px 16px; }
  .gear-table tfoot .col-num, .gear-table tfoot .col-desc { display: none; }
}

/* ---------- Embedded media (Pinterest etc.) ---------- */
.embed-wrap {
  display: flex; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow);
}
.embed-wrap iframe { max-width: 100%; border: 0; border-radius: var(--radius-sm); }
.setup-media-row .embed-wrap { margin: 0; align-self: start; }

/* ---------- Uniform product cell ---------- */
.gear-table .col-product .g-prod { display: flex; align-items: center; gap: 12px; }
.gear-table .col-product .g-ico { flex-shrink: 0; margin-right: 0; }
.gear-table .g-title { display: block; }

/* ---------- Currency colour coding ---------- */
.price-pill.cur-gbp { background: var(--c-productivity-soft); border-color: transparent; color: var(--c-productivity); }
.price-pill.cur-eur { background: var(--c-competitive-soft); border-color: transparent; color: var(--c-competitive); }
.price-pill.cur-usd { background: var(--c-hybrid-soft); border-color: transparent; color: var(--c-hybrid); }
.total-pill.cur-gbp { background: var(--c-productivity); }
.total-pill.cur-eur { background: var(--c-competitive); }
.total-pill.cur-usd { background: var(--c-hybrid); }

/* ---------- Homepage featured filter chips ---------- */
.section .filter-bar { padding: 0 0 20px; }
.filter-bar a.is-active.style-competitive { background: var(--c-competitive); border-color: var(--c-competitive); color: #fff; }
.filter-bar a.is-active.style-immersive { background: var(--c-immersive); border-color: var(--c-immersive); color: #fff; }
.filter-bar a.is-active.style-productivity { background: var(--c-productivity); border-color: var(--c-productivity); color: #fff; }
.filter-bar a.is-active.style-hybrid { background: var(--c-hybrid); border-color: var(--c-hybrid); color: #fff; }
.filter-bar a.is-active.style-mac { background: var(--c-mac); border-color: var(--c-mac); color: #fff; }
.filter-empty { color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.setup-card[hidden], .card-grid[hidden] { display: none; }

/* ---------- Hero highlight badges ---------- */
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.badge.badge-lg { font-size: 0.82rem; padding: 7px 16px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.badge.badge-lg.style-competitive { background: var(--c-competitive-soft); border-color: transparent; color: var(--c-competitive); }
.badge.badge-lg.style-immersive { background: var(--c-immersive-soft); border-color: transparent; color: var(--c-immersive); }
.badge.badge-lg.style-productivity { background: var(--c-productivity-soft); border-color: transparent; color: var(--c-productivity); }
.badge.badge-lg.style-hybrid { background: var(--c-hybrid-soft); border-color: transparent; color: var(--c-hybrid); }
.badge.badge-lg.style-mac { background: var(--c-mac-soft); border-color: transparent; color: var(--c-mac); }

/* ---------- Designed card cover ---------- */
.setup-card .thumb { position: relative; }
.thumb-cover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(135deg, var(--cover-a, var(--accent-soft)), var(--cover-b, #dfe6ff));
}
.thumb-cover.cover-competitive { --cover-a: #e3e9ff; --cover-b: #c8d4ff; }
.thumb-cover.cover-immersive { --cover-a: #efe6fd; --cover-b: #ddc9fb; }
.thumb-cover.cover-productivity { --cover-a: #ddf3ea; --cover-b: #bfe8d7; }
.thumb-cover.cover-hybrid { --cover-a: #fdeeda; --cover-b: #f8ddb4; }
.thumb-cover.cover-mac { --cover-a: #e9edf3; --cover-b: #d3dae4; }
.cover-icons { display: flex; gap: 10px; }
.cover-ico {
  width: 46px; height: 46px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(18, 20, 28, 0.10);
  transition: transform 0.18s ease;
}
.cover-ico svg { width: 21px; height: 21px; }
.cover-more {
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; color: var(--muted);
}
.setup-card:hover .cover-ico { transform: translateY(-3px); }
.setup-card:hover .cover-ico:nth-child(2) { transition-delay: 0.03s; }
.setup-card:hover .cover-ico:nth-child(3) { transition-delay: 0.06s; }
.setup-card:hover .cover-ico:nth-child(4) { transition-delay: 0.09s; }
.setup-card:hover .cover-ico:nth-child(5) { transition-delay: 0.12s; }
.cover-cta {
  position: absolute; bottom: 10px; right: 12px;
  font-size: 0.76rem; font-weight: 600; color: var(--ink);
  background: rgba(255, 255, 255, 0.92); border-radius: 999px; padding: 5px 12px;
  opacity: 0; transform: translateY(4px); transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 3px 10px rgba(18, 20, 28, 0.10);
}
.setup-card:hover .cover-cta { opacity: 1; transform: translateY(0); }
.setup-card h3 a:hover { color: var(--accent-ink); text-decoration: none; }

/* ---------- Setup total spec tile: all three currencies ---------- */
.spec.spec-total { grid-column: 1 / -1; }
.spec-total-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.spec-total-pills .price-pill { font-size: 0.85rem; padding: 5px 13px; }

/* ---------- Why this setup works ---------- */
.why-card {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 22px 26px; margin: -22px 0 50px;
}
.why-card h2 { font-size: 1.1rem; margin: 0 0 8px; }
.why-card p { color: var(--muted); margin: 0; line-height: 1.7; }
