/* AUN-2152 combined mock: Router hero + glyph entrance + Index rows (hover preview), Mona/Hubot type. */
/* Scale: smaller, calmer */
.routing-title .glyph-assemble { width: max-content; max-width: 100%; }
.routing-title .wordmark { font-size: clamp(30px, 5vw, 68px); }
.routing-hero { min-height: 520px; }
.hero-lede { margin: 18px 0 0; max-width: 30ch; color: var(--bright); font-size: clamp(20px, 2vw, 26px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.hero-sub { margin: 12px 0 0; max-width: 52ch; color: var(--body); font-size: 16px; line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--hair); background: var(--panel); color: var(--bright); font-size: 15px; font-weight: 500; text-decoration: none; }
.hero-cta:first-child { background: var(--phosphor); border-color: var(--phosphor); color: #05130a; }
.hero-cta:is(:hover, :focus-visible) { border-color: var(--phosphor); }
.hero-cta .brand-icon { width: 18px; height: 18px; fill: currentColor; }
.graph-caption { grid-column: 1 / -1; z-index: 1; margin: 34px 0 0; color: var(--muted); font-size: 14px; }
.routing-node { scroll-margin-top: 24px; }

.index-projects { margin-top: clamp(48px, 6vw, 88px); }
.index-projects .section-title { font-size: 22px; }
.index-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; scroll-margin-top: 24px; }
.index-item > h3 { margin: 0; min-width: 0; }
.index-item .index-detail { grid-column: 1 / -1; }
.index-row { min-height: 64px; padding: 10px 0; grid-template-columns: minmax(0, 1fr) minmax(220px, 34%) minmax(5ch, max-content); text-decoration: none; }
.index-row .display, .index-item .index-row .display { font-size: clamp(22px, 2.4vw, 32px); }
.row-icons { display: grid; grid-template-columns: repeat(2, 40px); gap: 4px; }
.row-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted); }
.row-icon .brand-icon { width: 18px; height: 18px; fill: currentColor; }
.row-icon:is(:hover, :focus-visible) { color: var(--phosphor); }
@media (max-width: 759px) {
  .index-row { grid-template-columns: minmax(0, 1fr) auto; }
  .index-row .display, .index-item .index-row .display { font-size: 22px; }
  .row-icons { align-self: start; margin-top: 10px; }
}

.project-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
  color: var(--muted);
  font: 400 13px/1.5 var(--mono);
  white-space: nowrap;
}
.project-stars svg { inline-size: 14px; block-size: 14px; fill: currentColor; }
.all-repos-link { margin-top: 4px; font-size: var(--fs-small); }

/* Hero layout: text + start node on the left, repo nodes on the right */
@media (min-width: 760px) {
  .routing-hero { grid-template-columns: minmax(0, 1fr) minmax(240px, 26%); grid-template-rows: auto auto 1fr; column-gap: 8%; min-height: 0; }
  .routing-title { grid-column: 1; grid-row: 1; }
  .graph-caption { grid-column: 1; grid-row: 2; margin-top: 40px; }
  .routing-task { grid-column: 1; grid-row: 3; align-self: start; margin-top: 12px; }
  .routing-nodes { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}
