:root {
  --roster-ink: #111310;
  --roster-muted: #5f645d;
  --roster-paper: #fbfbf7;
  --roster-panel: #ffffff;
  --roster-line: #d9ddd4;
  --roster-line-dark: #adb4a8;
  --roster-blue: #1457d9;
  --roster-blue-soft: #edf3ff;
  --roster-green: #17643a;
  --roster-green-soft: #eaf6ef;
  --roster-amber: #8a5300;
  --roster-amber-soft: #fff4d8;
  --roster-grey-soft: #f0f1ed;
  --roster-purple: #6642b4;
  --roster-max: 1280px;
  --roster-radius: 18px;
}

html {
  scroll-padding-top: 84px;
}

body.product-path-roster {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--roster-ink);
  background:
    linear-gradient(rgba(17, 19, 16, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 16, 0.025) 1px, transparent 1px),
    var(--roster-paper);
  background-size: 28px 28px;
}

.product-path-roster a {
  text-underline-offset: 0.18em;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--roster-ink);
  color: #fff;
  font-weight: 750;
}

.skip-link:focus {
  transform: translateY(0);
}

.roster-wrap {
  width: min(100%, var(--roster-max));
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

.roster-hero {
  padding-block: clamp(68px, 9vw, 124px) clamp(58px, 7vw, 92px);
  border-bottom: 1px solid var(--roster-line-dark);
  background:
    radial-gradient(circle at 82% 14%, rgba(20, 87, 217, 0.13), transparent 27%),
    linear-gradient(140deg, #fff 0%, #f5f8f1 58%, #eef2e9 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--roster-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.roster-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 430;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.roster-lead {
  max-width: 860px;
  margin: 30px 0 0;
  color: #3e443d;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.65;
}

.roster-research-status,
.product-record-warning {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px 26px;
  border: 1px solid #c47a00;
  border-left: 6px solid #c47a00;
  background: var(--roster-amber-soft);
  color: #302617;
}

.roster-research-status {
  max-width: 980px;
  margin-top: 28px;
  padding: 20px 22px;
}

.roster-research-status strong,
.product-record-warning strong {
  line-height: 1.4;
}

.roster-research-status span,
.product-record-warning span {
  font-size: 0.9rem;
  line-height: 1.6;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.audience-grid article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(17, 19, 16, 0.2);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.audience-grid span,
.product-path__overview span {
  display: block;
  margin-bottom: 8px;
  color: var(--roster-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.audience-grid h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}

.audience-grid p {
  margin: 14px 0 0;
  color: var(--roster-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.roster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.product-path-roster .roster-actions .button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--roster-ink);
  border-radius: 999px;
  background: #fff;
  color: var(--roster-ink);
  font-size: 0.85rem;
  font-weight: 760;
  text-decoration: none;
}

.product-path-roster .roster-actions .button--primary {
  background: var(--roster-ink);
  color: #fff;
}

.product-path-roster main > section,
.product-path-roster main > nav {
  padding-block: clamp(58px, 8vw, 100px);
  border-bottom: 1px solid var(--roster-line);
}

.section-heading {
  position: static;
  top: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: 14px clamp(28px, 7vw, 90px);
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.3rem);
  font-weight: 480;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.section-heading > p:last-child {
  margin: 2px 0 0;
  color: var(--roster-muted);
  font-size: 1rem;
  line-height: 1.72;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--roster-line-dark);
  background: var(--roster-line);
}

.metric-grid div {
  min-height: 122px;
  padding: 18px;
  background: var(--roster-panel);
}

.metric-grid dt {
  color: var(--roster-muted);
  font-size: 0.72rem;
  font-weight: 730;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.metric-grid dd {
  margin: 18px 0 0;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1;
}

.reading-rule,
.product-boundary {
  margin-top: 18px;
  padding: 22px 24px;
  border-left: 5px solid var(--roster-blue);
  background: var(--roster-blue-soft);
}

.reading-rule strong,
.product-boundary strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reading-rule p,
.product-boundary p {
  max-width: 980px;
  margin: 8px 0 0;
  color: #344258;
  line-height: 1.65;
}

.stage-guide__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: var(--roster-line-dark);
}

.stage-guide__grid li {
  min-height: 240px;
  padding: 22px;
  background: var(--roster-panel);
}

.stage-guide__grid li > span {
  color: var(--roster-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 850;
}

.stage-guide__grid h3 {
  margin: 35px 0 0;
  font-size: 1rem;
  line-height: 1.3;
}

.stage-guide__grid p {
  margin: 12px 0 0;
  color: var(--roster-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.product-index__group + .product-index__group {
  margin-top: 30px;
}

.product-index__group h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--roster-ink);
  font-size: 1.3rem;
}

.product-index__group h3 span {
  color: var(--roster-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
}

.product-index__group ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: var(--roster-line);
}

.product-index__group li {
  min-width: 0;
  background: #fff;
}

.product-index__group a {
  display: grid;
  min-height: 118px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.product-index__group a:hover,
.product-index__group a:focus-visible {
  background: var(--roster-blue-soft);
}

.product-index__group strong {
  font-size: 1rem;
  line-height: 1.3;
}

.product-index__group span {
  margin-top: 5px;
  color: var(--roster-muted);
  font-size: 0.82rem;
}

.product-index__group code {
  align-self: end;
  margin-top: 12px;
  color: var(--roster-blue);
  font-size: 0.67rem;
}

.product-paths > .section-heading {
  margin-bottom: 24px;
}

.product-path {
  scroll-margin-top: 84px;
  border: 1px solid var(--roster-line-dark);
  background: var(--roster-panel);
}

.product-path + .product-path {
  margin-top: 12px;
}

.product-path > details > summary {
  display: grid;
  grid-template-columns: 54px minmax(250px, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  min-height: 108px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}

.product-path > details > summary::-webkit-details-marker {
  display: none;
}

.product-path > details > summary::after {
  display: none;
}

.product-path > details[open] > summary {
  border-bottom: 1px solid var(--roster-line-dark);
  background: #f8f9f5;
}

.product-path__ordinal {
  color: var(--roster-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 850;
}

.product-path__identity {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.product-path__identity strong {
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.3;
}

.product-path__identity small {
  color: var(--roster-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.product-path__identity .product-path__research-status {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid #c47a00;
  background: var(--roster-amber-soft);
  color: #754900;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.product-path__identity code,
.method-note code {
  color: var(--roster-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.product-path__counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.product-path__counts b {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--roster-grey-soft);
  font-size: 0.65rem;
  font-weight: 750;
  white-space: nowrap;
}

.product-path__toggle {
  min-width: 150px;
  color: var(--roster-blue);
  font-size: 0.76rem;
  font-weight: 760;
  text-align: right;
}

.product-path__toggle::after {
  display: inline-block;
  margin-left: 8px;
  content: "+";
  font-size: 1.25rem;
  line-height: 0;
}

details[open] .product-path__toggle::after {
  content: "−";
}

.product-path__body {
  padding: clamp(18px, 4vw, 38px);
}

.product-record-warning {
  margin-bottom: 20px;
  padding: 15px 17px;
}

.stage-rail {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 20px;
}

.stage-tick {
  height: 8px;
  border-radius: 999px;
  background: var(--roster-grey-soft);
}

.stage-tick--known { background: var(--roster-green); }
.stage-tick--partial { background: #d99117; }
.stage-tick--unknown { background: #c9cdc5; }
.stage-tick--not_applicable { background: repeating-linear-gradient(135deg, #bec3ba 0 2px, transparent 2px 4px); }

.product-path__overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--roster-line);
}

.product-path__overview > div {
  min-height: 116px;
  padding: 18px;
}

.product-path__overview > div + div {
  border-left: 1px solid var(--roster-line);
}

.product-path__overview strong,
.product-path__overview small {
  display: block;
}

.product-path__overview strong {
  font-size: 0.96rem;
  line-height: 1.4;
}

.product-path__overview small {
  margin-top: 8px;
  color: var(--roster-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.path-stage-list {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-left: 34px;
}

.path-stage-list::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 12px;
  width: 2px;
  background: var(--roster-line-dark);
  content: "";
}

.path-stage {
  position: relative;
  scroll-margin-top: 84px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--roster-line);
  background: #fff;
}

.path-stage::before {
  position: absolute;
  top: 30px;
  left: -29px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--roster-paper);
  border-radius: 50%;
  background: #c9cdc5;
  box-shadow: 0 0 0 1px var(--roster-line-dark);
  content: "";
}

.path-stage--known::before { background: var(--roster-green); }
.path-stage--partial::before { background: #d99117; }

.path-stage__header {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
}

.path-stage__number {
  color: var(--roster-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 850;
}

.path-stage h3,
.path-stage h4,
.path-stage p {
  margin: 0;
}

.path-stage h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.path-stage__header p {
  max-width: 800px;
  margin-top: 7px;
  color: var(--roster-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.path-stage__states {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 16px 64px;
}

.state {
  display: inline-flex;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--roster-line);
  border-radius: 999px;
  background: var(--roster-grey-soft);
  color: #3f443d;
  font-size: 0.68rem;
  line-height: 1.25;
}

.state strong {
  font-weight: 800;
}

.state--known { border-color: #9ac8ac; background: var(--roster-green-soft); color: var(--roster-green); }
.state--partial { border-color: #e6c875; background: var(--roster-amber-soft); color: var(--roster-amber); }
.state--relationship-known,
.state--relationship-partial { border-color: #b9a5e8; background: #f2edff; color: var(--roster-purple); }
.state--evidence { border-color: #b9c9eb; background: var(--roster-blue-soft); color: #264d98; }

.reader-question {
  margin-left: 64px !important;
  padding: 13px 15px;
  border-left: 3px solid var(--roster-blue);
  background: #f6f8fc;
  color: #38445a;
  font-size: 0.84rem;
  line-height: 1.55;
}

.path-stage__finding {
  margin: 20px 0 0 64px;
}

.path-stage h4 {
  margin-bottom: 7px;
  color: var(--roster-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.path-stage__finding p,
.boundary-grid p,
.source-empty {
  color: #40463e;
  font-size: 0.84rem;
  line-height: 1.62;
}

.boundary-grid,
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0 0 64px;
  border: 1px solid var(--roster-line);
  background: var(--roster-line);
}

.boundary-grid > div,
.source-grid > div {
  min-width: 0;
  padding: 16px;
  background: #fafbf8;
}

.source-grid {
  align-items: start;
}

.source-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  gap: 2px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--roster-line);
}

.source-list li:last-child {
  padding-bottom: 0;
  border: 0;
}

.source-list a {
  color: var(--roster-blue);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.45;
}

.source-list span {
  color: var(--roster-muted);
  font-size: 0.67rem;
  line-height: 1.4;
}

.source-empty {
  color: var(--roster-muted);
}

.back-to-index {
  margin: 24px 0 0;
  text-align: right;
}

.back-to-index a {
  color: var(--roster-blue);
  font-size: 0.78rem;
  font-weight: 750;
}

.method-note {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.4fr);
  gap: 24px 60px;
}

.method-note .eyebrow {
  margin: 0 0 10px;
}

.method-note h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.method-note > p,
.method-note dd {
  margin: 0;
  color: var(--roster-muted);
  line-height: 1.7;
}

.method-note dl {
  grid-column: 2;
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--roster-line);
}

.method-note dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 15px;
  background: #fff;
}

.method-note dt {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.method-note dd {
  min-width: 0;
  font-size: 0.76rem;
}

.method-note > p:last-child {
  grid-column: 2;
}

.roster-footer {
  padding-block: 34px;
  background: var(--roster-ink);
  color: #fff;
}

.roster-footer .roster-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.76rem;
}

.roster-footer span {
  color: #aeb4aa;
}

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage-guide__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-index__group ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-path > details > summary { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .product-path__counts { display: none; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 118px; }
  .audience-grid,
  .section-heading,
  .roster-research-status,
  .product-record-warning,
  .product-path__overview,
  .boundary-grid,
  .source-grid,
  .method-note { grid-template-columns: 1fr; }
  .audience-grid article { min-height: 0; }
  .section-heading .eyebrow { grid-column: auto; }
  .metric-grid,
  .stage-guide__grid,
  .product-index__group ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-path > details > summary {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }
  .product-path__toggle {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }
  .product-path__overview > div + div { border-top: 1px solid var(--roster-line); border-left: 0; }
  .path-stage-list { padding-left: 22px; }
  .path-stage-list::before { left: 5px; }
  .path-stage::before { left: -23px; }
  .path-stage__header { grid-template-columns: 34px minmax(0, 1fr); }
  .path-stage__states,
  .reader-question,
  .path-stage__finding,
  .boundary-grid,
  .source-grid { margin-left: 48px !important; }
  .method-note dl,
  .method-note > p:last-child { grid-column: auto; }
}

@media (max-width: 500px) {
  .metric-grid,
  .stage-guide__grid,
  .product-index__group ol { grid-template-columns: 1fr; }
  .stage-guide__grid li { min-height: 0; }
  .stage-guide__grid h3 { margin-top: 18px; }
  .path-stage__states,
  .reader-question,
  .path-stage__finding,
  .boundary-grid,
  .source-grid { margin-left: 0 !important; }
  .method-note dl div { grid-template-columns: 1fr; gap: 3px; }
}

@media print {
  .site-header,
  .roster-actions,
  .back-to-index,
  .roster-footer { display: none !important; }
  body.product-path-roster { background: #fff; }
  .roster-hero { padding-block: 30px; }
  .product-path,
  .path-stage { break-inside: avoid; }
  .product-path > details > summary { border-bottom: 1px solid var(--roster-line-dark); }
  .source-list a { color: #000; }
}
