:root {
  --bg: #f6f2e9;
  --ink: #171717;
  --muted: #5f5c55;
  --line: #d8d0c1;
  --panel: #fffdf8;
  --accent: #136f63;
  --accent-dark: #0b4039;
  --gold: #c58b23;
  --blue: #244c9a;
  --shadow: 0 18px 45px rgba(36, 30, 20, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(246, 242, 233, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0b4039, #136f63);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a,
.site-footer a,
.back-link {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: 78vh;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 64px);
  max-width: 100%;
}

.hero__copy,
.hero-panel,
.directory,
.content-links,
.standards,
.content-page,
.tool-detail {
  min-width: 0;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero p {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.hero-panel div {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-number {
  display: block;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.strategy-strip,
.directory,
.standards,
.content-links,
.content-page,
.tool-detail {
  padding: clamp(46px, 7vw, 88px) clamp(18px, 5vw, 64px);
}

.strategy-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--accent-dark);
  color: #fff;
}

.strategy-strip div {
  padding: 30px;
  background: rgba(255, 255, 255, 0.06);
}

.strategy-strip h2,
.section-heading h2,
.content-page h1,
.tool-detail h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.strategy-strip p {
  color: rgba(255, 255, 255, 0.78);
}

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

.section-heading h2,
.content-page h1,
.tool-detail h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.section-heading p {
  max-width: 620px;
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

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

.tool-card,
.link-card,
.timeline article,
.research-list article,
.detail-grid article {
  min-width: 0;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(36, 30, 20, 0.08);
}

.tool-card[hidden] {
  display: none;
}

.tool-card__top,
.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-stage {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fit {
  margin: 0;
  min-width: 88px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.04);
}

.fit-high,
.fit-critical {
  color: #063b34;
  background: #eef8f4;
  border: 1px solid #23806f;
}

.fit-medium {
  color: #4a3510;
  background: #fff6df;
  border: 1px solid #c58b23;
}

.fit-low {
  color: #3f2c0c;
  background: #fff1d0;
  border: 1px solid #d29a38;
}

.tool-card h3 {
  margin: 18px 0 10px;
  font-size: 23px;
  line-height: 1.15;
}

.tool-card h3 a,
.link-card h3 a {
  text-decoration: none;
}

.tool-card p,
.link-card p,
.timeline p,
.research-list p,
.detail-grid p,
.content-page p,
.content-page li {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tool-meta {
  min-width: 0;
  align-items: start;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.link-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.15;
}

.editor-note {
  margin-top: 36px;
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: rgba(197, 139, 35, 0.08);
}

.guide-body {
  display: grid;
  gap: 10px;
}

.guide-section {
  max-width: 920px;
}

.guide-shot {
  overflow: hidden;
  margin: 24px 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(36, 30, 20, 0.08);
}

.guide-shot img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: top left;
  background: #fff;
}

.guide-shot figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
}

.timeline,
.research-list,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.content-page,
.tool-detail {
  width: min(1120px, calc(100vw - 48px));
  max-width: 1120px;
  margin: 0 auto;
}

.content-page h2,
.tool-detail h2 {
  margin-top: 42px;
  font-size: 28px;
  line-height: 1.15;
}

.research-list h3,
.detail-grid h2 {
  margin-top: 0;
}

.tool-detail__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  margin-top: 20px;
  margin-bottom: 28px;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.source-strip a {
  color: var(--accent);
  text-decoration: none;
}

.evidence-shot {
  margin: 0 0 28px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.evidence-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.evidence-shot figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
}

.back-link {
  color: var(--accent);
  font-weight: 800;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header,
  .section-heading,
  .tool-detail__header,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .hero,
  .strategy-strip,
  .filters,
  .tool-grid,
  .link-grid,
  .timeline,
  .research-list,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 24px;
  }

  .content-page,
  .tool-detail {
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
    max-width: 100%;
  }

  .content-page h1,
  .tool-detail h1 {
    font-size: 36px;
    line-height: 1.08;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 14px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .content-page h1,
  .tool-detail h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero__copy,
  .hero-actions,
  .hero-panel,
  .hero h1,
  .hero p {
    width: min(318px, 100%);
    max-width: min(318px, 100%);
  }

  .button {
    width: min(318px, 100%);
    max-width: min(318px, 100%);
  }

  .hero,
  .strategy-strip,
  .directory,
  .content-links,
  .standards,
  .content-page,
  .tool-detail {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-panel div,
  .tool-card,
  .timeline article,
  .research-list article,
  .detail-grid article {
    padding: 18px;
  }
}
