/* V110 · one masthead axis + visible content filters.
 *
 * The title group inherited the original hero's bottom margin while the
 * statistics group aligned itself to the end.  They therefore occupied the
 * same row but not the same visual axis.  Clear those historical offsets and
 * let both groups share one centre line. The direct URL-backed content rail
 * coexists with the verified control because published community rows may
 * still need fact completion after formal adoption. */

.home-screen .home-deck .home-intro {
  align-items: center;
}

.home-screen .home-deck .home-intro__mast {
  align-self: center;
  margin: 0;
}

.home-screen .home-deck .home-intro__statusline {
  align-self: center;
  margin: 0;
}

.home-screen .home-intro__edition {
  min-height: 32px;
}

.home-screen .home-deck .scope-bar {
  border-radius: 0;
}

.home-screen .home-category-filter {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 5px 22px;
  overflow: hidden;
  border-bottom: 1px solid var(--v63-line, var(--line));
  border-radius: 0 0 calc(var(--v63-radius-panel, 18px) - 1px) calc(var(--v63-radius-panel, 18px) - 1px);
  color: var(--v63-muted, var(--ink-2));
  background: color-mix(in srgb, var(--v63-surface, var(--surface)) 94%, transparent);
}

.home-screen .home-category-filter__label {
  flex: 0 0 auto;
  color: var(--v63-faint, var(--ink-3));
  font: 700 10px/1 var(--font-ui, system-ui, sans-serif);
  letter-spacing: 0.08em;
}

.home-screen .home-category-filter__options {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.home-screen .home-category-filter__options::-webkit-scrollbar {
  display: none;
}

.home-screen .home-category-filter a {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--v63-muted, var(--ink-2));
  font: 720 11px/1 var(--font-ui, system-ui, sans-serif);
  text-decoration: none;
  white-space: nowrap;
}

.home-screen .home-category-filter a small {
  min-width: 17px;
  padding: 2px 5px;
  border-radius: 999px;
  color: var(--v63-faint, var(--ink-3));
  background: var(--v63-surface-3, color-mix(in srgb, currentColor 8%, transparent));
  font: 700 9px/1 var(--font-ui, system-ui, sans-serif);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.home-screen .home-category-filter a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--v63-place, var(--place)) 18%, transparent);
  color: var(--v63-place, var(--place));
  background: var(--v63-place-soft, color-mix(in srgb, var(--v63-place, var(--place)) 8%, transparent));
}

.home-screen .home-category-filter a[aria-current="page"] small {
  color: currentColor;
  background: color-mix(in srgb, currentColor 11%, transparent);
}

.home-screen .home-category-filter a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--v63-place, var(--place)) 28%, transparent);
  outline-offset: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .home-screen .home-category-filter a:hover {
    color: var(--v63-ink, var(--ink));
    background: var(--v63-surface-2, var(--surface-2));
  }
}

@media (max-width: 900px) {
  .home-screen .home-deck .home-intro__mast,
  .home-screen .home-deck .home-intro__statusline {
    align-self: center;
  }

  .home-screen .home-intro__edition {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .home-screen .home-intro__edition i {
    display: inline;
  }

  .home-screen .home-category-filter {
    min-height: 42px;
    gap: 6px;
    padding: 3px 5px 4px 12px;
    border-radius: 0 0 14px 14px;
  }

  .home-screen .home-category-filter a {
    min-height: 34px;
    padding-inline: 9px;
    font-size: 10px;
  }
}

@media (max-width: 410px) {
  .home-screen .home-category-filter__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .home-screen .home-category-filter {
    padding-left: 5px;
  }

  .home-screen .home-category-filter a {
    padding-inline: 8px;
  }
}

@media (forced-colors: active) {
  .home-screen .home-category-filter a[aria-current="page"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}
