/* Gold & Precious Metals Scrap Value Calculator — content styles.
   Prefix: --gv-  /  .gv-

   Reference point: a warm, metallic-adjacent neutral palette (a hint
   of gold undertone in the accent-neutral, not a literal gold-colored
   UI) for a tool about melting down jewelry — restrained rather than
   literal, since a page styled in actual gold/yellow would read as
   garish rather than trustworthy for a financial estimate.

   THIS FILE STYLES THE CONTENT AREA ONLY. Chrome is owned by chrome.css. */

:root {
  --gv-surface: #ffffff;
  --gv-panel:   #f6f4ef;
  --gv-line:    #e3ddd0;
  --gv-text:    #1c1710;
  --gv-muted:   #6b6255;
  --gv-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

.gv-wrap {
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Input panel ─────────────────────────────────────────────────────────── */

.gv-panel {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gv-line);
  border-radius: 2px;
  background: var(--gv-surface);
}

.gv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gv-row:last-of-type {
  margin-bottom: 1.25rem;
}

.gv-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gv-muted);
}

.gv-field input,
.gv-field select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--gv-text);
  background: var(--gv-panel);
  border: 1px solid var(--gv-line);
  border-radius: 2px;
}

.gv-field input {
  font-family: var(--gv-mono);
  font-size: 1rem;
}

.gv-field input:focus-visible,
.gv-field select:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: -1px;
}

/* ── Primary action button ──────────────────────────────────────────────── */

.gv-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tf-accent-ink);
  background: var(--tf-accent);
  border: 1px solid var(--tf-accent);
  border-radius: 2px;
  cursor: pointer;
}

.gv-btn:hover  { background: var(--tf-accent-hover);  border-color: var(--tf-accent-hover); }
.gv-btn:active { background: var(--tf-accent-active); border-color: var(--tf-accent-active); }

.gv-btn:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: 2px;
}

/* ── Results ─────────────────────────────────────────────────────────────── */

.gv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 30rem) {
  .gv-grid { grid-template-columns: 1fr; }
}

.gv-metric {
  padding: 1.25rem 1rem;
  border: 1px solid var(--gv-line);
  border-radius: 2px;
  background: var(--gv-surface);
  text-align: center;
}

.gv-metric-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gv-muted);
}

.gv-metric-value {
  margin: 0;
  font-family: var(--gv-mono);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--tf-accent);
}

.gv-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gv-muted);
}

/* ── Ad slots ───────────────────────────────────────────────────────────── */

.gv-ad {
  min-height: 280px;
  margin: 2rem auto 0;
  max-width: 36rem;
  padding-inline: 1.5rem;
  overflow: hidden;
}

@media (max-width: 26rem) {
  .gv-wrap,
  .gv-ad { padding-inline: 1rem; }
  .gv-panel { padding: 1.25rem; }
  .gv-row { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --gv-surface: var(--tf-surface);
  --gv-panel: var(--tf-surface);
  --gv-line: #c2b599;
  --gv-text: var(--tf-ink);
  --gv-muted: var(--tf-ink-soft);
}
