/* Clarity pass (space optimizer). Read with js/clarity.js.
   Goal: a first-time visitor understands the page at a glance. Shorter sections, one plain row that says
   what the site holds, secondary filters folded away. Uses only site.css tokens; adds no new colours. */

/* Hero: "What you will find here" replaces the stat counters. Same rhythm as the old counts row
   (hairline on top, Didone word, sans line), but every item is a link. */
.guide{ margin-top:var(--s-7); padding-top:var(--s-5); border-top:1px solid var(--line); }
.guide__h{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-0); font-weight:400; color:var(--ash); margin:0 0 var(--s-4); }
.guide__list{ list-style:none; margin:0; padding:0; display:grid; gap:var(--s-2); grid-template-columns:1fr; }
@media (min-width:600px){ .guide__list{ grid-template-columns:repeat(2,1fr); gap:var(--s-3) var(--s-5); } }
@media (min-width:1000px){ .guide__list{ grid-template-columns:repeat(5,1fr); } }
.guide__item{ display:grid; gap:4px; min-height:44px; padding:var(--s-3) 0 var(--s-3) var(--s-4); border-left:2px solid var(--line-strong); color:var(--ash); text-decoration:none; transition:border-color .15s; }
.guide__t{ font-family:var(--f-display); font-size:var(--fs-4); line-height:1.05; color:var(--bone); }
.guide__t::after{ content:" \2192"; font-family:var(--f-text); font-size:.7em; color:var(--accent); }
.guide__d{ font-size:var(--fs-1); line-height:1.45; }
.guide__item:hover, .guide__item:focus-visible{ border-left-color:var(--accent); }
.guide__item:hover .guide__t{ text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:1px; text-underline-offset:.15em; }
@media (max-width:599px){ .guide__item{ grid-template-columns:auto 1fr; align-items:baseline; gap:var(--s-3); } .guide__t{ font-size:var(--fs-3); min-width:7.5em; } }

/* Empty notes under titles disappear instead of leaving a stray rule */
.section__note:empty{ display:none; }

/* Clamped lists: anything past the first few waits behind one button */
.has-clamp .clarity-extra{ display:none !important; }
.clarity-bar{ display:flex; justify-content:center; margin-top:var(--s-6); }
.clarity-bar[hidden]{ display:none; }
#about .clarity-bar{ justify-content:flex-start; margin-top:var(--s-3); }
.clarity-more::after{ content:""; display:inline-block; width:.45em; height:.45em; margin-left:.6em; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-.15em) rotate(45deg); }
.clarity-more[aria-expanded="true"]::after{ transform:translateY(.1em) rotate(-135deg); }

/* Secondary filter rows fold behind "More filters"; the first row and the result line stay */
.filters-brief .filters > .filters__group:not(:first-child){ display:none; }
.clarity-filters{ justify-self:start; align-self:start; }
@media (min-width:900px){ .filters > .clarity-filters{ grid-column:2; } }

/* The calendar's own "Next up" slip repeats the strip at the top of the page; the key folds into a toggle */
#calendar .cal-top .nextslip{ display:none; }
@media (min-width:1000px){ #calendar .cal-top{ grid-template-columns:1fr; } }
.clarity-key > summary{ cursor:pointer; display:inline-flex; align-items:center; gap:.5em; min-height:44px; font-size:var(--fs-1); color:var(--ash); list-style:none; }
.clarity-key > summary::-webkit-details-marker{ display:none; }
.clarity-key > summary::before{ content:"+"; display:inline-grid; place-items:center; width:1.4em; height:1.4em; border:1px solid var(--line-strong); border-radius:50%; font-size:.85em; }
.clarity-key[open] > summary::before{ content:"\2212"; }
.clarity-key > summary:hover{ color:var(--bone); }
.clarity-key[open] > .cal-key{ margin-top:var(--s-3); }

/* Phones: the news "arrivals log" chart is decoration; the list itself says the same thing */
@media (max-width:47.99em){ #news-log{ display:none; } }

/* The bigger 13 px tick labels collide at the far end of the ruler; ticks keep 12 px (they are scale marks, not reading text) */
.ruler__tick{ font-size:.75rem; }
