.detail-page {
  background: var(--paper);
  overflow-x: clip;
}

.detail-hero {
  background: linear-gradient(120deg, rgba(35, 80, 111, 0.16), rgba(255, 255, 255, 0) 62%);
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line));
  padding-block: 46px 34px;
  position: relative;
}

.detail-hero-inner {
  display: grid;
  gap: 16px;
}

.breadcrumbs {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 750;
  gap: 8px;
}

.breadcrumbs a {
  color: var(--blue-dark);
}

.detail-hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 0.96;
  margin: 0;
  max-width: 900px;
  text-shadow: 0 2px 0 rgba(58, 124, 165, 0.08);
}

.direct-answer {
  color: #263845;
  font-size: 21px;
  line-height: 1.55;
  margin: 0;
  max-width: 900px;
}

.verified-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.verified-strip span {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  padding: 9px 11px;
}

.detail-layout {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(190px, 0.24fr) minmax(0, 0.76fr);
  min-width: 0;
  padding-block: 48px 18px;
}

.toc-card {
  align-self: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 2px;
  height: fit-content;
  max-height: calc(100svh - 128px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  position: sticky;
  top: 104px;
}

.toc-card h2 {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.toc-card a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  padding: 7px 0;
}

.toc-card a:hover,
.toc-card a:focus-visible {
  color: var(--blue-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.detail-content {
  display: grid;
  gap: 0;
  min-width: 0;
}

.content-block {
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  overflow-wrap: break-word;
  padding: 0 0 38px;
}

.content-block + .content-block {
  padding-top: 34px;
}

.content-block h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
  margin: 0 0 16px;
  scroll-margin-top: calc(var(--header) + 24px);
}

.content-block h3 {
  color: var(--blue-ink);
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.05;
  margin: 0 0 14px;
  scroll-margin-top: calc(var(--header) + 24px);
}

.content-block p {
  color: var(--ink);
  line-height: 1.68;
  margin: 0;
}

.content-block p + p {
  margin-top: 16px;
}

.content-block a {
  color: var(--blue-dark);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.facts-panel {
  background: color-mix(in srgb, var(--blue-soft) 42%, var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 18px;
  overflow: hidden;
}

.facts-panel div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 13px 15px;
}

.facts-panel div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.facts-panel dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.facts-panel dd {
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: break-word;
}

.chip-list,
.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip-list li,
.status-pill {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  gap: 6px;
  line-height: 1.25;
  padding: 6px 9px;
}

.status-pill::before {
  content: "✓";
  color: var(--blue-dark);
  font-weight: 900;
}

.status-pill.not-confirmed::before,
.status-pill.former::before,
.status-pill.parent-only::before {
  content: "!";
}

.status-list {
  margin: 18px 0;
}

.ownership-chain,
.history-timeline,
.steps-list {
  counter-reset: chain;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.ownership-chain li,
.history-timeline li,
.steps-list li {
  display: grid;
  gap: 3px;
  padding: 0 0 0 34px;
  position: relative;
}

.ownership-chain li::before,
.history-timeline li::before,
.steps-list li::before {
  align-items: center;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--blue) 40%, var(--line));
  border-radius: 999px;
  color: var(--blue-dark);
  content: counter(chain);
  counter-increment: chain;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  left: 0;
  line-height: 1;
  position: absolute;
  top: 0;
  width: 22px;
}

.ownership-chain strong,
.history-timeline strong,
.steps-list strong {
  color: var(--blue-ink);
  font-size: 15px;
  line-height: 1.35;
}

.ownership-chain span,
.history-timeline span,
.steps-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.density-table {
  margin: 18px 0;
}

.density-table th {
  white-space: nowrap;
}

.density-table td {
  overflow-wrap: break-word;
}

.density-callout {
  background: color-mix(in srgb, var(--paper) 82%, var(--blue-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 18px 0;
  padding: 14px 16px;
}

.density-callout strong {
  color: var(--blue-ink);
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.35;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.density-callout p {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.not-connected-list,
.alternatives-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.not-connected-list li,
.alternatives-list li {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 7px;
  padding: 14px;
}

.alternatives-list li {
  border-style: dashed;
}

.not-connected-list strong,
.alternatives-list strong {
  color: var(--blue-ink);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.1;
}

.not-connected-list span,
.alternatives-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.45;
}

.separate-label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sister-summary-grid,
.alternative-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.sister-summary-grid div,
.alternative-grid div {
  background: transparent;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--blue) 34%, var(--line));
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 6px;
  padding: 14px 0 0;
}

.sister-summary-grid strong,
.alternative-grid strong {
  color: var(--blue-ink);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.05;
}

.sister-summary-grid span,
.alternative-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.table-scroll {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 16px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.table-scroll th,
.table-scroll td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.table-scroll th {
  background: var(--ink);
  color: var(--panel);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-scroll tr:nth-child(even) td {
  background: color-mix(in srgb, var(--paper) 88%, var(--gold-soft));
}

.status-badge {
  background: color-mix(in srgb, var(--blue) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
  border-radius: 999px;
  color: var(--blue-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  padding: 7px 9px;
}

.muted-badge {
  background: color-mix(in srgb, var(--paper) 88%, var(--gold-soft));
  border-color: var(--line);
  color: var(--ink);
}

.warning-panel {
  background: transparent;
}

.alternatives-block {
  background: transparent;
}

.alternatives-block .alternative-grid div {
  background: transparent;
}

.responsible-note {
  background: transparent;
  border-bottom-color: color-mix(in srgb, var(--blue) 38%, var(--line));
  border-top: 2px solid color-mix(in srgb, var(--blue) 42%, var(--line));
  color: var(--ink);
  padding-bottom: 24px;
}

.responsible-note h2,
.responsible-note p,
.responsible-note a {
  color: var(--ink);
}

.responsible-note h2 {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.responsible-note p {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.faq-block {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.content-block.faq-block {
  padding-top: 0;
}

.faq-block h2 {
  font-family: var(--sans);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 22px;
}

.faq-block details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 10px;
  overflow: hidden;
  padding: 0;
}

.faq-block summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  list-style-position: inside;
  padding: 15px 18px;
}

.faq-block details p {
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  color: #3d444d;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  padding: 0 18px 17px 36px;
}

.faq-block details[open] summary {
  padding-bottom: 12px;
}

@media (max-width: 980px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .toc-card {
    display: none;
  }
}

@media (max-width: 720px) {
  .detail-hero {
    padding-block: 36px 28px;
  }

  .direct-answer {
    font-size: 18px;
  }

  .content-block {
    padding: 0 0 30px;
  }

  .content-block + .content-block {
    padding-top: 28px;
  }

  .sister-summary-grid,
  .alternative-grid,
  .facts-panel,
  .not-connected-list,
  .alternatives-list {
    grid-template-columns: 1fr;
  }

  .facts-panel div {
    border-bottom: 1px solid var(--line);
  }

  .facts-panel div:last-child {
    border-bottom: 0;
  }
}
