/* Drywall Calculator — content styles.
   Prefix: --dr-  /  .dr-

   Reference point: a plain, chalky drywall-white neutral — the fifth
   home-diy tool this loop, distinct in hue from concrete's grey,
   lumber's tan, and paint's cool neutral by leaning toward an
   off-white joint-compound tone.

   THIS FILE STYLES THE CONTENT AREA ONLY. Chrome is owned by chrome.css. */

:root {
  --dr-surface: #ffffff;
  --dr-panel:   #f5f4f2;
  --dr-line:    #e2dfd9;
  --dr-text:    #19180f;
  --dr-muted:   #6b6559;
  --dr-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

.dr-wrap {
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Input panel ─────────────────────────────────────────────────────────── */

.dr-panel {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--dr-line);
  border-radius: 2px;
  background: var(--dr-surface);
}

.dr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dr-field--single {
  margin-bottom: 1.25rem;
}

.dr-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dr-muted);
}

.dr-field input,
.dr-field select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--dr-text);
  background: var(--dr-panel);
  border: 1px solid var(--dr-line);
  border-radius: 2px;
}

.dr-field input {
  font-family: var(--dr-mono);
  font-size: 1rem;
}

.dr-field input:focus-visible,
.dr-field select:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: -1px;
}

/* ── Primary action button ──────────────────────────────────────────────── */

.dr-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;
}

.dr-btn:hover  { background: var(--tf-accent-hover);  border-color: var(--tf-accent-hover); }
.dr-btn:active { background: var(--tf-accent-active); border-color: var(--tf-accent-active); }

.dr-btn:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: 2px;
}

/* ── Results ─────────────────────────────────────────────────────────────── */

.dr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 30rem) {
  .dr-grid { grid-template-columns: 1fr; }
}

.dr-metric {
  padding: 1.25rem 1rem;
  border: 1px solid var(--dr-line);
  border-radius: 2px;
  background: var(--dr-surface);
  text-align: center;
}

.dr-metric-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--dr-muted);
}

.dr-metric-value {
  margin: 0;
  font-family: var(--dr-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tf-accent);
}

.dr-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--dr-muted);
}

/* ── Ad slots ───────────────────────────────────────────────────────────── */

.dr-ad {
  min-height: 280px;
  margin: 2rem auto 0;
  max-width: 32rem;
  padding-inline: 1.5rem;
  overflow: hidden;
}

@media (max-width: 26rem) {
  .dr-wrap,
  .dr-ad { padding-inline: 1rem; }
  .dr-panel { padding: 1.25rem; }
  .dr-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"] {
  --dr-surface: var(--tf-surface);
  --dr-panel: var(--tf-surface);
  --dr-line: var(--tf-rule);
  --dr-text: var(--tf-ink);
  --dr-muted: var(--tf-ink-soft);
}
