/* Resources page overrides live here. Shared foundation remains in ../styles.css. */

body[data-page="resources"] {
  background: #f6f7f9;
}

.resources-hero,
.guide-hero {
  padding: calc(var(--header-height) + 78px) 0 clamp(70px, 8vw, 106px);
  background:
    linear-gradient(180deg, #ffffff 0%, #f2f6fa 100%);
}

.resources-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: end;
}

.resources-hero h1,
.guide-hero h1 {
  max-width: 850px;
  margin: 0 0 24px;
  color: #0f172a;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.resources-hero p,
.guide-hero p {
  max-width: 720px;
  margin-bottom: 0;
}

.resources-hero__panel {
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3vw, 34px);
}

.resources-hero__panel strong,
.resources-hero__panel span {
  display: block;
}

.resources-hero__panel strong {
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 1.18rem;
}

.resources-hero__panel span {
  color: #4b5565;
  line-height: 1.6;
}

.resources-section {
  background: #ffffff;
}

.resources-section__head {
  max-width: 760px;
  margin-bottom: 34px;
}

.resources-section__head h2 {
  margin-bottom: 18px;
  color: #0f172a;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-card);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.resource-card:hover,
.resource-card:focus-visible {
  border-color: #1f5d8f;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  transform: translateY(-3px);
}

.resource-card span,
.guide-sidebar a:first-child {
  color: #1f5d8f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-card h3 {
  margin: 28px 0 16px;
  color: #0f172a;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.resource-card p {
  margin-bottom: 0;
  color: #4b5565;
}

.resources-cta {
  background: #0b1626;
  padding: clamp(64px, 7vw, 92px) 0;
}

.resources-cta__inner {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.resources-cta h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.resources-cta p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.guide-page {
  background: #ffffff;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 760px);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(54px, 7vw, 88px);
  padding-bottom: clamp(72px, 8vw, 112px);
}

.guide-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
  padding: 20px;
}

.guide-sidebar a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  color: #24384f;
  font-weight: 650;
}

.guide-sidebar a:last-child {
  border-bottom: 0;
}

.guide-content {
  min-width: 0;
}

.guide-content h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.guide-content p {
  max-width: 760px;
  color: #374151;
}

.guide-checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 40px;
  padding: 0;
  list-style: none;
}

.guide-checklist li {
  position: relative;
  border-left: 4px solid #1f5d8f;
  background: #f8fafc;
  padding: 14px 18px;
  color: #172033;
  font-weight: 600;
}

.guide-next {
  margin-top: clamp(38px, 5vw, 58px);
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
  padding: clamp(24px, 3vw, 34px);
}

.guide-next p {
  margin-bottom: 24px;
}

.faq-list section {
  border-bottom: 1px solid #e2e8f0;
  padding: 0 0 28px;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .resources-hero__grid,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    min-height: auto;
  }

  .resources-cta__inner {
    display: grid;
  }

  .resources-cta__inner .button {
    width: 100%;
  }

  .guide-sidebar {
    position: static;
    order: 2;
  }
}
