/* Shared stage styles for the recipe iframes and the playground result frame. The recipes in the repo stay unstyled on purpose;
   the site gives their output a calm, designed look in the same palette as the docs. */
@font-face { font-family: Inter; src: url(/fonts/InterVariable.woff2) format('woff2'); font-weight: 100 900; font-display: swap }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/JetBrainsMono.woff2) format('woff2'); font-weight: 100 800; font-display: swap }
:root { --accent: #184C64; --accent-strong: #123A4D; --accent-soft: #E3EEF4; --text: #2B2F36; --muted: #5F6670; --line: #E1E6EA; --surface: #fff; --surface-2: #EEF3F6; --danger: #C8353B; --ok: #24884D; color-scheme: light }
* { box-sizing: border-box }
html, body { margin: 0 }
body { font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding: 18px 20px; color: var(--text); background: var(--surface); -webkit-font-smoothing: antialiased }
p { margin: 10px 0 } p:empty { display: none }
small { color: var(--danger); display: block; margin-top: 4px; font-size: 12.5px }
code { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .92em; background: var(--surface-2); border-radius: 4px; padding: .1em .35em }
a { color: var(--accent) }
/* lists become cards */
ul { list-style: none; padding: 0; margin: 0 }
li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; margin: 6px 0; background: var(--surface) }
li.done { text-decoration: line-through; color: var(--muted); background: var(--surface-2) }
.dim { opacity: .55; transition: opacity .15s }
/* fields */
form { display: grid; gap: 10px; max-width: 380px }
label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 500 }
input, select, textarea { font: inherit; color: var(--text); height: 36px; padding: 0 10px; border: 1px solid #CFD8DE; border-radius: 8px; background: var(--surface); width: 100%; min-width: 0 }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }
input[aria-invalid="true"], input:user-invalid { border-color: var(--danger); outline-color: var(--danger) }
form > div, form > p { display: flex; gap: 8px; align-items: center; margin: 0 }
form > p { display: block }
[role="alert"], .error { color: var(--danger); font-size: 12.5px }
[aria-live] { color: var(--ok); font-size: 13px }
/* buttons */
button { font: 600 13.5px Inter, ui-sans-serif, system-ui, sans-serif; height: 36px; padding: 0 14px; border: 1px solid var(--accent-strong); border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap }
button:hover { background: var(--accent-strong) }
button:disabled { opacity: .5; cursor: default }
button[value="cancel"], button.secondary { background: var(--surface); color: var(--accent); border-color: var(--line) } button[value="cancel"]:hover, button.secondary:hover { background: var(--surface-2) }
li > button { height: 30px; padding: 0 10px; font-size: 13px; margin-left: auto }
/* tables */
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden }
th, td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line) } tr:last-child td { border-bottom: 0 }
th { background: var(--surface-2); font-weight: 600; font-size: 12.5px; letter-spacing: .02em; cursor: pointer; user-select: none } th:hover { color: var(--accent) }
td:first-child, th:first-child { color: var(--muted); width: 1% }
/* dialog */
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; box-shadow: 0 20px 50px -20px rgba(11,26,35,.4); max-width: 360px }
dialog::backdrop { background: rgba(11,26,35,.45) }
dialog form { max-width: none } dialog p { margin: 0 0 14px; font-size: 15px } dialog form { display: flex; justify-content: flex-end; gap: 8px }
/* nav in the router preset */
nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px } nav a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 13px } nav a.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong) }
.muted { color: var(--muted); font-size: 13px }
.skeleton { color: var(--muted) }
