/* =============================================================
   media.css — media appearance cards
   ============================================================= */

.media-intro {
  max-width: 760px;
  margin: 4px 0 30px;
}

.media-kicker,
.media-section__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--maroon, #6e0019);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.media-intro h1 {
  margin-bottom: 16px;
}

.media-intro p {
  max-width: 72ch;
  color: var(--ink-soft, #322d27);
  font-size: 17px;
  line-height: 1.65;
}

.media-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 48px;
  padding: 14px 0;
  border-top: 1px solid var(--rule, #e6dfd2);
  border-bottom: 1px solid var(--rule, #e6dfd2);
}

.media-jump a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 2px 0;
  background: none;
  color: var(--ink-soft, #322d27);
  font-family: var(--sans, sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-jump a:hover {
  background: none;
  color: var(--maroon, #6e0019);
}

.media-jump a span {
  color: var(--muted, #7a7367);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.media-section {
  margin: 0 0 58px;
  scroll-margin-top: 24px;
}

.media-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--rule, #e6dfd2);
}

.media-section__header h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.media-section__eyebrow {
  margin-bottom: 7px;
}

.media-section__count {
  flex: 0 0 auto;
  padding-bottom: 3px;
  color: var(--muted, #7a7367);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cardrow--media {
  justify-content: flex-start;
  align-items: stretch;
  gap: 18px !important;
  margin: 0 !important;
}

.cardrow--media > .media-card-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  width: 282px !important;
  flex: 0 0 282px !important;
  padding: 0 !important;
  text-align: left;
}

.media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 312px;
  height: 100%;
  padding: 20px 20px 18px;
  overflow: hidden;
  background: var(--paper-deep, #f3ecdf);
  background-image: none !important;
  border: 1px solid var(--rule, #e6dfd2);
  border-top: 3px solid var(--maroon, #6e0019);
  border-radius: 2px;
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(26, 23, 20, 0.04));
  color: var(--ink, #1a1714);
  text-decoration: none !important;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.media-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(110, 0, 25, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.media-card--linked:hover,
.media-card--linked:focus {
  z-index: 1;
  background: var(--paper, #faf6ee);
  background-image: none !important;
  border-color: var(--maroon, #6e0019);
  color: var(--ink, #1a1714);
}

.media-card--linked:focus-visible {
  outline: 2px solid var(--maroon, #6e0019);
  outline-offset: 3px;
}

.media-card--archived {
  border-top-color: var(--muted-soft, #a59f93);
}

.media-card__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.media-card__outlet {
  color: var(--maroon, #6e0019);
  font-family: var(--sans, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.media-card__date {
  flex: 0 0 auto;
  color: var(--muted, #7a7367);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.media-card__kind {
  margin-bottom: 14px;
  color: var(--muted, #7a7367);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.45;
  text-transform: uppercase;
}

.media-card .media-card__title {
  min-height: 0;
  margin: 0 0 12px;
  padding: 0 !important;
  border: 0;
  color: var(--ink, #1a1714);
  font-family: var(--serif, Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
  text-align: left;
  text-transform: none;
}

.media-card__description {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: var(--ink-soft, #322d27);
  font-size: 13.5px;
  line-height: 1.52;
}

.media-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 115, 103, 0.22);
  color: var(--maroon, #6e0019);
  font-family: var(--sans, sans-serif);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.media-card__footer svg {
  width: 17px;
  height: 17px;
  transition: transform 180ms ease;
}

.media-card--archived .media-card__footer {
  color: var(--muted, #7a7367);
}

.media-source-note {
  max-width: 72ch;
  margin: 4px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule, #e6dfd2);
  color: var(--muted, #7a7367);
  font-size: 12.5px;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .media-intro p {
    font-size: 16px;
  }

  .media-jump {
    margin-bottom: 38px;
  }

  .media-section__header {
    align-items: flex-start;
  }

  .media-section__header h2 {
    font-size: 26px;
  }

  .media-section__count {
    display: none;
  }

  .cardrow--media {
    gap: 14px !important;
  }

  .cardrow--media > .media-card-column {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .media-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-card,
  .media-card__footer svg {
    transition: none;
  }

  .media-card--linked:hover,
  .media-card--linked:focus {
    transform: none;
  }
}

/* ---- Outlet visual: logo image (desaturated) or monogram fallback ---- */
.media-card__logo {
  display: flex;
  align-items: center;
  height: 46px;
  margin-bottom: 15px;
}
.media-card__logo img {
  max-height: 42px;
  max-width: 70%;
  object-fit: contain;
  object-position: left center;
  filter: saturate(0.3) contrast(0.95) opacity(0.85);
  transition: filter 200ms ease;
}
.media-card--linked:hover .media-card__logo img,
.media-card--linked:focus .media-card__logo img {
  filter: saturate(1) contrast(1) opacity(1);
}
.media-card__mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: var(--paper, #faf6ee);
  border: 1px solid var(--rule, #e6dfd2);
  color: var(--muted, #7a7367);
  font-family: var(--serif, Georgia, serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  transition: color 200ms ease, border-color 200ms ease;
}
.media-card--linked:hover .media-card__mono,
.media-card--linked:focus .media-card__mono {
  color: var(--maroon, #6e0019);
  border-color: rgba(110, 0, 25, 0.4);
}

/* Section-title highlight on deep-link / tab click.
   The global :target::before uses z-index:-1, which only paints for the FIRST
   heading on the page (it sits over the root background); later headings never
   show it. Paint the heading's own background instead so every section (and
   every tab click) highlights reliably. */
.section-heading { scroll-margin-top: 20px; }
.section-heading:target {
  animation: media-target-fade 2.4s ease-out both;
  border-radius: 3px;
}
.section-heading:target::before { display: none; }
@keyframes media-target-fade {
  0%   { background-color: var(--maroon-tint, rgba(110, 0, 25, 0.14));
         box-shadow: 0 0 0 8px var(--maroon-tint, rgba(110, 0, 25, 0.14)); }
  100% { background-color: transparent;
         box-shadow: 0 0 0 8px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .section-heading:target { animation: none; }
}

/* ---- Multi-link cards (e.g. CTV: video + archived article) ---- */
.media-card--multi .media-card__footer--multi {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-top: 8px;
}
.media-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--maroon, #6e0019);
  font-family: var(--sans, sans-serif);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.media-card__link + .media-card__link { border-top: 1px solid rgba(122, 115, 103, 0.16); }
.media-card__link svg { width: 17px; height: 17px; flex: 0 0 auto; }
.media-card__link:hover { color: var(--ink, #1a1714); background: none; }
.media-card--multi:hover {
  background: var(--paper, #faf6ee);
  border-color: var(--maroon, #6e0019);
}
.media-card--multi:hover .media-card__logo img { filter: saturate(1) contrast(1) opacity(1); }

/* Section titles: own their spacing (top gap from previous section, small
   bottom gap to their cards) so every section is separated consistently. */
.section-heading { margin-top: 52px; margin-bottom: 22px; }
