/* Insights page (T004). Shared pieces (.sem, .news-card, .rows, .form, .pill, .btn) come from the kit and site.css, unrestyled.
   Page-only: the hero's reading window, the filter bar, the load-more state and the topics checkboxes. */

/* ---------- hero: the h1 holds two lines on the page axis; the window shows the featured story ---------- */
.hero--centred h1 { max-width: 18ch; }
.reader { background: var(--bg); color: var(--ink); border-radius: var(--r-md);
  box-shadow: 0 0 0 1px var(--line-strong), 0 24px 48px -24px rgb(0 0 0 / .55); overflow: hidden; }
.reader__bar { display: flex; align-items: center; gap: var(--s-3); height: 40px; padding: 0 var(--s-4);
  border-bottom: 1px solid var(--line); font: 400 var(--t-label)/1 var(--font-mono); color: var(--muted); }
.reader__dots { display: inline-flex; gap: 6px; }
.reader__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.reader__sp { flex: 1; }
.reader__path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-5); padding: var(--s-4); align-items: start; }
.reader .sem img { aspect-ratio: 16 / 9; }
.reader__text { display: grid; gap: var(--s-3); align-content: start; text-align: left; }
.reader__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin: 0; color: var(--muted); font: 400 var(--t-label)/1.4 var(--font-mono); }
.reader__title { font: var(--display-weight) var(--t-h3, 28px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); color: var(--ink); text-decoration: none; }
.reader__title:hover { text-decoration: underline; text-underline-offset: 4px; }
.reader__lede { margin: 0; color: var(--muted); max-width: 52ch; }
@media (max-width: 639px) {
  .reader__body { grid-template-columns: minmax(0, 1fr); padding: var(--s-4); }
  .reader .sem, .reader__lede, .reader__path { display: none; }
}

/* ---------- #latest: filter bar, hidden state, load more ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-5); }
.filters__status { margin: 0 0 0 var(--s-3); min-height: 1.4em; }
#latest :is(.filters, .grid, .news-card, .more)[hidden] { display: none; }
#latest .grid + .grid { margin-top: var(--s-5); }
#latest .more { margin-top: var(--s-6); display: flex; justify-content: flex-start; }
@media (max-width: 639px) {
  .filters .btn { flex: 1 1 calc(50% - var(--s-2)); }
  .filters__status { flex-basis: 100%; margin-left: 0; }
  #latest .more .btn { width: 100%; }
}
/* Opened (more than three cards shown) or no script: the section grows with its cards instead of holding one screen.
   Without script every card shows, so the fixed one-screen box would overflow. */
main > #latest.is-open, html:not(.mo-js) main > #latest { height: auto; min-height: 100svh; }

/* ---------- #subscribe: topics (checkboxes, 44px targets) ---------- */
.topics { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.topics legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--t-small); font-weight: 500; float: left; width: 100%; }
.topics__item { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; font-size: var(--t-body); cursor: pointer; }
.topics__item input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; flex: none; }
.topics__item input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
