/* Cron Expression Generator & Explainer — content styles.
   Prefix: --cron-  /  .cron-

   Reference point: a schedule readout, not a builder form — one text
   input, a plain-English sentence, a field-by-field table, and an ordered
   list of upcoming run times. Seventh distinct developer-cluster layout
   this build loop: prose explanation + table + list, not a card grid,
   canvas, split pane, three-card anatomy, highlighted editor, or results
   table alone.

   THIS FILE STYLES THE CONTENT AREA ONLY. Chrome is owned by chrome.css. */

:root {
  --cron-surface: #ffffff;
  --cron-panel:   #f6f5f2;
  --cron-line:    #ddd9d0;
  --cron-text:    #1a1712;
  --cron-muted:   #6b6459;
  --cron-mono:    ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

.cron-wrap {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Input ───────────────────────────────────────────────────────────────── */

.cron-input-panel {
  margin-bottom: 1rem;
}

.cron-input-panel label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cron-muted);
}

.cron-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.875rem;
  font-family: var(--cron-mono);
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  color: var(--cron-text);
  background: var(--cron-surface);
  border: 1px solid var(--cron-line);
  border-radius: 2px;
}

.cron-input:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: -1px;
}

.cron-error {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #b3261e;
}

.cron-presets {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.cron-preset-lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cron-muted);
}

.cron-chip {
  padding: 0.3125rem 0.75rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cron-text);
  background: var(--cron-panel);
  border: 1px solid var(--cron-line);
  border-radius: 2px;
  cursor: pointer;
}

.cron-chip:hover {
  border-color: var(--tf-accent);
  color: var(--tf-accent);
}

/* ── Primary action button ──────────────────────────────────────────────── */

.cron-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;
}

.cron-btn:hover  { background: var(--tf-accent-hover);  border-color: var(--tf-accent-hover); }
.cron-btn:active { background: var(--tf-accent-active); border-color: var(--tf-accent-active); }

.cron-btn:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: 2px;
}

/* ── Explanation sentence ────────────────────────────────────────────────── */

.cron-explain {
  margin: 0 0 1rem;
  padding: 1rem 1.125rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--cron-text);
  background: var(--cron-panel);
  border: 1px solid var(--cron-line);
  border-left: 3px solid var(--tf-accent);
  border-radius: 2px;
}

/* ── Panels (field table, next runs) ────────────────────────────────────── */

.cron-panel {
  margin-bottom: 1.25rem;
}

.cron-panel-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cron-muted);
}

.cron-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--cron-line);
  border-radius: 2px;
}

.cron-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cron-surface);
}

.cron-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cron-muted);
  background: var(--cron-panel);
  border-bottom: 1px solid var(--cron-line);
}

.cron-table td {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--cron-text);
  border-bottom: 1px solid var(--cron-line);
}

.cron-table tbody tr:last-child td {
  border-bottom: none;
}

.cron-table td code {
  font-family: var(--cron-mono);
  background: var(--cron-panel);
  padding: 0.05rem 0.375rem;
  border-radius: 1px;
}

.cron-next-runs {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--cron-line);
  border-radius: 2px;
  overflow: hidden;
  background: var(--cron-surface);
}

.cron-next-runs li {
  padding: 0.5rem 0.75rem;
  font-family: var(--cron-mono);
  font-size: 0.8125rem;
  color: var(--cron-text);
  border-bottom: 1px solid var(--cron-line);
}

.cron-next-runs li:last-child { border-bottom: none; }

/* ── Ad slots ───────────────────────────────────────────────────────────── */

.cron-ad {
  min-height: 280px;
  margin: 2rem auto 0;
  max-width: 46rem;
  padding-inline: 1.5rem;
}

@media (max-width: 26rem) {
  .cron-wrap,
  .cron-ad { padding-inline: 1rem; }
}

/* 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"] {
  --cron-surface: var(--tf-surface);
  --cron-panel: var(--tf-surface);
  --cron-line: var(--tf-rule);
  --cron-text: var(--tf-ink);
  --cron-muted: var(--tf-ink-soft);
}
