/**
 * Gift-tool typography refine only. Do not add these rules to the theme globally.
 *
 * Two surfaces, same file:
 *   A. Theme form on /gift-finder/ (light DOM: #gift-finder, .gift, #gift-form).
 *      Enqueued on the front end; theme CSS can reach it.
 *   B. Plugin UI inside .tkgf-host's open shadow root (.gg, .chip, .headline…).
 *      Theme CSS cannot reach it. tk-gift-finder-refine.js injects this file
 *      into each open shadow root. Do not set window.TKGF.cssText — that
 *      replaces the 1.0.1 stylesheet entirely instead of adding overrides.
 *
 * Direction: Plex Sans 15px for UI, sentence-case Plex Sans 500 on buttons,
 * mono only for ranks / budget / prices, restrained Archivo headings,
 * 5px radii, hairline borders, no gradients, left-aligned, tabular numbers.
 */

/* ========================================================================
   A. Theme form (what /gift-finder/ actually renders today)
   ======================================================================== */

#gift-finder .gift,
#gift-finder .gift-form {
  font-family: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

#gift-finder .sec-head h1,
#gift-finder .gift-form h3,
#gift-finder .picks-head h3,
#gift-finder .picks b {
  font-family: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 92%;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.2;
}

#gift-finder .sec-head h1 { font-size: 1.75rem; }
#gift-finder .gift-form h3 { font-size: 1.5rem; font-weight: 600; }
#gift-finder .picks-head h3 { font-size: 1.25rem; }
#gift-finder .picks b { font-size: 1.125rem; font-stretch: 94%; }

#gift-finder .field legend,
#gift-finder .field .lab {
  font-family: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

#gift-finder .chips button {
  font-family: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 5px;
}

#gift-finder .picks {
  border-top: 1px solid var(--rule, #d5dbe7);
}

#gift-finder .picks li::before,
#gift-finder .picks .price,
#gift-finder .picks-head .meta,
#gift-finder .fine {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0;
}

/* ========================================================================
   B. Plugin shadow UI (homepage .tkgf-host, and /gift-finder/ once a
      .tkgf-host is mounted there). Inject into the shadow root.
   ======================================================================== */

:host,
.gg {
  --gg-font: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --gg-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gg-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --gg-radius: 5px;
  font: 400 15px/1.5 var(--gg-font);
  letter-spacing: -0.011em;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.brief-title,
.headline,
.pick-name,
.ratings-title {
  font-family: var(--gg-display);
  font-stretch: 92%;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.2;
}

.headline { font-size: 1.5rem; }
.brief-title,
.ratings-title { font-size: 1.25rem; }
.pick-name { font-size: 1.125rem; font-stretch: 94%; }

.chip,
.btn,
.buy,
.alt,
.seg button,
.saved .who button,
.linkish,
.full-link {
  font-family: var(--gg-font);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 5px;
}

.chip,
.saved .who,
.badge,
.switch .track {
  border-radius: 5px;
}

.rank,
.price,
.was,
.asof,
.tier,
.rowtools,
.steps .n,
.meta,
.foot,
.count,
.brand {
  font-family: var(--gg-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0;
}

.price { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.price.small { font-size: 1rem; }

/* Quiet hanging price tag: keep the column, drop the punch-hole and sway. */
.tag,
.tag-in { clip-path: none; }
.tag { transform: none; border: 1px solid var(--gg-ink, #001a40); }
.tag .hole { display: none; }
.tag-body { text-align: left; }
.pick:hover .tag { transform: none; }

.why li { border-radius: 5px; }
