/* Break-Even Sales & Units Calculator — content styles.
   Prefix: --bev-  /  .bev-

   Reference point: a single hero break-even-units figure (the number a
   business owner actually needs), with a supporting metrics grid below —
   not a verdict banner (there's no good/bad judgment to render, just one
   number) and not a card comparison (there's nothing to compare against).

   THIS FILE STYLES THE CONTENT AREA ONLY. Chrome is owned by chrome.css. */

:root {
  --bev-surface: #ffffff;
  --bev-panel:   #f6f5f3;
  --bev-line:    #e0dcd4;
  --bev-text:    #191510;
  --bev-muted:   #6b6459;
  --bev-bad:     #b3261e;
  --bev-mono:    ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

.bev-wrap {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Input panel ─────────────────────────────────────────────────────────── */

.bev-panel {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--bev-line);
  border-radius: 2px;
  background: var(--bev-surface);
}

.bev-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 30rem) {
  .bev-field-grid { grid-template-columns: 1fr; }
}

.bev-field {
  display: grid;
  gap: 0.375rem;
}

.bev-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bev-muted);
}

.bev-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem;
  font-family: var(--bev-mono);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  color: var(--bev-text);
  background: var(--bev-surface);
  border: 1px solid var(--bev-line);
  border-radius: 2px;
}

.bev-field input:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: -1px;
}

.bev-error {
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--bev-bad);
  background: rgba(179, 38, 30, 0.06);
  border: 1px solid var(--bev-bad);
  border-radius: 2px;
}

.bev-presets {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--bev-line);
  padding-top: 0.875rem;
}

.bev-preset-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bev-muted);
}

.bev-chip {
  padding: 0.3125rem 0.75rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bev-text);
  background: var(--bev-panel);
  border: 1px solid var(--bev-line);
  border-radius: 2px;
  cursor: pointer;
}

.bev-chip:hover {
  border-color: var(--tf-accent);
  color: var(--tf-accent);
}

/* ── Primary action button ──────────────────────────────────────────────── */

.bev-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;
  margin-bottom: 1.5rem;
}

.bev-btn:hover  { background: var(--tf-accent-hover);  border-color: var(--tf-accent-hover); }
.bev-btn:active { background: var(--tf-accent-active); border-color: var(--tf-accent-active); }

.bev-btn:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: 2px;
}

/* ── Hero + metrics grid ─────────────────────────────────────────────────── */

.bev-hero {
  padding: 1.75rem 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  border: 1px solid var(--bev-line);
  border-radius: 2px;
  background: var(--bev-surface);
}

.bev-hero-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bev-muted);
}

.bev-hero-value {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--tf-accent);
  line-height: 1;
}

.bev-hero-unit {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bev-muted);
}

.bev-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 26rem) {
  .bev-grid { grid-template-columns: 1fr; }
}

.bev-metric {
  padding: 1rem;
  border: 1px solid var(--bev-line);
  border-radius: 2px;
  background: var(--bev-panel);
  text-align: center;
}

.bev-metric-label {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  color: var(--bev-muted);
}

.bev-metric-value {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--bev-text);
}

/* ── Ad slots ───────────────────────────────────────────────────────────── */

.bev-ad {
  min-height: 280px;
  margin: 2rem auto 0;
  max-width: 40rem;
  padding-inline: 1.5rem;
}

@media (max-width: 26rem) {
  .bev-wrap,
  .bev-ad { padding-inline: 1rem; }
  .bev-panel { padding: 1.25rem; }
}

/* 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"] {
  --bev-surface: var(--tf-surface);
  --bev-panel: var(--tf-surface);
  --bev-line: var(--tf-rule);
  --bev-text: var(--tf-ink);
  --bev-muted: var(--tf-ink-soft);
  --bev-bad: #da8581;
}
