/* ─────────────────────────────────────────────────────────────────────
   Araia — shared stylesheet for content pages (blog, about, legal).
   Tokens mirror the hand-crafted homepage in ../index.html. If you change
   a colour there, change it here too.
   ───────────────────────────────────────────────────────────────────── */
:root{
  --primary:#87A987;
  --primary-dark:#6B8E6F;
  --primary-light:#A8C3A8;
  --primary-soft:#E4EDE4;
  --accent:#E8C9A0;
  --accent-soft:#F6E9D6;

  --bg:#FBFAF5;
  --surface:#FFFFFF;
  --surface-muted:#F3F1E9;

  --text:#2E332E;
  --muted:#6A726A;
  --border:#E2E0D6;

  --r-sm:10px; --r-md:16px; --r-lg:24px; --r-xl:32px; --r-pill:999px;

  --shadow-card:0 6px 18px rgba(46,51,46,.05), 0 1px 3px rgba(46,51,46,.04);
  --shadow-lift:0 14px 34px rgba(46,51,46,.09), 0 2px 8px rgba(46,51,46,.05);

  --maxw:1120px;
  --readw:44rem;
  --pad:24px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Quicksand', ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight:500;
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{display:block; max-width:100%}
a{color:inherit}
h1,h2,h3,h4,h5{margin:0; font-weight:600; letter-spacing:-.02em; line-height:1.16}
p{margin:0}
ul,ol{margin:0; padding:0}
button{font:inherit; color:inherit; border:0; background:none; cursor:pointer}
::selection{background:var(--primary-soft); color:var(--text)}
:focus-visible{outline:2.5px solid var(--primary-dark); outline-offset:3px; border-radius:6px}

.wrap{width:100%; max-width:var(--maxw); margin:0 auto; padding:0 var(--pad)}
.skip{position:absolute; left:-9999px}
.skip:focus{left:12px; top:12px; z-index:99; background:var(--surface); padding:10px 16px; border-radius:var(--r-sm); box-shadow:var(--shadow-lift)}

/* ─────────────────────────────  nav  ─────────────────────────────── */
.nav{
  position:sticky; top:0; z-index:60;
  background:rgba(251,250,245,.82);
  backdrop-filter:saturate(140%) blur(14px);
  -webkit-backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .3s ease;
}
.nav.stuck{border-bottom-color:var(--border)}
.nav-in{display:flex; align-items:center; gap:20px; height:70px}
.nav-links{display:flex; align-items:center; gap:30px; margin-left:auto}
.nav-links a{font-size:.95rem; font-weight:600; color:var(--muted); text-decoration:none; transition:color .2s}
.nav-links a:hover,.nav-links a[aria-current]{color:var(--text)}
.nav-cta{
  display:inline-flex; align-items:center; gap:7px;
  background:var(--text); color:#fff; font-size:.9rem; font-weight:600;
  padding:9px 17px; border-radius:var(--r-pill); text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover{transform:translateY(-1px); box-shadow:var(--shadow-lift)}
.nav-toggle{display:none}

@media (max-width:820px){
  .nav-in{height:62px; gap:12px}

  .nav-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    margin-left:auto; flex:none; width:40px; height:40px;
    border-radius:12px; color:var(--text); transition:background .2s ease;
  }
  .nav-toggle:hover{background:var(--surface-muted)}
  .nav-toggle .bars{position:relative; width:19px; height:13px}
  .nav-toggle i{
    position:absolute; left:0; width:100%; height:2px;
    background:currentColor; border-radius:2px;
    transition:transform .26s cubic-bezier(.2,.8,.3,1), opacity .16s ease;
  }
  .nav-toggle i:nth-child(1){top:0}
  .nav-toggle i:nth-child(2){top:5.5px}
  .nav-toggle i:nth-child(3){top:11px}
  .nav-toggle[aria-expanded="true"] i:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
  .nav-toggle[aria-expanded="true"] i:nth-child(2){opacity:0}
  .nav-toggle[aria-expanded="true"] i:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}

  /* The links become a sheet under the bar rather than disappearing. Hiding
     them with display:none — which is what this breakpoint used to do — left
     mobile visitors with no way to reach the guides at all. visibility keeps
     them out of the tab order while closed. */
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    display:flex; flex-direction:column; align-items:stretch; gap:0;
    margin:0; padding:6px 24px 18px;
    /* Opaque, not translucent: at this size the page heading behind the sheet
       reads straight through a blurred backdrop and the links become unreadable. */
    background:var(--bg);
    border-bottom:1px solid var(--border);
    box-shadow:0 18px 34px rgba(46,51,46,.07);
    opacity:0; visibility:hidden; transform:translateY(-10px);
    transition:opacity .2s ease, transform .26s cubic-bezier(.2,.8,.3,1), visibility .26s;
  }
  .nav-links.open{opacity:1; visibility:visible; transform:none}
  .nav-links a{
    padding:14px 2px; font-size:1.02rem; color:var(--text);
    border-bottom:1px solid var(--border);
  }
  .nav-links a:last-child{border-bottom:0}
  .nav-cta{padding:9px 15px}
}

.logo{display:inline-flex; align-items:center; gap:10px; text-decoration:none}
.logo-mark{flex:none; overflow:visible}
.logo-mark path{fill:none; stroke:var(--primary); stroke-linecap:round; stroke-linejoin:round}
.logo-word{
  font-size:1.42rem; font-weight:600; letter-spacing:-.02em; color:var(--primary-dark);
  line-height:1; padding-bottom:2px;
}

/* ─────────────────────────────  type  ────────────────────────────── */
.h-xxl{font-size:clamp(2.1rem, 4.6vw, 3rem)}
.h-xl{font-size:clamp(1.85rem, 3.8vw, 2.5rem)}
.h-lg{font-size:clamp(1.3rem, 2.4vw, 1.55rem)}
.lede{font-size:clamp(1.04rem, 1.5vw, 1.17rem); color:var(--muted); line-height:1.62}
.small{font-size:.92rem; color:var(--muted); line-height:1.58}
.tiny{font-size:.79rem; color:var(--muted)}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.73rem; font-weight:700; letter-spacing:.15em; text-transform:uppercase;
  color:var(--primary-dark);
}
.eyebrow::before{content:''; width:16px; height:1.5px; background:var(--primary-light); border-radius:2px}

/* ─────────────────────────────  page head  ───────────────────────── */
.page-head{padding:clamp(30px,5vw,54px) 0 clamp(18px,3vw,28px); position:relative; overflow:hidden}
.page-head::before{
  content:''; position:absolute; width:min(680px,100vw); height:min(680px,100vw);
  top:-58%; right:-14%; border-radius:50%; filter:blur(70px); pointer-events:none;
  background:radial-gradient(circle at 50% 50%, rgba(135,169,135,.24), rgba(135,169,135,0) 66%);
}
.page-head>*{position:relative}

.crumbs{display:flex; flex-wrap:wrap; align-items:center; gap:7px; font-size:.83rem; color:var(--muted); margin-bottom:20px; list-style:none}
.crumbs a{color:var(--muted); text-decoration:none}
.crumbs a:hover{color:var(--primary-dark)}
.crumbs li+li::before{content:'/'; margin-right:7px; color:var(--border)}
.crumbs li{display:flex; align-items:center}

/* ─────────────────────────────  article  ─────────────────────────── */
.article{padding-bottom:clamp(40px,6vw,72px)}
.article-meta{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px;
  font-size:.85rem; color:var(--muted); margin-top:22px;
}
.article-meta .sep{width:3px; height:3px; border-radius:50%; background:var(--border)}
.pill{
  display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--primary-dark); background:var(--primary-soft); padding:5px 11px; border-radius:var(--r-pill);
}

.prose{max-width:var(--readw); font-size:1.045rem; line-height:1.75}
.prose>*+*{margin-top:1.15em}
.prose h2{font-size:clamp(1.4rem,2.6vw,1.72rem); margin-top:2.1em; line-height:1.22}
.prose h3{font-size:1.16rem; margin-top:1.7em}
.prose p{color:#3c433c}
.prose a{color:var(--primary-dark); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1.5px; text-decoration-color:var(--primary-light)}
.prose a:hover{text-decoration-color:var(--primary-dark)}
.prose strong{font-weight:700; color:var(--text)}
.prose ul,.prose ol{padding-left:1.3em; color:#3c433c}
.prose ul{list-style:none; padding-left:0}
.prose ul li{position:relative; padding-left:1.55em}
.prose ul li+li{margin-top:.55em}
.prose ul li::before{
  content:''; position:absolute; left:.4em; top:.72em;
  width:6px; height:6px; border-radius:50%; background:var(--primary-light);
}
.prose ol{list-style:decimal}
.prose ol li{padding-left:.3em}
.prose ol li+li{margin-top:.55em}
.prose ol li::marker{color:var(--primary-dark); font-weight:700}
.prose blockquote{
  margin-left:0; margin-right:0; padding:2px 0 2px 20px;
  border-left:3px solid var(--primary-light); color:var(--muted); font-style:normal;
}
.prose hr{border:0; border-top:1px solid var(--border); margin:2.4em 0}
.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.9em;
  background:var(--surface-muted); padding:2px 6px; border-radius:6px;
}

/* tables — the vaccination / wake-window charts live in these */
.table-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--border); border-radius:var(--r-md); background:var(--surface)}
.prose table{border-collapse:collapse; width:100%; font-size:.94rem; min-width:min(560px,100%)}
.prose thead th{
  text-align:left; font-weight:700; font-size:.76rem; letter-spacing:.09em; text-transform:uppercase;
  color:var(--primary-dark); background:var(--primary-soft);
  padding:12px 16px; white-space:nowrap;
}
.prose tbody td{padding:12px 16px; border-top:1px solid var(--border); vertical-align:top; color:#3c433c}
.prose tbody tr:nth-child(even) td{background:rgba(243,241,233,.5)}
.prose tbody th{
  padding:12px 16px; border-top:1px solid var(--border); text-align:left;
  font-weight:700; white-space:nowrap; vertical-align:top;
}

/* callouts */
.note{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md);
  padding:18px 20px; box-shadow:var(--shadow-card); font-size:.97rem;
}
.note>*+*{margin-top:.6em}
.note b{display:block; font-weight:700; margin-bottom:2px}
.note.warn{background:#FDF6EC; border-color:#EDD9B8}
.note.warn b{color:#96631F}
.note.tip{background:var(--primary-soft); border-color:#CFDECF}
.note.tip b{color:var(--primary-dark)}

/* in-article app callout */
.inline-cta{
  display:flex; flex-wrap:wrap; align-items:center; gap:16px 22px;
  background:linear-gradient(140deg, var(--primary-soft), var(--accent-soft));
  border-radius:var(--r-lg); padding:22px 24px; margin-top:2.2em !important;
}
.inline-cta p{color:#3c433c; flex:1 1 16rem; font-size:.98rem; line-height:1.6}
.inline-cta b{display:block; font-weight:700; color:var(--text); margin-bottom:3px}
.btn{
  display:inline-flex; align-items:center; gap:8px; flex:none;
  background:var(--text); color:#fff; text-decoration:none;
  font-size:.92rem; font-weight:600; padding:11px 20px; border-radius:var(--r-pill);
  transition:transform .18s ease, box-shadow .18s ease;
}
.btn:hover{transform:translateY(-1px); box-shadow:var(--shadow-lift)}
.btn.ghost{background:transparent; color:var(--text); border:1.5px solid var(--border)}
.btn.ghost:hover{border-color:var(--primary)}

/* table of contents */
.toc{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md);
  padding:20px 22px; box-shadow:var(--shadow-card);
}
.toc b{display:block; font-size:.74rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:var(--primary-dark); margin-bottom:11px}
.toc ol{list-style:none; padding:0; counter-reset:toc}
.toc li{counter-increment:toc; padding-left:0}
.toc li+li{margin-top:8px}
.toc li::before{content:none}
.toc a{font-size:.95rem; color:#3c433c; text-decoration:none; display:flex; gap:10px}
.toc a::before{content:counter(toc); color:var(--primary-light); font-weight:700; font-size:.85rem; flex:none; width:1.1em}
.toc a:hover{color:var(--primary-dark)}

/* FAQ */
.faq{margin-top:2.4em}
.faq details{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md);
  padding:0; overflow:hidden;
}
.faq details+details{margin-top:10px}
.faq summary{
  list-style:none; cursor:pointer; padding:16px 20px;
  font-weight:600; font-size:1rem; display:flex; align-items:flex-start; gap:12px;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:''; flex:none; margin-left:auto; width:9px; height:9px; margin-top:7px;
  border-right:2px solid var(--primary); border-bottom:2px solid var(--primary);
  transform:rotate(45deg); transition:transform .2s ease;
}
.faq details[open] summary::after{transform:rotate(-135deg)}
.faq .a{padding:0 20px 18px; color:#3c433c; font-size:.99rem; line-height:1.7}
.faq .a>*+*{margin-top:.8em}

/* medical disclaimer */
.disclaimer{
  margin-top:2.6em; padding:16px 20px; border-radius:var(--r-md);
  background:var(--surface-muted); border:1px solid var(--border);
  font-size:.87rem; color:var(--muted); line-height:1.62;
}

/* author box */
.author{
  display:flex; gap:16px; align-items:flex-start; margin-top:2.4em;
  padding:20px 22px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-md); box-shadow:var(--shadow-card);
}
.author .ava{
  flex:none; width:46px; height:46px; border-radius:50%; display:grid; place-items:center;
  background:var(--primary-soft); color:var(--primary-dark); font-weight:700; font-size:1.1rem;
}
.author p{font-size:.92rem; color:var(--muted); line-height:1.6}
.author b{display:block; color:var(--text); font-size:1rem; margin-bottom:3px}

/* ─────────────────────────────  blog index  ──────────────────────── */
.post-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:22px; padding-bottom:clamp(40px,6vw,72px)}
.card{
  display:flex; flex-direction:column; gap:11px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:26px 26px 28px; text-decoration:none; box-shadow:var(--shadow-card);
  transition:transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease, border-color .22s ease;
}
.card:hover{transform:translateY(-3px); box-shadow:var(--shadow-lift); border-color:var(--primary-light)}
.card .pill{align-self:flex-start}
.card h2,.card h3{font-size:1.16rem; line-height:1.32}
.card p{font-size:.94rem; color:var(--muted); line-height:1.6}
.card .tiny{margin-top:auto; padding-top:6px}
.card.feature{grid-column:1 / -1; background:linear-gradient(140deg,var(--primary-soft),var(--accent-soft)); border-color:transparent}
.card.feature h2{font-size:clamp(1.4rem,3vw,1.8rem)}
.card.feature p{color:#3c433c; max-width:38rem}

/* related posts */
.related{margin-top:clamp(40px,6vw,64px)}
.related h2{font-size:1.3rem; margin-bottom:18px}
.related-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px}
.related-grid a{
  display:block; padding:18px 20px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-md); text-decoration:none; transition:border-color .2s ease, transform .2s ease;
}
.related-grid a:hover{border-color:var(--primary-light); transform:translateY(-2px)}
.related-grid b{display:block; font-size:.99rem; font-weight:600; line-height:1.35; margin-bottom:5px}
.related-grid span{font-size:.85rem; color:var(--muted)}

/* ─────────────────────────────  cta band  ────────────────────────── */
.cta-band{
  margin:clamp(44px,6vw,72px) 0 0;
  background:linear-gradient(150deg,#EDF3ED,#F8EEDF);
  border-radius:var(--r-xl); padding:clamp(30px,5vw,52px);
  text-align:center;
}
.cta-band h2{font-size:clamp(1.5rem,3.4vw,2.1rem); margin-bottom:12px}
.cta-band p{max-width:34rem; margin:0 auto 24px; color:#3c433c}
.cta-band .row{display:flex; flex-wrap:wrap; gap:12px; justify-content:center}

/* ─────────────────────────────  footer  ──────────────────────────── */
footer{border-top:1px solid var(--border); margin-top:clamp(50px,7vw,90px); padding:clamp(38px,5vw,58px) 0 30px}
.foot{display:grid; grid-template-columns:1.15fr 1.6fr; gap:36px}
.foot-brand p{font-size:.92rem; color:var(--muted); max-width:22rem; margin-top:13px; line-height:1.6}
.foot-nav{display:grid; grid-template-columns:repeat(3,1fr); gap:26px}
.foot-nav h5{font-size:.74rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:var(--primary-dark); margin-bottom:13px}
.foot-nav a{display:block; font-size:.93rem; color:var(--muted); text-decoration:none; padding:4px 0; transition:color .2s}
.foot-nav a:hover{color:var(--text)}
.foot-base{
  display:flex; flex-wrap:wrap; gap:10px 26px; justify-content:space-between;
  margin-top:clamp(28px,4vw,44px); padding-top:22px; border-top:1px solid var(--border);
}
@media (max-width:760px){
  .foot{grid-template-columns:1fr; gap:30px}
  .foot-nav{grid-template-columns:repeat(2,1fr)}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important; transition-duration:.001ms !important}
  html{scroll-behavior:auto}
}
