/* The Context Conference panel on both MIT report pages (MitRecordingsPanel.astro). Loaded after each page's own
   stylesheet and read from its tokens (--u, the --t-* sizes, the colours, c26.css's --c26-2temp), which the two
   pages define alike. One reading line, centred: the wordmark, the line, the lede; then three session cards, each
   with its own text link; then the one primary button, to all the sessions. */

#live .rec {
  --ci: min(max(32px, calc((100% - 1264px) / 2 + 32px)), calc(208 * var(--u)));
  position: relative;
  z-index: 1;
  padding: 0 var(--ci);
}
#live .rec-head {
  text-align: center;
}
/* 2026-10-30 (Saloni): the wordmark 10px up, the line and the lede 5px up, then all three another 15px; offsets, so
   nothing below moves */
#live .rec-head .conf-id {
  position: relative;
  top: -25px;
  margin: 0 0 max(20px, calc(28 * var(--u)));
}
#live .rec-head h2,
#live .rec-head .conf-lede {
  position: relative;
  top: -20px;
}
/* a step smaller (was 170-204px), so the wordmark and the line don't both shout */
#live .rec-head .wm {
  display: block;
  width: clamp(136px, 10vw, 164px);
  height: auto;
  margin: 0 auto;
}
#live .rec-head h2 {
  margin: 0 auto;
  max-width: 16em;
  font-size: var(--t-48);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
#live .rec-head .conf-lede {
  margin: 18px auto 0;
  max-width: 34em;
  font-size: var(--t-20);
  line-height: 1.55;
  color: var(--slate);
  text-wrap: balance;
}

/* the cards: three a row, one height. Each is the page's card (the --edge outline, white inside, the soft lift). Under
   the pointer it rises a little and its outline fades to the CTA's two temperatures: the outline's two colours are
   registered properties, so they transition (a gradient swap alone jumps) */
@property --rc-a {
  syntax: "<color>";
  inherits: false;
  initial-value: #fddce4;
}
@property --rc-b {
  syntax: "<color>";
  inherits: false;
  initial-value: #e9eafb;
}
.rec-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: max(20px, calc(28 * var(--u)));
  margin: max(44px, calc(64 * var(--u))) 0 0;
  padding: 0;
  list-style: none;
}
/* under #live: each page's reveal (.js .reveal.in, transform none and its own transition) would otherwise win, which
   flattened the lift and snapped the outline */
#live .rec-card {
  --rc-a: #fddce4;
  --rc-b: #e9eafb;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(to bottom left, var(--rc-a), var(--rc-b)) border-box;
  box-shadow: 0 1px 2px rgba(37, 37, 48, 0.03), 0 4px 14px
    rgba(37, 37, 48, 0.04);
  transition:
    opacity .6s ease, transform .5s var(--ease-settle), box-shadow .5s var(
      --ease-settle
    ), --rc-a .5s ease,
    --rc-b .5s ease;
}
#live .rec-card:hover,
#live .rec-card:focus-within {
  /* the CTA's two temperatures, warm at the top right and cool at the bottom left, as --c26-2temp runs */
  --rc-a: #fd8550;
  --rc-b: #5f97f6;
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(37, 37, 48, 0.03), 0 18px 40px
    rgba(37, 37, 48, 0.1);
}
.rec-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #eef0fb;
}
.rec-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-ft {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: max(20px, calc(26 * var(--u))) max(20px, calc(28 * var(--u)))
    max(22px, calc(28 * var(--u)));
}
/* the line on why to watch takes the spare height, so every card's link sits on the same line. 2026-10-30: a touch
   larger (was --t-16) now the title lives in the thumbnail */
.rec-hook {
  flex: 1;
  margin: 0;
  font-size: max(15px, calc(18 * var(--u)));
  line-height: 1.55;
  color: var(--slate);
  text-wrap: pretty;
}
/* the card's link: blue text and the arrow. Its ::after covers the card, so a click anywhere on it is this link; it stays
   unpositioned and untransformed so the cover measures from the card */
.rec-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: max(18px, calc(24 * var(--u)));
  font-size: max(15px, calc(18 * var(--u)));
  font-weight: 600;
  line-height: 1.3;
  color: var(--persian);
  text-decoration: none;
  white-space: nowrap;
}
.rec-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
}
.rec-card:hover .rec-btn {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.rec-btn .ar {
  width: 10px;
  height: 10px;
  transition: transform .3s var(--ease-settle);
}
.rec-card:hover .rec-btn .ar {
  transform: translateX(3px);
}
/* the ring goes on the link itself: the card clips anything drawn outside it */
.rec-btn:focus-visible {
  outline: 2px solid var(--cool-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
/* the one primary: to all the sessions, the page's own button at the hero's size */
.rec-cta {
  display: flex;
  justify-content: center;
  margin-top: max(40px, calc(56 * var(--u)));
}
.rec-cta .mr-btn {
  min-width: calc(200 * var(--u));
  height: max(48px, calc(58 * var(--u)));
  padding: 0 calc(22 * var(--u));
  font-size: var(--t-20);
}

@media (max-width: 960px) {
  #live .rec {
    padding: 0 24px;
  }
  #live .rec-head .conf-id {
    margin-bottom: 24px;
  }
  .rec-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 36px;
  }
  .rec-hook,
  .rec-btn {
    font-size: 16px;
  }
  .rec-cta {
    margin-top: 32px;
  }
  .rec-cta .mr-btn {
    width: 100%;
  }
}
/* tablets: two a row reads better than one long column, the third card centred under them */
@media (min-width: 640px) and (max-width: 960px) {
  .rec-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #live .rec-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 10px);
  }
}
@media (max-width: 560px) {
  #live .rec {
    padding: 0 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #live .rec-card,
  .rec-btn .ar {
    transition: none;
  }
  #live .rec-card:hover,
  #live .rec-card:focus-within {
    transform: none;
  }
}
