/* The free cooking-time pages. Same palette as the app's default "Terracotta Kitchen" theme (themes.css). */
:root {
  --ink: #2a1d16; --muted: #76675b; --line: #e7ddcf; --ground: #f3ede4; --sheet: #fffdf9; --raised: #f1e9de;
  --primary: #a5552f; --primary-soft: #8f4826;
  --done: #2f7a3c; --now: #b7791f; --now-soft: #fbf3e2;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.6 "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
a { color: inherit; }
.top, main, footer { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 8px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: 0.02em; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a:not(.button) { text-decoration: none; color: var(--muted); }
.top nav a:not(.button):hover { color: var(--ink); }
.crumbs { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 8px 0 10px; }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 8px; }
.lede { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

.button { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 6px; background: var(--primary); color: #fff; font: inherit; font-weight: 500; text-decoration: none; border: 0; cursor: pointer; }
.button:hover { background: var(--primary-soft); }
.button.small { height: 34px; padding: 0 14px; font-size: 14px; }
.link { margin-left: 14px; }

/* Calculator */
.tool { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.tool:has(.plan) { grid-template-columns: 1fr; }
@media (max-width: 680px) { .tool { grid-template-columns: 1fr; padding: 16px; } .row { grid-template-columns: 96px 1fr; } }
.tool-form { display: grid; gap: 14px; align-content: start; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.field { display: grid; gap: 4px; }
.field[hidden], .check[hidden] { display: none; }
label, legend { font-size: 14px; font-weight: 500; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
input, select { font: inherit; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); color: var(--ink); width: 100%; min-width: 0; }
input:focus, select:focus, .button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.joined { display: flex; }
.joined input { flex: 1; border-radius: 6px 0 0 6px; }
.joined select { flex: none; width: 72px; border-radius: 0 6px 6px 0; border-left: 0; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
fieldset.sides { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0; display: grid; gap: 6px 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
fieldset.sides legend { padding: 0 4px; }

.answer { background: var(--raised); border-radius: 8px; padding: 16px 18px; align-self: start; }
.big { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.2; }
.big .muted { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; }
dl { margin: 0; display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
dt { color: var(--muted); font-size: 14px; padding-top: 1px; }
dd { margin: 0; }
.answer > p.muted { font-size: 14px; margin: 12px 0 0; }

/* Planner timeline */
.plan h3:first-child { margin-top: 0; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 7px 0 7px 14px; position: relative; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--line); }
.timeline li.main::before { background: var(--ink); border-color: var(--ink); }
.timeline li.main span { font-weight: 500; }
.timeline time { color: var(--muted); font-weight: 500; }
.actions { margin-top: 16px; }

/* UK / US toggle */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; margin: 4px 0 8px; }
.seg[hidden] { display: none; }
.seg button { font: inherit; font-size: 14px; font-weight: 500; height: 32px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(19, 20, 22, 0.12); }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
[data-panel][hidden] { display: none; }

/* Tables */
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
caption { text-align: left; padding: 10px 14px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; color: var(--muted); font-weight: 500; background: var(--raised); }
tbody th { font-weight: 500; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }

/* FAQ, CTA, related */
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.cta { margin: 48px 0 8px; background: var(--primary); color: #fff; border-radius: 12px; padding: 24px; }
.cta h2 { margin-top: 0; }
.cta p { color: #f5e9cf; max-width: 620px; }
.cta .button { background: #fff; color: var(--ink); }
.cta .link { color: #fff; }
.related ul, .cards { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.related li { margin: 0; display: grid; }
.related a { font-weight: 500; }
.related span { font-size: 14px; color: var(--muted); }
.cards li { margin: 0; }
.cards a { display: grid; gap: 2px; height: 100%; background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; text-decoration: none; }
.cards a:hover { border-color: var(--ink); }
.cards span { color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; padding-bottom: 40px; color: var(--muted); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }

@media print {
  .top, .crumbs, .lede, .tool-form, .cta, .related, footer, .faq, .actions, main > :not(.tool) { display: none !important; }
  body { background: #fff; }
  .tool { border: 0; padding: 0; display: block; }
}

/* Commands and settings on /use-with-ai: scroll sideways on small screens instead of overflowing. */
pre { overflow-x: auto; margin: 8px 0 16px; padding: 10px 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; line-height: 1.5; }
code { font-size: 0.95em; }
