/* Filters, 18 November 2026: the question mark beside each row, the moving card it opens (views/filter-help.js), presses
   that answer the pointer, and the dialog over Home with every row in view.

   The owner: each filter should explain itself with a small illustration that moves, as "Important for all" does on Home;
   the hover on the filter buttons was almost not there; Filters as a dialog in the middle of Home; no "More options". */

/* ── the dialog: every row in view; More options is open and its button is gone ── */
html body #modalFilter .fl-dialog .fl-fold { border-top: 0; }
html body #modalFilter .fl-dialog .fl-fold__btn { display: none !important; }
html body #modalFilter .fl-dialog .fl-fold__panel { grid-template-rows: 1fr !important; opacity: 1 !important; }

/* ── the question mark beside a row's name ── */
html body .fl-row__label { display: flex; align-items: center; gap: 6px; }
html body .fl-help { display: inline-grid; flex: none; width: 24px; height: 24px; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--cl-ink-4); font-size: 15px; cursor: help; transition: background-color .16s var(--cl-out), color .16s var(--cl-out); }
html body .fl-help:hover, html body .fl-help[aria-expanded="true"] { background: var(--cl-hover); color: var(--cl-ink); }
html body .fl-help:focus-visible { outline: 2px solid var(--cl-lilac); outline-offset: 1px; }

/* ── the card ── */
.fh-tip { position: fixed; z-index: 2000; left: 0; top: 0; width: 300px; padding: 10px 10px 14px; border: 1px solid var(--cl-line-2); border-radius: 16px; background: var(--cl-surface); color: var(--cl-ink); box-shadow: 0 26px 60px -24px rgba(26, 26, 26, .34), 0 2px 8px -4px rgba(26, 26, 26, .12); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px) scale(.98); transform-origin: 24px 0; transition: opacity .2s var(--cl-out), transform .3s var(--cl-spring), visibility 0s linear .2s; }
.fh-tip.is-above { transform: translateY(6px) scale(.98); transform-origin: 24px 100%; }
.fh-tip.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.fh-tip.is-placing { transition: none; }
.fh-t { margin: 12px 4px 0; font-size: 14.5px; color: var(--cl-ink); }
.fh-d { margin: 5px 4px 0; font-size: 13.5px; line-height: 1.5; color: var(--cl-ink-3); }

/* ── the picture: a control on top, small posts under it, on a lilac wash; one loop of 5 s ── */
.fh-art { --dur: 5s; position: relative; height: 150px; padding: 12px 14px 0; overflow: hidden; border-radius: 11px; background: color-mix(in srgb, var(--cl-lilac) 9%, var(--cl-page, var(--cl-surface-2))); }
.fh-ctl { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.fh-ctl--row { justify-content: space-between; }
.fh-ctl--adds { margin: -4px 0 8px; height: 22px; }
.fh-feed { display: flex; flex-direction: column; }
.fh-card { position: relative; display: grid; grid-template-columns: 16px 1fr auto; grid-template-rows: 6px 6px; column-gap: 9px; row-gap: 5px; align-content: center; align-items: center; height: 30px; margin-bottom: 6px; padding: 0 9px 0 10px; overflow: hidden; border: 1px solid var(--cl-line); border-radius: 8px; background: var(--cl-surface); }
.fh-card > i, .fh-card > .fh-dot { grid-row: 1 / span 2; display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; font-size: 12px; font-style: normal; color: var(--cl-ink-3); }
.fh-card > .fh-dot { background: var(--cl-line-2); }
.fh-card > b { grid-column: 2; width: 74%; height: 6px; border-radius: 3px; background: var(--cl-line-3); }
.fh-card > b.s { width: 46%; background: var(--cl-line-2); }
.fh-tag { grid-column: 3; grid-row: 1 / span 2; padding: 1px 6px; border-radius: 999px; background: var(--cl-surface-2); font-size: 9.5px; line-height: 1.5; color: var(--cl-ink-3); white-space: nowrap; }
/* the controls, drawn small */
.fh-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface); font-size: 10.5px; color: var(--cl-ink-2); white-space: nowrap; }
.fh-chip__ic { position: relative; display: inline-grid; width: 11px; height: 11px; place-items: center; font-size: 10px; }
.fh-chip__ic > i { grid-area: 1 / 1; }
.fh-chip__ic > .ph-check { opacity: 0; }
.fh-chip.is-on { border-color: color-mix(in srgb, var(--cl-lilac) 50%, transparent); background: color-mix(in srgb, var(--cl-lilac) 15%, var(--cl-surface)); color: var(--cl-ink); }
.fh-chip.is-on .ph-plus { opacity: 0; } .fh-chip.is-on .ph-check { opacity: 1; }
.fh-spec { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 7px; border: 1px solid var(--cl-line); border-radius: 999px; background: var(--cl-surface); font-size: 10.5px; color: var(--cl-ink-2); }
.fh-spec i { font-size: 11px; color: var(--cl-ink-4); }
.fh-seg { position: relative; display: inline-grid; grid-template-columns: repeat(var(--n), auto); padding: 2px; border: 1px solid var(--cl-line); border-radius: 999px; background: var(--cl-surface-2); font-size: 10.5px; color: var(--cl-ink-3); }
.fh-seg > span:not(.fh-seg__plate) { position: relative; z-index: 1; padding: 3px 9px; white-space: nowrap; }
.fh-seg__plate { position: absolute; z-index: 0; top: 2px; bottom: 2px; left: 2px; border-radius: 999px; background: var(--cl-surface); box-shadow: 0 1px 2px rgba(26, 26, 26, .12); }
.fh-sw { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: var(--cl-line-3); }
.fh-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--cl-surface); box-shadow: 0 1px 2px rgba(26, 26, 26, .22); }
.fh-sw--on { background: color-mix(in srgb, var(--cl-lilac) 72%, var(--cl-ink)); }
.fh-sw--on::after { transform: translateX(12px); }

/* ── what moves, on the shared clock (only while the card is open: .is-run) ── */
.fh-art.is-run .fh-out { animation: fh-out var(--dur) var(--cl-out) infinite; }
.fh-art.is-run .is-keep { animation: fh-keep var(--dur) var(--cl-out) infinite; }
.fh-art.is-run .fh-chip.is-act { animation: fh-chip var(--dur) var(--cl-out) infinite; }
.fh-art.is-run .fh-chip.is-act .ph-plus { animation: fh-plus var(--dur) var(--cl-out) infinite; }
.fh-art.is-run .fh-chip.is-act .ph-check { animation: fh-check var(--dur) var(--cl-out) infinite; }
.fh-art.is-run .fh-seg__plate { animation: fh-plate var(--dur) var(--cl-spring) infinite; }
.fh-seg__plate { width: calc((100% - 4px) / var(--n)); }
.fh-art.is-run .fh-sw { animation: fh-sw-on var(--dur) var(--cl-out) infinite; }
.fh-art.is-run .fh-sw::after { animation: fh-knob-on var(--dur) var(--cl-spring) infinite; }
.fh-art.is-run .fh-sw--on { animation: fh-sw-off var(--dur) var(--cl-out) infinite; }
.fh-art.is-run .fh-sw--on::after { animation: fh-knob-off var(--dur) var(--cl-spring) infinite; }
.fh-art.is-run .fh-add { animation: fh-add var(--dur) var(--cl-spring) infinite; }
.fh-art.is-run .fh-add--2 { animation-delay: .12s; }
.fh-add { opacity: 0; }
.fh-art.is-run .fh-in { animation: fh-in var(--dur) var(--cl-out) infinite; }
.fh-in { height: 0; margin-bottom: 0; opacity: 0; border-width: 0; }
.fh-art.is-run .fh-leave { animation: fh-leave var(--dur) var(--cl-out) infinite; }
.fh-star { border-color: color-mix(in srgb, var(--cl-lilac) 42%, transparent); background: color-mix(in srgb, var(--cl-lilac) 15%, var(--cl-surface)); }
.fh-star > i { color: color-mix(in srgb, var(--cl-lilac) 70%, var(--cl-ink)); }
.fh-alert > i { color: #C2410C; }
.fh-alert::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #E2553A; }
/* Cards and List: the two layouts take turns */
.fh-stage { position: relative; height: 92px; }
.fh-lay { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; }
.fh-lay--cards { flex-direction: row; gap: 8px; }
.fh-big { display: flex; flex: 1; flex-direction: column; gap: 5px; padding: 6px; border: 1px solid var(--cl-line); border-radius: 8px; background: var(--cl-surface); }
.fh-pic { height: 40px; border-radius: 5px; background: linear-gradient(135deg, color-mix(in srgb, var(--cl-lilac) 34%, var(--cl-surface)), color-mix(in srgb, var(--cl-lilac) 12%, var(--cl-surface))); }
.fh-big > b { width: 80%; height: 5px; border-radius: 3px; background: var(--cl-line-3); } .fh-big > b.s { width: 52%; background: var(--cl-line-2); }
.fh-line { display: flex; align-items: center; gap: 7px; height: 18px; padding: 0 8px; border: 1px solid var(--cl-line); border-radius: 6px; background: var(--cl-surface); }
.fh-line > i { width: 9px; height: 9px; border-radius: 50%; background: var(--cl-line-2); } .fh-line > b { width: 70%; height: 5px; border-radius: 3px; background: var(--cl-line-3); }
.fh-lay--list { opacity: 0; }
.fh-art.is-run .fh-lay--cards { animation: fh-lay-a var(--dur) var(--cl-out) infinite; }
.fh-art.is-run .fh-lay--list { animation: fh-lay-b var(--dur) var(--cl-out) infinite; }

@keyframes fh-out { 0%, 38% { opacity: 1; transform: none; } 50%, 86% { opacity: .2; transform: scale(.98); } 96%, 100% { opacity: 1; transform: none; } }
@keyframes fh-keep { 0%, 38% { border-color: var(--cl-line); background: var(--cl-surface); } 50%, 86% { border-color: color-mix(in srgb, var(--cl-lilac) 50%, transparent); background: color-mix(in srgb, var(--cl-lilac) 13%, var(--cl-surface)); } 96%, 100% { border-color: var(--cl-line); background: var(--cl-surface); } }
@keyframes fh-chip { 0%, 30% { border-color: var(--cl-line-2); background: var(--cl-surface); color: var(--cl-ink-2); transform: none; } 34% { transform: scale(.92); } 40%, 88% { border-color: color-mix(in srgb, var(--cl-lilac) 50%, transparent); background: color-mix(in srgb, var(--cl-lilac) 15%, var(--cl-surface)); color: var(--cl-ink); transform: none; } 96%, 100% { border-color: var(--cl-line-2); background: var(--cl-surface); color: var(--cl-ink-2); } }
@keyframes fh-plus { 0%, 34% { opacity: 1; } 40%, 88% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes fh-check { 0%, 34% { opacity: 0; } 40%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes fh-plate { 0%, 34% { transform: translateX(0); } 44%, 88% { transform: translateX(calc(var(--to) * 100%)); } 98%, 100% { transform: translateX(0); } }
@keyframes fh-sw-on { 0%, 34% { background: var(--cl-line-3); } 40%, 88% { background: color-mix(in srgb, var(--cl-lilac) 72%, var(--cl-ink)); } 96%, 100% { background: var(--cl-line-3); } }
@keyframes fh-knob-on { 0%, 34% { transform: none; } 42%, 88% { transform: translateX(12px); } 98%, 100% { transform: none; } }
@keyframes fh-sw-off { 0%, 34% { background: color-mix(in srgb, var(--cl-lilac) 72%, var(--cl-ink)); } 40%, 88% { background: var(--cl-line-3); } 96%, 100% { background: color-mix(in srgb, var(--cl-lilac) 72%, var(--cl-ink)); } }
@keyframes fh-knob-off { 0%, 34% { transform: translateX(12px); } 42%, 88% { transform: none; } 98%, 100% { transform: translateX(12px); } }
@keyframes fh-add { 0%, 36% { opacity: 0; transform: translateY(4px) scale(.9); } 46%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(4px) scale(.9); } }
@keyframes fh-in { 0%, 40% { height: 0; margin-bottom: 0; opacity: 0; border-width: 0; } 52%, 88% { height: 30px; margin-bottom: 6px; opacity: 1; border-width: 1px; } 98%, 100% { height: 0; margin-bottom: 0; opacity: 0; border-width: 0; } }
@keyframes fh-leave { 0%, 38% { height: 30px; margin-bottom: 6px; opacity: 1; border-width: 1px; } 50%, 86% { height: 0; margin-bottom: 0; opacity: 0; border-width: 0; } 98%, 100% { height: 30px; margin-bottom: 6px; opacity: 1; border-width: 1px; } }
@keyframes fh-lay-a { 0%, 36% { opacity: 1; transform: none; } 46%, 86% { opacity: 0; transform: scale(.97); } 96%, 100% { opacity: 1; transform: none; } }
@keyframes fh-lay-b { 0%, 36% { opacity: 0; transform: scale(1.03); } 46%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .fh-tip { transition: opacity .12s linear; transform: none !important; } .fh-art * { animation: none !important; } }
html.a11y-reduce-motion .fh-art * { animation: none !important; }

/* ── presses that answer the pointer (the owner: the hover on the filter buttons was almost not there) ── */
html body :is(#modalFilter, #filtersScreen) .fl-chips .chiptog { transition: border-color .18s var(--cl-out), background-color .18s var(--cl-out), color .18s var(--cl-out), transform .22s var(--cl-spring), box-shadow .22s var(--cl-out), scale .12s var(--cl-out); }
@media (hover: hover) {
  html body :is(#modalFilter, #filtersScreen) .fl-chips .chiptog:not(.is-on):not(.fl-dim):hover { border-color: var(--cl-line-3); background: var(--cl-hover); color: var(--cl-ink); transform: translateY(-1px); box-shadow: 0 4px 10px -6px rgba(26, 26, 26, .22); }
  html body :is(#modalFilter, #filtersScreen) .fl-chips .chiptog:not(.is-on):not(.fl-dim):hover .fl-chip__ic { color: var(--cl-ink); }
  html body :is(#modalFilter, #filtersScreen) .fl-chips .chiptog.is-on:hover { background: color-mix(in srgb, var(--cl-lilac) 22%, var(--cl-surface)); transform: translateY(-1px); }
  html body :is(#modalFilter, #filtersScreen) .fl-seg > button:not(.seg-on):not(.is-on):hover { color: var(--cl-ink); }
  html body :is(#modalFilter, #filtersScreen) .fl-seg > button:not(.seg-on):not(.is-on):hover::before { opacity: 1; }
  html body :is(#modalFilter, #filtersScreen) .fl-switch:hover .fl-switch__sw { filter: brightness(.96); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cl-lilac) 12%, transparent); }
}
/* a soft plate under a segment option the pointer rests on */
html body :is(#modalFilter, #filtersScreen) .fl-seg > button { position: relative; transition: color .16s var(--cl-out); }
html body :is(#modalFilter, #filtersScreen) .fl-seg > button::before { content: ''; position: absolute; inset: 3px 2px; z-index: -1; border-radius: 999px; background: color-mix(in srgb, var(--cl-ink) 6%, transparent); opacity: 0; transition: opacity .16s var(--cl-out); pointer-events: none; }
html body :is(#modalFilter, #filtersScreen) .fl-chips .chiptog:active, html body :is(#modalFilter, #filtersScreen) .fl-seg > button:active { scale: .96; }
html body :is(#modalFilter, #filtersScreen) .fl-switch .fl-switch__sw { transition: background-color .2s var(--cl-out), box-shadow .2s var(--cl-out), filter .2s var(--cl-out); }

/* ── the dialog fits the window on a desktop (19 November 2026, the night audit: it scrolled inside at every desktop size, even
   1920x1080, and Published and Evidence type were out of view; the owner asked for every row in view). Wider, so each list of
   choices keeps to one line where it can (in Spanish too) and each row's name with its question mark stays on one line, and a
   little less air around the rows; shorter windows tighten a little more. ── */
@media (min-width: 1024px) {
  html body #modalFilter > .cf-sheet.fl-sheet { width: min(960px, 100%); max-width: 960px; max-height: calc(100dvh - 24px); }
  html body #modalFilter .fl-sheet .fl-body { padding-left: 40px; padding-right: 40px; }
  html body #modalFilter .fl-sheet .cf-head { min-height: 0; padding-top: 18px; padding-bottom: 10px; }
  html body #modalFilter .fl-sheet .fl-row { grid-template-columns: 156px minmax(0, 1fr); padding-top: 10px; padding-bottom: 10px; }
  html body #modalFilter .fl-sheet .fl-row__label { padding-top: 6px; }
  html body #modalFilter .fl-sheet .fl-chips { gap: 6px; }
  html body #modalFilter .fl-sheet .fl-chips .chiptog { height: 36px; }
  html body #modalFilter .fl-seg > button, html body #modalFilter .fl-seg__ind { height: 32px; }
  html body #modalFilter .fl-switch { min-height: 36px; }
  html body #modalFilter .cf-foot { padding-top: 12px; padding-bottom: 12px; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  html body #modalFilter .fl-sheet .fl-row { padding-top: 7px; padding-bottom: 7px; }
}
