/* ==========================================================================
   My LED Kit — generated pages
   --------------------------------------------------------------------------
   Layout for everything tools/build-seo.mjs emits: product, category,
   commercial and resource pages. Loaded after styles.css and built entirely
   on its tokens — no new colours, no new type. If a style could ever be
   wanted on index.html too, it belongs in styles.css instead.
   ========================================================================== */

/* ── page scaffold ──────────────────────────────────────────────────────── */

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(3rem, 7vw, 5rem);
}

.page--narrow { max-width: 880px; }

/* ── breadcrumbs ────────────────────────────────────────────────────────── */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 1.1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-3);
}
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 12px; height: 12px; opacity: 0.6; }
.crumbs [aria-current] { color: var(--text-3); }

/* ── page hero ──────────────────────────────────────────────────────────── */

.page-hero { padding: clamp(1.75rem, 4.5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }

.page-hero__eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-hero__title {
  max-width: 22ch;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.page-hero__lead {
  max-width: 62ch;
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-2);
}

/* ── prose ──────────────────────────────────────────────────────────────── */

.prose { max-width: 68ch; }
.prose h2 {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0.8rem;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.03em;
}
.prose h3 { margin: 1.5rem 0 0.6rem; font-size: 1.08rem; }
.prose p { margin: 0 0 1rem; color: var(--text-2); }
.prose p strong, .prose li strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }

.prose ul.checks { margin: 0 0 1.25rem; display: grid; gap: 0.6rem; }
.prose ul.checks li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-2);
}
.prose ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-ring);
}
.prose ul.checks li::after {
  content: "";
  position: absolute;
  left: 0.26rem;
  top: calc(0.42em + 0.24rem);
  width: 0.42rem;
  height: 0.22rem;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

.prose ol.steps { margin: 0 0 1.25rem; padding-left: 1.4rem; list-style: decimal; display: grid; gap: 0.55rem; color: var(--text-2); }
.prose ol.steps li::marker { color: var(--accent); font-weight: 600; }

/* Tables scroll inside themselves — the page never scrolls sideways. */
.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; border-radius: var(--r-md); box-shadow: var(--sh-1); }
.spec-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.93rem;
}
.spec-table th, .spec-table td {
  padding: 0.8rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.spec-table thead th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
}
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table td { color: var(--text-2); }
.spec-table td a { color: var(--accent); }
.spec-table td a:hover { text-decoration: underline; }

.contact-big { font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }

/* ── product page ───────────────────────────────────────────────────────── */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.buy-card {
  position: sticky;
  top: 5rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-2);
}
.buy-card__photo {
  width: 100%;
  height: auto;
  margin-bottom: 1.1rem;
  border-radius: var(--r-md);
  background: var(--surface-sunk);
}
.buy-card__price { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; }
.buy-card__unit { font-size: 0.9rem; color: var(--text-3); }
.buy-card__stock { display: flex; align-items: center; gap: 0.45rem; margin: 0.7rem 0 1.1rem; font-size: 0.88rem; color: var(--ok); }
.buy-card__stock::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ok); }
.buy-card .btn { width: 100%; }
.buy-card .btn + .btn { margin-top: 0.6rem; }
.buy-card__note { margin-top: 0.9rem; font-size: 0.8rem; line-height: 1.5; color: var(--text-3); }

.details-list { margin: 1.25rem 0 0; display: grid; gap: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1); }
.details-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem;
}
.details-list > div:last-child { border-bottom: 0; }
.details-list dt { font-weight: 600; }
.details-list dd { margin: 0; color: var(--text-2); }

@media (max-width: 860px) {
  .product-layout { grid-template-columns: 1fr; }
  .buy-card { position: static; order: -1; }
}

/* ── card grids (categories, products, guides) ─────────────────────────── */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.4rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.link-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.link-card h3, .link-card strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.link-card p { font-size: 0.88rem; line-height: 1.5; color: var(--text-2); }
.link-card .link-card__meta { margin-top: auto; padding-top: 0.5rem; font-size: 0.85rem; font-weight: 500; color: var(--accent); }

.link-card--product .link-card__price { font-size: 1.15rem; font-weight: 600; }
.link-card--product .link-card__price span { font-size: 0.82rem; font-weight: 400; color: var(--text-3); }

/* ── CTA band ───────────────────────────────────────────────────────────── */

.cta-band {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-2);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.03em; }
.cta-band p { max-width: 52ch; margin: 0.7rem auto 1.4rem; color: var(--text-2); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }

/* ── guide meta line ────────────────────────────────────────────────────── */

.byline { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 1rem; font-size: 0.84rem; color: var(--text-3); }

/* ── related band ───────────────────────────────────────────────────────── */

.related { margin-top: clamp(2.5rem, 6vw, 4rem); }
.related h2 { font-size: 1.25rem; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.related > p { color: var(--text-2); font-size: 0.95rem; }

/* ── 404 ────────────────────────────────────────────────────────────────── */

.lost { min-height: 55vh; display: grid; place-content: center; text-align: center; padding: 3rem var(--pad-x); }
.lost h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.045em; }
.lost p { margin: 1rem auto 1.75rem; max-width: 46ch; color: var(--text-2); }
.lost .cta-band__actions { justify-content: center; }
