/* =========================================================================
   WellOrganic Health (.in.net) — warm botanical editorial design system

   Two things drive every decision here:
   1. The audience is India-mobile, often on 4G. No webfont is loaded that
      isn't used; Devanagari and Latin faces are subset and preloaded.
   2. The evidence-label and verdict systems are the publication's argument,
      so they are designed as primary UI, not decoration. Their colours are
      fixed and reused identically in cards, article headers, and archives —
      a label must mean the same thing everywhere or it means nothing.
   ========================================================================= */

:root {
  /* surfaces */
  --bg:            #FAF6EF;   /* warm sand / oat */
  --surface:       #F2EBDF;
  --card:          #FFFFFF;
  --border:        #E3D8C5;

  /* type */
  --text:          #1C1917;
  --text-strong:   #000000;
  --muted:         #78716C;

  /* brand */
  --brand:         #166534;   /* deep forest green */
  --brand-deep:    #14532D;
  --brand-bright:  #22C55E;

  --accent:        #C2551F;   /* terracotta */
  --accent-deep:   #9A3412;
  --accent-soft:   #FDE4D3;

  --tertiary:      #D9A404;   /* saffron / turmeric */
  --tertiary-soft: #FEF3C7;

  --caution:       #9F1239;   /* clay red */
  --caution-soft:  #FCE7EF;

  /* evidence labels — fixed, never re-themed */
  --ev-well:       #166534;
  --ev-some:       #65A30D;
  --ev-trad:       #A8A29E;
  --ev-not:        #C2551F;
  --ev-unsafe:     #9F1239;

  /* myth-check verdicts */
  --vd-true:       #166534;
  --vd-mostly:     #65A30D;
  --vd-partly:     #D9A404;
  --vd-unproven:   #A8A29E;
  --vd-false:      #C2551F;
  --vd-harmful:    #9F1239;

  /* verticals */
  --v-nutrition:   #166534;
  --v-ayurveda:    #D9A404;
  --v-remedies:    #C2551F;
  --v-skin:        #DB7B8A;
  --v-movement:    #0E7490;
  --v-sleep:       #4C1D95;
  --v-seasonal:    #B45309;
  --v-myth:        #1E293B;

  --radius:        10px;
  --radius-lg:     16px;
  --wrap:          1200px;
  --read:          680px;
  --read-hi:       700px;   /* Devanagari needs a slightly wider measure */

  --font-display:  'Fraunces', Georgia, serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-hi-display: 'Noto Serif Devanagari', 'Noto Sans Devanagari', serif;
  --font-hi-body:  'Noto Sans Devanagari', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg:        #1C1917;
  --surface:   #292524;
  --card:      #232020;
  --border:    #44403C;
  --text:      #F5F0E8;
  --text-strong: #FFFFFF;
  --muted:     #A8A29E;
  --brand:     #4ADE80;
  --brand-deep: #22C55E;
  --accent:    #FB923C;
  --accent-soft: #431407;
  --tertiary:  #FCD34D;
  --tertiary-soft: #422006;
  --caution:   #FB7185;
  --caution-soft: #4C0519;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

/* Hindi pages get the Devanagari stack and a slightly larger base size —
   this is a legibility requirement for the script, not a preference. */
html[lang^="hi"] body { font-family: var(--font-hi-body); font-size: 18px; line-height: 1.8; }
html[lang^="hi"] h1, html[lang^="hi"] h2, html[lang^="hi"] h3 { font-family: var(--font-hi-display); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.22; color: var(--text-strong); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 40px); }
h2 { font-size: clamp(22px, 3.4vw, 30px); margin-top: 1.9em; }
h3 { font-size: clamp(19px, 2.6vw, 24px); margin-top: 1.6em; }
p  { margin: 0 0 1.15em; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

code, .mono { font-family: var(--font-mono); font-size: .9em; }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.read { max-width: var(--read); margin-inline: auto; }
html[lang^="hi"] .read { max-width: var(--read-hi); }
.section { padding-block: 56px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 999; }

/* ---------------------------------------------- persistent medical banner */
.med-banner {
  background: var(--tertiary-soft);
  border-bottom: 1px solid var(--border);
  color: #4A3708;
  font-size: 14px;
  padding: 9px 0;
}
[data-theme="dark"] .med-banner { color: var(--tertiary); }
.med-banner .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; flex-wrap: wrap; }
.med-banner a { color: inherit; font-weight: 600; }

/* --------------------------------------------------------------- header */
.site-head { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); }
.head-top { display: flex; align-items: center; gap: 18px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-strong); flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.1; }
.brand-suffix { color: var(--muted); font-weight: 500; font-size: 13px; display: block; font-family: var(--font-mono); }

.trust-bar { background: var(--brand-deep); color: #EAF6EE; font-size: 13px; padding: 7px 0; }
.trust-bar .wrap { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: center; text-align: center; }
.trust-bar b { color: #fff; font-weight: 600; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.nav a { padding: 7px 11px; border-radius: 8px; font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--text); white-space: nowrap; }
.nav a:hover { background: var(--surface); color: var(--brand); }
.nav a.is-myth { color: var(--v-myth); font-weight: 650; }

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 5px 12px; font-size: 13.5px; text-decoration: none; color: var(--muted); }
.lang-switch a.current { background: var(--brand); color: #fff; font-weight: 600; }

.btn { display: inline-block; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 15px; border: 0; cursor: pointer; }
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }

/* ------------------------------------------------- signature: badges */
.ev-badge, .vd-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; color: #fff; line-height: 1.35;
  /* deliberately not animated — stability is part of the signal */
}
.vd-badge { font-size: 14px; letter-spacing: .03em; padding: 7px 15px; }
.ev-badge::before, .vd-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.85); }

.ev-well   { background: var(--ev-well); }
.ev-some   { background: var(--ev-some); }
.ev-trad   { background: var(--ev-trad); }
.ev-not    { background: var(--ev-not); }
.ev-unsafe { background: var(--ev-unsafe); }

.vd-true     { background: var(--vd-true); }
.vd-mostly   { background: var(--vd-mostly); }
.vd-partly   { background: var(--vd-partly); color: #3A2A00; }
.vd-unproven { background: var(--vd-unproven); }
.vd-false    { background: var(--vd-false); }
.vd-harmful  { background: var(--vd-harmful); }

.chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; color: #fff; text-decoration: none; }

/* ------------------------------------------------------ content boxes */
.box { border-radius: var(--radius-lg); padding: 20px 22px; margin: 26px 0; border: 1px solid var(--border); background: var(--card); }
.box h3 { margin-top: 0; font-size: 18px; }

.box-glance   { background: var(--surface); border-left: 4px solid var(--brand); }
.box-glance ul { margin: 0; padding-left: 20px; }
.box-glance li { margin-bottom: .5em; }

.box-evidence { background: #F0F7F2; border-left: 4px solid var(--ev-well); }
[data-theme="dark"] .box-evidence { background: #0F241A; }

.box-safety   { background: var(--caution-soft); border-left: 4px solid var(--caution); }
.box-doctor   { background: var(--tertiary-soft); border-left: 4px solid var(--tertiary); }
.box-diy      { background: var(--accent-soft); border-left: 4px solid var(--accent); }
.box-injury   { background: var(--accent-soft); border-left: 4px solid var(--v-movement); }
.box-framing  { background: var(--surface); border-left: 4px solid var(--v-ayurveda); font-size: .96em; }

/* the claim being refuted — visually marked as quoted, never as our voice */
blockquote.debunked-claim {
  margin: 22px 0; padding: 18px 22px;
  background: var(--surface);
  border-left: 5px solid var(--vd-false);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.06em; font-style: italic; color: var(--text);
  position: relative;
}
blockquote.debunked-claim::before {
  content: "दावा / THE CLAIM";
  display: block; font-style: normal; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; color: var(--vd-false);
  margin-bottom: 8px; font-weight: 700;
}
blockquote.debunked-claim.is-false p { text-decoration: line-through; text-decoration-color: rgba(194,85,31,.5); }

/* --------------------------------------------------------------- cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid > * { min-width: 0; }   /* a grid child defaults to min-width:auto and will blow out the column */

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(28,25,23,.08); }
.card-body { padding: 17px 19px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0; }
html[lang^="hi"] .card-title { font-family: var(--font-hi-display); }
.card-title a { color: var(--text-strong); text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-meta { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.card-excerpt { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------- dual byline */
.byline { display: flex; flex-wrap: wrap; gap: 22px; padding: 18px 0; border-block: 1px solid var(--border); margin: 22px 0; }
.byline-person { display: flex; gap: 11px; align-items: center; }
.byline-person img, .byline-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface); flex-shrink: 0; }
.byline-role { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); }
.byline-name { font-weight: 650; font-size: 15px; }
.byline-cred { font-size: 12.5px; color: var(--muted); }
.byline-dates { font-size: 13px; color: var(--muted); font-family: var(--font-mono); width: 100%; }

.review-pending { background: var(--caution-soft); border: 1px dashed var(--caution); color: var(--caution); padding: 10px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------- sources */
.sources { margin-top: 34px; padding-top: 22px; border-top: 2px solid var(--border); }
.sources ol { padding-left: 20px; font-size: 14.5px; }
.sources li { margin-bottom: .7em; }
.src-type { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; margin-right: 7px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
/* classical texts must never look like clinical evidence — this distinction
   is the epistemic core of the publication */
.src-type.is-classical { background: var(--tertiary-soft); color: #7A5C02; border-color: var(--tertiary); }
.src-type.is-review    { background: #E7F2EB; color: var(--brand-deep); border-color: var(--brand); }

/* -------------------------------------------------------- pre-footer safety */
.safety-block { background: var(--tertiary-soft); border-top: 3px solid var(--tertiary); color: #4A3708; padding-block: 26px; }
[data-theme="dark"] .safety-block { color: var(--tertiary); }
.safety-block .grid { gap: 20px; }
.safety-block h4 { margin: 0 0 6px; font-size: 15px; font-family: var(--font-body); font-weight: 700; }
.safety-block p { margin: 0; font-size: 14px; }
.safety-block a { color: inherit; font-weight: 600; }
.safety-block .emergency { font-family: var(--font-mono); font-weight: 700; font-size: 15px; }

/* --------------------------------------------------------------- footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--border); padding-block: 44px 26px; font-size: 14.5px; }
.foot-cols { display: grid; gap: 30px; grid-template-columns: 1.6fr repeat(4, 1fr); }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; } }
.foot-cols h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: 7px; }
.foot-cols a { color: var(--text); text-decoration: none; }
.foot-cols a:hover { color: var(--brand); text-decoration: underline; }

.disambig {
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 13px 15px; margin-top: 15px;
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
}
.foot-bottom { border-top: 1px solid var(--border); margin-top: 30px; padding-top: 20px; font-size: 12.5px; color: var(--muted); display: grid; gap: 9px; }

/* --------------------------------------------------------------- article */
.article-head { padding-top: 26px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 9px; }
.standfirst { font-size: 19.5px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
html[lang^="hi"] .standfirst { font-size: 20px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

.prose > * { max-width: var(--read); margin-inline: auto; }
html[lang^="hi"] .prose > * { max-width: var(--read-hi); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .55em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 11px; text-align: left; }
.prose th { background: var(--surface); font-weight: 650; }
.table-wrap { overflow-x: auto; }

.toc { background: var(--surface); border-radius: var(--radius-lg); padding: 18px 22px; font-size: 14.5px; }
.toc ol { margin: 0; padding-left: 19px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }

/* --------------------------------------------------------------- hero */
.hero { padding-block: 44px 30px; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); letter-spacing: -0.02em; }
.hero .standfirst { font-size: clamp(17px, 2.4vw, 21px); max-width: 620px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.label-key { display: grid; gap: 10px; }
.label-key-row { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }

@media (max-width: 720px) {
  .section { padding-block: 40px; }
  .nav { display: none; }
  .byline { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
