/* Resource library layout for /resources/ (31 Oct 2026).
   Loaded after content-pages.css. Tokens follow style.css: ink #1f2328, muted #5f6368, red #c8102e, line #e4e4e4, warm #f7f5f2.
   Bands whose heading carries .sf-hub-h2 become single-column catalogue sections; the other bands keep the guide layout. */

/* ---------- catalogue bands: heading on top, full-width body ---------- */
.sf-band:has(> .sf-band__inner > .sf-band__head > .sf-hub-h2) .sf-band__inner {
  grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 56px 0 64px;
}
.sf-band:has(> .sf-band__inner > .sf-band__head > .sf-hub-h2) .sf-band__head {
  position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "num ask" "title ask"; align-items: end; column-gap: 24px;
}
.sf-band:has(> .sf-band__inner > .sf-band__head > .sf-hub-h2) .sf-band__num { grid-area: num; margin-bottom: 12px; }
.sf-band:has(> .sf-band__inner > .sf-band__head > .sf-hub-h2) .sf-hub-h2 { grid-area: title; }
.sf-band:has(> .sf-band__inner > .sf-band__head > .sf-hub-h2) .sf-band__ask { grid-area: ask; align-self: end; margin: 0 0 6px; white-space: nowrap; }
.sf-hub-h2 + .sf-hub-intro, .sf-band__body > .sf-hub-intro { max-width: 720px; margin: 0 0 24px; color: #5f6368; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.sf-guide-body .sf-hub-intro a { color: #1f2328; }

/* the guide body limits text width and styles lists; the catalogue blocks opt out */
.sf-guide-body .sf-hub-grid, .sf-guide-body .sf-hub-rows, .sf-guide-body .sf-hub-latest, .sf-guide-body .sf-hub-latest__grid,
.sf-guide-body ul.sf-hub-first, .sf-guide-body ul.sf-hub-files, .sf-guide-body .sf-hub-topics, .sf-guide-body .sf-hub-sub {
  max-width: none; width: auto; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; border-left: 0; border-right: 0; background: transparent; box-shadow: none; list-style: none;
}
.sf-guide-body ul.sf-hub-first li, .sf-guide-body ul.sf-hub-files li { margin: 0; padding-left: 0; }
.sf-guide-body ul.sf-hub-first li::marker, .sf-guide-body ul.sf-hub-files li::marker { content: ""; }
.sf-guide-body ul.sf-hub-first li::before, .sf-guide-body ul.sf-hub-files li::before { display: none; }

/* ---------- card grids ---------- */
.sf-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sf-hub-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sf-hub-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sf-hub-grid--5 .sf-hub-card { padding: 18px 18px 16px; }
.sf-hub-grid--5 .sf-hub-card strong { font-size: 15.5px; }
.sf-hub-grid--5 .sf-hub-card small { font-size: 13px; }
.sf-hub-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-hub-grid + .sf-hub-grid, .sf-hub-grid + .sf-hub-sub, .sf-hub-sub + .sf-hub-grid { margin-top: 18px; }
.sf-hub-sub { margin: 30px 0 0; padding: 0 0 10px; border-bottom: 1px solid #e4e4e4; font: 800 11px/1.4 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #6b7076; }

.sf-guide-body a.sf-hub-card, .sf-hub-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 100%; padding: 22px 22px 20px;
  border: 1px solid #e4e4e4; border-radius: 12px; background: #fff; color: #1f2328; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sf-hub-card:hover, .sf-hub-card:focus-visible { border-color: #cfd3d7; box-shadow: 0 18px 40px -28px rgba(31,35,40,.45); transform: translateY(-1px); }
.sf-band--warm .sf-hub-card { background: #fff; }
.sf-band--white .sf-hub-card { background: #fbfaf8; }
.sf-hub-card__tag { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #c8102e; font: 800 10.5px/1.4 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.sf-hub-card__tag--muted { color: #6b7076; }
.sf-hub-card__icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; margin: 0 0 4px; border-radius: 10px; background: #f7f5f2; color: #c8102e; }
.sf-hub-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sf-hub-card strong { display: block; font: 800 17px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: -.015em; color: #1f2328; text-wrap: pretty; }
.sf-hub-card--tool strong { font-size: 18px; }
.sf-hub-card small { display: block; color: #5f6368; font-size: 13.5px; line-height: 1.5; text-wrap: pretty; }
.sf-hub-card em { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; color: #c8102e; font-size: 13px; font-style: normal; font-weight: 700; }
.sf-hub-card em span { display: inline-block; transition: transform .18s ease; }
.sf-hub-card:hover em span { transform: translateX(3px); }
.sf-hub-card--dark { border-color: #1f2328; background: #1f2328 !important; color: #fff; }
.sf-hub-card--dark strong { color: #fff; }
.sf-hub-card--dark small { color: #c9cdd1; }
.sf-hub-card--dark .sf-hub-card__tag { color: #ff8a9b; }
.sf-hub-card--dark em { color: #fff; }

/* library cards with a photo */
.sf-hub-card--photo { padding: 0; overflow: hidden; }
.sf-hub-card--photo .sf-hub-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e7e6e2; }
.sf-hub-card--photo .sf-hub-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sf-hub-card--photo:hover .sf-hub-card__media img { transform: scale(1.03); }
.sf-hub-card--photo .sf-hub-card__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; padding: 18px 20px 18px; }

/* compact guide rows */
.sf-hub-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.sf-guide-body a.sf-hub-row, .sf-hub-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #e4e4e4; color: #1f2328; text-decoration: none; }
.sf-hub-row span { display: block; }
.sf-hub-row .sf-hub-row__kicker { margin-bottom: 4px; color: #6b7076; font: 800 10.5px/1.4 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.sf-hub-row strong { display: block; font: 700 16px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: -.01em; }
.sf-hub-row small { display: block; margin-top: 3px; color: #5f6368; font-size: 13.5px; line-height: 1.5; text-wrap: pretty; }
.sf-hub-row .sf-hub-row__arrow { color: #c8102e; font-size: 16px; font-weight: 700; transition: transform .18s ease; }
.sf-hub-row:hover .sf-hub-row__arrow { transform: translateX(3px); }
.sf-hub-row:hover strong { color: #c8102e; }

/* downloads */
.sf-hub-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sf-hub-file { display: flex; gap: 14px; padding: 16px 18px; border: 1px dashed #cfd3d7; border-radius: 12px; background: #fff; }
.sf-hub-file__type { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: #1f2328; color: #fff; font: 800 10px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; }
.sf-hub-file__type--pdf { background: #c8102e; }
.sf-hub-file__type--link { background: #f7f5f2; color: #1f2328; border: 1px solid #e4e4e4; }
.sf-hub-file div { min-width: 0; }
.sf-hub-file strong { display: block; font: 700 15px/1.35 "Plus Jakarta Sans", sans-serif; }
.sf-guide-body .sf-hub-file strong a { color: #1f2328; text-decoration: none; }
.sf-guide-body .sf-hub-file strong a:hover { color: #c8102e; }
.sf-hub-file small { display: block; margin-top: 3px; color: #5f6368; font-size: 13px; line-height: 1.5; }
.sf-guide-body .sf-hub-file small a { color: #c8102e; }
.sf-hub-note { margin: 22px 0 0; color: #858a90; font-size: 13px; line-height: 1.55; }

/* "which one first" strip */
.sf-hub-first { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; border: 1px solid #e4e4e4; border-radius: 12px; overflow: hidden; background: #e4e4e4; }
.sf-hub-first li { padding: 18px 20px 20px; background: #fff; }
.sf-hub-first b { display: block; margin-bottom: 8px; color: #c8102e; font: 800 10.5px/1.4 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.sf-hub-first p { margin: 0; font-size: 14px; line-height: 1.55; color: #3d4247; }
.sf-guide-body .sf-hub-first p a { color: #1f2328; font-weight: 700; }

/* ---------- latest articles ---------- */
.sf-hub-latest__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sf-guide-body a.sf-hub-post, .sf-hub-post { display: flex; flex-direction: column; border: 1px solid #e4e4e4; border-radius: 12px; overflow: hidden; background: #fff; color: #1f2328; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.sf-hub-post:hover { border-color: #cfd3d7; box-shadow: 0 18px 40px -28px rgba(31,35,40,.45); }
.sf-guide-body a.sf-hub-post--lead, .sf-hub-post--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.sf-hub-post__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e7e6e2; }
.sf-hub-post--lead .sf-hub-post__media { aspect-ratio: auto; min-height: 260px; }
.sf-hub-post__media img, .sf-hub-post__blank { display: block; width: 100%; height: 100%; object-fit: cover; }
.sf-hub-post__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.sf-hub-post--lead .sf-hub-post__body { justify-content: center; padding: 28px 30px; }
.sf-hub-post__meta { color: #6b7076; font-size: 12.5px; }
.sf-hub-post__meta b { color: #c8102e; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; }
.sf-hub-post strong { font: 800 16px/1.3 "Plus Jakarta Sans", sans-serif; letter-spacing: -.015em; text-wrap: pretty; }
.sf-hub-post--lead strong { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; }
.sf-hub-post small { color: #5f6368; font-size: 14px; line-height: 1.55; }
.sf-hub-post:hover strong { color: #c8102e; }
.sf-hub-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; }
.sf-hub-topics__label { margin-right: 6px; color: #6b7076; font: 800 10.5px/1.4 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.sf-guide-body .sf-hub-topics a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #e4e4e4; border-radius: 999px; background: #fff; color: #1f2328; font-size: 13px; font-weight: 600; text-decoration: none; }
.sf-guide-body .sf-hub-topics a span { color: #858a90; font-weight: 500; }
.sf-guide-body .sf-hub-topics a:hover { border-color: #1f2328; }
.sf-guide-body .sf-hub-topics a.sf-hub-topics__all { border-color: #c8102e; color: #c8102e; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .sf-hub-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .sf-hub-grid, .sf-hub-grid--4, .sf-hub-grid--5, .sf-hub-files, .sf-hub-latest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-hub-first { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-hub-rows { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 719px) {
  .sf-band:has(> .sf-band__inner > .sf-band__head > .sf-hub-h2) .sf-band__inner { padding: 40px 0 44px; }
  .sf-band:has(> .sf-band__inner > .sf-band__head > .sf-hub-h2) .sf-band__head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "num" "title" "ask"; }
  .sf-band:has(> .sf-band__inner > .sf-band__head > .sf-hub-h2) .sf-band__ask { margin: 14px 0 0; justify-self: start; }
  .sf-hub-grid, .sf-hub-grid--4, .sf-hub-grid--5, .sf-hub-grid--2, .sf-hub-files, .sf-hub-latest__grid, .sf-hub-first { grid-template-columns: minmax(0, 1fr); }
  .sf-hub-post--lead { grid-template-columns: minmax(0, 1fr); }
  .sf-hub-post--lead .sf-hub-post__media { min-height: 0; aspect-ratio: 16 / 9; }
  .sf-hub-post--lead .sf-hub-post__body { padding: 16px 18px 18px; }
  .sf-hub-card { padding: 18px 18px 16px; }
  /* stage cards collapse to compact rows: tag, title and the arrow; the description waits on the resource page */
  .sf-hub-grid--5 { gap: 8px; }
  .sf-guide-body .sf-hub-grid--5 a.sf-hub-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tag arrow" "title arrow"; align-items: center; justify-items: start; gap: 2px 12px; min-height: 0; padding: 12px 14px 12px 16px; text-align: left; }
  .sf-guide-body .sf-hub-grid--5 a.sf-hub-card .sf-hub-card__tag { grid-area: tag; }
  .sf-guide-body .sf-hub-grid--5 a.sf-hub-card strong { grid-area: title; font-size: 15px; }
  .sf-guide-body .sf-hub-grid--5 a.sf-hub-card small { display: none; }
  .sf-guide-body .sf-hub-grid--5 a.sf-hub-card em { grid-area: arrow; margin: 0; padding: 0; font-size: 0; }
  .sf-guide-body .sf-hub-grid--5 a.sf-hub-card em span { font-size: 16px; }
}
