/* Video pages (videos/video_list.html, videos/video_detail.html, partials _card and _player).
   Scoped under .vid-* so nothing here can leak into the rest of the site.
   Same furniture as the press release (newsroom/css/article.css) and the news
   cards (newsroom/css/newsroom.css): violet eyebrows, hairline rules, white cards. */

.vid-index,
.vid-page {
  --vid-ink: #111;
  --vid-quiet: rgba(0, 0, 0, 0.6);
  --vid-rule: rgba(0, 0, 0, 0.14);
  --vid-rule-strong: rgba(0, 0, 0, 0.45);
  --vid-violet: #7c4b8c;
  --vid-text: clamp(1.0625rem, calc(1rem + .3vw), 1.25rem);
  color: var(--vid-ink);
  padding-bottom: 4rem;
}

.vid-index h1, .vid-index h2, .vid-index h3,
.vid-page h1, .vid-page h2, .vid-page h3 { padding: 0; }

/* ---- list ------------------------------------------------------------- */

.vid-index__head { padding-top: clamp(2rem, 5vw, 4.5rem); }
.vid-index__head h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2.1rem, calc(1.3rem + 3vw), 4.25rem);
  line-height: 1.12;
}
.vid-index__lede {
  max-width: 40rem;
  margin: 0 0 2rem;
  color: var(--vid-quiet);
  font-size: var(--vid-text);
}

/* product filter: a row of outlined chips on a hairline, like the newsroom language switch */
.vid-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 2.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--vid-rule);
  border-bottom: 1px solid var(--vid-rule);
}
/* stays under the fixed site header while the list scrolls */
.vid-filters {
  position: sticky;
  top: var(--header-h, 0);
  z-index: 10;                     /* above the rows, below #global-header (100) */
  background: #f6f6f6;
  /* paint the background edge to edge, not just across .body-width */
  box-shadow: 0 0 0 100vmax #f6f6f6;
  clip-path: inset(0 -100vmax);
}
/* on a phone one row of chips, scrolled sideways, so the bar does not eat the screen */
@media (max-width: 899px) {
  .vid-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .vid-filters a { flex: 0 0 auto; white-space: nowrap; }
}
.vid-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 .75rem;
  border: 1px solid var(--vid-rule-strong);
  color: var(--vid-ink);
  font-size: .875rem;
  font-weight: normal;
  text-decoration: none;
}
.vid-filters a:hover { border-color: var(--vid-violet); color: var(--vid-violet); }
.vid-filters a[aria-current="page"] {
  border-color: var(--vid-violet);
  background: var(--vid-violet);
  color: #fff;
}

.vid-empty { color: var(--vid-quiet); }

/* ---- list rows: white tiles on light grey, text left, large still right ---- */

.vid-index { background: #f6f6f6; }

.vid-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vid-row {
  display: grid;
  background: #fff;
  transition: box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.vid-row:hover { box-shadow: 0 50px 70px -25px rgba(0, 0, 0, 0.3); }

.vid-row__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.25rem;
  min-width: 0;
}
.vid-row__media {
  position: relative;
  display: block;
  order: -1;                       /* on top in one column */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
  line-height: 0;
}
@media (min-width: 900px) {
  .vid-row { grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); }
  .vid-row__body { padding: 3rem; }
  .vid-row__media { order: 0; }
}

.vid-row__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.vid-row__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  padding-left: .3rem;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  transition: background .2s;
}
.vid-row:hover .vid-row__media img { transform: scale(1.02); }
.vid-row:hover .vid-row__play { background: var(--vid-violet); }

.vid-row__products {
  margin: 0 0 .5rem;
  font-size: .8125rem;
  font-weight: bold;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--vid-violet);
}
.vid-row__products a { color: inherit; font-weight: inherit; text-decoration: none; }
.vid-row__products a:hover { text-decoration: underline; }

.vid-row__title {
  margin: 0 0 .75rem;
  font-size: clamp(1.375rem, calc(1rem + 1vw), 1.875rem);
  line-height: 1.2;
}
.vid-row__title a { color: inherit; font-weight: normal; text-decoration: none; }
.vid-row__title a:hover,
.vid-row__title a:focus-visible { color: var(--vid-violet); text-decoration: underline; }

.vid-row__eyebrow { margin: 0 0 1.5rem; color: var(--vid-quiet); }
.vid-row__watch { margin-top: auto; font-size: .9375rem; font-weight: bold; }

/* ---- cards ------------------------------------------------------------ */

.vid-cards {
  display: grid;
  /* auto-fill, not auto-fit: one or two videos keep the card width */
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 2.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vid-card { display: flex; flex-direction: column; min-width: 0; }

.vid-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin: 0 0 .875rem;
  overflow: hidden;
  background: #222;
  line-height: 0;
}
.vid-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.vid-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding-left: .2rem;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  transition: background .2s;
}
.vid-card__length {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  padding: .15rem .4rem;
  background: rgba(0, 0, 0, .75);
  color: #fff;
  font-size: .75rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.vid-card:hover .vid-card__media img { transform: scale(1.03); }
.vid-card:hover .vid-card__play { background: var(--vid-violet); }

.vid-card__products {
  margin: 0 0 .25rem;
  font-size: .8125rem;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vid-violet);
}
.vid-card__products a { color: inherit; font-weight: inherit; text-decoration: none; }
.vid-card__products a:hover { text-decoration: underline; }

.vid-card__title {
  margin: 0 0 .4rem;
  font-size: 1.1875rem;
  line-height: 1.25;
}
.vid-card__title a { color: inherit; font-weight: normal; text-decoration: none; }
.vid-card__title a:hover,
.vid-card__title a:focus-visible { color: var(--vid-violet); text-decoration: underline; }

.vid-card__eyebrow { margin: 0; font-size: .9375rem; color: var(--vid-quiet); }

/* ---- detail ----------------------------------------------------------- */

.vid-head { padding-top: clamp(2rem, 5vw, 4.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.vid-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  font-size: .8125rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.vid-meta__kind { color: var(--vid-violet); }
.vid-meta__date, .vid-meta__length { color: var(--vid-quiet); }
.vid-meta__length { font-variant-numeric: tabular-nums; }

.vid-title {
  margin: 1.25rem 0 0;
  max-width: 22ch;
  font-size: clamp(2.1rem, calc(1.3rem + 3vw), 4.25rem);
  line-height: 1.12;
}
.vid-lede {
  max-width: 40rem;
  margin: 1rem 0 0;
  font-size: calc(var(--vid-text) * 1.1);
  line-height: 1.5;
  color: var(--vid-quiet);
}

.vid-stage { margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.vid-body { font-size: var(--vid-text); line-height: 1.65; }
.vid-body > * { max-width: 40rem; }
.vid-body p { margin: 0 0 1em; }
.vid-body h2, .vid-body h3 { margin: 2em 0 .5em; font-size: 1.25em; line-height: 1.3; }
.vid-body ul, .vid-body ol { padding-left: 1.25em; margin: 0 0 1em; }
.vid-body li { margin-bottom: .35em; }
.vid-body q { font-style: italic; }

/* a rail block: eyebrow heading on a hairline, as in the press release */
.vid-block { padding-top: 1rem; border-top: 1px solid var(--vid-rule-strong); }
.vid-block + .vid-block { margin-top: 2rem; }
.vid-block__title {
  margin: 0 0 1rem;
  font-family: inherit;
  font-size: .8125rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vid-quiet);
}
.vid-page .cat-cards { margin: 0; }

.vid-links { list-style: none; margin: 0; padding: 0; }
.vid-links li + li { margin-top: .5rem; }
.vid-links a::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: .5em;
}

.vid-related {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--vid-rule-strong);
}
.vid-related .vid-block__title { margin-bottom: 1.5rem; }

.vid-nav {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--vid-rule-strong);
}
.vid-nav a { display: inline-flex; flex-direction: column; gap: .25rem; color: var(--vid-ink); font-weight: normal; }
.vid-nav small {
  font-size: .75rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vid-violet);
}

.vid-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) {
  .vid-grid {
    grid-template-columns: minmax(0, 44rem) minmax(16rem, 24rem);
    justify-content: space-between;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
  .vid-body > * { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vid-card__media img, .vid-card__play, .vid-row, .vid-row__media img, .vid-row__play { transition: none; }
  .vid-card:hover .vid-card__media img, .vid-row:hover .vid-row__media img { transform: none; }
}

:where(.vid-index, .vid-page) a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
