/* Visual layer for the HCGM entry page. Shared child-page styles live in site.css. */
:root {
  --paper: #f5f3ec;
  --ink: #172b23;
  --muted: #53645b;
  --line: #d9e0d8;
  --pine: #175a42;
  --pine-dark: #103e2f;
  --pine-soft: #e8f0e9;
}

body {
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
}

.topbar {
  border-color: rgba(42, 69, 55, .12);
  background: rgba(245, 243, 236, .96);
}

.topbar-inner { min-height: 68px; }
.brand-mark { border-radius: 10px; }
.global-nav a { font-weight: 650; }

main > section,
.footer-inner { width: min(1120px, calc(100% - 64px)); }

.hero {
  min-height: 0;
  padding: clamp(66px, 8vw, 100px) 0 70px;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, .72fr);
  gap: clamp(44px, 7vw, 90px);
  align-items: center;
}

.eyebrow,
.card-kicker {
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: .08em;
}

.hero h1 {
  font-size: clamp(42px, 4.3vw, 60px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.hero-lead {
  max-width: 620px;
  margin-top: 25px;
  color: #364a40;
  font-size: 17px;
  line-height: 1.9;
}

.hero-boundary {
  max-width: 620px;
  margin-top: 22px;
  border-top: 1px solid #d4ddd4;
  border-bottom: 1px solid #d4ddd4;
}

.hero-boundary summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  color: var(--pine);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.hero-boundary summary::-webkit-details-marker { display: none; }
.hero-boundary summary::after { content: "+"; font-size: 19px; font-weight: 400; line-height: 1; }
.hero-boundary[open] summary::after { content: "−"; }
.hero-boundary .hero-note { margin: 0 0 15px; font-size: 13px; line-height: 1.8; }

.hero-actions { margin-top: 24px; gap: 10px; }
.button { min-height: 43px; border-radius: 7px; font-size: 13px; font-weight: 700; }
.button.primary { box-shadow: none; }
.button.secondary { background: rgba(255, 255, 255, .52); }

.mechanism-card {
  padding: clamp(24px, 3vw, 35px);
  border: 1px solid #d9e1d7;
  border-radius: 12px;
  background: #eef1e9;
  box-shadow: none;
}
.hero-formula { padding: 10px 0 19px; font-size: clamp(21px, 2vw, 28px); }
.role-list { gap: 0 18px; }
.role-list > div {
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 11px 0;
  border: 0;
  border-top: 1px solid #d4dfd4;
  border-radius: 0;
  background: transparent;
}
.role-list span { font-size: 12px; }
.focus-strip { margin-top: 13px; padding: 13px 15px; border-radius: 7px; background: #dfeae0; }
.focus-strip span { font-size: 10px; letter-spacing: .04em; }
.focus-strip strong { font-size: 13px; }

.first-visit {
  padding: clamp(26px, 3vw, 34px);
  border: 0;
  border-radius: 12px;
  background: #17362b;
  box-shadow: none;
}
.first-visit-head > span { letter-spacing: .06em; }
.first-visit h2 { font-size: clamp(24px, 2.7vw, 34px); font-weight: 500; }
.reading-path { margin-top: 27px; }
.step-number { width: 32px; height: 32px; }
.reading-path li { grid-template-columns: 32px minmax(0, 1fr); }
.reading-path p { line-height: 1.7; }

.section { padding-top: clamp(76px, 8vw, 105px); }
.section-heading,
.research-intro,
.connection-intro { gap: 45px; margin-bottom: 30px; }
.section-heading h2,
.research-intro h2,
.connection-intro h2 {
  font-size: clamp(31px, 3.5vw, 43px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.idea-card,
.paper-card,
.example-card,
.document-card,
.connection-card {
  min-height: 0;
  border-color: #dbe1d9;
  border-radius: 10px;
  box-shadow: none;
}
.idea-card,
.paper-card,
.example-card,
.connection-card { padding: 26px; }
.idea-card.featured,
.document-card.start-here { border-color: #c8dbcc; background: #edf3ed; }
.document-card.review-overview,
.document-card.bridge-overview { min-height: 0; border-color: #dbe1d9; background: rgba(255, 255, 255, .7); }
.document-card { padding: clamp(26px, 3vw, 34px); }
.document-card h3 { margin-top: 8px; font-size: clamp(24px, 2.5vw, 31px); }
.document-number,
.document-card.bridge-overview .document-number {
  position: static;
  margin: 22px 0 0;
  color: #90a79a !important;
  font-family: Georgia, serif;
  font-size: 15px !important;
  font-weight: 500;
}
.document-card ul { margin: 20px 0 22px; }
.idea-card h3,
.paper-card h3,
.example-card h3,
.connection-card h3 { font-size: 23px; font-weight: 550; line-height: 1.3; }
.idea-card p,
.paper-card > p,
.example-card > p,
.document-card > p,
.document-card li,
.connection-card p { line-height: 1.75; }
.compact-formula { border-radius: 7px; background: #f3f5f0; }
.paper-actions { padding-top: 18px; }
.paper-card .paper-actions { margin-top: auto; }
.connection-card.knowledge { background: #edf3ed; }
.connection-card:hover { box-shadow: none; }
.evidence-boundary { border-radius: 0 6px 6px 0; }
.maintenance-panel { border-radius: 10px; }
.legacy-note { border-radius: 10px; }
.footer { background: #e8ede5; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 38px; }
  .mechanism-card { width: 100%; max-width: 620px; }
  .reading-path li { padding: 18px 0; }
}

@media (max-width: 760px) {
  .topbar-inner { min-height: 0; }
  main > section,
  .footer-inner { width: min(100% - 40px, 1120px); }
  .hero { padding: 55px 0 45px; gap: 32px; }
  .hero h1 { font-size: clamp(35px, 9vw, 48px); }
  .hero-line { white-space: nowrap; }
  .hero-lead { margin-top: 20px; font-size: 16px; }
  .hero-actions .button { width: auto; }
  .mechanism-card { padding: 24px; }
  .role-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-top: 72px; }
  .section-heading h2,
  .research-intro h2,
  .connection-intro h2 { font-size: 30px; }
  .document-card { padding: 24px; }
  .document-card h3 { margin-top: 8px; font-size: 25px; }
  .idea-card,
  .paper-card,
  .example-card,
  .connection-card { padding: 23px; }
  .research-section { padding-bottom: 72px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 32px; }
  .hero-actions .button { width: 100%; }
}

/* Section titles already name the destination; omit duplicate eyebrow labels. */
.section .eyebrow { display: none; }
