/* Wave 5 (2026-11-24, Michael's change list after reader 0.16.1). Loaded last, after every other style sheet. */

/* 1. Footer: on the web the bar uses the full width (links to the far right, the ticker starts at the left edge). Phones keep their own layout (fixed-footer.css). */
@media (min-width: 761px) {
  :root:root .app-footer { padding-inline: 20px; }
  .app-footer .footer-ticker { margin-inline-end: 28px; }
}

/* 2. "Dein Update": count, then (new · seen · read), then the visitors button further right */
.results-heading #result-count { order: 0; }
.results-heading .seen-counts { order: 1; }
.results-heading .seen-counts:not([hidden])::before { content: "("; margin-inline-end: -.5em; }
.results-heading .seen-counts:not([hidden])::after { content: ")"; margin-inline-start: -.5em; }
.results-heading .he-count { order: 2; margin-inline-start: 14px; }
.results-heading #reset-filters { order: 3; }

/* 3. Header: the date block sits in the middle of the clock's height */
.intro-stamp > .issue-date { justify-content: center; }

/* 4. Shared posts legend: title line, one line per colour, separators above and below */
.shared-legend { display: block; margin: 14px 0; padding: 12px 0; border-block: 1px solid var(--line); }
.shared-legend .shared-legend-title { display: block; margin-bottom: 4px; }
.shared-legend [data-shared-dir] { display: flex; margin-top: 8px; }

/* 5. Menus: separators between the groups of settings */
.filter-popover .reader-display-section,
.filter-popover .content-label-section,
#reading-panel > :is(.text-style, .media-visibility, .spatial-options, .seen-settings, .ticker-setting),
#format-panel > .shared-legend + .expand-width { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
#format-panel > .expand-width { margin-top: 14px; }
#reading-panel > .seen-settings { margin-bottom: 0; }
/* the width of an opened post only matters while the columns are NOT fitted to the screen height */
.expand-width.fit-on .expand-span-group { display: none; }
.expand-span-group { margin-top: 12px; }

/* 6. Content types: icon box on the left at its own size, name and description in the space beside it */
.kind-option > span.kind-symbol { flex: 0 0 30px; }
.kind-option > span:not(.kind-symbol):not(.kind-option-share) { flex: 1; min-width: 0; }

/* 7. The block with the basic settings and the topics: 80 % opacity (the glass style keeps its own, lighter value) */
:root:root:not([data-style=glass]) .control-deck { background: color-mix(in srgb, var(--bg) 90%, transparent); }

/* 8. "Content Mix" has no filled background, like "Beitrag erstellen" and "Als Startseite" */
:root:root .results-bar .content-mix-toggle { background: transparent; }

/* 9. Sort menu: as wide as its options (at least the sort control); the explanation wraps instead of widening the list */
.ts-list { inline-size: max-content; }
.ts-list .ts-note { contain: inline-size; white-space: normal; }
