/* Tyne guide / resource pages (GEO content layer).
   Linked ONLY by the marketing content pages, AFTER styles.css + catalog.css,
   so it reuses their theme tokens (--c-ink/--c-mut/--c-green/--c-surface/--c-hair)
   and the shared .cat-header/.cat-footer. It never touches app pages. */

.gd-main { max-width: 820px; margin: 0 auto; padding: 30px 22px 90px; }
.gd-main.wide { max-width: 1040px; }

/* answer-first hero */
.gd-eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-mut-2);
}
.gd-h1 {
  margin: 12px 0 0; font-family: var(--font-display, "Gabarito", sans-serif);
  font-size: clamp(1.75rem, 4.4vw, 2.65rem); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.1; color: var(--c-ink);
}
.gd-byline { margin: 14px 0 0; font-size: 0.82rem; color: var(--c-mut-2); }
.gd-byline b { color: var(--c-mut); font-weight: 600; }
/* the 40-60 word extractable answer AI engines lift */
.gd-answer {
  margin: 22px 0 0; padding: 18px 20px;
  background: var(--c-surface-2); border-radius: 12px;
  font-size: 1.06rem; line-height: 1.62; color: var(--c-ink);
}
.gd-answer b { font-weight: 700; }

/* table of contents */
.gd-toc {
  margin: 26px 0 0; padding: 16px 20px;
  border: 1px solid var(--c-hair); border-radius: 12px; background: var(--c-surface);
}
.gd-toc h2 {
  margin: 0 0 10px; font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-mut);
}
.gd-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
.gd-toc a { color: var(--c-ink); text-decoration: none; font-size: 0.92rem; }
.gd-toc a:hover { color: var(--c-green); }

/* body prose */
.gd-body { margin-top: 34px; }
.gd-body h2 {
  margin: 38px 0 12px; font-family: var(--font-display, "Gabarito", sans-serif);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: var(--c-ink);
  scroll-margin-top: 76px;
}
.gd-body h3 {
  margin: 24px 0 8px; font-family: var(--font-display, "Gabarito", sans-serif);
  font-size: 1.12rem; font-weight: 700; color: var(--c-ink);
}
.gd-body p { margin: 0 0 14px; font-size: 1rem; line-height: 1.7; color: #3a2f26; }
.gd-body ul, .gd-body ol { margin: 0 0 16px; padding-left: 22px; }
.gd-body li { margin: 0 0 7px; font-size: 1rem; line-height: 1.65; color: #3a2f26; }
.gd-body a { color: var(--c-green); font-weight: 600; }
.gd-body strong { color: var(--c-ink); }

/* comparison table */
.gd-table-wrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--c-hair); border-radius: 12px; }
.gd-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.gd-table th, .gd-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--c-hair); vertical-align: top; }
.gd-table thead th {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-mut); background: var(--c-surface-2);
}
.gd-table tbody tr:last-child td { border-bottom: 0; }
.gd-table td:first-child { font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.gd-table tr.is-tyne td { background: color-mix(in srgb, var(--c-green) 8%, var(--c-surface)); }
.gd-table tr.is-tyne td:first-child { color: var(--c-green); }

/* FAQ */
.gd-faq { margin-top: 14px; display: grid; gap: 0; border-top: 1px solid var(--c-hair); }
.gd-faq > div { padding: 16px 0; border-bottom: 1px solid var(--c-hair); }
.gd-faq b { display: block; font-family: var(--font-display, "Gabarito", sans-serif); font-size: 1rem; color: var(--c-ink); margin-bottom: 5px; }
.gd-faq p { margin: 0; font-size: 0.96rem; line-height: 1.65; color: #3a2f26; }

/* CTA band */
.gd-cta {
  margin: 40px 0 0; padding: 26px 24px; border-radius: 14px;
  background: var(--c-ink); color: #fff; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.gd-cta .gd-cta-txt { flex: 1; min-width: 240px; }
.gd-cta h2 { margin: 0 0 4px; font-family: var(--font-display, "Gabarito", sans-serif); font-size: 1.3rem; color: #fff; }
.gd-cta p { margin: 0; color: rgba(255,255,255,.72); font-size: 0.95rem; line-height: 1.5; }
.gd-cta a {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; background: var(--c-green); color: #fff;
  font-family: var(--font-display, "Gabarito", sans-serif); font-weight: 700; font-size: 0.98rem; text-decoration: none;
}
.gd-cta a:hover { filter: brightness(1.08); }
.gd-cta a.ghost { background: transparent; border: 1px solid rgba(255,255,255,.3); }

.gd-updated { margin-top: 30px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.04em; color: var(--c-mut-2); }

/* related links */
.gd-related { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--c-hair); }
.gd-related h2 { margin: 0 0 12px; font-family: var(--font-display, "Gabarito", sans-serif); font-size: 1.15rem; color: var(--c-ink); }
.gd-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gd-related-grid a {
  display: block; padding: 14px 16px; border: 1px solid var(--c-hair); border-radius: 10px;
  color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; line-height: 1.4;
  transition: border-color .14s ease, color .14s ease;
}
.gd-related-grid a:hover { border-color: var(--c-green); color: var(--c-green); }

/* hub grid */
.gd-hub-intro { max-width: 620px; }
.gd-hub-sec { margin-top: 34px; }
.gd-hub-sec > h2 { margin: 0 0 6px; font-family: var(--font-display, "Gabarito", sans-serif); font-size: 1.25rem; color: var(--c-ink); }
.gd-hub-sec > p { margin: 0 0 14px; color: var(--c-mut); font-size: 0.95rem; }
.gd-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gd-card {
  display: block; padding: 18px 18px 16px; border: 1px solid var(--c-hair); border-radius: 12px;
  background: var(--c-surface); color: var(--c-ink); text-decoration: none;
  transition: border-color .14s ease, transform .12s ease, box-shadow .16s ease;
}
.gd-card:hover { border-color: var(--c-green); transform: translateY(-2px); box-shadow: 0 16px 34px -20px rgba(43,23,8,.3); }
.gd-card h3 { margin: 0 0 6px; font-family: var(--font-display, "Gabarito", sans-serif); font-size: 1.05rem; color: var(--c-ink); }
.gd-card p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--c-mut); }

/* calculator */
.calc { margin-top: 26px; border: 1px solid var(--c-hair); border-radius: 14px; overflow: hidden; }
.calc-controls { padding: 22px; display: grid; gap: 16px; background: var(--c-surface); }
.calc-field { display: grid; gap: 6px; }
.calc-field label { font-size: 0.82rem; font-weight: 700; color: var(--c-ink); }
.calc-field select, .calc-field input {
  font-family: inherit; font-size: 16px; color: var(--c-ink);
  background: var(--c-surface); border: 1px solid var(--c-hair); border-radius: 8px; padding: 11px 12px; width: 100%;
}
.calc-field select:focus, .calc-field input:focus { outline: none; border-color: var(--c-green); }
.calc-out { padding: 22px; background: var(--c-surface-2); border-top: 1px solid var(--c-hair); }
.calc-out .calc-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--c-hair); font-size: 0.96rem; color: var(--c-mut); }
.calc-out .calc-row:last-child { border-bottom: 0; }
.calc-out .calc-row b { color: var(--c-ink); font-weight: 700; }
.calc-out .calc-total b { color: var(--c-green); font-size: 1.1rem; }
.calc-note { margin-top: 12px; font-size: 0.8rem; color: var(--c-mut-2); line-height: 1.5; }

/* ---- programmatic collection / guide pages (generated by scripts/build-pages.js) ---- */
.gd-crumb { font-size: 0.82rem; color: var(--c-mut-2); margin-bottom: 6px; }
.gd-crumb a { color: var(--c-mut); text-decoration: none; }
.gd-crumb a:hover { color: var(--c-green); }
/* real-product grid (only rendered when live, sellable products resolve) */
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 22px 0 8px; }
.col-card { display: block; border: 1px solid var(--c-hair); border-radius: 12px; overflow: hidden; background: var(--c-surface); color: var(--c-ink); text-decoration: none; transition: border-color .14s ease, transform .12s ease; }
.col-card:hover { border-color: var(--c-green); transform: translateY(-2px); }
.col-card .col-img { aspect-ratio: 1/1; background: var(--c-tile, #f3ece1); display: block; }
.col-card .col-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-card .col-b { padding: 12px 13px 14px; }
.col-card .col-name { font-family: var(--font-display, "Gabarito", sans-serif); font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.col-card .col-spec { margin-top: 4px; font-size: 0.78rem; color: var(--c-mut); }
.col-card .col-price { margin-top: 7px; font-size: 0.82rem; color: var(--c-ink); font-weight: 600; }
.col-card .col-price span { color: var(--c-mut); font-weight: 500; }
/* spec-dense listing text: full text stays in the DOM for crawlers; clamped
   to three lines so the grid stays tidy */
.col-card .col-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 0.78rem; line-height: 1.5; color: var(--c-mut); }

/* static product snapshot pages (/item/<no>/) */
.pi { margin-top: 8px; }
.pi-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 40px; align-items: start; }
.pi-img { background: #fff; border: 1px solid var(--c-hair); border-radius: 6px; overflow: hidden; aspect-ratio: 1 / 1; }
.pi-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pi-body h1 { margin: 0; font-family: var(--font-display, "Gabarito", sans-serif); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; color: var(--c-ink); }
.pi-lede { margin: 12px 0 0; font-size: 0.95rem; line-height: 1.65; color: var(--c-ink); }
.pi-rows { margin: 18px 0 0; border-top: 1px solid var(--c-hair); }
.pi-row { display: grid; grid-template-columns: 172px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--c-hair); }
.pi-row dt { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-mut); }
.pi-row dd { margin: 0; font-size: 0.9rem; color: var(--c-ink); }
.pi-cta { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.pi-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; background: var(--c-green); color: #fff; border-radius: 6px; font-family: var(--font-display, "Gabarito", sans-serif); font-weight: 700; font-size: 0.92rem; }
.pi-btn:hover { filter: brightness(0.94); text-decoration: none; }
.pi-link { font-size: 0.88rem; color: var(--c-mut); text-decoration: underline; }
@media (max-width: 760px) { .pi-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } .pi-row { grid-template-columns: 130px 1fr; } }
/* category mode: format list instead of dead product cards */
.col-cat { margin: 20px 0 8px; border: 1px solid var(--c-hair); border-radius: 12px; overflow: hidden; }
.col-cat h2 { margin: 0; padding: 14px 16px; background: var(--c-surface-2); font-family: var(--font-display, "Gabarito", sans-serif); font-size: 1rem; }
.col-cat ul { margin: 0; padding: 6px 0; list-style: none; }
.col-cat li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 16px; border-top: 1px solid var(--c-hair); font-size: 0.92rem; }
.col-cat li b { color: var(--c-ink); font-weight: 600; }
.col-cat li span { color: var(--c-mut); text-align: right; }
