/* ==========================================================================
   Cloud Based POS System - components
   Hero, document layout, table of contents, lists, callouts, cards, steppers,
   tables, FAQ, forms, cookie banner and dialog.
   ========================================================================== */

/* ---- inner-page hero ----------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 56px;
  background:
    radial-gradient(560px 280px at 94% 0%, rgba(20, 184, 166, .13), transparent 70%),
    radial-gradient(420px 220px at 0% 100%, rgba(11, 31, 51, .045), transparent 70%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero__inner { max-width: var(--prose); margin-inline: auto; }
.page-hero--left .page-hero__inner { margin-inline: 0; }
.page-hero h1 {
  margin: 0 0 .75rem;
  font-size: 2.5rem;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.updated {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.lead { font-size: 1.1875rem; line-height: 1.65; color: var(--body); }  /* 19px subheadline */
.lead p { margin: 0 0 1rem; }
.lead > :last-child { margin-bottom: 0; }
.page-hero .hero-actions { margin-top: 1.75rem; }

/* hero photo (16:9): copy on the left, photo on the right; stacked on small screens, copy first */
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 56px; align-items: center; }
.page-hero--media .page-hero__inner { max-width: none; margin-inline: 0; }
.page-hero__media { position: relative; isolation: isolate; }
.page-hero__media::before {      /* decorative offset backdrop behind the photo */
  content: "";
  position: absolute;
  inset: 18px -14px -14px 18px;
  z-index: -1;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--tint-2), var(--tint));
}
.page-hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}
/* header banner (legal pages, 1600x500): a wide strip under the title, as wide as the text column */
.page-hero__banner { max-width: var(--prose); margin: 32px auto 0; }
.page-hero--left .page-hero__banner { margin-inline: 0; }
.page-hero__banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
@media (max-width: 899px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero__media { max-width: 560px; }
}
@media (max-width: 720px) {
  .page-hero__banner { margin-top: 24px; }
  .page-hero__banner img { border-radius: 14px; }
}

.jump-links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.jump-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--accent);        /* 5.47:1: the pill edge and text both read as a control */
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
}
.jump-links a:hover { background: var(--tint); color: var(--accent-hover); border-color: var(--accent-hover); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow .icon { transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

@media (max-width: 720px) {
  .page-hero { padding: 56px 0 40px; }
  .page-hero h1 { font-size: 2.125rem; }
  .lead { font-size: 1.0625rem; }
}

/* ---- document layout and sections ---------------------------------------- */
.doc-layout { padding-block: 0 80px; }
.doc-main { min-width: 0; max-width: var(--prose); margin-inline: auto; }
.has-toc .doc-main { margin-inline: 0; }
.prose--end { padding-bottom: 80px; }
@media (max-width: 720px) { .prose--end { padding-bottom: 56px; } }

.doc-section { scroll-margin-top: calc(var(--header-h) + 16px); padding-top: 40px; }
.doc-section + .doc-section { margin-top: 32px; border-top: 1px solid var(--border); }
.doc-section h2 { margin: 0 0 1.1rem; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.02em; }
.doc-section h3 { margin: 2rem 0 .65rem; font-size: 1.375rem; line-height: 1.25; }
.doc-section > h3:first-of-type { margin-top: 1.5rem; }
.band { scroll-margin-top: calc(var(--header-h) + 8px); }

/* section pictures: an illustration or 4:3 photo beside the heading, a 16:9 photo under it. They only illustrate the text (alt="") */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; margin: 0 0 1.4rem; }
.section-head h2 { flex: 1 1 auto; min-width: 0; margin: 0; }
.section-fig { margin: 0; }
.section-fig img { display: block; width: 100%; height: auto; }
.section-fig--side { flex: 0 0 auto; width: 250px; }
.section-fig--side img { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.section-fig--wide { margin: 0 0 1.5rem; }
.section-fig--wide img { border: 1px solid var(--border); border-radius: 16px; background: var(--bg-alt); box-shadow: var(--shadow-sm); }

/* a dark band with an illustration: text on the left, picture on the right */
.band-split { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px 44px; align-items: center; max-width: var(--prose); margin-inline: auto; }
.band-split__text > :last-child { margin-bottom: 0; }
.band-split .section-fig--side { width: 100%; }
.band-split .section-fig--side img { border-color: rgba(255, 255, 255, .5); }

/* a dark band over a blurred photo: the photo sits under a 90% [BACKGROUND DARK] overlay (white text 12.49:1 even over a white pixel) */
.band--photo { isolation: isolate; background: var(--bg-dark); }
.band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 31, 51, .9); }
.band--photo .btn--primary, .band--photo .btn--primary:hover { border-color: #fff; }   /* the accent edge alone drops to 2.28:1 over the photo */

@media (max-width: 720px) {
  .doc-layout { padding-bottom: 56px; }
  .doc-section { padding-top: 32px; }
  .doc-section + .doc-section { margin-top: 24px; }
  .doc-section h2 { font-size: 1.5rem; }
  .doc-section h3 { font-size: 1.25rem; }
  .band--dark h2 { font-size: 1.5rem; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 1.2rem; }
  .section-fig--side { width: min(100%, 300px); }
  .band-split { grid-template-columns: 1fr; }
  .band-split .section-fig--side { width: min(100%, 300px); }
}

/* Wide components (card rows) may use the full content width inside a centred prose column.
   Pages with a table of contents keep everything in the main column. */
@supports (width: 1cqw) {
  .doc-layout:not(.has-toc) { container-type: inline-size; }
  .doc-layout:not(.has-toc) .wide { width: 100cqw; max-width: none; margin-left: calc((100% - 100cqw) / 2); }
}

/* default lists inside content */
:where(.doc-main, .band .prose, .band-split__text, .card, .callout, .quote-box) :where(ul, ol):not([class]) { margin: 0 0 1rem; padding-left: 1.4rem; }
:where(.doc-main, .band .prose, .band-split__text, .card, .callout, .quote-box) li { margin: .4rem 0; padding-left: .15rem; }
:where(.doc-main, .card, .callout) li::marker { color: var(--accent); }
.band--dark li::marker { color: var(--accent-bright); }
:where(.doc-main) > :last-child { margin-bottom: 0; }

/* ---- table of contents ("On this page") ----------------------------------- */
.toc-mobile-wrap { padding-top: 24px; }
.toc-mobile { max-width: var(--prose); border: 1px solid var(--border-strong); border-radius: var(--radius); background: #fff; }
.has-toc-mobile-left .toc-mobile { margin-inline: 0; }
.toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--primary);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary .icon { transition: transform .2s ease; }
.toc-mobile[open] summary .icon { transform: rotate(180deg); }
.toc-mobile nav { padding: 4px 18px 16px; }

.toc ol, .toc-mobile ol, .toc-desktop ol { margin: 0; padding: 0; list-style: none; }
.toc-mobile li, .toc-desktop li { margin: 0; padding: 0; }
.toc-mobile a, .toc-desktop a {
  display: block;
  padding: 6px 12px;
  border-left: 2px solid transparent;
  color: var(--body);
  font-size: .95rem;
  line-height: 1.4;
  text-decoration: none;
}
.toc-mobile a { padding-block: 9px; }
.toc-mobile a:hover, .toc-desktop a:hover { color: var(--accent); text-decoration: underline; }
.toc-mobile a[aria-current], .toc-desktop a[aria-current] { color: var(--accent); border-left-color: var(--accent); font-weight: 650; }

.toc-desktop { display: none; }
.toc-title {
  margin: 0 0 10px;
  padding-left: 14px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .toc-bp-1024.toc-mobile-wrap { display: none; }
  .toc-bp-1024.toc-desktop { display: block; }
  .doc-layout.toc-bp-1024 {
    display: grid;
    grid-template-columns: minmax(0, var(--prose)) minmax(190px, 264px);
    column-gap: 56px;
    align-items: start;
  }
}
@media (min-width: 1100px) {
  .toc-bp-1100.toc-mobile-wrap { display: none; }
  .toc-bp-1100.toc-desktop { display: block; }
  .doc-layout.toc-bp-1100 {
    display: grid;
    grid-template-columns: minmax(0, var(--prose)) minmax(190px, 264px);
    column-gap: 56px;
    align-items: start;
  }
}
.toc-desktop {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  margin-top: 40px;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding-bottom: 8px;
}
.toc-desktop nav { border-left: 2px solid var(--border); }
.toc-desktop .toc-title { padding-left: 14px; }
.toc-desktop a { margin-left: -2px; }

/* ---- lists ---------------------------------------------------------------- */
.list-cols { margin: 0 0 1rem; padding-left: 1.4rem; }
.list-cols li { margin: 0 0 .5rem; padding-left: .15rem; break-inside: avoid; }   /* bottom margin only so every column starts level */
.list-cols li::marker { color: var(--accent); }
@media (min-width: 768px) {
  .list-cols.cols-2 { columns: 2; column-gap: 48px; }
  .list-cols.cols-3 { columns: 3; column-gap: 40px; }
}

.checklist { margin: 0 0 1rem; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  margin: 0 0 .65rem;
  padding-left: 34px;
  break-inside: avoid;
}
.checklist li::before {            /* decorative check: CSS background, not exposed to assistive tech */
  content: "";
  position: absolute;
  left: 0; top: .32em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat,
    var(--tint);
}
.band--dark .checklist li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314B8A6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat,
    rgba(20, 184, 166, .14);
}
@media (min-width: 768px) {
  .checklist.cols-2 { columns: 2; column-gap: 48px; }
}

/* "this doesn't buy" list: decorative cross icons (CSS background, not exposed to assistive tech); the text carries the meaning */
.x-list { margin: 0 0 1rem; padding: 0; list-style: none; }
.x-list li { position: relative; margin: 0 0 .55rem; padding-left: 34px; }
.x-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .32em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--border);
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1rem; padding: 0; list-style: none; }
.pill-list li {
  margin: 0;
  padding: 6px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--body);
  font-size: .97rem;
  line-height: 1.4;
}

.tile-list { display: grid; gap: 12px; margin: 0 0 1rem; padding: 0; list-style: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-list li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  font-size: .97rem;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 899px) { .tile-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .tile-list { grid-template-columns: 1fr; } }

/* ---- callouts and notices ------------------------------------------------- */
.callout {
  margin: 0 0 1.25rem;
  padding: 20px 24px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-alt);
}
.callout > :last-child { margin-bottom: 0; }
.callout--accent { border-left-color: var(--accent); }
.callout--warning { border-left-color: var(--warning); }
.callout--neutral { border-left: 0; border-radius: var(--radius); border: 1px solid var(--border); }
.callout--card { border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.callout--large { padding: 24px 28px; }
.callout--large p { font-size: 1.0625rem; }
.callout__lead { color: var(--primary); font-weight: 650; }

.draft-note {
  display: inline;
  padding: 1px 8px;
  border: 1px solid #F3D28A;
  border-radius: 6px;
  background: var(--warning-bg);
  color: #7C2D12;                 /* 8.1:1 on the amber tint */
  font-size: .85em;
  font-weight: 700;
  line-height: 1.7;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.draft-note--required { border-color: #FDBA74; background: #FFEDD5; }

/* ---- statistics ----------------------------------------------------------- */
.stat { display: flex; flex-direction: column; gap: 2px; margin: 0; line-height: 1.3; }
.stat__num { color: var(--primary); font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat__label { color: var(--body); font-size: .97rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: 20px 44px; margin: 1.75rem 0 0; }
.stat-row .stat { padding-left: 16px; border-left: 3px solid var(--accent-bright); }
.doc-section .stat-row { margin: 0 0 1.5rem; }
.stat-card {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stat-card.stat { margin-bottom: 1.25rem; }

/* ---- cards and grids ------------------------------------------------------ */
.grid { display: grid; gap: var(--gap); margin-bottom: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
/* three in a row from tablet width, stacked on mobile */
.grid-3-solid { display: grid; gap: var(--gap); margin-bottom: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .grid-3-solid { grid-template-columns: 1fr; } }
.grid > li, .grid-3-solid > li { list-style: none; }
ul.grid, ol.grid, ul.grid-3-solid { margin-top: 0; padding: 0; list-style: none; }

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.card > :last-child { margin-bottom: 0; }
.card h3, .card .card__title {
  display: block;
  margin: 0 0 .5rem;
  color: var(--primary);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}
.doc-section .card h3 { margin-top: 0; font-size: 1.1875rem; }
.card p { font-size: 1rem; line-height: 1.65; }
.card--alt { background: var(--bg-alt); box-shadow: none; }
.card--stack p, .card--flat p { font-size: inherit; line-height: inherit; }   /* long-form cards keep the 17px body text */
.card--stack { margin-bottom: 1.25rem; }
.card--stack h3, .doc-section .card--stack h3 { font-size: 1.375rem; margin-bottom: .6rem; }   /* 22px H3 */
.card--stack .copy-wrap { margin-top: .25rem; }
.card--flat { box-shadow: none; }

/* card with a 4:3 photo or illustration on top (home: How We Help, Compare); the text sits in .card__body */
.card--photo { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media--product { background: #fff; border-bottom: 1px solid var(--border); }   /* product images sit on white, never cropped */
.card__media--product img { object-fit: contain; }
.card__body { flex: 1 1 auto; padding: 24px; }
.card__body > :last-child { margin-bottom: 0; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--accent);
}
.icon-badge .icon { width: 32px; height: 32px; }

.label-line {            /* small uppercase label used as an H2 for document structure */
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.4;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.6;
}

/* sponsored-content label samples */
.sample-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1rem; padding: 0; list-style: none; }
.sample-badges li { margin: 0; padding: 0; }
.sample-badge {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--primary);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.5;
}

/* side-by-side comparison lists (Editorial Policy, Advertise) */
.split { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.25rem; }
@media (max-width: 719px) { .split { grid-template-columns: 1fr; } }
.split__label { margin: 0 0 .6rem; color: var(--primary); font-size: 1.0625rem; font-weight: 700; }
.split .card, .split .callout { height: 100%; margin-bottom: 0; }
.split ul:not([class]) { margin-bottom: 0; }

.card-row { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.card-row > .card { scroll-margin-top: calc(var(--header-h) + 16px); }
.card-row + .doc-section { margin-top: 40px; border-top: 1px solid var(--border); }
.card-row h2 { margin: 0 0 .75rem; font-size: 1.375rem; letter-spacing: -.01em; }
@media (max-width: 899px) { .card-row { grid-template-columns: 1fr; } }

.address { margin: 0 0 1rem; line-height: 1.65; }
p.tight { margin-bottom: .25rem; }
.contact-lines { margin: 0 0 1rem; }
.contact-lines p { margin: 0 0 .35rem; }
.contact-label { color: var(--primary); font-weight: 700; }
.band--dark .contact-label { color: #fff; }
.email-large { font-size: 1.1875rem; font-weight: 700; }

/* ---- steppers -------------------------------------------------------------- */
.steps { --circle: 32px; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.steps > li {
  position: relative;
  display: grid;
  grid-template-columns: var(--circle) minmax(0, 1fr);
  column-gap: 16px;
  margin: 0;
  padding: 0 0 22px;
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:not(:last-child) { min-height: calc(var(--circle) + 38px); }
.steps > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(var(--circle) / 2 - 1px);
  top: calc(var(--circle) + 6px);
  bottom: 6px;
  width: 2px;
  background: var(--border-strong);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--circle); height: var(--circle);
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
}
.steps > li > div { padding-top: 3px; }
.steps > li > div > p { margin: 0; }
.steps--filled .step-num { background: var(--accent); color: #fff; }       /* white on #0F766E, 5.47:1 */
.steps--lg { --circle: 40px; }
.steps--lg .step-num { font-size: 1.0625rem; }
.steps--lg > li > div { padding-top: 6px; }

@media (min-width: 900px) {
  .steps--h { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
  .steps--h > li { display: block; padding-bottom: 0; }
  .steps--h .step-num { margin-bottom: 16px; }
  .steps--h > li > div { padding-top: 0; }
  .steps--h > li:not(:last-child)::before {
    left: calc(var(--circle) + 12px);
    right: -12px;
    top: calc(var(--circle) / 2 - 1px);
    bottom: auto;
    width: auto; height: 2px;
  }
}

/* ---- tables ------------------------------------------------------------------ */
.table-wrap { margin: 0 0 1.25rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.data-table caption { padding: 0 0 .75rem; color: var(--primary); font-size: 1rem; font-weight: 700; text-align: left; }
.data-table thead th {
  padding: 12px 16px;
  background: var(--primary);          /* [TABLE HEADER BG] */
  color: #fff;                         /* [TABLE HEADER TEXT] */
  font-weight: 650;
  text-align: left;
  vertical-align: bottom;
}
.data-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.data-table thead th:last-child { border-top-right-radius: var(--radius-sm); }
.data-table td, .data-table tbody th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}
.data-table tbody th { color: var(--primary); font-weight: 650; }
.data-table tbody tr:nth-child(even) { background: var(--bg-alt);  /* [TABLE ZEBRA BG] */ }
.data-table code, .code { font-family: var(--mono); font-size: .9em; color: var(--primary); overflow-wrap: anywhere; }
.data-table .is-empty td { padding: 20px 16px; color: var(--body); text-align: center; }

.data-table--cookies td:nth-child(2) code { white-space: nowrap; }   /* cookie names stay on one line */
.weight { display: flex; align-items: center; gap: 12px; min-width: 130px; }
.weight__bar { flex: 1 1 auto; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.weight__bar > span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.weight__num { flex: none; min-width: 3ch; color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 719px) {
  .data-table, .data-table tbody, .data-table tr, .data-table td, .data-table tbody th, .data-table caption { display: block; width: 100%; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .data-table tbody tr {
    margin-bottom: 14px;
    padding: 6px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
  }
  .data-table tbody tr:nth-child(even) { background: #fff; }
  .data-table td, .data-table tbody th { padding: 10px 16px; border: 0; }
  .data-table td::before, .data-table tbody th::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .data-table .is-empty td::before { display: none; }
  .weight { min-width: 0; }
}

/* ---- FAQ accordion ----------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: border-color .15s ease; }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 22px;
  border-radius: var(--radius);
  color: var(--primary);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary:focus-visible { outline-offset: -3px; }
.faq-item summary .icon { color: var(--accent); transition: transform .2s ease; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; }
.faq-body p { margin: 0; font-size: 1rem; line-height: 1.7; }

/* Global Privacy Control confirmation (opt-out page) */
.gpc-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: var(--prose);
  margin: 1.25rem 0 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--tint);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.5;
}
.gpc-note[hidden] { display: none; }
.gpc-note .icon { margin-top: .15em; color: var(--accent); }
.chip-label { margin: 0 0 .35rem; }

/* ---- quote boxes, copy buttons, code chips ------------------------------------- */
.quote-box {
  margin: 0 0 .75rem;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-alt);
}
.quote-box p { margin: 0; color: var(--primary); }
.copy-wrap { display: inline-flex; vertical-align: middle; }
.btn--copy { min-height: 44px; font-size: .97rem; }
.btn--copy .icon { width: 1.1em; height: 1.1em; }
.btn--copy.is-done { background: var(--tint); border-color: var(--accent); }

.code-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 1rem;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.code-chip code { font-family: var(--mono); font-size: .97rem; color: var(--primary); overflow-wrap: anywhere; }

/* ---- corrections log pieces ------------------------------------------------------ */
.status-line { display: flex; align-items: center; gap: 10px; margin: 0 0 1rem; color: var(--primary); font-weight: 650; }
.status-line .icon { width: 1.4em; height: 1.4em; color: var(--accent); }
.example-card {
  position: relative;
  margin: 0 0 1.25rem;
  padding: 30px 24px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
}
.example-card__badge {
  position: absolute;
  top: -13px; right: 18px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.kv-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 22px; margin: 0; }
.kv-grid dt { color: var(--primary); font-weight: 700; }
.kv-grid dd { margin: 0; }
@media (max-width: 599px) { .kv-grid { grid-template-columns: 1fr; gap: 0; } .kv-grid dd { margin-bottom: .75rem; } }
.correction-notice {
  margin: 0 0 1.25rem;
  padding: 18px 22px;
  border-left: 4px solid var(--warning);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-alt);
}
.correction-notice p { margin: 0; }

/* ---- forms ------------------------------------------------------------------------- */
.form-card {
  max-width: 640px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; margin-bottom: 6px; color: var(--primary); font-weight: 650; line-height: 1.4; }
.field .req { color: var(--primary); }
.field .hint { margin: -2px 0 6px; color: var(--muted); font-size: .9rem; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--primary);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
.field select {
  appearance: none;
  padding-right: 42px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 20px no-repeat,
    #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); border-width: 2px; }
.field-error { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0; color: var(--error); font-size: .95rem; font-weight: 650; line-height: 1.4; }
.field-error .icon { margin-top: .1em; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin: 20px 0 0; color: var(--body); font-size: .95rem; line-height: 1.6; }
.form-card .btn { min-width: 180px; }

.error-summary {
  margin: 0 0 24px;
  padding: 18px 22px;
  border: 2px solid var(--error);
  border-radius: var(--radius-sm);
  background: #fff;
}
.error-summary:focus { outline: 3px solid var(--error); outline-offset: 2px; }
.error-summary h3 { margin: 0 0 .5rem; color: var(--error); font-size: 1.125rem; }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--error); font-weight: 650; }

.form-success {
  max-width: 640px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.form-success:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.form-success h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.form-success p { margin: 0; color: var(--primary); font-size: 1.0625rem; }

@media (max-width: 560px) { .form-card { padding: 22px 18px; } }

/* ---- cookie banner and dialog -------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 150;
  display: grid;
  gap: 16px 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
  padding: 20px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(11, 31, 51, .22);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .97rem; line-height: 1.55; }
.cookie-banner__title { margin-bottom: 2px !important; color: var(--primary); font-size: 1.0625rem !important; font-weight: 700; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
@media (max-width: 760px) {
  .cookie-banner { grid-template-columns: 1fr; padding: 18px; left: 10px; right: 10px; bottom: 10px; max-height: 70vh; overflow-y: auto; }
  .cookie-banner__actions .btn { flex: 1 1 100%; }
  .cookie-banner__actions .btn--link { flex: 1 1 100%; }
}

.cookie-dialog {
  width: min(600px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--body);
  box-shadow: 0 30px 80px rgba(11, 31, 51, .4);
  overflow: hidden;
}
.cookie-dialog[open] { display: flex; flex-direction: column; }
.cookie-dialog::backdrop { background: rgba(11, 31, 51, .62); }
.cookie-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); }
.cookie-dialog__head h2 { margin: 0; font-size: 1.375rem; }
.cookie-dialog__body { flex: 1 1 auto; padding: 18px 24px; overflow-y: auto; }
.cookie-dialog__body > p { font-size: .97rem; line-height: 1.6; }
.cookie-dialog__foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 24px 20px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.cookie-dialog__foot .btn { flex: 1 1 auto; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}
.icon-btn:hover { background: var(--bg-alt); color: var(--accent); }
.icon-btn .icon { width: 24px; height: 24px; }

.consent-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.consent-cat:last-of-type { border-bottom: 0; }
.consent-cat h3 { margin: 0 0 4px; font-size: 1.0625rem; }
.consent-cat p { margin: 0; font-size: .93rem; line-height: 1.55; }
.consent-state { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border-strong); color: var(--primary); font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.consent-gpc { margin: 8px 0 0 !important; padding: 12px 16px; border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--tint); color: var(--primary); font-weight: 600; }

.switch { position: relative; flex: none; display: inline-flex; align-items: center; min-width: 52px; min-height: 44px; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__ui { position: relative; width: 52px; height: 30px; border-radius: 999px; background: #64748B; transition: background-color .15s ease; }   /* off state 4.76:1 on white */
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s ease; }
.switch input:checked + .switch__ui { background: var(--accent); }
.switch input:checked + .switch__ui::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--accent); outline-offset: 3px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .switch__ui { opacity: .55; }

/* keep the last content and focused controls clear of the fixed banner (WCAG 2.4.11) */
html.has-cookie-banner { scroll-padding-bottom: calc(var(--banner-h, 0px) + 32px); }
html.has-cookie-banner body { padding-bottom: calc(var(--banner-h, 0px) + 24px); }

/* ---- print -------------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .cookie-dialog, .toc-mobile-wrap, .toc-desktop, .skip-link, .hero-actions, .copy-wrap { display: none !important; }
  body { font-size: 11pt; line-height: 1.5; color: #000; }
  .page-hero { padding: 0 0 12pt; background: none; border: 0; }
  .band--dark { background: none; color: #000; }
  .band--dark h2, .band--dark p, .band--dark a { color: #000; }
  a { color: #000; }
  .doc-layout { display: block !important; }
}

/* ---- pictures beside a live-text block (a stat callout, a status line) ------------------------ */
.beside-art { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin: 0 0 1.25rem; }
.beside-art > :not(.section-fig) { flex: 1 1 260px; margin: 0; }
.beside-art .stat-card.stat { margin-bottom: 0; }
.beside-art .section-fig--side { flex: 0 0 auto; width: 220px; }
@media (max-width: 560px) { .beside-art .section-fig--side { width: min(100%, 260px); } }

/* ---- small line icons (64 px SVG shown smaller): topic cards, testing steps, scoring criteria ---- */
.card-icon { display: block; width: 48px; height: 48px; margin: 0 0 14px; }
.step-icon { flex: none; width: 56px; height: 56px; margin-left: 8px; }
.steps--icons > li { grid-template-columns: var(--circle) minmax(0, 1fr) 56px; }
.criterion-name { display: inline-flex; align-items: center; gap: 12px; }
.criterion-icon { flex: none; width: 36px; height: 36px; }
@media (max-width: 560px) {
  .step-icon { width: 40px; height: 40px; margin-left: 0; }
  .steps--icons > li { grid-template-columns: var(--circle) minmax(0, 1fr) 40px; }
}
