/* =========================================================
   Warm + Modern (matches your zip HTML classes exactly)
   ========================================================= */

:root{
  /* warmth */
  --page: #f6f3ee;      /* warm background */
  --paper: #fffdf9;     /* warm card */
  --paper2:#fbf6ee;     /* warm section alt */

  /* type */
  --text: #17212b;
  --muted: #4a5b66;

  /* accents (controlled) */
  --teal: #0f766e;
  --teal2:#115e59;
  --amber:#b45309;

  /* UI */
  --border: rgba(17,24,39,.10);
  --softBorder: rgba(17,24,39,.07);
  --shadow: 0 16px 40px rgba(16,24,40,.10);
  --shadow2: 0 10px 22px rgba(16,24,40,.08);

  --radius: 16px;
  --radius2: 22px;

  --max: 980px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--page);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}

img{max-width:100%;height:auto;display:block}

a{color: var(--teal); text-decoration: none}
a:hover{text-decoration: underline}

/* =========================================================
   Global layout helpers used by your HTML
   ========================================================= */

main{
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 18px 70px;
}

.section{
  margin: 30px 0;
}

.section__inner{
  /* keep consistent width even if main changes later */
}

.section__head{
  margin-bottom: 16px;
}

.section__head p{
  max-width: 78ch;
}

.section--alt{
  background: var(--paper2);
  border: 1px solid var(--softBorder);
  border-radius: var(--radius2);
  padding: 26px;
  box-shadow: var(--shadow2);
}

/* =========================================================
   Header (.mast)
   ========================================================= */

.mast{
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 18px;
  border-bottom: 1px solid var(--softBorder);
}

.mast__inner{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand__badge{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: linear-gradient(90deg, var(--teal), var(--teal2));
  color:#fff;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(16,24,40,.10);
}

.brand__name{
  font-weight: 900;
  letter-spacing: -0.2px;
}

.brand__sub{
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.mast__nav{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

.mast__nav a{
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text);
  background: rgba(255,255,255,.35);
}

.mast__nav a:hover{
  border-color: var(--softBorder);
  background: rgba(255,255,255,.65);
}

.mast__nav .navCta{
  background: rgba(15,118,110,.10);
  border-color: rgba(15,118,110,.20);
  color: var(--teal2);
  font-weight: 850;
}

/* =========================================================
   Typography
   ========================================================= */

h1{
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
}

h2{
  font-size: 22px;
  letter-spacing: -0.25px;
  margin: 0 0 10px;
}

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

p{
  margin: 0 0 14px;
  color: var(--muted);
}

strong{color: var(--text)}

/* =========================================================
   Hero
   ========================================================= */

.hero{
  margin-top: 18px;
  position: relative;
}

.hero__inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items:start;
}

@media (max-width: 980px){
  .hero__inner{grid-template-columns: 1fr}
}

.hero__copy{
  background: var(--paper);
  border: 1px solid var(--softBorder);
  border-radius: var(--radius2);
  padding: 26px;
  box-shadow: var(--shadow);
}

.hero__panel{
  background: rgba(15,118,110,.08);
  border: 1px solid rgba(15,118,110,.18);
  border-radius: var(--radius2);
  padding: 22px;
  box-shadow: var(--shadow2);
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15,118,110,.10);
  border: 1px solid rgba(15,118,110,.20);
  color: var(--teal2);
  font-weight: 850;
  font-size: 13px;
  margin-bottom: 12px;
}

.lead{
  margin-bottom: 18px;
  font-size: 16px;
}

/* meta cards inside hero */
.hero__meta{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 0;
}

@media (max-width: 720px){
  .hero__meta{grid-template-columns: 1fr}
}

.metaCard{
  background: rgba(255,255,255,.70);
  border: 1px solid var(--softBorder);
  border-radius: 16px;
  padding: 14px 14px;
}

.metaCard__title{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: none;
  margin-bottom: 4px;
}

.metaCard__value{
  color: var(--text);
  font-weight: 850;
  font-size: 14px;
  line-height: 1.4;
}

/* CTA row: cleaner + more spacing */
.hero__actions{
  display:flex;
  gap: 14px;
  flex-wrap:wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(15,118,110,.18);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--softBorder);
  background: rgba(255,255,255,.85);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  text-decoration:none;
  box-shadow: 0 8px 18px rgba(16,24,40,.06);
}

.btn:hover{
  background: rgba(255,255,255,.95);
}

.btn--primary{
  background: linear-gradient(90deg, var(--teal), var(--teal2));
  border-color: transparent;
  color: #fff;
  padding: 13px 20px;
  transition: filter .15s ease, transform .15s ease;
}

.btn--primary:hover{
transform: translateY(-1px);
 background: linear-gradient(
    90deg,
    var(--teal, var(--primary)),
    var(--teal2, var(--primary-dark))
  );
  color: #fff;
  filter: brightness(0.98);}
.btn--full{width:100%}

/* “Quick checks” list */
.check{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.check li{margin: 8px 0}

/* tighter check list used in seek section */
.check--tight li{margin: 6px 0}

/* Note box in hero panel */
.note{
  margin-top: 14px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,118,110,.16);
  border-radius: 16px;
  padding: 14px 14px;
}
.note p{margin:0}

/* decorative angles (your HTML includes .angle) */
.angle{
  height: 18px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15,118,110,.18), rgba(180,83,9,.12), rgba(15,118,110,.12));
  filter: blur(.2px);
  opacity: .9;
}
.angle--flip{
  transform: scaleX(-1);
}

/* =========================================================
   Timeline (your HTML: .timeline .tItem .tDot .tBody)
   ========================================================= */

.timeline{
  background: var(--paper);
  border: 1px solid var(--softBorder);
  border-radius: var(--radius2);
  padding: 18px 18px;
  box-shadow: var(--shadow2);
}

.tItem{
  display:grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 12px 6px;
  border-top: 1px solid rgba(17,24,39,.06);
}

.tItem:first-child{border-top:none}

.tDot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: rgba(15,118,110,.70);
  box-shadow: 0 0 0 6px rgba(15,118,110,.12);
}

.tDot--warn{
  background: rgba(180,83,9,.95);
  box-shadow: 0 0 0 6px rgba(180,83,9,.14);
}

.tBody h3{margin:0 0 4px}
.tBody p{margin:0}

/* =========================================================
   Cards grid (causes section)
   ========================================================= */

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 980px){
  .cards{grid-template-columns: 1fr}
}

.card{
  background: var(--paper);
  border: 1px solid var(--softBorder);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow2);
}

.icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(15,118,110,.10);
  border: 1px solid rgba(15,118,110,.18);
  margin-bottom: 10px;
  font-size: 20px;
}

.card p{margin: 0 0 10px}
.card p:last-child{margin-bottom: 0}

.muted{
  color: var(--muted);
  opacity: .95;
}

/* =========================================================
   Chronic signs grid (.grid2 + .signal)
   ========================================================= */

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 980px){
  .grid2{grid-template-columns:1fr}
}

.signal{
  background: var(--paper);
  border: 1px solid var(--softBorder);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow2);
}

.signal p{margin:0}

.signal--callout{
  border-color: rgba(180,83,9,.22);
  background: rgba(180,83,9,.08);
}

/* =========================================================
   Seek care section (.section--call + .call layout)
   ========================================================= */

.section--call{
  background: rgba(15,118,110,.06);
  border: 1px solid rgba(15,118,110,.12);
  border-radius: var(--radius2);
  padding: 24px;
  box-shadow: var(--shadow2);
}

.call{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
  align-items:start;
}

@media (max-width: 980px){
  .call{grid-template-columns:1fr}
}

.call__copy{
  background: var(--paper);
  border: 1px solid var(--softBorder);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow2);
}

.call__box{
  background: var(--paper);
  border: 1px solid var(--softBorder);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow2);
}

.badgeRow{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  border: 1px solid var(--softBorder);
  background: rgba(255,255,255,.75);
}

.badge--good{
  border-color: rgba(15,118,110,.20);
  background: rgba(15,118,110,.10);
  color: var(--teal2);
}

.badge--warn{
  border-color: rgba(180,83,9,.22);
  background: rgba(180,83,9,.10);
  color: #7c2d12;
}

.badge--bad{
  border-color: rgba(185,28,28,.20);
  background: rgba(185,28,28,.08);
  color: #7f1d1d;
}

/* =========================================================
   Steps grid (.steps + .step)
   ========================================================= */

.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 980px){
  .steps{grid-template-columns:1fr}
}

.step{
  background: var(--paper);
  border: 1px solid var(--softBorder);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow2);
}
.step p{margin:0}

/* =========================================================
   Takeaways + footer (.takeaways + .foot)
   ========================================================= */

.takeaways{
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--softBorder);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow2);
}

ul{
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
}

li{margin: 6px 0}

.foot{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(17,24,39,.10);
  color: #5f6b73;
  font-size: 13px;
}

/* =========================================================
   Accessibility: skip link
   ========================================================= */

.skip{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}

.skip:focus{
  left:16px; top:16px;
  width:auto;height:auto;
  padding:10px 12px;
  border-radius: 10px;
  background:#111827;
  color:#fff;
  z-index:999;
}

/* =========================================================
   Print
   ========================================================= */

@media print{
  .mast, nav, .btn { display:none !important; }
  main{max-width:none; padding:0}
  body{background:#fff;color:#000}
  p, li{color:#000}
}
/* =========================================================
   AUTHOR / BIO (fix: styles missing due to class mismatch)
   Paste at END of styles.css
   ========================================================= */

/* Common wrappers used across versions */
.authorBox,
.author-box,
.author,
.author-card,
.bio,
.bioBox,
.bio-box,
.byline,
.reviewer,
.reviewerBox,
.reviewedBy,
.reviewed-by{
  background: var(--paper);
  border: 1px solid var(--softBorder, var(--border));
  border-radius: var(--radius2, var(--radius));
  box-shadow: var(--shadow2, var(--shadow));
  padding: 22px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

@media (max-width: 720px){
  .authorBox,
  .author-box,
  .author,
  .author-card,
  .bio,
  .bioBox,
  .bio-box,
  .byline,
  .reviewer,
  .reviewerBox,
  .reviewedBy,
  .reviewed-by{
    grid-template-columns: 1fr;
  }
}

/* Avatar container names */
.authorBadge,
.author-badge,
.authorAvatar,
.author-avatar,
.bioAvatar,
.bio-avatar,
.bylineAvatar,
.reviewerAvatar,
.reviewer-avatar{
  width: 82px;
  height: 82px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--softBorder, var(--border));
  box-shadow: 0 10px 22px rgba(16,24,40,.12);
  background: #fff;
}

/* Avatar images */
.authorBadge img,
.author-badge img,
.authorAvatar img,
.author-avatar img,
.bioAvatar img,
.bio-avatar img,
.bylineAvatar img,
.reviewerAvatar img,
.reviewer-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Name/title selectors */
.authorName,
.author-name,
.bioName,
.bio-name,
.bylineName,
.byline-name,
.reviewerName,
.reviewer-name,
.reviewedBy strong,
.reviewed-by strong{
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.2px;
  color: var(--text, var(--ink));
}

/* Bio text */
.authorText,
.author-text,
.bioText,
.bio-text,
.bylineText,
.byline-text,
.reviewerText,
.reviewer-text{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

/* Tags/chips (optional) */
.authorTags,
.author-tags,
.bioTags,
.bio-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.authorTag,
.author-tag,
.bioTag,
.bio-tag{
  font-size: 12px;
  font-weight: 850;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,118,110,.10);
  border: 1px solid rgba(15,118,110,.18);
  color: var(--teal2, var(--primary-dark));
}

