:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #657084;
  --line: #dbe3ea;
  --brand: #126b6f;
  --brand-dark: #0d4b4e;
  --accent: #f3b340;
  --soft: #e9f5f5;
  --max: 1380px;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--brand-dark);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  width: auto;
  height: 34px;
  object-fit: contain;
}

.site-footer .brand-logo img {
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(520px, 1.15fr);
  gap: 38px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 28px 38px;
}

.hero-copy h1,
.page-intro h1,
.content-page h1 {
  margin: 8px 0 18px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.08;
}

.hero-copy p,
.page-intro p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 28px;
}

.button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary,
.filter-button {
  background: var(--surface);
  color: var(--brand);
}

.filter-button.active {
  background: var(--brand);
  color: #fff;
}

.section,
.page-shell,
.content-page,
.article-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading h2,
.newsletter-strip h2,
.sidebar-box h2 {
  margin: 6px 0 0;
  line-height: 1.2;
}

.topic-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.topic-card,
.post-card,
.sidebar-box,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.topic-card {
  padding: 22px;
  text-decoration: none;
}

.topic-card span {
  display: block;
  color: var(--brand-dark);
  font-weight: 800;
}

.topic-card p,
.post-card p,
.sidebar-box p,
.content-page p,
.content-page li {
  color: var(--muted);
}

.post-card {
  overflow: hidden;
}

.post-card img,
.post-list-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

.post-card-body,
.post-list-body {
  padding: 24px 28px;
}

.post-card h3,
.post-list-item h2 {
  margin: 10px 0 12px;
  line-height: 1.28;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.read-link {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.newsletter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 28px auto 54px;
  padding: 30px 20px;
  border-block: 1px solid var(--line);
}

.page-intro {
  margin-bottom: 28px;
}

.layout,
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.post-list {
  display: grid;
  gap: 24px;
}

.post-list-item {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.sidebar {
  display: grid;
  gap: 18px;
}

.sidebar-box {
  padding: 20px;
}

.category-list,
.toc,
.related-list {
  display: grid;
  gap: 10px;
}

.category-list a,
.toc a,
.related-list a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(22px, 4vw, 46px);
}

.article h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
}

.article h2 {
  margin-top: 34px;
  line-height: 1.25;
}

.article p,
.article li {
  color: #3f4a5c;
  font-size: 1.05rem;
}

.article .featured-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 8px;
  margin: 24px 0;
}

.note-box,
.faq-item {
  margin: 18px 0;
  padding: 18px;
  border-left: 4px solid var(--brand);
  background: var(--soft);
}

.faq-item h3 {
  margin: 0 0 8px;
}

.content-page {
  max-width: 960px;
}

.content-page h2 {
  margin-top: 30px;
}

.contact-card {
  display: grid;
  gap: 6px;
  max-width: 420px;
  padding: 18px;
}

.contact-card a {
  color: var(--brand);
  font-weight: 800;
}

.site-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(20px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: end;
}

.split-section,
.resource-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: start;
}

.split-section h2,
.resource-section h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.14;
}

.rich-copy p,
.resource-copy p,
.guide-card p,
.standards-grid p {
  color: var(--muted);
  font-size: 1.05rem;
}

.guide-grid,
.standards-grid {
  display: grid;
  gap: 16px;
}

.guide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.standards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card,
.standards-grid > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.guide-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  font-weight: 800;
}

.guide-card h3,
.standards-grid h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

.editorial-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resource-section {
  align-items: center;
}

.resource-list {
  display: grid;
  gap: 12px;
}

.resource-list div {
  padding: 18px;
  border-left: 4px solid var(--brand);
  background: var(--surface);
  color: var(--muted);
}

.resource-list strong {
  color: var(--ink);
}

.newsletter-strip p {
  margin: 6px 0 0;
  color: var(--muted);
}
@media (max-width: 900px) {
  .hero,
  .layout,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .topic-grid,
  .post-grid,
  .guide-grid,
  .standards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .resource-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .article-sidebar {
    order: -1;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 30px;
  }

  .topic-grid,
  .post-grid,
  .guide-grid,
  .standards-grid,
  .post-list-item {
    grid-template-columns: 1fr;
  }

  .post-list-body {
    padding: 20px;
  }

  .newsletter-strip,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer nav {
    justify-content: start;
  }
}
