/* Distinct authority and actor stages; scoped to the objective router. */
[data-router] .journey-steps .step-disabled {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: var(--wash);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: default;
}

[data-router] .authority-choices,
[data-router] .actor-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

[data-router] .authority-choice,
[data-router] .actor-choice {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  overflow-wrap: anywhere;
}

[data-router] .authority-choice > .record-id {
  margin-bottom: 10px;
}

[data-router] .authority-choice-title,
[data-router] .actor-choice-name {
  font-size: 1.2rem;
  line-height: 1.45;
  margin: 0 0 16px;
}

[data-router] .authority-choice .source-list li {
  padding: 0 0 9px;
  margin: 0 0 9px;
  font-size: .875rem;
}

[data-router] .authority-choice dl {
  margin: 10px 0 20px;
  font-size: .9375rem;
}

[data-router] .authority-choice dl > div + div {
  margin-top: 15px;
}

[data-router] .authority-choice dt,
[data-router] .actor-choice h4 {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0 0 6px;
}

[data-router] .authority-choice dd {
  margin: 0;
  line-height: 1.65;
}

[data-router] .authority-choice-next {
  align-self: flex-start;
  margin-top: auto;
}

[data-router] .actor-choice-kind {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .035em;
}

[data-router] .actor-choice-routing {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-left: 3px solid var(--teal);
  background: var(--wash);
  font-size: .875rem;
}

[data-router] .actor-choice-qualifier {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

[data-router] .actor-choice-instruments {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

[data-router] .actor-choice-instruments li {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  line-height: 1.6;
}

[data-router] .actor-choice-instruments .record-id {
  display: block;
  margin-bottom: 3px;
}

[data-router] .actor-choice-boundary {
  margin-bottom: 22px;
}

[data-router] .actor-choice-limit {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.65;
}

[data-router] .actor-choice-action {
  margin-top: auto;
}

[data-router] .actor-choice-route-context {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.6;
}

[data-router] .actor-choice-route-type {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 700;
}

[data-router] .actor-choice-engagement {
  white-space: normal;
}

[data-router] .actor-choice-all-engagement {
  display: block;
  width: fit-content;
  margin-top: 12px;
  font-size: .875rem;
}

[data-router] .followup-navigation {
  margin: 22px 0 0;
  font-size: .875rem;
}

.general-compare-mobile { display: none; }
.source-alternate { font-size: .8125rem; font-weight: normal; }
@media print { .source-alternate { font-size: 6.5pt; } }
.content-section, .authority-opening, .instrument-group { scroll-margin-top: calc(var(--header-height, 86px) + var(--journey-trail-height, 0px) + 16px); }
.contents { top: calc(var(--header-height, 86px) + var(--journey-trail-height, 0px) + 16px); }
.check-state { overflow-wrap: anywhere; }
.card-bottom { flex-wrap: wrap; }
.role li a { display: inline-flex; align-items: center; min-height: 28px; padding-block: 3px; max-width: 100%; }
.journey-trail.trail-unpinned { position: static; }
.header-inner, .main-nav { flex-wrap: wrap; }
@media screen and (max-width: 1100px) {
  .header-inner { justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: white; border-bottom: 1px solid var(--line); padding: 14px 20px; box-shadow: 0 10px 20px #102b4010; }
  .main-nav.is-open { display: flex; flex-wrap: wrap; gap: 5px 25px; }
  .main-nav a { padding: 11px 0; font-size: .875rem; }
  .nav-compare { border: 0; padding-left: 0 !important; }
  .journey-trail { position: static; }
}
.general-compare-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; overflow-wrap: anywhere; }
.general-compare-card h2 { font-size: 1.25rem; margin-top: 10px; }
.general-compare-card details { border-top: 1px solid var(--line); margin-top: 14px; }
.general-compare-card summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
@media screen and (max-width: 719px) {
  #compare-content .compare-wrap { display: none; }
  .general-compare-mobile { display: grid; gap: 20px; margin-top: 22px; }
}

@media (max-width: 760px) {
  [data-router] .authority-choices,
  [data-router] .actor-choices {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-router] .authority-choice,
  [data-router] .actor-choice {
    padding: 20px;
  }
}

@media (max-width: 650px) {
  /* Leave room to read when text is enlarged; the trail remains in page flow. */
  .journey-trail { position: static; }
  .journey-trail .journey-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-trail .journey-steps a { font-size: .875rem; padding: 10px; }
  .action-row .button { flex: 1 1 10rem; min-width: min(10rem, 100%); overflow-wrap: normal; }
  [data-router] .journey-steps .step-disabled {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    font-size: .8125rem;
  }
}

/* Program evidence uses the same reading width and progressive disclosure as records. */
.program-route { border:1px solid var(--line,#d9e0e6); border-radius:12px; padding:clamp(16px,3vw,28px); margin:24px 0; overflow-wrap:anywhere; }
.program-route dl { margin:16px 0; }
.program-route dt { font-weight:700; margin-top:10px; }
.program-route dd { margin:3px 0 12px; }
.program-route h4 { margin:22px 0 10px; }
.program-facts { padding-left:22px; }
.program-facts li { margin:14px 0; }
.program-facts p { margin:4px 0; }
.program-citation { display:block; line-height:1.6; }
.program-link small { display:block; font-size:.78rem; margin-top:4px; }
.program-route .button { white-space:normal; overflow-wrap:anywhere; max-width:100%; }
/* Evidence remains readable before JavaScript and on narrow screens. */
[hidden] { display:none !important; }
.source-meta { display:block; margin-top:.25rem; }
.relationship-note { border-left:3px solid #307566; padding:.8rem 1rem; margin:1rem 0; background:#f1f7f5; }
.relationship-note p { margin:.45rem 0; }
.evidence-filters { display:flex; align-items:end; flex-wrap:wrap; gap:1rem; margin:1.5rem 0; }
.evidence-filters>div { flex:1 1 210px; min-width:0; }
.evidence-filters label { display:block; font-weight:650; margin-bottom:.4rem; }
.evidence-filters input,.evidence-filters select { width:100%; max-width:100%; min-height:44px; padding:.7rem; border:1px solid #8c9c9e; border-radius:6px; background:white; font:inherit; }
.relationship-definitions dt { font-weight:700; margin-top:1rem; }
.relationship-definitions dd { margin:.3rem 0 1rem; max-width:80ch; }
.source-entry { padding:1.4rem 0; border-bottom:1px solid #ccd5d8; scroll-margin-top:12rem; overflow-wrap:anywhere; }
.source-entry h2 { font-size:1.15rem; }
.source-entry summary,.evidence-card summary { cursor:pointer; min-height:44px; padding:.6rem 0; }
.evidence-card details ul { padding-left:1.2rem; }
.evidence-card details p { margin:.4rem 0; }
