:root {
  --ink: #182424;
  --muted: #586565;
  --line: #d9e2df;
  --paper: #fbfcfa;
  --soft: #eef5f2;
  --teal: #0b6b64;
  --teal-dark: #074d49;
  --gold: #c48a1c;
  --rose: #9b4150;
  --blue: #315e83;
  --white: #ffffff;
  --shadow: 0 16px 48px rgba(24, 36, 36, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--teal-dark);
  text-decoration-color: rgba(11, 107, 100, 0.3);
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 250, 0.94);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 780;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--teal);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #10211f;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 24, 22, 0.88) 0%, rgba(9, 24, 22, 0.56) 42%, rgba(9, 24, 22, 0.12) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 96px 24px 56px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: #d4e8e4;
  font-size: 0.83rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
}

h3 {
  font-size: 1.12rem;
}

.hero-copy {
  max-width: 670px;
  margin: 22px 0 0;
  color: #eef8f5;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.button.light {
  color: var(--teal-dark);
  background: var(--white);
  border-color: var(--line);
}

.band,
.content-page {
  padding: 68px 24px;
}

.band.alt {
  background: var(--soft);
}

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-head p,
.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.06rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(24, 36, 36, 0.03);
}

.card.featured {
  border-color: rgba(11, 107, 100, 0.35);
  box-shadow: var(--shadow);
}

.card p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.tag,
.source-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: var(--soft);
  font-size: 0.78rem;
  font-weight: 720;
}

.topic-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.topic-icon.gold {
  background: var(--gold);
}

.topic-icon.rose {
  background: var(--rose);
}

.topic-icon.blue {
  background: var(--blue);
}

.search-panel {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.library-search {
  border-color: var(--line);
  background: var(--soft);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 18px 24px;
  background: var(--paper);
}

.trust-strip strong {
  display: block;
  margin-bottom: 4px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  text-decoration: none;
}

.article-row:hover {
  border-color: rgba(11, 107, 100, 0.45);
}

.article-row p {
  margin: 6px 0 0;
  color: var(--muted);
}

.related-guides {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.related-guides > p {
  color: var(--muted);
}

.related-list {
  margin-top: 16px;
}

.source-card-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.source-card {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}

.source-card h3 {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.source-card p {
  margin: 6px 0 0;
}

.page-title {
  padding: 76px 24px 42px;
  background: var(--soft);
}

.page-title .wrap {
  display: grid;
  gap: 18px;
}

.page-title h1 {
  max-width: 940px;
  font-size: clamp(2rem, 3.8vw, 3.45rem);
  line-height: 1.08;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
}

.article-body {
  max-width: 760px;
}

.article-body p,
.article-body li {
  color: #344241;
}

.article-body h2,
.article-body h3 {
  margin-top: 34px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-body th,
.article-body td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--soft);
}

.note {
  border-left: 4px solid var(--gold);
  padding: 16px 18px;
  background: #fff8eb;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 88px;
}

.source-list {
  padding-left: 18px;
}

.source-list li {
  margin-bottom: 10px;
}

.site-footer {
  padding: 38px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.site-footer .nav-links {
  max-width: 780px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .site-footer .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 700px;
  }

  .hero::after {
    background: rgba(9, 24, 22, 0.72);
  }

  .grid.cards,
  .grid.two,
  .content-grid,
  .trust-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .search-panel,
  .article-row,
  .source-card {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}
