/* ---------------------------------------------------------------------------
   Resources — listing tweaks + long-form article styling.

   The listing reuses .blog-grid/.blog-card/.blog-meta already in styles.css, so
   only the bits those rules never covered live here: making the whole card a
   link (they were authored as non-interactive cards), and the article layout,
   which had no styling at all because the site had no long-form pages.

   Everything below uses existing tokens — no new colours, no new type families.
   --------------------------------------------------------------------------- */

/* ---- Listing ---- */

/* .blog-card sets cursor:default; these are real links. */
a.blog-card {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
a.blog-card h3 { color: var(--text); }

.blog-cat {
  color: var(--blue);
  text-transform: uppercase;
}

.res-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

/* Compact hero for listing/article pages — the full hero is sized for
   marketing pages with imagery behind it. */
.hero-compact { padding: 4rem 0 2.5rem; min-height: 0; }
.hero-compact .hero-text { max-width: 720px; }

/* ---- Article ---- */

.res-article { padding: 2.5rem 0 4rem; background: var(--white); }

/* Long-form measure. ~68ch keeps lines in the comfortable 60–80 character
   range rather than stretching to the 1200px container. */
.res-narrow { max-width: 780px; }

.res-head { margin: 1.25rem 0 2rem; }
.res-head h1 { margin: 0.6rem 0 0.75rem; }

.res-standfirst {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.res-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.res-hero {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 0 2rem;
}

/* Prose. Generous vertical rhythm; headings get more space above than below so
   sections read as grouped rather than evenly spaced. */
.res-prose { font-size: 1.02rem; line-height: 1.75; color: var(--text); }
.res-prose > * + * { margin-top: 1.15rem; }

.res-prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  scroll-margin-top: 90px; /* fixed header clearance for #anchor links */
}
.res-prose h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  scroll-margin-top: 90px;
}

.res-prose ul, .res-prose ol { padding-left: 1.35rem; }
.res-prose li + li { margin-top: 0.45rem; }
.res-prose li { line-height: 1.7; }

.res-prose a { color: var(--blue); text-underline-offset: 2px; }
.res-prose a:hover { color: var(--blue-hover); }

.res-prose strong { color: var(--text); font-weight: 600; }

.res-prose blockquote {
  border-left: 3px solid var(--blue);
  padding: 0.25rem 0 0.25rem 1.15rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Tables appear in comparison guides (wraps vs paint). They must scroll on
   narrow screens instead of forcing the page to scroll sideways. */
.res-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  display: block;
  overflow-x: auto;
}
.res-prose th, .res-prose td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.res-prose th { background: var(--bg); font-family: 'Outfit', sans-serif; font-weight: 600; }

.res-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
}
.res-tags li {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.res-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.res-cta h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.res-cta p { color: var(--text-muted); margin-bottom: 1.25rem; }

@media (max-width: 600px) {
  .res-article { padding: 1.5rem 0 3rem; }
  .res-prose h2 { margin-top: 2.25rem; }
}
