/* ==========================================================================
   Acacian — interior pages
   Loaded after Acacian-landing.css on every page. Hand-written, no build step.

   A. Assessment components (moved from the inline block on assessments.html)
   B. Navigation menus
   C. Interior page hero and sibling rail
   D. Section layouts
   E. Tables
   F. Pipelines and the platform architecture
   G. Rows: capability list, roles, FAQ
   ========================================================================== */

/* ==========================================================================
   A. Assessment components
   ========================================================================== */

.ai-ready-grid.as-cols-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .ai-ready-grid.as-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ai-ready-grid.as-cols-4 { grid-template-columns: repeat(4, 1fr); } }
.ai-ready-card--compact { min-height: 0; }
.ai-ready-card--compact .ai-ready-card__title { font-size: 1.5rem; }

.as-note {
    max-width: 44rem;
    margin: 2rem auto 0;
    color: var(--text-muted);
    font-size: .9375rem;
    font-weight: 300;
    line-height: 1.65;
    text-align: center;
}

.as-band {
    display: grid;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-panel);
    border: 1px solid var(--hairline);
    border-radius: 1rem;
}
@media (min-width: 900px) {
    .as-band { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2.5rem; align-items: center; }
    .as-band--flip .as-band__visual { order: -1; }
}
.as-band__eyebrow {
    margin: 0 0 .75rem;
    color: var(--gold-300);
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}
.as-band__title {
    margin: 0 0 1rem;
    color: var(--text-hi);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.15;
}
.as-band__copy > p:not(.as-band__eyebrow) {
    margin: 0;
    color: var(--text-body);
    font-size: .9375rem;
    font-weight: 300;
    line-height: 1.65;
}

.as-list {
    display: grid;
    gap: .75rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: as-step;
}
.as-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-body);
    font-size: .9375rem;
    font-weight: 300;
    line-height: 1.6;
}
.as-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .8em;
    width: .625rem;
    height: 1px;
    background: var(--gold-400);
}
.as-list--num li { counter-increment: as-step; padding-left: 1.75rem; }
.as-list--num li::before {
    content: counter(as-step);
    top: .1em;
    width: auto;
    height: auto;
    background: none;
    color: var(--gold-300);
    font-family: var(--font-mono);
    font-size: .6875rem;
    line-height: 1.9;
}
.as-list b { color: var(--text-strong); font-weight: 500; }

.as-panel {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-body-lg);
    border: 1px solid var(--hairline);
    border-radius: .75rem;
}
.as-group h4 {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .625rem;
    color: var(--text-strong);
    font-family: var(--font-mono);
    font-size: .625rem;
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}
.as-group h4::before {
    content: "";
    flex: none;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--sev, var(--gold-400));
}
.as-group p {
    margin: 0;
    color: var(--text-body);
    font-size: .8125rem;
    font-weight: 300;
    line-height: 1.6;
}
.as-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.as-chips li {
    padding: .25rem .625rem;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    color: var(--text-body);
    font-size: .75rem;
    line-height: 1.4;
}
.as-panel__foot {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--hairline-soft);
    color: var(--text-muted);
    font-size: .75rem;
    line-height: 1.6;
}

.as-tiers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 480px) { .as-tiers { grid-template-columns: repeat(4, 1fr); } }
.as-tiers li {
    padding: .875rem .25rem .75rem;
    border-top: 3px solid var(--tier);
    border-radius: .25rem;
    background: var(--bg-card);
    color: var(--text-strong);
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
}

.as-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.as-status li {
    padding: .375rem .75rem;
    border: 1px solid var(--hairline-strong);
    border-radius: 999px;
    color: var(--text-strong);
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.as-status .as-status__sep { width: .75rem; height: 1px; padding: 0; border: 0; border-radius: 0; background: var(--gold-400); }
.as-status .as-status__break { flex-basis: 100%; height: 0; padding: 0; border: 0; }
.as-status .as-status__or { padding: 0; border: 0; color: var(--text-dim); }
.as-status .is-ok { border-color: var(--sap-500); color: var(--sap-300); }
.as-status .is-no { border-color: var(--rose-400); color: var(--rose-300); }

.as-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 900px) { .as-flow { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1rem; align-items: stretch; } }
.as-flow__node {
    padding: 1.5rem;
    background: var(--bg-panel);
    border: 1px solid var(--hairline);
    border-radius: 1rem;
}
.as-flow__node--suggest { border-style: dashed; border-color: var(--hairline-strong); background: var(--bg-card); }
.as-flow__node--saved { border-color: var(--sap-500); }
.as-flow__tag {
    display: block;
    color: var(--gold-300);
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}
.as-flow__title {
    margin: .75rem 0 .5rem;
    color: var(--text-hi);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.2;
}
.as-flow__node p {
    margin: 0;
    color: var(--text-body);
    font-size: .9375rem;
    font-weight: 300;
    line-height: 1.6;
}
.as-flow__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    color: var(--gold-300);
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}
.as-flow__step svg { width: 1.5rem; height: 1.5rem; transform: rotate(90deg); }
@media (min-width: 900px) { .as-flow__step svg { transform: none; } }

.as-limits {
    display: grid;
    gap: 1px;
    margin: 2rem 0 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    background: var(--hairline);
    border: 1px solid var(--hairline);
    border-radius: 1rem;
}
@media (min-width: 768px) { .as-limits { grid-template-columns: repeat(2, 1fr); } }
.as-limits li {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-panel);
    color: var(--text-strong);
    font-size: .9375rem;
    line-height: 1.5;
}
.as-limits svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .125rem; }
.as-limits .is-no svg { color: var(--rose-400); }
.as-limits .is-yes svg { color: var(--sap-300); }

/* ==========================================================================
   B. Navigation menus
   Platform and Solutions open a menu on hover or keyboard focus. CSS only:
   the parent link still goes to its overview page.
   ========================================================================== */

.nav__links { gap: 1.75rem; }

/* Five items plus the CTA need more room than the 768px breakpoint gives,
   so the drawer stays in use up to 960px. */
@media (min-width: 768px) and (max-width: 959px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__checkbox:checked ~ .nav__drawer { display: flex; }
  .nav__checkbox:focus-visible ~ .nav__drawer { outline: 2px solid var(--gold-400); }
}

.nav__item { position: relative; }

.nav__item--menu > .nav__link {
  display: inline-flex;
  align-items: center;
  gap: .3125rem;
}

.nav__item--menu > .nav__link svg {
  width: .75rem;
  height: .75rem;
  opacity: .7;
  transition: transform .2s ease;
}

.nav__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  display: none;
  padding-top: 1.25rem;
  transform: translateX(-50%);
}

.nav__item--menu:hover .nav__menu,
.nav__item--menu:focus-within .nav__menu { display: block; }

.nav__item--menu:hover > .nav__link svg,
.nav__item--menu:focus-within > .nav__link svg { transform: rotate(180deg); }

/* Escape closes an open menu (site.js) until the pointer or focus leaves it. */
.nav__item--menu.is-dismissed .nav__menu { display: none; }
.nav__item--menu.is-dismissed > .nav__link svg { transform: none; }

.nav__menu ul {
  display: grid;
  gap: 2px;
  width: 23rem;
  padding: .5rem;
  background: var(--bg-body);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  box-shadow: 0 28px 56px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(247, 243, 232, .05);
}

.nav__menu a {
  display: grid;
  gap: .125rem;
  padding: .625rem .875rem;
  border-radius: .625rem;
  transition: background-color .2s ease;
}

.nav__menu a:hover,
.nav__menu a:focus-visible { background: var(--bg-elevated); }

.nav__menu b {
  color: var(--text-hi);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.35;
}

.nav__menu span {
  color: var(--text-muted);
  font-size: .75rem;
  line-height: 1.45;
}

.nav__menu a[aria-current="page"] b { color: var(--gold-300); }

.nav__drawer {
  max-height: calc(100vh - 7rem);
  min-width: 16rem;
  overflow-y: auto;
}

.nav__drawer-sub {
  display: grid;
  margin: 0 0 .375rem .875rem;
  padding-left: .5rem;
  border-left: 1px solid var(--hairline);
}

.nav__drawer .nav__drawer-sub .nav__link {
  padding: .4375rem .75rem;
  font-size: .875rem;
  font-weight: 400;
}

.nav__drawer .nav__link[aria-current="page"] { color: var(--gold-300); }

@media (prefers-reduced-motion: reduce) {
  .nav__item--menu > .nav__link svg { transition: none; }
}

/* ==========================================================================
   C. Interior page hero
   ========================================================================== */

.pg-hero {
  position: relative;
  z-index: 10;
  padding-bottom: 4.5rem;
  text-align: center;
}

.pg-hero .section-head { margin-bottom: 2.5rem; }

.pg-hero .section-head__title { font-size: 2.375rem; }

@media (min-width: 768px) {
  .pg-hero .section-head__title { font-size: 4rem; line-height: 1.08; }
}

.pg-hero .badge { margin: 0 auto 1.5rem; }

.pg-crumbs ol {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin: 0 auto 1.5rem;
  padding: .25rem .875rem;
  list-style: none;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .025em;
  color: var(--gold-300);
  background: rgba(240, 180, 41, .1);
  border: 1px solid rgba(240, 180, 41, .24);
  border-radius: 999px;
}

.pg-crumbs li { display: inline-flex; align-items: center; gap: .5rem; }

.pg-crumbs li + li::before {
  content: "";
  width: .3125rem;
  height: .3125rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: .6;
}

.pg-crumbs a { color: var(--text-strong); }
.pg-crumbs a:hover { color: var(--text-hi); }

.pg-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pg-hero__actions { flex-direction: row; }
}

.pg-hero__actions .btn svg,
.pg-cta-row .btn svg { width: 1.125rem; height: 1.125rem; }

.pg-hero__aside {
  max-width: 44rem;
  margin: 2.5rem auto 0;
  color: var(--text-muted);
  font-size: .8125rem;
  line-height: 1.6;
}

/* Sibling pages within Platform or Solutions. */
.pg-rail {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  background: rgba(0, 0, 0, .35);
}

.pg-rail ul {
  display: flex;
  gap: .25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: .625rem var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.pg-rail ul::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .pg-rail ul { justify-content: center; padding: .625rem 3rem; }
}

.pg-rail a {
  display: block;
  padding: .5rem .875rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}

.pg-rail a:hover { color: var(--text-hi); }

.pg-rail a[aria-current="page"] {
  color: var(--gold-300);
  border-color: var(--hairline-strong);
  background: rgba(240, 180, 41, .06);
}

/* ==========================================================================
   D. Section layouts
   ========================================================================== */

/* Tighter rhythm than the home page: interior pages carry more sections. */
@media (min-width: 1024px) {
  .pg-section { padding-top: 6.5rem; padding-bottom: 6.5rem; }
}

.pg-section .ai-ready-head { margin-bottom: 3.5rem; }

/* Heading on the left, content on the right. Used for long-form sections. */
.pg-split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .pg-split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .pg-split__head { position: sticky; top: 2rem; }
}

.pg-split__title {
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .pg-split__title { font-size: 2.5rem; }
}

.pg-split__lede {
  margin-top: 1rem;
  color: var(--text-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.pg-split__body { display: grid; gap: 1.5rem; min-width: 0; }

.pg-split + .pg-split {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--hairline-soft);
}

.pg-prose { max-width: 42rem; }

.pg-prose p,
.pg-prose li {
  color: var(--text-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}

.pg-prose p + p,
.pg-prose p + .as-list,
.pg-prose .as-list + p { margin-top: 1rem; }

.pg-prose b,
.pg-prose strong { color: var(--text-strong); font-weight: 500; }

.pg-prose em { color: var(--text-strong); }

.pg-prose a:not(.link-arrow) {
  color: var(--text-hi);
  border-bottom: 1px solid var(--gold-500);
}

.pg-prose a:not(.link-arrow):hover { color: var(--gold-300); }

.pg-subhead {
  margin: 0 0 .75rem;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
}

/* Muted note under a block, and legal small print. */
.pg-small {
  max-width: 48rem;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline-soft);
  color: var(--text-dim);
  font-size: .8125rem;
  line-height: 1.6;
  text-align: center;
}

.pg-callout {
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--gold-400);
  border-radius: 0 .75rem .75rem 0;
  background: rgba(240, 180, 41, .05);
  color: var(--text-strong);
  font-size: .9375rem;
  line-height: 1.65;
}

.pg-callout b { color: var(--text-hi); font-weight: 600; }

.pg-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
}

.pg-link-row--center { justify-content: center; }

/* Cards: column variants and a link foot. */
.ai-ready-grid.as-cols-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .ai-ready-grid.as-cols-2 { grid-template-columns: repeat(2, 1fr); } }

.ai-ready-grid.pg-cols-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .ai-ready-grid.pg-cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ai-ready-grid.pg-cols-3 { grid-template-columns: repeat(3, 1fr); } }

.ai-ready-card .as-list { margin-top: 1rem; }
.ai-ready-card .as-list li { font-size: .875rem; }

.ai-ready-card__foot {
  margin-top: auto;
  padding-top: 1.75rem;
}

/* ==========================================================================
   E. Tables
   ========================================================================== */

.pg-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  background: var(--bg-panel);
}

.pg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}

.pg-table caption {
  padding: 1rem 1.25rem 0;
  color: var(--text-muted);
  font-size: .8125rem;
  text-align: left;
}

.pg-table th,
.pg-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
}

.pg-table thead th {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(0, 0, 0, .25);
  border-bottom: 1px solid var(--hairline);
}

.pg-table tbody tr + tr > * { border-top: 1px solid var(--hairline-soft); }

.pg-table tbody th {
  color: var(--text-strong);
  font-weight: 500;
  line-height: 1.5;
}

.pg-table td {
  color: var(--text-body);
  font-weight: 300;
  line-height: 1.6;
}

.pg-table td b { color: var(--text-strong); font-weight: 500; }

@media (min-width: 768px) {
  .pg-table tbody th { width: 30%; }
  .pg-table--wide tbody th { width: auto; }
}

/* Two-column tables stack on small screens instead of scrolling. */
@media (max-width: 639px) {
  .pg-table--stack thead { display: none; }
  .pg-table--stack tr,
  .pg-table--stack th,
  .pg-table--stack td { display: block; }
  .pg-table--stack tbody th { padding-bottom: .25rem; }
  .pg-table--stack tbody td { padding-top: 0; }
  .pg-table--stack tbody tr + tr > * { border-top: 0; }
  .pg-table--stack tbody tr + tr { border-top: 1px solid var(--hairline-soft); }
}

.pg-table--wide { min-width: 52rem; }

.pg-table--matrix td,
.pg-table--matrix thead th:not(:first-child) { text-align: center; }

.pg-table--matrix .is-us {
  background: rgba(240, 180, 41, .06);
  color: var(--text-hi);
}

.pg-table--matrix thead .is-us { color: var(--gold-300); }

.pg-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.pg-mark svg { width: 1.125rem; height: 1.125rem; }
.pg-mark--yes { color: var(--sap-300); }
.pg-mark--no { color: var(--text-dim); }

/* Status pills: solid sap for reviewed content, dashed for provisional,
   the same dashed "not final" signal the suggestion cards use. */
.pg-pill {
  display: inline-block;
  padding: .25rem .625rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.pg-pill--ok { border-color: var(--sap-500); color: var(--sap-300); }
.pg-pill--prov { border-style: dashed; color: var(--bark-400); }

/* ==========================================================================
   F. Pipelines and the platform architecture
   ========================================================================== */

.pg-pipe {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pg-pipe;
}

@media (min-width: 900px) {
  .pg-pipe { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 0; }
}

.pg-pipe li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3rem;
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: .875rem;
  counter-increment: pg-pipe;
}

.pg-pipe li::before {
  content: counter(pg-pipe);
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: .6875rem;
  line-height: 1.9;
}

@media (min-width: 900px) {
  .pg-pipe li { padding: 1.5rem 1.25rem; border-radius: 0; border-left-width: 0; }
  .pg-pipe li:first-child { border-left-width: 1px; border-radius: .875rem 0 0 .875rem; }
  .pg-pipe li:last-child { border-radius: 0 .875rem .875rem 0; }
  .pg-pipe li::before { position: static; display: block; margin-bottom: .75rem; }
  .pg-pipe li + li::after {
    content: "";
    position: absolute;
    top: 1.95rem;
    left: -.3125rem;
    width: .5625rem;
    height: .5625rem;
    border-top: 1px solid var(--gold-400);
    border-right: 1px solid var(--gold-400);
    background: var(--bg-panel);
    transform: rotate(45deg);
  }
}

.pg-pipe b {
  display: block;
  color: var(--text-hi);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.pg-pipe span {
  display: block;
  margin-top: .375rem;
  color: var(--text-muted);
  font-size: .8125rem;
  line-height: 1.55;
}

/* Register → Screen and assess → Approve → Evidence, on a shared foundation. */
.pg-arch {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--hairline);
  border: 1px solid var(--hairline-strong);
  border-radius: 1.25rem;
}

.pg-arch__stages {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pg-arch;
}

@media (min-width: 640px) { .pg-arch__stages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pg-arch__stages { grid-template-columns: repeat(4, 1fr); } }

.pg-arch__stage {
  position: relative;
  padding: 1.75rem 1.5rem 2rem;
  background: var(--bg-panel);
  counter-increment: pg-arch;
}

.pg-arch__stage h3 {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.pg-arch__stage h3::before {
  content: counter(pg-arch);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: 0;
}

.pg-arch__stage ul { display: grid; gap: .5rem; }

.pg-arch__stage li {
  color: var(--text-body);
  font-size: .875rem;
  line-height: 1.45;
}

@media (min-width: 1024px) {
  .pg-arch__stage + .pg-arch__stage::after {
    content: "";
    position: absolute;
    top: 2.2rem;
    left: -.375rem;
    z-index: 1;
    width: .6875rem;
    height: .6875rem;
    border-top: 1px solid var(--gold-400);
    border-right: 1px solid var(--gold-400);
    background: var(--bg-panel);
    transform: rotate(45deg);
  }
}

.pg-arch__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
}

.pg-arch__base h3 {
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pg-arch__base ul { display: flex; flex-wrap: wrap; gap: .5rem; }

.pg-arch__base li {
  padding: .3125rem .75rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  color: var(--text-strong);
  font-size: .8125rem;
}

/* ==========================================================================
   G. Rows: capability list, roles, FAQ
   ========================================================================== */

.pg-rows {
  border-top: 1px solid var(--hairline);
}

.pg-row {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 900px) {
  .pg-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; padding: 2.5rem 0; }
}

.pg-row__title {
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.pg-row__quote {
  margin-top: .875rem;
  color: var(--bark-400);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-style: italic;
  line-height: 1.45;
}

.pg-row__body > p {
  color: var(--text-body);
  font-size: .9375rem;
  font-weight: 300;
  line-height: 1.7;
}

.pg-row__body .as-list { margin-top: 0; }
.pg-row__body > p + .as-list { margin-top: 1rem; }
.pg-row__body .link-arrow { margin-top: 1.25rem; }

/* FAQ accordion on native details/summary. */
.pg-faq { border-top: 1px solid var(--hairline); }

.pg-faq details { border-bottom: 1px solid var(--hairline); }

.pg-faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem 0;
  cursor: pointer;
  list-style: none;
}

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

.pg-faq summary h3 {
  color: var(--text-hi);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
}

.pg-faq summary:hover h3 { color: var(--gold-300); }

.pg-faq summary svg {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: .25rem;
  color: var(--gold-300);
  transition: transform .25s ease;
}

.pg-faq details[open] summary svg { transform: rotate(45deg); }

.pg-faq__answer {
  max-width: 44rem;
  padding: 0 2.5rem 1.5rem 0;
}

.pg-faq__answer p {
  color: var(--text-body);
  font-size: .9375rem;
  font-weight: 300;
  line-height: 1.7;
}

.pg-faq__answer .link-arrow { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .pg-faq summary svg { transition: none; }
}

/* Two contrasting columns: "now" and "next", "what you get" and "what we ask". */
.pg-pair {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
}

@media (min-width: 768px) { .pg-pair { grid-template-columns: repeat(2, 1fr); } }

.pg-pair > div {
  padding: 1.75rem;
  background: var(--bg-panel);
}

@media (min-width: 768px) { .pg-pair > div { padding: 2.25rem; } }

.pg-pair > .is-muted { background: var(--bg-card); }

.pg-pair .as-list { margin-top: 0; }

/* Headings that other pages link to by anchor: leave room above them on arrival. */
.pg-split__title[id],
.section-head__title[id] { scroll-margin-top: 1.5rem; }

/* Visually hidden, still read by screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 480px) { .as-tiers.as-tiers--3 { grid-template-columns: repeat(3, 1fr); } }
.as-tiers li { line-height: 1.6; }

/* Inside a half-width band the pipeline always stacks. */
@media (min-width: 900px) {
  .as-band .pg-pipe { grid-auto-flow: row; gap: .75rem; }
  .as-band .pg-pipe li { padding: 1.25rem 1.25rem 1.25rem 3rem; border-left-width: 1px; border-radius: .875rem; }
  .as-band .pg-pipe li::before { position: absolute; display: inline; margin: 0; }
  .as-band .pg-pipe li + li::after { display: none; }
}

.pg-crumbs .is-plain { color: var(--text-strong); }

.pg-table--wide.pg-table--fit { min-width: 34rem; }

.as-band__copy .as-list + p,
.as-band__copy .as-list + div { margin-top: 1rem; }

/* Wide tables scroll sideways on small screens; keep the row labels in view. */
.pg-table--wide tbody th { min-width: 10rem; }

@media (max-width: 1023px) {
  .pg-table--wide tbody th,
  .pg-table--wide thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg-panel);
    box-shadow: 1px 0 0 var(--hairline);
  }
}
