:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-soft: #eef4ef;
  --ink: #1e2621;
  --muted: #66736a;
  --line: #dfe7df;
  --accent: #1f7a5c;
  --accent-dark: #155640;
  --accent-soft: #dff1e8;
  --blue: #285c8f;
  --shadow: 0 16px 40px rgba(28, 45, 35, 0.09);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

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

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #304039;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--accent);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  padding: 54px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
  margin: 0 0 12px;
}

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

h1 {
  font-size: clamp(34px, 4.3vw, 58px);
  margin: 0 0 18px;
}

h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 0 0 14px;
}

h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.lead {
  color: #435047;
  font-size: 17px;
  max-width: 700px;
  margin: 0 0 24px;
}

.search-box {
  display: flex;
  gap: 10px;
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.button.secondary {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.hero-panel {
  background: #183a2d;
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.hero-panel p {
  color: #d9ebe2;
}

.metrics {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.metric {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.metric strong {
  display: block;
  font-size: 24px;
}

.section {
  padding: 36px 0;
}

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

.section-header p {
  margin: 0;
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(28, 45, 35, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.article-card__link {
  display: block;
  padding: 20px;
  min-height: 232px;
}

.article-card--compact .article-card__link {
  min-height: auto;
  padding: 16px;
}

.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.article-card p {
  color: #516057;
  margin: 0 0 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: block;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.category-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.category-card p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.note-panel,
.toc,
.author-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.note-panel {
  background: var(--surface-soft);
}

.toc {
  position: sticky;
  top: 82px;
}

.toc ul {
  margin: 0;
  padding-left: 20px;
}

.toc a {
  color: var(--muted);
  font-size: 14px;
}

.article-shell {
  padding: 34px 0 60px;
}

.article-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
}

.article-main h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.article-main h2 {
  margin-top: 44px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.article-main p,
.article-main li {
  color: #3f4d45;
}

.article-main a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.callout {
  background: #f7faf8;
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  overflow: hidden;
  border-radius: var(--radius);
}

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

.comparison th {
  background: var(--surface-soft);
}

.site-footer {
  margin-top: 40px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
}

.search-results {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.empty {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .toc {
    position: static;
  }
}

@media (max-width: 680px) {
  .header-inner {
    align-items: flex-start;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy,
  .hero-panel,
  .article-main {
    padding: 22px;
  }

  .article-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: block;
  }
}

/* Image-generation editorial layout. */
.hero-grid { display: block; }
.hero-copy { padding: 12px 0 24px; background: transparent; border: 0; box-shadow: none; max-width: 800px; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
.article-main h1 { font-size: 32px; }
.note-panel { background: transparent; border: 0; padding: 0; }
.search-results[hidden] { display: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #eef4ef; padding: 18px; }
.article-main, .two-column > *, .search-box input { min-width: 0; }
@media (max-width: 680px) {
 h1 { font-size: 30px; }
 h2 { font-size: 24px; }
 .article-main h1 { font-size: 28px; }
 .hero-copy { padding: 8px 0 16px; }
 .comparison { display: block; overflow-x: auto; }
}

/* Restrained publication identity and shared thumbnail format. */
:root { --bg: #f5f6f7; --surface-soft: #edf1f4; --ink: #202629; --muted: #657077; --line: #dce1e5; --accent: #176b70; --accent-dark: #13545a; --accent-soft: #e6f0f0; --shadow: 0 8px 24px rgba(20,30,35,.06); }
.brand { line-height: 1.4; }
.brand-mark { background: #252d31; flex-shrink: 0; border-radius: 3px; }
.hero { border-bottom: 1px solid var(--line); background: #fff; padding: 36px 0 20px; }
.hero-copy { max-width: 850px; }
.hero h1 { font-size: 42px; overflow-wrap: anywhere; }
.coverage { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 22px 0; font-size: 18px; font-weight: 700; }
.coverage span:nth-child(1) { color: #3458a1; }
.coverage span:nth-child(2) { color: #202629; }
.coverage span:nth-child(3) { color: #176b70; }
.coverage span:nth-child(n+4) { color: #606a71; font-size: 15px; align-self: center; }
.article-card { overflow: hidden; box-shadow: none; border-radius: 4px; }
.article-card__link, .article-card--compact .article-card__link { padding: 0; min-height: 0; }
.article-card__body { padding: 20px; }
.article-card__image, .article-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #e7eaec; }
.article-figure { margin: 24px 0; }
.article-main { border: 0; border-radius: 0; }
.search-box input:focus-visible { outline-offset: 0; }
.author-box { background: transparent; border: 0; border-left: 2px solid var(--line); border-radius: 0; }
@media (max-width: 900px) { .site-nav { gap: 10px; font-size: 12px; } }
@media (max-width: 680px) {
 .hero h1 { font-size: 32px; }
 .brand { font-size: 15px; }
 .brand small { font-size: 10px; }
 .coverage { gap: 8px 18px; font-size: 17px; }
 .hero { padding-top: 24px; }
 .author-box { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
}
