/* ==========================================================================
   Econversations on the Initiatives page: every episode, one season at a time,
   each a record in a sleeve whose cover is a picture of the guest or the idea.
   Built by revamp/tools/podcast.py. Loaded after home.css and pages.css.
   ========================================================================== */

#podcast .pod { margin-top: 36px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Season tabs */
.pod-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pod-tabs button {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
  font: 500 15px/1 var(--sans); transition: background-color .2s, border-color .2s, color .2s;
}
.pod-tabs button span { margin-left: 6px; color: var(--muted); font-weight: 400; }
.pod-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pod-tabs button[aria-selected="true"] span { color: #c9d1dc; }
.pod-tabs button:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .pod-tabs button:not([aria-selected="true"]):hover { border-color: var(--navy); } }
.initiatives-page .pod-season__meta { margin-bottom: 30px; font-size: 14px; color: var(--muted) !important; }

/* Records */
.records { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 56px 14px; }
.record { position: relative; display: block; color: inherit; }
.record__art { position: relative; display: block; aspect-ratio: 1.55; margin-bottom: 14px; }
.record__disc {
  position: absolute; top: 3%; left: 1%; height: 94%; aspect-ratio: 1; border-radius: 50%; background: #1d2433;
  display: grid; place-items: center; transform: translateX(9%); transition: transform 650ms cubic-bezier(.16, 1, .3, 1);
}
.record__disc::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 2px solid #3a4357; box-shadow: inset 0 0 0 9px #1d2433, inset 0 0 0 11px #3a4357, inset 0 0 0 20px #1d2433, inset 0 0 0 22px #3a4357; }
.record__label { width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--lbl, var(--maroon)); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; position: relative; }
.record__label::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #0b0c14; position: absolute; }
.record__sleeve {
  position: absolute; top: 0; left: 0; bottom: 0; width: 64.5%; z-index: 1; overflow: hidden; background: var(--sleeve, var(--navy)); color: #fff; padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
}
/* The cover: darkened at the top for the number, fading into the series colour at the foot. */
.record__sleeve img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; }
.record__sleeve::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 16 30 / .58) 0%, rgb(10 16 30 / 0) 32%, rgb(10 16 30 / 0) 52%, var(--sleeve, var(--navy)) 96%); }
.record__sleeve > b, .record__sleeve > span { position: relative; z-index: 1; }
.record__sleeve b { font: clamp(30px, 1rem + 2.2vw, 50px)/.85 var(--serif); }
.record__sleeve > span { font-size: 13px; font-weight: 600; color: rgb(255 255 255 / .9); }
.initiatives-page .record h3 { font: 19px/1.25 var(--serif) !important; color: var(--navy) !important; }
.initiatives-page .record p { margin-top: 4px; font-size: 14px; color: var(--muted) !important; }
.record--alum { --sleeve: #2a4269; --lbl: var(--maroon); }
.record--profs { --sleeve: var(--maroon); --lbl: #2a4269; }
.record--concepts { --sleeve: var(--navy); --lbl: #ece7da; }
.record--concepts .record__label { color: #14130f; }
.record--guest { --sleeve: #485264; --lbl: var(--maroon); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .record:hover .record__disc, .record:focus-visible .record__disc { transform: translateX(54%) rotate(200deg); }
}
.record:focus-visible { outline: 2px solid var(--maroon); outline-offset: 4px; }

.pod-listen { margin-top: 48px; }
.pod-credits { margin-top: 28px; max-width: 70em; }
.pod-credits summary { font-size: 14px; color: var(--muted); cursor: pointer; }
.initiatives-page .pod-credits p { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--muted) !important; }
.pod-credits a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1000px) { .records { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .records { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 12px; } .initiatives-page .record h3 { font-size: 17px !important; } }
