/* The one-page pitch form, dressed as worksinprogress.co: the site's masthead and ruled bar, a cream page,
   Editor for titles and writing, GT America Mono for everything else, square 1px black rules, and a black
   button that turns yellow. One column, centred.
   Loaded after /assets/css/wip.css. Every class here starts with c- so it cannot collide with wip.css. */

@font-face { font-family: 'Editor'; src: url('/assets/fonts/wip-site/Editor-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Editor'; src: url('/assets/fonts/wip-site/Editor-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Editor'; src: url('/assets/fonts/wip-site/Editor-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'GT America Mono'; src: url('/assets/fonts/wip-site/GT-America-Mono-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'GT America Mono'; src: url('/assets/fonts/wip-site/GT-America-Mono-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* The site's own colours */
  --w-cream: #fff7f4;   /* the page */
  --w-blush: #fff0ea;   /* panels, and a field being written in */
  --w-ink: #121212;
  --w-quote: rgb(18 18 18 / .25);
  --w-yellow: #f4d06f;
  --w-red: #e20a39;
  --w-serif: 'Editor', Georgia, serif;
  --w-mono: 'GT America Mono', ui-monospace, Menlo, monospace;
  --w-rule: 1px solid var(--w-ink);
  /* Its type sizes */
  --t-mini: .75rem;     /* 12px: notes, errors, small links */
  --t-small: .875rem;   /* 14px: labels, inputs, the bar */
  --t-body: 1rem;
  --t-read: 1.0625rem;  /* 17px: writing in the boxes */
  --t-dek: 1.125rem;    /* 18px: standfirst */
  --t-title: 2.5rem;    /* 40px: the page title */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --pad: 40px;          /* the site's side padding on a wide screen */
  --col: 640px;         /* the form's column */
}

* { box-sizing: border-box; }
.c-body {
  margin: 0; padding: 0; background: var(--w-cream); color: var(--w-ink);
  font: 300 var(--t-body)/1.5 var(--w-mono);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
:where(.c-body) :is(p, ol, ul, fieldset, h1, h2) { margin: 0; }
.c-body :is(p, li) { text-wrap: pretty; }
:where(.c-body) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.c-body :focus-visible { outline: 2px solid var(--w-ink); outline-offset: 3px; }
/* Selected text in the system's colours, as on worksinprogress.co, not wip.css's red */
.c-body::selection, .c-body ::selection { background: Highlight; color: HighlightText; }
.c-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- The masthead and the ruled bar under it, as on the site ---------- */
.c-mast-row { display: flex; align-items: center; height: 85px; padding: 0 var(--pad); }
.c-mast-link { display: block; }
.c-mast { display: block; width: 124px; height: auto; }
.c-links {
  display: flex; justify-content: space-between; align-items: center; height: 30px; padding-left: var(--pad);
  border-top: var(--w-rule); border-bottom: var(--w-rule); font: 300 var(--t-small)/1.29 var(--w-mono);
}
.c-links-cells { display: flex; height: 100%; margin-right: var(--pad); }
/* A cell of the bar, ruled on the left; yellow underfoot, as the site's menu. The last is its black Subscribe. */
.c-top-btn {
  display: flex; align-items: center; height: 100%; padding: 0 var(--space-3);
  border-left: var(--w-rule); color: inherit; text-decoration: none; transition: background-color .15s ease-in-out, color .15s ease-in-out;
}
.c-top-btn:hover { background: var(--w-yellow); }
.c-links-cells .c-top-btn:last-child { border-right: var(--w-rule); }
.c-top-sub { background: var(--w-ink); color: var(--w-cream); }
.c-top-sub:hover { color: var(--w-ink); }

/* ---------- The page: one column ---------- */
.c-page { max-width: calc(var(--col) + 2 * var(--pad)); margin: 0 auto; padding: var(--space-8) var(--pad) 96px; }

.c-head { margin-bottom: var(--space-7); }
.c-h1 { font: 700 var(--t-title)/1.25 var(--w-serif); color: var(--w-ink); text-wrap: balance; margin-bottom: var(--space-3); }
.c-sf { font: 400 var(--t-dek)/1.5 var(--w-serif); max-width: 36ch; }
/* The AI policy: the standfirst's second part, under a rule, in the site's small mono */
/* The note about AI, and any text editors add (Settings, Pitch form): the form's small print, between its fields */
.c-ai-note, .c-extra { margin: 0 0 var(--space-6); font: 300 var(--t-small)/1.43 var(--w-mono); overflow-wrap: break-word; }
.c-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; color: inherit; }
.c-link:hover { text-decoration-thickness: 2px; }

/* Fields */
.c-set { border: 0; padding: 0; min-width: 0; }
.c-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.c-field { margin-bottom: var(--space-6); min-width: 0; }
.c-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.c-label { display: block; margin-bottom: var(--space-2); font: 300 var(--t-small)/1.29 var(--w-mono); }
.c-aside { font: 300 var(--t-mini)/1.4 var(--w-mono); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.c-aside:hover { text-decoration-thickness: 2px; }

.c-field :is(input[type="text"], input[type="email"], select, textarea) {
  display: block; width: 100%; min-height: 44px; padding: 10px 15px;
  font: 300 var(--t-small)/1.29 var(--w-mono); color: var(--w-ink);
  background: transparent; border: var(--w-rule); border-radius: 0;
  transition: background-color .15s ease-in-out;
}
.c-field :is(input[type="text"], input[type="email"], select, textarea):hover { background: var(--w-blush); }
/* Focus doubles the rule; the field warms to the panel colour */
.c-field :is(input:not(.c-linkbar-input), select, textarea):focus-visible { outline: 0; background: var(--w-blush); box-shadow: inset 0 0 0 1px var(--w-ink); }
.c-field :is(input:not(.c-linkbar-input), textarea)[aria-invalid="true"] { border-color: var(--w-red); box-shadow: inset 0 0 0 1px var(--w-red); }
.c-field select {
  appearance: none; cursor: pointer; padding-right: var(--space-7); text-overflow: ellipsis;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' fill='none'%3E%3Cpath d='M.93.58l12-.08-5.94 9.13z' fill='%23121212'/%3E%3C/svg%3E") right var(--space-4) center / 12px auto no-repeat;
}
/* The writing boxes are in Editor, for reading back, and grow with what you write */
.c-field textarea.c-answer-long, .c-field #pitch-text { resize: none; field-sizing: content; padding: 14px 15px; font: 400 var(--t-read)/1.6 var(--w-serif); overflow-wrap: break-word; }
#pitch-text { min-height: calc(9 * 1.6em + 28px); }
.c-answer-long { min-height: calc(4 * 1.6em + 28px); }

/* Live rich-text submission box (enhanced over #pitch-text in pitch.js): Editor serif prose, whisper-quiet footer bar */
.c-rich { border: var(--w-rule); background: transparent; transition: background-color .15s ease-in-out; }
.c-rich:hover, .c-rich.c-dragover { background: var(--w-blush); }
.c-rich:focus-within, .c-rich.c-dragover { background: var(--w-blush); box-shadow: inset 0 0 0 1px var(--w-ink); }
.c-rich.c-invalid { border-color: var(--w-red); box-shadow: inset 0 0 0 1px var(--w-red); }
.c-editor {
  min-height: calc(9 * 1.6em + 24px); padding: 14px 15px 12px;
  font: 400 var(--t-read)/1.6 var(--w-serif); color: var(--w-ink);
  overflow-wrap: break-word; outline: 0;
}
/* Beat .c-body :focus-visible so the outer .c-rich box carries the single focus border */
.c-body .c-editor:focus-visible { outline: 0; }
.c-editor > :first-child { margin-top: 0; }
.c-editor > :last-child { margin-bottom: 0; }
.c-editor :is(h3, h4, h5, h6) { font: 700 var(--t-dek)/1.3 var(--w-serif); margin: 1.2em 0 .45em; }
.c-editor p { margin: 0 0 .85em; }
.c-editor :is(ul, ol) { margin: 0 0 .85em; padding-left: 1.4em; }
.c-editor li { margin-bottom: .25em; }
.c-editor blockquote { margin: .85em 0; padding-left: 1.5em; font-style: italic; }
.c-editor a { color: inherit; text-decoration: underline; text-decoration-color: rgb(18 18 18 / .45); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.c-editor a:hover { text-decoration-color: var(--w-ink); }
.c-editor code { font: 300 var(--t-small)/1.4 var(--w-mono); }
.c-editor pre { margin: .85em 0; padding: var(--space-3) var(--space-4); border: 1px solid rgb(18 18 18 / .15); background: var(--w-cream); overflow-x: auto; }
.c-editor hr { border: 0; border-top: 1px solid rgb(18 18 18 / .2); margin: 1.2em 0; }

.c-rich-foot {
  min-height: 40px; margin: 0 15px; padding: 6px 0 8px;
  border-top: 1px solid rgb(18 18 18 / .1);
  display: flex; align-items: center;
}
.c-toolbar { display: flex; align-items: center; gap: 4px; width: 100%; margin-left: -6px; }
.c-toolbar[hidden] { display: none; }
.c-tool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 3px; color: var(--w-ink); opacity: .45;
  transition: background-color .12s ease-in-out, opacity .12s ease-in-out;
}
.c-rich:hover .c-tool, .c-rich:focus-within .c-tool,
.c-rich:hover .c-tool-attach, .c-rich:focus-within .c-tool-attach { opacity: .68; }
.c-tool:hover { opacity: 1 !important; background: rgb(18 18 18 / .06); }
.c-tool[aria-pressed="true"] { opacity: 1 !important; background: rgb(244 208 111 / .6); }
.c-tool[aria-pressed="true"]:hover { background: var(--w-yellow); }
.c-body .c-tool:focus-visible, .c-body .c-tool-attach:focus-visible { opacity: 1 !important; outline: 1px solid var(--w-ink); outline-offset: -1px; }
.c-tool-attach {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 6px; border-radius: 3px;
  font: 300 var(--t-mini)/1 var(--w-mono); color: var(--w-ink); opacity: .5;
  transition: background-color .12s ease-in-out, opacity .12s ease-in-out;
}
.c-tool-attach:hover { opacity: 1 !important; background: rgb(18 18 18 / .06); }

.c-linkbar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; width: 100%; }
.c-linkbar[hidden] { display: none; }
.c-linkbar-input {
  flex: 1 1 10rem; min-width: 0; height: 28px; padding: 0;
  font: 300 var(--t-mini)/1.3 var(--w-mono); color: var(--w-ink);
  background: transparent; border: 0; border-bottom: 1px solid rgb(18 18 18 / .28); border-radius: 0;
}
.c-body .c-linkbar-input:focus-visible { outline: 0; border-bottom-color: var(--w-ink); }
.c-linkbar-act, .c-linkbar-quiet {
  font: 300 var(--t-mini)/1.2 var(--w-mono); color: var(--w-ink);
  padding: 4px 2px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.c-linkbar-act { font-weight: 700; }
.c-linkbar-quiet { opacity: .68; text-decoration: none; }
.c-linkbar-quiet:hover { opacity: 1; text-decoration: underline; }
.c-linkbar-err { width: 100%; font: 300 var(--t-mini)/1.3 var(--w-mono); color: var(--w-red); }
.c-linkbar-err:empty { display: none; }
/* A question that may be left empty says so after its words, quietly */
.c-optional { font: 300 var(--t-mini)/1.4 var(--w-mono); color: var(--w-ink); }
/* Mode switch & document upload, on workspaces that accept PDF and Word files */
.c-modes { display: grid; grid-template-columns: 1fr 1fr; border: var(--w-rule); border-bottom: 0; }
.c-mode {
  min-height: 40px; padding: 0 var(--space-4); font: 300 var(--t-small)/1.29 var(--w-mono);
  background: transparent; color: var(--w-ink); border-right: var(--w-rule);
  transition: background-color .15s ease-in-out, color .15s ease-in-out;
}
.c-mode:last-child { border-right: 0; }
.c-mode:hover:not([aria-selected="true"]) { background: var(--w-yellow); }
.c-mode[aria-selected="true"] { background: var(--w-ink); color: var(--w-cream); }
.c-body .c-mode:focus-visible { outline: 1px solid var(--w-ink); outline-offset: -3px; }
.c-body .c-mode[aria-selected="true"]:focus-visible { outline: 1px solid var(--w-yellow); outline-offset: -3px; }

.c-drop {
  position: relative; border: var(--w-rule); padding: var(--space-6) var(--space-5); text-align: center;
  background: transparent; transition: background-color .15s ease-in-out;
}
.c-drop:hover, .c-drop.c-dragover { background: var(--w-blush); }
.c-drop.c-dragover, .c-file-card.c-dragover, .c-drop:has(.c-file-input:focus-visible) { background: var(--w-blush); box-shadow: inset 0 0 0 1px var(--w-ink); }
.c-drop.c-invalid, .c-file-card.c-invalid, .c-att-item.c-invalid { border-color: var(--w-red); box-shadow: inset 0 0 0 1px var(--w-red); }
.c-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.c-drop-label { display: grid; gap: var(--space-2); cursor: pointer; }
.c-drop-title { font: 700 var(--t-small)/1.35 var(--w-mono); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.c-drop-hint { font: italic 400 .9375rem/1.5 var(--w-serif); }

.c-file-extra {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3);
  margin-top: var(--space-3); font: 300 var(--t-mini)/1.4 var(--w-mono);
}
.c-attach-link {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  color: var(--w-ink);
}
.c-attach-link:hover { text-decoration-thickness: 2px; }
.c-file-extra-hint { opacity: .68; }
.c-att-bar { min-width: 0; }

.c-progress {
  display: block; width: 100%; height: 4px; margin-top: var(--space-3);
  appearance: none; border: 0; background: rgb(18 18 18 / .12); color: var(--w-ink);
}
.c-progress[hidden] { display: none; }
.c-progress::-webkit-progress-bar { background: rgb(18 18 18 / .12); }
.c-progress::-webkit-progress-value { background: var(--w-ink); transition: width .12s ease-out; }
.c-progress::-moz-progress-bar { background: var(--w-ink); }

.c-att-list { list-style: none; padding: 0; margin-top: var(--space-3); display: grid; gap: var(--space-2); }
.c-att-list[hidden] { display: none; }
.c-att-item { border: var(--w-rule); padding: var(--space-3) var(--space-4); background: var(--w-blush); }
.c-att-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.c-att-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); min-width: 0; }
.c-att-name { font: 700 var(--t-mini)/1.35 var(--w-mono); overflow-wrap: anywhere; }
.c-att-meta { font: 300 var(--t-mini)/1.35 var(--w-mono); font-variant-numeric: tabular-nums; opacity: .75; }
.c-att-err { margin-top: var(--space-2); font: 300 var(--t-mini)/1.35 var(--w-mono); color: var(--w-red); }
.c-att-err:empty { display: none; }

.c-file-card { border: var(--w-rule); padding: var(--space-4) var(--space-5); background: var(--w-blush); }
.c-file-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); flex-wrap: wrap; }
.c-file-info { display: grid; gap: var(--space-1); min-width: 0; }
.c-file-name { font: 700 var(--t-small)/1.35 var(--w-mono); overflow-wrap: anywhere; }
.c-file-meta { font: 300 var(--t-mini)/1.4 var(--w-mono); font-variant-numeric: tabular-nums; }
.c-file-meta.c-over { color: var(--w-red); }
.c-file-actions { display: flex; gap: var(--space-4); flex: none; font: 300 var(--t-mini)/1.4 var(--w-mono); }
.c-file-btn { min-height: 24px; }
.c-file-status { margin-top: var(--space-2); font: 300 var(--t-mini)/1.4 var(--w-mono); }
.c-file-status:empty { display: none; }
.c-file-preview { margin-top: var(--space-3); padding-top: var(--space-3); border-top: var(--w-rule); }
.c-file-preview summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font: 300 var(--t-mini)/1.4 var(--w-mono);
}
.c-file-preview summary::-webkit-details-marker { display: none; }
.c-file-preview summary::after { content: ''; width: 10px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' fill='none'%3E%3Cpath d='M.93.58l12-.08-5.94 9.13z' fill='%23121212'/%3E%3C/svg%3E") center / contain no-repeat; transition: rotate .2s ease-out; }
.c-file-preview[open] summary::after { rotate: 180deg; }
.c-file-text {
  margin-top: var(--space-3); max-height: 280px; overflow: auto; padding: var(--space-3) var(--space-4);
  border: var(--w-rule); background: var(--w-cream); font: 400 .9375rem/1.6 var(--w-serif);
  white-space: pre-wrap; overflow-wrap: break-word;
}

.c-hint-top { margin: 0 0 var(--space-3); }
/* Says nothing until a pitch is over the word limit */
.c-count { margin-top: var(--space-2); font: 300 var(--t-mini)/1.4 var(--w-mono); font-variant-numeric: tabular-nums; }
.c-count.c-over { color: var(--w-red); }
.c-count:empty { display: none; }

.c-hint { font: italic 400 .9375rem/1.5 var(--w-serif); margin-top: var(--space-2); }
.c-note, .c-msg, .c-status { font: 300 var(--t-mini)/1.4 var(--w-mono); margin-top: var(--space-2); }
.c-msg, .c-note.c-error { color: var(--w-red); }
:is(.c-note, .c-msg, .c-status):empty { display: none; }

/* Sending: a black bar of a button under a rule, yellow on hover, like the site's Subscribe */
.c-send { margin-top: var(--space-2); padding-top: var(--space-6); border-top: var(--w-rule); display: grid; }
.c-send > .c-msg, .c-send > .c-status { margin: 0 0 var(--space-3); }
.c-submit {
  width: 100%; padding: 15px; border: var(--w-rule); background: var(--w-ink); color: var(--w-cream);
  font: 300 1.125rem/1.26 var(--w-mono); text-align: center;
  transition: background-color .15s ease-in-out, color .15s ease-in-out;
}
.c-submit:hover:not(:disabled) { background: var(--w-yellow); color: var(--w-ink); }
.c-submit:disabled { opacity: .5; cursor: default; }

/* Sent: a short confirmation, with the address the writer gave, takes the form's place */
.c-panel { padding-top: var(--space-5); }
.c-panel-h { font: 700 1.75rem/1.25 var(--w-serif); color: var(--w-ink); margin-bottom: var(--space-3); text-wrap: balance; }
.c-body h2:focus { outline: none; } /* a heading the script moves to is not a control */
.c-panel-p { font: 400 var(--t-dek)/1.5 var(--w-serif); overflow-wrap: anywhere; }
.c-panel-act { margin-top: var(--space-6); padding-top: var(--space-5); border-top: var(--w-rule); font: 300 var(--t-small)/1.29 var(--w-mono); }
.c-num { font-weight: 700; }
.c-noscript { margin-bottom: var(--space-6); padding: var(--space-4) var(--space-5); border: var(--w-rule); background: var(--w-blush); font: 300 var(--t-small)/1.43 var(--w-mono); }

/* ---------- The guidance, in a modal (a native <dialog>), boxed like the site's panels ---------- */
.c-guide {
  width: min(600px, calc(100vw - 2 * var(--space-4))); max-width: none; max-height: min(720px, calc(100dvh - 2 * var(--space-6)));
  padding: 0; border: var(--w-rule); border-radius: 0; color: var(--w-ink); background: var(--w-cream);
  overflow: hidden;
  opacity: 0; translate: 0 8px;
  transition: opacity .2s ease-out, translate .2s ease-out, overlay .2s allow-discrete, display .2s allow-discrete;
}
.c-guide[open] { display: flex; flex-direction: column; opacity: 1; translate: 0 0; }
@starting-style { .c-guide[open] { opacity: 0; translate: 0 8px; } }
.c-guide::backdrop { background: rgb(18 18 18 / 0); transition: background-color .2s ease-out, overlay .2s allow-discrete, display .2s allow-discrete; }
.c-guide[open]::backdrop { background: rgb(18 18 18 / .35); }
@starting-style { .c-guide[open]::backdrop { background: rgb(18 18 18 / 0); } }
.c-guide-top { display: flex; justify-content: space-between; align-items: stretch; height: 52px; padding-left: var(--space-5); border-bottom: var(--w-rule); flex: none; }
.c-guide-title { align-self: center; font: 700 1.25rem/1.3 var(--w-serif); color: var(--w-ink); }
.c-guide-body { overflow: auto; overscroll-behavior: contain; padding: var(--space-6) var(--space-5); }

.c-steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--space-5); margin-bottom: var(--space-6); }
.c-steps li { counter-increment: step; position: relative; padding-left: var(--space-7); font: 400 .9375rem/1.55 var(--w-serif); }
.c-steps li::before { content: counter(step); position: absolute; left: 0; top: -.15em; font: 700 1.75rem/1 var(--w-serif); }
.c-step { display: block; margin-bottom: var(--space-1); font: 700 var(--t-small)/1.29 var(--w-mono); }
.c-g-p { font: 400 .9375rem/1.55 var(--w-serif); margin-bottom: var(--space-5); }
.c-g-tag { display: block; margin-bottom: var(--space-1); font: 700 var(--t-small)/1.29 var(--w-mono); }

.c-details { border-top: var(--w-rule); }
.c-details:last-child { border-bottom: var(--w-rule); }
.c-details summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; cursor: pointer;
  font: 700 1.125rem/1.3 var(--w-serif);
}
.c-details summary::-webkit-details-marker { display: none; }
.c-details summary::after { content: ''; width: 12px; height: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' fill='none'%3E%3Cpath d='M.93.58l12-.08-5.94 9.13z' fill='%23121212'/%3E%3C/svg%3E") center / contain no-repeat; transition: rotate .2s ease-out; }
.c-details[open] summary::after { rotate: 180deg; }
#c-example-body { padding-bottom: var(--space-5); font: 400 .9375rem/1.6 var(--w-serif); }
#c-example-body p { margin: 0; padding-bottom: 10px; }
/* The example itself, quoted as the site quotes it */
#c-example-body p:not(.c-details-lead, .c-details-foot) { padding-left: 15px; border-left: 4px solid var(--w-quote); }
.c-details-lead { margin-bottom: var(--space-3) !important; }
.c-details-foot { margin-top: var(--space-3) !important; }

/* ---------- Inside an article (/embed): only the form, on a clear ground ---------- */
.c-embed { min-height: 0; background: transparent; } /* wip.css makes the body as tall as the window: here that is the frame */
/* In Settings' preview there is no article behind the form, so it sits on the site's own cream */
.c-embed.c-preview { background: var(--w-cream); }
.c-embed.c-preview .c-page { padding: var(--space-5); } /* the article's margins, which the frame there does not need */
.c-fitted { overflow: hidden; }
/* The masthead, the heading and notes above the form, and the guidance are the article's to give */
.c-embed :is(.c-top, .c-head, .c-aside, .c-guide) { display: none; }
/* As wide as the article's column: the fields line up with its text. Only room above and below, for a focus ring */
.c-embed .c-page { max-width: none; padding: var(--space-2) 0; }
/* At the frame's edge a ring outside the button would be cut off, so it is drawn inside, in the site's yellow */
.c-embed .c-submit:focus-visible { outline-color: var(--w-yellow); outline-offset: -6px; }
.c-embed .c-panel { padding-top: 0; text-align: center; }
/* A frame the article gave a fixed height (no /embed.js to fit it) keeps that height once the short confirmation
   replaces the form: the confirmation sits in the middle of it, not at the top of an empty box */
html:not(.c-fitted) .c-embed .c-page:has(> .c-panel:not([hidden])) { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Small screens: the site's 16px gutter ---------- */
@media (max-width: 719px) {
  :root { --pad: 16px; --t-title: 2rem; }
  .c-links { font-size: var(--t-mini); }
  .c-linkbar-input { font-size: 1rem; }
  .c-page { padding-top: var(--space-6); padding-bottom: var(--space-7); }
  .c-head { margin-bottom: var(--space-6); }
  .c-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .c-pair .c-field { margin-bottom: var(--space-5); }
  .c-guide { max-height: calc(100dvh - 2 * var(--space-4)); }
  .c-guide-top { padding-left: var(--space-4); }
  .c-guide-body { padding: var(--space-5) var(--space-4) var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  .c-body *, .c-body *::before, .c-body *::after, .c-guide::backdrop { transition: none !important; }
}

/* ---------- A piece of text an editor has set in the form's other face (Settings, Pitch form) ---------- */
/* Each face has its own weights: text moved to the other one takes the nearest it has */
.c-body [data-font="serif"] { font-family: var(--w-serif); }
.c-body [data-font="mono"] { font-family: var(--w-mono); font-style: normal; }

/* ---------- Settings' preview (/editors/form-preview): the form for editors to look at while they change its words ---------- */
/* The text whose box an editor is typing in, and the text under their pointer */
.c-preview .c-editing { outline: 2px solid var(--w-ink); outline-offset: 4px; }
.c-preview .c-over { outline: 1px dashed var(--w-ink); outline-offset: 4px; }
/* The guidance is shown in the page, whole, not over it */
.c-preview .c-guide { position: static; max-height: none; margin: var(--space-6) auto; }
.c-preview .c-guide-body { overflow: visible; }
