/* Keep the original POS ruler spacing after inserting the new first project. */
.ruler-item:nth-child(2) { flex-grow: 1; }
.ruler-item[href$="#stubhub-pos"] { flex-grow: 2; }

/* Chips fit within the existing label row without changing ruler spacing. */
.work-navigation { --ruler-chip: color-mix(in srgb, var(--ink) 10%, var(--navigation)); }
.ruler-label { padding: 5px 8px; margin: -5px -8px; border-radius: 999px; }
.home-icon, .profile-icon { width: 30px; height: 30px; padding: 6px; margin: -4px; border-radius: 50%; }
.ruler-item[aria-current] :is(.ruler-label, .ruler-character) { background: var(--ruler-chip); }
.ruler-item[aria-current] .ruler-label { color: var(--brand-ruler-dark); }
:root[data-theme="light"] .ruler-item[aria-current] .ruler-label { color: var(--brand); }
.ruler-item[aria-current] .character-silhouette { stroke: currentColor; }
.ruler-item[aria-current] .character-eyes { fill: var(--ruler-chip); }
.ruler-item[aria-current] .character-glasses { fill: var(--ruler-chip); stroke: currentColor; }
.ruler-item[aria-current] .character-pupils { fill: currentColor; }

/* Strong device outlines use the row's semantic foreground in every theme/state. */
.project-row .project-platforms { color: inherit; }
.project-index-head, .project-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 64px; }
.platform-column-title { text-align: right; }
@media (max-width: 760px) {
  .project-index-head, .project-row { grid-template-columns: minmax(0, 1fr) 64px; }
  .project-index-head { display: grid; column-gap: 12px; padding-inline: 6px; }
  .project-index-head > span:nth-child(2) { display: none; }
}

/* Give hero labels and impact rows room to breathe across every project. */
.project-facts dt { margin-bottom: 16px; }
.project-facts > div + div { margin-top: 32px; }
.impact-results p { padding-block: 16px; }

/* Impact figures and their descriptions share the regular body typography. */
.project-facts dd { font-size: var(--body-size); }
.client-credit { text-decoration: underline; text-underline-offset: .2em; }
.impact-results strong { font: inherit; letter-spacing: normal; }

/* The scale grows upward from a shared bottom edge, without a baseline. */
.work-navigation { width: 100%; max-width: 100vw; }
.ruler-scroll { width: 100%; min-width: 0; }
.project-ruler::before { content: none; }
.ruler-ticks { top: 45px; height: 28px; }
.tick { top: auto; bottom: 0; transform-origin: center bottom; border-radius: 1px; }

/* Fade the scrolling content itself, so both themes keep their natural surface. */
@media (max-width: 760px) {
  .ruler-scroll {
    scroll-padding-inline: 28px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 28px, black calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, transparent, black 28px, black calc(100% - 28px), transparent);
  }
}

/* About's fixed sky continues seamlessly behind the whole ruler. */
:root .about-page .work-navigation {
  background: inherit;
  --ink: var(--about-ink);
  --focus: var(--about-ink);
  --ruler-muted: var(--about-muted);
  --ruler-active-label: var(--about-ink);
  --ruler-chip: color-mix(in srgb, var(--about-ink) 12%, transparent);
}
:root .about-page .ruler-item[aria-current] :is(.ruler-label, .ruler-character) { color: var(--brand); }
/* Keep lens details crisp instead of layering the translucent chip over blue fill. */
.about-page .ruler-item[aria-current] .character-glasses { fill: var(--brand-ink); }
.about-page .ruler-item[aria-current] .character-pupils { fill: var(--brand); }
