* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --paper: #ffffff;
  --paper-warm: #f5f1ea;
  --ink: #172033;
  --muted: #5f6977;
  --line: #e3ded6;
  --accent: #1b6f5f;
  --accent-strong: #0f4f45;
  --accent-soft: #e4f2ee;
  --gold: #b7791f;
  --cta: #173b57;
  --cta-hover: #0d2c43;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 241, 234, 0.65), rgba(251, 250, 247, 0));
  height: 220px;
}

a {
  color: var(--accent-strong);
}

a:hover {
  color: var(--accent);
}

.page {
  position: relative;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.page--article {
  width: min(940px, calc(100% - 28px));
}

.page--blog {
  width: min(1160px, calc(100% - 32px));
}

.site-menu {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.06);
}

.site-menu-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
}

.site-menu-brand img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(27, 111, 95, 0.14));
}

.site-menu-brand span {
  display: grid;
  gap: 2px;
}

.site-menu-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.15;
}

.site-menu-brand small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.site-menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.site-menu-links a,
.site-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.site-menu-cta {
  border-color: var(--cta);
  background: var(--cta);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(23, 59, 87, 0.14);
}

.site-menu-links a.is-active {
  background: var(--accent-soft);
  border-color: rgba(27, 111, 95, 0.28);
}

.site-menu-links a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.site-menu-cta:hover {
  background: var(--cta-hover);
  color: #ffffff;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 14px 0 18px;
  font-size: 36px;
  text-wrap: balance;
}

h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  font-size: 26px;
  text-wrap: balance;
}

h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

p,
li {
  color: var(--muted);
  font-size: 18px;
}

.lead {
  max-width: 840px;
  color: #344054;
  font-size: 19px;
  font-weight: 650;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.nav a,
.cta,
.text-link {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 13px;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav a,
.text-link {
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.nav a:hover,
.text-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 18px;
  border-color: var(--cta);
  background: var(--cta);
  color: #ffffff;
  line-height: 1.1;
  box-shadow: 0 12px 24px rgba(23, 59, 87, 0.16);
}

.cta:hover {
  color: #ffffff;
  background: var(--cta-hover);
}

.text-link {
  border-color: transparent;
  padding-inline: 0;
  background: transparent;
  color: var(--accent-strong);
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.panel--featured {
  position: relative;
  overflow: hidden;
}

.panel--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(228, 242, 238, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.panel--featured-large {
  grid-column: auto;
}

.panel h2 {
  margin-top: 10px;
  font-size: 22px;
}

.panel h2 a {
  color: var(--ink);
  text-decoration: none;
}

.panel h2 a:hover {
  color: var(--accent-strong);
}

.panel p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.65;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.card-badge {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
}

.post-meta {
  margin: 0;
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.blog-hero,
.article-hero {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ef 100%);
  box-shadow: var(--shadow);
}

.blog-hero {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.blog-hero-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--paper);
}

.blog-hero-card {
  display: grid;
  gap: 16px;
  align-content: flex-start;
}

.quick-menu {
  display: grid;
  gap: 10px;
}

.quick-menu a {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
}

.quick-menu a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.quick-menu strong {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.25;
}

.quick-menu span {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 28px;
  align-items: center;
}

.topic-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.topic-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.topic-nav a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.blog-grid {
  margin-top: 24px;
}

.content-card-grid {
  margin-top: 24px;
}

.support-guides {
  margin-top: 42px;
}

.support-grid {
  margin-top: 16px;
}

.panel--guide {
  background: #fffdf8;
}

.blog-footer-cta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 42px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--accent-soft);
}

.blog-footer-cta h2 {
  max-width: 760px;
  margin-top: 10px;
}

.article-hero {
  display: block;
  grid-template-columns: 1fr;
}

.article-hero--simple {
  display: block;
}

.article-hero h1 {
  margin-top: 12px;
}

.article-hero-copy {
  min-width: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-body {
  width: min(100%, 740px);
  margin: 0 auto;
  padding-top: 14px;
}

.article-body p,
.article-body li {
  max-width: 68ch;
  line-height: 1.78;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body h2 {
  margin-top: 38px;
}

.article-body a {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.article-body a.cta,
.article-body a.cta:hover {
  color: #ffffff;
}

.guide-value-box {
  margin: 4px 0 28px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.guide-value-box .article-list {
  margin-top: 10px;
  padding-left: 18px;
}

.guide-value-box .article-list li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.55;
}

.article-list,
.article-list--compact {
  margin: 0;
  padding-left: 20px;
}

.article-list li,
.article-list--compact li {
  margin-bottom: 8px;
}

.article-list--compact li {
  font-size: 15px;
}

.inline-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 34px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-warm);
}

.inline-cta-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.inline-cta p {
  margin-bottom: 0;
  max-width: 620px;
}

.inline-cta .cta {
  min-width: 0;
  max-width: 100%;
  padding-right: 22px;
  padding-left: 22px;
  text-align: center;
  white-space: normal;
}

.inline-cta--end {
  margin-top: 34px;
}

.guide-body {
  margin-top: 10px;
}

.guide-section {
  margin-top: 26px;
}

.related {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin-top: 10px;
}

.related-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.related-list--compact {
  margin-top: 16px;
}

.related-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 111, 95, 0.26);
  box-shadow: var(--shadow);
}

.related-card strong {
  font-size: 18px;
  line-height: 1.28;
}

.related-card small {
  color: var(--muted);
  font-size: 13px;
}

.article-flow-section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.section-heading--flow {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.section-heading--flow h2 {
  margin: 0;
  font-size: 24px;
}

.flow-all-link {
  justify-self: start;
  color: var(--accent-strong);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.flow-all-link:hover {
  color: var(--accent);
}

.article-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.flow-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
}

.flow-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.flow-card span {
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.flow-card strong {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

.related-tag {
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.note {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.article-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0 0;
  color: #667085;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 860px) {
  .page {
    padding-top: 42px;
    padding-bottom: 60px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 32px;
  }

  .site-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
  }

  .site-menu-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .blog-hero {
    display: block;
  }

  .topic-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .article-hero {
    display: block;
  }

  .article-hero--simple {
    display: block;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-card-grid,
  .related-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel--featured-large {
    grid-column: span 2;
  }
}

@media (min-width: 1080px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page,
  .page--article,
  .page--blog {
    width: min(100% - 20px, 1120px);
    padding-top: 26px;
    padding-bottom: 38px;
  }

  .blog-hero,
  .article-hero,
  .blog-footer-cta,
  .inline-cta {
    padding: 20px;
  }

  .blog-grid,
  .support-grid,
  .content-card-grid,
  .article-flow,
  .related-list {
    grid-template-columns: 1fr;
  }

  .panel--featured-large {
    grid-column: auto;
  }

  .inline-cta,
  .blog-footer-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .inline-cta {
    grid-template-columns: 1fr;
  }

  .inline-cta .cta,
  .blog-footer-cta .cta {
    width: 100%;
  }

  .nav {
    gap: 10px;
  }

  .nav a,
  .text-link {
    padding: 10px 12px;
  }

  .card-topline {
    align-items: center;
    flex-direction: row;
  }
}
