:root { color-scheme: light; --ink: #17252b; --muted: #56656b; --accent: #0e6e6a; --pale: #eef7f6; --line: #c9d6d8; --danger: #8b2e2e; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fbfcfc; font: 1rem/1.55 system-ui, sans-serif; }
a { color: #075c59; }
.site-header, footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem max(1rem, calc((100% - 72rem) / 2)); background: white; border-bottom: 1px solid var(--line); }
footer { margin-top: 4rem; border-top: 1px solid var(--line); border-bottom: 0; }
.brand { color: var(--ink); font-weight: 750; text-decoration: none; }
.session-actions { display: flex; align-items: center; gap: 1rem; }
.session-actions form { margin: 0; }
main { width: min(72rem, calc(100% - 2rem)); margin: 2.5rem auto; }
.narrow, .document { max-width: 48rem; margin-inline: auto; }
h1, h2 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { margin-top: 1.75rem; }
label { display: block; margin-top: 1rem; font-weight: 700; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: .7rem; border: 1px solid #829297; border-radius: .25rem; background: white; }
textarea { min-height: 6rem; resize: vertical; }
.document-editor { min-height: 36rem; font-family: ui-monospace, monospace; }
button, .button { display: inline-block; border: 0; border-radius: .25rem; padding: .7rem 1rem; color: white; background: var(--accent); font-weight: 700; text-decoration: none; cursor: pointer; }
button.secondary, .button.secondary { color: var(--ink); background: #dce9e9; }
.link-button { padding: 0; color: #075c59; background: transparent; text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.cards > article, .cards > li, .panel, fieldset, .worked-example, .notice-callout { padding: 1.25rem; border: 1px solid var(--line); border-radius: .4rem; background: white; }
.two-column { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
fieldset { margin: 1.5rem 0; }
legend { padding: 0 .4rem; font-size: 1.2rem; font-weight: 750; }
.save-row, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.success { padding: 1rem; background: var(--pale); border-left: .3rem solid var(--accent); }
.warning { padding: 1rem; color: var(--danger); border: 1px solid #d9a7a7; background: #fff6f6; }
.markdown-preview { overflow-wrap: anywhere; padding: 1rem 1.5rem; border: 1px solid var(--line); background: white; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
code { overflow-wrap: anywhere; }
@media (max-width: 42rem) { table, thead, tbody, tr, th, td { display: block; } thead { position: absolute; left: -10000px; } td { border-bottom: 0; } tr { margin-bottom: 1rem; border-bottom: 1px solid var(--line); } }
