/* PATCH-6100 (owner 2026-11-04; Cat's consolidated hand-off is the spec): one
   navigation pattern below 1024px, where the rails begin. /getting-started and
   /features keep their "On this page" lists expanded as full-width rows; the
   blog's two filter groups are the same rows behind native disclosures whose
   summaries always show the current choice. Loaded after the page's own
   stylesheet, on those pages only, so each rule below wins over it, and
   before site-chrome.css, which is always last. From 1024px nothing here
   applies but the one rule that hides the disclosures. */

.filters-phone { display: none; }

@media (max-width: 1023px) {
  .rail-title, .rail-group-title {
    padding: 0 12px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted);
  }
  .rail-title { margin: 0 0 12px; }

  /* The row. Its bottom divider counts inside the 48px, and text grows it. */
  .jump a, .filters-phone .filter-links a {
    display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px;
    width: 100%; min-height: 48px; padding: 11px 12px;
    border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; background: none;
    font-family: var(--font-ui); font-size: 16px; line-height: 1.5; color: var(--text-secondary);
    white-space: normal;
  }
  .jump li:last-child > a, .filters-phone .filter-links li:last-child > a { border-bottom: 0; }
  .jump a:is(:hover, :focus-visible), .filters-phone .filter-links a:is(:hover, :focus-visible) {
    color: var(--text); background: var(--bg-raised);
    text-decoration: underline; text-underline-offset: 3px;
  }
  .jump a[aria-current] { color: var(--text); font-weight: 600; }

  /* Features: the titles are labels of their lists, never links or Tab stops. */
  .rail-group-title { margin: 0 0 8px; font-weight: 500; }
  .rail-group + .rail-group { margin-top: 16px; }
  .rail-overview > a { border-top: 1px solid var(--border-strong); }

  /* The blog's filters. */
  .filters { margin: 0 0 32px; }
  .filters-desktop { display: none; }
  .filters-phone { display: block; }
  .filters-phone details { border-bottom: 1px solid var(--border-strong); }
  .filters-phone summary { display: block; list-style: none; cursor: pointer; }
  .filters-phone summary::-webkit-details-marker { display: none; }
  .filters-phone summary:is(:hover, :focus-visible) { background: var(--bg-raised); }
  /* The columns sit on a span inside the summary: a WebKit summary may ignore
     `display: grid` set on the summary itself, and the owner reads on an iPhone. */
  .filter-summary {
    display: grid; grid-template-columns: 88px minmax(0, 1fr) 16px; gap: 12px; align-items: center;
    min-height: 48px; padding: 11px 12px;
  }
  .filters-phone .filter-label { min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
  .filter-value {
    min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--text); overflow-wrap: anywhere;
  }
  .filter-chevron { width: 16px; height: 16px; color: var(--text-muted); }
  .filters-phone details[open] .filter-chevron { transform: rotate(180deg); }
  .filters-phone .filter-links { display: block; padding: 0 0 8px; }
  .filters-phone .filter-links a[aria-current] { color: var(--accent-text); font-weight: 600; }
  .filter-check { flex: none; width: 16px; height: 16px; margin-left: auto; }
}
