/* Ink on paper, after the CFYA mark: one ink colour, one paper colour, swapped in dark mode. Colour is kept for
   meaning (roles, statuses, warnings) and for small splashes that move: the rainbow rule, focus, and rainbows that flow under the pointer. */
/* The page preloads this, and block keeps a fallback face from flashing in first. */
@font-face { font-family: Grandstander; font-weight: 700; font-display: block; src: url(fonts/grandstander-700.woff2) format("woff2"); }
/* Each colour is light-dark(light, dark): the device setting picks one unless the header's theme switch fixes it. */
:root { color-scheme: light dark; --fg: light-dark(#111, #f4f2ec); --bg: light-dark(#fbfaf6, #0d0d0d); --muted: light-dark(#5c5b56, #aaa8a0); --line: light-dark(#c9c6bd, #403f3a);
  --wash: light-dark(#eceae2, #272725); --row: light-dark(#f4f2ec, #1e1e1c); --head: light-dark(#efede5, #1d1d1b); --edge: light-dark(#a9a69d, #55544f);
  --pop: light-dark(#d6249f, #ff7ac6); --danger: light-dark(#b42318, #ff8a80); --warn-bg: light-dark(#ffedd5, #2b1a0d); --warn-fg: light-dark(#7c2d12, #fdba74);
  --ok-bg: light-dark(#dcfce7, #0e2819); --ok-fg: light-dark(#14532d, #86efac); --hi-bg: light-dark(#fef9c3, #3d3408); --hi-fg: light-dark(#111, #fef08a);
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --display: Grandstander, "Arial Rounded MT Bold", var(--body);
  --rainbow: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #24408e, #732982, #f5a9b8, #5bcefa);
  /* Ends where it starts, so it can flow sideways without a seam. */
  --splash: linear-gradient(90deg, #ff5fa2, #ffb347, #ffe66d, #5eead4, #7aa2ff, #c084fc, #ff5fa2);
  /* Hand-cut corners, like the block the mark is printed from. */
  --rough: 14px 5px 12px 4px / 5px 12px 4px 13px; --rough-small: 7px 3px 6px 4px / 3px 6px 4px 7px; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { font-size: 112.5%; }
body { margin: 0; font-family: var(--body); color: var(--fg); background: var(--bg); line-height: 1.5; }
/* Ink specks across the page, and paper specks worn out of anything inked (buttons, the admin tag). */
body::before, button::after, .button::after, details.signin summary::after, .tag.admin::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--fg); opacity: .3; -webkit-mask: url(grunge.svg) 0 0 / 480px; mask: url(grunge.svg) 0 0 / 480px; }
button::after, .button::after, details.signin summary::after, .tag.admin::after { position: absolute; z-index: 0; border-radius: inherit; background: var(--bg); opacity: 1; -webkit-mask-size: 160px; mask-size: 160px; }
:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
main { max-width: 64rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
header.staff { position: relative; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; padding: .6rem 1rem calc(.6rem + 5px); font-family: var(--display); font-weight: 700; text-transform: uppercase; }
/* The header is a shaded band with an even rainbow along its foot and a little wear. */
header.staff { background: var(--rainbow) 0 100% / 100% 5px no-repeat var(--head); }
header.staff::after { content: ''; position: absolute; inset: 0 0 5px; pointer-events: none; background: var(--fg); opacity: .14; -webkit-mask: url(grunge.svg) 0 0 / 360px; mask: url(grunge.svg) 0 0 / 360px; }
header.staff a { text-decoration: none; }
/* The mark sits on a block of flowing rainbow that slips out from behind on hover. */
.mark { position: relative; flex: none; width: 2.1rem; aspect-ratio: 1186 / 1604; }
.mark::before, .mark::after { content: ''; position: absolute; inset: 0; background: var(--fg); -webkit-mask: url(cfya.svg) center / contain no-repeat; mask: url(cfya.svg) center / contain no-repeat; }
/* Only the part that clears the mark shows, so the cut-out letters stay clean. */
.mark::before { background: var(--splash) 0 0 / 200% 100%; opacity: 0; -webkit-mask: none; mask: none; clip-path: polygon(calc(100% - 5px) 0, 100% 0, 100% 100%, 0 100%, 0 calc(100% - 5px), calc(100% - 5px) calc(100% - 5px)); transition: transform .15s, opacity .15s; }
.mark:hover::before, .mark:focus-visible::before { opacity: 1; transform: translate(4px, 4px); animation: flow 2s linear infinite; }
/* The signed-out welcome: the mark, large and centred, on its rainbow block, with joining first. */
.welcome { max-width: 44rem; margin: 2.5rem auto; text-align: center; }
/* The greeting stays on one line, in sentence case, sized to the screen. */
.welcome .mark { display: block; width: clamp(6rem, 30vw, 10rem); margin: 0 auto 1.5rem; }
.welcome .mark::before { opacity: 1; transform: translate(10px, 10px); animation: flow 2s linear infinite; clip-path: polygon(calc(100% - 10px) 0, 100% 0, 100% 100%, 0 100%, 0 calc(100% - 10px), calc(100% - 10px) calc(100% - 10px)); }
.welcome h1 { margin: 0 0 1.5rem; font-size: min(2.4rem, 4.6vw); text-transform: none; white-space: nowrap; }
/* The affirmation: a quote block on a rainbow edge, its source smaller beneath. */
.welcome blockquote { margin: 0 0 1.5rem; padding: 1rem 1.25rem 1rem 1.5rem; text-align: left; border-radius: var(--rough-small); background: var(--splash) 0 0 / 6px 100% no-repeat, var(--wash); }
.welcome blockquote p { margin: 0; font-size: 1.25rem; line-height: 1.4; }
.welcome blockquote footer { margin-top: .5rem; font-size: .8rem; color: var(--muted); }
.welcome blockquote footer::before { content: '— '; }
.welcome .button.big { font-size: 1.3rem; padding: .8rem 2rem .7rem; }
/* Join is a holographic card: pastel foil whose glare and tilt follow the pointer or the device (welcome.js), and a
   rainbow that shimmers across it on hover. */
.button.holo {
  --x: 50%; --y: 50%; --rx: 0deg; --ry: 0deg;
  --foil: linear-gradient(115deg, #ffd1e8, #ffe7c2, #fff7c2, #c9fbef, #d3e0ff, #ead7ff, #ffd1e8);
  color: #111; border-color: var(--fg);
  background: radial-gradient(circle at var(--x) var(--y), rgb(255 255 255 / .9), transparent 50%), var(--foil) var(--x) var(--y) / 300% 300%;
  transform: perspective(500px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .2s ease-out, box-shadow .1s;
}
.button.holo:hover, .button.holo:focus-visible {
  transform: perspective(500px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.04);
  background: radial-gradient(circle at var(--x) var(--y), rgb(255 255 255 / .6), transparent 45%), var(--splash) 0 0 / 200% 100%;
  animation: flow 1.2s linear infinite;
}
/* Where you are: a small trail from Roster, over the page's own name. */
.where { flex: 1 1 12rem; min-width: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 .4rem; list-style: none; margin: 0 0 .1rem; padding: 0; font-size: .7rem; letter-spacing: .05em; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .4rem; }
.crumbs a:hover { color: var(--fg); }
h1 { margin: 0; font-size: 1.7rem; }
.menu a:focus-visible { outline-offset: -3px; }
header.staff .who { display: flex; gap: .5rem; align-items: center; }
/* The signed-in person: their name over their pronouns and role in small plain text, set apart from the filled tags
   that sit beside a name in an account page's heading. */
header.staff span.who { flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.2; text-align: right; }
header.staff span.who small { font: 400 .75rem/1.3 var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); }
/* The running commit, for admins, and the light or dark switch: quiet, at the end of the header. */
header.staff .sha { margin-left: 0; font-family: ui-monospace, monospace; font-weight: 400; color: var(--muted); }
.theme-toggle { margin: 0; padding: .3rem; line-height: 0; border-radius: var(--rough-small); background: none; color: var(--fg); }
.theme-toggle::after { content: none; }
.theme-toggle svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle[data-next="dark"] .sun, .theme-toggle[data-next="light"] .moon { display: none; }
details.signin { margin: 0; }
details.signin summary { position: relative; list-style: none; cursor: pointer; font-size: .85rem; padding: .25rem .6rem .15rem; border: 2px solid var(--fg); border-radius: var(--rough-small); background: var(--fg); color: var(--bg); }
details.signin summary::-webkit-details-marker { display: none; }
.signin-panel, .calendar { position: absolute; background: var(--bg); color: var(--fg); border: 2px solid var(--fg); border-radius: var(--rough); box-shadow: 5px 5px 0 var(--fg); }
.signin-panel { right: 1rem; top: calc(100% + .25rem); z-index: 10; width: min(22rem, calc(100vw - 2rem)); padding: 1rem; font-family: var(--body); font-weight: 400; text-transform: none; }
.signin-panel h2 { font-size: 1rem; margin: 1.25rem 0 0; }
.signin-panel h2:first-of-type { margin-top: 0; }
.signin-panel a { text-decoration: underline; }
/* On the welcome page, sign-in opens as a dialog over the page (welcome.js). */
dialog.signin-panel { position: fixed; inset: 0; margin: auto; height: fit-content; }
dialog.signin-panel::backdrop { background: rgb(0 0 0 / .6); }
dialog.signin-panel h2 { margin: 0 0 .75rem; font-size: 1.2rem; }
kbd { padding: 0 .35rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; font: .8rem ui-monospace, monospace; color: var(--muted); }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .15em; }
/* Under the pointer a link's underline becomes a rainbow that keeps flowing. */
main a:not(.button):hover, .crumbs a:hover, .signin-panel a:hover { text-decoration-color: transparent; background: var(--splash) 0 100% / 200% .12em repeat-x; animation: flow 1.6s linear infinite; }
@keyframes flow { to { background-position: 200% 100%; } }
h1, h2, legend, th, .tiles strong { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.1; }
h2 { font-size: 1.3rem; margin-top: 2rem; }
label { display: block; font-weight: 600; margin-top: .75rem; }
/* Fields and the boxes around them have a thin, quiet edge that darkens when you are in the field. Heavy ink is for things you press. */
input, select, textarea { font: inherit; width: 100%; padding: .5rem; border: 1px solid var(--edge); border-radius: var(--rough-small); background: var(--bg); color: var(--fg); accent-color: var(--fg); }
input:focus, select:focus, textarea:focus { border-color: var(--fg); }
input[type=checkbox], input[type=radio] { width: auto; }
.date-input { position: relative; display: flex; gap: .25rem; align-items: center; }
.date-toggle { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin: 0; padding: 0; border: 1px solid var(--edge); background: none; color: var(--fg); }
.date-toggle:hover, .date-toggle[aria-expanded="true"] { background: var(--wash); }
.calendar { top: calc(100% + .25rem); left: 0; z-index: 20; width: 18rem; padding: .5rem; font-weight: 400; }
.calendar button { margin: 0; padding: 0; border: 0; background: none; color: var(--fg); font-family: inherit; font-weight: 400; }
.calendar-head { display: flex; gap: .25rem; align-items: center; margin-bottom: .25rem; }
.calendar-head select { padding: .2rem; font-size: .85rem; }
.calendar-head button { flex: none; width: 1.75rem; height: 1.75rem; font-size: 1.1rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: .85rem; }
.calendar-grid .dow { color: var(--muted); font-size: .75rem; }
.calendar-grid button { height: 2rem; }
.calendar button:hover { transform: none; box-shadow: none; background: var(--wash); }
.calendar-grid button.today { box-shadow: inset 0 0 0 2px var(--pop); }
.calendar-grid button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
textarea { min-height: 8rem; font-family: ui-monospace, monospace; font-size: .85rem; }
button, .button { position: relative; display: inline-block; font: 700 1rem/1.5 var(--display); text-transform: uppercase; letter-spacing: .03em; padding: .55rem 1.2rem .45rem; margin-top: 1rem; border: 2px solid var(--fg); border-radius: var(--rough); background: var(--fg); color: var(--bg); cursor: pointer; text-decoration: none; transition: transform .1s, box-shadow .1s; }
button:hover, .button:hover, details.signin summary:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--pop); }
button.secondary, .button.secondary { background: var(--bg); color: var(--fg); }
button.danger { background: #b42318; border-color: #b42318; color: #fff; }
.tag { position: relative; display: inline-block; vertical-align: middle; margin-left: .4rem; padding: .1rem .55rem; border-radius: var(--rough-small); background: var(--wash); color: var(--fg); font: 600 .75rem/1.4 var(--body); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.tag.pronouns { background: light-dark(#f3e8ff, #3b0764); color: light-dark(#6b21a8, #d8b4fe); font-weight: 400; }
/* One colour per role, kept clear of the status colours (green, orange, grey) and the pronoun purple. Admin is the ink itself. */
.tag.admin { background: var(--fg); color: var(--bg); }
.tag.staff { background: light-dark(#dbeafe, #172554); color: light-dark(#1e40af, #93c5fd); }
.tag.volunteer { background: light-dark(#ccfbf1, #042f2e); color: light-dark(#115e59, #5eead4); }
.tag.youth { background: light-dark(#fce7f3, #500724); color: light-dark(#9d174d, #f9a8d4); }
h1 .tag { font-size: .8rem; }
.person { display: inline-block; }
/* Tables keep one line per row: a name stays with its tags, dates, phones and row actions don't break, and long emails or log details give way first. */
td .person, td time, td.nowrap { white-space: nowrap; }
td .person .tag { margin-left: .3rem; }
td button.small { padding: .1rem .6rem; }
td.wrap { overflow-wrap: anywhere; }
mark { padding: .05rem .35rem; border-radius: var(--rough-small); background: var(--hi-bg); color: var(--hi-fg); white-space: nowrap; }
.proposed { padding: .5rem .6rem; border-radius: var(--rough-small); background: var(--hi-bg); color: var(--hi-fg); }
.proposed .muted { margin: .25rem 0 0; font-size: .9rem; color: inherit; opacity: .8; }
td.state .status { margin: 0 .25rem .25rem 0; }
.account { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .account.with-panel { grid-template-columns: minmax(0, 1fr) 17rem; } }
.meta { margin-top: 0; }
.panel { display: grid; gap: 1.5rem; align-content: start; }
.panel h2 { margin: 0 0 .5rem; font-size: 1rem; }
.status { display: inline-flex; align-items: center; gap: .4rem; margin-right: .5rem; padding: .1rem .7rem; border: 1px solid var(--line); border-radius: var(--rough-small); font-size: .85rem; font-weight: 700; background: var(--bg); color: var(--muted); }
.status.pending { background: var(--warn-bg); border-color: currentColor; color: var(--warn-fg); }
.status.active { background: var(--ok-bg); border-color: currentColor; color: var(--ok-fg); }
/* Things to act on sit in a box; things to read (status, timeline) stay loose and dimmer. */
.card, .actions { padding: 1rem 1.25rem 1.25rem; border: 1px solid var(--edge); border-radius: var(--rough); }
.card > h2:first-child { margin-top: 0; }
.actions { display: grid; gap: .5rem; }
.actions form, .actions button { margin: 0; }
.actions > form button { width: 100%; }
.actions summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.actions details form { display: grid; gap: .5rem; margin-top: .5rem; }
.actions .deactivate summary { color: var(--danger); }
.timeline { color: var(--muted); font-size: .9rem; }
.timeline .tag { opacity: .7; }
.timeline ol { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding-bottom: 1rem; }
/* 10px markers centred on the 2px line: the line sits 1rem left of the item, so the centre is at -1rem - 1px. */
.timeline li::before { content: ""; position: absolute; left: calc(-1rem - 6px); top: .35rem; box-sizing: border-box; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.timeline li > span { display: block; }
.timeline time { display: block; font-size: .8rem; }
.timeline .tag { margin-left: .25rem; font-size: .7rem; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 1rem; }
.filters > div { flex: 1 1 9rem; }
.filters > .search { flex: 3 1 16rem; }
.filters label { margin-top: 0; }
.filters input, .filters select, .filters .button, .filters button { height: 2.6rem; margin: 0; padding-top: 0; padding-bottom: 0; }
.filters .button { line-height: calc(2.6rem - 2px); }
.filters .add { margin-left: auto; }
.timeline li.upcoming { font-style: italic; }
.timeline li.upcoming::before { background: var(--bg); border: 2px dashed var(--muted); }
button.small, .button.small { padding: .25rem .6rem .15rem; margin: 0; border-radius: var(--rough-small); font-size: .85rem; }
form.inline { display: inline; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .9rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; letter-spacing: .04em; border-bottom: 1px solid var(--edge); vertical-align: bottom; }
th:first-child, td:first-child { padding-left: 0; }
/* Lists of people and places are boards: one shaded strip per row. */
.board { border-collapse: separate; border-spacing: 0 5px; }
.board th { padding-bottom: 0; border: 0; }
.board tbody td { padding: .6rem; border: 0; background: var(--row); vertical-align: middle; }
.board tbody td:first-child { padding-left: .9rem; border-radius: 12px 0 0 5px / 5px 0 0 12px; }
.board tbody td:last-child { border-radius: 0 5px 13px 0 / 0 12px 4px 0; }
.board .person a, .menu li > a:first-child { font-size: 1.1rem; font-weight: 600; }
.accounts td.wrap { min-width: 16rem; }
.menu { display: grid; gap: 5px; margin: 1rem 0; padding: 0; list-style: none; }
.menu li { border-radius: var(--rough); background: var(--row); overflow: hidden; }
.menu li > a:first-child { display: flex; justify-content: space-between; padding: .65rem 1rem; text-decoration: none; }
.menu li > a:first-child::after { content: "›"; }
.menu li > a:first-child:hover { background-size: 200% .22em; }
.menu small { display: block; padding: 0 1rem .7rem; color: var(--muted); font-size: .85rem; }
/* On a phone each row becomes a block, one value per line. */
@media (max-width: 44rem) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tr, td { display: block; }
  tr { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  td { padding: .1rem 0; border: 0; }
  td:empty { display: none; }
  td .person, td.nowrap { white-space: normal; }
  .board tbody tr { margin-bottom: 5px; padding: .6rem .9rem; border: 0; border-radius: var(--rough); background: var(--row); }
  .board tbody td, .board tbody td:first-child { padding: .15rem 0; border-radius: 0; background: none; }
  .accounts td.wrap { min-width: 0; }
  /* Under the title: who's signed in on the left, Sign out and the theme switch on the right. */
  header.staff span.who { margin-right: auto; align-items: flex-start; text-align: left; }
  header.staff div.who { margin-left: auto; }
  /* An account uses the full width: who they are on the left, status and its actions on the right. */
  .accounts tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; }
  .accounts td { grid-column: 1; }
  .accounts td:last-child { grid-column: 2; grid-row: 1 / span 3; text-align: right; }
  .accounts .status { margin: 0 0 .25rem; white-space: nowrap; font-size: .8rem; }
  .accounts td.state form { display: block; }
  .accounts td.state button { margin-top: .25rem; }
  h1 { font-size: 1.4rem; }
}
.muted { color: var(--muted); }
.notice { padding: .75rem 1rem; border: 1px solid var(--edge); border-radius: var(--rough); background: var(--wash); margin: 1rem 0; }
.notice.warn { background: var(--warn-bg); color: var(--warn-fg); }
.notice.ok { background: var(--ok-bg); color: var(--ok-fg); }
.notice.warn, .notice.ok { border-color: color-mix(in srgb, currentColor 45%, transparent); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
details { margin-top: 1rem; }
[hidden] { display: none !important; }
fieldset { margin: 1rem 0 0; padding: .25rem 1rem 1rem; border: 1px solid var(--edge); border-radius: var(--rough); }
legend { padding: 0 .35rem; }
dl.details { margin: 0; display: grid; gap: .5rem; }
dl.details dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
dl.details dd { margin: 0; }
.tiles { list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.tiles > li { position: relative; }
/* A sign-up field shown as a tile is a form: quiet edge. */
.tiles .editable > .preview, .editable:has(details[open]) { border: 1px solid var(--edge); border-radius: var(--rough); background: var(--bg); }
.tiles strong { display: block; margin-bottom: .2rem; font-size: 1.15rem; }
.grid2 > .contact { grid-column: 1 / -1; margin: 0; }
.contact-error { color: var(--warn-fg); margin: .5rem 0 0; }
textarea.answer { font-family: inherit; font-size: inherit; min-height: 5rem; }
/* Each registration step is a tile on an offset ink block, a different part of the spectrum per tile. The step
   someone is on turns to flowing colour; one that's coming soon is dashed, with no block. An arrow leads from each
   step to the next: across, or down once the steps stack on a phone. */
.steps { display: flex; gap: 2.75rem; margin-bottom: 1.75rem; }
.steps > li { flex: 1 1 0; max-width: 18rem; isolation: isolate; }
.steps > li:not(:last-child) > div::after { content: ''; position: absolute; top: 50%; left: calc(100% + .55rem); width: 2rem; height: 1rem; translate: 0 -50%; background: var(--fg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cpath d='M1 8h35M29 2l7 6-7 6' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cpath d='M1 8h35M29 2l7 6-7 6' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 44rem) {
  .steps { flex-direction: column; }
  .steps > li { max-width: none; }
  .steps > li:not(:last-child) > div::after { top: calc(100% + .9rem); left: 50%; translate: -50% 0; rotate: 90deg; }
}
.steps > li::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: var(--rough); background: var(--fg); transform: translate(5px, 5px); }
.steps > li[aria-current]::before { background: var(--splash) 0 0 / 200% 100%; animation: flow 2s linear infinite; }
.steps > li:nth-child(3n + 2)::before { filter: hue-rotate(120deg); }
.steps > li:nth-child(3n)::before { filter: hue-rotate(240deg); }
.steps > li.soon::before { content: none; }
.steps > li > div { height: 100%; padding: 1rem; border: 2px solid var(--fg); border-radius: var(--rough); background: var(--bg); }
.steps > li.soon > div { border-style: dashed; opacity: .7; }
.steps span { display: block; }
.tiles .editable details { margin: 0; }
.edit-icon { position: absolute; top: .5rem; right: .5rem; width: 2rem; height: 2rem; line-height: 2rem; text-align: center; list-style: none; cursor: pointer; border-radius: var(--rough-small); color: var(--fg); background: var(--bg); }
.edit-icon::-webkit-details-marker, .adding summary::-webkit-details-marker { display: none; }
.edit-icon::before { content: "\270E"; }
.edit-icon:hover { background: var(--wash); }
.editable details[open] > .edit-icon::before { content: "\2715"; }
.editable:has(details[open]) { padding: 1rem; }
.editable:has(details[open]) > .preview { display: none; }
.form-tiles { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.tiles .editable > .preview { height: 100%; padding: .25rem 2.75rem 1rem 1rem; }
.tiles .editable.off > .preview { border-style: dashed; opacity: .7; }
.preview > .muted { display: block; margin-top: .25rem; font-size: .8rem; }
.editable form strong { display: block; }
.editable form { margin-top: .5rem; }
.editable fieldset { padding: .25rem .5rem .5rem; }
.editable fieldset label { font-weight: 400; margin-top: .25rem; }
.tiles .adding summary { display: block; list-style: none; cursor: pointer; padding: 1rem; font: 700 1rem var(--display); text-transform: uppercase; border: 2px dashed var(--edge); border-radius: var(--rough); height: 100%; }
.tiles .adding details[open] summary { padding: 0; border: 0; height: auto; }
.editable input, .editable select { font-weight: 400; }
.tiles:has(details[open]) { align-items: start; }

/* A dropdown or checkbox field sits in the grid like any other field: no box, its legend as the label. */
.choice-answer, .editable .choice-answer { min-width: 0; margin: .75rem 0 0; padding: 0; border: 0; }
.choice-answer legend, .contact legend { padding: 0; font: 600 1rem/1.5 var(--body); text-transform: none; }
.contact legend { padding: 0 .35rem; }
.choice-answer label { display: block; }
.choice-answer label:has(input[type="checkbox"]) { font-weight: 400; margin-top: .25rem; }
.choice-answer p { margin: .25rem 0; }
select { height: calc(2.5rem + 2px); }
.choice-answer input[type="checkbox"] { width: auto; }
[data-field-options] { grid-column: 1 / -1; }
[data-field-options] textarea { width: 100%; min-height: 6rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
