/* ============================================================================
   refresh-resources.css: shared family for the five Resources listing pages
   (Case Studies, Blog, Events, Webinars, Downloads). One clean listing system:
   compact dark hero / paper listing body / red CTA band.
   Content is a literal pass-through from the live site (architectnow.net);
   see each page's header comment for provenance notes.
   ========================================================================== */

/* ---- Hero (compact, dark) ---------------------------------------------------- */
.rf-rs-hero {
  position: relative;
  background: var(--rf-dark);
  color: #fff;
  padding: 148px 24px 64px;
  overflow: hidden;
}
.rf-rs-hero__glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 999px;
  background: rgba(167, 37, 44, 0.16);
  filter: blur(140px);
  pointer-events: none;
}
.rf-rs-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin-inline: auto;
}
.rf-rs-hero__h1 {
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 820px;
}
.rf-rs-hero__h1 em {
  display: inline-block;
}
.rf-rs-hero__sub {
  margin-top: 18px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 17px;
  line-height: 1.65;
}

/* ---- Body -------------------------------------------------------------------- */
.rf-rs-body {
  background: var(--rf-paper);
  padding: 72px 24px 88px;
}
.rf-rs-body__inner {
  max-width: 1200px;
  margin-inline: auto;
}
.rf-rs-section + .rf-rs-section {
  margin-top: 72px;
}
.rf-rs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.rf-rs-head .rf-section-label {
  margin-bottom: 12px;
}
.rf-rs-h2 {
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.025em;
  color: var(--rf-ink);
}
.rf-rs-count {
  font-family: var(--rf-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(20, 20, 20, 0.45);
  white-space: nowrap;
}

/* ---- Card grid ----------------------------------------------------------------
   Base card: white on paper, hairline border, red-tinted hover lift. */
.rf-rs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.rf-rs-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s var(--rf-ease), box-shadow 0.4s var(--rf-ease), border-color 0.4s var(--rf-ease);
}
.rf-rs-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 37, 44, 0.3);
  box-shadow: 0 24px 60px -20px rgba(167, 37, 44, 0.18);
}
.rf-rs-card__pad {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 24px;
}
.rf-rs-card__kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--rf-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rf-rs-card__tag { color: var(--rf-red); font-weight: 700; }
.rf-rs-card__date { color: rgba(20, 20, 20, 0.45); }
.rf-rs-card__title {
  font-weight: 800;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--rf-ink);
  margin-bottom: 10px;
  transition: color 0.3s var(--rf-ease);
}
.rf-rs-card:hover .rf-rs-card__title { color: var(--rf-red); }
.rf-rs-card__desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: #55564F;
  flex: 1;
}
.rf-rs-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rf-ink);
}
.rf-rs-card__cta .rf-rs-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.05);
  transition: background 0.3s var(--rf-ease);
}
.rf-rs-card__cta .rf-rs-dot svg { stroke: var(--rf-red); transition: stroke 0.3s var(--rf-ease); }
.rf-rs-card:hover .rf-rs-dot { background: var(--rf-red); }
.rf-rs-card:hover .rf-rs-dot svg { stroke: #fff; }

/* Thumb variant (webinars, downloads): the Strapi thumbnail art is a native
   3:1 banner (1500x500); render at its own ratio so nothing crops. */
.rf-rs-card__thumb {
  aspect-ratio: 3 / 1;
  background: #F1F1EE;
  border-bottom: 1px solid rgba(20, 20, 20, 0.06);
}
.rf-rs-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logo plate variant (case studies): logo centered on white. */
.rf-rs-card__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 24px 32px;
  background: #fff;
  border-bottom: 1px solid rgba(20, 20, 20, 0.06);
}
.rf-rs-card__plate img {
  max-height: 56px;
  max-width: 70%;
  width: auto;
  object-fit: contain;
}
.rf-rs-card__plate-name {
  font-family: var(--rf-font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(20, 20, 20, 0.55);
}

/* ---- Featured card (blog featured post, case study feature, upcoming event) --- */
.rf-rs-feat {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  transition: transform 0.4s var(--rf-ease), box-shadow 0.4s var(--rf-ease), border-color 0.4s var(--rf-ease);
}
.rf-rs-feat:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 37, 44, 0.3);
  box-shadow: 0 28px 70px -24px rgba(167, 37, 44, 0.2);
}
.rf-rs-feat__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 32px;
  background: #F5F5F2;
  border-bottom: 1px solid rgba(20, 20, 20, 0.06);
}
.rf-rs-feat__media img { max-width: 100%; max-height: 240px; object-fit: contain; }
.rf-rs-feat__media.is-logo img { max-height: 84px; max-width: 65%; }
.rf-rs-feat__body {
  padding: 34px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.rf-rs-feat.is-solo { grid-template-columns: 1fr; }
.rf-rs-feat.is-solo .rf-rs-feat__body { max-width: 860px; }
.rf-rs-feat__title {
  font-weight: 800;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--rf-ink);
  margin-bottom: 14px;
  transition: color 0.3s var(--rf-ease);
}
/* Featured card hover parity with the grid cards (title + arrow dot). */
.rf-rs-feat:hover .rf-rs-feat__title { color: var(--rf-red); }
.rf-rs-feat:hover .rf-rs-dot { background: var(--rf-red); }
.rf-rs-feat:hover .rf-rs-dot svg { stroke: #fff; }
.rf-rs-feat__desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: #55564F;
}
.rf-rs-feat__desc + .rf-rs-feat__desc { margin-top: 12px; }
.rf-rs-feat__body .rf-rs-card__cta { margin-top: 24px; }

/* ---- Hairline list rows (blog archive, past events) --------------------------- */
.rf-rs-rows { border-top: 1px solid rgba(20, 20, 20, 0.1); }
.rf-rs-row {
  display: block;
  padding: 26px 4px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
}
.rf-rs-row__meta {
  font-family: var(--rf-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.45);
  margin-bottom: 8px;
}
.rf-rs-row__title {
  margin: 0;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--rf-ink);
  transition: color 0.3s var(--rf-ease);
}
.rf-rs-row:hover .rf-rs-row__title { color: var(--rf-red); }
.rf-rs-row__desc {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #55564F;
  max-width: 760px;
}

/* ---- Filter tabs (downloads) --------------------------------------------------- */
.rf-rs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  margin-bottom: 32px;
}
.rf-rs-tab {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 16px 14px;
  font-family: var(--rf-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.5);
  position: relative;
  transition: color 0.25s var(--rf-ease);
}
.rf-rs-tab:hover { color: var(--rf-ink); }
.rf-rs-tab.is-active { color: var(--rf-red); }
.rf-rs-tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--rf-red);
}
.rf-rs-grid [data-cat].is-hidden { display: none; }

/* ---- CTA band (red, site-standard treatment) ----------------------------------- */
.rf-rs-cta {
  position: relative;
  background: var(--rf-red);
  padding: 88px 24px 72px;
  text-align: center;
  overflow: hidden;
}
.rf-rs-cta__light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% 30%, rgba(255, 255, 255, 0.12), transparent 70%);
}
.rf-rs-cta__dark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 60%, var(--rf-red-deep));
}
.rf-rs-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-inline: auto;
}
.rf-rs-cta__h2 {
  font-weight: 800;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 20px;
}
.rf-rs-cta__h2 em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.95);
  display: inline-block;
}
.rf-rs-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--rf-red);
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.3s var(--rf-ease), box-shadow 0.3s var(--rf-ease);
}
.rf-rs-cta__btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
}

/* Keyboard focus for the whole listing family. */
.rf-rs-feat:focus-visible,
.rf-rs-card:focus-visible,
.rf-rs-row:focus-visible,
.rf-rs-cta__btn:focus-visible,
.rf-rs-tab:focus-visible {
  outline: 2px solid var(--rf-red);
  outline-offset: 3px;
  border-radius: inherit;
}
.rf-rs-feat:focus-visible .rf-rs-feat__title,
.rf-rs-card:focus-visible .rf-rs-card__title,
.rf-rs-row:focus-visible .rf-rs-row__title { color: var(--rf-red); }

/* Drafted banner placeholder (blog featured): mono title plate until the
   generated per-post banner art lands; swap the div for the real img. */
.rf-rs-feat__plate {
  font-family: var(--rf-font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.8;
  text-align: center;
  color: rgba(20, 20, 20, 0.55);
  max-width: 320px;
}

/* ---- Responsive ----------------------------------------------------------------- */
@media (min-width: 768px) {
  .rf-rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf-rs-feat { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .rf-rs-feat__media { border-bottom: 0; border-right: 1px solid rgba(20, 20, 20, 0.06); }
  .rf-rs-feat__body { padding: 40px 38px; }
  /* 280px fits the longest timed meta line on one line (was 220, which
     wrapped most CDT/CST lines and orphaned the timezone). */
  .rf-rs-row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
  .rf-rs-row__meta { margin-bottom: 0; padding-top: 3px; }
  .rf-rs-h2 { font-size: 30px; }
  .rf-rs-cta__h2 { font-size: 40px; }
}
@media (min-width: 1024px) {
  .rf-rs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .rf-rs-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf-rs-body { padding: 88px 24px 104px; }
}

/* ===========================================================================
   MOBILE UX PASS (2026-07-18). Shared listing family (Case Studies, Blog,
   Events, Webinars, Downloads). Mobile-breakpoint-gated; desktop untouched.
=========================================================================== */

/* BLOG-M07: hide the row CTA affordance by default (desktop rows signal the
   link on hover); the mobile block below re-shows it. Declared BEFORE the
   media query so the mobile rule wins on ties. */
.rf-rs-row .rf-rs-card__cta { display: none; }

@media (max-width: 767px) {
  /* CASES-M01 / EVENTS-M02: card + row support copy under the 15px floor. */
  .rf-rs-card__desc,
  .rf-rs-row__desc { font-size: 15px; }

  /* CASES-M02: clamp long case teasers so a phone list is scannable (the CTA
     is the continuation affordance; Blog copy is short enough to never clamp). */
  .rf-rs-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rf-rs-feat__desc {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* EVENTS-M01: 22 stacked past-event rows were a ~6,400px text wall; 2-line
     truncation restores date/title scannability. */
  .rf-rs-row__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* CASES-M03: the featured media band was a ~250px near-empty block stacked. */
  .rf-rs-feat__media { min-height: 150px; padding: 24px; }

  /* CASES-M05: the fixed 150px logo plate was mostly empty full-width. */
  .rf-rs-card__plate { height: 112px; padding: 20px 28px; }

  /* CASES-M06: the 148px hero top padding was desktop-scaled dead air. */
  .rf-rs-hero { padding: 116px 24px 52px; }

  /* BLOG-M08: even the featured H2 stack (removes the 'Skip' widow). */
  .rf-rs-feat__title { text-wrap: balance; }

  /* DOWNLOADS-M01: the filter tabs wrapped into a fake vertical menu; make them
     one horizontal swipe strip on the container border, tap height to 44px. */
  .rf-rs-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rf-rs-tabs::-webkit-scrollbar { display: none; }
  .rf-rs-tab { white-space: nowrap; padding: 13px 16px 15px; }

  /* BLOG-M07: reveal the family's 'Read more' arrow on archive rows (desktop
     has hover; a phone row shows no link cue otherwise). */
  .rf-rs-row .rf-rs-card__cta { display: inline-flex; margin-top: 12px; }
}

/* CASES-M04: touch devices get no :hover press feedback, so a dead card reads
   as frozen. Give an :active response on hover-less pointers. */
@media (hover: none) {
  .rf-rs-card:active,
  .rf-rs-feat:active,
  .rf-rs-row:active { border-color: rgba(167, 37, 44, 0.3); }
  .rf-rs-card:active .rf-rs-card__title,
  .rf-rs-feat:active .rf-rs-feat__title,
  .rf-rs-row:active .rf-rs-row__title { color: var(--rf-red); transition-duration: 0.1s; }
  .rf-rs-card:active .rf-rs-dot,
  .rf-rs-feat:active .rf-rs-dot { background: var(--rf-red); }
  .rf-rs-card:active .rf-rs-dot svg,
  .rf-rs-feat:active .rf-rs-dot svg { stroke: #fff; }
}

/* ---- spec 004 addition: listing empty states (the reference build had no
   empty-state concept; copy is per-page, PR-reviewed). ---- */
.rf-rs-empty {
  color: var(--rf-ink-soft, #555);
  font-size: 16px;
  padding: 48px 0 64px;
  text-align: center;
}

/* ---- spec 004 addition: Load More row under listing grids/rows. ---- */
.rf-rs-more {
  text-align: center;
  margin-top: 40px;
}
