/* The two reference pages: /nlpd-gdpr-guide/ (ten steps, tally) and /cloud-ai-data/ (route, table).
   Loaded after style.css and components.css, on those two pages only. */

.page-head .page-checked {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-text-subtle);
}

.guide-prose p {
  color: var(--color-text-muted);
}

/* Ten steps: one card each, the step number drawn by a counter so it never needs translating */
.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 16px;
  max-width: var(--measure-wide);
}

.guide-step {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 20px 96px;
  background: var(--color-white);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.guide-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 24px;
  top: 22px;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--color-accent-active);
}

.guide-step h3 {
  margin-bottom: 8px;
}

.guide-step p,
.guide-step ul {
  max-width: var(--prose);
  color: var(--color-text-muted);
}

.guide-step p {
  margin: 0 0 12px;
}

.guide-step ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.guide-step li {
  margin: 6px 0;
}

.guide-step li::marker {
  color: var(--color-accent);
}

.guide-step .note {
  margin: 0 0 16px;
}

.guide-step .note p {
  margin-top: 0;
}

.guide-step .guide-when {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--color-divider);
  font-size: 15px;
  color: var(--color-text);
}

.guide-when-label {
  font-weight: 600;
  margin-right: 8px;
  color: var(--color-accent-active);
}

/* The tally: three figures in one ledger, the 1px rules are the grid gap showing through */
.tally {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--measure-wide);
  background: var(--color-divider);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tally-cell {
  padding: 24px;
  background: var(--color-white);
}

.tally .tally-value {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--color-accent-active);
}

.tally .tally-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-subtle);
}

.tally .tally-body {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-muted);
}

.tally-close {
  margin: 32px 0 0;
}

/* The route: numbered stops on one hairline, red only on the markers */
.route {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: stop;
  max-width: var(--measure-wide);
}

.route-stop {
  counter-increment: stop;
  position: relative;
  padding: 0 0 32px 64px;
}

.route-stop::before {
  content: counter(stop);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-accent);
  border-radius: 9999px;
  background: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent-active);
}

.route-stop::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: 8px;
  border-left: 1px dashed var(--color-accent);
}

.route-stop:last-child {
  padding-bottom: 0;
}

.route-stop:last-child::after {
  display: none;
}

.route-stop h3 {
  margin: 6px 0 6px;
}

.route-stop p {
  margin: 0;
  max-width: var(--prose);
  color: var(--color-text-muted);
}

/* Three columns instead of the product table's five. Each cell carries its column name for the
   stacked phone layout below; on wider screens the header row says it once. */
.compare.compare-facts {
  min-width: 0;
}

.facts-label {
  display: none;
}

.compare-facts th,
.compare-facts td {
  vertical-align: top;
}

.compare-facts tbody th {
  width: 26%;
}

.compare-facts td:nth-child(2) {
  width: 28%;
}

/* Sources: one hairline per entry */
.section-sources {
  border-top: 1px solid var(--color-divider);
}

.section-sources .section-head {
  margin-bottom: 16px;
}

.sources {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure-wide);
}

.sources li {
  padding: 10px 0;
  border-top: 1px solid var(--color-divider);
  font-size: 15px;
  line-height: 1.5;
}

.sources li:last-child {
  border-bottom: 1px solid var(--color-divider);
}

.cta-band .kicker {
  margin-bottom: 8px;
}

/* Desktop: the route's heading stays in view beside the stops */
@media (min-width: 1024px) {
  .route-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }

  .route-layout .section-head {
    position: sticky;
    top: 120px;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .tally {
    grid-template-columns: 1fr;
  }

  .compare-facts thead {
    display: none;
  }

  .compare-facts,
  .compare-facts tbody,
  .compare-facts tr,
  .compare-facts th,
  .compare-facts td {
    display: block;
    width: auto;
  }

  .compare-facts tbody th,
  .compare-facts td:nth-child(2) {
    width: auto;
  }

  .compare-facts tbody th {
    padding-top: 16px;
  }

  .compare-facts td {
    padding-top: 4px;
  }

  .compare-facts tr:last-child td:last-child {
    padding-bottom: 16px;
  }

  .facts-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-subtle);
  }
}

@media (max-width: 640px) {
  .guide-step {
    padding: 20px;
  }

  .guide-step::before {
    position: static;
    display: block;
    margin-bottom: 12px;
    font-size: 30px;
  }

  .route-stop {
    padding-left: 56px;
  }
}
