/* ============================================================
   EBRPHA — Editorial styles for the Media hub + article pages.
   Namespaced under .ed so it never collides with ds-components.
   Relies on InterNav / PoppinsNav @font-face from site-nav.css.
   ============================================================ */
.ed {
  --ink: #0a0a0a;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e3e3e3;
  --line-2: #cfcfcf;
  --bg: #ffffff;
  --bg-2: #f5f4f2;
  --gut: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "InterNav", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.ed *, .ed *::before, .ed *::after { box-sizing: border-box; }
.ed a { color: inherit; text-decoration: none; }
.ed img, .ed image-slot { display: block; }
.ed-wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* ---- placeholder image slots ---- */
.ed image-slot { width: 100%; height: 100%; filter: grayscale(1) contrast(1.02); background: #d8d8d8; }

/* ============ HUB ============ */
.ed-hub { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 7rem); }
.ed-h1 {
  font-family: "PoppinsNav", "InterNav", sans-serif;
  font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1.02;
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 16ch;
}

/* filter pills */
.ed-filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.ed-pill {
  font: inherit; cursor: pointer;
  font-size: .9rem; font-weight: 600;
  padding: .6rem 1.25rem; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink-2); border-radius: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.ed-pill:hover { border-color: var(--ink); color: var(--ink); }
.ed-pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* card grid */
.ed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2.5rem); }
.ed-card { display: flex; flex-direction: column; }
.ed-card.is-hidden { display: none; }
.ed-card__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #d8d8d8; margin-bottom: 1.1rem; }
.ed-card__img image-slot { transition: transform .4s ease; }
.ed-card:hover .ed-card__img image-slot { transform: scale(1.04); }
.ed-card__cat { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .55rem; }
.ed-card__title { font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .65rem; text-wrap: pretty; }
.ed-card:hover .ed-card__title { text-decoration: underline; text-underline-offset: 3px; }
.ed-card__excerpt { color: var(--ink-2); font-size: 1rem; margin: 0; max-width: 42ch; }
.ed-empty { display: none; color: var(--muted); font-size: 1.1rem; padding: 2rem 0; }
.ed-empty.is-shown { display: block; }

/* ============ ARTICLE ============ */
.ed-article { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.ed-article__inner { max-width: 1100px; }
.ed-back { display: flex; width: fit-content; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1.5rem; }
.ed-back:hover { color: var(--ink); }
.ed-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); }
.ed-eyebrow::before { content: "◆"; font-size: .7em; margin-right: .5rem; vertical-align: middle; color: var(--muted); }
.ed-article__title {
  font-family: "PoppinsNav", "InterNav", sans-serif;
  font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.05;
  margin: 1rem 0 clamp(1.75rem, 3.5vw, 2.5rem); max-width: 20ch; text-wrap: balance;
}
.ed-article__hero { aspect-ratio: 16 / 9; background: #d8d8d8; overflow: hidden; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

.ed-article__cols { display: grid; grid-template-columns: 16rem 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ed-article__aside { position: sticky; top: 2rem; }
.ed-article__date { font-size: .9rem; color: var(--muted); margin: 0 0 1rem; }
.ed-article__stand { font-size: 1.05rem; color: var(--ink); font-weight: 600; margin: 0; line-height: 1.45; }

.ed-prose { max-width: 64ch; }
.ed-prose > * + * { margin-top: 1.4rem; }
.ed-prose p { font-size: 1.1rem; color: var(--ink-2); line-height: 1.75; margin: 0; }
.ed-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ed-prose h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin-top: 2.4rem; }
.ed-prose strong { font-weight: 700; color: var(--ink); }
.ed-prose figure { margin: 2.2rem 0; }
.ed-prose figure image-slot { aspect-ratio: 16 / 10; background: #d8d8d8; }
.ed-prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.ed-callout { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.ed-callout p { font-size: .98rem; color: var(--ink-2); margin: 0; }
.ed-callout p + p { margin-top: .4rem; }

/* gallery */
.ed-gallery { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ed-gallery__tile { aspect-ratio: 4 / 3; background: #d8d8d8; overflow: hidden; }
.ed-article__foot { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* skip link (editorial pages don't load ds-components) */
.ed-skip { position: absolute; left: 1rem; top: -3rem; background: #0a0a0a; color: #fff; padding: .6rem 1rem; z-index: 3000; transition: top .2s; }
.ed-skip:focus { top: 1rem; }

/* ============ Responsive ============ */
@media (max-width: 940px) {
  .ed-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-article__cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .ed-article__aside { position: static; }
  .ed-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ed-grid { grid-template-columns: 1fr; }
}
