/*
 * Request form [vda-form] (core/shortcode/VdaFormShortcode.php, assets/ts/form.ts).
 *
 * The colours are the design tokens of the vda-theme; the defaults below (zero specificity)
 * only apply without the theme. The dark design comes from [data-theme="dark"] of the theme.
 */
:where(:root) {
    --bg: #f4f6f2;
    --surface: #ffffff;
    --text: #1d1d1d;
    --muted: #545b52;
    --border: #dde3d8;
    --input: #c5cebf;
    --placeholder: #6b7367;
    --accent-text: #346836;
    --primary: #346836;
    --primary-hover: #28512a;
    --on-primary: #ffffff;
    --on-primary-soft: #e1f3d5;
    --tint: #f2faed;
    --tint-strong: #e1f3d5;
    --danger: #b3261e;
    --warn: #7a4f00;
    --warn-soft: #fff4d6;
    --focus-ring: rgba(93, 197, 29, 0.35);
    --radius: 18px;
    --shadow-lg: 0 12px 40px rgba(29, 40, 25, 0.12);
    --overlay: rgba(18, 24, 16, 0.62);
}

.fcard { position: relative; display: grid; gap: 16px; align-content: start; min-width: 0; padding: 18px 16px 22px; border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); scroll-margin-top: 84px; }
.fcard .i { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fcard .lg { display: block; width: 100%; height: 100%; fill: currentColor; stroke: none; }
.fcard button { font-family: inherit; }
.fcard-head { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.fcard-title { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.25; color: var(--accent-text); }
.fcard-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--muted); }
.fcard-note .i { width: 18px; height: 18px; margin-top: 1px; color: var(--accent-text); stroke-width: 3; }
.fcard.is-done .fcard-head { display: none; }
.fcard p, .fcard h3, .fcard ol, .fcard ul { margin: 0; }

/* progress: car · details · your offer */
.m-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.m-steps li { position: relative; display: grid; justify-items: center; gap: 4px; font-size: 15px; font-weight: 800; color: var(--muted); text-align: center; }
.m-steps li + li::before { content: ''; position: absolute; top: 14px; right: 50%; width: 100%; height: 3px; background: var(--border); }
.m-steps li.is-done::before, .m-steps li.is-current::before { background: var(--primary); }
.m-steps li.is-done, .m-steps li.is-current { color: var(--text); }
.m-dot { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 2px solid var(--input); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 15px; font-weight: 800; }
.m-steps .is-done .m-dot, .m-steps .is-current .m-dot { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.m-dot .i { width: 16px; height: 16px; stroke-width: 3.2; }

/* the car chosen so far */
.m-vehicle { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--tint); font-size: 16px; line-height: 1.35; }
.m-vehicle strong { display: block; font-size: 17px; }
.m-vehicle-text span { color: var(--muted); }
.m-vehicle-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--tint-strong); color: var(--accent-text); }
.m-vehicle-icon .i { width: 25px; height: 25px; stroke-width: 1.8; }
.m-vehicle-logo { width: 58px; height: 44px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
.m-vehicle .brand-mono { width: 42px; height: 42px; }

/* one question; the tiles of the years count their columns by its width (m-step container) */
.m-step { position: relative; display: grid; gap: 14px; min-width: 0; container: m-step / inline-size; }
.m-enter { animation: m-enter 0.24s ease-out; }
@keyframes m-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* back to the step before: a button at the top left of the step, the same from the server (VdaFormShortcode.php) and from backButton() in form.ts */
.m-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 18px 6px 10px; border: 2px solid var(--accent-text); border-radius: 999px; background: var(--surface); color: var(--accent-text); font-size: 17px; font-weight: 800; line-height: 1.2; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.m-back .i { width: 20px; height: 20px; stroke-width: 2.8; }
.m-back:active { background: var(--tint); }
/* only where a pointer hovers: the button of the next step takes the place of the one tapped, which would look pressed */
@media (hover: hover) {
    .m-back:hover { background: var(--tint); }
}
.m-q { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; }
.m-q:focus { outline: none; }
.m-hint, .m-auto, .m-suggest { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.m-hint .i, .m-auto .i, .m-suggest .i, .m-error .i { width: 20px; height: 20px; margin-top: 1px; }
.m-hint { color: var(--muted); }
.m-hint .i { color: var(--accent-text); }
.m-auto { color: var(--accent-text); font-weight: 700; }
.m-suggest { padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); font-weight: 700; }
.m-suggest .i { color: var(--warn); }
/* where the vehicle registration document has the answer: a button at the end of the question's line (infoButton() in form.ts), 44px to tap without making the line higher */
.m-qline { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.m-info { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; margin: -8px -4px -8px 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--accent-text); cursor: pointer; }
.m-info .i { width: 36px; height: 36px; padding: 6px; border-radius: 50%; background: var(--tint-strong); stroke-width: 2.4; }
/* only where a pointer hovers: the button stays on the page, so a tap would leave it looking pressed */
@media (hover: hover) {
    .m-info:hover .i { background: var(--primary); color: var(--on-primary); }
}
.m-link { display: inline; padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }

/* choices as tiles */
.m-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
/* a page of years (15 tiles, yearPages() in form.ts) in whole rows: 5 rows of 3 on phones, 3 rows of 5 in a wider card (432px beside the text, 656px on tablets) */
.m-tiles-year { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container m-step (min-width: 420px) {
    .m-tiles-year { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.m-tiles-two { grid-template-columns: 1fr 1fr; }
.m-tile { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 10px 12px; border: 2px solid var(--input); border-radius: 14px; background: var(--surface); color: var(--text); font-size: 17px; font-weight: 800; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.m-tile:hover { border-color: var(--accent-text); background: var(--tint); }
.m-tile.is-on, .m-tile.is-picked { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.m-tile-num { font-size: 20px; font-variant-numeric: tabular-nums; }
/* the tiles to the newer and the older years: the size of a year, the colour of a link, the arrow above a smaller word that may take two lines */
.m-tile-page { flex-direction: column; gap: 1px; padding: 3px 2px; border-color: var(--accent-text); color: var(--accent-text); font-size: 14px; line-height: 1.1; overflow-wrap: anywhere; }
.m-tile-page .i { width: 18px; height: 18px; stroke-width: 2.6; }
.m-tile-body { flex-direction: column; gap: 6px; min-height: 100px; }
.m-tile-body .i { width: 66px; height: 33px; stroke-width: 1.7; }
.brand-tile { flex-direction: column; gap: 6px; min-height: 86px; padding: 10px 6px; }
.fcard .brand-logo { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 34px; flex-shrink: 0; }
.fcard .brand-mono { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border: 2px solid currentColor; border-radius: 50%; font-size: 15px; font-weight: 900; letter-spacing: 0.02em; }
.brand-tile .brand-mono { margin-block: 2px; }
.brand-name { display: block; font-size: 16px; }
/* the top brands three per row on phones: a shorter list to scroll past */
.m-tiles-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.m-tiles-brands .brand-tile { min-height: 76px; padding: 8px 4px; }
.m-tiles-brands .brand-logo { width: 48px; height: 30px; }
.m-tiles-brands .brand-name { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }

/* other brand: list with search */
.combo-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 6px 14px 6px 10px; border: 2px solid var(--input); border-radius: 14px; background: var(--surface); color: var(--text); font-size: 18px; font-weight: 800; text-align: left; cursor: pointer; }
.combo-btn:hover { border-color: var(--accent-text); }
.combo-btn[aria-expanded="true"] { border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--focus-ring); }
.combo-btn > .i { width: 22px; height: 22px; color: var(--accent-text); transition: transform 0.2s ease; }
.combo-btn[aria-expanded="true"] > .i { transform: rotate(180deg); }
.combo-placeholder { display: inline-flex; align-items: center; gap: 12px; padding-left: 6px; color: var(--placeholder); font-weight: 700; }
.combo-current { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.combo-current .brand-logo, .combo-opt .brand-logo { width: 48px; height: 32px; }
.combo-current .brand-mono, .combo-opt .brand-mono { width: 34px; height: 34px; margin-inline: 7px; font-size: 13px; }
.combo-panel { display: grid; gap: 10px; margin-top: 8px; padding: 12px; border: 2px solid var(--accent-text); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); }
.combo-list { list-style: none; margin: 0; padding: 2px; display: grid; align-content: start; gap: 4px; max-height: 336px; overflow-y: auto; overscroll-behavior: contain; }
/* opened upwards over the top brands (form.ts sets top and bottom): the card keeps its height */
.combo-panel.is-overlay { position: absolute; z-index: 5; left: 0; right: 0; display: flex; flex-direction: column; margin-top: 0; }
.combo-panel.is-overlay .combo-list { flex: 1 1 auto; min-height: 0; max-height: none; }
.combo-opt { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 6px 10px; border-radius: 12px; font-size: 18px; font-weight: 700; cursor: pointer; }
.combo-opt:hover { background: var(--tint); }
.combo-opt.is-active { background: var(--tint); box-shadow: inset 0 0 0 2px var(--accent-text); }
.combo-opt[aria-selected="true"] { font-weight: 800; color: var(--accent-text); }
.combo-empty { padding: 6px 4px; font-size: 16px; color: var(--muted); }

/* choices as rows: models, engines */
.m-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.m-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 12px 10px 16px; border: 2px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.m-row:hover { border-color: var(--accent-text); background: var(--tint); }
.m-row.is-on, .m-row.is-picked { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.m-row-main { flex: 1; min-width: 0; font-size: 18px; font-weight: 800; line-height: 1.25; }
.m-row-meta { font-size: 16px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-row-sub { display: block; margin-top: 2px; font-size: 16px; font-weight: 700; color: var(--muted); }
.m-row > .i { width: 20px; height: 20px; color: var(--muted); }
.m-row.is-on .m-row-meta, .m-row.is-picked .m-row-meta, .m-row.is-on .m-row-sub, .m-row.is-picked .m-row-sub, .m-row.is-on > .i, .m-row.is-picked > .i { color: var(--on-primary-soft); }
.m-empty { padding: 10px 2px; font-size: 16px; color: var(--muted); }
.m-count { margin-top: -4px; font-size: 16px; font-weight: 700; color: var(--muted); }
/* the page of a brand starts with its first six models (MODELS_SHOWN in form.ts) and a button for all of them (.m-more): less to scroll past on phones */
.m-list.is-short > li:nth-child(n + 7) { display: none; }

/* fields */
.m-field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.m-label { padding: 0; font-size: 18px; font-weight: 800; }
.m-opt { font-size: 16px; font-weight: 700; color: var(--muted); }
.m-help { font-size: 16px; line-height: 1.45; color: var(--muted); }
.m-field input:not([type="radio"]), .m-field textarea, .m-search input { width: 100%; min-height: 56px; padding: 12px 16px; border: 2px solid var(--input); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; font-size: 20px; }
.m-field textarea { min-height: 110px; font-size: 18px; line-height: 1.45; resize: vertical; }
.fcard input:focus, .fcard textarea:focus { border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--focus-ring); outline: none; }
.fcard input::placeholder { color: var(--placeholder); opacity: 1; }
.m-field.is-invalid input:not([type="radio"]), .m-field.is-invalid .m-choice span { border-color: var(--danger); }
.m-error { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); font-size: 16px; font-weight: 700; }
.m-unit { display: flex; align-items: center; gap: 10px; }
.m-unit input { max-width: 190px; font-variant-numeric: tabular-nums; }
.m-unit span { font-size: 20px; font-weight: 800; }
.m-search { position: relative; }
.m-search > .i { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.fcard .m-search input { padding-left: 46px; font-size: 18px; }
.m-choice { position: relative; display: block; cursor: pointer; }
.m-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.m-choice span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 86px; padding: 10px; border: 2px solid var(--input); border-radius: 14px; background: var(--surface); font-size: 17px; font-weight: 800; text-align: center; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.m-choice span .i { width: 28px; height: 28px; }
.m-choice:hover span { border-color: var(--accent-text); background: var(--tint); }
.m-choice input:checked + span { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.m-choice input:focus-visible + span { outline: 3px solid var(--accent-text); outline-offset: 2px; }

/* buttons inside the card (the theme styles .btn for the rest of the page) */
.fcard .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 12px 24px; border: 2px solid transparent; border-radius: 999px; font-size: 18px; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.fcard .btn .i { width: 22px; height: 22px; }
.fcard .btn-primary { background: var(--primary); color: var(--on-primary); }
.fcard .btn-primary:hover { background: var(--primary-hover); }
.fcard .btn-secondary { border-color: var(--accent-text); background: var(--surface); color: var(--accent-text); }
.fcard .btn-secondary:hover, .fcard .btn-ghost:hover { background: var(--tint); }
.fcard .btn-ghost { background: transparent; color: var(--accent-text); }
.fcard .btn-block { width: 100%; min-height: 60px; font-size: 19px; }
.fcard .btn.is-busy { cursor: progress; opacity: 0.92; }
.m-spinner { width: 20px; height: 20px; border: 3px solid var(--on-primary-soft); border-top-color: var(--on-primary); border-radius: 50%; animation: m-spin 0.8s linear infinite; }
.m-loading { display: flex; align-items: center; gap: 12px; min-height: 58px; font-size: 17px; font-weight: 700; color: var(--muted); }
.m-loading .m-spinner { border-color: var(--tint-strong); border-top-color: var(--accent-text); }
@keyframes m-spin { to { transform: rotate(360deg); } }
.m-fine { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; font-size: 16px; color: var(--muted); text-align: center; }
.m-fine .i { width: 18px; height: 18px; }
.m-fine a { color: inherit; }
/* call us: the last line of each step (callHint() in form.ts), left out where the view names the number already */
.m-call[hidden] { display: none; }
/* while the list of brands says "no brand found, call us", the line keeps its place */
.m-call.is-covered { visibility: hidden; }
/* the phone number in one piece and the link to WhatsApp, 44px high to tap without taking more room */
.m-tel, .m-wa { position: relative; white-space: nowrap; }
.m-tel::after, .m-wa::after { content: ''; position: absolute; top: calc(50% - 22px); left: -4px; right: -4px; height: 44px; }
.m-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); font-size: 16px; font-weight: 700; }
.m-alert .i { width: 20px; height: 20px; margin-top: 1px; color: var(--danger); }

/* confirmation */
.m-done { display: grid; justify-items: center; gap: 12px; padding-top: 8px; text-align: center; }
.m-done-icon { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; margin-bottom: 8px; border-radius: 50%; background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 10px var(--tint-strong); }
.m-done-icon .i { width: 46px; height: 46px; stroke-width: 2.8; }
.m-done p { overflow-wrap: anywhere; }
.m-next { display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: var(--tint); }
.m-next-title { font-size: 18px; font-weight: 800; }
.m-next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.m-next li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.4; }
.m-next li strong { display: block; font-size: 17px; }
.m-next li div span { color: var(--muted); }
.m-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 16px; font-weight: 800; }

/* the popup of the info button (openInfo() in form.ts): a sheet at the bottom on phones, a box in the middle from 760px on; only the drawing scrolls */
.m-doc { flex-direction: column; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; margin: auto auto 0; padding: 0; overflow: hidden; border: 0; border-radius: 22px 22px 0 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.m-doc[open] { display: flex; }
.m-doc::backdrop { background: var(--overlay); }
.m-doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 10px 0 16px; }
.m-doc .m-doc-title { margin: 0; padding-top: 9px; font-size: 20px; font-weight: 800; line-height: 1.25; }
/* just the cross in the colour of the text, on a touch target of 44 px */
.m-doc-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; margin: -6px -10px 0 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; }
.m-doc-close .i { width: 26px; height: 26px; stroke-width: 2.6; }
.m-doc-close:hover { opacity: 0.65; }
.m-doc-text { padding: 6px 16px 12px; font-size: 17px; line-height: 1.45; }
.m-doc-view { min-height: 0; padding: 0 6px calc(12px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }
/* the question before leaving a started form (warnLeaving() in form.ts): that popup with the car in its text and the buttons below, the one back to the form first */
.m-leave-buttons { display: grid; gap: 10px; padding: 4px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.m-leave-buttons [hidden] { display: none; }

/*
 * The drawing of the vehicle registration document (docHtml() in form.ts): paper, so light in both designs. Page 3
 * with the vehicle on phones, the opened document from 760px on. It keeps the proportions of the real paper at every
 * width: a page is 1000 × 1377 like a scan of the document, its rows and columns are the paper's, and the type is a
 * share of the page width (cqi), so a narrow screen shows the same page smaller instead of breaking it differently.
 */
.fz { --fz-line: #7a8577; display: grid; max-width: 440px; margin-inline: auto; border-radius: 12px; background: #e6ebe1; box-shadow: inset 0 0 0 1px rgba(54, 64, 53, 0.22); color: #364035; font-weight: 600; line-height: 1.12; text-align: left; }
.fz-page { position: relative; display: flex; flex-direction: column; min-width: 0; aspect-ratio: 1000 / 1377; padding: 0 3.2% 2.9% 4.2%; overflow: hidden; container-type: inline-size; }
.fz-holder { display: none; }
/* a specimen: the word across each page, behind its fields */
.fz-page::before { content: attr(data-specimen); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); color: rgba(54, 64, 53, 0.08); font-size: 13cqi; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; pointer-events: none; }
.fz-pn { display: flex; align-items: center; justify-content: center; height: 4.4cqi; font-size: 2.4cqi; }
.fz-frame { position: relative; display: grid; flex: 1; min-height: 0; border: 1px solid var(--fz-line); font-size: 2.35cqi; }
/* the vehicle page: fifteen rows of the same height and the taller row of the inspections; the columns of the paper, with a column of its own for «Code» */
.fz-vehicle .fz-frame { grid-template-rows: repeat(15, minmax(0, 1fr)) minmax(0, 1.66fr); }
.fz-row { display: grid; grid-template-columns: minmax(0, 21.2fr) minmax(0, 33.4fr) minmax(0, 20.3fr) minmax(0, 12.1fr) minmax(0, 13fr); min-height: 0; }
.fz-row + .fz-row > * { border-top: 1px solid var(--fz-line); }
.fz-row > * + * { border-left: 1px solid var(--fz-line); }
.fz-k, .fz-v { position: relative; display: flex; align-items: center; min-width: 0; min-height: 0; }
.fz-k { gap: 0.25em; padding: 0.15em 0.3em 0.15em 0.35em; }
.fz-n { flex: 0 0 1.3em; font-weight: 800; text-align: right; }
/* a long word of a narrow column breaks where the language of the page hyphenates it */
.fz-l { flex: 1; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.fz-u { font-size: 0.9em; }
.fz-v { gap: 0.4em; padding: 0.15em 0.45em 0.15em 0.7em; }
/* what the authority typed in */
.fz-v b { color: #14180f; font: 700 1.2em/1.15 'Courier New', Courier, monospace; }
/* a value over the columns of the paper: the full width, or to «Code» */
.fz-3 { grid-column: span 4; }
.fz-2 { grid-column: span 3; }
/* the second value of a row takes the two last columns */
.fz-vehicle .fz-row > .fz-v:nth-child(4) { grid-column: span 2; }
.fz-code { align-items: flex-start; justify-content: center; padding: 0.3em 0 0; font-size: 0.85em; }
/* the codes of the EU format in the margins */
.fz-eu { position: absolute; top: 50%; left: -1.35em; width: 1.1em; transform: translateY(-50%); font-size: 0.95em; font-weight: 800; text-align: center; }
.fz-v > .fz-eu { left: auto; right: -1.35em; }
/* plate, place of issue and inspections have no line between label and value */
.fz-v[data-field="15"], .fz-v[data-field="38"], .fz-v[data-field="39"] { border-left: 0; }
.fz-v[data-field="15"], .fz-v[data-field="27"] { justify-content: space-between; }
/* the plate is larger; it shares its baseline with the colour beside it, both in the middle of the row */
.fz-v[data-field="15"] { flex-wrap: wrap; align-content: center; align-items: baseline; }
.fz-v[data-field="15"] b:first-child { font-size: 1.45em; }
.fz-vehicle .fz-v + .fz-k + .fz-v { justify-content: flex-end; }
/* the holder page: a strip with the word, the name and address, the insurance, and the notes of the authority, which take the rest of the page */
.fz-holder { padding: 0 1.5% 2.9% 5.8%; }
.fz-holder .fz-frame { grid-template-rows: minmax(0, 4fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 9.66fr); }
.fz-holder .fz-row { grid-template-columns: minmax(0, 4fr) minmax(0, 18.1fr) minmax(0, 35fr) minmax(0, 20.1fr) minmax(0, 22.8fr); }
.fz-holder .fz-3 { grid-column: span 3; }
.fz-holder::before { top: 72%; }
.fz-side { justify-content: center; padding: 0; }
.fz-side > span:last-child { writing-mode: vertical-rl; transform: rotate(180deg); }
.fz-row + .fz-row > .fz-side { border-top: 0; }
.fz-names { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.7em; padding-left: 0.6em; }
.fz-names .fz-n { flex: none; }
.fz-names .fz-l, .fz-notes .fz-l { flex: none; line-height: 1.35; }
.fz-k[data-field="09"] { grid-column: span 2; }
.fz-notes { grid-column: 1 / -1; align-items: flex-start; padding-top: 0.6em; }
.fz-notes .fz-n { line-height: 1.35; }
/* the field that holds the answer: its value in a red frame, its number and label darker */
.fz-v.is-marked { z-index: 0; }
.fz-v.is-marked::after { content: ''; position: absolute; z-index: -1; inset: 1px; border: 2.5px solid #dc2a1d; border-radius: 5px; background: rgba(255, 255, 255, 0.55); }
.fz-k.is-marked { color: #14180f; }

/* only bots fill this in */
.m-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 760px) {
    .fcard { padding: 24px 24px 28px; }
    .m-tiles-brands { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
    .m-tiles-brands .brand-tile { min-height: 86px; padding: 10px 6px; }
    .m-tiles-brands .brand-logo { width: 56px; height: 34px; }
    .m-tiles-brands .brand-name { font-size: 16px; }
    .m-doc { width: calc(100% - 32px); max-width: 880px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; border-radius: var(--radius); }
    .m-doc-head { padding: 20px 16px 0 24px; }
    .m-doc .m-doc-title { font-size: 22px; }
    .m-doc-text { padding: 4px 24px 16px; font-size: 18px; }
    .m-doc-view { padding: 0 16px 16px; }
    .m-doc.m-leave { max-width: 520px; }
    .m-leave-buttons { padding: 4px 24px 24px; }
    .fz { grid-template-columns: 1fr 1fr; max-width: none; }
    .fz-holder { display: flex; }
    /* the fold between the two pages */
    .fz-vehicle { background: linear-gradient(to right, rgba(54, 64, 53, 0.16), rgba(54, 64, 53, 0) 16px); }
}

@media (min-width: 980px) {
    .m-scroll { max-height: 452px; margin-right: -8px; padding-right: 8px; overflow-y: auto; overscroll-behavior: contain; }
    /* the scroll box holds all models */
    .m-list.is-short > li:nth-child(n + 7) { display: list-item; }
    .fcard .m-more { display: none; }
}

/* without JavaScript the note in <noscript> names the number, the list of models is complete and no info button or Zurück shows that would do nothing */
@media (scripting: none) {
    .m-call, .fcard .m-more, .m-info, .m-back { display: none; }
    .m-list.is-short > li:nth-child(n + 7) { display: list-item; }
}

@media (prefers-reduced-motion: reduce) {
    .m-enter { animation: none; }
    .m-spinner { animation-duration: 2.4s; }
    .m-tile, .m-row, .fcard .btn, .m-choice span, .combo-btn > .i, .m-back { transition: none; }
}
