/* ==========================================================================
   Results page (/law-optional-toppers) and interviews hub
   (/law-optional-topper-interviews): page head with stat row, sticky year
   bar, year sections (creative + topper cards + selection list), video
   cards with click-to-play, stories list, FAQ, CTA, "also read".
   Requires tokens.css + base.css. Mobile-first (360px).
   .crumbs / .page-head / .faq / .also / .vcard duplicate the patterns of the
   other pages until the main session merges them (SHARED_REQUESTS 4, 5).
   ========================================================================== */

/* Page head ------------------------------------------------------------ */
.page-head { padding-block: var(--s-3) var(--s-4); }
.page-head__inner { display: grid; gap: var(--s-3); }
.page-head__text { display: grid; gap: var(--s-2); justify-items: start; min-width: 0; }
.page-head__title { font-size: var(--fs-h1); }
.page-head__intro { max-width: 70ch; color: var(--c-text-muted); }
.page-head__text .btn-row { width: 100%; margin-top: var(--s-1); }
.kicker {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-maroon);
}

/* Breadcrumb */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 var(--s-1); font-size: var(--fs-sm); color: var(--c-text-muted); }
.crumbs li + li::before { content: "\203A"; margin-right: var(--s-1); color: var(--c-text-muted); }
.crumbs a { color: var(--c-link-text); text-decoration: none; display: inline-flex; align-items: center; min-height: 28px; }
.crumbs a:hover { text-decoration: underline; }

/* Stat row: 2x2 on phones, 4 across from 640px */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-1);
  width: 100%;
  margin: var(--s-1) 0 0;
}
.stats__item {
  display: grid;
  gap: 2px;
  padding: var(--s-2);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-red-text);
  border-radius: var(--radius-sm);
  min-width: 0;
}
.stats__item dt { font-size: var(--fs-sm); color: var(--c-text-muted); }
.stats__item dd { margin: 0; font-family: var(--ff-display); font-size: 1.625rem; line-height: 1.1; color: var(--c-slate); }
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
  .stats__item dd { font-size: 1.875rem; }
}
@media (min-width: 960px) {
  .page-head { padding-block: var(--s-4) var(--s-5); }
  .page-head__inner { gap: var(--s-4); }
}

/* Sticky year bar -------------------------------------------------------- */
.year-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--c-white);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.year-nav__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-2);
  min-height: 60px;
}
.year-nav__label {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  white-space: nowrap;
}
.year-nav__list {
  display: flex;
  gap: var(--s-1);
  min-width: 0;
  overflow-x: auto;
  padding-block: var(--s-1);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.year-nav__list::-webkit-scrollbar { display: none; }
.year-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 var(--s-2);
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--c-slate);
  background: var(--c-white);
  border: 1px solid var(--c-slate);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.year-chip:hover { background: var(--c-slate); color: var(--c-white); }
.year-chip[aria-current="true"] { background: var(--c-charcoal); border-color: var(--c-charcoal); color: var(--c-white); }
@media (max-width: 639px) {
  .year-nav__label { display: none; } /* chips get the full width on phones */
  .year-nav__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 960px) {
  .year-nav__list { flex-wrap: wrap; overflow: visible; }
}

/* Year sections ------------------------------------------------------------ */
.year { scroll-margin-top: 72px; padding-block: var(--s-5); }
.page-toppers .year:nth-of-type(even) { background: var(--c-surface); }
.year__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-1) var(--s-2);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 3px solid var(--c-red);
}
.year__title { font-size: var(--fs-h2); }
.year__meta { color: var(--c-text-muted); font-size: var(--fs-base); white-space: nowrap; }
.year__grid { display: grid; gap: var(--s-3); align-items: start; }
.year__creative { margin: 0; display: grid; gap: var(--s-1); min-width: 0; }
.year__creative-link { display: block; border-radius: var(--radius-lg); }
.year__creative img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--ease), transform var(--ease);
}
.year__creative-link:hover img,
.year__creative-link:focus-visible img { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.year__caption { font-size: var(--fs-sm); color: var(--c-text-muted); text-align: center; }
.year__body { display: grid; gap: var(--s-2); min-width: 0; }
.year__label {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: var(--s-1);
}
.year__label:first-child { margin-top: 0; }
.year__actions { margin-top: var(--s-2); }
.year__actions .btn--sm { min-height: var(--tap-min); }
@media (min-width: 960px) {
  .year { padding-block: var(--s-6); scroll-margin-top: 80px; }
  .year__head { margin-bottom: var(--s-4); }
  .year__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-5); }
  .year__creative { position: sticky; top: 80px; }
}

/* Topper cards: one column on phones, two from 640px (also inside the right-hand column) */
.topper-grid { gap: var(--s-2); }
@media (min-width: 640px) { .topper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 960–1199: the right-hand column is too narrow for two cards, so one wide card per row */
@media (min-width: 960px) { .topper-grid { grid-template-columns: 1fr; gap: var(--s-2); } }
@media (min-width: 1200px) { .topper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.topper-card { gap: var(--s-1); padding: var(--s-2) var(--s-3); scroll-margin-top: 80px; }
.topper-card__kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-maroon);
}
.topper-card__kicker svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--c-gold); }
.topper-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-2);
}
.topper-card__name { font-size: var(--fs-h3); }
.air {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.15rem 0.6rem;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--c-white);
  background: var(--c-red-text);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.topper-card__meta { color: var(--c-text-muted); font-size: var(--fs-sm); }
.topper-card__foot { justify-content: flex-start; gap: 0 var(--s-3); padding-top: 0; }
.topper-card__foot .link-more { font-size: var(--fs-base); }
.topper-card__foot .link-more:first-child { color: var(--c-red-text); }

/* Compact selection list: name left, AIR right; 1 → 2 → 3 columns */
.selection-list { display: grid; gap: var(--s-1); }
.selection-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: var(--tap-min);
  padding: 0.5rem var(--s-2);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
}
.selection-list__name { min-width: 0; overflow-wrap: anywhere; }
.selection-list__name a { color: var(--c-link-text); text-decoration: none; }
.selection-list__name a:hover { text-decoration: underline; }
.selection-list__air { flex: 0 0 auto; font-family: var(--ff-display); color: var(--c-slate); white-space: nowrap; }
@media (min-width: 640px) { .selection-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* (3 columns would squeeze names to two lines inside the right-hand column; 2 stays readable) */

/* Earlier results (2020, 2019) */
.earlier__grid { display: grid; gap: var(--s-3); max-width: 860px; margin-inline: auto; }
.earlier__year { display: grid; gap: var(--s-2); }
.earlier__title { font-size: var(--fs-h3); }
.earlier .selection-list { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .earlier__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
}

/* Video cards (click-to-play) -------------------------------------------- */
.vgrid { gap: var(--s-3); }
.vcard { display: flex; position: relative; min-width: 0; scroll-margin-top: 80px; }
.vcard__card { flex: 1 1 auto; width: 100%; padding: 0; gap: 0; overflow: hidden; border-top: 3px solid var(--c-gold); }
.vcard__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-charcoal);
}
.vcard__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops the black bars YouTube adds to its 4:3 thumbnails */
  transition: transform var(--ease);
}
.vcard__thumb:hover img { transform: scale(1.03); }
.vcard__thumb:focus-visible { outline-offset: -4px; }
.vcard__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--c-white);
  background: rgba(217, 43, 43, 0.92); /* --c-red-text */
  box-shadow: var(--shadow-float);
  transition: transform var(--ease);
}
.vcard__play svg { width: 26px; height: 26px; margin-left: 3px; }
.vcard__thumb:hover .vcard__play { transform: scale(1.08); }
.vcard__time {
  position: absolute;
  right: var(--s-1);
  bottom: var(--s-1);
  padding: 2px 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-white);
  background: rgba(0, 0, 0, 0.78);
  border-radius: var(--radius-sm);
}
.vcard__player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vcard__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcard__body { display: grid; gap: var(--s-1); padding: var(--s-2) var(--s-2) var(--s-2); }
.vcard__meta { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.vcard__name { font-size: var(--fs-h3); line-height: var(--lh-snug); color: var(--c-slate); }
.vcard__card .card__foot { justify-content: flex-start; gap: 0 var(--s-3); padding: 0 var(--s-2) var(--s-2); }
.vcard__card .card__foot .link-more:first-child { color: var(--c-red-text); }
.vcard__kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-maroon);
}
.vcard__kicker svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--c-gold); }

/* Playlist card: maroon/gold poster (no request to YouTube until play) */
.playlist-grid { max-width: 560px; margin-inline: auto; grid-template-columns: 1fr; }
.vcard__thumb--playlist { background: linear-gradient(135deg, var(--c-maroon-dark), var(--c-maroon)); }
.vcard__poster {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--s-1);
  padding: var(--s-3);
  text-align: center;
  color: var(--c-gold-light);
}
.vcard__poster-word { font-family: var(--ff-serif); font-style: italic; font-size: 1.75rem; line-height: 1.1; color: var(--c-gold); }
.vcard__poster-sub { font-family: var(--ff-display); font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase; }
/* text sits in the upper part of the poster; the play button sits along the bottom edge, clear of it */
.vcard__poster { align-content: start; padding-top: var(--s-4); }
.vcard__thumb--playlist .vcard__play { top: auto; bottom: var(--s-2); }

/* Stories / also-read: bordered link rows, 1 → 2 → 3 columns ----------------- */
.also__list { display: grid; gap: var(--s-1); }
.also__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1);
  min-height: var(--tap-min);
  padding: 0.5rem var(--s-2);
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--c-slate);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.also__link::after { content: "\2192"; color: var(--c-red-text); transition: transform var(--ease); }
.also__link:hover { border-color: var(--c-slate); color: var(--c-charcoal); }
.also__link:hover::after { transform: translateX(3px); }
.also__list--stories .also__link > span:first-child { flex: 1 1 auto; min-width: 0; }
.also__meta { flex: 0 0 auto; font-family: var(--ff-body); font-size: var(--fs-sm); color: var(--c-text-muted); white-space: nowrap; }
@media (min-width: 640px) {
  .also__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
}
@media (min-width: 960px) {
  .also__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* FAQ accordion (native details) ------------------------------------------ */
.faq { display: grid; gap: var(--s-1); max-width: 860px; margin-inline: auto; }
.faq__item {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color var(--ease);
}
.faq__item[open] { border-color: var(--c-slate); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: var(--tap-min);
  padding: var(--s-2) var(--s-3);
  font-family: var(--ff-display);
  font-size: 1.0625rem;
  line-height: var(--lh-snug);
  color: var(--c-slate);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  flex: 0 0 auto;
  width: 24px;
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  color: var(--c-red-text);
}
.faq__item[open] .faq__q::after { content: "\2212"; }
.faq__q:hover { color: var(--c-charcoal); }
.faq__a { padding: 0 var(--s-3) var(--s-3); }
.faq__a a { color: var(--c-link-text); }

/* Closing CTA --------------------------------------------------------------- */
.next-grid { max-width: 760px; margin-inline: auto; }
.next-actions { justify-content: center; margin-top: var(--s-4); }
.next-more { display: flex; justify-content: center; margin-top: var(--s-2); }
