:root { --ink: #1d2733; --muted: #5d6b7a; --line: #e3e8ee; --bg: #fbfaf7; --brand: #1f3a5f; --accent: #f2b84b; --ok: #1e7a4f; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
a { color: var(--brand); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; text-decoration: none; color: var(--brand); }
nav a { margin-left: 20px; text-decoration: none; color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--brand); }
main.wrap { padding-top: 32px; padding-bottom: 48px; }
.page-title, .post h1 { font-size: 34px; line-height: 1.2; margin: 0 0 20px; letter-spacing: -0.01em; }
.post-meta { color: var(--muted); font-size: 14px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.post h2 { font-size: 22px; margin: 32px 0 8px; }
pre { background: #0f1720; color: #e7edf4; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.post-list a { font-size: 20px; font-weight: 600; text-decoration: none; }
.post-list .date { display: block; color: var(--muted); font-size: 14px; }
.post-list p { margin: 6px 0 0; color: var(--muted); }
.status-card { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 8px 0 24px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: 10px; }
.status-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.status-value { font-weight: 650; font-size: 18px; }
.status-note { color: var(--muted); font-size: 13px; margin-left: auto; }
/* the status line of some posts is set from the theme so editors only pick a state */
.details { display: grid; grid-template-columns: 90px 1fr; gap: 6px 16px; margin: 20px 0; }
.details dt { font-weight: 650; color: var(--muted); }
.details dd { margin: 0; }
.agenda { padding-left: 20px; }
.agenda b { display: inline-block; width: 56px; font-variant-numeric: tabular-nums; }
.rsvp { margin-top: 36px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.rsvp h2 { margin-top: 0; }
.rsvp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 16px; cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: #c9d2dc; }
.rsvp-result { color: var(--ok); min-height: 1.6em; margin: 12px 0 0; }
.widget { margin: 8px 0 20px; }
.widget iframe { border: 0; display: block; }
.widget figcaption { color: var(--muted); font-size: 13px; margin-top: 4px; }
.notice { max-width: 460px; border: 0; border-radius: 14px; padding: 24px 26px; box-shadow: 0 20px 60px rgba(15, 23, 32, 0.35); }
.notice::backdrop { background: rgba(15, 23, 32, 0.45); }
.notice h2 { margin-top: 0; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 24px 0 40px; }

/* ---- wide layout with an "on this page" sidebar (tutorial pages) ---- */
.wrap.wide { max-width: 1120px; }
.with-toc { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: start; }
.with-toc .post { max-width: 740px; }
.sidebar { position: sticky; top: 24px; }
.toc { font-size: 14px; border-left: 2px solid var(--line); padding-left: 16px; }
.toc-title { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 6px 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--brand); }
@media (max-width: 900px) { .with-toc { grid-template-columns: minmax(0, 1fr); } .sidebar { display: none; } }
.post { min-width: 0; overflow-wrap: anywhere; }
.post pre { max-width: 100%; }
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr; } .hero h1, .post h1 { font-size: 30px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }
.post-meta a { color: inherit; }
.byline { color: var(--muted); font-size: 15px; margin: -8px 0 20px; }
.lede { font-size: 20px; line-height: 1.55; color: #2c3a49; }
.post ul, .post ol { padding-left: 22px; }
.post li { margin: 4px 0; }
.callout { background: #eef4fb; border: 1px solid #cfe0f2; border-radius: 10px; padding: 14px 18px; margin: 20px 0; font-size: 16px; }
.faq dt { font-weight: 650; margin-top: 14px; }
.faq dd { margin: 4px 0 0; color: #33414f; }

/* ---- live workshop panel ---- */
.workshop { margin: 24px 0 36px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 23, 32, 0.04); }
.workshop h2 { margin: 2px 0 10px; font-size: 22px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9a6b00; }
.workshop .status-card { margin: 14px 0 6px; }
.workshop .details { margin: 14px 0 6px; }
.workshop .rsvp { margin: 16px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.rsvp-q { margin: 0 0 12px; }

/* ---- home, lists, footer ---- */
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { font-size: 19px; color: #33414f; max-width: 640px; }
.hero .btn { text-decoration: none; }
.section-title { font-size: 22px; margin: 36px 0 4px; }
.author-box { margin: 40px 0 20px; padding: 16px 18px; background: #f3f1ea; border-radius: 10px; font-size: 15px; }
.prev-next { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0; }
.pn { display: block; max-width: 48%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: #fff; }
.pn span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pn.next { text-align: right; margin-left: auto; }
.comments { margin-top: 36px; }
.comment { padding: 12px 0; border-top: 1px solid var(--line); }
.comment .who { margin: 0 0 4px; font-size: 14px; color: var(--muted); font-weight: 600; }
.comment p { margin: 0; }
.comment.reply { margin: 10px 0 0 22px; padding: 10px 14px; border: 0; background: #f6f8fa; border-radius: 8px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-cols p { margin: 6px 0 0; }
.fineprint { margin-top: 18px; font-size: 13px; }
/* round 2 */
.site-alert { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #a8322a; color: #fff; padding: 10px 16px; font-weight: 600; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
body.has-alert { padding-top: 46px; }
.site-notice { background: #fff4e5; border-bottom: 1px solid #f0c27a; padding: 10px 0; font-weight: 600; }
.update { margin: 10px 0 6px; padding: 10px 14px; border-left: 4px solid #c0392b; background: #fff6f6; border-radius: 6px; }
.update--scheduled { display: none; }
.notice-current[hidden] { display: block; }
.status-detail { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.pass { unicode-bidi: bidi-override; direction: rtl; }
.was { text-decoration-line: line-through; text-decoration-thickness: 2px; color: #7a7a7a; }
.status-badge, .status-object, .status-frame { display: block; border: 0; margin: 10px 0 6px; }
.status-object, .status-frame { width: 100%; height: 64px; }
.history-entry, table.history td { padding: 8px 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
table.history { border-collapse: collapse; margin: 0 0 8px; width: 100%; }
.history-entry { margin: 6px 0 0; }
.appendix pre { font-size: 12px; }
