/* Type: the display face (bump inktrap, kindly sponsored) everywhere, except the reading text of an opened entry, which
   is Futura (the device's own; Arial elsewhere, Futura can't be shipped). The public file is a renamed, CORS-locked
   WOFF2 cut down to the site's letters by private/subset.py; the original stays in private/. */
@font-face {
  font-family: "d26";
  src: url(/assets/fonts/d26.woff2) format("woff2");
  font-display: swap;
}
:root {
  --display: "d26", Futura, "Futura PT", Arial, sans-serif; /* letters the face lacks (ń, č, á…) fall back to Futura */
  --cover-font: var(--display); /* the 3D thesis covers (shelf.js) */
  --bg: #fff;
  --fg: #111;
  --grey: #5c5c5c;
  --faint: #767676;
  --line: #b9b9b9;
  --pad: 16px; /* page margin, both themes */
}
/* black background, white text: the ● in the header (main.js remembers the choice) */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000;
  --fg: #f2f2f2;
  --grey: #a6a6a6;
  --faint: #8c8c8c;
  --line: #575757;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* also on grid rows */

html {
  font: calc(16px * var(--zoom, 1))/1.25 var(--display); /* − / + in the header */
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--fg);
  background: var(--bg);
}

body { margin: 0; padding: 0 var(--pad) 14px; min-height: 100vh; display: flex; flex-direction: column; }
p, h1 { margin: 0; font: inherit; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:hover { text-decoration: underline; }
.zoom { min-width: .9em; }
.zoom + .zoom { margin-left: .1em; }
.zoom + #shelf-toggle, .zoom + .qa, .qa + #shelf-toggle { margin-left: 1em; }
/* ○ ● colour choice */
.theme {
  width: .78em;
  height: .78em;
  border: 1px solid var(--fg);
  border-radius: 50%;
  vertical-align: -.02em;
}
.theme[data-set="light"] { background: #fff; }
.theme[data-set="dark"] { background: #000; }
.theme + .theme { margin-left: .22em; }
.theme[aria-pressed="true"] { outline: 1px solid var(--fg); outline-offset: 2px; }
.theme + .zoom { margin-left: 1em; }
.theme:focus-visible { outline: 1px dashed var(--fg); outline-offset: 2px; }
.zoom:disabled { opacity: .3; cursor: default; text-decoration: none; }

/* one grid for every line: No. | Name | Project | Type | Page */
.row, details[name="index"] > summary {
  display: grid;
  grid-template-columns: 6ch minmax(10em, 1fr) 2fr minmax(10em, 1fr) 6ch;
  grid-template-areas: "code name title type nr";
  gap: 0 1em;
  padding: 1px 0;
}
.code { grid-area: code; }
.name { grid-area: name; }
.title { grid-area: title; text-align: center; }
.type { grid-area: type; text-align: right; }
.nr { grid-area: nr; text-align: right; }
.url { grid-column: type / nr; text-align: right; }

header {
  position: sticky; /* stays while scrolling, so Shelf is always at hand */
  top: 0;
  z-index: 7;
  background: var(--bg);
  border-bottom: 1px solid var(--fg);
  margin: 0 calc(-1 * var(--pad)) 1.5em;
  padding: 12px var(--pad) 0; /* the label row sits on the bottom rule, so the open row can take its exact place */
}
header a { text-decoration: none; }
.head { margin-top: 2.2em; color: var(--grey); }

details[name="index"] > summary { cursor: pointer; list-style: none; margin: 0 calc(-1 * var(--pad)); padding: 1px var(--pad); }
details[name="index"] > summary::-webkit-details-marker { display: none; }
/* only black and white: the open and the hovered row are inverted */
details[name="index"][open] > summary { background: var(--fg); color: var(--bg); }
/* the open person's row rises into the header, over the No./Name/Project labels, and stays there while their entry
   is read (sticky within the entry); --labels is where that label row sits (main.js) */
details[name="index"][open] > summary { position: sticky; top: var(--labels, 3.6em); z-index: 8; }
/* ...at exactly the label row's height: the open title stays on one line (the full title is in its tooltip) */
details[name="index"][open] > summary :is(.name, .title) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { details[name="index"] > summary:hover { background: var(--fg); color: var(--bg); } }
summary:focus-visible, button:focus-visible { outline: 1px solid; outline-offset: -1px; }
/* keyboard focus in black and white too (never the browser's blue) */
a:focus-visible, .f input[type="checkbox"]:focus-visible, .f input[type="file"]:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
/* deep link: keep the pre-opened entry shut until main.js focuses it */
.deep details[name="index"][open] > .body { display: none; }
.deep details[name="index"][open] > summary { background: none; color: inherit; }
/* focus (link landing): the other rows fold away; "← Back" brings them back */
details[name="index"].leaving { overflow: clip; }
details[name="index"].gone { display: none; }
.focus header { margin-bottom: 0; } /* the one remaining row sits flush under the header */
/* ← Back, bottom right, whenever someone is open (CSS only, so no-JS pages get it too) */
.to-index {
  display: none;
  position: fixed;
  right: var(--pad);
  bottom: var(--pad);
  z-index: 6;
  padding: 6px 14px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}
body:has(main details[name="index"][open]) .to-index { display: block; animation: fade .3s; }
body:has(main details[name="index"][open]) { padding-bottom: 64px; } /* room for ← Back below the footer */
.to-index:hover { text-decoration: underline; }

/* Opened entry, 1:3 — profile under the name, the work under Project → Page */
.body {
  font-family: Futura, "Futura PT", Arial, sans-serif; /* reading text */
  display: grid;
  grid-template-columns: 6ch minmax(10em, 1fr) 2fr minmax(10em, 1fr) 6ch;
  gap: 0 1em;
  padding: 1.3em 0;
  overflow: clip;
}
.profile { grid-column: 2; align-self: start; position: sticky; top: calc(var(--head, 6.5em) + 1em); color: var(--grey); } /* below the sticky header */
.profile p { margin-bottom: .8em; }
.profile .links a { display: block; width: fit-content; overflow-wrap: anywhere; }
.work { grid-column: 3 / -1; text-align: center; }
.work > :last-child, .profile > :last-child { margin-bottom: 0; }
.work p { max-width: 36em; margin: 0 auto 1em; }
.work img { height: 12em; max-width: 100%; object-fit: contain; }
@media (min-width: 801px) { .work img { width: auto; } } /* desktop rows are height-led; width/height attrs are for mobile */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 10px; margin: 0 0 1.2em; }
.gallery figure { margin: 0; }
.gallery img { display: block; }
.gallery figcaption { contain: inline-size; margin-top: .35em; font-size: .78em; line-height: 1.25; color: var(--grey); }
.video { max-width: 40em; aspect-ratio: 16 / 9; margin: 0 auto 1.2em; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* Footer: three small columns at the very bottom */
footer {
  margin-top: auto;
  padding-top: 4em;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em 2em;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--grey);
}

/* Submit form (/submit): labels in the name column, fields across the rest, like the index */
h2 { font: inherit; margin: 0; }
.submit-page main { padding-bottom: 2em; }
.f { align-items: start; margin-bottom: .75em; }
.f > .name { padding-top: .2em; }
.f .in { grid-column: title / nr; display: block; min-width: 0; }
h2.f { margin: 2.2em 0 .9em; color: var(--grey); }
.f input:not([type="checkbox"]):not([type="file"]), .f textarea, .f select {
  width: 100%;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: .15em 0;
}
.f textarea { border: 1px solid var(--line); padding: .4em .5em; resize: vertical; }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: var(--fg); }
.f small { display: block; margin-top: .3em; font-size: .78em; color: var(--grey); }
.slug { display: flex; align-items: baseline; }
.slug input { flex: 1; margin-left: .1em; }
.check .name { text-align: right; }
.hp { position: absolute; left: -9999px; }
.send { padding: 8px 24px; background: var(--fg); color: var(--bg); }
.send:disabled { opacity: .4; }
/* live-site editing (EDIT_ENABLED): Edit · Delete under each page, and the /admin desk */
.edit-links { margin-top: 2em; font-size: .78em; }
.edit-links a + a { margin-left: 1.2em; }
.desk .row { align-items: baseline; margin-bottom: .3em; }
.desk .row > .type { grid-column: type-start / nr-end; } /* the desk has no page numbers: its buttons reach the right edge */
.desk .type button { margin-left: 1em; text-decoration: underline; }
.desk .body { padding: .4em 0 1.4em; }
.desk .note { font-style: italic; color: var(--grey); }
.desk h2.row { margin-top: 1.6em; }
.desk .sum { margin-bottom: 1em; }
.desk .sum b { font-weight: inherit; border-bottom: 1px solid; }
.desk .small, .desk .row .small { color: var(--grey); font-size: .8em; }
.desk .type a + a, .desk .type a + button, .desk .type button + a { margin-left: 1em; }
.desk .type button:first-child { margin-left: 0; }
.desk .soon { color: var(--grey); font-style: italic; }
.desk .code { filter: grayscale(1); } /* the ✋ too: black and white only */
.restart { margin-left: 1em; color: var(--grey); }
.draftnote { margin-top: .6em; }
/* the form: always a way back to the site */
.leave-form { position: fixed; right: var(--pad); bottom: var(--pad); z-index: 6; padding: 6px 14px; background: var(--fg); color: var(--bg); text-decoration: none; }
.leave-form:hover { text-decoration: underline; }
.submit-page { padding-bottom: 64px; }
.status { overflow-wrap: anywhere; }
.status.warn { font-weight: 600; }
.picked { display: flex; flex-direction: column; gap: 6px; margin-top: .5em; }
.pick { display: flex; align-items: center; gap: 10px; }
.pick img { width: 64px; height: 64px; object-fit: cover; flex: none; }
.pick input { flex: 1; }

/* "Your page" in the form: the opened entry itself, made editable (same .body/.profile/.work/.gallery/.video) */
.editor { margin-bottom: 1.5em; }
.editor input, .editor textarea, .editor select { font: inherit; color: inherit; text-align: inherit; background: transparent; border: 0; border-radius: 0; padding: 0; width: 100%; min-width: 0; }
.editor ::placeholder { color: inherit; opacity: .5; }
.editor input:focus, .editor textarea:focus, .editor select:focus { outline: 1px dashed currentColor; outline-offset: 2px; }
.page-row { margin: 0 calc(-1 * var(--pad)); padding: 1px var(--pad); background: var(--fg); color: var(--bg); }
.page-row textarea { display: block; resize: none; overflow: hidden; }
.page-row select { appearance: none; text-align: right; text-align-last: right; cursor: pointer; }
.page-row option { color: var(--fg); background: var(--bg); }
.editor .profile textarea { resize: none; overflow: hidden; }
.editor .thesis-line { display: flex; gap: .3em; }
.editor .links input { display: block; text-decoration: underline; }
.editor .links span { text-decoration: underline; opacity: .5; }
.blk { position: relative; margin: 0 0 1em; }
.blk:hover, .blk:focus-within { outline: 1px dashed var(--line); outline-offset: 6px; }
.blk textarea { display: block; max-width: 36em; margin: 0 auto; text-align: center; resize: none; overflow: hidden; }
.blk .gallery { margin: 0; }
.blk figure { position: relative; }
.blk .cap { display: block; margin-top: .35em; font-size: .78em; line-height: 1.25; color: var(--grey); text-align: center; }
.blk .rm { position: absolute; top: 4px; left: 4px; width: 1.4em; height: 1.4em; line-height: 1; background: var(--fg); color: var(--bg); }
.addimg { position: relative; display: flex; align-items: center; justify-content: center; width: 8em; height: 12em; border: 1px dashed var(--line); color: var(--grey); cursor: pointer; }
.addimg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; } /* reachable by keyboard, clicked through the tile */
.editor button:focus-visible, .addimg:focus-within { outline: 1px solid var(--fg); outline-offset: 2px; }
.blk .vurl { display: block; max-width: 36em; margin: 0 auto .6em; text-align: center; }
.tools { position: absolute; top: -.3em; right: -.3em; z-index: 1; display: none; gap: 2px; font-size: .8em; }
.tools button { width: 1.7em; height: 1.7em; background: var(--fg); color: var(--bg); }
.tools button:disabled { opacity: .3; }
.blk:hover > .tools, .blk:focus-within > .tools { display: flex; }
@media (hover: none) { .tools { display: flex; position: static; justify-content: flex-end; margin-top: .4em; } } /* touch: a row under the block, never over the text */
.add { display: flex; justify-content: center; gap: 1em; margin: 1.4em 0 0; }
.add button { border: 1px solid var(--fg); padding: 4px 14px; }
.add button:disabled { opacity: .3; }
.limits { display: block; margin-top: .6em; font-size: .78em; color: var(--grey); text-align: center; }

/* QR code page (/<slug>/qrcode) */
.qr-page main { margin: auto; padding: 2em 0; text-align: center; }
.qr-page img { display: block; width: min(360px, 80vw); height: auto; margin: 0 auto 1em; }
.qr-page p { margin-bottom: .8em; }
.qr-page p a + a { margin-left: 1.2em; }

/* Apply: big logo in the display face drifting over the front page, bouncing off the edges (main.js) */
.apply {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 8;
  font: 400 clamp(2.6rem, 8vw, 7rem)/.9 var(--display);
  color: var(--fg);
  padding: .02em .08em .22em; /* the inverted block holds the descenders of p p y */
}
.apply:hover { text-decoration: none; }
.apply.inv { background: var(--fg); color: var(--bg); } /* flips black/white at every wall */

/* Comments (a prototype, local builds only): a small chip drifting like Apply, and everyone's notes drifting with it */
.comments {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 8;
  font: 900 clamp(1rem, 2.2vw, 1.5rem)/1 "Helvetica Neue", "Arial Black", Arial, sans-serif;
  letter-spacing: -.02em;
  padding: .15em .35em .2em;
  border: 2px solid var(--fg);
  background: var(--bg);
}
.comments:hover { text-decoration: none; }
.comment-note {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 7;
  padding: .05em .45em .1em;
  border: 1px solid var(--fg);
  background: var(--bg);
  font-size: .9rem;
  white-space: nowrap;
  pointer-events: none; /* never in the way of the index underneath */
  filter: grayscale(1); /* emoji too: black and white only */
}
.comments.inv, .comment-note.inv { background: var(--fg); color: var(--bg); }
.comment-form { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; z-index: 9; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: calc(100vw - 2 * var(--pad)); padding: 8px 10px; border: 1px solid var(--fg); background: var(--bg); }
.comment-form input { width: 17em; max-width: 60vw; border: 0; border-bottom: 1px solid var(--fg); background: none; font: inherit; color: inherit; outline: none; }
.comment-form [type=submit] { padding: 2px 12px; border: 1px solid var(--fg); }
.comment-form .status { flex-basis: 100%; color: var(--grey); font-size: .8em; }
.comment-form .status:empty { display: none; }

/* Q&A chat (opened by Apply): one message per click, "Back to the website" pinned below */
#intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  background: var(--bg);
  padding: 12px var(--pad) 0;
  outline: none;
}
.welcome #intro, #intro.leaving { display: block; }
.welcome body { overflow: hidden; }
.welcome body > :not(#intro) { visibility: hidden; }
#intro.leaving { animation: fade .45s reverse forwards; pointer-events: none; }
#intro { cursor: pointer; }
#intro a, .enter { cursor: pointer; }
.thread {
  overflow-wrap: anywhere; /* long links (PayPal) wrap on phones */
  max-width: 30em;
  margin: 0 auto;
  padding: 26vh 0 45vh;
  font-size: 1.45rem;
  line-height: 1.22;
}
.thread p { display: none; margin-bottom: .75em; }
.thread p.in, .thread .typing:not([hidden]) { display: block; animation: rise .5s cubic-bezier(.2, .7, .2, 1); }
.thread p.old { color: var(--faint); transition: color .6s; }
.thread p.q { width: fit-content; max-width: 80%; margin-left: auto; padding: .12em .5em; border: 1px solid; } /* the visitor's side */
.thread .typing { color: var(--grey); font-size: .7em; letter-spacing: .04em; }
.thread img { display: block; width: 9em; height: auto; margin-top: .3em; }
.thread p.hands.in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } /* show of hands: the visitor's buttons */
.hands button { padding: 6px 16px; border: 1px solid var(--fg); background: var(--bg); }
.hands button:hover { background: var(--fg); color: var(--bg); text-decoration: none; }
.hands .count { flex-basis: 100%; color: var(--grey); font-size: .7em; letter-spacing: .02em; }
.hands .count:empty { display: none; }
.thread .hands, .thread .q { filter: grayscale(1); } /* the ✋ emoji too: black and white only */
.intro-actions { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; display: flex; gap: 8px; margin: 0; }
.enter, .to-form { padding: 10px 22px 8px; font-size: 1.05rem; background: var(--bg); border: 1px solid var(--fg); text-decoration: none; white-space: nowrap; }
.to-form.done { background: var(--fg); color: var(--bg); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }

/* Shelf: a ring of 3D books floating over the index (shelf.js); the layer never takes clicks itself */
.on-book { cursor: pointer; }
.on-book details[name="index"]:not([open]) > summary:hover { background: none; color: inherit; }
#shelf { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
#shelf canvas { display: block; }
.shelf-caption { position: fixed; left: 50%; bottom: 60px; translate: -50% 0; max-width: calc(100% - 32px); padding: 4px 12px; background: var(--fg); color: var(--bg); text-align: center; }
.shelf-exit { position: fixed; left: 50%; bottom: var(--pad); translate: -50% 0; pointer-events: auto; padding: 6px 18px; background: var(--fg); color: var(--bg); }

/* touch: the small ○ ● − + keep their look and spacing, but take taps from a taller area */
@media (pointer: coarse) {
  .theme, .zoom { position: relative; }
  .theme::after, .zoom::after { content: ""; position: absolute; inset: -.6em -.08em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

@media (max-width: 800px) {
  .row, details[name="index"] > summary {
    grid-template-columns: 5ch 1fr auto;
    grid-template-areas: "code name nr" ". title type";
  }
  .title { text-align: left; }
  .url, .f .in { grid-column: 2 / -1; }
  .url { text-align: left; margin-top: .25em; } /* ○● − + 3D Theses right under the title */
  /* group gaps sit after each group, so a wrapped line starts flush with the title */
  .theme[data-set="dark"], .zoom[data-step="1"], .qa { margin-right: 1em; }
  .theme + .zoom, .zoom + .qa, .zoom + #shelf-toggle, .qa + #shelf-toggle { margin-left: 0; }
  .row, details[name="index"] > summary { grid-template-columns: 5ch minmax(0, 1fr) auto; } /* long names wrap instead of widening the page */
  .head { margin-top: .9em; }
  .body { grid-template-columns: 1fr; }
  .work { grid-column: 1; }
  .profile { grid-column: 1; order: 2; position: static; margin-top: 1.6em; text-align: center; }
  .profile .links a { margin: 0 auto; }
  .work img { height: auto; max-height: 60vh; }
  .gallery figure { flex: 1 1 100%; }
  .gallery img { margin: 0 auto; }
  .addimg { width: 100%; height: 6em; }
  .editor .thesis-line { justify-content: center; }
  .editor .thesis-line input { width: auto; flex: 0 1 14em; }
  footer { grid-template-columns: 1fr; }
  .thread { font-size: 1.25rem; }
}

/* Retained examples are marked in text as well as colour. Real submissions use the original black type. */
.archive-status { color: var(--grey); font-size: .78rem; margin: -.65em 0 1.1em; }
details.example { color: var(--grey); }
details.example:not([open]) > summary { background: color-mix(in srgb, var(--fg) 3%, var(--bg)); }
.example-label { display: inline-block; padding: 0 .3em; margin-left: .25em; border: 1px solid currentColor; font-size: .67em; vertical-align: .08em; }
.example-note { font-size: .85em; border-top: 1px solid var(--line); padding-top: .6em; }
details.example .work img { filter: grayscale(1); opacity: .7; }

/* The opening choice stays within the display edition's black/white typography. */
.intro-start { width: min(100%, 47rem); margin: 17vh auto 8rem; }
.join-status { font-size: .9rem; color: var(--grey); margin-bottom: 1.6rem; }
.intro-start h2 { max-width: 14em; font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1.03; margin-bottom: 1.5rem; }
.intro-choices { display: grid; gap: .75rem; }
.intro-choices > * { display: block; text-align: left; padding: 1.1rem 1.2rem; border: 1px solid var(--fg); font-size: 1.25rem; text-decoration: none; }
.intro-choices > *:hover { background: var(--fg); color: var(--bg); text-decoration: none; }
.intro-choices span { display: block; margin-top: .6rem; font: .82rem/1.4 Futura, "Futura PT", Arial, sans-serif; }
.intro-note { margin-top: 1.2rem; color: var(--grey); font: .85rem/1.5 Futura, "Futura PT", Arial, sans-serif; }
#intro { cursor: auto; }
.thread:not([hidden]) { cursor: pointer; }
.guide-next { padding: 10px 22px 8px; font-size: 1.05rem; background: var(--fg); color: var(--bg); border: 1px solid var(--fg); white-space: nowrap; }
.intro-actions { width: max-content; max-width: calc(100% - 2 * var(--pad)); flex-wrap: wrap; justify-content: center; }
.intro-actions > * { text-align: center; }
.intro-noscript { max-width: 47rem; margin: 0 auto 6rem; }

/* Add a platform, then its address. */
.social-editor { margin-bottom: 1em; }
.social-links { display: grid; gap: .9em; }
.social-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35em .5em; text-align: left; }
.social-link .social-platform { grid-column: 1 / -1; padding: .25em 0; border-bottom: 1px solid var(--line); }
.social-link .social-url { border-bottom: 1px solid var(--line); padding: .25em 0; }
.social-link .social-remove { min-width: 1.5em; min-height: 1.5em; font-size: 1.2em; }
.social-link .social-link-hint { grid-column: 1 / -1; overflow-wrap: anywhere; }
.social-editor small { display: block; font-size: .78em; line-height: 1.4; margin-top: .4em; }
.social-add { margin-top: .7em; border: 1px solid var(--line); padding: .35em .6em; }
.qr-promise { font-size: .8em; }
.password-record .name { text-align: right; }
#checkout { max-width: 38rem; margin: 3rem auto; border-top: 1px solid var(--line); padding-top: 1.5rem; }
#checkout h2 { font-size: 1.65rem; line-height: 1.1; margin-bottom: 1rem; }
#checkout > p { margin-bottom: 1rem; }
#paypal-buttons { margin-top: 1rem; }
.qr-result { margin-top: 1.5rem; }
.qr-result img { display: block; max-width: min(100%, 300px); margin: 1rem 0; }
.qr-result a { display: inline-block; margin: .3em .7em .3em 0; }

/* Public budget: unknowns and planned costs remain separate from paid totals. */
.operations { max-width: 70rem; width: 100%; margin: 2rem auto 0; font: 1rem/1.5 Futura, "Futura PT", Arial, sans-serif; }
.operations .eyebrow { color: var(--grey); font-size: .8rem; margin-bottom: 1rem; }
.operations h2 { font: 2rem/1.15 var(--display); margin: 0 0 1rem; }
.operations > p { max-width: 48rem; margin-bottom: 1rem; }
.money-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-block: 1px solid var(--line); padding: 1.25rem 0; margin: 2rem 0 1rem; }
.money-summary span { display: block; color: var(--grey); font-size: .8rem; margin-bottom: .4rem; }
.money-summary strong { font: 1.65rem/1.2 var(--display); }
.account-note { font-size: .85rem; color: var(--grey); }
.table-scroll { overflow-x: auto; margin: 2rem 0 3rem; }
.operations table { width: 100%; border-collapse: collapse; text-align: left; }
.operations caption { text-align: left; font: 1.4rem/1.2 var(--display); padding-bottom: 1rem; }
.operations th, .operations td { border-bottom: 1px solid var(--line); padding: .8rem 1rem .8rem 0; vertical-align: top; }
.operations th { font-weight: 400; }
.operations thead { font-size: .8rem; color: var(--grey); }
.operations tbody th { width: 25%; }
.operations td:nth-child(2) { width: 20%; }
.operations section { max-width: 52rem; margin-bottom: 2rem; }
.operations ol { padding-left: 1.3rem; }
.operations li { padding-left: .4rem; margin-bottom: .9rem; }
.operations-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2rem; }
@media (max-width: 800px) {
  .intro-start { margin-top: 10vh; }
  .intro-choices > * { font-size: 1.1rem; padding: .9rem; }
  .intro-actions { bottom: max(16px, env(safe-area-inset-bottom)); gap: 6px; }
  .intro-actions > * { font-size: .86rem; padding: 9px 11px; white-space: normal; }
  .thread { padding-top: 13vh; padding-bottom: 40vh; }
  .social-editor { max-width: 22rem; margin-inline: auto; }
  .money-summary { grid-template-columns: 1fr 1fr; }
  .money-summary > :last-child { grid-column: 1 / -1; }
  .operations th, .operations td { padding-right: .55rem; font-size: .85rem; }
  .operations tbody th { width: 26%; }
  .operations td:nth-child(2) { width: 24%; }
  .operations-page header .url { grid-column: 2 / -1; }
}

/* Returning contributors can safely resume a saved checkout outside the archive accordion. */
.resume-checkout { max-width: 38rem; margin: 1.5rem auto 3rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.resume-checkout > summary { cursor: pointer; font-size: 1.1rem; list-style-position: inside; }
.resume-checkout > summary:hover { text-decoration: underline; }
.resume-checkout form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.resume-checkout label { display: grid; gap: .4rem; }
.resume-checkout input { width: 100%; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: .6rem; }
.resume-checkout input:focus { outline: 1px solid var(--fg); outline-offset: 1px; }
.resume-checkout button, #checkout > button { width: fit-content; border: 1px solid var(--fg); padding: .6rem .9rem; }
.resume-checkout button { background: var(--fg); color: var(--bg); }
#checkout > button { margin: .75rem .5rem 0 0; }
.resume-checkout button:disabled, #checkout > button:disabled { opacity: .5; cursor: wait; }
.resume-checkout form > p, .payment-status { font: .9rem/1.5 Futura, "Futura PT", Arial, sans-serif; overflow-wrap: anywhere; }
.qr-result > p { margin-bottom: .75rem; }
.qr-result a[download] { border: 1px solid var(--fg); padding: .45rem .75rem; text-decoration: none; }
.qr-result a[download]:hover { background: var(--fg); color: var(--bg); }
#checkout { scroll-margin-top: calc(var(--head, 6rem) + 1.5rem); }
@media (max-width: 800px) {
  #checkout, .resume-checkout { margin-inline: 0; }
  #checkout > button { font-size: .9rem; }
}
