/* 1-Rep Max Calculator — content styles.
   Prefix: --rm-  /  .rm-

   Reference point: a gym-plate-inspired bold numeral display for the
   hero figure — the audience wants one big number fast, then the
   breakdown. High-contrast, heavier weights than this loop's other
   calculators, since the subject itself (barbell training) calls for
   a bolder, more physical feel than a financial or writing tool.
   Ninth `health`-cluster tool built this loop.

   THIS FILE STYLES THE CONTENT AREA ONLY. Chrome is owned by chrome.css. */

:root {
  --rm-surface: #ffffff;
  --rm-panel:   #f5f4f2;
  --rm-line:    #e3e0da;
  --rm-text:    #1a1815;
  --rm-muted:   #6b665d;
  --rm-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

.rm-wrap {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Input panel ─────────────────────────────────────────────────────────── */

.rm-panel {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--rm-line);
  border-radius: 2px;
  background: var(--rm-surface);
}

.rm-field {
  margin-bottom: 1rem;
}

.rm-field:last-of-type {
  margin-bottom: 1.25rem;
}

.rm-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--rm-muted);
}

.rm-field input[type="number"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.875rem;
  font-family: var(--rm-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rm-text);
  background: var(--rm-panel);
  border: 1px solid var(--rm-line);
  border-radius: 2px;
}

.rm-weight-row {
  display: grid;
  grid-template-columns: 1fr 5rem;
  gap: 0.625rem;
}

.rm-weight-row select {
  padding: 0.75rem 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--rm-text);
  background: var(--rm-panel);
  border: 1px solid var(--rm-line);
  border-radius: 2px;
}

.rm-field input:focus-visible,
.rm-weight-row select:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: -1px;
}

/* ── Primary action button ──────────────────────────────────────────────── */

.rm-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--tf-accent-ink);
  background: var(--tf-accent);
  border: 1px solid var(--tf-accent);
  border-radius: 2px;
  cursor: pointer;
}

.rm-btn:hover  { background: var(--tf-accent-hover);  border-color: var(--tf-accent-hover); }
.rm-btn:active { background: var(--tf-accent-active); border-color: var(--tf-accent-active); }

.rm-btn:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: 2px;
}

/* ── Hero + metrics ──────────────────────────────────────────────────────── */

.rm-hero {
  padding: 1.75rem 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  border: 1px solid var(--rm-line);
  border-radius: 2px;
  background: var(--rm-surface);
}

.rm-hero-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rm-muted);
}

.rm-hero-value {
  margin: 0;
  font-family: var(--rm-mono);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--tf-accent);
}

.rm-hero-sub {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--rm-muted);
}

.rm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 26rem) {
  .rm-grid { grid-template-columns: 1fr; }
}

.rm-metric {
  padding: 1rem 0.75rem;
  border: 1px solid var(--rm-line);
  border-radius: 2px;
  background: var(--rm-panel);
  text-align: center;
}

.rm-metric-label {
  margin: 0 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--rm-muted);
}

.rm-metric-value {
  margin: 0;
  font-family: var(--rm-mono);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--rm-text);
}

/* ── Training percentage table ──────────────────────────────────────────── */

.rm-table-wrap {
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--rm-line);
  border-radius: 2px;
  background: var(--rm-surface);
}

.rm-table-title {
  margin: 0 0 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rm-muted);
}

.rm-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--rm-mono);
  font-size: 0.875rem;
}

.rm-table th {
  text-align: left;
  padding: 0.375rem 0.5rem;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--rm-muted);
  border-bottom: 1px solid var(--rm-line);
}

.rm-table td {
  padding: 0.4375rem 0.5rem;
  color: var(--rm-text);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--rm-line);
}

.rm-table tr:last-child td {
  border-bottom: none;
}

.rm-table tr:first-child td {
  font-weight: 700;
  color: var(--tf-accent);
}

.rm-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--rm-muted);
}

/* ── Ad slots ───────────────────────────────────────────────────────────── */

.rm-ad {
  min-height: 280px;
  margin: 2rem auto 0;
  max-width: 34rem;
  padding-inline: 1.5rem;
  overflow: hidden;
}

@media (max-width: 26rem) {
  .rm-wrap,
  .rm-ad { padding-inline: 1rem; }
  .rm-panel { padding: 1.25rem; }
  .rm-hero-value { font-size: 2.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"] {
  --rm-surface: var(--tf-surface);
  --rm-panel: var(--tf-surface);
  --rm-line: var(--tf-rule);
  --rm-text: var(--tf-ink);
  --rm-muted: var(--tf-ink-soft);
}
