/* The resources hub (card psrzoBCw, board option A; plan
   docs/ai/2026/10/2026-10-03-resources-hub): a tinted hero with the
   newest episode, then the podcast, the blog and the tools, striped
   white and tint. Every colour, size and space is a token from
   tokens.css */

.rs h1,
.rs h2,
.rs h3 {
  font-family: var(--po-font-ui);
  letter-spacing: var(--po-ls-tight);
}

.rs .eyebrow {
  margin: 0;
}

.rs-h1 {
  max-width: 22ch;
  margin-top: var(--po-sp-2);
  font-size: var(--po-fs-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--po-brand);
  text-wrap: balance;
}

.rs-h2 {
  margin-top: var(--po-sp-1);
  font-size: var(--po-fs-4xl);
  font-weight: 700;
  color: var(--po-brand);
  text-wrap: balance;
}

.rs-h3 {
  font-size: var(--po-fs-2xl);
  font-weight: 700;
  color: var(--po-brand);
}

.rs-lede {
  max-width: 60ch;
  margin: var(--po-sp-4) 0 var(--po-sp-6);
  font-size: var(--po-fs-xl);
  color: var(--po-ink-2);
}

/* The hero: the page's promise and the jump links, beside the newest
   episode */
.rs-hero {
  background: var(--po-tint-cool);
  border-bottom: 1px solid var(--po-line);
}

.rs-hero-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--po-sp-12);
  padding-block: var(--po-sp-12);
}

.rs-intro {
  flex: 999 1 520px;
  min-width: 0;
}

.rs-jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--po-sp-2);
}

.rs-jump a {
  display: inline-flex;
  align-items: center;
  gap: var(--po-sp-2);
  min-height: 44px;
  padding: 0 var(--po-sp-4);
  border: 1px solid var(--po-line-2);
  border-radius: 999px;
  background: var(--po-surface);
  color: var(--po-ink-soft);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-lg);
  font-weight: 600;
}

.rs-jump a:hover {
  border-color: var(--po-brand-2);
  text-decoration: none;
}

.rs-jump span {
  color: var(--po-muted);
  font-weight: 500;
}

.rs-new {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--po-sp-5);
  padding: var(--po-sp-5);
  border: 1px solid var(--po-line-2);
  border-radius: 12px;
  background: var(--po-surface);
  color: var(--po-ink-soft);
}

.rs-new:hover {
  box-shadow: var(--po-sh-2);
  text-decoration: none;
}

.rs-new img {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 8px;
  object-fit: cover;
}

.rs-new-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--po-sp-2);
  min-width: 0;
}

.rs-new-eye {
  color: var(--po-ok);
}

.rs-new-title {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-xl);
  font-weight: 700;
  line-height: 1.3;
}

.rs-new .btn svg,
.rs-play svg {
  flex: 0 0 auto;
}

/* The shelves, white and tint by turns */
.rs-sec {
  padding-block: var(--po-sp-16);
}

.rs-stripe {
  background: var(--po-tint-cool);
  border-block: 1px solid var(--po-line);
}

.rs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--po-sp-4);
}

.rs-head {
  margin-bottom: var(--po-sp-6);
}

.rs-row.rs-head {
  align-items: flex-end;
}

/* The podcast: the show beside its newest episodes */
.rs-pod {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--po-sp-12);
}

.rs-show {
  flex: 1 1 300px;
  max-width: 380px;
  min-width: 0;
}

.rs-show img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: var(--po-sp-6);
  border-radius: 10px;
  object-fit: cover;
}

.rs-show p:not(.eyebrow) {
  margin: var(--po-sp-3) 0 var(--po-sp-5);
}

.rs-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--po-sp-2);
}

.rs-eps {
  flex: 999 1 520px;
  min-width: 0;
}

.rs-list {
  margin: var(--po-sp-2) 0 0;
  padding: 0;
  list-style: none;
}

.rs-list li {
  border-top: 1px solid var(--po-line);
}

.rs-ep summary {
  display: flex;
  align-items: center;
  gap: var(--po-sp-4);
  padding-block: var(--po-sp-3);
  cursor: pointer;
  list-style: none;
}

.rs-ep summary::-webkit-details-marker {
  display: none;
}

.rs-play {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--po-line-2);
  border-radius: 50%;
  background: var(--po-surface);
  color: var(--po-cta);
}

.rs-ep summary:hover .rs-play,
.rs-ep[open] .rs-play {
  border-color: var(--po-cta);
  background: var(--po-cta);
  color: var(--po-surface);
}

.rs-ep-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rs-ep-title {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-xl);
  font-weight: 600;
  line-height: 1.35;
  color: var(--po-ink-soft);
}

.rs-ep-meta {
  font-size: var(--po-fs-md);
  color: var(--po-muted);
}

.rs-player {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--po-sp-2);
  padding: 0 0 var(--po-sp-4) 60px;
}

.rs-player iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: var(--po-radius);
}

/* The blog: the newest posts as cards */
.rs-cards,
.rs-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--po-sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--po-line-2);
  border-radius: 10px;
  background: var(--po-surface);
  color: var(--po-ink-soft);
}

.rs-card:hover {
  box-shadow: var(--po-sh-2);
  text-decoration: none;
}

/* Faces sit high in the blog's pictures, so the crop keeps the top */
.rs-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 25%;
  background: var(--po-brand-tint);
}

.rs-card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--po-sp-2);
  padding: var(--po-sp-4) var(--po-sp-5) var(--po-sp-5);
}

.rs-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 var(--po-sp-3);
  border-radius: 999px;
  background: var(--po-brand-tint);
  color: var(--po-brand);
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-sm);
  font-weight: 600;
}

.rs-card-title {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-xl);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.rs-card-date {
  font-size: var(--po-fs-md);
  color: var(--po-muted);
}

/* The tools */
.rs-tools {
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--po-sp-4);
}

.rs-tool {
  display: flex;
  flex-direction: column;
  gap: var(--po-sp-1);
  height: 100%;
  padding: var(--po-sp-5);
  border: 1px solid var(--po-line-2);
  border-radius: 10px;
  background: var(--po-surface);
  color: var(--po-body);
}

.rs-tool:hover {
  border-color: var(--po-brand-2);
  text-decoration: none;
}

.rs-tool strong {
  font-family: var(--po-font-ui);
  font-size: var(--po-fs-xl);
  color: var(--po-brand);
}

@media (max-width: 760px) {
  .rs-hero-in {
    gap: var(--po-sp-6);
    padding-block: var(--po-sp-8);
  }
  .rs-sec {
    padding-block: var(--po-sp-10);
  }
  .rs-pod {
    gap: var(--po-sp-8);
  }
  .rs-show img {
    max-width: 160px;
  }
  .rs-new {
    gap: var(--po-sp-4);
    padding: var(--po-sp-4);
  }
  .rs-new img {
    width: 72px;
    height: 72px;
  }
  .rs-player {
    padding-left: 0;
  }
}
