/* =========================================================
   OPTIMAL HEALTH - Blog, article and 404 pages
   (same colours and fonts as csr.php / team.php)
   ========================================================= */
:root{
  --oh-red:#8d0000;
  --oh-red-dark:#640000;
  --oh-green:#16352d;
  --oh-green-2:#275d49;
  --oh-ink:#1b342d;
  --oh-copy:#2b3a35;
  --oh-muted:#5f706a;
  --oh-line:#e3ece7;
  --oh-soft:#f5f8f6;
  --oh-shadow:0 18px 50px rgba(18,53,43,.10);
}
.oh-page *{box-sizing:border-box;}
body{
  margin:0;
  font-family:"DM Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--oh-ink);
  background:#fff;
}
.oh-page{overflow:hidden;}
.oh-page img{max-width:100%;display:block;}
.oh-shell{width:min(1220px,calc(100% - 32px));margin-inline:auto;}
.oh-narrow{width:min(780px,calc(100% - 32px));margin-inline:auto;}

/* ---------- Page heading ---------- */
.oh-hero{
  padding:40px 0 36px;
  text-align:center;
  background:
    radial-gradient(circle at 12% 20%,rgba(141,0,0,.08),transparent 30%),
    radial-gradient(circle at 88% 85%,rgba(39,93,73,.10),transparent 30%),
    linear-gradient(180deg,#fff 0%,var(--oh-soft) 100%);
  border-bottom:1px solid var(--oh-line);
}
.oh-kicker{
  margin:0 0 10px;
  color:var(--oh-red);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.oh-hero h1{
  margin:0 auto;
  max-width:900px;
  font-family:"Playfair Display",Georgia,serif;
  font-size:clamp(26px,3.4vw,46px);
  line-height:1.12;
  letter-spacing:-.02em;
  color:var(--oh-green);
}
.oh-hero h1 span{color:var(--oh-red);}
.oh-hero-lead{
  margin:14px auto 0;
  max-width:680px;
  color:var(--oh-muted);
  font-size:1.02rem;
  line-height:1.7;
}

/* ---------- Breadcrumb ---------- */
.oh-crumbs{margin:0 0 14px;font-size:.82rem;color:var(--oh-muted);}
.oh-crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;}
.oh-crumbs li+li::before{content:"›";margin-right:6px;color:#a7b5af;}
.oh-crumbs a{color:var(--oh-green-2);}
.oh-crumbs a:hover{text-decoration:underline;}

/* ---------- Buttons ---------- */
.oh-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:13px 22px;border-radius:999px;
  background:var(--oh-red);color:#fff;
  font-weight:700;text-decoration:none;
  transition:background .2s ease,transform .2s ease;
}
.oh-btn:hover{background:var(--oh-red-dark);transform:translateY(-1px);}
.oh-btn-ghost{background:#fff;color:var(--oh-green);border:1px solid var(--oh-line);}
.oh-btn-ghost:hover{background:var(--oh-soft);}

/* ---------- Blog listing ---------- */
.oh-section{padding:52px 0;}
.oh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;}
.oh-card{
  display:flex;flex-direction:column;
  border:1px solid var(--oh-line);border-radius:20px;overflow:hidden;
  background:#fff;box-shadow:var(--oh-shadow);
  transition:transform .2s ease;
}
.oh-card:hover{transform:translateY(-3px);}
.oh-card-img{aspect-ratio:16/9;background:var(--oh-soft);overflow:hidden;}
.oh-card-img img{width:100%;height:100%;object-fit:cover;}
.oh-card-body{padding:20px 22px 22px;display:flex;flex-direction:column;gap:10px;flex:1;}
.oh-tag{
  align-self:flex-start;
  padding:4px 10px;border-radius:999px;
  background:rgba(141,0,0,.07);color:var(--oh-red);
  font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
}
.oh-card h2{margin:0;font-family:"Playfair Display",Georgia,serif;font-size:1.3rem;line-height:1.3;}
.oh-card h2 a{color:var(--oh-green);text-decoration:none;}
.oh-card h2 a:hover{color:var(--oh-red);}
.oh-card p{margin:0;color:var(--oh-copy);line-height:1.65;font-size:.95rem;}
.oh-meta{margin-top:auto;color:var(--oh-muted);font-size:.82rem;}

.oh-empty{
  text-align:center;
  padding:46px 26px;
  border:1px dashed #cfdcd6;border-radius:22px;background:var(--oh-soft);
}
.oh-empty h2{margin:0 0 10px;font-family:"Playfair Display",Georgia,serif;color:var(--oh-green);}
.oh-empty p{margin:0 auto 20px;max-width:560px;color:var(--oh-copy);line-height:1.7;}
.oh-empty .oh-actions{justify-content:center;}
.oh-actions{display:flex;flex-wrap:wrap;gap:12px;}

/* ---------- Article ---------- */
.oh-article-meta{
  display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;
  margin-top:16px;color:var(--oh-muted);font-size:.9rem;
}
.oh-article-meta strong{color:var(--oh-ink);}
.oh-article-meta a{color:var(--oh-green-2);text-decoration:underline;}
.oh-article-cover{margin:34px auto 0;border-radius:22px;overflow:hidden;box-shadow:var(--oh-shadow);}
.oh-article-cover img{width:100%;height:auto;}
.oh-prose{padding:34px 0 10px;color:var(--oh-copy);font-size:1.06rem;line-height:1.85;}
.oh-prose h2{margin:1.8em 0 .5em;font-family:"Playfair Display",Georgia,serif;color:var(--oh-green);font-size:1.6rem;line-height:1.25;}
.oh-prose h3{margin:1.5em 0 .4em;color:var(--oh-green);font-size:1.2rem;}
.oh-prose p,.oh-prose ul,.oh-prose ol{margin:0 0 1.1em;}
.oh-prose li{margin-bottom:.4em;}
.oh-prose a{color:var(--oh-red);text-decoration:underline;}
.oh-prose img{border-radius:16px;margin:1.4em 0;height:auto;}
.oh-prose blockquote{margin:1.4em 0;padding:14px 20px;border-left:4px solid var(--oh-red);background:var(--oh-soft);border-radius:0 14px 14px 0;}

.oh-box{margin:28px 0;padding:22px 24px;border-radius:18px;border:1px solid var(--oh-line);background:var(--oh-soft);}
.oh-box h2{margin:0 0 8px;font-size:1.05rem;color:var(--oh-green);}
.oh-box p{margin:0;line-height:1.7;color:var(--oh-copy);font-size:.95rem;}
.oh-box-warn{background:#fff8f5;border-color:#efdcd5;}
.oh-box-warn h2{color:var(--oh-red);}

.oh-author{display:flex;gap:18px;align-items:flex-start;}
.oh-author img{width:76px;height:76px;border-radius:50%;object-fit:cover;flex:none;background:#e9efec;}
.oh-author-role{display:block;margin:2px 0 8px;color:var(--oh-muted);font-size:.88rem;}
.oh-creds{margin:8px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px;}
.oh-creds li{padding:4px 10px;border-radius:999px;background:#fff;border:1px solid var(--oh-line);font-size:.78rem;color:var(--oh-green-2);}

.oh-cta{
  margin:34px 0 10px;padding:30px 28px;border-radius:24px;
  background:linear-gradient(135deg,#5f0b12 0%,#8e1821 55%,#b44b4e 100%);color:#fff;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;
}
.oh-cta h2{margin:0 0 6px;font-family:"Playfair Display",Georgia,serif;font-size:1.5rem;}
.oh-cta p{margin:0;color:#f8e8e5;}
.oh-cta .oh-btn{background:#fff;color:var(--oh-red);}
.oh-cta .oh-btn:hover{background:#fbeeee;}

/* ---------- 404 ---------- */
.oh-404-code{
  margin:0;
  font-family:"Playfair Display",Georgia,serif;
  font-size:clamp(64px,12vw,128px);
  line-height:1;color:var(--oh-red);
}
.oh-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:28px;}
.oh-links a{
  display:block;padding:16px 18px;border:1px solid var(--oh-line);border-radius:16px;
  color:var(--oh-green);font-weight:700;text-decoration:none;background:#fff;
}
.oh-links a span{display:block;margin-top:4px;color:var(--oh-muted);font-weight:400;font-size:.86rem;}
.oh-links a:hover{border-color:var(--oh-red);color:var(--oh-red);}

@media(max-width:980px){
  .oh-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .oh-links{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:620px){
  .oh-grid,.oh-links{grid-template-columns:1fr;}
  .oh-section{padding:38px 0;}
  .oh-author{flex-direction:column;}
  .oh-cta{padding:24px 20px;}
  .oh-prose{font-size:1rem;}
}
