/* R110: semantic separation of the home router and professional profile. */

.r32-home .r32-hero-grid,
.r76-page .r76-hero-grid {
  align-items: center;
}

.r32-home .r32-hero h1,
.r76-page .r76-hero h1 {
  max-width: 15ch;
}

.r32-home .r32-hero .r32-copy,
.r76-page .r76-hero .r76-lead {
  max-width: 64ch;
}

.r32-home .r32-hero .r32-actions,
.r76-page .r76-hero .r76-anchor {
  margin-top: clamp(24px, 3vw, 38px);
}

.r32-home .r110-hero-note,
.r76-page .r110-profile-signals {
  margin: 22px 0 0;
}

.r32-home .r110-hero-note {
  max-width: 62ch;
  color: rgba(235, 242, 248, .72);
  font-size: .94rem;
  line-height: 1.55;
}

.r32-home .r32-diagnosis {
  scroll-margin-top: 110px;
}

.r32-home .r32-signals {
  counter-reset: route;
}

.r32-home .r32-signal {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.r32-home .r32-signal::before {
  counter-increment: route;
  content: "0" counter(route);
  display: block;
  margin-bottom: 16px;
  color: #78d4c8;
  font: 700 .75rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}

.r32-home .r110-route-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 20px;
  color: #eef6f7;
  font-weight: 700;
  text-decoration: none;
}

.r32-home .r110-route-link::after {
  content: "\2192";
  margin-left: .55em;
  color: #78d4c8;
}

.r32-home .r110-route-link:hover,
.r32-home .r110-route-link:focus-visible {
  color: #78d4c8;
}

.r32-home .r32-proof-ledgers.r107-four {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.r32-home .r32-proof-ledgers.r107-four > :first-child {
  display: flex !important;
}

.r32-home .r32-proof-ledgers.r107-four .r32-ledger > strong {
  hyphens: auto;
  overflow-wrap: anywhere;
}

.r32-home .r107-source-note {
  max-width: 72ch;
}

.r32-home .r32-final .r32-entry .r32-actions .r32-btn-primary {
  background: transparent;
  color: inherit;
}

.r76-page .r110-profile-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 690px;
}

.r76-page .r110-profile-signals span {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .035);
  color: rgba(239, 246, 249, .78);
  font-size: .8rem;
  line-height: 1.35;
}

.r76-page .r110-profile-signals strong {
  display: block;
  margin-bottom: 3px;
  color: #f4f8f9;
  font-size: .98rem;
}

.r76-page .r110-evidence-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.r76-page .r110-evidence-guide article {
  min-height: 190px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .025);
}

.r76-page .r110-evidence-guide small {
  display: block;
  color: #78d4c8;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.r76-page .r110-evidence-guide h3 {
  margin: 14px 0 9px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.r76-page .r110-evidence-guide p {
  margin: 0;
  color: rgba(232, 240, 244, .72);
  line-height: 1.6;
}

.r76-page .r110-proof-route {
  display: inline-flex;
  margin-top: 28px;
  color: #eff8f7;
  font-weight: 700;
  text-decoration: none;
}

.r76-page .r110-proof-route:hover,
.r76-page .r110-proof-route:focus-visible {
  color: #78d4c8;
}

@media (max-width: 900px) {
  .r76-page .r110-evidence-guide {
    grid-template-columns: 1fr;
  }

  .r32-home .r32-proof-ledgers.r107-four {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .r76-page .r110-profile-signals {
    grid-template-columns: 1fr 1fr;
  }
}

/* The legacy desktop layout remains active at 901px, where its 230px rail and
   four-stage flow exceed the available container. Switch before that edge. */
@media (max-width: 960px) {
  .r32-home .r35-deck-shell {
    grid-template-columns: 1fr !important;
  }

  .r32-home .r35-case-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .r32-home .r35-case-source {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .r32-home .r57-outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .r32-home .r57-outcome-grid > :last-child {
    grid-column: 1 / -1;
  }

  .r32-home :is(.r35-case-flow, .r35-case-source, .r57-outcome-grid, .r57-metric) {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .r32-home .r35-case-flow,
  .r32-home .r57-outcome-grid {
    grid-template-columns: 1fr !important;
  }

  .r32-home .r57-outcome-grid > :last-child {
    grid-column: auto;
  }

  .r32-home .r32-proof-ledgers.r107-four {
    grid-template-columns: 1fr !important;
  }

  .r32-home .r32-hero h1,
  .r76-page .r76-hero h1 {
    max-width: none;
  }

  .r32-home .r32-hero .r32-actions,
  .r76-page .r76-hero .r76-anchor {
    margin-top: 22px;
  }

  .r76-page .r110-profile-signals {
    grid-template-columns: 1fr;
  }

  .r76-page .r110-profile-signals span {
    padding: 11px 12px;
  }

  .r76-page .r110-evidence-guide article {
    min-height: 0;
  }

  .r32-home .r32-hero .r32-portrait,
  .r76-page .r76-hero .r76-portrait {
    display: none;
  }
}
