/* the post maker (engine/maker.py). The canon faces it draws with, served from the site's own fonts/ (SIL OFL 1.1, licences beside) */
@font-face{font-family:Spectral;src:url(../../fonts/spectral-300-normal.woff2) format("woff2");font-weight:300;font-style:normal;font-display:block}
@font-face{font-family:Inter;src:url(../../fonts/inter-500-normal.woff2) format("woff2");font-weight:500;font-style:normal;font-display:block}
@font-face{font-family:"Cormorant Garamond";src:url(../../fonts/cormorant-garamond-400-normal.woff2) format("woff2");font-weight:400;font-style:normal;font-display:block}
@font-face{font-family:"Bricolage Grotesque";src:url(../../fonts/bricolage-grotesque-500-normal.woff2) format("woff2");font-weight:500;font-style:normal;font-display:block}
@font-face{font-family:Jost;src:url(../../fonts/jost-400-normal.woff2) format("woff2");font-weight:400;font-style:normal;font-display:block}
@font-face{font-family:Jost;src:url(../../fonts/jost-500-normal.woff2) format("woff2");font-weight:500;font-style:normal;font-display:block}
@font-face{font-family:"JetBrains Mono";src:url(../../fonts/jetbrains-mono-500-normal.woff2) format("woff2");font-weight:500;font-style:normal;font-display:block}
.mk{display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:32px;align-items:start}
.mk>*{min-width:0}
.mk-controls fieldset{border:1px solid var(--color-line,#d8d2c4);border-radius:6px;padding:12px 14px;margin:0 0 14px;min-inline-size:0}
.mk-controls legend{font-weight:600;padding:0 6px}
.mk-controls label{display:block;margin:8px 0 4px;font-weight:500}
.mk-controls select,.mk-controls input[type=text],.mk-controls textarea{width:100%;box-sizing:border-box;font:inherit;padding:8px 10px;border:1px solid #8b8577;border-radius:4px;background:#fff;color:#16223a}
.mk-controls textarea{min-height:76px;resize:vertical}
#mk-fields{scroll-margin-top:80px}
.mk-controls [dir=rtl]{font-family:Amiri,"Noto Naskh Arabic",serif;font-size:1.15em}
.mk-choice{display:flex;flex-wrap:wrap;gap:6px 14px}
.mk-choice label{display:inline-flex;align-items:center;gap:6px;font-weight:400;margin:0;min-width:0;max-width:100%;overflow-wrap:anywhere}
.mk-cap{font-size:.86em;margin:3px 0 0;color:#3d4655;overflow-wrap:anywhere}
.mk-cap.over{color:#9b1c1c;font-weight:600}
.mk-actions{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 10px}
.mk-actions button,.mk-actions label.mk-file{font:inherit;font-weight:600;padding:10px 14px;border-radius:4px;border:1px solid #16223a;background:#16223a;color:#f5f0e8;cursor:pointer}
.mk-actions button.secondary,.mk-actions label.mk-file{background:#fff;color:#16223a}
.mk-actions button:disabled{opacity:.45;cursor:not-allowed}
.mk-actions button:focus-visible,.mk-actions label.mk-file:focus-within{outline:3px solid #c9a96e;outline-offset:2px}
/* v7.3.9 rc6 (Codex review of the rc5 gaps, F2): WebKit paints the file input's own button and file name past its 1 px box, and at
   160 CSS px that widened the page to 181 px; the input clips itself, and its label stays the control people see and press */
.mk-file input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.mk-state{border-left:4px solid #c9a96e;background:#faf6ee;padding:10px 14px;margin:0 0 16px}
.mk-state p{margin:4px 0}
.mk-preview{position:sticky;top:16px}.mk-preview-jump{display:none}.mk-preview canvas{display:block;max-width:100%;height:auto;box-shadow:0 1px 0 #0000001a,0 8px 28px #00000026}
.mk-preview>canvas{max-height:calc(100vh - 130px);width:auto;object-fit:contain}
.mk-feed{margin-top:14px}.mk-feed summary{cursor:pointer;margin-bottom:12px}
.mk-feed figure{margin:0;max-width:100%}
.mk-feed canvas{display:block;max-width:100%;height:auto}
.mk-feed figcaption{font-size:.84em;color:#3d4655;margin-top:4px}
.mk-msg{min-height:1.4em;font-weight:600}
.mk-msg.bad{color:#9b1c1c}
/* v7.3.8 (Lighthouse, make/post/: CLS 0.198, the hint paragraph moved when the maker appeared): the maker's place is held one screen
   tall before its script reveals it, so nothing on screen moves; with scripting off the place collapses to the notice */
.mk-slot{min-height:100vh}
@media (scripting:none){.mk-slot{min-height:0}}
/* v7.3.7 (audit R38-L1): at 160 CSS px (320 px at 200%) the page wraps instead of scrolling sideways */
@media (max-width:860px){.mk{grid-template-columns:minmax(0,1fr)}.mk-preview{position:static}.mk-preview>canvas{max-height:none}.mk-feed{display:none}.mk-preview-jump{display:block;position:sticky;top:0;background:#f5f0e8;padding:10px 0;z-index:2}}
