/* Podcast Script Timing & Spoken Pace Calculator — content styles.
   Prefix: --pt-  /  .pt-

   Reference point: a hero duration figure at the chosen pace leads,
   backed by a 4-row pace-comparison table beneath it — distinct from
   this cluster's other textarea tools (flesch-kincaid uses a serif
   textarea with a single score; word-frequency uses a ranked table with
   no hero). This one pairs a hero with a small table, a shape not yet
   used by a writing-cluster tool this loop.

   THIS FILE STYLES THE CONTENT AREA ONLY. Chrome is owned by chrome.css. */

:root {
  --pt-surface: #ffffff;
  --pt-panel:   #f5f6f4;
  --pt-line:    #dee2dc;
  --pt-text:    #14180f;
  --pt-muted:   #63695c;
  --pt-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

.pt-wrap {
  width: 100%;
  max-width: 38rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Input panel ─────────────────────────────────────────────────────────── */

.pt-panel {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--pt-line);
  border-radius: 2px;
  background: var(--pt-surface);
}

.pt-input-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pt-muted);
}

.pt-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--pt-text);
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 2px;
  resize: vertical;
}

.pt-textarea:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: -1px;
}

.pt-pace-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.875rem;
}

.pt-pace-row label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pt-text);
}

.pt-pace-row input {
  width: 5.5rem;
  box-sizing: border-box;
  padding: 0.5rem 0.625rem;
  font-family: var(--pt-mono);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--pt-text);
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: 2px;
}

.pt-pace-row input:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: -1px;
}

.pt-presets {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--pt-line);
  margin-top: 0.875rem;
  padding-top: 0.875rem;
}

.pt-preset-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pt-muted);
}

.pt-chip {
  padding: 0.3125rem 0.75rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pt-text);
  background: var(--pt-panel);
  border: 1px solid var(--pt-line);
  border-radius: 2px;
  cursor: pointer;
}

.pt-chip:hover {
  border-color: var(--tf-accent);
  color: var(--tf-accent);
}

/* ── Primary action button ──────────────────────────────────────────────── */

.pt-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;
}

.pt-btn:hover  { background: var(--tf-accent-hover);  border-color: var(--tf-accent-hover); }
.pt-btn:active { background: var(--tf-accent-active); border-color: var(--tf-accent-active); }

.pt-btn:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: 2px;
}

/* ── Hero + comparison table ─────────────────────────────────────────────── */

.pt-hero {
  padding: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  border: 1px solid var(--pt-line);
  border-radius: 2px;
  background: var(--pt-surface);
}

.pt-hero-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pt-muted);
}

.pt-hero-value {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--tf-accent);
}

.pt-hero-sub {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  color: var(--pt-muted);
}

.pt-table {
  display: grid;
  border: 1px solid var(--pt-line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.pt-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 0.5rem;
  padding: 0.5625rem 1rem;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--pt-line);
  background: var(--pt-surface);
}

.pt-row:last-child { border-bottom: none; }

.pt-row-head {
  background: var(--pt-panel);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pt-muted);
}

.pt-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--pt-muted);
}

/* ── Ad slots ───────────────────────────────────────────────────────────── */

.pt-ad {
  min-height: 280px;
  margin: 2rem auto 0;
  max-width: 38rem;
  padding-inline: 1.5rem;
}

@media (max-width: 26rem) {
  .pt-wrap,
  .pt-ad { padding-inline: 1rem; }
  .pt-panel { padding: 1.25rem; }
  .pt-row { grid-template-columns: 1.2fr 0.7fr 0.8fr; font-size: 0.8125rem; }
}

/* 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"] {
  --pt-surface: var(--tf-surface);
  --pt-panel: var(--tf-surface);
  --pt-line: var(--tf-rule);
  --pt-text: var(--tf-ink);
  --pt-muted: var(--tf-ink-soft);
}
