:root{color-scheme:light;--ink:#17263d;--muted:#5b697d;--line:#d8e0eb;--blue:#215ae7;--paper:#fff;--wash:#f2f5fa;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--wash);font-size:16px}*{box-sizing:border-box}body{margin:0}a{color:var(--blue);text-underline-offset:3px}button,input,textarea{font:inherit}button,a,input,textarea,summary{touch-action:manipulation}button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:7px;padding:10px 16px;cursor:pointer;font-weight:550;font-size:.9rem}button:hover{background:#eef3ff;border-color:#aebeda}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--blue);color:#fff;border-color:var(--blue);padding:13px 22px;box-shadow:0 3px 8px #215ae720}.primary:hover{background:#1549c8;color:#fff}.danger{color:#a22334}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #759af6;outline-offset:3px}.topbar{height:76px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:0 max(24px,calc((100vw - 1260px)/2));background:var(--paper);gap:20px}.brand{text-decoration:none;color:var(--ink);letter-spacing:-.6px;font-size:1.3rem}.brand span{color:#8fa0b9;margin:0 12px}.brand strong{font-weight:650}.quiet{color:var(--muted);font-size:.9rem;text-decoration:none}.workspace{max-width:1308px;margin:auto;padding:40px 24px 20px}.intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px}.eyebrow{font-size:.75rem;letter-spacing:.13em;font-weight:700;color:var(--blue)}h1{font-size:2.3rem;font-weight:650;letter-spacing:-1.2px;line-height:1.15;margin:10px 0}p{line-height:1.6}.intro p{color:var(--muted);margin:8px 0;font-size:1rem}.fields{display:grid;grid-template-columns:2fr 1fr;gap:22px;margin-bottom:24px}label{font-size:.875rem;font-weight:600;display:block}input{display:block;width:100%;margin-top:8px;padding:12px 14px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:#fff;min-width:0}.optional{font-weight:400;color:var(--muted)}.editor-grid{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--paper);min-height:500px;box-shadow:0 8px 24px #16274205}.editor-pane,.preview-pane{min-width:0;display:flex;flex-direction:column}.editor-pane{border-right:1px solid var(--line)}.pane-heading{height:49px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:0 22px;border-bottom:1px solid var(--line);background:#f8faff;font-size:.75rem;letter-spacing:.09em;font-weight:650;gap:12px}.pane-heading label{font-size:inherit}.pane-heading span:last-child{color:var(--muted);font-weight:400;letter-spacing:0}textarea{width:100%;min-height:420px;resize:vertical;border:0;padding:24px;line-height:1.75;font-size:.9rem;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#304362;flex:1;background:#fcfdff;border-radius:0;tab-size:2}textarea:focus{outline-offset:-3px}textarea::placeholder{color:#8b98aa}.pane-footer{padding:12px 22px;border-top:1px solid #e9edf4;font-size:.8rem;color:var(--muted)}.prose{font-family:Georgia,"Times New Roman",serif;font-size:1.1rem;line-height:1.8;overflow-wrap:anywhere;min-width:0}.preview-pane .prose{padding:22px 32px;max-height:620px;overflow:auto;flex:1}.prose>:first-child{margin-top:0}.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.3;margin:1.6em 0 .6em;color:#14253c;letter-spacing:-.035em}.prose h1{font-size:2rem}.prose h2{font-size:1.6rem}.prose h3{font-size:1.25rem}.prose p{line-height:inherit;margin:1em 0}.prose blockquote{border-left:3px solid var(--blue);padding:2px 20px;margin:1.5em 0;color:#536079;background:#f7f9ff}.prose pre{padding:20px;background:#17263d;color:#e6edfa;border-radius:8px;overflow:auto;line-height:1.6;font-size:.85rem}.prose code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.86em;background:#edf1f7;border-radius:3px;padding:2px 5px}.prose pre code{background:none;padding:0;font-size:inherit}.prose table{border-collapse:collapse;font-family:inherit;display:block;overflow:auto;width:100%;font-size:.95rem}.prose th,.prose td{padding:9px 14px;border:1px solid var(--line);text-align:left}.prose th{background:#f3f6fb}.prose img{max-width:100%;height:auto;border-radius:6px}.prose hr{border:0;border-top:1px solid var(--line);margin:2em 0}.prose li{padding-left:3px}.placeholder{color:#8a96a6;font-style:italic}.bottom-row{display:flex;justify-content:space-between;align-items:center;margin-top:16px;gap:16px;font-size:.85rem;color:var(--muted)}.publishing-note,.recent p{font-size:.85rem;color:var(--muted)}.recent{margin-top:30px;padding-top:22px;border-top:1px solid var(--line);font-size:.9rem}.recent summary{cursor:pointer;color:var(--muted)}.recent ul{padding-left:20px;line-height:2}.recent li a{margin-right:12px}footer{max-width:1308px;margin:auto;padding:30px 24px;color:var(--muted);font-size:.8rem;display:flex;justify-content:space-between}#notice:not(:empty){padding:14px 18px;border:1px solid #bdcff5;background:#eaf1ff;border-radius:7px;margin-bottom:20px;line-height:1.5}#notice.error{border-color:#eab4bd;background:#fff0f2;color:#982137}.published{padding:22px;border:1px solid #adc4f9;background:#edf3ff;border-radius:10px;margin-bottom:24px}.published>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.published a{font-weight:600;overflow-wrap:anywhere}.published .eyebrow{width:100%}.published details{margin-top:18px;font-size:.9rem}.published summary{cursor:pointer}.published p{max-width:700px;color:var(--muted)}.published input{margin:12px 0}.reader{background:#fff}.reading{max-width:790px;margin:64px auto 80px;padding:0 28px}.reading>h1{font-family:Georgia,serif;font-size:2.9rem;line-height:1.2;font-weight:500;margin:0 0 20px;overflow-wrap:anywhere}.byline{color:var(--muted);font-size:.85rem;border-bottom:1px solid var(--line);padding-bottom:28px;margin-bottom:32px;display:flex;flex-wrap:wrap;gap:10px}.reading-tools{display:flex;gap:20px;font-size:.85rem;padding-top:26px;margin-top:40px;border-top:1px solid var(--line)}dialog{border:1px solid var(--line);border-radius:12px;padding:28px;max-width:440px;width:calc(100% - 32px);color:var(--ink)}dialog::backdrop{background:#13213a70}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}[hidden]{display:none!important}@media(max-width:740px){.topbar{height:64px;padding:0 20px}.brand{font-size:1.1rem}.workspace{padding:26px 16px 10px}.intro{align-items:flex-start;gap:16px;margin-bottom:24px}.intro h1{font-size:1.85rem}.intro p{font-size:.9rem}.primary{padding:12px 14px;white-space:nowrap}.fields{grid-template-columns:1fr;gap:16px}.editor-grid{grid-template-columns:1fr}.editor-pane{border-right:0;border-bottom:1px solid var(--line)}textarea{min-height:320px}.preview-pane .prose{padding:24px;min-height:220px;max-height:none}.pane-heading{padding:0 18px}.pane-heading span:last-child{font-size:.75rem}.reading{margin-top:40px;padding:0 22px}.reading>h1{font-size:2.25rem}.prose{font-size:1.05rem}.prose h1{font-size:1.8rem}.published>div{align-items:flex-start;flex-direction:column}.bottom-row{align-items:flex-start}.intro .primary{margin-top:26px}}@media print{.topbar,footer,.reading-tools{display:none}.reading{margin:0;max-width:none}.prose pre{white-space:pre-wrap}.reader{color:#000}}
.account{display:flex;align-items:center;gap:16px}.account>span{font-size:.8rem;color:var(--muted)}.invite-panel{display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;border:1px solid var(--line);background:#fff;padding:20px;border-radius:9px;margin-bottom:24px}.invite-panel p{font-size:.85rem;color:var(--muted);margin:5px 0}.invite-panel>div:first-child{flex:1;min-width:230px}#invite-result{display:flex;gap:12px;width:100%;align-items:center}#invite-result input{max-width:330px;margin:0;font-family:ui-monospace,monospace}#login-kind{width:100%;padding:12px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit;margin-top:8px}#login-help,#login-error{font-size:.875rem}#login-error{color:#a22334}#restore-draft{margin-bottom:20px}@media(max-width:740px){.account{gap:10px}.account>span,.account .quiet{display:none}.account button{padding:8px 10px}.intro{flex-wrap:wrap}.intro .primary{margin-top:0}#invite-result{flex-wrap:wrap}}
/* Reading surface: let tables use their natural column widths, without splitting identifiers. */
:root{--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace}.prose{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:1rem;line-height:1.8;overflow-wrap:break-word;word-break:normal}.reading{max-width:1120px;padding:0 36px;margin-top:56px}.reading>h1{font-family:inherit;font-size:clamp(2rem,4vw,2.9rem);font-weight:700;letter-spacing:-.045em;max-width:28ch}.reading .prose{font-size:1.0625rem}.reading .prose>p,.reading .prose>ul,.reading .prose>ol{max-width:78ch}.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{position:relative;scroll-margin-top:24px;font-weight:650}.prose h2{font-size:1.55rem;padding-bottom:.4em;border-bottom:1px solid #e7ecf3}.prose h3{font-size:1.25rem}.prose a{color:#215ae7}.heading-anchor{font-family:var(--mono);font-size:.75em;color:#7c90b5!important;text-decoration:none;margin-right:.45em;opacity:0}.prose :is(h1,h2,h3,h4,h5,h6):hover>.heading-anchor,.heading-anchor:focus{opacity:1}.prose blockquote{background:#f5f8ff;border-left:3px solid #7399ef;color:#465872;padding:1px 22px;border-radius:0 6px 6px 0}.prose :not(pre)>code{font-family:var(--mono);font-size:.88em;font-weight:450;background:#eff3f9;border:1px solid #e2e8f2;padding:.12em .38em;border-radius:5px;color:#234775;white-space:break-spaces;overflow-wrap:anywhere}.table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin:1.6em 0;border:1px solid #dce3ed;border-radius:8px;background:#fff;-webkit-overflow-scrolling:touch}.table-scroll:focus-visible{outline:3px solid #759af6;outline-offset:3px}.prose .table-scroll table{display:table;border-collapse:collapse;table-layout:auto;width:100%;overflow:visible;font-family:inherit;font-size:.925rem;line-height:1.6;margin:0}.prose .table-scroll th,.prose .table-scroll td{border:0;border-bottom:1px solid #e4eaf2;border-right:1px solid #e4eaf2;padding:12px 18px;overflow-wrap:normal;word-break:normal;hyphens:none;vertical-align:top;min-width:9ch;max-width:42rem}.prose .table-scroll th{background:#f3f6fb;font-weight:650;color:#3b4e6b;white-space:nowrap}.prose .table-scroll :is(th,td):first-child{white-space:nowrap}.prose .table-scroll :is(th,td):last-child{border-right:0}.prose .table-scroll tr:last-child td{border-bottom:0}.prose .table-scroll tbody tr:nth-child(even){background:#fafbfe}.prose .table-scroll tbody tr:hover{background:#f0f5ff}.prose .table-scroll .align-center{text-align:center}.prose .table-scroll .align-right{text-align:right}.prose .table-scroll .align-left{text-align:left}.prose .table-scroll code{white-space:nowrap;overflow-wrap:normal}.code-block{margin:1.6em 0;border-radius:9px;overflow:hidden;border:1px solid #263650;background:#152238;color:#dce6f6}.code-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:42px;padding:8px 18px;background:#1b2b44;border-bottom:1px solid #31405a;color:#c0cee4;font-family:var(--mono);font-size:.8rem}.code-copy{display:none;background:#253852;border:1px solid #455976;color:#e4edfb;padding:5px 10px;border-radius:5px;font-size:.75rem;font-weight:500;font-family:inherit}.has-code-tools .code-copy{display:block}.code-copy:hover{background:#344c70;color:#fff;border-color:#6c88b1}.prose .code-block pre{padding:20px;margin:0;border:0;border-radius:0;background:#152238;font-size:.875rem;line-height:1.75;overflow-x:auto;tab-size:2;white-space:pre;word-break:normal;overflow-wrap:normal}.prose pre code{font-family:var(--mono);font-size:inherit;font-weight:400;padding:0;border:0;white-space:inherit;word-break:normal;overflow-wrap:normal;background:none;color:inherit}.hljs{color:#dce6f6}.hljs-comment,.hljs-quote{color:#95a6c0;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-literal{color:#c9a6ff}.hljs-string,.hljs-doctag,.hljs-regexp{color:#a1dba0}.hljs-number,.hljs-symbol,.hljs-bullet{color:#ffc68a}.hljs-title,.hljs-section,.hljs-selector-id{color:#89c9ff}.hljs-type,.hljs-built_in,.hljs-class .hljs-title{color:#7de1dc}.hljs-attr,.hljs-attribute,.hljs-property{color:#9dcdff}.hljs-variable,.hljs-template-variable{color:#ffc68a}.hljs-meta,.hljs-tag,.hljs-name{color:#ff9ea3}.hljs-addition{color:#a1dba0;background:#214535}.hljs-deletion{color:#ffafb4;background:#512e3b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.prose .task-item{list-style:none;position:relative}.task-checkbox{display:inline-block;width:1em;height:1em;margin:0 .55em 0 -1.4em;vertical-align:middle;accent-color:#215ae7;opacity:1}.contents{background:#f7f9fd;border:1px solid #e1e8f2;border-radius:8px;padding:14px 18px;margin:0 0 32px;font-size:.9rem;max-width:740px}.contents summary{cursor:pointer;font-weight:600}.contents ol{list-style:none;line-height:1.8;padding:0;margin:12px 0 0}.contents .depth-2{padding-left:14px}.contents .depth-3{padding-left:28px}.contents a{text-decoration:none}.contents a:hover{text-decoration:underline}.reading-tools{flex-wrap:wrap}
/* Editor controls and CodeMirror surface. */
.workspace{max-width:1488px}.intro h1{font-size:2rem}.intro{margin-bottom:24px}.editor-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:12px}.view-modes{display:flex;background:#e7edf6;padding:4px;border-radius:8px}.view-modes button{padding:7px 15px;border:0;background:transparent;box-shadow:none;color:#566883;font-size:.875rem}.view-modes button[aria-pressed=true]{background:#fff;color:#2055d4;box-shadow:0 1px 5px #18345418}.document-tools{display:flex;flex-wrap:wrap;gap:8px}.document-tools button{font-size:.8rem;padding:8px 12px;background:transparent}.format-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:3px;padding:8px 10px;border:1px solid var(--line);border-bottom:0;border-radius:9px 9px 0 0;background:#fff}.format-toolbar button{padding:7px 9px;min-width:34px;min-height:34px;font-size:.8rem;border:1px solid transparent;background:transparent;border-radius:5px;font-weight:500}.format-toolbar button:hover{background:#edf3ff;color:#174ab9;border-color:#c9d8f5}.format-toolbar select{font:inherit;font-size:.8rem;max-width:130px;padding:8px;border:1px solid var(--line);border-radius:5px;color:var(--ink);background:#fff;margin-right:4px}.toolbar-divider{width:1px;height:22px;background:var(--line);margin:0 5px}.mono{font-family:var(--mono)}.editor-grid{border-radius:0 0 9px 9px;min-height:520px}.editor-grid[data-mode=preview]{border-radius:9px}.editor-grid[data-mode=write],.editor-grid[data-mode=preview]{grid-template-columns:minmax(0,1fr)}.editor-grid[data-mode=write] .preview-pane,.editor-grid[data-mode=preview] .editor-pane{display:none}.editor-grid[data-mode=write] .editor-pane{border:0}.editor-grid[data-mode=preview] .preview-pane .prose{max-height:none;padding:36px clamp(24px,5vw,80px);min-height:460px}.editor-pane{overflow:hidden}#code-editor{min-width:0;flex:1}.cm-editor{height:100%;min-height:460px}.cm-scroller{max-height:680px;overflow:auto}.cm-editor .cm-content{font-variant-ligatures:none}.cm-editor .cm-placeholder{color:#8390a6}.cm-editor .cm-foldPlaceholder{background:#e2eafd;color:#34558a;border:0}.cm-editor .cm-panels{font-size:.875rem}.cm-editor .cm-search input{display:inline-block;width:auto;margin:4px 6px 4px 0;border-radius:4px;border:1px solid #b9c9e1;background:#fff;font:inherit;padding:6px 8px}.cm-editor .cm-search input[type=checkbox]{width:auto;padding:0}.cm-editor .cm-search label{display:inline-block;font-size:.8rem}.cm-editor .cm-search button{background:#fff;border:1px solid #b9c9e1;font:inherit;font-size:.8rem;border-radius:4px;padding:6px 8px;margin:3px}.cm-editor .cm-tooltip-autocomplete{font-family:var(--mono)}.preview-pane .prose{padding:26px 30px;max-height:760px}.pane-heading{font-size:.72rem}.pane-heading span:last-child{font-size:.75rem}.pane-footer{font-size:.75rem;line-height:1.7}.markdown-help{margin:18px 0;color:var(--muted);font-size:.85rem}.markdown-help summary{cursor:pointer;font-weight:550}.reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.reference-grid>div{display:flex;flex-direction:column;gap:5px}.markdown-help code{font-family:var(--mono);color:#304a75;background:#eaf0f9;padding:3px 6px;border-radius:4px}.reference-grid span{font-size:.8rem}.markdown-help p{max-width:85ch}.editor-focused .topbar,.editor-focused .intro,.editor-focused .fields,.editor-focused #invite-panel,.editor-focused .recent,.editor-focused footer,.editor-focused .publishing-note{display:none}.editor-focused .workspace{max-width:none;padding-top:16px}.editor-focused .cm-scroller{max-height:calc(100vh - 215px)}.editor-focused .preview-pane .prose{max-height:calc(100vh - 190px)}.editor-focused #code-editor .cm-content{min-height:calc(100vh - 270px)}
@media(max-width:740px){.reading{padding:0 20px;margin-top:34px}.reading .prose{font-size:1rem}.prose .table-scroll th,.prose .table-scroll td{padding:10px 14px}.table-scroll{border-radius:6px}.editor-controls{gap:10px}.document-tools{gap:3px}.document-tools button{font-size:.75rem;padding:7px 9px}.format-toolbar{padding:7px;gap:2px}.format-toolbar button{padding:7px 8px}.toolbar-divider{margin:0 2px}.editor-grid{grid-template-columns:minmax(0,1fr)}.editor-grid[data-mode=split] .preview-pane .prose{max-height:550px}.editor-grid[data-mode=split] .cm-scroller{max-height:470px}.cm-editor{min-height:320px}.preview-pane .prose{padding:22px}.reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.heading-anchor{opacity:.5}.editor-focused .cm-scroller{max-height:60vh}.editor-focused .preview-pane .prose{max-height:60vh}}
@media print{.code-copy,.heading-anchor,.contents{display:none!important}.reading{max-width:none;padding:0}.table-scroll{overflow:visible}.prose .table-scroll table{font-size:.8rem}.prose .table-scroll :is(th,td):first-child{white-space:normal}.prose .code-block pre{white-space:pre-wrap}.code-block{break-inside:avoid}}
.custom-link-field{grid-column:1/-1;max-width:820px}.url-input{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;background:#fff;margin-top:8px;overflow:hidden;font-family:var(--mono);font-weight:400}.url-input>span{padding:12px 0 12px 14px;color:#65758e;font-size:.9rem;white-space:nowrap}.url-input input{border:0;border-radius:0;margin:0;padding-left:3px;font-family:inherit;font-size:.9rem}.field-help{display:block;font-size:.8rem;font-weight:400;color:var(--muted);line-height:1.6;margin-top:7px}

/* Keep list markers aligned with the surrounding reading column. */
.prose :is(ol,ul){padding-inline-start:1.4em;margin-block:1em}.prose li{padding-left:0;padding-inline-start:.1em}.prose li> :is(ol,ul){margin-block:.35em}

.format-guidance{padding:9px 12px;border:1px solid var(--line);border-bottom:0;background:#f8faff;color:var(--muted);font-size:.875rem;line-height:1.5}.format-guidance span{color:#304e78;white-space:nowrap}.editor-grid[data-mode=preview]{border-radius:0 0 9px 9px}
