/* Media hub (/home/media) — design option C, "Index" (31 Oct 2026; samples in
   design/media-hub-option-*.html). Every rule is .mh-prefixed.
   --mh-header is the height of the site's sticky header, set by media-hub.js, so the section
   menu sticks just below it rather than under it. */

/* tokens.css spaces every `li + li` 8px down; in these rows and grids that knocks items out of line. */
.mh-side li, .mh-grid > li { margin-top: 0; }

/* --- heading + search ------------------------------------------------------------------- */
.mh-hero {
  padding-bottom: var(--space-6);
  background: linear-gradient(180deg, var(--surface), var(--surface-warm));
  border-bottom: 1px solid var(--line);
}
.mh-title {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem);
  line-height: 1.15; letter-spacing: -0.01em; margin: var(--space-2) 0 var(--space-3);
}
.mh-searchrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.mh-lede { margin: 0; max-width: 52ch; }
.mh-search {
  display: flex; align-items: center; gap: var(--space-2);
  width: min(420px, 100%); height: 48px; padding: 0 6px 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-muted);
}
.mh-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.mh-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); }
.mh-search input::-webkit-search-cancel-button { cursor: pointer; }
.mh-search__go {
  flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--primary); color: #fff; font: 600 var(--step--1) var(--font-body);
}
.mh-search__go:hover { background: var(--primary-deep); }

/* --- layout ----------------------------------------------------------------------------- */
.mh-layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6);
  padding-block: var(--space-7);
}
.mh-layout > * { min-width: 0; }
@media (min-width: 960px) { .mh-layout { grid-template-columns: 240px minmax(0, 1fr); } }

/* --- section menu ----------------------------------------------------------------------- */
.mh-side ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: thin; }
.mh-side a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; white-space: nowrap; font-weight: 600; font-size: var(--step--1);
}
.mh-side a:hover { border-color: var(--primary-bright); }
.mh-side a[aria-current] { background: var(--primary-tint); border-color: var(--primary-tint); color: var(--primary-deep); }
.mh-side a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
.mh-side__ic { display: grid; color: var(--primary); }
.mh-side b {
  margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: var(--step--2);
  background: var(--success-tint); color: var(--success); font-variant-numeric: lining-nums tabular-nums;
}
.mh-side b.zero { background: var(--surface-sunk); color: var(--ink-muted); }

@media (max-width: 959px) {
  /* A sticky strip of chips under the site header. */
  .mh-side {
    position: sticky; top: var(--mh-header, 64px); z-index: 20;
    margin-inline: calc(var(--space-4) * -1); padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.4) blur(6px);
  }
  .mh-side a { padding: 8px 12px; }
}
@media (min-width: 960px) {
  .mh-side { position: sticky; top: calc(var(--mh-header, 76px) + var(--space-4)); align-self: start; }
  .mh-side ul { flex-direction: column; overflow: visible; }
  .mh-side a { border-color: transparent; background: transparent; }
  .mh-side a:hover { background: var(--surface-warm); border-color: transparent; }
  .mh-side a[aria-current] { background: var(--primary-tint); }
}

/* --- sections --------------------------------------------------------------------------- */
.mh-sec { margin-bottom: var(--space-7); scroll-margin-top: calc(var(--mh-header, 76px) + 72px); }
.mh-sec:last-child { margin-bottom: 0; }
.mh-sechead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-4); }
.mh-sechead h2 {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font-body); font-size: var(--step-2); font-weight: 700; letter-spacing: 0;
}
.mh-sechead h2 svg { color: var(--primary); flex: none; }
.mh-sechead a { font-weight: 600; font-size: var(--step--1); }

.mh-results {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin-bottom: var(--space-4); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg); background: var(--primary-tint); color: var(--primary-deep);
}
.mh-results p { margin: 0; }

.mh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 599px) { .mh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mh-stats a {
  display: flex; flex-direction: column; gap: 2px; padding: var(--space-4);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: var(--step--1);
  transition: border-color var(--dur-fast) var(--ease);
}
.mh-stats a:hover { border-color: var(--primary-bright); color: var(--ink-muted); }
.mh-stats b {
  font-family: var(--font-display); font-size: var(--step-4); line-height: 1.1; color: var(--primary);
  font-variant-numeric: lining-nums tabular-nums;
}
.mh-stats a.dim b { color: var(--ink-faint); }

/* --- cards ------------------------------------------------------------------------------ */
.mh-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mh-grid > li[hidden] { display: none; }
@media (max-width: 479px) { .mh-grid { grid-template-columns: minmax(0, 1fr); } }

.mh-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mh-card--link { text-decoration: none; }
.mh-card:hover { border-color: var(--primary-bright); box-shadow: 0 10px 28px rgba(15, 90, 150, .10); transform: translateY(-2px); color: var(--ink); }
.mh-card--link:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }
.mh-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-sunk); overflow: hidden; }
.mh-card__thumb--video { background: #111; }
.mh-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur) var(--ease); }
.mh-card--link:hover .mh-card__thumb img { transform: scale(1.04); }
.mh-card__play { position: absolute; inset: 0; display: block; }
/* gallery.js swaps the link for the YouTube player when play is pressed. */
.mh-card__thumb--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mh-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); transition: transform var(--dur-fast) var(--ease);
}
.mh-card__play:hover .mh-play, .mh-card__play:focus-visible .mh-play { transform: translate(-50%, -50%) scale(1.1); }
.mh-card__play:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: -3px; }
.mh-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 16px; }
.mh-card__title {
  font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; line-height: 1.3; letter-spacing: 0; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mh-tag {
  display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
}
.mh-tag--video { background: var(--accent-tint); color: var(--accent); }
.mh-tag--album { background: var(--gold-tint); color: var(--gold); }
.mh-meta { margin: 0; font-size: var(--step--1); color: var(--ink-muted); }

.mh-empty-note {
  padding: var(--space-4); border: 1px dashed var(--line); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink-muted); font-size: var(--step--1);
}
.mh-empty-note b { display: block; color: var(--ink); font-size: var(--step-0); margin-bottom: 2px; }
.mh-nomatch { margin: 0 0 var(--space-7); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--gold-tint); color: var(--ink); }

/* --- journalists ------------------------------------------------------------------------ */
.mh-press {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding: var(--space-6); border-radius: var(--radius-lg); background: var(--primary-deep); color: #fff;
}
.mh-press__title { font-family: var(--font-body); font-size: var(--step-2); color: #fff; margin: 0 0 var(--space-2); letter-spacing: 0; }
.mh-press__text { margin: 0; max-width: 56ch; color: rgba(255, 255, 255, .85); }
.mh-press__actions { flex: none; }
.mh-press .btn--primary { background: #fff; color: var(--primary-deep); border-color: #fff; }
.mh-press .btn--primary:hover { background: var(--primary-tint); color: var(--primary-deep); }
.mh-press .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.mh-press .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

@media (max-width: 479px) {
  .mh-press { padding: var(--space-5); }
  .mh-press__actions, .mh-press__actions .btn { width: 100%; }
  .mh-search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mh-card, .mh-card__thumb img, .mh-play { transition: none; }
  .mh-card:hover { transform: none; }
}
