/* The page edited on the page itself (editor/page-editor.js, B5b). Mobile first: designed at 360 pixels, every control
   at least 44 by 44 pixels (WCAG 2.2 2.5.8, and the 44 of docs/mobile.md), nothing that works only on hover or by
   dragging (2.5.7), text at 16 pixels so a phone does not zoom in. The app's policy allows no inline style. */
.page-editor, .sheet, .approvals, .page-list, .more { font-size: 16px; }
.page-editor button, .sheet button, .approvals button, .more button, .page-list button,
main > .row button { min-height: 44px; min-width: 44px; padding: 10px 14px; font-size: 16px; }
.page-editor { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 16px; }

/* A text that changes by a tap: a dashed outline, the pencil as a word on a phone's screen reader, the focus clear. */
.editable { display: block; min-height: 44px; padding: 8px 10px; margin: 4px 0; border: 1px dashed var(--muted); border-radius: var(--radius); cursor: text; }
/* The dashed line in --muted: at least 3:1 against the panel (WCAG 1.4.11); --line was about 1.3:1 (the review of B5b). */
.editable:hover, .editable:focus-visible { border-color: var(--accent); }
.editable:focus-visible, .editable.is-editing { outline: 3px solid var(--accent); outline-offset: 2px; }
.editable.is-editing { border-style: solid; background: var(--panel); }
.editable .placeholder { color: var(--muted); font-style: italic; }
.editable a { color: var(--accent); text-decoration: underline; }
.editable ul, .editable ol { padding-left: 24px; margin: 0; }
/* A heading keeps its heading and holds the button (WCAG 1.3.1); the text shows as a heading while Kop is on. */
.editable-heading { margin: 4px 0; }
.editable.as-heading { font-size: 20px; font-weight: 700; }
h1.editable-heading { font-size: 24px; }
blockquote.editable { font-size: 18px; font-style: italic; margin: 4px 0; }
/* The small line above a heading of "Voor en na", as the site shows it. */
.editable.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.editable.by { color: var(--muted); }
.editable.fake-button { display: inline-flex; align-items: center; background: var(--accent); color: var(--accent-text); border-style: solid; border-color: var(--accent); }

/* The bar under an open text: the four formats, Klaar and Annuleer; it stays in reach above the phone's keyboard. */
.edit-bar { position: sticky; bottom: 8px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; margin: 4px 0 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 10px rgb(0 0 0 / .12); }

/* A block with its bar: its name, then Omhoog, Omlaag, Andere vorm, Weghalen. */
.edit-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 14px; }
.edit-block.is-body { border-color: var(--accent); }
.block-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.block-name { flex: 1 0 100%; font-weight: 600; color: var(--muted); font-size: 14px; }
.edit-block h2.editable-heading { font-size: 20px; margin-top: 8px; }
.edit-block .cards { display: grid; gap: 8px; }
.edit-block .cards.is-kaarten { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card-item, .faq-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.card-item .editable, .faq-item .editable { align-self: stretch; }
.edit-block > button { margin-top: 8px; }
.button-edit { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 8px; }
.photo { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.photo img { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius); background: var(--line); }
/* The page's videos (Vimeo): the still, the title, the arrows. */
.video-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.video-item img { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.video-item p { margin: 0; }
.edit-block.is-gesplitst .photo img { max-height: 200px; }
/* beeld_links: the photo beside the text, on its left, as the site shows it on a wide screen. */
@media (min-width: 700px) {
  .edit-block.is-hero.is-beeld_links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 12px; align-items: start; }
  .edit-block.is-hero.is-beeld_links > :first-child { grid-column: 1 / -1; }
  .edit-block.is-hero.is-beeld_links > .photo { grid-column: 1; grid-row: 2 / span 4; }
  .edit-block.is-hero.is-beeld_links > :not(:first-child):not(.photo) { grid-column: 2; }
}
.edit-block.is-beeld_links .photo img { max-height: 220px; }
/* asymmetrisch: a large photo, the heading on a panel over its lower edge. */
.edit-block.is-asymmetrisch .photo img { max-height: 300px; aspect-ratio: 5 / 4; }
.edit-block.is-asymmetrisch > .photo + * { position: relative; max-width: 80%; margin-top: -40px; padding: 8px 10px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 6px 18px rgb(0 0 0 / 0.18); }
.kept { border: 1px dashed var(--line); border-radius: var(--radius); padding: 8px 10px; margin: 4px 0; }
.kept p { margin: 0 0 4px; }
.kept .link { text-decoration: underline; }

/* "+ Voeg hier toe" between every two blocks: wide and quiet, so it never looks like content. */
.add-here { width: 100%; border: 1px dashed var(--accent); background: none; color: var(--accent); border-radius: var(--radius); font: inherit; cursor: pointer; }

/* The sheet: a modal dialog from the bottom on a phone, in the middle on a laptop. */
.sheet { width: min(36rem, 100vw - 16px); max-height: 90vh; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); }
.sheet::backdrop { background: rgb(0 0 0 / .45); }
.sheet h2 { margin-top: 0; }
.sheet fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.sheet legend { font-weight: 600; margin-bottom: 4px; }
.sheet label.inline { min-height: 44px; }
.sheet input[type="radio"], .sheet input[type="checkbox"] { min-width: 24px; min-height: 24px; }
.sheet input[type="text"], .sheet input[type="tel"], .sheet input[type="email"], .sheet input[type="url"], .sheet select { width: 100%; min-height: 44px; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.sheet .row { margin-top: 12px; }
.add-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.add-choice { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 10px 6px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; cursor: pointer; }
.add-choice:focus-visible, .thumb-choice:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* The icon picker (B5): phone first, a grid of 44 pixel buttons with the icon and its Dutch label. The icons are drawn in
   currentColor, which an image does not inherit, so they sit on a light tile in both themes. */
.icon-image { display: block; width: 24px; height: 24px; padding: 4px; box-sizing: content-box; background: #fff; border-radius: 4px; }
.icon-choice { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; margin-top: 8px; }
.icon-option { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; min-height: 72px; padding: 6px 4px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 14px; cursor: pointer; }
.icon-option[aria-pressed="true"] { border: 3px solid var(--accent); }
.icon-option:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.icon-none { display: block; width: 24px; height: 24px; padding: 4px; box-sizing: content-box; border: 2px dashed var(--muted); border-radius: 4px; }
.thumbs.choose { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.thumb-choice { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: none; cursor: pointer; }
.thumb-choice img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The small pictures of the add sheet, drawn with borders and blocks only (no image files, no inline style). */
.picture { display: block; width: 72px; height: 48px; border: 2px solid var(--muted); border-radius: 4px; position: relative; background: var(--panel); }
.picture::before, .picture::after { content: ""; position: absolute; background: var(--muted); border-radius: 2px; }
.pic-hero { background: linear-gradient(var(--line), var(--line)); }
.pic-hero::before { left: 10px; right: 10px; top: 14px; height: 6px; background: var(--text); }
.pic-hero::after { left: 18px; right: 18px; top: 26px; height: 4px; }
.pic-split::before { left: 4px; top: 4px; bottom: 4px; width: 28px; background: var(--line); border: 1px solid var(--muted); }
.pic-split::after { right: 6px; top: 14px; width: 26px; height: 5px; box-shadow: 0 9px 0 var(--muted); }
.pic-text::before { left: 8px; right: 8px; top: 10px; height: 4px; box-shadow: 0 9px 0 var(--muted), 0 18px 0 var(--muted); }
.pic-cards::before { left: 6px; top: 10px; width: 16px; height: 26px; box-shadow: 21px 0 0 var(--muted), 42px 0 0 var(--muted); }
.pic-list::before { left: 8px; top: 9px; width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 11px 0 var(--muted), 0 22px 0 var(--muted); }
.pic-list::after { left: 20px; right: 8px; top: 10px; height: 4px; box-shadow: 0 11px 0 var(--muted), 0 22px 0 var(--muted); }
.pic-photos::before { left: 6px; top: 8px; width: 18px; height: 14px; background: var(--line); border: 1px solid var(--muted); box-shadow: 21px 0 0 var(--muted), 0 17px 0 var(--muted), 21px 17px 0 var(--muted); }
/* Voor en na: two halves with the slider's line and handle. */
.pic-compare { background: linear-gradient(90deg, var(--line) 50%, var(--panel) 50%); }
.pic-compare::before { left: 33px; top: 2px; bottom: 2px; width: 2px; background: var(--text); }
.pic-compare::after { left: 28px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); }
.compare-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0.75rem; }
.compare-pick-label { margin: 0 0 0.25rem; font-weight: 700; }
.block-warning { margin: 0.5rem 0; padding: 0.5rem 0.75rem; border-left: 4px solid var(--warn); font-weight: 600; }
.pic-quote::before { left: 10px; top: 6px; width: 10px; height: 14px; border-radius: 50% 50% 0 50%; box-shadow: 14px 0 0 var(--muted); }
.pic-quote::after { left: 10px; right: 10px; top: 28px; height: 4px; box-shadow: 0 8px 0 var(--muted); }
.pic-faq::before { left: 8px; right: 8px; top: 8px; height: 6px; background: var(--text); box-shadow: 0 16px 0 var(--text); }
.pic-faq::after { left: 14px; right: 14px; top: 17px; height: 3px; box-shadow: 0 16px 0 var(--muted); }
.pic-steps::before { left: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 13px 0 var(--text), 0 26px 0 var(--text); }
.pic-steps::after { left: 22px; right: 8px; top: 11px; height: 3px; background: var(--muted); box-shadow: 0 13px 0 var(--muted), 0 26px 0 var(--muted); }
.step-items { display: grid; gap: 8px; margin: 0; padding-left: 1.5rem; }
.pic-band::before { left: 0; right: 0; top: 10px; height: 22px; background: var(--muted); }
.pic-band::after { left: 8px; top: 24px; width: 22px; height: 4px; background: var(--paper, #fff); }
.pic-stats::before { left: 8px; top: 9px; width: 14px; height: 12px; background: var(--text); box-shadow: 20px 0 0 var(--text); }
.pic-stats::after { left: 8px; top: 26px; width: 14px; height: 3px; background: var(--muted); box-shadow: 20px 0 0 var(--muted); }
.stat-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 8px; }
.stat-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.stat-fields { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.stat-fields .stat-affix { width: 4.5em; }
.stat-fields .stat-number { width: 7em; font-size: 1.4em; font-weight: 700; }
.stat-fields [role='alert'] { flex-basis: 100%; }
.pic-prices::before { left: 8px; width: 22px; top: 9px; height: 4px; background: var(--text); box-shadow: 0 10px 0 var(--text), 0 20px 0 var(--text); }
.pic-prices::after { right: 8px; width: 10px; top: 9px; height: 4px; box-shadow: 0 10px 0 var(--muted), 0 20px 0 var(--muted); }
.pic-team::before { left: 9px; top: 8px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 16px 0 0 var(--muted), 32px 0 0 var(--muted); }
.pic-team::after { left: 8px; top: 26px; width: 14px; height: 4px; box-shadow: 16px 0 0 var(--muted), 32px 0 0 var(--muted); }
.pic-button::before { left: 16px; right: 16px; top: 16px; height: 14px; background: var(--accent); border-radius: 7px; }
.pic-form::before { left: 10px; right: 10px; top: 7px; height: 7px; border: 1px solid var(--muted); background: none; box-shadow: 0 11px 0 -1px var(--line); }
.pic-form::after { left: 26px; right: 26px; top: 30px; height: 7px; background: var(--accent); border-radius: 4px; }
/* The request form's fields (B6): one row per field of the fixed list, wrapping on a phone. */
.form-fields { display: grid; gap: 10px; }
.form-field { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.form-field input[type="text"], .form-field textarea { flex: 1 1 14rem; min-width: 0; }
.form-field > label:not(.inline) { flex: 1 1 100%; }
.form-field label.inline, .form-field input[type="text"], .page-editor label > select { min-height: 44px; }
.form-field input[type="checkbox"] { min-width: 24px; min-height: 24px; }
.pic-video { background: var(--line); }
.pic-video::before { left: 28px; top: 12px; width: 0; height: 0; border-radius: 0; background: none; border-left: 16px solid var(--text); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.pic-bits::before { left: 8px; top: 8px; width: 24px; height: 30px; box-shadow: 30px 0 0 var(--muted); }

/* The page list: big rows to tap. */
.page-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.page-choice { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 14px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; cursor: pointer; }
.page-choice-title { font-weight: 600; }
.more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.more label.inline { min-height: 44px; }
.more input[type="checkbox"] { min-width: 24px; min-height: 24px; }

/* Buddy's posts as cards: Ja and Nee big, the chosen one filled. */
.approvals > h2 { margin-top: 0; }
.approval .question { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.approval .question p { margin: 0 0 6px; }
.yes-no button { flex: 1 1 8rem; }
.yes-no button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.approval .post-text { max-height: 50vh; overflow-y: auto; }
.approval summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--accent); }

/* Fill-in fields between brackets: a notice above the page that names them, and each marked where it stands. */
.fill-in-notice { border: 2px solid var(--warn); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 16px; background: var(--panel); }
.fill-in-notice p { margin: 0 0 6px; }
.fill-in-notice strong { color: var(--warn); }
.fill-in-notice ul { margin: 0; padding-left: 1.2em; }
::highlight(fill-in) { background-color: #ffe08a; color: #3a2a00; }

@media (min-width: 700px) {
  .block-name { flex: 1 1 auto; }
  .add-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* A photo coming in (editor/page-editor.js photo()): the place, with a line while it is being processed, then the
   photo fading in. */
.photo-box { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.photo-box img { display: block; transition: opacity .4s ease; }
.photo-box.is-waiting { min-height: 140px; }
.photo-box.is-waiting img { opacity: 0; }
.photo-wait { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; font-size: 14px; text-align: center; }
.photo-box:not(.is-waiting) .photo-wait { display: none; }
@media (prefers-reduced-motion: reduce) { .photo-box img { transition: none; } }
