/* Resources hub — content sections. Loads on top of splash.css + faq.css. */

.res-body {
  background: var(--sp-ivory, #f7f4ec);
  padding: 10px 0 50px;
}
.res-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.res-section { margin: 0 0 14px; }
.res-section h2 {
  font-family: var(--sp-serif, 'Playfair Display', serif);
  font-size: 30px;
  line-height: 1.2;
  color: var(--sp-charcoal, #2a2a28);
  margin: 44px 0 14px;
}
.res-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--sp-charcoal, #2a2a28);
  margin: 26px 0 8px;
}
.res-section p {
  font-size: 16px;
  line-height: 1.72;
  color: #4a4a44;
  margin: 0 0 14px;
}
.res-section ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #4a4a44;
  font-size: 16px;
  line-height: 1.72;
}
.res-section li { margin-bottom: 7px; }
.res-section strong { color: var(--sp-charcoal, #2a2a28); }

/* Solution thread callout */
.res-thread {
  background: rgba(201,168,76,0.07);
  border-left: 3px solid var(--sp-gold, #c9a84c);
  border-radius: 0 10px 10px 0;
  padding: 15px 20px;
  margin: 20px 0 8px;
}
.res-thread p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--sp-charcoal, #2a2a28); }
.res-thread a { color: var(--sp-gold, #c9a84c); font-weight: 600; text-decoration: none; white-space: nowrap; }
.res-thread a:hover { text-decoration: underline; }

/* Hub — guide card grid */
.res-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 30px 0 8px;
}
.res-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(42,42,40,0.10);
  border-radius: 14px;
  padding: 22px 22px 20px;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.res-card:hover {
  border-color: rgba(201,168,76,0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(42,42,40,0.08);
}
.res-card-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sp-gold, #c9a84c);
  margin: 0 0 8px;
}
.res-card h3 {
  font-family: var(--sp-serif, 'Playfair Display', serif);
  font-size: 21px;
  line-height: 1.25;
  color: var(--sp-charcoal, #2a2a28);
  margin: 0 0 9px;
}
.res-card p { font-size: 14.5px; line-height: 1.6; color: #56564e; margin: 0 0 14px; }
.res-card-link { font-size: 14px; font-weight: 600; color: var(--sp-gold, #c9a84c); }
/* An odd last card would sit alone half-width; let it span the row so the grid reads balanced */
.res-grid .res-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ── Category grouping ─────────────────────────────────────────────── */
.res-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 4px;
}
.res-cat-nav a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(201,168,76,0.34);
  border-radius: 999px;
  background: rgba(201,168,76,0.07);
  color: var(--sp-charcoal, #2a2a28);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.res-cat-nav a:hover {
  background: rgba(201,168,76,0.16);
  border-color: rgba(201,168,76,0.55);
}
.res-cat { scroll-margin-top: 90px; }
.res-cat + .res-cat { margin-top: 42px; }
.res-cat-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(42,42,40,0.10);
  margin-top: 30px;
}
.res-cat-head h2 {
  font-family: var(--sp-serif, 'Playfair Display', serif);
  font-size: 25px;
  font-weight: 700;
  color: var(--sp-charcoal, #2a2a28);
  margin: 0;
  line-height: 1.2;
}
.res-cat-head span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--sp-gold, #c9a84c);
  white-space: nowrap;
}
.res-cat-sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: #6a6a60;
  margin: 10px 0 0;
}
.res-cat .res-grid { margin-top: 18px; }

@media (max-width: 600px) {
  .res-cat-head h2 { font-size: 21px; }
  .res-cat + .res-cat { margin-top: 34px; }
}

/* Breadcrumb (spoke pages) */
.res-crumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 13px;
  color: #7a7a70;
}
.res-crumb a { color: var(--sp-gold, #c9a84c); text-decoration: none; font-weight: 600; }
.res-crumb a:hover { text-decoration: underline; }

/* TL;DR box (AEO — extractable summary) */
.res-tldr {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.32);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 26px 0 8px;
}
.res-tldr-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-gold, #c9a84c);
  margin-bottom: 9px;
}
.res-tldr p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--sp-charcoal, #2a2a28); }
.res-tldr ul { margin: 0; padding-left: 18px; }
.res-tldr li { font-size: 15px; line-height: 1.55; color: #4a4a44; margin-bottom: 5px; }

/* Content tables (comparison / use-case) */
.res-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.res-table th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--sp-gold, #c9a84c);
  padding: 10px 14px; border-bottom: 2px solid rgba(201,168,76,0.3);
}
.res-table td { padding: 12px 14px; color: #4a4a44; border-bottom: 1px solid rgba(42,42,40,0.08); vertical-align: top; line-height: 1.55; }
.res-table td strong { color: var(--sp-charcoal, #2a2a28); }
.res-table tr:last-child td { border-bottom: none; }
@media (max-width: 600px) {
  .res-table { font-size: 14px; margin: 18px 0; }
  .res-table tr:first-child { display: none; }
  .res-table tr { display: block; background: #fff; border: 1px solid rgba(42,42,40,0.1); border-radius: 10px; margin-bottom: 12px; padding: 4px 14px; }
  .res-table td { display: block; border-bottom: 1px solid rgba(42,42,40,0.06); padding: 10px 0; }
  .res-table tr td:last-child { border-bottom: none; }
  .res-table td[data-label]::before {
    content: attr(data-label); display: inline-block; width: 100%;
    font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--sp-gold, #c9a84c); margin-bottom: 3px;
  }
}

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* CTA */
.res-cta {
  background: #0a1210;
  padding: 64px 24px;
  text-align: center;
}
.res-cta-inner { max-width: 560px; margin: 0 auto; }
.res-cta h2 {
  font-family: var(--sp-serif, 'Playfair Display', serif);
  font-size: 30px;
  color: #fff;
  margin: 0 0 12px;
}
.res-cta p { color: rgba(255,255,255,0.6); font-size: 16px; line-height: 1.6; margin: 0 0 24px; }

@media (max-width: 600px) {
  .res-section h2 { font-size: 25px; }
  .res-cta h2 { font-size: 25px; }
  .res-thread a { white-space: normal; }
  .res-grid { grid-template-columns: 1fr; gap: 12px; }
}
