/* apply.css: the open-call apply and claim flow, walls.link/apply/<call> (CTO-4070).
   Drawn after the design package's renders (prototype v57, 390 and 1440 px): Inter Tight for
   text, Owners XBlack for the WALLS wordmark, a 480 px column with 16 px gutters on phones.
   Sizes: 22 titles, 20 code digits, 15 body and buttons, 16 typed text, 14 bids and the
   dropzone, 13 sublines and the footer, 12 hints and counters, 11 the "claimed" pill. */

@font-face {
  font-family: "InterTight";
  src: url("/walls-link-landing-deploy/assets/fonts/InterTight.ttf") format("truetype-variations"),
       url("/walls-link-landing-deploy/assets/fonts/InterTight.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
/* The italic in the copy (s01.hero.line2, CTO-4278): Inter Tight's own italic, never a slanted roman. */
@font-face {
  font-family: "InterTight";
  src: url("/assets/fonts/InterTight-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Owners";
  src: url("/assets/fonts/Owners_XBlack.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --ink: #000;
  --grey: #6B6B6B;
  --light: #9A9A9A;
  --placeholder: #767676;
  --mark: #404243;
  --line: #CFCFCF;
  --card: #E6E6E6;
  --divider: #EFEFEF;
  --box: #F4F4F4;
  --off-bg: #E2E2E2;
  --off-ink: #8A8A8A;
  --piccoli: #132A55;
  --error: #D62D20;
  --saved: #1E9E5A;
  --code: #5AA61E;

  /* The "get the app" pill's edges, its hairline and its shadow; the app buttons' QR card and its close
     badge share them (Robin, 30.10). */
  --edge-line: 0.5px solid rgba(0, 0, 0, 0.08);
  --edge-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.06);

  /* Motion (CTO-4119): every transition uses these, never a raw duration or curve. Entrances ease
     out and take longer; exits ease in and are quicker. --spring is the iOS app's most used spring,
     .spring(response: 0.3, dampingFraction: 0.8), sampled for CSS, and runs for --motion-spring. */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(.45, 0, .55, 1);
  --spring: linear(0, 0.0469, 0.1564, 0.2931, 0.434, 0.5651, 0.6793, 0.7737, 0.8484, 0.9051, 0.9465, 0.9753, 0.9943, 1.0059, 1.0122, 1.0148, 1.0151, 1.0139, 1.012, 1.0099, 1.0078, 1.0059, 1.0043, 1.003, 1);
  --motion-exit: 160ms;
  --motion-fast: 220ms;
  --motion-slow: 320ms;
  --motion-spring: 384ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.apply {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: "InterTight", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
/* The page's own resets carry no weight (:where), so every class below wins over them. */
:where(.apply) p { margin: 0; }
:where(.apply) a { color: inherit; }
:where(.apply) button { font: inherit; color: inherit; }
.apply-sr, .apply-sr:focus {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.apply :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.apply .apply-search input:focus-visible, .apply .apply-input:focus-visible, .apply .apply-digit:focus-visible { outline: none; }

/* WALLS in running text at the text's height (CTO-4278): Owners' caps at 0.70 em, so 0.79 em puts them on
   Inter Tight's x-height (0.553 em). The footer keeps its own 0.87 em. */
.apply-w { font-family: "Owners", "InterTight", sans-serif; font-weight: 900; font-size: 0.79em; }
/* Italic in the copy (<i>, CTO-4278) is Inter Tight Italic; Arabic draws it upright, and so the page's other
   italic lines too (Robin, 29 Oct: Arabic has no true italic; CTO-4208). */
.apply em { font-style: italic; }
.apply :lang(ar) em, .apply[lang="ar"] em, .apply-rule:lang(ar), .apply-row-recent:lang(ar) { font-style: normal; }

/* The masked contact, bar C (R34). */
.mask-bar {
  display: inline-block; width: 1.5em; height: 0.32em; border-radius: 0.16em;
  background: currentColor; vertical-align: 0.2em; margin: 0 0.14em;
}
.apply-masked { white-space: nowrap; }
.apply-strong { font-weight: 600; color: var(--ink); }

/* ── Header ── */
.apply-header {
  display: flex; align-items: center; justify-content: space-between;
  height: clamp(64px, 2.7vw + 53.5px, 88px);
  padding: 0 16px;
}
.apply-header-mark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: "Owners", sans-serif; font-weight: 900; font-size: clamp(18px, 0.4vw + 16.5px, 22px);
  letter-spacing: 0.01em; color: var(--mark); text-decoration: none;
}
.apply-pill {
  display: inline-flex; align-items: center; min-height: 34px;
  font-family: "Owners", sans-serif; font-weight: 900; font-size: 13px; color: var(--mark); text-decoration: none;
  padding: 0.55rem 1.05rem; border-radius: 4rem;
  background-color: rgba(255, 255, 255, 0.72);
  border: var(--edge-line);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  backdrop-filter: blur(9px) saturate(150%);
  box-shadow: var(--edge-shadow);
  transition: box-shadow var(--motion-fast) var(--ease-out), transform var(--motion-exit) var(--ease-out);
}
.apply-pill:hover { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 18px rgba(0, 0, 0, 0.09); }
.apply-pill:active { transform: scale(.97); }
.apply-pill::after { content: ""; position: absolute; }
@media (min-width: 900px) { .apply-pill { font-size: 14px; } }

/* ── Main column and footer ── */
.apply-main { flex: 1 0 auto; width: 100%; max-width: 512px; margin: 0 auto; padding: 0 16px 32px; }
.apply-noscript { text-align: center; color: var(--grey); padding: 40px 0; }

.apply-footer { padding: 24px 16px 32px; text-align: center; color: var(--grey); font-size: 13px; line-height: 1.5; }
/* The footer line's WALLS is drawn smaller than elsewhere, in the line's own grey (S01 and every step screen). */
.apply-footer-line .apply-w { font-size: 0.87em; }
.apply-footer-long { display: none; }
@media (min-width: 640px) {
  .apply-footer-short { display: none; }
  .apply-footer-long { display: inline; }
}
/* The partner row (S01): each mark in its logo's box from the design, all one height, top-aligned, so
   the three share a top and a baseline; "studios" hangs below WILHELM and moves nothing. Every size
   is a multiple of the row's height --mark-h. Freunde von Freunden's full wordmark (CTO-4200) is
   16.6 times as wide as it is tall, so on a narrow phone the whole row scales down together to fit
   the width (the marks' widths add up to 28.26 heights, plus two 20 px gaps and 28 px each side). The marks
   are artwork, drawn left to right on a right-to-left page too (CTO-4208). */
.apply-partners {
  direction: ltr;
  --mark-h: min(13.67px, calc((100vw - 96px) / 28.26));
  list-style: none; margin: 0 0 23.33px; padding: 0;
  display: flex; justify-content: center; align-items: flex-start; gap: 20px; color: var(--mark);
  transition: opacity var(--motion-fast) var(--ease-out);
}
.apply-partner { position: relative; line-height: 0; }
.apply-partner a { display: block; color: inherit; text-decoration: none; }
.apply-partner a::after { content: ""; position: absolute; inset: -8px -6px; }
.apply-mark, .apply-mark-studios { display: block; fill: currentColor; overflow: visible; }
.apply-mark { height: var(--mark-h); }
.apply-partner-wilhelm .apply-mark { width: calc(var(--mark-h) * 6.876); }
.apply-partner-fvf .apply-mark { width: calc(var(--mark-h) * 16.626); }
.apply-partner-passage .apply-mark { width: calc(var(--mark-h) * 4.766); }
.apply-mark-sans { font-family: "InterTight", sans-serif; font-weight: 800; }
.apply-mark-studios { position: absolute; left: 50%; top: calc(100% + var(--mark-h) * 0.2436); width: calc(var(--mark-h) * 1.341); height: calc(var(--mark-h) * 0.2195); transform: translateX(-50%); }
.apply-mark-studios text { font-family: "InterTight", sans-serif; font-weight: 500; }
@media (min-width: 640px) {
  .apply-partners { --mark-h: 17.25px; gap: 25px; margin-bottom: 24.25px; }
  .apply-mark-studios { top: calc(100% + 4px); width: 24px; height: 4.5px; }
}
/* Its colour is the links' too, for Legal's "(in English)" after the privacy link in another language (CTO-4208). */
.apply-footer-links { margin-top: -2px; color: rgba(0, 0, 0, 0.4); transition: opacity var(--motion-fast) var(--ease-out); }
.apply-footer-links a { color: rgba(0, 0, 0, 0.4); display: inline-block; padding: 6px 2px; text-underline-offset: 2.9px; }
.apply-footer-links span { display: inline-block; margin: 0 8.5px; color: rgba(0, 0, 0, 0.4); transform: scale(1.6); }
body[data-screen-kind="step"] [data-landing-only] { display: none; }
body[data-screen-kind="landing"] .apply-footer { padding-bottom: 26px; }
body.apply-typing [data-landing-only] { opacity: 0; pointer-events: none; }
@media (max-width: 639px) { body.apply-typing [data-landing-only] { display: none; } }
/* On a wide screen the English landing sets its links at the right, beside the footer line. Another language's line
   is longer (German's by a fifth) and would run under them, so there the links stay under the line, as on a phone
   (CTO-4208). */
@media (min-width: 1100px) {
  html[lang="en"] body[data-screen-kind="landing"] .apply-footer { position: relative; padding-bottom: 32px; }
  html[lang="en"] body[data-screen-kind="landing"] .apply-footer-links { position: absolute; right: 14px; bottom: 25.3px; margin: 0; }
}

/* ── The landing (S01) and the search (S02) ── */
.apply-landing { padding-top: 73px; }
.apply-hero { text-align: center; }
.apply-piccoli, .apply-lockup {
  font-family: "InterTight", sans-serif; font-weight: 800; color: var(--piccoli); line-height: 1;
}
.apply-piccoli { display: inline-block; font-size: 51px; letter-spacing: -0.045em; margin: 0 0 15.85px -0.046em; }
/* The backslash of P\CCOLI as the design draws it: a bar as thick as the stems, leaning 21°, exactly
   the capitals' height (the type's own backslash reaches above and below them). */
.apply-slash {
  display: inline-block; width: 0.17em; height: 0.7275em; margin: 0 0.0531em 0 0.0773em;
  background: currentColor; transform: skewX(21deg);
}
.apply-hero-lines { color: var(--grey); font-size: 15px; line-height: 1.55; }
.apply-hero-applied { color: var(--grey); margin-top: 8px; }
.apply-hero-begin { font-weight: 600; color: var(--ink); }
.apply-find { margin-top: 37px; }
.apply-tabs { display: flex; justify-content: center; gap: 56px; margin-bottom: 11px; position: relative; }
.apply-tab {
  background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  font-weight: 600; font-size: 15px; color: var(--grey);
  transition: color var(--motion-fast) var(--ease-out), transform var(--motion-exit) var(--ease-out);
}
.apply-tab:hover { color: var(--mark); }
.apply-tab:active { transform: scale(.97); }
.apply-tab[aria-selected="true"] { color: var(--ink); }
.apply .apply-tab:focus-visible { outline-offset: 4px; border-radius: 4px; }
/* One underline for both tabs, which slides to the picked one at its real width (a scaled box
   blurs when the page is zoomed). The script places it; it shows once placed. */
.apply-tab-ink {
  position: absolute; left: 0; bottom: 8px; height: 2px; width: 0; background: var(--ink); border-radius: 1px; pointer-events: none;
  transition: transform var(--motion-spring) var(--spring), width var(--motion-spring) var(--spring);
}
.apply-tab-ink.is-still { transition: none; }
.apply-search-wrap { position: relative; }
.apply-search {
  display: flex; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px;
  background: #fff; transition: box-shadow var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}
.apply-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--divider); }
.apply-search-icon { display: block; width: 20px; height: 20px; flex: none; margin-inline-end: 12px; }
.apply-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; padding: 0;
  font: inherit; font-size: 16px; color: var(--ink);
}
.apply-search input::placeholder { color: var(--placeholder); font-size: 15px; transition: color var(--motion-slow) var(--ease-in-out); }
/* A tab change fades the placeholder: the old line out, then the new one in, never both at once. */
.apply-search input.is-fading::placeholder { color: transparent; transition: color var(--motion-exit) var(--ease-in); }
.apply-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.apply-search-error { margin-top: 8px; }
/* S01's "log in" under the search (Victor, 22 Nov 2026): the steps' text link, only as wide as its word, so the
   rest of the row under the search is no button; the results open over it. */
.apply-find .apply-textlink { width: auto; margin: 8px auto 0; padding-inline: 12px; }
.apply-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5;
  background: #fff; border: 1px solid var(--card); border-radius: 12px; overflow: auto;
  max-height: min(70vh, calc(100vh - 200px)); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  display: flex; flex-direction: column;
}
.apply-search-error + .apply-results { top: auto; }
.apply-rows { list-style: none; margin: 0; padding: 0; }
.apply-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
  background: #fff; border: 0; padding: 14px 20px; cursor: pointer; min-height: 44px;
}
.apply-row { transition: background-color var(--motion-fast) var(--ease-out); }
.apply-row:hover { background: #FAFAFA; }
.apply-row-inert { cursor: default; }
.apply-row-inert:hover { background: #fff; }
.apply-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.apply-row-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.apply-row-name u { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.apply-row-sub { font-size: 13px; color: var(--grey); }
.apply-row-recent { font-size: 13px; color: var(--grey); font-style: italic; }
.apply-row-arrow { color: var(--light); font-size: 16px; flex: none; }
.apply-pill-claimed { flex: none; font-size: 11px; color: var(--grey); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.apply-row-last { position: sticky; bottom: 0; background: var(--box); border-top: 1px solid var(--card); padding: 16px 20px; font-size: 15px; }
.apply-row-last:hover { background: #EDEDED; }
.apply-row-last strong { font-weight: 600; }
@media (max-width: 639px) { .apply-row-last-1::after { content: ""; display: block; } .apply-row-last .apply-row-text { display: block; } }
.apply-row-last .apply-row-text { display: block; }
.apply-nomatch { padding: 18px 20px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.apply-nomatch .apply-btn { margin-top: 10px; }
/* Phones: once the search has focus or text, the two lines give way (the wordmark keeps its width), so
   the results have the room; with text they stay away after a tap on a row, so nothing shifts under it. */
@media (max-width: 639px) {
  body.apply-search-focus .apply-hero-lines, body.apply-search-focus .apply-hero-applied,
  body.apply-typing .apply-hero-lines, body.apply-typing .apply-hero-applied { display: none; }
  body.apply-search-focus .apply-landing, body.apply-typing .apply-landing { padding-top: 9.25px; }
  body.apply-search-focus .apply-piccoli, body.apply-typing .apply-piccoli { margin-bottom: 0; }
  body.apply-search-focus .apply-find, body.apply-typing .apply-find { margin-top: 16.06px; }
}
@media (min-width: 640px) { .apply-landing { padding-top: 0; } }
@media (min-width: 900px) { .apply-main { max-width: 512px; } }

/* ── Step screens (S03-S13) ── */
.apply-step { padding-top: 13px; }
/* From 640 px the card is centred between the header and the window's foot (walls-apply.js centreStep), never closer than 24 px. */
@media (min-width: 640px) { .apply-step { padding-top: 24px; } }
.apply-lockup { display: inline-block; font-size: 25.5px; letter-spacing: -0.045em; margin: 0 0 12.5px -0.041em; }
@media (min-width: 640px) { .apply-lockup { margin-bottom: 16.5px; } }
.apply-card { border: 1px solid var(--card); border-radius: 12px; padding: 20px; background: #fff; }
.apply-centred .apply-card { text-align: center; }
.apply-top { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; margin: -10px -10px 14px -12px; min-height: 44px; }
.apply-back {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--grey); font-size: 22px; line-height: 1;
}
.apply-back-space { width: 44px; }
.apply-bars { display: flex; gap: 6px; justify-content: center; }
.apply-bar { width: 18px; height: 3px; border-radius: 2px; background: var(--off-bg); }
.apply-bar.is-on { background: var(--ink); }
.apply-step-name { font-size: 15px; color: var(--grey); text-align: end; padding-inline-end: 10px; }

.apply-heading { margin: 0 0 6px; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; outline: none; text-wrap: balance; }
/* A second heading on the same card (S05's "already have a WALLS account?"), set off by a divider. */
.apply-heading-next { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--divider); }
.apply-heading-next + .apply-btn { margin-top: 16px; }
.apply-sub, .apply-hero-lines, .apply-note, .apply-greybox, .apply-notice, .apply-hint, .apply-consent, .apply-tl-text, .apply-footer { text-wrap: pretty; }
.apply-counter, .apply-days, .apply-digit, .apply-code, .apply-bids, .apply-size, .apply-hero-applied { font-variant-numeric: tabular-nums; }
.apply-sub { font-size: 13px; color: var(--grey); line-height: 1.5; }
.apply-sub strong, .apply-sub .apply-strong { color: var(--ink); font-weight: 600; }
.apply-eyebrow { font-size: 15px; color: var(--grey); margin-bottom: 2px; }
.apply-note { font-size: 13px; color: var(--grey); text-align: center; line-height: 1.5; margin-top: 4px; }
.apply-note a { color: inherit; }
.apply-error { color: var(--error); font-size: 13px; margin-top: 10px; }
.apply-notice { font-size: 13px; color: var(--ink); background: var(--box); border-radius: 12px; padding: 12px 14px; margin-top: 16px; }

/* S03 */
/* CTO-4199: a picked artist's exhibitions as the app's artist-profile cards: a square picture slot, the
   title on one line, solo or group under it, venue and year at the foot; every card the same height. */
.apply-shows-space { margin-top: 18px; min-height: 64px; }
.apply-show-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.apply-show-card { display: flex; gap: 14px; padding: 8px; height: 96px; border-radius: 12px; background: var(--box); text-align: start; }
.apply-show-thumb { flex: none; width: 80px; height: 80px; border-radius: 8px; background: var(--card); object-fit: cover; }
.apply-show-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; padding-top: 2px; }
.apply-show-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apply-show-kind, .apply-show-foot span { font-size: 13px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apply-show-foot { margin-top: auto; display: flex; flex-direction: column; }
@media (min-width: 640px) {
  .apply-show-card { height: 106px; }
  .apply-show-thumb { width: 90px; height: 90px; }
}
/* CTO-4198: the one waiting element, the small animated eye with its line, wherever the page waits. */
.apply-wait { display: flex; align-items: center; gap: 12px; padding: 14px 20px; min-height: 44px; font-size: 15px; color: var(--grey); }
.apply-wait-eye { flex: none; width: 40px; height: auto; aspect-ratio: 16 / 9; object-fit: contain; display: block; }
.apply-wait-centre { justify-content: center; padding: 20px 0; }
.apply-places .apply-wait { padding: 8px 12px; }
.apply-boot { display: flex; justify-content: center; padding: 96px 0; }
.apply-boot .apply-wait-eye { width: 64px; }
.apply-boot img.apply-wait-eye { display: none; }
@media (prefers-reduced-motion: reduce) {
  .apply-boot video.apply-wait-eye { display: none; }
  .apply-boot img.apply-wait-eye { display: block; }
}
.apply-more { font-size: 13px; color: var(--grey); margin-top: 12px; }

/* Buttons */
.apply-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 20px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ink); background: var(--ink); color: #fff !important;
  font-size: 15px; font-weight: 600; line-height: 1.25; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out), transform var(--motion-exit) var(--ease-out);
}
.apply-btn:hover { background: #262626; border-color: #262626; }
.apply-btn:active { transform: scale(.98); }
.apply-btn .apply-w { color: inherit; }
.apply-arrow { font-size: 16px; font-weight: 600; }
/* Right to left (Arabic, CTO-4208): the arrows point the way the page reads, and what the applicant
   types takes its own direction, as dir="auto" would. */
[dir="rtl"] .apply-arrow, [dir="rtl"] .apply-back span, [dir="rtl"] .apply-row-arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .apply-input { unicode-bidi: plaintext; }
.apply-btn[aria-disabled="true"], .apply-btn:disabled { background: var(--off-bg); border-color: var(--off-bg); color: var(--off-ink) !important; cursor: default; }
.apply-btn[aria-disabled="true"]:hover, .apply-btn:disabled:hover { background: var(--off-bg); border-color: var(--off-bg); }
.apply-btn[aria-disabled="true"]:active, .apply-btn:disabled:active { transform: none; }
.apply-btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.apply-btn-secondary { background: #fff; color: var(--ink) !important; border-color: var(--line); margin-top: 12px; }
.apply-btn-secondary:hover { background: #fff; border-color: var(--ink); }
.apply-btn-danger:hover { border-color: var(--error); }
.apply-sub + .apply-btn { margin-top: 24px; }
.apply-btn-secondary + .apply-btn-secondary { margin-top: 12px; }
.apply-btn-outline-black { border: 1.5px solid var(--ink); }
.apply-btn-black { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.apply-btn-small { width: auto; min-height: 40px; padding: 8px 16px; font-size: 14px; margin-top: 12px; }
.apply-btn-grow { height: auto; }
.apply-btn-grow .apply-btn-label { overflow-wrap: anywhere; }
.apply-btn-icon { width: 20px; height: 20px; flex: none; }
.apply-textlink {
  display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 0; background: none; border: 0;
  color: var(--grey); font-size: 15px; text-align: center; cursor: pointer;
}
.apply-textlink[aria-disabled="true"] { color: var(--off-ink); opacity: 0.6; cursor: default; }
.apply-underline { display: inline-block; width: auto; text-align: start; color: var(--ink); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; margin: 0; min-height: 0; }
.apply-inline-link { display: inline; width: auto; padding: 0; min-height: 0; margin: 0; font-size: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.apply-or { display: flex; align-items: center; gap: 14px; color: var(--light); font-size: 12px; margin: 16px 0 4px; }
.apply-or::before, .apply-or::after { content: ""; flex: 1; height: 1px; background: var(--divider); }
.apply-terms { font-size: 13px; color: var(--grey); text-align: center; margin-top: 6px; }
.apply-terms a { color: var(--grey); text-underline-offset: 3px; }

/* Fields */
.apply-fields { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.apply-field { display: flex; flex-direction: column; gap: 8px; }
.apply-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.apply-label-note { font-weight: 400; color: var(--grey); }
.apply-input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); outline: none; transition: box-shadow var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.apply-input::placeholder { color: var(--placeholder); font-size: 15px; opacity: 1; }
.apply-input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--divider); }
.apply-input:disabled { background: #FAFAFA; color: var(--off-ink); }
.apply-textarea { min-height: 112px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.apply-affix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: box-shadow var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out); }
.apply-affix:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--divider); }
.apply-affix .apply-input { border: 0; box-shadow: none; min-width: 0; }
.apply-affix .apply-input:focus { box-shadow: none; }
.apply-prefix { padding-inline-start: 14px; color: var(--grey); font-size: 15px; }
.apply-prefix + .apply-input { padding-inline-start: 6px; }
.apply-suffix { padding-inline-end: 14px; color: var(--grey); font-size: 15px; }
.apply-hint { font-size: 12px; color: var(--grey); line-height: 1.45; }
.apply-hint.is-error, .apply-field-error { color: var(--error); font-size: 12px; }
.apply-field.is-invalid .apply-input, .apply-affix.is-invalid { border-color: var(--error); }
.apply-counter { font-size: 12px; color: var(--grey); text-align: end; }
.apply-counter.is-full { color: var(--error); }   /* a one-line field at its 200 (CTO-4794) */
.apply-warn { color: var(--ink); }
.apply-centre { text-align: center; }

/* S04 proof and consent */
.apply-prove { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.apply-greybox { background: var(--box); border-radius: 12px; padding: 14px; font-size: 13px; line-height: 1.55; text-align: start; }
.apply-greybox strong { font-weight: 600; }
.apply-masked-line { font-size: 15px; font-weight: 600; margin-top: 6px !important; }
/* A blind claim's mismatch (CTO-4166): what is on file, then the ways on. */
.apply-mismatch { display: flex; flex-direction: column; gap: 8px; }
.apply-mismatch .apply-btn { margin-top: 4px; }
.apply-consent { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; margin-top: 20px; font-size: 13px; line-height: 1.5; }
.apply-consent label { cursor: pointer; padding-top: 1px; }
.apply-consent.is-invalid .apply-check { border-color: var(--error); }
.apply-consent-privacy { grid-column: 2; justify-self: start; color: var(--grey) !important; text-underline-offset: 3px; padding: 6px 0; }
.apply-check {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--light); border-radius: 4px;
  background: #fff; cursor: pointer; position: relative; flex: none;
  transition: background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out);
}
/* The tick's hit area is its own box and its whole label beside it (label for). */
.apply-check:checked { background: var(--ink); border-color: var(--ink); }
.apply-check:checked::after { content: ""; position: absolute; left: 5.5px; top: 1.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* S06 */
.apply-digits { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 22px; }
.apply-digit {
  width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 12px; text-align: center; padding: 0;
  font: inherit; font-size: 20px; font-weight: 600; color: var(--code); outline: none; background: #fff;
}
.apply-digit:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--divider); }
.apply-digits.is-wrong .apply-digit { border-color: var(--error); }
.apply-code-help { margin-top: 8px; }
.apply-code-help a { color: var(--ink); }

/* S13 */
.apply-codebox { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-top: 22px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; }
.apply-code { font-size: 20px; font-weight: 600; color: var(--code); letter-spacing: 0.02em; user-select: all; }
.apply-code-copy { font-weight: 600; font-size: 13px; padding: 12px 0 12px 12px; }
.apply-waiting { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--grey); margin-top: 14px; }
.apply-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--divider); border-top-color: var(--ink); border-radius: 50%; animation: apply-spin 0.9s linear infinite; }
@keyframes apply-spin { to { transform: rotate(360deg); } }
.apply-verified { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; font-size: 13px; }
.apply-tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); position: relative; margin-top: 1px; }
.apply-tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* S07 */
.apply-segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.apply-seg {
  min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 15px; color: var(--ink);
  transition: background-color var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out), transform var(--motion-exit) var(--ease-out);
}
.apply-seg:hover { border-color: var(--grey); }
.apply-seg:active:not(:disabled) { transform: scale(.98); }
.apply-seg[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.apply-seg:disabled { opacity: 0.5; cursor: default; }
.apply-segmented.is-invalid .apply-seg { border-color: var(--error); }
.apply-bids .apply-seg { font-size: 14px; }
.apply-bid-custom { margin-top: 12px; }

/* S08 */
.apply-part { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--divider); }
.apply-part-heading { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.apply-rule { font-size: 13px; color: var(--ink); font-style: italic; margin-top: 4px !important; }
.apply-part-heading-note { font-weight: 400; color: var(--grey); }
.apply-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 180px; margin-top: 16px;
  border: 1px dashed var(--line); border-radius: 12px; background: #FAFAFA; cursor: pointer; padding: 16px; overflow: hidden;
}
.apply-drop.is-over { border-color: var(--ink); background: var(--box); }
.apply-drop.is-invalid { border-color: var(--error); }
.apply-drop:disabled { cursor: default; opacity: 0.5; }
.apply-drop-title { font-size: 14px; font-weight: 600; }
.apply-drop-hint { font-size: 12px; color: var(--grey); max-width: 260px; }
.apply-progress { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 3px; background: var(--divider); border-radius: 2px; overflow: hidden; }
.apply-progress-bar { display: block; height: 100%; width: 0; background: var(--ink); transition: width var(--motion-exit) linear; }
.apply-preview { position: relative; margin-top: 16px; border-radius: 12px; overflow: hidden; background: var(--box); }
/* The key work as uploaded, never cropped (T, 27 Oct): its own shape, a tall one capped and centred. */
.apply-preview img { display: block; width: auto; max-width: 100%; height: auto; max-height: 480px; margin: 0 auto; }
.apply-preview.is-blank img { visibility: hidden; width: 100%; height: 180px; }
.apply-preview-busy { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.45); }
.apply-preview.is-uploading .apply-preview-busy { display: flex; }
.apply-preview .apply-progress { left: 12px; right: 12px; bottom: 12px; }
.apply-replace {
  position: absolute; right: 12px; bottom: 12px; min-height: 32px; padding: 4px 14px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, 0.92); font-size: 13px; font-weight: 600; cursor: pointer;
}
.apply-replace::before { content: ""; position: absolute; inset: -6px; }
/* While a sent application is edited (Victor, 22 Nov 2026): red, in a soft glow that swells and fades, so the artist
   sees at once where to swap a picture. Its place, size and tap area stay; under reduced motion the glow holds still,
   a red ring, as every animation on the page does (below). */
.apply-replace.is-editing {
  background: var(--error); color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 35%, transparent), 0 0 12px 2px color-mix(in srgb, var(--error) 45%, transparent);
  animation: apply-glow 1.6s var(--ease-in-out) infinite alternate;
}
@keyframes apply-glow { to { box-shadow: 0 0 0 4px color-mix(in srgb, var(--error) 25%, transparent), 0 0 18px 5px color-mix(in srgb, var(--error) 70%, transparent); } }
.apply-size { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.apply-places { list-style: none; margin: -2px 0 0; padding: 4px; border: 1px solid var(--card); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
.apply-place { display: block; width: 100%; min-height: 44px; text-align: start; padding: 8px 12px; border: 0; border-radius: 8px; background: none; font-size: 15px; cursor: pointer; }
.apply-place:hover, .apply-place:focus { background: var(--box); }
.apply-part2.is-locked { opacity: 0.3; pointer-events: none; }
.apply-tiles { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.apply-tile {
  display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 8px; border: 0; padding: 0;
  background: var(--box); overflow: hidden; cursor: pointer;
}
.apply-tile img { width: 100%; height: 100%; object-fit: cover; }
.apply-tile.is-open { box-shadow: 0 0 0 2px var(--ink); }
.apply-tile-add { background: #fff; border: 1px dashed var(--line); color: var(--grey); font-size: 22px; }
.apply-tiles + .apply-counter { margin-top: 6px; }
.apply-tile-detail { margin-top: 12px; padding: 14px; border: 1px solid var(--card); border-radius: 12px; display: flex; flex-direction: column; gap: 14px; }
.apply-tile-detail .apply-btn { align-self: flex-start; margin-top: 0; }
.apply-tile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.apply-tile-remove, .apply-tile-remove:hover { background: transparent; border-color: transparent; color: var(--grey) !important; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; padding-left: 8px; padding-right: 8px; }
.apply-part2 .apply-btn-outline-black { margin-top: 16px; }
.apply-part2 .apply-hint.apply-centre { margin-top: 8px; }
.apply-pdfs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.apply-pdf { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--card); border-radius: 12px; }
.apply-pdf-icon { flex: none; width: 40px; height: 48px; border-radius: 6px; background: var(--box); color: var(--grey); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.apply-pdf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.apply-pdf-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.apply-pdf-row { font-size: 13px; color: var(--grey); }
.apply-pdf-remove { flex: none; width: 44px; height: 44px; margin-block: -8px; margin-inline: 0 -8px; border: 0; background: none; color: var(--light); font-size: 20px; cursor: pointer; }
.apply-saved { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 12px 14px; background: var(--box); border-radius: 12px; font-size: 13px; }
.apply-saved-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--saved); margin-top: 6px; }
.apply-btn.is-locked { opacity: 0.3; }
/* CTO-4561 (Robin's v62): 1 to 3 auction works, a block each, a dashed line between two; the block's
   name on the left, the ceramic X that deletes it on the right. */
.apply-kw { margin-top: 16px; }
.apply-kw + .apply-kw { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--off-bg); }
.apply-kw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.apply-kw-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.apply-kw-x {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; margin-inline-end: -8px; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer; transition: background-color var(--motion-fast) var(--ease-out);
}
.apply-kw-x:hover { background: var(--box); }
.apply-kw-x img { display: block; width: 16px; height: 16px; }
.apply-kw .apply-drop, .apply-kw .apply-preview { margin-top: 8px; }
/* "add a second auction work · 2 of 3": a dashed button as tall as a field, the black ceramic + on its
   left as S04's glyphs sit, and "just one will be chosen." under it, both 34 px in. */
.apply-kw-add-row { margin-top: 18px; }
.apply-kw-add {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px;
  border: 1.5px dashed var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; text-align: start; cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease-out);
}
.apply-kw-add:hover { border-color: var(--ink); }
.apply-kw-add-count { flex: none; font-size: 13px; font-weight: 400; color: var(--grey); white-space: nowrap; }
/* The small box before a work is deleted: "delete this entry?", cancel and confirm. */
.apply-dialog-scrim {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  background: rgba(0, 0, 0, 0.35); animation: apply-enter var(--motion-fast) var(--ease-out); --rise: 0px;
}
.apply-dialog {
  width: min(300px, 100%); padding: 20px; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); text-align: center;
  animation: apply-enter var(--motion-fast) var(--ease-out); --rise: 4px;
}
.apply-dialog-q { margin-top: 4px; font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.apply-dialog-buttons { display: flex; gap: 8px; margin-top: 18px; }
.apply-dialog-buttons button { flex: 1; height: 44px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.apply-dialog-no { border: 1px solid var(--line); background: #fff; }
.apply-dialog-no:hover { border-color: var(--ink); }
.apply-dialog-yes { border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.apply-dialog-yes:hover { background: #262626; }

/* S09 */
/* CTO-4203: the eye 15% larger than the design's 94 px, and the space under it two thirds of the 24 px. */
.apply-eye-wrap { display: flex; justify-content: center; margin: 8px 0 16px; }
.apply-eye { width: 108px; height: auto; aspect-ratio: 720 / 406; object-fit: contain; display: block; }
.apply-task { margin-top: 20px; }
.apply-task p + p { margin-top: 2px; }
.apply-centred .apply-sub { text-align: center; }
.apply-centred .apply-heading { text-align: center; }

/* S10's withdraw and its confirm step */
.apply-withdraw .apply-textlink { margin-top: 0; }
.apply-btn-danger { color: var(--error) !important; border-color: var(--error); }

/* S10, S12: the work card, the timeline and the checklist */
.apply-workcard { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px; border: 1px solid var(--card); border-radius: 12px; }
.apply-workcard + .apply-workcard, .apply-works-chosen { margin-top: 8px; }
.apply-work-thumb { flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--box); display: block; }
.apply-work-title { font-size: 15px; font-weight: 600; }
.apply-work-line { font-size: 13px; color: var(--grey); }
/* S10 once the curators have told the artist (CTO-5169): the chosen work's card, its "selected work" label, the result. */
.apply-workcard.is-selected { border-color: var(--ink); }
.apply-work-selected { display: inline-block; margin: 0 0 4px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.6; }
.apply-tl-text.apply-tl-result { color: var(--ink); font-weight: 600; }
.apply-timeline { list-style: none; margin: 22px 0 0; padding: 0; }
.apply-tl { position: relative; display: grid; grid-template-columns: 20px 1fr; column-gap: 14px; padding-bottom: 20px; }
.apply-tl:last-child { padding-bottom: 0; }
.apply-tl::before { content: ""; position: absolute; inset-inline-start: 9px; top: 24px; bottom: 2px; width: 2px; background: var(--divider); }
.apply-tl:last-child::before { display: none; }
.apply-tl-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: #fff; position: relative; margin-top: 1px; }
.apply-tl.is-done .apply-tl-dot { background: var(--ink); border-color: var(--ink); }
.apply-tl.is-done .apply-tl-dot::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.apply-tl.is-current .apply-tl-dot { border-color: var(--ink); }
.apply-tl.is-current .apply-tl-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.apply-tl-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.apply-tl.is-todo .apply-tl-title { color: var(--light); font-weight: 500; }
.apply-tl-text { font-size: 13px; color: var(--grey); }
.apply-tl .apply-underline { padding: 6px 0; }
.apply-checklist .apply-tl { padding-bottom: 16px; }
.apply-days { font-size: 13px; color: var(--grey); text-align: center; margin-top: 14px; }

/* Arrivals (CTO-4119): a screen fades in and rises 6px; the results panel, 4px and quicker. Leaving is a cut, so one thing moves at a time. */
@keyframes apply-enter { from { opacity: 0; transform: translateY(var(--rise, 6px)); } }
.apply-entering { animation: apply-enter var(--motion-slow) var(--ease-out) both; }
.apply-results:not([hidden]) { animation: apply-enter var(--motion-fast) var(--ease-out); --rise: 4px; }

/* Reduced motion: no transitions, and the spinner holds still. */
@media (prefers-reduced-motion: reduce) {
  .apply *, .apply *::before, .apply *::after, .apply ::placeholder { transition: none !important; animation: none !important; }
}

/* CTO-4201: the verification fields sit together under one header; each field's glyph on its left,
   26 px on a 44 px field, at its own colours. */
.apply-field-group { display: flex; flex-direction: column; gap: 8px; }
.apply-field-group > .apply-label { margin-bottom: 0; }
.apply-glyph { display: block; width: 26px; height: 26px; }
.apply-field.is-invalid .apply-affix { border-color: var(--error); }
/* CTO-4276: the glyph sits outside its box, 26 px, centred on the box, its left edge on the header
   text (the PNGs carry ~2.7 px of empty margin, so the image moves 2.5 px left); the box, its hint and
   its error start 34 px in and keep the card's right edge. */
.apply-glyph-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; }
.apply-glyph-row > .apply-glyph { margin: 11px 0 0; margin-inline-start: -2.5px; }
.apply-glyph-box { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* ── The app buttons' QR card on a desktop (CMO, 2026-10-30) ──
   walls-apply.js opens it under the "get the app" pill or the "follow your application" button: the
   call's tracked QR code (a download from WALLS's qr-code-generator.com account), to scan with a phone,
   and "P\ x WALLS" under it. */
/* The geometry is the code's. The QR files are the account's downloads, which draw the 25-module code
   over the middle 80% of the image: the code is 0.8 --qr wide and a module 0.032 --qr. --gap is two
   modules (twice the ring of the corner squares). Robin, 30.10: the caption sits --gap under the code,
   and the card's padding around the two is the same --gap, measured from the code itself, so the
   image's own white margin (0.1 --qr) is pulled out past the padding and clipped. --h is the caption's
   capitals' height (see the caption). */
.apply-qr-card {
  --qr: 176px;
  --gap: calc(var(--qr) * 0.064);
  --h: calc(var(--qr) * 0.8 / 8.2234);
  position: fixed; z-index: 1000; box-sizing: content-box; width: calc(var(--qr) * 0.8);
  padding: var(--gap); background: #fff; border-radius: 1rem;
  /* the pill's edges (Robin, 30.10). The content box is the code's width, so the white between the
     hairline and the code is --gap at whatever width a browser draws the hairline (Chrome: 1 px). */
  border: var(--edge-line); box-shadow: var(--edge-shadow);
}
/* The image's margin is white like the card; the clip keeps 0.01 --qr of it around the code, inside the
   card's rounded corners. */
.apply-qr-img {
  display: block; width: var(--qr); height: var(--qr);
  margin: calc(var(--qr) * -0.1) calc(var(--qr) * -0.1) 0;
  clip-path: inset(9%);
}
/* "P\ x WALLS" (Robin, 30.10): exactly as wide as the code, --gap under it; the x is a plain flat one,
   black like WALLS. --h is chosen so the P\ (1.3266 --h wide), the x (0.6 --h square), WALLS
   (5.6968 --h wide; its image is 1.0476 --h tall because the S overshoots the capitals) and two gaps
   of 0.3 --h fill the code's width: 0.8 --qr / 8.2234. The space-between keeps the ends on the code's
   edges. */
.apply-qr-caption {
  display: flex; align-items: center; justify-content: space-between;
  width: calc(var(--qr) * 0.8); height: var(--h);
  margin: calc(var(--gap) - var(--qr) * 0.1) auto 0;
}
.apply-qr-caption img { display: block; flex: none; }
.apply-qr-p { width: calc(var(--h) * 1.3266); height: var(--h); }
.apply-qr-x { width: calc(var(--h) * 0.6); height: calc(var(--h) * 0.6); }
.apply-qr-walls { width: calc(var(--h) * 5.6968); height: calc(var(--h) * 1.0476); }
/* The close button: the WALLS 3D close glyph (black matte, 2026-10-17), 0.6 --h tall like the
   caption's x, on a white badge with the pill's edges over the card's corner, since the two-module
   padding leaves no room for it inside without touching the code. */
.apply-qr-close {
  position: absolute; z-index: 1; top: -13px; left: -13px; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: var(--edge-line); padding: 0; border-radius: 50%; background: #fff; cursor: pointer;
  box-shadow: var(--edge-shadow);
}
.apply-qr-close img { display: block; width: calc(var(--h) * 0.592); height: calc(var(--h) * 0.6); transition: opacity var(--motion-fast) var(--ease-out); }
.apply-qr-close:hover img { opacity: 0.7; }

/* ── The FAQ behind the header's "?" (CTO-4534, Robin's prototype v62, its v60 to v60.4 blocks) ──
   A round "?" left of "get the app", as tall as the pill and in its glass, the ceramic "?" at 1.25 em of the
   pill's font size. It opens the questions just under the header on a desktop, and as a sheet from the
   bottom on a phone, over a scrim. Group labels in Owners XBlack (the full font: de, es, it, pl, pt-BR,
   tr); Ukrainian in the phone's own font at its heaviest, as the apps draw Cyrillic; Arabic in Noto Kufi
   Arabic Black, the Android app's Owners fallback (CTO-1172). Arabic mirrors the arrows and the indent. */
@font-face {
  font-family: "NotoKufiArabic";
  src: url("/assets/fonts/NotoKufiArabic-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
.apply-header-end { display: flex; align-items: center; gap: 10px; }
/* The pill's height: its line (1.45 em) and its 0.55 rem paddings inside, its hairlines outside, as the pill's. */
.apply-faq-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  box-sizing: content-box; width: calc(1.45em + 1.1rem); height: calc(1.45em + 1.1rem); padding: 0; margin: 0;
  font-size: 13px; line-height: 1.45; border-radius: 50%; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-color: rgba(255, 255, 255, 0.72);
  border: var(--edge-line);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  backdrop-filter: blur(9px) saturate(150%);
  box-shadow: var(--edge-shadow);
  transition: box-shadow var(--motion-fast) var(--ease-out), transform var(--motion-exit) var(--ease-out);
}
.apply-faq-btn::before { content: ""; position: absolute; inset: -6px; }
.apply-faq-btn:hover { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 18px rgba(0, 0, 0, 0.09); }
.apply-faq-btn:active { transform: scale(.97); }
.apply-faq-btn[aria-expanded="true"] { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 3px rgba(0, 0, 0, 0.12); }
.apply-faq-btn img { display: block; width: 1.25em; height: 1.25em; pointer-events: none; -webkit-user-drag: none; }
@media (min-width: 900px) { .apply-faq-btn { font-size: 14px; } }

.apply-faq {
  position: fixed; z-index: 52; top: calc(clamp(64px, 2.7vw + 53.5px, 88px) - 2px); inset-inline-end: 16px;
  width: min(400px, calc(100% - 32px)); max-height: calc(100vh - clamp(64px, 2.7vw + 53.5px, 88px) - 24px);
  overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 16px;
  border: 1px solid var(--card); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: start; opacity: 0; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.apply-faq.on { opacity: 1; transform: none; }
.apply-faq:focus { outline: 0; }
.apply-faq-scrim { display: none; }
.apply-faq-top { float: right; margin: -9px -9px 0 12px; }
[dir="rtl"] .apply-faq-top { float: left; margin: -9px 12px 0 -9px; }
.apply-faq-x {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer; transition: background-color .15s;
}
.apply-faq-x:hover { background: var(--box); }
.apply-faq-x img { display: block; width: 20px; height: 20px; pointer-events: none; }
.apply-faq-g { margin: 22px 0 4px; font-family: "Owners", "InterTight", system-ui, sans-serif; font-size: 17px; line-height: 1.2; font-weight: 900; color: #000; }
.apply-faq-top + .apply-faq-g { margin-top: 0; }
:lang(uk) .apply-faq-g { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
:lang(ar) .apply-faq-g { font-family: "NotoKufiArabic", system-ui, sans-serif; }
.apply-faq-i + .apply-faq-i { border-top: 1px solid var(--divider); }
.apply-faq-q {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 48px; margin: 0;
  padding: 12px 0; border: 0; background: none; font: inherit; font-size: 15px; line-height: 1.35; font-weight: 600;
  color: #000; text-align: start; cursor: pointer;
}
.apply-faq-q:hover span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.apply-faq-c { order: -1; flex: none; display: block; width: 15px; height: 15px; transform: rotate(180deg); transition: transform .28s ease; pointer-events: none; }
.apply-faq-q[aria-expanded="true"] .apply-faq-c { transform: rotate(270deg); }
[dir="rtl"] .apply-faq-c { transform: rotate(0deg); }
[dir="rtl"] .apply-faq-q[aria-expanded="true"] .apply-faq-c { transform: rotate(-90deg); }
.apply-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.apply-faq-a > div { min-height: 0; overflow: hidden; }
.apply-faq-q[aria-expanded="true"] + .apply-faq-a { grid-template-rows: 1fr; }
.apply-faq-a p { margin: 0; padding: 0 0 14px; padding-inline-start: 27px; font-size: 14px; line-height: 1.5; color: #404243; }
@media (max-width: 639px) {
  .apply-faq {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 82vh; max-height: 82svh; border: 0;
    border-radius: 16px 16px 0 0;
    padding: 10px max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12); transform: translateY(100%);
    transition: opacity .2s ease, transform .28s ease;
  }
  .apply-faq::before { content: ""; display: block; width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: #DADADA; }
  .apply-faq-scrim { display: block; position: fixed; inset: 0; z-index: 51; background: rgba(0, 0, 0, 0.35); opacity: 0; transition: opacity .2s ease; }
  .apply-faq-scrim.on { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .apply-faq, .apply-faq-scrim, .apply-faq-c, .apply-faq-a { transition: none; } }

/* The artists' sale terms (CTO-5137, site/templates/sale-terms.php): the apply page's card, the terms in its grey box. */
.sale-terms-card .apply-sub { margin-top: 10px; }
.sale-terms-text { margin-top: 18px; }
.sale-terms-text p { margin: 0 0 10px; }
/* The blocks as termsNodes() draws them (walls-terms.js): headings, clauses, and those a step in by depth. */
.sale-terms-text .t-h { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.sale-terms-text .d1 { padding-inline-start: 18px; }
.sale-terms-text .d2 { padding-inline-start: 36px; }
.sale-terms-text .d3 { padding-inline-start: 54px; }
.sale-terms-text .t-li::before { content: "\2022\00a0"; }
.sale-terms-version { font-size: 12px; color: var(--grey); margin-top: 8px; }
.sale-terms-card .apply-btn { margin-top: 20px; }
.sale-terms-who { font-size: 12px; color: var(--grey); margin-top: 20px; }
@media (min-width: 768px) { .sale-terms-text { font-size: 14px; } }
