/* Shared table roles. Comparison panels retain their paired-row layout. */
body.flat-blue {
  --table-ink: #15293e;
  --table-body: #344e68;
  --table-muted: #47617a;
  --table-header: #eaf3fa;
  --table-line: #dce6ef;
}

html body.flat-blue.flat-blue.flat-blue :is(.table-scroll, .table-frame) {
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--table-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

/* Scroll shadows supplement the scrollbar on platforms with overlay scrollbars. */
html body.flat-blue.flat-blue.flat-blue .table-scroll {
  overflow-x: auto;
  scrollbar-width: auto;
  scrollbar-color: #7894ae #eaf3fa;
  background:
    linear-gradient(to right, #fff 35%, transparent) left / 36px 100% local no-repeat,
    linear-gradient(to left, #fff 35%, transparent) right / 36px 100% local no-repeat,
    linear-gradient(to right, rgb(21 41 62 / .22), transparent) left / 12px 100% scroll no-repeat,
    linear-gradient(to left, rgb(21 41 62 / .22), transparent) right / 12px 100% scroll no-repeat,
    #fff;
}

html body.flat-blue .table-scroll::-webkit-scrollbar {
  height: 12px;
}
html body.flat-blue .table-scroll::-webkit-scrollbar-track {
  background: #eaf3fa;
  border-radius: 0 0 16px 16px;
}
html body.flat-blue .table-scroll::-webkit-scrollbar-thumb {
  border: 3px solid #eaf3fa;
  border-radius: 8px;
  background: #7894ae;
}
html body.flat-blue.flat-blue.flat-blue .table-scroll:focus-visible {
  outline: 3px solid #2074ef;
  outline-offset: 3px;
}

html body.flat-blue.flat-blue.flat-blue :is(
  .aim-table, .dma-table, .journey-stage-table, .prose-privacy table,
  .an-root .dtable.compact, .red-root .prev-table, .research-chart table
) {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate !important;
  border-spacing: 0;
  font-family: Geist, system-ui, sans-serif !important;
  color: var(--table-body);
  background: transparent;
}

html body.flat-blue.flat-blue.flat-blue :is(
  .aim-table, .dma-table, .journey-stage-table, .prose-privacy table,
  .an-root .dtable.compact, .red-root .prev-table, .research-chart table
) :is(th, td) {
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid var(--table-line) !important;
  color: var(--table-body) !important;
  font-family: Geist, system-ui, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  text-align: left;
  vertical-align: top;
  text-transform: none !important;
  overflow-wrap: normal;
}

html body.flat-blue.flat-blue.flat-blue :is(
  .aim-table, .dma-table, .journey-stage-table, .prose-privacy table,
  .an-root .dtable.compact, .red-root .prev-table, .research-chart table
) thead th {
  background: var(--table-header);
  color: var(--table-ink) !important;
  font-size: .9375rem !important;
  font-weight: 600 !important;
  vertical-align: bottom;
}

html body.flat-blue.flat-blue.flat-blue :is(
  .aim-table, .dma-table, .journey-stage-table, .prose-privacy table,
  .an-root .dtable.compact, .red-root .prev-table, .research-chart table
) tbody tr:last-child > :is(th, td) {
  border-bottom: 0 !important;
}

html body.flat-blue.flat-blue.flat-blue :is(.aim-table, .journey-stage-table, .dma-table) td:first-child,
html body.flat-blue.flat-blue.flat-blue .research-chart tbody th {
  color: var(--table-ink) !important;
  font-weight: 500;
}

/* Quantities align by column; descriptive and qualitative values stay left. */
html body.flat-blue.flat-blue.flat-blue.flat-blue .aim-table :is(th, td):nth-child(n+3),
html body.flat-blue.flat-blue.flat-blue.flat-blue .dma-table :is(th, td):last-child,
html body.flat-blue.flat-blue.flat-blue.flat-blue .an-root .dtable.compact :is(th, td):nth-child(n+6),
html body.flat-blue.flat-blue.flat-blue.flat-blue .research-chart :is(th, td):last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

html body.flat-blue .aim-table {
  min-width: 820px;
}
html body.flat-blue .aim-table :is(th, td):first-child {
  width: 200px;
}
html body.flat-blue .aim-table :is(th, td):nth-child(3) {
  width: 180px;
}
html body.flat-blue .aim-table :is(th, td):last-child {
  width: 100px;
}
html body.flat-blue .journey-stage-table {
  min-width: 820px;
}
html body.flat-blue .prose-privacy table {
  min-width: 700px;
  table-layout: fixed;
}
html body.flat-blue .prose-privacy table :is(th, td):nth-child(1) {
  width: 32%;
}
html body.flat-blue .prose-privacy table :is(th, td):nth-child(2) {
  width: 25%;
}
html body.flat-blue .dma-table {
  min-width: 0;
  table-layout: fixed;
}
html body.flat-blue .dma-table :is(th, td):first-child {
  width: 65%;
  white-space: normal;
}
html body.flat-blue .dma-table :is(th, td):last-child {
  width: 35%;
}

/* Dense product samples preserve their status and score colours. */
html body.flat-blue.flat-blue.flat-blue .red-root .appwin:has(.prev-table) {
  border: 1px solid var(--table-line);
  border-radius: 16px;
  overflow: hidden;
}
html body.flat-blue.flat-blue.flat-blue .red-root .appwin-body.table-scroll {
  border: 0;
  border-radius: 0;
}
html body.flat-blue.flat-blue.flat-blue .red-root .appwin-body.table-scroll:focus-visible {
  outline-offset: -3px;
}

html body.flat-blue .an-root .dtable.compact {
  min-width: 1020px;
}
html body.flat-blue.flat-blue.flat-blue .an-root .dtable.compact :is(th, td),
html body.flat-blue.flat-blue.flat-blue .red-root .prev-table :is(th, td) {
  padding: 16px;
  font-size: .9375rem !important;
}
html body.flat-blue .red-root .prev-table {
  min-width: 760px;
}
html body.flat-blue .red-root .prev-table td:first-child {
  min-width: 290px;
}
html body.flat-blue .red-root .prev-table td:nth-child(2) {
  min-width: 150px;
}
html body.flat-blue.flat-blue.flat-blue .red-root .prev-table .prev-link,
html body.flat-blue.flat-blue.flat-blue .red-root .prev-table .prev-link:hover {
  color: var(--table-ink);
  cursor: default;
  text-decoration: none;
  transition: none;
}
html body.flat-blue.flat-blue.flat-blue .red-root .prev-table :is(.status, .rs-ax, .rs-total) {
  font-family: Geist, system-ui, sans-serif;
  font-size: .875rem;
  line-height: 1.55;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
html body.flat-blue.flat-blue.flat-blue .red-root .prev-table .rs-ax {
  color: var(--table-muted);
}
html body.flat-blue.flat-blue.flat-blue .red-root .prev-table .rs-total {
  color: var(--table-ink);
}

html body.flat-blue.flat-blue.flat-blue .research-chart .table-frame {
  margin-top: 12px;
}
html body.flat-blue.flat-blue.flat-blue .research-chart table caption {
  padding: 16px 20px;
  color: var(--table-muted);
  font-size: .9375rem;
  line-height: 1.55;
  text-align: left;
  caption-side: top;
  background: #fff;
}

/* Typography only: keep the service comparison's authored paired layout. */
html body.flat-blue.flat-blue.flat-blue .svc-comparison .svc-dt :is(th, td) {
  font-family: Geist, system-ui, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body.flat-blue.flat-blue.flat-blue .svc-comparison .svc-dt th {
  font-size: .9375rem !important;
  font-weight: 600;
}
html body.flat-blue.flat-blue.flat-blue .svc-comparison .svc-dt td::before {
  font-size: .9375rem;
  line-height: 1.55;
}

/* Existing roadmap layout and risk-matrix geometry retain their semantics. */
html body.flat-blue.flat-blue.flat-blue .red-root .road-row {
  padding-block: 20px;
  gap: 12px 24px;
}
html body.flat-blue.flat-blue.flat-blue .red-root :is(.road-phase, .road-note) {
  font-family: Geist, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}
html body.flat-blue.flat-blue.flat-blue .red-root .road-note {
  color: var(--table-body);
}
html body.flat-blue.flat-blue.flat-blue .red-root .road-status {
  font-family: Geist, system-ui, sans-serif;
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}
html body.flat-blue.flat-blue.flat-blue .red-root .mcell {
  font-family: Geist, system-ui, sans-serif;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
html body.flat-blue.flat-blue.flat-blue .red-root .matrix-x {
  font-family: Geist, system-ui, sans-serif;
  font-size: .875rem !important;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 700px) {
  html body.flat-blue.flat-blue.flat-blue :is(
    .aim-table, .dma-table, .journey-stage-table, .prose-privacy table,
    .an-root .dtable.compact, .red-root .prev-table, .research-chart table
  ) :is(th, td) {
    padding: 14px 16px;
    font-size: .9375rem !important;
  }
  html body.flat-blue .dma-table :is(th, td):first-child {
    width: 62%;
  }
  html body.flat-blue.flat-blue.flat-blue.flat-blue .dma-table :is(th, td):last-child {
    width: 38%;
    white-space: normal;
  }
}
