/* reverse-roasting-calculator - page styles. Loads after /css/tokens.css, /css/components.css and /css/tools.css.
   Moved here from the page's <style> block with values converted to Ledger tokens. */

.page.tool-shell { max-width: 920px; padding-top: 28px; }
.tool-controls { display: flex; justify-content: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.net-band { max-width: 920px; margin: 56px auto 0; padding: 0 28px; }
.net-band h2 { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); display: flex; align-items: baseline; gap: 12px; }
.net-band h2 .lbl { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent); }
.net-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.net-grid .gear-img-wrapper { height: 120px; }
@media (max-width: 760px) { .net-grid { grid-template-columns: 1fr; } }
/* ---- Pork by-weight tables ---- */
.roast-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.roast-table th { text-align: left; font-family: var(--font-ui); font-weight:600; font-size: 11px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-2); }
.roast-table td { padding: 8px 12px 8px 0; line-height: 1.5; color: var(--ink); border-bottom: 1px solid var(--line); }

/* ---- Results panel (kit .results): the script writes the timeline items (.timeline-step/-time/-desc) ---- */
/* the panel's grid gap spaces the title, the list and the share row; drop the studio margins on top of it */
.studio-tool .results .timeline-list { margin: 0; }
.studio-tool .results .action-buttons { margin-top: 0; }
/* each step's clock time is a number output: the kit numeric face */
.studio-tool .timeline-time { font-family: var(--font-numeric); font-variant-numeric: var(--numeric-features); font-weight: 600; letter-spacing: 0; color: var(--text); }
/* Rust: kit .btn--ghost:hover draws var(--bg) text on var(--text); inside a panel --text is the panel's
   light text while --bg stays the page's light ground (1.14:1). Use the panel surface instead. */
[data-theme="rust"] .studio-tool :is(.glass, .results) .btn--ghost:hover { color: var(--surface); }
/* at-a-glance table (kit .table): tools.css drops the last row's rule on the row label (th) while the kit keeps it
   on the cell (td); give the label the same hairline so the last line runs the full width */
.studio-tool .glance .table tr:last-child th { border-bottom: 1px solid var(--hairline); }
/* Cast iron: the step label is the action colour, 4.30:1 on --surface-2 (as the bridge notes for --accent-soft);
   on the page ground it is 5.38:1, so the step cards sit on --bg there */
[data-theme="cast-iron"] .studio-tool .timeline-list li:not(.placeholder-text) { background: var(--bg); }
/* ---- Input card: the kit fields on an even grid (studio .controls-card spreads content-width items with
   space-between, so the fields came out uneven). The meat list takes the wider column (its longest names are
   long); below 900px it takes its own row and the weight and time share the next; one column on a phone.
   The button spans the card. ---- */
.studio-tool .controls-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: end; gap: var(--space-5); }
.studio-tool .controls-card > .field:first-child, .studio-tool .controls-card > .btn { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .studio-tool .controls-card { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
  .studio-tool .controls-card > .field:first-child { grid-column: auto; }
}
/* the native time input draws 2px taller than the kit field height; hold all three to it */
.studio-tool .controls-card :is(.input, .select) { height: var(--field-height); }
/* kit .table-wrap rounds its corners and scrolls (overflow-x), which clips the ends of the kit's last-row hairline.
   (styles.css loads before tool-parts.css, so this needs the panel in the selector to win.) */
.studio-tool .glass .table-wrap { border-radius: 0; }
