/* =========================================================================
   GrokTech v108 — Components: retailer CTA, sticky CTA, last-verified, etc.
   Loaded AFTER gtg-v107-overlay.css. Pure additive layer.
   ========================================================================= */

/* ─── RETAILER CTA CARD ──────────────────────────────────────────────────
   Used on commercial pages that lack inline retailer cards. Shows 1–3
   retailer options with name + label, mono caps. Drops into article flow
   between sections.                                                       */

.v108-retailer-cta {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--gtg-surface);
  border: 1px solid var(--gtg-border);
  border-left: 3px solid var(--v107-accent);
  border-radius: var(--gtg-radius);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
}
.v108-retailer-cta__body { min-width: 0; }
.v108-retailer-cta__eyebrow {
  display: inline-block;
  font-family: var(--gtg-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v107-accent-strong);
  margin-bottom: 4px;
}
.v108-retailer-cta__title {
  font-family: var(--gtg-font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 4px 0;
  color: var(--gtg-ink);
}
.v108-retailer-cta__sub {
  font-size: 13px;
  color: var(--gtg-text-soft);
  margin: 0;
  line-height: 1.45;
}
.v108-retailer-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.v108-retailer-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 180px;
  padding: 10px 14px;
  border: 1px solid var(--gtg-border-strong);
  border-radius: var(--gtg-radius);
  background: var(--gtg-bg);
  color: var(--gtg-ink) !important;
  font-family: var(--gtg-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: border-color 120ms var(--v107-ease-out),
              background 120ms var(--v107-ease-out),
              transform 120ms var(--v107-ease-out);
}
.v108-retailer-cta__btn:hover {
  border-color: var(--v107-accent) !important;
  background: var(--v107-accent-soft);
  color: var(--v107-accent-strong) !important;
  transform: translateY(-1px);
}
.v108-retailer-cta__btn-arrow {
  font-family: ui-monospace, monospace;
  opacity: 0.5;
}
.v108-retailer-cta__btn:hover .v108-retailer-cta__btn-arrow { opacity: 1; }
.v108-retailer-cta__retailer-name {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.v108-retailer-cta__disclosure {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--gtg-text-soft);
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--gtg-border);
}

@media (max-width: 720px) {
  .v108-retailer-cta { grid-template-columns: 1fr; }
  .v108-retailer-cta__buttons { flex-direction: column; }
  .v108-retailer-cta__btn { min-width: 0; width: 100%; }
}

/* ─── STICKY RETAILER CTA (DESKTOP + MOBILE) ─────────────────────────────
   Appears after the reader scrolls past the first viewport. Bottom-right
   pill on desktop, full-width bar on mobile.                              */

.v108-sticky-buy {
  position: fixed;
  z-index: 80;
  display: flex;  /* default; media queries adjust */
  align-items: center;
  background: var(--gtg-ink);
  color: var(--gtg-bg);
  border: 1px solid var(--gtg-ink);
  border-radius: var(--gtg-radius);
  box-shadow: 0 16px 40px rgba(10, 14, 20, 0.18), 0 0 0 1px rgba(0, 179, 200, 0.12);
  font-family: var(--gtg-font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: opacity 200ms var(--v107-ease-out), transform 200ms var(--v107-ease-out);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.v108-sticky-buy.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Desktop: bottom-right pill */
@media (min-width: 901px) {
  .v108-sticky-buy {
    right: 24px;
    bottom: 24px;
    padding: 12px 16px 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 360px;
  }
  .v108-sticky-buy__label {
    flex: 1 1 auto;
    color: rgba(240, 237, 229, 0.78);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .v108-sticky-buy__btn {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--v107-accent);
    color: #0b1220 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
  }
  .v108-sticky-buy__btn:hover { background: #7fe3ef; }
  .v108-sticky-buy__close {
    flex: 0 0 auto;
    width: 22px; height: 22px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    color: rgba(240, 237, 229, 0.5);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    border-radius: 3px;
  }
  .v108-sticky-buy__close:hover { color: rgba(240, 237, 229, 0.95); background: rgba(240, 237, 229, 0.08); }
}

/* Mobile: bottom bar */
@media (max-width: 900px) {
  .v108-sticky-buy {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
  }
  .v108-sticky-buy__label {
    color: rgba(240, 237, 229, 0.78);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .v108-sticky-buy__btn {
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--v107-accent);
    color: #0b1220 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 12px;
  }
  .v108-sticky-buy__close {
    width: 28px; height: 28px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    color: rgba(240, 237, 229, 0.55);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v108-sticky-buy { transition: none; }
}
@media print { .v108-sticky-buy { display: none !important; } }


/* ─── HUB TRUST STRIP ────────────────────────────────────────────────────
   Same visual language as the commercial trust strip but tuned for hub
   pages (4 cells: Audience / Methodology / Editorial / Disclosure).      */

.v108-hub-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gtg-border);
  border: 1px solid var(--gtg-border);
  border-radius: var(--gtg-radius);
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  font-family: var(--gtg-font-mono);
}
.v108-hub-trust__cell {
  background: var(--gtg-surface);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v108-hub-trust__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gtg-text-soft);
}
.v108-hub-trust__label svg { width: 12px; height: 12px; opacity: 0.7; flex: 0 0 12px; }
.v108-hub-trust__value {
  font-size: 13px;
  font-weight: 500;
  color: var(--gtg-ink);
  letter-spacing: -0.01em;
}
.v108-hub-trust__value a { color: var(--gtg-ink); text-decoration-color: var(--gtg-border-strong); }
.v108-hub-trust__value a:hover { color: var(--v107-accent-strong); text-decoration-color: var(--v107-accent); }
@media (max-width: 720px) { .v108-hub-trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .v108-hub-trust { grid-template-columns: 1fr; } }


/* ─── PER-PRODUCT LAST-VERIFIED BADGE ────────────────────────────────────
   Tiny mono caps stamp next to a product name or row. Shown via JS by
   matching data-last-verified attributes on product cards.                */

.v108-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--gtg-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gtg-text-soft);
  white-space: nowrap;
  vertical-align: middle;
}
.v108-verified::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--v107-accent);
  border-radius: 50%;
  display: inline-block;
}

/* ─── COMPARISON TABLE (for /vs/ pages) ──────────────────────────────────
   Default table style is fine; this is for the dedicated comparison table
   block we inject on pages that lack one.                                 */

.v108-compare-table {
  width: 100%;
  margin: 1.5rem 0 2rem;
  border-collapse: collapse;
  font-size: 14px;
}
.v108-compare-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--gtg-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gtg-text-soft);
  margin-bottom: 8px;
}
.v108-compare-table th,
.v108-compare-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gtg-border);
  vertical-align: top;
}
.v108-compare-table thead th {
  background: var(--gtg-surface-alt);
  font-family: var(--gtg-font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--gtg-ink);
  border-bottom: 2px solid var(--gtg-border-strong);
}
.v108-compare-table tbody th {
  font-family: var(--gtg-font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gtg-text-soft);
  background: transparent;
  width: 30%;
}
.v108-compare-table tbody td {
  font-family: var(--gtg-font-mono);
  font-size: 13px;
  color: var(--gtg-ink);
}
.v108-compare-table .is-better { color: var(--v107-accent-strong); font-weight: 600; }

/* v112: Mobile overflow protection for comparison tables.
   On narrow viewports the 3-column tables can exceed 390px width because the
   header/body cells contain GPU model strings ("RTX 4080 laptop"). Without a
   scroll container the page itself becomes horizontally scrollable, which
   clips eyebrow text and breaks the breadcrumb. Solution: wrap each table in
   .v108-compare-wrap which provides horizontal scroll, and add a fade-edge
   gradient on the right side of the wrapper indicating scrollability. */
.v108-compare-wrap {
  position: relative;
  width: 100%;
  margin: 1.5rem 0 2rem;
}
.v108-compare-wrap .v108-compare-caption {
  display: block;
  font-family: var(--gtg-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gtg-text-soft);
  margin-bottom: 8px;
  white-space: normal;
  word-wrap: break-word;
}
.v108-compare-wrap .v108-compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.v108-compare-wrap .v108-compare-table {
  margin: 0;
  min-width: 480px;  /* keep the 3-column layout legible when scrolled */
}
/* If the table's own <caption> exists, hide it because we render the
   externalized .v108-compare-caption instead (preserves accessibility via
   aria-describedby). */
.v108-compare-wrap .v108-compare-table > caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .v108-compare-wrap .v108-compare-scroll::after {
    content: "";
    position: absolute;
    top: 24px; right: 0; bottom: 12px;
    width: 24px;
    pointer-events: none;
    background: linear-gradient(
      to right,
      transparent,
      var(--gtg-bg, #fbfaf7) 80%
    );
  }
}

/* v112: Larger tap targets inside comparison tables on mobile.
   The audit found <32px tap heights on cell anchors on narrow viewports.
   Bump padding so the entire cell is hit-friendly. */
@media (max-width: 600px) {
  .v108-compare-table th,
  .v108-compare-table td {
    padding: 14px 12px;  /* up from 10px 14px to give 44px min row height */
  }
  .v108-compare-table tbody th {
    width: 36%;  /* slightly wider label column on mobile */
  }
}


/* ─── FOOTER LINK CONTRAST FIX (v108) ────────────────────────────────────
   The legacy footer-utility links rendered as light pills on dark bg with
   white text, producing invisible text. Fix: transparent backgrounds + visible
   ink-on-dark link colors that match the v107 footer redesign.            */

.gtg-footer .gtg-footer-utility a,
.gtg-footer .gtg-footer-shortcuts a {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 4px 10px !important;
  margin: 2px 4px !important;
  color: rgba(240, 237, 229, 0.78) !important;
  text-decoration: none !important;
  font-family: var(--gtg-font-mono, ui-monospace, monospace) !important;
  font-size: 12px !important;
  letter-spacing: 0.02em !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  transition: color 120ms var(--v107-ease-out, ease) !important;
}
.gtg-footer .gtg-footer-utility a:hover,
.gtg-footer .gtg-footer-shortcuts a:hover {
  color: var(--v107-accent, #4dd6e6) !important;
  background: transparent !important;
  text-decoration: underline !important;
  text-decoration-color: var(--v107-accent, #4dd6e6) !important;
}

.gtg-footer .gtg-footer-utility,
.gtg-footer .gtg-footer-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
}


/* ─── v113 MOBILE TAP TARGETS (P1-6) ─────────────────────────────────────
   The deep audit found 15-36 small (<32px) tap targets per page on
   mobile, mostly clustered in footer link rows, trust strips, bylines,
   inline comparison-table cell links, and "see also" blocks. WCAG 2.5.5
   requires 44×44px minimum.

   Strategy: bump padding/min-height on each problematic anchor pattern
   under @media (max-width: 768px), without disturbing desktop layout.   */

@media (max-width: 768px) {
  /* Footer utility + shortcut links — 13 of the 36 small targets on the
     calculator page came from these two containers. Bump padding from
     ~4px to 8px on top/bottom; gap on the parent already provides h. */
  .gtg-footer .gtg-footer-utility a,
  .gtg-footer .gtg-footer-shortcuts a {
    padding: 12px 14px !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .gtg-footer .gtg-footer-utility,
  .gtg-footer .gtg-footer-shortcuts {
    gap: 8px;
  }

  /* Trust strip values (METHODOLOGY/INDEPENDENCE/VERIFIED/AFFILIATE) —
     the inline <a> inside each strip cell was rendering at <32px tall. */
  .v107-trust-value a {
    display: inline-block;
    padding: 8px 4px;
    min-height: 32px;
    line-height: 1.4;
  }

  /* Byline inline links — "Reviewed by GrokTech Editorial Team" pattern */
  .gtg-byline a,
  .gtg-author-inline a {
    display: inline-block;
    padding: 6px 2px;
    min-height: 32px;
    line-height: 1.5;
  }

  /* v108 "see also" block — inline links to related guides */
  .v108-see-also a {
    display: inline-block;
    padding: 8px 4px;
    min-height: 36px;
    line-height: 1.4;
  }

  /* Inline links within compare-table cells (already get cell padding bump
     from earlier v112 rule, but make sure the anchor itself extends to
     fill the cell vertically) */
  .v108-compare-table td a,
  .v108-compare-table th a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 0;
  }

  /* Revenue-pick CTA cards — inline links beneath the H3 */
  .gtg-revenue-pick a:not(.v108-buy-btn):not(.gtg-btn) {
    display: inline-block;
    padding: 6px 4px;
    min-height: 32px;
    line-height: 1.5;
  }
}

/* v113: Calculator and ladder-page anchors — these classes are
   specific to the AI hardware calculator and VRAM ladder narrative,
   not commercial CTAs (those already have their own button styling). */
@media (max-width: 768px) {
  .gtg-ladder-narrative a,
  .gtg-calc-mobile-actions a,
  .gtg-calc-help-links a,
  .gtg-calc-convertbox a,
  .gtg-calc-hero-copy__lede a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 4px;
    line-height: 1.4;
  }
}

/* ─── v113 ABOVE-FOLD CTA (P1-4) ─────────────────────────────────────────
   Compact CTA that surfaces the page's primary product recommendation
   near the top of the article, before the reader has to scroll. Uses
   data-slot-name="above-fold" so its conversion is tracked separately
   from the existing top-picks slot. Designed to be minimal — one line of
   eyebrow text, one product name, one short benefit, one retailer button. */

.v113-abovefold-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 14px 16px;
  margin: 0 0 1.5rem;
  border: 1px solid var(--gtg-border-strong, rgba(10,14,20,0.16));
  border-left: 3px solid var(--v107-accent, #00b3c8);
  border-radius: 6px;
  background: var(--gtg-bg-alt, #f3f1ec);
  font-family: var(--gtg-font-sans, system-ui);
}
.v113-abovefold-cta .v113-af-meta {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
}
.v113-abovefold-cta .v113-af-eyebrow {
  display: block;
  font-family: var(--gtg-font-mono, ui-monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gtg-text-soft, #6b7280);
  margin-bottom: 4px;
}
.v113-abovefold-cta .v113-af-product {
  font-weight: 700;
  color: var(--gtg-ink, #0a0e14);
  font-size: 15px;
}
.v113-abovefold-cta .v113-af-benefit {
  color: var(--gtg-text-soft, #475569);
  margin-left: 8px;
}
.v113-abovefold-cta .v113-af-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--gtg-ink, #0a0e14);
  color: var(--gtg-bg, #fbfaf7) !important;
  border-radius: 4px;
  text-decoration: none !important;
  font-family: var(--gtg-font-mono, ui-monospace);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-height: 44px;
  transition: background 120ms ease;
}
.v113-abovefold-cta .v113-af-btn:hover {
  background: var(--v107-accent-strong, #007a8a);
}
.v113-abovefold-cta .v113-af-btn::after {
  content: "↗";
  font-size: 11px;
  opacity: 0.7;
}
@media (max-width: 600px) {
  .v113-abovefold-cta {
    padding: 12px 14px;
    gap: 10px;
  }
  .v113-abovefold-cta .v113-af-meta { flex-basis: 100%; }
  .v113-abovefold-cta .v113-af-btn { width: 100%; justify-content: center; }
  .v113-abovefold-cta .v113-af-benefit {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }
}

/* v113: override legacy underline on the above-fold CTA button */
.v113-abovefold-cta .v113-af-btn,
.v113-abovefold-cta a.v113-af-btn {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  background: var(--gtg-ink, #0a0e14) !important;
  color: var(--gtg-bg, #fbfaf7) !important;
}
.v113-abovefold-cta .v113-af-btn:hover,
.v113-abovefold-cta a.v113-af-btn:hover {
  background: #1f2937 !important;
  color: var(--gtg-bg, #fbfaf7) !important;
  text-decoration: none !important;
}


/* ─── v116 TAP TARGETS (audit P1) ────────────────────────────────────────
   The v115 audit found WCAG 2.5.8 (AA, 24px min) failures the v113 pass
   didn't reach: calculator tool/calc cards (14 sub-24px), revenue CTA
   buttons (3 sub-24px — revenue-critical), and best-laptops pick-cards.
   These rules bring the interactive + revenue elements up to a 44px tap
   height on mobile.                                                        */

@media (max-width: 768px) {
  /* Calculator interactive selector cards — these are tappable option
     cards in the AI hardware calculator. The tappable <a>/<button> inside
     each needs a real tap height. */
  .gtg-tool-card a,
  .gtg-tool-card button,
  .gtg-calc-card a,
  .gtg-calc-card button,
  .gtg-tool-card,
  .gtg-calc-card[role="button"] {
    min-height: 44px;
  }
  .gtg-tool-card a,
  .gtg-tool-card button {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
  }

  /* Revenue-critical: the retailer CTA buttons must never be sub-44px.
     The audit found 3 sub-24px targets inside v108-retailer-cta__buttons. */
  .v108-retailer-cta__buttons a,
  .v108-retailer-cta__buttons button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
  }
  /* Disclosure/footnote links inside retailer CTA blocks */
  .v108-retailer-cta__disclosure a,
  .gtg-tool-footnote a {
    display: inline-block;
    padding: 6px 2px;
    min-height: 32px;
    line-height: 1.5;
  }

  /* best-laptops pick-card inner links */
  .pick-card a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 4px;
  }
}

/* v116: Calculator FORM CONTROLS — the audit's remaining sub-24px targets
   are <input> checkboxes/radios (13x13) and <select> dropdowns (19px tall)
   inside the calculator cards. These are genuine WCAG 2.5.8 failures (the
   inline-link exception does not apply to form controls). Bump them to a
   minimum 24px (targeting 44px where layout allows). Inline prose links
   under 24px tall are exempt under the WCAG 2.5.8 inline exception and are
   intentionally left as-is to preserve paragraph flow. */
@media (max-width: 768px) {
  .gtg-calc-card input[type="checkbox"],
  .gtg-calc-card input[type="radio"],
  .gtg-tool-card input[type="checkbox"],
  .gtg-tool-card input[type="radio"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
  }
  .gtg-calc-card select,
  .gtg-tool-card select,
  .gtg-calc-card input[type="number"],
  .gtg-calc-card input[type="text"] {
    min-height: 44px;
    padding: 8px 10px;
  }
  /* Label wrapping a checkbox/radio gets a larger tap area too */
  .gtg-calc-card label,
  .gtg-tool-card label {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}

/* v116: remaining audit tap-target fixes — higher specificity needed.
   1. Calculator inputs that are direct children of tool-card (any type)
   2. pick-card CTA buttons (revenue) — gtg-cta-button has legacy styling
      that overrode the generic .pick-card a rule, so target it directly. */
@media (max-width: 768px) {
  .gtg-tool-card input,
  article.gtg-tool-card input {
    min-height: 44px;
    box-sizing: border-box;
  }
  .pick-card a.gtg-cta-button,
  .pick-card .gtg-cta-button,
  div.pick-card a.gtg-cta-button {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 11px 18px !important;
    box-sizing: border-box;
  }
}

/* v116: secondary retailer link in above-fold CTA (Amazon diversification).
   A small ghost-style link beside the primary "Check price" button on GPU
   pages, pointing to Newegg for the same product. */
.v113-abovefold-cta .v116-af-secondary {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  margin-left: 8px;
  font-family: var(--gtg-font-mono, ui-monospace);
  font-size: 12px;
  font-weight: 600;
  color: var(--gtg-ink, #0a0e14) !important;
  background: transparent !important;
  border: 1px solid var(--gtg-border-strong, rgba(10,14,20,0.22));
  border-radius: 4px;
  text-decoration: none !important;
}
.v113-abovefold-cta .v116-af-secondary:hover {
  border-color: var(--v107-accent, #00b3c8);
  color: var(--v107-accent-strong, #007a8a) !important;
  text-decoration: none !important;
}
@media (max-width: 600px) {
  .v113-abovefold-cta .v116-af-secondary {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    justify-content: center;
  }
}

/* ─── v117 PRIMARY SOURCES aside (audit P1 — citations) ───────────────────
   A small, understated sources block at the end of content pages, citing
   the official manufacturer/framework docs the analysis draws on. Supports
   E-E-A-T Trust signals without disrupting the reading flow. */
.v117-sources {
  margin: 2.5rem 0 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--gtg-border-strong, rgba(10,14,20,0.14));
  border-left: 3px solid var(--v107-accent, #00b3c8);
  border-radius: 6px;
  background: var(--gtg-bg-alt, #f3f1ec);
  font-size: 0.92rem;
}
.v117-sources h2 {
  font-family: var(--gtg-font-mono, ui-monospace);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gtg-text-soft, #6b7280);
  margin: 0 0 0.5rem;
}
.v117-sources p { margin: 0 0 0.6rem; color: var(--gtg-text, #1f2632); }
.v117-sources ul { margin: 0; padding-left: 1.1rem; }
.v117-sources li { margin: 0.3rem 0; line-height: 1.5; }
.v117-sources a { color: var(--v107-accent-strong, #007a8a); }
@media (max-width: 768px) {
  .v117-sources a {
    /* keep these citation links tappable but they're inline-exempt where in prose */
    display: inline;
  }
}

/* ─── v117 INLINE SECONDARY CTA (audit P2) ────────────────────────────────
   A mid-content CTA featuring a complementary product tier on hub/guide
   pages that previously had only one CTA. Reads as an editorial aside. */
.v117-inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 1.5rem 0;
  padding: 14px 16px;
  border: 1px solid var(--gtg-border-strong, rgba(10,14,20,0.14));
  border-radius: 6px;
  background: var(--gtg-bg-alt, #f3f1ec);
}
.v117-inline-cta__text {
  flex: 1 1 60%;
  min-width: 0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gtg-text, #1f2632);
}
@media (max-width: 600px) {
  .v117-inline-cta__text { flex-basis: 100%; }
  .v117-inline-cta .v117-af-btn { width: 100%; justify-content: center; }
}
