/* GPUVault - guides.
   Long-form article layout, the informative graphics frame, the rent-or-buy
   calculator and the coming-soon notify band. Loads after pages.css and reuses its
   tokens, .glass, .cmp tables and .section rhythm. */

/* ── Article shell ──────────────────────────────────────────────────────── */

.guide-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px;
  margin-top: 18px; color: var(--text-3); font-size: 13.5px;
}
.guide-meta > span + span { padding-left: 14px; border-left: 1px solid var(--line); }

.guide { padding: clamp(38px, 6vh, 72px) var(--pad-x) 0; max-width: 1440px; margin: 0 auto; }

.guide-body {
  max-width: 72ch;
  margin: 0 auto;
  font-size: clamp(16.5px, 1.25vw, 18px);
  line-height: 1.75;
  color: var(--text-2);
}

.guide-body > p { margin-bottom: 22px; }
.guide-body > p > strong, .guide-body li > strong { color: var(--text); font-weight: 650; }
.guide-body em { font-style: italic; }

.guide-body h2 {
  margin: 52px 0 18px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
  font-weight: 700;
  scroll-margin-top: 100px;
}
.guide-body h2:first-child { margin-top: 0; }

.guide-body h3 {
  margin: 36px 0 12px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.3;
  color: var(--text);
  font-weight: 650;
  scroll-margin-top: 100px;
}

.guide-body ul, .guide-body ol { margin: 0 0 24px; padding-left: 24px; }
.guide-body li { margin-bottom: 10px; }
.guide-body ul { list-style: none; padding-left: 0; }
.guide-body ul > li { position: relative; padding-left: 26px; }
.guide-body ul > li::before {
  content: ""; position: absolute; left: 6px; top: .68em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
}
.guide-body ol { list-style: decimal; }
.guide-body ol::marker, .guide-body li::marker { color: var(--amber); }

.guide-body a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.guide-body a:hover { color: var(--amber-hover); }

.guide-body blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--amber);
  color: var(--text); font-size: 1.05em; line-height: 1.6;
}

.guide-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em; padding: 2px 6px; border-radius: 5px;
  background: rgba(255, 255, 255, .07); color: var(--text);
}

.guide-body hr { margin: 44px 0; border: 0; border-top: 1px solid var(--line); }

.guide-body .table-wrap { margin: 0 0 28px; }

/* ── The short answer ───────────────────────────────────────────────────── */

/* The snippet play. First thing on the page, and the thing an AI overview lifts. */
.answer {
  margin-bottom: 40px; padding: 24px 26px;
  border: 1px solid rgba(245, 166, 35, .38);
  border-left: 4px solid var(--amber);
  border-radius: 14px;
  background: rgba(245, 166, 35, .06);
}
.answer-label {
  display: block; margin-bottom: 10px;
  color: var(--amber); font-size: 11.5px; font-weight: 700; letter-spacing: 2.4px;
}
.answer p { margin: 0; color: var(--text); font-size: 1.06em; line-height: 1.65; }

/* ── Table of contents ──────────────────────────────────────────────────── */

.toc {
  margin: 0 0 44px; padding: 22px 26px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}
.toc-head {
  display: block; margin-bottom: 12px;
  color: var(--text-3); font-size: 11.5px; font-weight: 700; letter-spacing: 2.4px;
}
.toc ol { margin: 0; padding-left: 28px; counter-reset: toc; list-style: none; }
.toc li { margin-bottom: 8px; counter-increment: toc; position: relative; font-size: 15px; }
.toc li::before {
  content: counter(toc); position: absolute; left: -28px; top: 1px; width: 20px; text-align: right;
  color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--amber-hover); }

/* ── Informative graphics ───────────────────────────────────────────────── */

.gfx { margin: 34px 0 38px; }
.gfx-frame {
  padding: 22px 24px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  overflow-x: auto;
}
.gfx-svg { display: block; width: 100%; min-width: 460px; height: auto; }
.gfx figcaption {
  margin-top: 12px; color: var(--text-3);
  font-size: 13.5px; line-height: 1.55; text-align: left;
}
.gfx-table { margin: 0; }
.gfx-data { margin-top: 10px; }
/* pages.css styles every details > summary as a space-between flex row for the model
   pages, which would fling the "+" and the label to opposite edges here. */
.gfx-data > summary {
  display: block; cursor: pointer; color: var(--text-3); font-size: 13px;
  padding: 6px 0; list-style: none;
}
.gfx-data > summary::-webkit-details-marker { display: none; }
.gfx-data > summary::before { content: "+ "; color: var(--amber); }
.gfx-data[open] > summary::before { content: "\2212 "; }
.gfx-data > summary:hover { color: var(--amber-hover); }
.gfx-data .table-wrap { margin-top: 10px; }

.cmp .row-hi th, .cmp .row-hi td { background: rgba(245, 166, 35, .07); }
.cmp .row-hi th[scope="row"] { color: var(--amber); }

/* Model cards dropped into an article. Full bleed of the prose column. */
.gfx-models { margin: 34px 0; }
.gfx-models .mgrid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ── Pull quote ─────────────────────────────────────────────────────────── */

.keynote {
  margin: 34px 0; padding: 22px 26px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: linear-gradient(180deg, rgba(245, 166, 35, .07), rgba(245, 166, 35, .02));
}
.keynote p { margin: 0; color: var(--text); font-size: 1.08em; line-height: 1.6; font-weight: 500; }

/* ── Rent-or-buy calculator ─────────────────────────────────────────────── */

.rbcalc { margin: 34px 0; padding: 26px; border-radius: var(--radius); }
.rbcalc-head h3 { margin: 0; color: var(--text); font-size: 20px; font-weight: 700; }
.rbcalc-head .eyebrow { margin-bottom: 10px; }

.rbcalc-input { margin: 22px 0 20px; }
.rbcalc-input label { display: block; margin-bottom: 10px; color: var(--text-3); font-size: 13.5px; }
.rbcalc .calc-controls { display: flex; align-items: center; gap: 16px; }
.rbcalc .calc-range { flex: 1; }
.rbcalc .calc-num { width: 92px; }

.rbcalc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rbcalc-side {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}
.rbcalc-label { display: block; margin-bottom: 6px; color: var(--text-3); font-size: 12.5px; }
.rbcalc-side strong {
  display: block; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: -.02em;
}
.rbcalc-side.is-cheaper { border-color: rgba(245, 166, 35, .45); background: rgba(245, 166, 35, .08); }
.rbcalc-side.is-cheaper strong { color: var(--amber); }

.rbcalc-verdict { margin: 16px 0 0; color: var(--text); font-size: 15.5px; }
.rbcalc-verdict b { color: var(--amber); font-variant-numeric: tabular-nums; }
.rbcalc-note { margin: 10px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.55; }

/* ── Cluster list and up-link ───────────────────────────────────────────── */

.clusterlist { margin: 52px 0 0; }
.clusterlist h2 { margin-bottom: 18px; }
.clusterlist ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.clusterlist li {
  margin: 0; padding: 0; border-bottom: 1px solid var(--line);
}
.clusterlist li a {
  display: block; padding: 16px 0 4px;
  color: var(--text); font-weight: 650; font-size: 17px; text-decoration: none;
}
.clusterlist li a:hover { color: var(--amber-hover); }
.clusterlist li span { display: block; padding-bottom: 16px; color: var(--text-3); font-size: 14px; line-height: 1.55; }

.uplink {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  max-width: 72ch; margin: 0 auto; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}
.uplink > span { color: var(--text-3); font-size: 14px; }
.uplink a { color: var(--amber); font-weight: 600; font-size: 15px; }
.uplink a:hover { color: var(--amber-hover); }

/* ── /guides/ index ─────────────────────────────────────────────────────── */

.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.gcard {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: var(--radius); color: var(--text-2); text-decoration: none;
}
.gcard:hover { border-color: rgba(245, 166, 35, .42); color: var(--text); transform: translateY(-3px); box-shadow: 0 20px 50px var(--shadow); }
.gcard strong { color: var(--text); font-size: 17.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.gdesc { color: var(--text-2); font-size: 14px; line-height: 1.55; flex: 1; }
.gread { color: var(--text-3); font-size: 12.5px; }
.gtag {
  align-self: flex-start; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(245, 166, 35, .35); background: rgba(245, 166, 35, .1);
  color: var(--amber); font-size: 11.5px; font-weight: 700; letter-spacing: .6px;
}

/* ── Coming-soon notify band ────────────────────────────────────────────── */

.notify {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center; padding: clamp(26px, 3.6vw, 42px); border-radius: var(--radius);
  scroll-margin-top: 100px;
}
.notify-body h2, .notify-body h3 {
  margin: 0 0 12px; color: var(--text); letter-spacing: -.02em; line-height: 1.15;
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 700;
}
.notify-body p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }

.notify-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.notify-form input[type="email"] {
  flex: 1; min-width: 200px; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(255, 255, 255, .05); color: var(--text);
  font: inherit; font-size: 15px;
}
.notify-form input[type="email"]::placeholder { color: var(--text-3); }
.notify-form input[type="email"]:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-color: transparent; }
.notify-form .btn { min-height: 50px; white-space: nowrap; }
.notify-msg { flex-basis: 100%; margin: 0; min-height: 1.2em; font-size: 13.5px; color: var(--text-3); }
.notify-msg.is-ok { color: var(--amber); }
.notify-msg.is-err { color: #ff9b9b; }
.notify-form.is-done input, .notify-form.is-done .btn { display: none; }
.notify-form.is-done .notify-msg { font-size: 16px; }

/* Homepage: the honest line under the ask box while rentals are still closed. */
.ask-soon { margin: 16px 0 0; color: var(--text-3); font-size: 13.5px; }
.ask-soon a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.ask-soon a:hover { color: var(--amber-hover); }

/* ── Narrow ─────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .notify { grid-template-columns: 1fr; }
  .rbcalc-out { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .guide { padding-top: 30px; }
  .guide-body { font-size: 16.5px; }
  .answer { padding: 20px; }
  .gfx-frame { padding: 16px; }
  .notify-form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .gcard { transition-duration: .01ms !important; }
}
