/* ══════════════════════════════════════════════════════
   COLOUR SCHEMES — Customizer → Theme Design → Colour Scheme
   "evergreen" is the default and lives in main.css :root.
   Only base tokens are set here; derived ones (--line, --green-soft…)
   are recomputed by the ":root, .st-scope" rule in main.css.
   ══════════════════════════════════════════════════════ */

/* ── Midnight · dark navy, coral & amber ─────────────── */
html[data-scheme="midnight"] {
  --bg: #0d1220;
  --bg-deep: #080c16;
  --bg-light: #141c30;
  --bg-light-2: #11182a;
  --bg-lighter: #1b2540;
  --surface: #131a2c;
  --surface-rgb: 19, 26, 44;
  --surface-2: #1a2338;
  --card-light: #1e2942;
  --ink-rgb: 220, 228, 255;
  --shade-rgb: 6, 9, 18;
  --scrim-rgb: 6, 9, 18;
  --header-bg: rgba(13, 18, 32, .82);
  --header-bg-scrolled: rgba(8, 12, 22, .95);
  --text: #eef1fa;
  --text-2: #bcc4dc;
  --text-body: #cfd5e6;
  --muted: #8790ad;
  --green: #ff8a5c;
  --green-rgb: 255, 138, 92;
  --green-hover: #ffa47f;
  --lime: #ffd166;
  --lime-rgb: 255, 209, 102;
  --on-green: #1f0e06;
  --on-lime: #1f1406;
}

/* ── Linen · light cream, forest & terracotta ───────── */
html[data-scheme="linen"] {
  --bg: #f6f1e7;
  --bg-deep: #ece4d3;
  --bg-light: #efe7d6;
  --bg-light-2: #ebe2cf;
  --bg-lighter: #e6dcc6;
  --surface: #fffcf5;
  --surface-rgb: 255, 252, 245;
  --surface-2: #f3ecdd;
  --card-light: #fffaf0;
  --ink-rgb: 46, 40, 25;
  --shade-rgb: 255, 252, 245;
  --scrim-rgb: 22, 28, 20;
  --header-bg: rgba(246, 241, 231, .86);
  --header-bg-scrolled: rgba(246, 241, 231, .97);
  --text: #1e2a20;
  --text-2: #4b5548;
  --text-body: #2f3a31;
  --muted: #7b7f6f;
  --green: #2f6b4f;
  --green-rgb: 47, 107, 79;
  --green-hover: #245a41;
  --lime: #c0643a;
  --lime-rgb: 192, 100, 58;
  --on-green: #ffffff;
  --on-lime: #ffffff;
  --shadow: 0 30px 60px -32px rgba(60, 45, 20, .28);
}
html[data-scheme="linen"] .site-footer {
  --bg-deep: #1d2a22;
  --text: #f1eee6;
  --text-2: #c9cfc4;
  --muted: #95a092;
  --ink-rgb: 235, 230, 215;
  --green: #7cc49a;
  --green-rgb: 124, 196, 154;
  --green-hover: #98d4b0;
  --lime: #e59a6f;
  --lime-rgb: 229, 154, 111;
  --on-green: #10241a;
  --on-lime: #2a1206;
}

/* ── Clinic · light white, blue & teal ──────────────── */
html[data-scheme="clinic"] {
  --bg: #f4f7fb;
  --bg-deep: #e9eff7;
  --bg-light: #e9eff7;
  --bg-light-2: #e4ebf4;
  --bg-lighter: #dde6f1;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-2: #eef3f9;
  --card-light: #ffffff;
  --ink-rgb: 20, 40, 75;
  --shade-rgb: 255, 255, 255;
  --scrim-rgb: 10, 22, 42;
  --header-bg: rgba(255, 255, 255, .86);
  --header-bg-scrolled: rgba(255, 255, 255, .97);
  --text: #0f1d33;
  --text-2: #445371;
  --text-body: #24324a;
  --muted: #6e7c95;
  --green: #1f6feb;
  --green-rgb: 31, 111, 235;
  --green-hover: #1659c7;
  --lime: #0f8f84;
  --lime-rgb: 15, 143, 132;
  --on-green: #ffffff;
  --on-lime: #ffffff;
  --shadow: 0 30px 60px -32px rgba(15, 35, 70, .25);
}
html[data-scheme="clinic"] .site-footer {
  --bg-deep: #0e1a2e;
  --text: #eef3fa;
  --text-2: #b9c5d8;
  --muted: #8392ab;
  --ink-rgb: 210, 225, 250;
  --green: #6ea8ff;
  --green-rgb: 110, 168, 255;
  --green-hover: #8fbcff;
  --lime: #3fd0c2;
  --lime-rgb: 63, 208, 194;
  --on-green: #06142b;
  --on-lime: #04201d;
}

/* ── Blossom · light rose, raspberry & saffron ──────── */
html[data-scheme="blossom"] {
  --bg: #fdf6f7;
  --bg-deep: #f7e6ea;
  --bg-light: #f9eaee;
  --bg-light-2: #f6e3e8;
  --bg-lighter: #f3dce2;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-2: #fbeff2;
  --card-light: #ffffff;
  --ink-rgb: 80, 25, 45;
  --shade-rgb: 255, 255, 255;
  --scrim-rgb: 40, 12, 24;
  --header-bg: rgba(253, 246, 247, .86);
  --header-bg-scrolled: rgba(253, 246, 247, .97);
  --text: #2a1520;
  --text-2: #5c4350;
  --text-body: #3b2530;
  --muted: #8d7380;
  --green: #b8336a;
  --green-rgb: 184, 51, 106;
  --green-hover: #9c2758;
  --lime: #c77a12;
  --lime-rgb: 199, 122, 18;
  --on-green: #ffffff;
  --on-lime: #ffffff;
  --shadow: 0 30px 60px -32px rgba(90, 20, 45, .22);
}

/* ── Shared fixes for light schemes ─────────────────── */
html[data-tone="light"] .topo { opacity: .16; }
html[data-tone="light"] .aurora { opacity: .28; }
html[data-tone="light"] .site-header--scrolled { box-shadow: 0 14px 40px -26px rgba(0, 0, 0, .25); }
html[data-tone="light"] .nav-backdrop { background: rgba(20, 20, 20, .35); }
html[data-tone="light"] .card,
html[data-tone="light"] .hcard,
html[data-tone="light"] .habit,
html[data-tone="light"] .side-story,
html[data-tone="light"] .recipe-card,
html[data-tone="light"] .post-tile { box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 30px -22px rgba(0, 0, 0, .18); }
html[data-tone="light"] .topic-tile:hover { box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .45); }
/* Hover colour on photo cards: keep it readable over the dark scrim */
html[data-tone="light"] .ocard:hover .ocard__title,
html[data-tone="light"] .on-media a:not(.btn):not(.chip):hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
html[data-tone="light"] .feature__title a { background-image: linear-gradient(#fff, #fff); }
html[data-tone="light"] .wpcf7 form input[type="email"],
html[data-tone="light"] .wpcf7 form input[type="text"] { background: var(--surface); }
html[data-tone="light"] .form-card { background: rgba(var(--shade-rgb), .9); }
