/* ══════════════════════════════════════════════════════════════════════
   RESOURCES HUB (/resources/)
   The self-serve index: two interactive tools, the write-ups, the FAQ
   library and the topic guides. Layers on top of styles.css and
   css/landing.css — and reuses css/blog.css for the article cards so a
   write-up looks the same here as it does on /blog/.

   The page is ordered by what a visitor can act on immediately: tools
   first (they produce a number in minutes), reading second, reference
   material last.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hero ──
   Slightly tighter than .lp-hero: the index rail below it carries the
   visual weight, so the headline does not need the full landing-page
   breathing room. */
.rs-hero { padding: 2.5rem 0 0; }
.rs-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.1;
  color: var(--text-light);
  margin: 1rem 0 1.25rem;
  max-width: 17ch;
}

/* Every grid below wraps its track floor in min(<floor>, 100%) so a narrow
   phone collapses to one column instead of forcing a track wider than the
   screen — auto-fit alone cannot shrink a track below its minmax minimum. */

/* ── Index rail ──
   Doubles as the page's table of contents and its inventory: each tile
   jumps to a section and states how much is in it. */
.rs-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 0.9rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.rs-index a {
  display: block;
  height: 100%;
  padding: 1.25rem 1.35rem 1.3rem;
  background: rgba(32, 16, 8, 0.45);
  border: 1px solid rgba(184,134,11,0.15);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.rs-index a:hover,
.rs-index a:focus-visible {
  border-color: rgba(184,134,11,0.42);
  background: rgba(42, 20, 10, 0.62);
  transform: translateY(-2px);
}
.rs-index a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.rs-index-n {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}
.rs-index-l {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}
.rs-index-d { display: block; font-size: 0.78rem; line-height: 1.55; color: var(--text-muted); }

/* ── Section scaffolding ──
   Same rhythm as .lp-section, with an anchor offset so the sticky nav
   does not sit on top of a heading after an in-page jump. */
.rs-section { padding: 4rem 0; border-top: 1px solid rgba(184,134,11,0.12); scroll-margin-top: 5.5rem; }
.rs-section > .container > h2 {
  font-size: clamp(1.5rem, 2.9vw, 2.05rem);
  line-height: 1.2;
  color: var(--text-light);
  margin: 0.75rem 0 0.9rem;
  max-width: 32ch;
}
.rs-lede {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 64ch;
  margin: 0;
}
/* Trailing "see everything" link under a section's grid. */
.rs-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
}
.rs-more:hover { color: var(--text-light); }
.rs-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── Tool cards ──
   The two free assessments. These get the largest treatment on the page:
   they are the only things here that return something about the
   visitor's own organisation. */
.rs-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: 1.15rem;
  margin-top: 2rem;
}
.rs-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.85rem 1.75rem;
  background: linear-gradient(135deg, #0F0503 0%, #1C0A06 55%, #0F0503 100%);
  border: 1px solid rgba(184,134,11,0.22);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}
/* Accent bar that draws in on hover, echoing .problem-card on the home page. */
.rs-tool::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rust-light), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.rs-tool:hover,
.rs-tool:focus-visible { border-color: rgba(184,134,11,0.5); transform: translateY(-3px); }
.rs-tool:hover::before,
.rs-tool:focus-visible::before { transform: scaleX(1); }
.rs-tool:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.rs-tool-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.05rem; }
.rs-tool-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  font-size: 1.25rem;
  color: var(--gold);
  background: rgba(184,134,11,0.1);
  border: 1px solid rgba(184,134,11,0.25);
  border-radius: 10px;
}
.rs-tool-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust-light);
}
.rs-tool-t {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}
.rs-tool-d {
  display: block;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}
/* Spec rows — what it costs you, what it runs on, what you walk away with. */
.rs-spec {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
  border-top: 1px solid rgba(184,134,11,0.14);
}
.rs-spec li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(184,134,11,0.1);
}
.rs-spec-k {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.12rem;
}
.rs-spec-v { font-size: 0.86rem; line-height: 1.55; color: var(--text-light); }
.rs-tool-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  transition: gap 0.3s;
}
.rs-tool:hover .rs-tool-go { gap: 0.7rem; }

/* ── Answers panel ──
   The FAQ library, fronted by its own size and split into the nine
   topics it is organised under. */
.rs-answers {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) 2fr;
  gap: 2rem 2.75rem;
  align-items: start;
  margin-top: 2rem;
  padding: 2rem 2.25rem 2.25rem;
  background: rgba(32, 16, 8, 0.42);
  border: 1px solid rgba(184,134,11,0.18);
  border-radius: 18px;
}
.rs-answers-n {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 7vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.rs-answers-l {
  display: block;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0.65rem 0 1.4rem;
  max-width: 26ch;
}
.rs-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.rs-chips a {
  display: inline-block;
  padding: 0.42rem 0.9rem;
  border: 1px solid rgba(184,134,11,0.22);
  border-radius: 999px;
  background: rgba(15, 5, 3, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.rs-chips a:hover,
.rs-chips a:focus-visible {
  color: var(--text-light);
  border-color: rgba(184,134,11,0.45);
  background: rgba(42, 20, 10, 0.6);
}
.rs-chips a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── Topic guides ──
   The 300px floor is deliberate: it lands the nine guides in a 3 x 3 grid
   at full width rather than a 4 + 4 + 1 grid with an orphan on the last
   row, and gives each title room to sit on one or two lines. */
.rs-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}
.rs-topic {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0 0.95rem;
  align-items: start;
  padding: 1.25rem 1.3rem;
  background: rgba(32, 16, 8, 0.45);
  border: 1px solid rgba(184,134,11,0.15);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.rs-topic:hover,
.rs-topic:focus-visible {
  border-color: rgba(184,134,11,0.42);
  background: rgba(42, 20, 10, 0.62);
  transform: translateY(-2px);
}
.rs-topic:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.rs-topic-icon { font-size: 1.3rem; color: var(--gold); padding-top: 0.1rem; }
.rs-topic-t {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}
.rs-topic-d { display: block; font-size: 0.79rem; line-height: 1.6; color: var(--text-muted); }

/* ── Proof ──
   One quote carried across from /pages/testimonials.html, so the claim
   that practitioners use this is made on the page rather than linked to. */
.rs-proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.75rem 2.5rem;
  align-items: center;
  margin-top: 1.75rem;
}
.rs-quote { margin: 0; }
.rs-quote blockquote {
  margin: 0 0 1.1rem;
  padding: 0 0 0 1.4rem;
  border-left: 2px solid var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  line-height: 1.55;
  color: var(--text-light);
}
.rs-quote figcaption { display: flex; align-items: center; gap: 0.8rem; padding-left: 1.4rem; }
.rs-quote-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--rust-dark));
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
}
.rs-quote-name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
}
.rs-quote-role { display: block; font-size: 0.78rem; line-height: 1.5; color: var(--text-muted); margin-top: 0.15rem; }

@media (max-width: 860px) {
  .rs-answers { grid-template-columns: 1fr; padding: 1.75rem 1.5rem; gap: 1.5rem; }
  .rs-answers-l { margin-bottom: 0; }
}
@media (max-width: 700px) {
  .rs-section { padding: 3.25rem 0; }
  .rs-tool { padding: 1.6rem 1.35rem 1.5rem; }
  .rs-spec li { grid-template-columns: 1fr; gap: 0.2rem; }
}
