/* Europrivacy Maturity Assessment in a page of europrivacy.com: the only style sheet of the tool
   in the WordPress plugin europrivacy-maturity-assessment (exported as assets/maq/maq.css by
   tools/export_wp.py). Not used by the pages of this site (assets/site.css, sct.css, maq.css).

   Self-contained: every rule is scoped under the root <div class="maq" data-maq-root>, nothing
   from site.css or sct.css is needed, nothing styles the page around the tool, except the print
   rules at the end (the page's header, title band, sidebar and footer are not printed with the
   result), limited to a page that contains the tool, and the print margins (@page: this sheet
   is only loaded on the page of the tool).

   - Tokens --maq-*: the theme's tokens (assets/css/main.css :root) with a fallback value, so the
     tool follows the site and still works without them. Fonts of the site: Nunito (titles),
     Inter (text), loaded by the theme.
   - Buttons: .maq-btn, .maq-btn--primary / --secondary / --ghost / --block / --lg (the theme's
     own .btn is not used: same look as its .btn--primary and .btn--secondary).
   - Layout by container queries on the width of the tool (the content column of the page), not
     the screen: below 900 px the "Sections" bar goes above the questions. The text of the
     questions keeps at least about 460 px: a question's answers go under its text, aligned with
     it, when the content of its card is narrower than 800 px (620 px for the scope questions,
     2 answers), and take the whole width of a card narrower than 560 px (a container query
     measures the content box, without the padding).
   - The theme's sticky header (z-index 200, about 76 px): no z-index above 20 here, a
     scroll-margin-top for every element of the tool (assets/maq/maq.js scrolls to the root). */

/* ---------- Tokens, base ---------- */
.maq {
  --maq-primary: var(--color-blue, #1F52A3);
  --maq-primary-dark: var(--color-blue-deep, #143868);
  --maq-heading: var(--color-blue-heading, #244697);
  --maq-accent: var(--color-yellow-warm, #FFD400);
  --maq-text: var(--color-text, #1C2B3D);
  --maq-text-soft: var(--color-text-soft, #5A6B85);
  --maq-surface: var(--color-white, #FFFFFF);
  --maq-border: var(--color-border, #E1E7F0);
  --maq-card-border: #E6EAF2;
  --maq-field-border: #B9C4D6;
  --maq-tint: #EAF0FB;
  --maq-tint-2: #F2F5FB;
  --maq-track: #D6E0F2;
  --maq-on-dark: #D9E3F7;
  --maq-on-dark-soft: #B7C6E3;
  --maq-ok: #14622F;
  --maq-ok-bg: #E3F3E8;
  --maq-ok-mark: #1E8E5A;
  --maq-ko: #A4260B;
  --maq-ko-bg: #FDEBE6;
  --maq-ko-mark: var(--color-red-negative, #E6340F);
  --maq-warn: #5C4300;
  --maq-warn-bg: #FFF6D6;
  --maq-warn-strong: #8A5A00;
  --maq-warn-mark: #E0A800;
  --maq-na: #33405C;
  --maq-na-bg: #E9EDF4;
  --maq-font-display: var(--font-display, 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
  --maq-font-body: var(--font-body, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
  --maq-radius: var(--radius, 8px);
  --maq-radius-sm: 6px;
  --maq-shadow: 0 8px 24px rgba(20, 56, 104, .06);
  --maq-shadow-raised: 0 18px 40px rgba(20, 56, 104, .14);
  --maq-scroll-offset: 92px;

  container: maq / inline-size;
  color: var(--maq-text);
  font-family: var(--maq-font-body);
  font-size: 16px;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .maq { --maq-scroll-offset: 76px; }
}
.maq, .maq * { box-sizing: border-box; scroll-margin-top: var(--maq-scroll-offset); }
.maq [hidden] { display: none !important; }
.maq :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure) { margin: 0; }
.maq :where(ul, ol) { list-style: none; padding: 0; }
.maq :where(h1, h2, h3, h4, h5, h6) { font-family: var(--maq-font-display); font-weight: 800; line-height: 1.2; color: var(--maq-heading); }
.maq :where(button, input, textarea, select) { font-family: inherit; }
.maq :where(strong, b) { font-weight: 700; }
.maq :where(svg) { display: inline-block; vertical-align: middle; }
.maq :focus-visible { outline: 2px solid var(--maq-primary); outline-offset: 3px; }
.maq [tabindex="-1"]:focus { outline: none; }
.maq .sct-res-hero :focus-visible, .maq .maq-reminder :focus-visible { outline-color: #FFFFFF; }
.maq .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.maq .maq-print-only { display: none; }
/* The page gives the width (content column of the theme). */
.maq .wrap { max-width: none; margin: 0; padding: 0; }

/* Links: visible (underlined), without the theme's ".page-blocks a" border. */
.maq a:not(.maq-btn) { color: var(--maq-primary); text-decoration: underline; text-underline-offset: 3px; border-bottom: 0; }
.maq a:not(.maq-btn):hover { color: var(--maq-primary-dark); }
.maq .sct-link { background: none; border: 0; padding: 4px 0; min-height: 32px; color: var(--maq-primary); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.maq .sct-link:hover { color: var(--maq-primary-dark); }

/* ---------- Shared components ---------- */
.maq .eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: var(--maq-primary); }
.maq .eyebrow b { padding: 2px 8px; border-radius: 4px; background: var(--maq-accent); color: var(--maq-primary-dark); font-family: var(--maq-font-display); font-size: 15px; font-weight: 800; letter-spacing: 0; }
.maq .bar { display: block; width: 52px; height: 5px; margin: 0; border-radius: 3px; background: var(--maq-accent); }
.maq .sct-card { background: var(--maq-surface); border: 1px solid var(--maq-card-border); border-radius: var(--maq-radius); box-shadow: var(--maq-shadow); }

/* Buttons */
.maq .maq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: .8rem 1.5rem; border: 0; border-radius: var(--maq-radius); font-family: var(--maq-font-body); font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.maq .maq-btn svg { flex: none; }
.maq .maq-btn--primary { background: var(--maq-accent); color: var(--maq-primary-dark); }
.maq .maq-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(255, 212, 0, .35); color: var(--maq-primary-dark); }
.maq .maq-btn--secondary { background: var(--maq-surface); color: var(--maq-primary); border: 1.5px solid var(--maq-primary); }
.maq .maq-btn--secondary:hover { background: #F0F4FA; color: var(--maq-primary); }
.maq .maq-btn--ghost { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, .6); }
.maq .maq-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #FFFFFF; color: #FFFFFF; }
.maq .maq-btn--block { width: 100%; }
.maq .maq-btn--lg { min-height: 52px; font-size: 16px; }
.maq .sct-nav .maq-btn { min-height: 50px; padding: 0 24px; }
.maq .sct-res-actions .maq-btn { min-height: 46px; padding: 0 18px; font-size: 14px; }

/* Messages */
.maq .sct-warning { padding: 12px 16px; border-top: 3px solid var(--maq-accent); border-radius: 0 0 var(--maq-radius-sm) var(--maq-radius-sm); background: var(--maq-warn-bg); color: var(--maq-warn); font-size: 14px; }
.maq .maq-error-summary ul { list-style: disc; padding-left: 20px; margin-top: 4px; }

/* Confirmation dialog (start again, import) */
.maq .sct-dialog { width: calc(100% - 32px); max-width: 460px; padding: 28px; border: 0; border-radius: var(--maq-radius); box-shadow: 0 24px 60px rgba(20, 56, 104, .28); background: var(--maq-surface); color: var(--maq-text); }
.maq .sct-dialog::backdrop { background: rgba(20, 56, 104, .55); }
.maq .sct-dialog p { margin-bottom: 20px; font-size: 16px; font-weight: 500; }
.maq .sct-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* ---------- Screen 1: start (rendered by the plugin, without the static page's blue header) ---------- */
.maq .maq-start { padding: 0 0 24px; }
.maq .maq-start-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px; align-items: start; }
.maq .maq-start-copy { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.maq .maq-start .lead { font-size: 17px; line-height: 1.6; }
.maq .sct-checks { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.maq .sct-checks li { display: flex; align-items: flex-start; gap: 12px; }
.maq .sct-checks svg { flex: none; margin-top: 3px; color: var(--maq-primary); }
.maq .sct-form { display: flex; flex-direction: column; gap: 16px; padding: 28px; box-shadow: var(--maq-shadow-raised); }
.maq .sct-form-title { font-size: 24px; }
.maq .maq-how { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.maq .maq-how li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; }
.maq .maq-how-num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--maq-radius-sm); background: var(--maq-tint); color: var(--maq-primary); font-size: 13px; font-weight: 700; }
.maq .maq-saved { padding: 10px 14px; border-left: 3px solid var(--maq-primary); border-radius: 0 var(--maq-radius-sm) var(--maq-radius-sm) 0; background: var(--maq-tint); font-size: 14px; font-weight: 500; }
.maq .maq-restart-link { align-self: flex-start; }
.maq .maq-status { font-size: 14px; font-weight: 500; color: var(--maq-ok); }
.maq .maq-status:empty { display: none; }
.maq .maq-status.is-error { color: var(--maq-ko); }
.maq .sct-duration { font-size: 13px; line-height: 1.55; color: var(--maq-text-soft); }
.maq .maq-about { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 0; }
.maq .maq-about p { max-width: 920px; font-size: 14px; line-height: 1.6; color: var(--maq-text-soft); }
.maq .sct-ref { font-size: 13px; }

/* ---------- Steps (profile, scope, questionnaire, result) ---------- */
.maq .maq-stepper ol { display: flex; flex-wrap: wrap; gap: 8px; }
.maq .maq-stepper-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px 6px 8px; border: 1px solid var(--maq-card-border); border-radius: var(--maq-radius); background: var(--maq-surface); color: var(--maq-text); font-size: 14px; font-weight: 600; cursor: pointer; }
.maq .maq-stepper-btn:hover:not(:disabled) { background: var(--maq-tint-2); }
.maq .maq-stepper-btn[aria-current] { border-color: var(--maq-primary); background: var(--maq-primary); color: #FFFFFF; }
.maq .maq-stepper-btn:disabled { color: var(--maq-text-soft); cursor: not-allowed; }
.maq .maq-stepper-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--maq-radius-sm); background: var(--maq-tint); color: var(--maq-primary); font-size: 13px; font-weight: 700; }
.maq .maq-stepper-btn[aria-current] .maq-stepper-num { background: var(--maq-accent); color: var(--maq-primary-dark); }

.maq .maq-narrow { display: flex; flex-direction: column; gap: 20px; max-width: 960px; }
.maq .sct-assess-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 20px; }

/* Card of a step: title, introduction */
.maq .sct-crit-card { container: maq-card / inline-size; display: flex; flex-direction: column; gap: 24px; padding: 36px; }
.maq .sct-crit-head { display: flex; flex-direction: column; gap: 12px; }
.maq .sct-crit-title { font-size: 30px; line-height: 1.15; overflow-wrap: break-word; }
.maq .sct-crit-intro { max-width: 740px; font-size: 16px; color: var(--maq-text-soft); }
.maq .maq-part { display: inline-block; font-size: 13px; font-weight: 600; color: var(--maq-text-soft); }
.maq .sct-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Profile ---------- */
.maq .maq-form { display: flex; flex-direction: column; gap: 26px; }
.maq .sct-field { display: flex; flex-direction: column; gap: 6px; }
.maq .sct-field label { font-size: 14px; font-weight: 600; }
.maq .maq-field input, .maq .maq-field textarea { width: 100%; border: 1px solid var(--maq-field-border); border-radius: var(--maq-radius-sm); background: var(--maq-surface); color: var(--maq-text); font-size: 15px; line-height: 1.5; }
.maq .maq-field input { height: 48px; padding: 0 14px; }
.maq .maq-field textarea { min-height: 96px; padding: 12px 14px; resize: vertical; }
.maq .maq-field input:focus-visible, .maq .maq-field textarea:focus-visible { outline-offset: 1px; }
.maq .maq-field input[aria-invalid="true"], .maq .maq-field textarea[aria-invalid="true"] { border: 2px solid var(--maq-ko); }
.maq .maq-req { font-size: 13px; font-weight: 400; color: var(--maq-text-soft); }
.maq .maq-hint { font-size: 13px; color: var(--maq-text-soft); }
.maq .maq-error { font-size: 13px; font-weight: 600; color: var(--maq-ko); }
.maq .maq-fieldset { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.maq .maq-fieldset legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; }
.maq .maq-legend-hint { font-weight: 400; color: var(--maq-text-soft); }
.maq .maq-radios { display: flex; flex-direction: column; gap: 8px; }
.maq .maq-radios-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; }
.maq .maq-radio { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--maq-field-border); border-radius: var(--maq-radius-sm); background: var(--maq-surface); font-size: 15px; font-weight: 500; cursor: pointer; }
.maq .maq-radio:hover { border-color: var(--maq-primary); }
.maq .maq-radio input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--maq-primary); }
.maq .maq-radio:has(input:checked) { border-color: var(--maq-primary); background: var(--maq-tint); }
.maq .maq-radio:has(input:focus-visible) { outline: 2px solid var(--maq-primary); outline-offset: 2px; }
.maq .maq-radio input:focus-visible { outline: none; }
.maq .maq-fieldset[aria-invalid="true"] .maq-radio { border-color: var(--maq-ko); }
.maq .maq-eligible { padding: 14px 18px; border-left: 3px solid var(--maq-primary); border-radius: 0 var(--maq-radius-sm) var(--maq-radius-sm) 0; background: var(--maq-tint); font-size: 16px; font-weight: 600; }
.maq .maq-eligible:empty { display: none; }

/* ---------- Scope and questionnaire ---------- */
.maq .sct-rule { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-top: 3px solid var(--maq-primary); border-radius: 0 0 var(--maq-radius-sm) var(--maq-radius-sm); background: var(--maq-tint); font-size: 14px; }
.maq .maq-rule { border-top-color: var(--maq-accent); background: var(--maq-warn-bg); color: var(--maq-warn); }
.maq .maq-count { font-size: 14px; font-weight: 600; color: var(--maq-primary); }
.maq .maq-list-rule { font-size: 14px; }

/* Sidebar: sections of the questionnaire */
.maq .sct-side { display: flex; flex-direction: column; gap: 16px; }
.maq .sct-side-card { padding: 16px; }
.maq .sct-side-title { padding: 0 8px 8px; font-family: var(--maq-font-body); font-size: 12px; font-weight: 700; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; color: var(--maq-primary); }
.maq .sct-steps { display: flex; flex-direction: column; gap: 2px; }
.maq .sct-step { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 10px; border: 0; border-radius: var(--maq-radius-sm); background: transparent; color: var(--maq-text); text-align: left; cursor: pointer; }
.maq .sct-step:hover { background: var(--maq-tint-2); }
.maq .sct-step[aria-current] { background: var(--maq-tint); }
.maq .sct-step-num { flex: none; display: grid; place-items: center; width: 30px; height: 26px; border-radius: 4px; background: var(--maq-tint); color: var(--maq-primary); font-size: 13px; font-weight: 700; }
.maq .sct-step[aria-current] .sct-step-num { background: var(--maq-primary); color: #FFFFFF; }
.maq .sct-step.is-done .sct-step-num { background: var(--maq-accent); color: var(--maq-primary-dark); }
.maq .sct-step-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.maq .sct-step-name { font-size: 14px; font-weight: 500; }
.maq .sct-step[aria-current] .sct-step-name { font-weight: 700; }
.maq .sct-step-meta { font-size: 12px; color: var(--maq-text-soft); }
.maq .maq-side-link { align-self: center; }
.maq .maq-export-note { font-size: 12px; line-height: 1.45; text-align: center; color: var(--maq-text-soft); }

/* Progress */
.maq .sct-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.maq .sct-progress { display: flex; flex-direction: column; gap: 8px; }
.maq .sct-progress-head { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--maq-text-soft); }
.maq .sct-progress-head strong { color: var(--maq-text); }
.maq .sct-progress-bar { height: 6px; overflow: hidden; border-radius: 3px; background: var(--maq-track); }
.maq .sct-progress-fill { display: block; width: 0; height: 100%; background: var(--maq-primary); transition: width .2s; }

/* Answer legend */
.maq .maq-legend-box { padding: 0 16px; border: 1px solid var(--maq-border); border-radius: var(--maq-radius-sm); }
.maq .maq-legend-box summary { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--maq-primary); cursor: pointer; }
.maq .maq-legend-box .maq-legend { padding-bottom: 14px; }
.maq .maq-legend { display: flex; flex-direction: column; gap: 8px; }
.maq .maq-legend li { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
/* Same width for the 4 answer labels in every language ("NEIN" is the widest). */
.maq .maq-legend-label { flex: none; display: inline-block; min-width: 52px; padding: 2px 8px; border-radius: 4px; font-family: var(--maq-font-body); font-size: 13px; font-weight: 700; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.maq .maq-answer-yes.maq-legend-label { background: var(--maq-ok-bg); color: var(--maq-ok); }
.maq .maq-answer-no.maq-legend-label { background: var(--maq-ko-bg); color: var(--maq-ko); }
.maq .maq-answer-na.maq-legend-label { background: var(--maq-na-bg); color: var(--maq-na); }
.maq .maq-answer-unknown.maq-legend-label { background: var(--maq-warn-bg); color: var(--maq-warn); }

/* Questions */
.maq .sct-questions { display: flex; flex-direction: column; gap: 24px; }
.maq .sct-group { display: flex; flex-direction: column; }
.maq .sct-group-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--maq-primary-dark); }
.maq .sct-group-title { font-size: 18px; line-height: 1.3; color: var(--maq-text); }
.maq .sct-q { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--maq-border); }
.maq .maq-q { align-items: flex-start; }
.maq .sct-q-text { flex: 1; min-width: 0; display: flex; gap: 14px; }
.maq .maq-q .sct-q-text { padding-top: 6px; }
.maq .sct-q-num { min-width: 32px; padding-top: 3px; font-size: 13px; font-weight: 700; color: var(--maq-primary); }
.maq .sct-q-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.maq .sct-q-label { font-weight: 500; }
.maq .sct-q-hint { font-size: 13px; color: var(--maq-text-soft); }
.maq .maq-items { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 2px; padding-left: 20px; list-style: disc; font-size: 15px; }
.maq .maq-subitems { margin-top: 3px; list-style: circle; }
/* Scope: bulleted questions (not numbered); unanswered ones marked once "Continue" is pressed. */
.maq .maq-bullet { min-width: 22px; }
.maq .maq-bullet::before { content: ""; display: block; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--maq-primary); }
.maq .maq-filter-error { margin-top: 4px; }
/* IF blocks: context line; end of a block followed by a question outside any block. */
.maq .maq-block { display: flex; flex-direction: column; }
.maq .maq-context { margin-top: 18px; padding-left: 46px; font-size: 13px; line-height: 1.5; color: var(--maq-text-soft); }
.maq .maq-context-label { font-weight: 600; }
.maq .maq-context + .sct-q { padding-top: 10px; }
.maq .maq-block-closed { margin-bottom: 22px; }
.maq .maq-block-closed > .sct-q:last-child { border-bottom: 2px solid var(--maq-text-soft); }

/* Answer buttons, criteria codes ("i" button and bubble) */
.maq .sct-answers { flex: none; display: flex; gap: 6px; }
.maq .maq-answers { flex-wrap: nowrap; }
.maq .sct-answer { min-width: 54px; min-height: 44px; padding: 0 12px; border: 1px solid var(--maq-field-border); border-radius: var(--maq-radius-sm); background: var(--maq-surface); color: var(--maq-text); font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.maq .sct-answer:hover { border-color: var(--maq-primary); }
.maq .sct-answer[aria-pressed="true"] { border-color: var(--maq-primary); background: var(--maq-primary); color: #FFFFFF; }
.maq .maq-filter.is-missing .maq-answer { border-color: var(--maq-ko); }
.maq .maq-q-actions { flex: none; display: flex; align-items: center; gap: 4px; }
.maq .maq-info-wrap { position: relative; flex: none; }
.maq .maq-info { display: flex; align-items: center; justify-content: center; width: 40px; min-height: 44px; padding: 0; border: 0; border-radius: var(--maq-radius-sm); background: none; color: var(--maq-text-soft); cursor: pointer; }
.maq .maq-info:hover, .maq .maq-info[aria-expanded="true"] { color: var(--maq-primary); }
/* The bubble may cover the "i" of the next line: clicks go through it. */
.maq .maq-tip { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; width: max-content; max-width: min(300px, calc(100vw - 32px)); padding: 9px 12px; border-radius: var(--maq-radius-sm); background: var(--maq-primary-dark); color: #FFFFFF; font-size: 13px; font-weight: 500; line-height: 1.45; box-shadow: 0 8px 24px rgba(20, 56, 104, .22); pointer-events: none; }
.maq .maq-tip::before { content: ""; position: absolute; top: -5px; right: 15px; width: 10px; height: 10px; background: var(--maq-primary-dark); transform: rotate(45deg); }

/* ---------- Result ---------- */
.maq .sct-res-hero { border-radius: var(--maq-radius); background: var(--maq-primary-dark); color: #FFFFFF; }
.maq .sct-res-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 36px 36px 112px; }
.maq .sct-res-title { display: flex; flex-direction: column; gap: 14px; }
.maq .sct-res-hero .eyebrow { color: var(--maq-on-dark); }
.maq .maq-res-heading { font-size: 40px; line-height: 1.1; color: #FFFFFF; }
.maq .sct-print-meta { display: none; }
.maq .maq-res-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.maq .sct-res-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.maq .sct-res-hero .maq-export-note { text-align: left; color: var(--maq-on-dark); }
.maq .sct-res-body > .wrap { display: flex; flex-direction: column; gap: 36px; }
.maq .maq-res-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; margin: -76px 24px 0; }
.maq .maq-profile, .maq .maq-score { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-top: 6px solid var(--maq-primary); box-shadow: var(--maq-shadow-raised); }
.maq .maq-score { border-top-color: var(--maq-accent); }
.maq .maq-card-title { font-size: 20px; }
.maq .maq-dl { display: flex; flex-direction: column; gap: 12px; }
.maq .maq-dl-row { display: flex; flex-direction: column; gap: 2px; }
.maq .maq-dl dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--maq-primary); }
.maq .maq-dl dd { margin: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; }
.maq .maq-dl dd.is-empty { font-weight: 400; color: var(--maq-text-soft); }

/* Indicators */
.maq .maq-indicators { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.maq .maq-indicator { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 0; border-top: 4px solid var(--maq-ok-mark); border-radius: 0 0 var(--maq-radius-sm) var(--maq-radius-sm); background: var(--maq-tint-2); box-shadow: none; }
.maq .maq-indicator-clarify { border-top-color: var(--maq-warn-mark); }
.maq .maq-indicator-address { border-top-color: var(--maq-ko-mark); }
.maq .maq-indicator-name { min-height: 2.6em; font-size: 15px; line-height: 1.3; color: var(--maq-text); }
.maq .maq-indicator-value { display: flex; align-items: baseline; gap: 2px; font-family: var(--maq-font-display); }
.maq .maq-indicator-num { font-size: 44px; font-weight: 800; line-height: 1; color: var(--maq-primary); }
.maq .maq-indicator-pct { font-size: 22px; font-weight: 700; color: var(--maq-text-soft); }
.maq .maq-indicator-meta { font-size: 13px; }
.maq .maq-stack { display: flex; height: 12px; overflow: hidden; border-radius: 6px; background: var(--maq-tint); }
.maq .maq-stack span { display: block; height: 100%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.maq .maq-stack-maturity { background: var(--maq-ok-mark); }
.maq .maq-stack-clarify { background: var(--maq-warn-mark); }
.maq .maq-stack-address { background: var(--maq-ko-mark); }
.maq .maq-figures { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--maq-text-soft); }
.maq .maq-figures strong { font-family: var(--maq-font-display); font-size: 18px; font-weight: 800; color: var(--maq-text); }
.maq .maq-unanswered { font-size: 14px; font-weight: 500; color: var(--maq-warn-strong); }

/* Questions to be reworked */
.maq .maq-rework-block { display: flex; flex-direction: column; gap: 18px; }
.maq .sct-detail-head { display: flex; flex-direction: column; gap: 12px; }
.maq .maq-section-title { font-size: 28px; line-height: 1.15; }
.maq .maq-rework-text { max-width: 860px; font-size: 16px; }
.maq .maq-rework { display: flex; flex-direction: column; gap: 16px; padding: 24px 28px; }
.maq .maq-rework-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 20px; color: var(--maq-text); }
.maq .maq-rework-count { font-weight: 600; color: var(--maq-text-soft); }
.maq .maq-rework-section { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 2px solid var(--maq-primary-dark); }
.maq .maq-rework-section-title { font-size: 16px; color: var(--maq-primary); }
.maq .maq-rework-list { display: flex; flex-direction: column; }
/* Criteria codes: "i" bubble on screen (last column), in clear on paper (first column). */
.maq .maq-rework-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 5px 0; border-top: 1px solid var(--maq-border); font-size: 14px; }
.maq .maq-rework-list > li:first-child { border-top: 0; }
.maq .maq-rework-list > li > span:not(.maq-codes) { padding-top: 6px; }
.maq .maq-rework-list .maq-codes { display: none; }
.maq .maq-codes { font-size: 13px; font-weight: 700; color: var(--maq-primary); }
.maq .maq-not-answered { font-style: italic; color: var(--maq-warn-strong); }
.maq .maq-rework-list .maq-items { font-size: 13px; color: var(--maq-text-soft); }
.maq .maq-none { font-size: 14px; color: var(--maq-text-soft); }
.maq .maq-no-applicable p { margin: 0; }

/* Reminder: not a certification */
.maq .maq-reminder { display: flex; flex-direction: column; gap: 18px; padding: 40px 44px; border-radius: var(--maq-radius); background: var(--maq-primary-dark); color: var(--maq-on-dark); }
.maq .sct-how-title { font-size: 24px; font-weight: 700; color: #FFFFFF; }
.maq .maq-reminder p { max-width: 820px; }
.maq .maq-reminder .maq-btn { min-height: 50px; padding: 0 24px; }
.maq .sct-copyright { font-size: 13px; color: var(--maq-on-dark-soft); }

/* ---------- Width of the tool (container queries) ---------- */
@container maq (max-width: 1000px) {
  .maq .maq-res-top { grid-template-columns: minmax(0, 1fr); }
}
/* Start screen with the intro and the card side by side: the introduction of the questionnaire
   (.maq-about) goes under the intro, in the left column, and the card spans both rows. The HTML
   order (intro, card, introduction) and so the reading order are unchanged: the screen becomes
   the grid, its two wrappers are display: contents. The second row takes the extra height of the
   card, the introduction stays right under the intro. If the left column is the taller one, the
   card keeps its own height, at the top (no stretched card with an empty bottom). */
@container maq (width > 900px) {
  .maq .maq-screen[data-screen="start"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    grid-template-rows: auto 1fr;
    grid-template-areas: "copy card" "about card";
    column-gap: 32px;
    align-items: start;
  }
  .maq .maq-start, .maq .maq-start-grid { display: contents; }
  .maq .maq-start-copy { grid-area: copy; }
  .maq .maq-start-card { grid-area: card; }
  .maq .maq-about { grid-area: about; padding-top: 28px; }
}
/* "Sections" above the questions: a row of numbered buttons (the names stay for screen readers). */
@container maq (max-width: 900px) {
  .maq .maq-start-grid { grid-template-columns: minmax(0, 1fr); }
  .maq .maq-start-card { max-width: 560px; }
  .maq .sct-assess-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .maq .sct-side { gap: 12px; }
  .maq .sct-side-card { padding: 10px 12px; }
  .maq .sct-side-title { padding: 0 2px 6px; }
  .maq .sct-steps { flex-direction: row; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
  .maq .sct-steps li { flex: 0 0 auto; }
  .maq .sct-step { position: relative; justify-content: center; width: auto; min-width: 48px; min-height: 48px; padding: 6px; }
  .maq .sct-step-num { width: 34px; height: 32px; font-size: 14px; }
  .maq .sct-step-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .maq .sct-res-head { padding-bottom: 104px; }
}
@container maq (max-width: 700px) {
  .maq .maq-res-side { align-items: stretch; width: 100%; }
  .maq .maq-indicators { grid-template-columns: minmax(0, 1fr); }
  .maq .maq-indicator-name { min-height: 0; }
  .maq .maq-reminder { padding: 32px 22px; }
  .maq .maq-rework { padding: 20px; }
  .maq .maq-profile, .maq .maq-score { padding: 22px 20px; }
  .maq .maq-res-top { margin-left: 12px; margin-right: 12px; }
}
@container maq (max-width: 640px) {
  .maq .sct-form { padding: 24px 20px; }
  .maq .sct-form-title { font-size: 22px; }
  .maq .sct-crit-card { gap: 22px; padding: 24px 20px; }
  .maq .sct-crit-title { font-size: 26px; }
  .maq .sct-res-head { padding: 28px 20px 100px; }
  .maq .maq-res-heading { font-size: 32px; }
  .maq .maq-section-title { font-size: 24px; }
}
@container maq (max-width: 580px) {
  .maq .sct-nav { flex-direction: column-reverse; }
  .maq .sct-nav .maq-btn { width: 100%; }
  .maq .sct-res-actions { width: 100%; }
  .maq .sct-res-actions .maq-btn { flex: 1 1 calc(50% - 5px); }
  /* Only the number of the other steps; their name stays available to screen readers. */
  .maq .maq-stepper ol { flex-wrap: nowrap; }
  .maq .maq-stepper li { flex: 0 0 auto; }
  .maq .maq-stepper-btn { position: relative; }
  .maq .maq-stepper-btn:not([aria-current]) { padding: 6px 8px; }
  .maq .maq-stepper-btn:not([aria-current]) .maq-stepper-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .maq .maq-res-top { margin-left: 0; margin-right: 0; }
}
/* Width of the question texts: in a card narrower than 800 px (content box), the answers of a
   question go under its text, aligned with it (the "Sections" bar stays on the left); 620 px
   for a scope question (2 answers). */
@container maq-card (max-width: 799px) {
  .maq .maq-q:not(.maq-filter) { flex-direction: column; align-items: stretch; gap: 10px; }
  .maq .maq-q > .maq-q-actions { align-self: flex-start; margin-left: 46px; }
  .maq .maq-q:not(.maq-filter) .sct-q-text { padding-top: 0; }
}
@container maq-card (max-width: 619px) {
  .maq .maq-filter { flex-direction: column; align-items: stretch; gap: 10px; }
  .maq .maq-filter > .maq-answers { align-self: flex-start; margin-left: 36px; }
  .maq .maq-filter .sct-q-text { padding-top: 0; }
}
/* Small card (mobile): the answers on the whole width of the card. */
@container maq-card (max-width: 560px) {
  .maq .maq-q > .maq-q-actions, .maq .maq-filter > .maq-answers { align-self: stretch; margin-left: 0; }
  .maq .maq-context { padding-left: 0; }
  .maq .maq-q-actions .maq-answers { flex: 1; min-width: 0; }
  .maq .maq-answers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .maq .maq-filter .maq-answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maq .maq-answer { min-width: 0; padding: 0 6px; }
}

/* ---------- Copy protection (assets/maq/protect.js): no text selection except in form fields ---------- */
.maq, .maq * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.maq input, .maq textarea, .maq select, .maq [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* ---------- Print / PDF: the result only, through its "Print / PDF" button ---------- */
@media print {
  @page { margin: 14mm; }
  /* The page around the tool (outside .maq, only in a page that contains the tool): header,
     language switcher, breadcrumb, title band, sidebar, footer, other content blocks. */
  body:has(.maq[data-maq-root]) :is(#site-header, #lang-switcher-nav, .breadcrumb, .page-title, .sidebar-col, .site-footer) { display: none !important; }
  body:has(.maq[data-maq-root]) .page-blocks > :not(:has(.maq[data-maq-root])),
  body:has(.maq[data-maq-root]) :has(> .maq[data-maq-root]) > :not(.maq[data-maq-root]) { display: none !important; }
  body:has(.maq[data-maq-root]) .page-wrap { display: block !important; padding: 0 !important; }
  body:has(.maq[data-maq-root]) { background: #FFFFFF; }

  /* Printed from the browser (not with the result's button), or another screen than the
     result: a short message instead of the tool (body.allow-print: assets/maq/protect.js). */
  .maq:not([data-maq-screen="results"]) > :not(.maq-print-only),
  body:not(.allow-print) .maq > :not(.maq-print-only) { display: none !important; }
  .maq:not([data-maq-screen="results"]) > .maq-print-only,
  body:not(.allow-print) .maq > .maq-print-only { display: block; padding: 40mm 0; text-align: center; font-size: 14pt; }

  /* The result */
  .maq { font-size: 11pt; }
  .maq * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .maq .sct-res-actions, .maq .sct-link, .maq .sct-dialog, .maq .maq-certify, .maq .maq-export-note, .maq .maq-info-wrap { display: none !important; }
  .maq .sct-res-hero { border-radius: 0; background: #FFFFFF; color: var(--maq-text); }
  .maq .sct-res-head { padding: 0 0 12px; }
  .maq .sct-res-hero .eyebrow { color: var(--maq-primary); }
  .maq .maq-res-heading { font-size: 26pt; color: var(--maq-heading); }
  .maq .sct-print-meta { display: block; font-size: 10pt; color: var(--maq-text-soft); }
  .maq .sct-res-body > .wrap { gap: 18px; }
  .maq .maq-res-top { margin: 0; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .maq .maq-profile, .maq .maq-score { padding: 14px 16px; box-shadow: none; }
  .maq .maq-indicators { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .maq .maq-indicator-name { min-height: 2.6em; }
  .maq .maq-indicator-num { font-size: 30pt; }
  .maq .maq-rework { padding: 14px 16px; box-shadow: none; }
  .maq .maq-rework-list > li { grid-template-columns: 150px minmax(0, 1fr); padding: 9px 0; }
  .maq .maq-rework-list > li > span:not(.maq-codes) { padding-top: 0; }
  .maq .maq-rework-list .maq-codes { display: block; }
  .maq .maq-rework-list > li, .maq .maq-indicator, .maq .maq-rework-section-title, .maq .maq-res-top { break-inside: avoid; page-break-inside: avoid; }
  /* Block layout on paper: a title is kept with what follows it (break-after is not honoured
     between flex items). */
  .maq .maq-rework, .maq .maq-rework-section { display: block; }
  .maq .maq-rework > * + * { margin-top: 16px; }
  .maq .maq-rework-section > * + * { margin-top: 6px; }
  .maq .maq-rework-section-title, .maq .maq-rework-title { break-after: avoid; page-break-after: avoid; }
  .maq .maq-reminder { padding: 16px; border: 1px solid var(--maq-border); background: #FFFFFF; color: var(--maq-text); break-inside: avoid; }
  .maq .maq-reminder .sct-how-title, .maq .maq-reminder p, .maq .maq-reminder .sct-copyright { color: var(--maq-text); }
}
