/* Genetics for the People: shared site styles
   Brand tokens live here. Change a color once and it updates everywhere.
   Header/footer classes start with "gs-" so they never collide with the
   inline styles inside the gene report forms. */

:root {
  --forest: #1e4d2b;      /* deep green: headers, buttons */
  --green: #2a6e42;       /* logo green: links, accents */
  --sage: #8fae8b;        /* soft accent */
  --sage-light: #e2ebe4;  /* tints, borders */
  --cream: #f7f5f0;       /* page background */
  --paper: #ffffff;       /* cards */
  --terracotta: #b85c38;  /* highlight: prices, call-outs */
  --clay: #8f4426;        /* darker terracotta: text-safe on white */
  --ink: #1a1a1a;
  --ink-soft: #4a5a4d;
  --line: #dde8df;
  --radius: 12px;
  --max: 1080px;
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Base (only applies on site pages, not inside report forms) ---------- */
body.gs-page {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
.gs-page *, .gs-page *::before, .gs-page *::after { box-sizing: border-box; }
.gs-page img { max-width: 100%; height: auto; }
.gs-page h1, .gs-page h2, .gs-page h3 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 .5em;
}
.gs-page h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.gs-page h2 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); margin-top: 1.6em; }
.gs-page h3 { font-size: 1.2rem; }
.gs-page p { margin: 0 0 1em; }
.gs-page a { color: var(--green); text-underline-offset: 3px; }
.gs-page a:hover { color: var(--forest); }

.gs-wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.gs-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.gs-section { padding: 56px 0; }
.gs-section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gs-eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); font-weight: 700; margin-bottom: .6em;
}
.gs-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }

/* Buttons */
.gs-btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: var(--forest); color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: 1rem; line-height: 1.2; border: 2px solid var(--forest);
  min-height: 48px; /* comfortable thumb target */
}
.gs-btn:hover { background: var(--green); border-color: var(--green); }
.gs-btn.ghost { background: transparent; color: var(--forest) !important; }
.gs-btn.ghost:hover { background: var(--sage-light); }
.gs-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }

/* Hero */
.gs-hero { padding: 64px 0 48px; }
.gs-hero h1 { max-width: 16em; }
.gs-tagline { font-family: var(--font-display); font-style: italic; color: var(--terracotta); font-size: 1.15rem; }

/* Cards / grids */
.gs-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gs-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; display: flex; flex-direction: column;
}
.gs-card h3 { margin-bottom: .35em; }
.gs-card p { font-size: .98rem; color: var(--ink-soft); flex: 1; }
.gs-card .gs-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.gs-price { color: var(--clay); font-weight: 700; }
.gs-card a.gs-cardlink { font-weight: 700; text-decoration: none; }
.gs-card.feature { border-left: 4px solid var(--terracotta); }

.gs-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.gs-steps li { counter-increment: s; position: relative; padding-left: 52px; }
.gs-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px;
  border-radius: 50%; background: var(--sage-light); color: var(--forest);
  font-weight: 700; display: grid; place-items: center;
}

.gs-note {
  background: var(--sage-light); border-radius: var(--radius); padding: 16px 20px;
  font-size: .95rem; color: var(--ink-soft);
}

/* Blog */
.gs-postlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.gs-postlist li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.gs-postlist a { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; text-decoration: none; }
.gs-postlist .gs-date { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }
.gs-article { padding: 40px 0 64px; }
.gs-article .gs-date { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.5em; display: block; }
.gs-article img { border-radius: var(--radius); }
.gs-article ul, .gs-article ol { padding-left: 1.3em; }
.gs-article li { margin-bottom: .35em; }
.gs-article table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.gs-article th, .gs-article td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* ---------- Header (used on every page, including report forms) ---------- */
.gs-header {
  background: var(--paper); border-bottom: 1px solid var(--line);
  font-family: var(--font-body); position: relative; z-index: 50;
}
.gs-header .gs-bar {
  max-width: var(--max); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.gs-logo { display: inline-flex; align-items: center; line-height: 0; }
.gs-logo img { height: 46px; width: auto; display: block; }
.gs-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.gs-nav a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--forest);
  text-decoration: none; font-size: 16px; font-weight: 600; line-height: 1.2;
}
.gs-nav a:hover, .gs-nav a[aria-current="page"] { background: var(--sage-light); }
.gs-nav a.gs-ext { color: var(--clay); }
.gs-nav a.gs-cta { background: var(--forest); color: #fff; margin-left: 6px; border-radius: 999px; padding: 10px 18px; }
.gs-nav a.gs-cta:hover { background: var(--green); }
.gs-menu-btn {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; font: 600 16px var(--font-body); color: var(--forest); cursor: pointer;
  min-height: 44px; margin: 0;
}

/* Phone layout for the header */
@media (max-width: 860px) {
  .gs-menu-btn { display: inline-block; }
  .gs-logo img { height: 40px; }
  .js .gs-nav { display: none; }
  .js .gs-nav.open { display: block; }
  .gs-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
  .gs-nav ul { flex-direction: column; align-items: stretch; padding: 8px 12px 14px; gap: 2px; }
  .gs-nav a { padding: 14px 12px; font-size: 17px; }
  .gs-nav a.gs-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Footer ---------- */
.gs-footer {
  background: var(--forest); color: #dfeadf; font-family: var(--font-body);
  font-size: 15px; line-height: 1.6; margin-top: 0;
}
.gs-footer .gs-cols {
  max-width: var(--max); margin: 0 auto; padding: 40px 20px 24px;
  display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr;
}
.gs-footer img { height: 54px; width: auto; display: block; margin-bottom: 10px; }
.gs-footer h4 { color: #fff; font: 700 13px var(--font-body); letter-spacing: .1em; text-transform: uppercase; margin: 4px 0 10px; }
.gs-footer ul { list-style: none; margin: 0; padding: 0; }
.gs-footer li { margin: 0 0 6px; }
.gs-footer a { color: #fff; text-decoration: none; }
.gs-footer a:hover { text-decoration: underline; }
.gs-footer .gs-tag { font-family: var(--font-display); font-style: italic; color: #c8e6c9; margin: 0 0 8px; }
.gs-footer .gs-fine {
  max-width: var(--max); margin: 0 auto; padding: 16px 20px 28px; border-top: 1px solid rgba(255,255,255,.15);
  font-size: 13px; color: #b9cdb9;
}
.gs-footer p { margin: 0 0 8px; }
@media (max-width: 760px) { .gs-footer .gs-cols { grid-template-columns: 1fr; } }

/* Small screens: general spacing */
@media (max-width: 600px) {
  body.gs-page { font-size: 17px; }
  .gs-section { padding: 40px 0; }
  .gs-hero { padding: 40px 0 32px; }
  .gs-btn-row .gs-btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- Simple home + list rows (Field Guide) ---------- */
.gs-doors { flex: 1 1 340px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px; }
.gs-doors a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 16px; border-bottom: 1px solid var(--sage-light); text-decoration: none; }
.gs-doors a:last-child { border-bottom: 0; }
.gs-doors strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--forest); }
.gs-doors span span { color: var(--ink-soft); font-size: .95rem; }
.gs-doors .gs-arrow { color: var(--clay); font-size: 1.4rem; }
.gs-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.gs-split > .gs-split-main { flex: 1 1 400px; }

.gs-rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.gs-rows a { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; padding: 16px 4px; border-top: 1px solid var(--sage-light); text-decoration: none; color: var(--ink); }
.gs-rows li:last-child a { border-bottom: 1px solid var(--sage-light); }
.gs-rows a:hover { background: var(--cream); }
.gs-rows .gs-row-name { flex: 1 1 260px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--forest); }
.gs-rows .gs-row-desc { flex: 2 1 300px; color: var(--ink-soft); font-size: 1rem; }
.gs-rows .gs-row-price { font-weight: 700; color: var(--clay); }

.gs-band { background: var(--forest); color: #e6efe6; border-radius: 18px; padding: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.gs-band h2 { color: #fff !important; margin: 0 0 8px !important; }
.gs-band p { margin: 0; }
.gs-btn.light { background: #fff; color: var(--forest) !important; border-color: #fff; }
.gs-btn.light:hover { background: var(--sage-light); }
.gs-btn.outline-light { background: transparent; border-color: #fff; }
.gs-btn.outline-light:hover { background: rgba(255,255,255,.12); }
@media (max-width: 600px) { .gs-band { padding: 26px 22px; } }

/* Coming soon rows: not clickable, muted */
.gs-rows .gs-row { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; padding: 16px 4px; border-top: 1px solid var(--sage-light); }
.gs-rows li:last-child .gs-row { border-bottom: 1px solid var(--sage-light); }
.gs-rows-soon .gs-row-name { color: var(--ink-soft); }
.gs-rows .gs-row-soon { font-size: .85rem; font-weight: 700; color: var(--ink-soft); background: var(--sage-light); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
