/* Resource hub and article pages. Header and footer mirror landing-layout.css so the pages feel like one site. */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: #16324f;
  font-family: 'Public Sans', 'Segoe UI', Arial, sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  border-radius: 7px;
  background: #16324f;
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #dbe5ea;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(22, 50, 79, 0.08);
}

.site-header nav {
  display: flex;
  max-width: 1180px;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto;
  padding: 12px 24px;
}

.site-header img {
  width: auto;
  max-height: 48px;
}

.site-header .header-cta {
  flex-shrink: 0;
  border-radius: 7px;
  background: #0b5d78;
  padding: 12px 20px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 160ms ease;
}

.site-header .header-cta:hover {
  background: #08465c;
}

.site-header a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid #e6a23c;
  outline-offset: 3px;
}

/* Hero of hub and article pages */
.r-hero {
  background: #f4f8fa;
  padding: 56px 24px 48px;
}

.r-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.r-crumbs {
  margin: 0 0 18px;
  color: #526579;
  font-size: 0.9rem;
}

.r-crumbs a {
  color: #0b5d78;
  text-underline-offset: 3px;
}

.r-hero h1 {
  margin: 0;
  color: #16324f;
  font-family: 'Literata', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
  text-wrap: balance;
}

.r-hero .r-lead {
  margin: 18px 0 0;
  color: #526579;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.r-meta {
  margin: 18px 0 0;
  color: #526579;
  font-size: 0.9rem;
}

/* Article body */
.r-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.r-body h2 {
  margin: 44px 0 0;
  color: #16324f;
  font-family: 'Literata', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.28;
  text-wrap: balance;
}

.r-body h2:first-child {
  margin-top: 0;
}

.r-body h3 {
  margin: 28px 0 0;
  color: #16324f;
  font-size: 1.15rem;
  font-weight: 700;
}

.r-body p,
.r-body li {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.r-body p {
  margin: 14px 0 0;
  color: #34495e;
  text-wrap: pretty;
}

.r-body ul,
.r-body ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 24px;
  color: #34495e;
}

.r-body li::marker {
  color: #0b5d78;
  font-weight: 700;
}

.r-body a {
  color: #0b5d78;
  text-underline-offset: 3px;
}

.r-body a:hover {
  color: #08465c;
}

.r-body a:focus-visible {
  outline: 3px solid #e6a23c;
  outline-offset: 3px;
}

.r-takeaways {
  margin-top: 40px;
  border: 1px solid #dbe5ea;
  border-radius: 10px;
  background: #f4f8fa;
  padding: 24px 26px;
}

.r-takeaways h2 {
  margin: 0;
  font-size: 1.3rem;
}

.r-takeaways ul {
  margin-top: 14px;
}

.r-cta {
  margin-top: 40px;
  border: 1px solid #dbe5ea;
  border-radius: 10px;
  background: #ffffff;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(22, 50, 79, 0.06);
}

.r-cta h2 {
  margin: 0;
  font-size: 1.3rem;
}

.r-cta p {
  margin: 10px 0 0;
}

.r-cta .c-btn {
  margin-top: 18px;
}

.r-related {
  margin-top: 40px;
}

.r-related h2 {
  margin: 0;
  font-size: 1.3rem;
}

.r-related ul {
  padding-left: 0;
  list-style: none;
}

.r-related li {
  border: 1px solid #dbe5ea;
  border-radius: 8px;
  padding: 14px 18px;
}

.r-disclaimer {
  margin: 40px 0 0;
  border-top: 1px solid #dbe5ea;
  padding-top: 20px;
  color: #526579;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Resource hub */
.r-hub {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px;
}

.r-hub .c-grid {
  margin-top: 0;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Footer */
.site-footer {
  background: #ffffff;
  padding: 42px 24px;
  text-align: center;
}

.site-footer > div {
  max-width: 56rem;
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 20px;
}

.site-footer .footer-copyright {
  margin-top: 20px;
  color: #1e2022;
  font-weight: 600;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 12px;
}

.site-footer a {
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer a:hover {
  color: #0b5d78;
}

@media (max-width: 767px) {
  .site-header nav {
    min-height: 58px;
    padding: 8px 16px;
  }

  .site-header img {
    max-width: min(150px, 100%);
    max-height: 38px;
  }

  .site-header .header-cta {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .r-hero {
    padding: 36px 18px 32px;
  }

  .r-body {
    padding: 32px 18px 16px;
  }

  .r-hub {
    padding: 36px 18px;
  }

  .r-takeaways,
  .r-cta {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
