/* WrenchConnect Store — family look: pure black + electric yellow (#ffd200).
   System font stack only (no webfont request: faster LCP, zero CLS). */
:root {
  --bg: #05060a;
  --panel: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.10);
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --accent: #ffd200;
  --accent-ink: #0b0b02;
  --max: 68rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.shell { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---- Accessible visually-hidden skip link ---- */
.store-skip {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.store-skip:focus {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 1000;
  width: auto; height: auto;
  margin: 0; padding: 0.55rem 0.95rem;
  overflow: visible; clip: auto;
  white-space: normal;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

/* ---- Sticky Header & Main Site Brand Chrome ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-badge {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 900;
  font-size: 1.15rem;
  border-radius: 0.35rem;
  line-height: 1;
  box-shadow: 0 0 12px rgba(255, 210, 0, 0.25);
  user-select: none;
}
.brand .accent { color: var(--accent); }
.sub-brand { opacity: 0.85; font-weight: 600; font-size: 0.88em; margin-left: 0.15rem; }

.header-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  transition: all 0.15s ease;
  text-decoration: none;
}
.header-back-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 210, 0, 0.5);
  text-decoration: none;
  transform: translateX(-1px);
}

.brand-stripe {
  height: 5px;
  background-image: repeating-linear-gradient(135deg, #ffd200 0 12px, #05060a 12px 24px);
  border-bottom: 1px solid var(--line);
  opacity: 0.9;
}

.site-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.92rem; align-items: center; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* ---- Layout & Content Centering ---- */
main.shell {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

article {
  max-width: 54rem;
  margin: 0 auto;
}

.hero { padding: 3rem 0 2rem; }
.kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff;
}
.lede { color: var(--muted); font-size: 1.08rem; max-width: 48rem; line-height: 1.68; }

h2 {
  font-size: 1.45rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 2.6rem 0 0.9rem;
  color: #fff;
}
h3 { font-size: 1.12rem; margin: 1.6rem 0 0.5rem; color: #fff; }
p, li { color: #cbd5e1; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: rgba(255, 210, 0, 0.55); text-decoration: none; transform: translateY(-2px); }
.card .card-kicker { color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 0.4rem; }
.card h3 { margin: 0 0 0.4rem; }
.card p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* Product pick block inside guides */
.pick {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0.6rem;
  padding: 1.25rem 1.4rem;
  margin: 1.4rem 0;
}
.pick:has(.pick-media) { display: grid; grid-template-columns: 190px 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 620px) { .pick:has(.pick-media) { grid-template-columns: 1fr; } }
.pick .pick-media { margin: 0; }
.pick .pick-media a { display: block; background: #fff; border-radius: 0.5rem; padding: 0.6rem; border: 1px solid var(--line); }
.pick .pick-media img { display: block; width: 100%; height: 170px; object-fit: contain; }
@media (max-width: 620px) { .pick .pick-media img { height: 220px; } }
.pick .pick-body { min-width: 0; }
.pick .pick-body > :first-child { margin-top: 0; }
.pick .pick-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.pick h3 { margin: 0 0 0.6rem; font-size: 1.25rem; }
.pick .pros-cons { display: grid; gap: 0.75rem; margin: 0.9rem 0; }
@media (min-width: 640px) { .pick .pros-cons { grid-template-columns: 1fr 1fr; } }
.pick .pros-cons h4 { margin: 0 0 0.3rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.pick .pros-cons .pros h4 { color: #4ade80; }
.pick .pros-cons .cons h4 { color: #f87171; }
.pick .pros-cons ul { margin: 0; padding-left: 1.1rem; font-size: 0.94rem; }

.btn-amazon {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.45rem;
  margin-top: 0.35rem;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-amazon:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }

.disclosure {
  background: rgba(255, 210, 0, 0.06);
  border: 1px solid rgba(255, 210, 0, 0.25);
  border-radius: 0.6rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 1.4rem 0;
}

.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 0.6rem; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.toc ol { margin: 0.4rem 0 0; padding-left: 1.3rem; }
.toc li { margin: 0.25rem 0; }

table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); }
th { color: var(--accent); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em; }
.table-wrap { overflow-x: auto; }

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.8rem 1.1rem;
  margin: 0.6rem 0;
}
.faq summary { cursor: pointer; font-weight: 700; color: #fff; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2rem 0 2.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
}
.site-footer .shell { display: grid; gap: 0.9rem; }
.site-footer nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.updated { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Accessible nav (rework 2026-07-22): tools dropdown, focus ---- */
.store-tools { position: relative; }
.store-tools > summary {
  list-style: none; cursor: pointer; color: var(--muted);
  display: inline-flex; align-items: center; gap: .3rem;
}
.store-tools > summary::-webkit-details-marker { display: none; }
.store-tools > summary::after { content: "▾"; font-size: .8em; }
.store-tools[open] > summary { color: var(--accent); }
.store-tools-menu {
  position: absolute; right: 0; top: calc(100% + .5rem);
  background: #0b0d14; border: 1px solid var(--line); border-radius: .6rem;
  padding: .4rem; min-width: 13rem; display: flex; flex-direction: column;
  gap: .1rem; z-index: 50; box-shadow: 0 14px 34px rgba(0,0,0,.55);
}
.store-tools-menu a { padding: .55rem .6rem; border-radius: .4rem; color: var(--ink); }
.store-tools-menu a:hover { background: rgba(255,255,255,.06); color: var(--accent); text-decoration: none; }
a:focus-visible, summary:focus-visible, .brand:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
@media (max-width: 640px) {
  .store-tools-menu { right: auto; left: 0; }
  .header-back-btn span { display: none; }
}

/* ---- Related Guides Internal Linking Grid (SEO) ---- */
.related-guides {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.related-guides h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

