/* Resources pages (videos.html, cases.html, builder-series.html) and the home page's cases band. 9 Nov, from Michael's
   review: a Resources menu with Blog, Videos, Cases and the Builder Series. Built on sx-tokens.css only. */
.rs-hero { background: linear-gradient(180deg, var(--tint), #fff); padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.rs-hero-g { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.rs-hero-g.solo { grid-template-columns: minmax(0, 1fr); }
.rs-hero h1 { margin-top: 14px; color: var(--navy); }
.rs-hero .lead { margin-top: 18px; max-width: 54ch; }
.rs-hero .btns { margin-top: 28px; }
.rs-hero figure { margin: 0; }
.rs-hero figcaption { margin-top: 12px; font: 600 15px/1.4 var(--sans); color: var(--navy); }

.rs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rs-head .h2 { margin-top: 12px; }
.rs-head .lead { margin-top: 12px; max-width: 60ch; }

.rs-grid { list-style: none; margin: clamp(28px, 3.4vw, 44px) 0 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rs-grid.rs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-grid.rs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rs-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
a.rs-card { color: inherit; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
a.rs-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 45, 123, .06), 0 18px 40px -16px rgba(2, 122, 162, .32); text-decoration: none; }
.rs-ph { aspect-ratio: 16 / 10; background: var(--slate); overflow: hidden; }
.rs-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rs-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 14px; flex: 1; }
.rs-k { font: 600 13px/1.4 var(--sans); color: var(--teal-deep); }
.rs-t { font: 600 1.2rem/1.25 var(--display); color: var(--navy); }
.rs-2 .rs-t { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.rs-d { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.rs-body .go { margin-top: auto; }

/* video tiles: the poster is the .vid facade from sx-tokens.css; phone recordings sit whole on the mist ground */
.rs-card .vid { border-radius: 0; aspect-ratio: 16 / 10; }
.rs-card .vid.tall { background: var(--slate); }
.rs-card .vid.tall img { object-fit: contain; padding: 14px 0 0; }
.rs-card .vid .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.rs-card .vid .play::before { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; margin-left: 4px; }
.rs-hero .vid { aspect-ratio: 940 / 573; box-shadow: var(--shadow); }
.rs-video { position: relative; background: #0b1c4d; aspect-ratio: 16 / 10; }
.rs-hero .rs-video { aspect-ratio: 940 / 573; border-radius: var(--r-md); overflow: hidden; }
.rs-video video, .rs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }

/* the tile that fills the last row: the main CTA */
.rs-cta { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 3vw, 40px); background: var(--slate); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-soft); }
.rs-cta .h3 { color: var(--navy); }
.rs-cta p { max-width: 46ch; }
.rs-cta .btns { margin-top: 8px; }

/* Builder Series: the newest part runs wide, the earlier parts sit under it */
.rs-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); margin-top: clamp(28px, 3.4vw, 44px); }
.rs-feature .rs-ph { aspect-ratio: 1200 / 630; height: 100%; }
.rs-feature .rs-body { padding: clamp(22px, 3vw, 40px); justify-content: center; gap: 12px; }
.rs-feature .rs-t { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.rs-feature .go { margin-top: 6px; }
.rs-grid.after-feature { margin-top: 24px; }

/* home: cases band */
.cases .rs-head .go { margin-bottom: 4px; }

@media (max-width: 1080px) {
  .rs-grid.rs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-cta { grid-column: span 1; }
}
@media (max-width: 860px) {
  .rs-hero-g, .rs-feature { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .rs-grid, .rs-grid.rs-2, .rs-grid.rs-4 { grid-template-columns: minmax(0, 1fr); }
}
