/* ============================================================
   QA Widget page — layout, tabs and UI previews.
   Builds on the shared OD styling (reset.css, main.css, bieb.css).
   ============================================================ */

/* ---------- Page layout: content + right aside ---------- */
.qaw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.qaw-main {
  min-width: 0;
}

/* ---------- Intro ---------- */
.qaw-intro {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.qaw-intro__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(11, 85, 4, 0.14);
}

.qaw-intro__text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #51606b;
  margin: 0 0 10px;
}

.qaw-intro__text p:last-child {
  margin-bottom: 0;
}

/* ---------- Aside ---------- */
.qaw-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qaw-card {
  background: #fff;
  border: 1px solid var(--od-border);
  border-radius: 14px;
  padding: 22px 20px;
}

.qaw-card--cta {
  /* Alleen de CTA plakt mee. Niet omdat de aside te hoog is, maar omdat
     `align-items: start` op .qaw-layout de aside-grid-area op eigen hoogte zet,
     waardoor sticky daar nul bewegingsruimte heeft. */
  position: sticky;
  top: 24px;
  border-color: var(--od-green);
  box-shadow: 0 10px 28px rgba(11, 85, 4, 0.1);
}

.qaw-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7682;
  margin-bottom: 8px;
}

.qaw-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1c2a22;
  margin-bottom: 4px;
}

.qaw-card__version {
  font-size: 0.82rem;
  color: #6a7682;
  margin-bottom: 18px;
}

.qaw-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--od-green);
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.qaw-download:hover {
  background: var(--od-green-dark);
  transform: translateY(-1px);
}

.qaw-download svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.qaw-download__meta {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #6a7682;
  margin-top: 10px;
  line-height: 1.5;
}

.qaw-card > h3:not(.qaw-card__title) {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a7682;
  margin: 0 0 12px;
}

.qaw-speclist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

.qaw-speclist div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.4;
}

.qaw-speclist span:first-child {
  color: #6a7682;
}

.qaw-speclist strong {
  font-weight: 600;
  color: #1c2a22;
  text-align: right;
}

.qaw-toollist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.qaw-tool {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #1c2a22;
}

.qaw-tool code {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  /* Niet #6a7682: dat haalt 4.64 op wit maar 4.31 op deze getinte chip. */
  color: #5b6874;
  background: #f4f7f9;
  border-radius: 4px;
  padding: 1px 5px;
}

.qaw-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--od-green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qaw-privacy {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #6a7682;
  margin: 0;
}

/* ---------- Tabs ---------- */
/* ---------- Paginakop met taalschakelaar ---------- */
.qaw-pagehead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  /* Op smalle schermen valt de schakelaar onder de titel in plaats van hem samen
     te persen. */
  flex-wrap: wrap;
}

.qaw-lang {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.qaw-lang__item {
  /* Niet #9aa4ad: dat haalde 2,29:1 op --od-bg en faalde WCAG 1.4.3 — en dan nog
     op de link, terwijl de actieve tekst wél leesbaar was. Visueel leek de
     klikbare optie daardoor uitgeschakeld. #5b6874 haalt 5,16:1.
     Let op het verschil met de kaarten: daar staat #6a7682 op wit (4,64:1, goed),
     hier staat het op de getinte paginaachtergrond (4,19:1, te laag). Trek die
     twee dus niet gelijk. */
  color: #5b6874;
  text-decoration: none;
}

.qaw-lang__item:hover,
.qaw-lang__item:focus-visible {
  color: #1c2a22;
  text-decoration: underline;
}

.qaw-lang__item.is-current {
  color: #1c2a22;
  /* Geen link, dus geen aanwijzing dat er iets te klikken valt. */
  cursor: default;
}

.qaw-changelog-note {
  margin: 0 0 26px;
  font-size: 0.85rem;
  /* Op de paginaachtergrond, niet op een witte kaart — zie .qaw-lang__item. */
  color: #5b6874;
  font-style: italic;
}

.qaw-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--od-border);
  margin-bottom: 28px;
}

.qaw-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #5b6874;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.qaw-tab:hover {
  color: var(--od-green-dark);
}

.qaw-tab[aria-selected='true'] {
  color: var(--od-green);
  border-bottom-color: var(--od-green);
}

.qaw-panel[hidden] {
  display: none;
}

/* ---------- Steps ---------- */
.qaw-steps {
  list-style: none;
  counter-reset: qaw-step;
  margin: 0 0 32px;
  padding: 0;
}

.qaw-steps > li {
  counter-increment: qaw-step;
  position: relative;
  padding: 0 0 26px 52px;
}

.qaw-steps > li::before {
  content: counter(qaw-step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--od-green);
  border-radius: 50%;
}

/* Connecting line between steps */
.qaw-steps > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 8px;
  width: 2px;
  background: var(--od-border);
}

.qaw-steps > li:last-child {
  padding-bottom: 0;
}

.qaw-step__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1c2a22;
  margin-bottom: 6px;
  padding-top: 4px;
}

.qaw-steps p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #51606b;
  margin: 0 0 8px;
}

.qaw-steps p:last-child {
  margin-bottom: 0;
}

/* ---------- Generic text bits ---------- */
.qaw-panel h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--od-green);
  margin: 40px 0 16px;
}

.qaw-panel > p,
.qaw-intro__text p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #51606b;
  margin: 0 0 12px;
}

.qaw-main p a,
.qaw-faq__body a {
  color: var(--od-green);
  text-decoration: underline;
}

.qaw-lede {
  font-size: 0.95rem;
  color: #51606b;
  margin-bottom: 26px;
}

.qaw-main code,
.qaw-main kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: #f4f7f9;
  border: 1px solid var(--od-border);
  border-radius: 4px;
  padding: 1px 5px;
  color: #1c2a22;
  /* Lange paden/URLs mogen breken in plaats van de kolom uitduwen. */
  overflow-wrap: anywhere;
}

.qaw-main kbd {
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 0 var(--od-border);
}

/* ---------- Notice block (matches the widget's own notice styling) ---------- */
.qaw-notice {
  display: flex;
  gap: 12px;
  background: var(--od-green-soft);
  border: 1px solid #bfd9b6;
  border-left: 4px solid var(--od-green);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 20px;
}

.qaw-notice svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: var(--od-green-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Eigen kolom naast het icoon, zodat meerdere alinea's onder elkaar staan in
   plaats van naast elkaar — .qaw-notice is een flexrij. */
.qaw-notice__body {
  min-width: 0;
}

.qaw-notice p {
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--od-green-dark);
  margin: 0;
}

.qaw-notice p + p {
  margin-top: 12px;
}

/* Eerste link in een notice-blok. Neemt de groene tekstkleur over in plaats van
   het browserblauw, met een onderstreping zodat hij als link te herkennen blijft —
   kleur alleen is geen voldoende aanwijzing (WCAG 1.4.1). */
.qaw-notice a {
  color: var(--od-green-dark);
  font-weight: 600;
  text-decoration: underline;
}

.qaw-notice a:hover,
.qaw-notice a:focus-visible {
  text-decoration: none;
}

.qaw-notice code,
.qaw-notice kbd {
  background: #fff;
  border-color: #bfd9b6;
  color: var(--od-green-dark);
}

/* ---------- Feature list ---------- */
.qaw-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.qaw-features li {
  background: #fff;
  border: 1px solid var(--od-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.87rem;
  line-height: 1.5;
  color: #51606b;
}

.qaw-features strong {
  display: block;
  font-weight: 600;
  color: #1c2a22;
  margin-bottom: 3px;
}

/* ---------- FAQ ---------- */
.qaw-faq {
  border: 1px solid var(--od-border);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}

.qaw-faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c2a22;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qaw-faq summary::-webkit-details-marker {
  display: none;
}

.qaw-faq summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--od-green);
  flex-shrink: 0;
}

.qaw-faq[open] summary::after {
  content: '−';
}

.qaw-faq summary:hover {
  background: #fafcfa;
}

.qaw-faq__body {
  padding: 0 18px 16px;
}

.qaw-faq__body p {
  font-size: 0.87rem;
  line-height: 1.6;
  color: #51606b;
  margin: 0 0 8px;
}

.qaw-faq__body p:last-child {
  margin-bottom: 0;
}

/* ---------- Changelog ---------- */
.qaw-changelog h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1c2a22;
  margin: 14px 0 6px;
}

.qaw-changelog h4:first-of-type {
  margin-top: 0;
}

.qaw-changelog h4 span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--od-green-dark);
  background: var(--od-green-light);
  border-radius: 20px;
  padding: 2px 9px;
}

.qaw-changelog ul {
  /* reset.css zet list-style: none op alle lijsten; hier weer aan. */
  list-style: disc;
  margin: 0;
  padding-left: 20px;
}

.qaw-changelog li {
  font-size: 0.87rem;
  line-height: 1.6;
  color: #51606b;
  margin-bottom: 4px;
}

/* Link naar de volledige historie. De aside toont twee releases; de rest staat
   op /qa-tool-installation/changelog. */
.qaw-changelog__more {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--od-border);
  font-size: 0.85rem;
}

.qaw-changelog__more a {
  color: var(--od-green-dark);
  font-weight: 600;
  text-decoration: none;
}

.qaw-changelog__more a::after {
  content: ' \2192';
}

.qaw-changelog__more a:hover,
.qaw-changelog__more a:focus-visible {
  text-decoration: underline;
}

/* ============================================================
   Changelog-pagina — één kolom, geen aside.
   ============================================================ */
.qaw-breadcrumb {
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.qaw-breadcrumb a {
  /* 4,19:1 met #6a7682 op de paginaachtergrond — zie .qaw-lang__item. */
  color: #5b6874;
  text-decoration: none;
}

.qaw-breadcrumb a:hover,
.qaw-breadcrumb a:focus-visible {
  color: var(--od-green-dark);
  text-decoration: underline;
}

.qaw-changelog-page {
  max-width: 68ch;
  padding-bottom: 60px;
}

.qaw-inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--od-green);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.qaw-inline-cta:hover,
.qaw-inline-cta:focus-visible {
  background: var(--od-green-dark);
}

.qaw-release {
  margin-top: 34px;
}

.qaw-release h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c2a22;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--od-border);
}

.qaw-release__tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--od-green-dark);
  background: var(--od-green-light);
  border-radius: 20px;
  padding: 2px 9px;
}

.qaw-release ul {
  /* reset.css zet list-style: none op alle lijsten; hier weer aan. */
  list-style: disc;
  margin: 0;
  padding-left: 22px;
}

.qaw-release li {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #51606b;
  margin-bottom: 6px;
}

/* ============================================================
   Widget UI previews.
   These are HTML/CSS replicas built from the extension's own
   stylesheet (shared/qa-shared.js + popup/popup.html), so the
   page always shows the real design. Not interactive.
   ============================================================ */

.qaw-preview {
  /* <figure> heeft een UA-margin; expliciet nulzetten. */
  margin: 0 0 24px;
  padding: 0;
}

.qaw-preview__caption {
  font-size: 0.78rem;
  color: #5b6874;
  margin: 10px 0 0;
  line-height: 1.5;
}

.qaw-preview__stage {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px;
  padding: 24px;
  background: repeating-linear-gradient(45deg, #f4f7f9, #f4f7f9 10px, var(--od-bg) 10px, var(--od-bg) 20px);
  border: 1px solid var(--od-border);
  border-radius: 12px;
}

/* --- Scope: everything below mirrors the extension CSS --- */
.qaw-ui {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.4;
  box-sizing: border-box;
}

.qaw-ui *,
.qaw-ui *::before,
.qaw-ui *::after {
  box-sizing: border-box;
}

/* FAB */
.qaw-ui-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--od-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Panel */
.qaw-ui-panel {
  width: 340px;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.qaw-ui-head {
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.qaw-ui-head-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 14px;
  background: var(--od-ink);
}

.qaw-ui-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.qaw-ui-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
}

.qaw-ui-powered {
  font-size: 11px;
  color: #d1d5db;
  white-space: nowrap;
}

.qaw-ui-powered b {
  color: #fff;
  font-weight: 600;
}

.qaw-ui-head-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
}

.qaw-ui-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--od-ink);
  display: block;
}

.qaw-ui-subline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.qaw-ui-tooltag {
  font-size: 11px;
  font-weight: 600;
  color: var(--od-green-dark);
  background: var(--od-green-soft);
  padding: 2px 7px;
  border-radius: 4px;
}

/* Neutraal zolang er niets gedetecteerd is — komt overeen met
   .tool-tag--none in de extensie. */
.qaw-ui-tooltag--none {
  color: #6b7280;
  background: #f3f4f6;
  font-weight: 500;
}

/* De versie van de extensie, niet van de tool. Stond eerder binnen de tag,
   waar het las als "Convert v1.2.4"; nu ernaast, zoals .tool-ver. */
.qaw-ui-toolver {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
}

/* Empty state in het panel — .empty in de extensie. */
.qaw-ui-empty {
  padding: 20px 14px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

.qaw-ui-empty small {
  color: #9ca3af;
}

.qaw-ui-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

/* Cookie toggle */
.qaw-ui-cookie {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 11px;
  color: #6b7280;
}

.qaw-ui-cookie-track {
  position: relative;
  display: block;
  width: 28px;
  height: 16px;
  background: #d1d5db;
  border-radius: 8px;
  flex-shrink: 0;
}

.qaw-ui-cookie-track::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}

.qaw-ui-cookie.on .qaw-ui-cookie-track {
  background: var(--od-green);
}

.qaw-ui-cookie.on .qaw-ui-cookie-track::after {
  left: 14px;
}

.qaw-ui-iconbtn {
  background: transparent;
  border: none;
  color: #6b7280;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.qaw-ui-helpbtn {
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  width: 22px;
  height: 22px;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  color: var(--od-green-dark);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tabs inside the widget */
.qaw-ui-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  background: #fafbfc;
}

.qaw-ui-tab {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.qaw-ui-tab.active {
  color: var(--od-green);
  border-bottom-color: var(--od-green);
  background: #fff;
}

.qaw-ui-count {
  font-size: 10px;
  background: #e5e7eb;
  color: #4b5563;
  padding: 1px 6px;
  border-radius: 8px;
  min-width: 18px;
}

.qaw-ui-tab.active .qaw-ui-count {
  background: var(--od-green-soft);
  color: var(--od-green-dark);
}

/* Filter bars */
.qaw-ui-filter {
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qaw-ui-filter-top {
  display: flex;
  gap: 6px;
  align-items: center;
}

.qaw-ui-input {
  /* Doet een <input> na: placeholdertekst clipt, wrapt niet. */
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 5px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
  color: #9ca3af;
  background: #fff;
}

.qaw-ui-clear {
  padding: 5px 10px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.qaw-ui-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.qaw-ui-chip {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-weight: 500;
}

.qaw-ui-chip.active {
  background: var(--od-green);
  border-color: var(--od-green);
  color: #fff;
}

/* Body */
.qaw-ui-body {
  padding: 4px 0;
}

/* Experiment / variant rows */
.qaw-ui-exp {
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
}

.qaw-ui-exp:last-child {
  border-bottom: none;
}

.qaw-ui-exp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  gap: 8px;
}

.qaw-ui-exp-name {
  font-weight: 500;
  font-size: 13px;
}

.qaw-ui-exp-meta {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}

.qaw-ui-varlist {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qaw-ui-var {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid transparent;
}

.qaw-ui-var.current {
  background: #ecfeff;
  border-color: #a5f3fc;
}

.qaw-ui-var.pending {
  background: #fef3c7;
  border-color: #fcd34d;
}

.qaw-ui-radio {
  width: 13px;
  height: 13px;
  border: 1px solid #9ca3af;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
  position: relative;
}

.qaw-ui-radio.on {
  border-color: var(--od-green);
  border-width: 4px;
}

.qaw-ui-varname {
  flex: 1;
}

.qaw-ui-varorig {
  display: block;
  color: #9ca3af;
  font-weight: 400;
  font-size: 11px;
  margin-top: 2px;
}

.qaw-ui-varbadge {
  font-size: 11px;
  color: #6b7280;
}

.qaw-ui-var.current .qaw-ui-varbadge {
  color: #0e7490;
}

.qaw-ui-var.pending .qaw-ui-varbadge {
  color: #92400e;
}

/* Event rows */
.qaw-ui-event {
  padding: 6px 14px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
}

.qaw-ui-event-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qaw-ui-elabel {
  /* Waarden uit .event-label in shared/qa-shared.js. */
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3px;
  min-width: 54px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  background: #f3f4f6;
  color: #6b7280;
  flex-shrink: 0;
}

.qaw-ui-elabel.Init {
  background: #ede9fe;
  color: #6d28d9;
}

.qaw-ui-elabel.Click {
  background: #ffedd5;
  color: #c2410c;
}

.qaw-ui-elabel.Viewport {
  background: #dcfce7;
  color: #15803d;
}

.qaw-ui-elabel.Interaction {
  background: #dbeafe;
  color: #1d4ed8;
}

.qaw-ui-etext {
  min-width: 0;
  word-break: break-word;
}

.qaw-ui-etestid {
  font-weight: 700;
  color: #111827;
}

.qaw-ui-evariant {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #6b7280;
}

.qaw-ui-esep {
  color: #d1d5db;
  margin: 0 2px;
}

.qaw-ui-eaction {
  color: #6b7280;
}

/* Footer */
.qaw-ui-footer {
  padding: 10px 14px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  gap: 8px;
}

.qaw-ui-footer span {
  flex: 1;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.qaw-ui-footer span.primary {
  background: var(--od-green);
  border-color: var(--od-green);
  color: #fff;
}

/* --- Popup replica --- */
.qaw-ui-popup {
  width: 300px;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.qaw-ui-popup .qaw-ui-head-main {
  background: #f9fafb;
  padding: 10px 14px 12px;
  align-items: center;
}

.qaw-ui-popup-version {
  font-size: 12px;
  font-weight: 600;
  color: var(--od-green-dark);
}

.qaw-ui-popup-body {
  padding: 12px 14px;
}

.qaw-ui-togglerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.qaw-ui-togglerow .l1 {
  font-size: 13px;
  font-weight: 600;
  color: var(--od-ink);
}

.qaw-ui-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  background: var(--od-green);
  border-radius: 12px;
}

.qaw-ui-switch::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.qaw-ui-popup-notice {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--od-green-soft);
  border: 1px solid #bfd9b6;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--od-green-dark);
}

.qaw-ui-popup-notice p {
  margin: 0 0 8px;
}

.qaw-ui-popup-notice ul {
  /* De echte popup heeft geen CSS-reset, dus daar geldt de UA-default disc. */
  list-style: disc;
  margin: 0;
  padding-left: 20px;
}

.qaw-ui-popup-notice li {
  margin: 3px 0;
}

.qaw-ui-popup-notice kbd {
  display: inline-block;
  background: #fff;
  border: 1px solid #bfd9b6;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--od-green-dark);
  box-shadow: none;
}

.qaw-ui-popup-meta {
  padding: 8px 14px 10px;
  font-size: 10px;
  color: #9ca3af;
  display: flex;
  justify-content: flex-end;
}

.qaw-ui-popup-meta span {
  color: var(--od-green-dark);
  font-weight: 600;
}

/* Icon with OFF badge */
.qaw-ui-badged {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.qaw-ui-badged img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: block;
}

.qaw-ui-offbadge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: #d92d20;
  border: 2px solid #fff;
  border-radius: 4px;
  padding: 0 3px;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .qaw-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Alleen de download-CTA naar boven, niet de hele aside. Voorheen kreeg de
     aside order:-1, waardoor mobiele gebruikers eerst vijf kaarten en een
     changelog moesten doorscrollen voordat de uitleg begon — en de tab-order
     stond volledig los van de visuele volgorde. Nu wijkt alleen de CTA af,
     precies het element dat je bovenaan wilt hebben. */
  .qaw-aside {
    display: contents;
  }

  /* display:contents laat de gap van .qaw-aside vallen; de kaarten erven dan de
     32px van .qaw-layout in plaats van hun eigen 16px. */
  .qaw-layout {
    row-gap: 16px;
  }

  .qaw-card--cta {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .qaw-intro {
    flex-direction: column;
    gap: 14px;
  }

  .qaw-tabs {
    gap: 0;
  }

  .qaw-tab {
    flex: 1;
    padding: 12px 8px;
    font-size: 0.87rem;
  }

  .qaw-preview__stage {
    padding: 14px;
    gap: 16px;
  }

  .qaw-steps > li {
    padding-left: 44px;
  }
}
