.theme {
  transition: background-color 0.25s ease, color 0.25s ease;
  --surface-text: #1a2432;
  --surface-link: var(--primary);
}

.theme .site-header,
.theme .site-footer,
.theme .card,
.theme .btn {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Shared contrast safety for rich content across all themes/pages */
.theme .card,
.theme .form-card {
  color: var(--surface-text);
}

.theme .card p,
.theme .card li,
.theme .card strong,
.theme .card em,
.theme .card b,
.theme .form-card p,
.theme .form-card li,
.theme .form-card strong,
.theme .form-card em,
.theme .form-card b {
  color: inherit !important;
}

.theme .card a:not(.btn):not(.footer-page-chip),
.theme .form-card a:not(.btn):not(.footer-page-chip) {
  color: var(--surface-link) !important;
}

/* Shared sub-card surfaces for page content blocks */
.theme .sub-card,
.theme .form-card,
.theme .join-subcard,
.theme .join-form-card {
  background: var(--home-hero-panel-bg);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 15%, transparent);
}

/* Material Modern */
.theme.theme-ocean_pro {
  --primary: #1565c0;
  --secondary: #00acc1;
  --bg: #eef3f8;
  --header-bg: #0d47a1;
  --header-text: #f3f8ff;
  --heading-color: #0f3b79;
  background: radial-gradient(circle at 0% 0%, #f7fbff 0%, #eef3f8 40%, #e9eff5 100%);
}

.theme.theme-ocean_pro .site-header {
  border-bottom: 0;
  box-shadow: 0 8px 24px rgba(13, 71, 161, 0.24);
}

.theme.theme-ocean_pro .card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(21, 101, 192, 0.12);
}

.theme.theme-ocean_pro .btn {
  border-radius: 12px;
}

/* Praga Editorial */
.theme.theme-slate_editorial {
  --primary: #2b3240;
  --secondary: #b88b5a;
  --bg: #f2f0ed;
  --header-bg: #1d232f;
  --header-text: #f7f5f2;
  --heading-color: #242b38;
  background: linear-gradient(180deg, #f8f6f2 0%, #f2f0ed 100%);
}

.theme.theme-slate_editorial .site-header {
  border-bottom: 2px solid rgba(184, 139, 90, 0.45);
}

.theme.theme-slate_editorial h1,
.theme.theme-slate_editorial h2,
.theme.theme-slate_editorial h3 {
  letter-spacing: 0.2px;
}

.theme.theme-slate_editorial .card {
  border: 1px solid rgba(43, 50, 64, 0.16);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(43, 50, 64, 0.08);
}

.theme.theme-slate_editorial .btn {
  border-radius: 8px;
}

/* Neo Academic */
.theme.theme-emerald_research {
  --primary: #0f6b58;
  --secondary: #1cb88f;
  --bg: #ecf8f3;
  --header-bg: #0a4e40;
  --header-text: #ecfff8;
  --heading-color: #0f5d4c;
  background: linear-gradient(160deg, #f8fffc 0%, #ecf8f3 55%, #e5f4ee 100%);
}

.theme.theme-emerald_research .site-header {
  border-bottom: 0;
  box-shadow: 0 6px 18px rgba(10, 78, 64, 0.2);
}

.theme.theme-emerald_research .hero {
  position: relative;
}

.theme.theme-emerald_research .hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -14px -10%;
  height: 28px;
  background: linear-gradient(90deg, rgba(28, 184, 143, 0.12), rgba(15, 107, 88, 0.08));
  filter: blur(6px);
  pointer-events: none;
}

.theme.theme-emerald_research .card {
  border: 1px solid rgba(15, 107, 88, 0.14);
  border-radius: 14px;
}

/* Sunset Modern */
.theme.theme-sunset_modern {
  --primary: #8f3f32;
  --secondary: #f2a84b;
  --bg: #fff4ea;
  --header-bg: #6b2b22;
  --header-text: #fff7f0;
  --heading-color: #7c2f24;
  background: radial-gradient(circle at 80% 10%, #ffe7d1 0%, #fff4ea 38%, #fff0e3 100%);
}

.theme.theme-sunset_modern .site-header {
  border-bottom: 0;
  box-shadow: 0 10px 30px rgba(107, 43, 34, 0.22);
}

.theme.theme-sunset_modern .card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(143, 63, 50, 0.14);
}

.theme.theme-sunset_modern .btn {
  border-radius: 999px;
  padding-left: 18px;
  padding-right: 18px;
}

/* Monochrome Luxe */
.theme.theme-mono_contrast {
  --primary: #171717;
  --secondary: #636363;
  --bg: #f4f4f4;
  --header-bg: #0f0f0f;
  --header-text: #fafafa;
  --heading-color: #1f1f1f;
  background: linear-gradient(180deg, #f8f8f8 0%, #f4f4f4 100%);
}

.theme.theme-mono_contrast .site-header,
.theme.theme-mono_contrast .site-footer {
  border-bottom: 0;
}

.theme.theme-mono_contrast .card {
  border: 1px solid rgba(25, 25, 25, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.theme.theme-mono_contrast .btn {
  border-radius: 10px;
}

.theme.theme-mono_contrast .btn.secondary {
  color: #fff;
}

/* Cobalt Clean */
.theme.theme-cobalt_clean {
  --primary: #0f3d91;
  --secondary: #2aa8ff;
  --bg: #edf4ff;
  --header-bg: #0b2d6d;
  --header-text: #eef5ff;
  --heading-color: #0d326f;
  background: linear-gradient(160deg, #f7fbff 0%, #edf4ff 55%, #e7f0ff 100%);
}

.theme.theme-cobalt_clean .site-header {
  border-bottom: 0;
  box-shadow: 0 10px 30px rgba(11, 45, 109, 0.22);
}

.theme.theme-cobalt_clean .card {
  border: 1px solid rgba(15, 61, 145, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(15, 61, 145, 0.1);
}

.theme.theme-cobalt_clean .btn {
  border-radius: 12px;
}

/* Copper Editorial */
.theme.theme-copper_editorial {
  --primary: #5a2f1f;
  --secondary: #c67a45;
  --bg: #f8f2ea;
  --header-bg: #3e2015;
  --header-text: #fff7ef;
  --heading-color: #4c281a;
  background: radial-gradient(circle at 85% 5%, #ffe7d2 0%, #f8f2ea 38%, #f3ece3 100%);
}

.theme.theme-copper_editorial .site-header {
  border-bottom: 1px solid rgba(198, 122, 69, 0.38);
}

.theme.theme-copper_editorial .card {
  border: 1px solid rgba(90, 47, 31, 0.18);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(62, 32, 21, 0.11);
}

.theme.theme-copper_editorial .btn {
  border-radius: 999px;
  padding-left: 18px;
  padding-right: 18px;
}

/* Mint Glass */
.theme.theme-mint_glass {
  --primary: #0f766e;
  --secondary: #3ed6b0;
  --bg: #ebfdf7;
  --header-bg: #0b5c56;
  --header-text: #ecfffb;
  --heading-color: #0f5f59;
  background: linear-gradient(140deg, #f8fffc 0%, #ebfdf7 52%, #e3f8f1 100%);
}

.theme.theme-mint_glass .site-header {
  border-bottom: 0;
  box-shadow: 0 12px 28px rgba(11, 92, 86, 0.2);
}

.theme.theme-mint_glass .card {
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(236, 255, 250, 0.78));
  border-radius: 18px;
  backdrop-filter: blur(4px);
  box-shadow: 0 18px 38px rgba(15, 118, 110, 0.11);
}

.theme.theme-mint_glass .btn {
  border-radius: 12px;
}

/* Midnight Tech */
.theme.theme-midnight_tech {
  --primary: #111827;
  --secondary: #38bdf8;
  --bg: #0b1324;
  --header-bg: #060d1a;
  --header-text: #e0f2fe;
  --heading-color: #dbeafe;
  --surface-text: #e2ecff;
  --surface-link: #7dd3fc;
  color: #d6e6ff;
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0) 36%),
    radial-gradient(circle at 86% 12%, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0) 40%),
    linear-gradient(180deg, #0b1324 0%, #070d19 100%);
}

.theme.theme-midnight_tech .site-header,
.theme.theme-midnight_tech .site-footer {
  border-bottom: 0;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.theme.theme-midnight_tech .card {
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.82));
  color: #dbeafe;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.theme.theme-midnight_tech .form-card {
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: linear-gradient(165deg, rgba(11, 19, 36, 0.94), rgba(22, 33, 58, 0.9));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.theme.theme-midnight_tech .form-card p,
.theme.theme-midnight_tech .form-card li,
.theme.theme-midnight_tech .form-card strong,
.theme.theme-midnight_tech .form-card em,
.theme.theme-midnight_tech .form-card b {
  color: inherit !important;
}

.theme.theme-midnight_tech .journal-pill span {
  background: #0b152b;
  color: #dbeafe;
  border-color: rgba(125, 211, 252, 0.34);
}

.theme.theme-midnight_tech .journal-pill input:checked + span {
  background: #38bdf8;
  color: #062138;
  border-color: #38bdf8;
}

.theme.theme-midnight_tech .journal-pill.disabled span {
  background: #101a32;
  color: #9db5d1;
  border-color: rgba(125, 211, 252, 0.24);
}

.theme.theme-midnight_tech .journal-pill-disabled-note {
  color: #ffd6a3;
  background: rgba(255, 164, 47, 0.14);
  border-color: rgba(255, 196, 126, 0.45);
}

.theme.theme-midnight_tech .muted {
  color: #9ec3e8;
}

.theme.theme-midnight_tech .btn {
  border-color: rgba(148, 211, 252, 0.35);
}

.theme.theme-midnight_tech .btn.secondary {
  color: #071426;
}

.theme.theme-midnight_tech input,
.theme.theme-midnight_tech select,
.theme.theme-midnight_tech textarea {
  background: #0b1428;
  color: #e2ecff;
  border-color: rgba(125, 211, 252, 0.34);
}

.theme.theme-midnight_tech input::placeholder,
.theme.theme-midnight_tech textarea::placeholder {
  color: #9ab3d1;
}

/* Ivory Serif */
.theme.theme-ivory_serif {
  --primary: #3a2f26;
  --secondary: #8d7450;
  --bg: #fcf7ef;
  --header-bg: #2e241e;
  --header-text: #fff9f2;
  --heading-color: #332820;
  background: linear-gradient(180deg, #fffcf7 0%, #fcf7ef 60%, #f8f1e7 100%);
}

.theme.theme-ivory_serif .site-header {
  border-bottom: 1px solid rgba(141, 116, 80, 0.32);
}

.theme.theme-ivory_serif .card {
  border: 1px solid rgba(58, 47, 38, 0.14);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(58, 47, 38, 0.08);
}

.theme.theme-ivory_serif h1,
.theme.theme-ivory_serif h2,
.theme.theme-ivory_serif h3 {
  letter-spacing: 0.15px;
}

/* Ruby Editorial */
.theme.theme-ruby_editorial {
  --primary: #7f1d2d;
  --secondary: #e26d5c;
  --bg: #fdf1f3;
  --header-bg: #5d1522;
  --header-text: #fff3f6;
  --heading-color: #691a29;
  background: linear-gradient(170deg, #fff8f9 0%, #fdf1f3 58%, #fae8ec 100%);
}

.theme.theme-ruby_editorial .card { border: 1px solid rgba(127, 29, 45, 0.16); border-radius: 10px; }

/* Arctic Paper */
.theme.theme-arctic_paper {
  --primary: #255b7d;
  --secondary: #7cc7e8;
  --bg: #eef7fc;
  --header-bg: #163d59;
  --header-text: #edf8ff;
  --heading-color: #1f4f70;
  background: linear-gradient(180deg, #f8fcff 0%, #eef7fc 100%);
}

.theme.theme-arctic_paper .card { border: 1px solid rgba(37, 91, 125, 0.15); border-radius: 14px; }

/* Forest Depth */
.theme.theme-forest_depth {
  --primary: #1f4f3f;
  --secondary: #74b37d;
  --bg: #edf6f1;
  --header-bg: #13362a;
  --header-text: #ecfff5;
  --heading-color: #1c4638;
  background: radial-gradient(circle at 80% 8%, #dff3e6 0%, #edf6f1 40%, #e7f2ec 100%);
}

.theme.theme-forest_depth .card { border: 1px solid rgba(31, 79, 63, 0.15); border-radius: 14px; }

/* Amber Studio */
.theme.theme-amber_studio {
  --primary: #7a4d1e;
  --secondary: #f3b85a;
  --bg: #fff6e9;
  --header-bg: #5d3815;
  --header-text: #fff8ed;
  --heading-color: #6b4319;
  background: linear-gradient(165deg, #fffaf2 0%, #fff6e9 56%, #ffefd9 100%);
}

.theme.theme-amber_studio .btn { border-radius: 999px; padding-left: 18px; padding-right: 18px; }

/* Violet Research */
.theme.theme-violet_research {
  --primary: #4b3a8a;
  --secondary: #9a83e6;
  --bg: #f1effb;
  --header-bg: #322663;
  --header-text: #f4f1ff;
  --heading-color: #3f2f79;
  background: linear-gradient(170deg, #faf8ff 0%, #f1effb 58%, #ebe7fa 100%);
}

.theme.theme-violet_research .card { border: 1px solid rgba(75, 58, 138, 0.16); border-radius: 16px; }

/* Graphite Blue */
.theme.theme-graphite_blue {
  --primary: #23364d;
  --secondary: #4e8ccf;
  --bg: #edf1f6;
  --header-bg: #18273a;
  --header-text: #edf5ff;
  --heading-color: #1e3147;
  background: linear-gradient(180deg, #f4f8fd 0%, #edf1f6 100%);
}

.theme.theme-graphite_blue .card { border: 1px solid rgba(35, 54, 77, 0.15); border-radius: 12px; }

/* Rose Minimal */
.theme.theme-rose_minimal {
  --primary: #8f4d62;
  --secondary: #e49fb2;
  --bg: #fdf3f6;
  --header-bg: #6d3a4b;
  --header-text: #fff5f8;
  --heading-color: #7f4458;
  background: linear-gradient(180deg, #fff9fb 0%, #fdf3f6 100%);
}

.theme.theme-rose_minimal .card { border: 1px solid rgba(143, 77, 98, 0.14); border-radius: 12px; }

/* Teal Focus */
.theme.theme-teal_focus {
  --primary: #0f5c63;
  --secondary: #3ec4b7;
  --bg: #ebfaf8;
  --header-bg: #0a4348;
  --header-text: #e9fffb;
  --heading-color: #0f4e54;
  background: linear-gradient(165deg, #f8fffe 0%, #ebfaf8 58%, #e4f5f3 100%);
}

.theme.theme-teal_focus .card { border: 1px solid rgba(15, 92, 99, 0.16); border-radius: 16px; }

/* Sandstone Classic */
.theme.theme-sandstone_classic {
  --primary: #6d5b48;
  --secondary: #b8a07a;
  --bg: #f8f2ea;
  --header-bg: #504233;
  --header-text: #fff8ee;
  --heading-color: #5d4e3d;
  background: linear-gradient(180deg, #fdf9f3 0%, #f8f2ea 100%);
}

.theme.theme-sandstone_classic .card { border: 1px solid rgba(109, 91, 72, 0.16); border-radius: 10px; }

/* Neon Lab */
.theme.theme-neon_lab {
  --primary: #10182b;
  --secondary: #2af0d1;
  --bg: #0d1321;
  --header-bg: #070d18;
  --header-text: #ddfff8;
  --heading-color: #cbf7ff;
  --surface-text: #d9e9ff;
  --surface-link: #62f8e0;
  color: #d9e9ff;
  background:
    radial-gradient(circle at 14% 8%, rgba(42, 240, 209, 0.2) 0%, rgba(42, 240, 209, 0) 40%),
    radial-gradient(circle at 86% 10%, rgba(77, 163, 255, 0.22) 0%, rgba(77, 163, 255, 0) 42%),
    linear-gradient(180deg, #0d1321 0%, #090f1a 100%);
}

.theme.theme-neon_lab .site-header,
.theme.theme-neon_lab .site-footer {
  border-bottom: 0;
}

.theme.theme-neon_lab .card,
.theme.theme-neon_lab .form-card {
  border: 1px solid rgba(98, 248, 224, 0.28);
  background: linear-gradient(160deg, rgba(13, 19, 33, 0.92), rgba(18, 28, 47, 0.86));
}

.theme.theme-neon_lab .muted { color: #9ec7dd; }

/* Royal Navy */
.theme.theme-royal_navy {
  --primary: #123b78;
  --secondary: #56a7e7;
  --bg: #eaf2fb;
  --header-bg: #0b254d;
  --header-text: #eef6ff;
  --heading-color: #11315f;
  background: linear-gradient(170deg, #f6faff 0%, #eaf2fb 58%, #e3edf9 100%);
}

.theme.theme-royal_navy .site-header {
  border-bottom: 0;
  box-shadow: 0 10px 28px rgba(11, 37, 77, 0.24);
}

.theme.theme-royal_navy .card {
  border: 1px solid rgba(18, 59, 120, 0.16);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(18, 59, 120, 0.1);
}

/* Navy Blue */
.theme.theme-navy_blue {
  --primary: #0f2f6d;
  --secondary: #3f7fd6;
  --bg: #e8f0fb;
  --header-bg: #071e4a;
  --header-text: #edf4ff;
  --heading-color: #0b2a61;
  background: linear-gradient(165deg, #f4f8ff 0%, #e8f0fb 58%, #dde8f7 100%);
}

.theme.theme-navy_blue .site-header {
  border-bottom: 0;
  box-shadow: 0 10px 26px rgba(7, 30, 74, 0.24);
}

.theme.theme-navy_blue .card {
  border: 1px solid rgba(15, 47, 109, 0.16);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(15, 47, 109, 0.1);
}

/* Sage Scholar */
.theme.theme-sage_scholar {
  --primary: #2f5d4a;
  --secondary: #8dc9aa;
  --bg: #eef6f2;
  --header-bg: #1f4335;
  --header-text: #effcf5;
  --heading-color: #294d3d;
  background: radial-gradient(circle at 85% 6%, #dff1e7 0%, #eef6f2 40%, #e7f1ec 100%);
}

.theme.theme-sage_scholar .card {
  border: 1px solid rgba(47, 93, 74, 0.16);
  border-radius: 12px;
}

/* Crimson Citation */
.theme.theme-crimson_citation {
  --primary: #7a1f34;
  --secondary: #e08ba0;
  --bg: #fdf1f5;
  --header-bg: #5a1426;
  --header-text: #fff3f7;
  --heading-color: #6a1a2d;
  background: linear-gradient(170deg, #fff8fa 0%, #fdf1f5 58%, #f9e6ec 100%);
}

.theme.theme-crimson_citation .card {
  border: 1px solid rgba(122, 31, 52, 0.15);
  border-radius: 12px;
}

/* Polar Glacier */
.theme.theme-polar_glacier {
  --primary: #25506b;
  --secondary: #6fc7d8;
  --bg: #edf7fa;
  --header-bg: #17384c;
  --header-text: #ecf9ff;
  --heading-color: #20455d;
  background: linear-gradient(180deg, #f7fcff 0%, #edf7fa 58%, #e7f2f6 100%);
}

.theme.theme-polar_glacier .card {
  border: 1px solid rgba(37, 80, 107, 0.15);
  border-radius: 14px;
}

/* Obsidian Gold */
.theme.theme-obsidian_gold {
  --primary: #17191d;
  --secondary: #d6b56e;
  --bg: #0f1218;
  --header-bg: #090b10;
  --header-text: #f8f1df;
  --heading-color: #f2ddb0;
  --surface-text: #e7ecf5;
  --surface-link: #f0c97b;
  color: #e7ecf5;
  background:
    radial-gradient(circle at 12% 8%, rgba(214, 181, 110, 0.22) 0%, rgba(214, 181, 110, 0) 38%),
    radial-gradient(circle at 88% 12%, rgba(104, 130, 176, 0.2) 0%, rgba(104, 130, 176, 0) 40%),
    linear-gradient(180deg, #0f1218 0%, #0a0d12 100%);
}

.theme.theme-obsidian_gold .site-header,
.theme.theme-obsidian_gold .site-footer {
  border-bottom: 0;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.theme.theme-obsidian_gold .card,
.theme.theme-obsidian_gold .form-card {
  border: 1px solid rgba(214, 181, 110, 0.28);
  background: linear-gradient(160deg, rgba(16, 20, 28, 0.94), rgba(25, 30, 39, 0.88));
}

.theme.theme-obsidian_gold .muted { color: #b9c3d4; }

/* Pearl Breeze */
.theme.theme-pearl_breeze {
  --primary: #47607a;
  --secondary: #9cc3e9;
  --bg: #f5f9ff;
  --header-bg: #31475e;
  --header-text: #f4f9ff;
  --heading-color: #3b536b;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 58%, #eef4fd 100%);
}
.theme.theme-pearl_breeze .card { border: 1px solid rgba(71, 96, 122, 0.14); border-radius: 14px; }

/* Sky Minimal */
.theme.theme-sky_minimal {
  --primary: #2f6e9d;
  --secondary: #8ed0f8;
  --bg: #eef8ff;
  --header-bg: #1f557d;
  --header-text: #eef8ff;
  --heading-color: #2a5f86;
  background: linear-gradient(170deg, #f8fcff 0%, #eef8ff 58%, #e8f3fc 100%);
}
.theme.theme-sky_minimal .card { border: 1px solid rgba(47, 110, 157, 0.14); border-radius: 12px; }

/* Linen Academic */
.theme.theme-linen_academic {
  --primary: #5e5b54;
  --secondary: #c9b68d;
  --bg: #faf6ee;
  --header-bg: #45423d;
  --header-text: #fffaf1;
  --heading-color: #545049;
  background: linear-gradient(180deg, #fdfbf6 0%, #faf6ee 62%, #f5efe4 100%);
}
.theme.theme-linen_academic .card { border: 1px solid rgba(94, 91, 84, 0.14); border-radius: 10px; }

/* Aqua Pastel */
.theme.theme-aqua_pastel {
  --primary: #2f7f86;
  --secondary: #9be3d9;
  --bg: #ecfbf8;
  --header-bg: #215d62;
  --header-text: #effffd;
  --heading-color: #2a6f75;
  background: radial-gradient(circle at 85% 10%, #dff7f2 0%, #ecfbf8 42%, #e5f6f3 100%);
}
.theme.theme-aqua_pastel .card { border: 1px solid rgba(47, 127, 134, 0.15); border-radius: 14px; }

/* Clay Light */
.theme.theme-clay_light {
  --primary: #876b58;
  --secondary: #e2bda4;
  --bg: #fcf3ed;
  --header-bg: #6b5446;
  --header-text: #fff7f2;
  --heading-color: #7a6251;
  background: linear-gradient(170deg, #fffaf6 0%, #fcf3ed 58%, #f8ece4 100%);
}
.theme.theme-clay_light .card { border: 1px solid rgba(135, 107, 88, 0.15); border-radius: 12px; }

/* Shared improvements for all preset themes (except custom) */
.theme:not(.theme-custom) .site-header .btn.link {
  color: var(--header-text) !important;
  border-color: color-mix(in srgb, var(--header-text) 45%, transparent);
}

.theme:not(.theme-custom) .site-footer {
  background: var(--primary);
}

.theme:not(.theme-custom) {
  --footer-text: color-mix(in srgb, var(--header-text) 85%, #ffffff 15%);
  --footer-chip-border: color-mix(in srgb, var(--footer-text) 45%, transparent);
  --home-hero-bg-start: color-mix(in srgb, var(--primary) 86%, #0b1624 14%);
  --home-hero-bg-end: color-mix(in srgb, var(--secondary) 58%, var(--primary) 42%);
  --home-hero-panel-bg: #ffffff;
  --home-hero-text: #ffffff;
  background:
    radial-gradient(1200px 460px at -10% -12%, color-mix(in srgb, var(--secondary) 22%, transparent) 0%, transparent 58%),
    radial-gradient(1100px 440px at 110% -8%, color-mix(in srgb, var(--primary) 24%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 94%, #ffffff 6%) 0%, var(--bg) 100%);
}

.theme.theme-midnight_tech {
  --home-hero-panel-bg: #0f1b33;
  --home-hero-text: #e6f2ff;
}

/* Keep social icon brand colors in header (same colorful feel as footer) */
.theme .site-header .follow-inline .follow-icon.social-facebook { color: #1877f2 !important; }
.theme .site-header .follow-inline .follow-icon.social-linkedin { color: #0a66c2 !important; }
.theme .site-header .follow-inline .follow-icon.social-twitter { color: #f5f8fa !important; }
.theme .site-header .follow-inline .follow-icon.social-instagram { color: #e4405f !important; }
.theme .site-header .follow-inline .follow-icon.social-telegram { color: #27a7e7 !important; }
.theme .site-header .follow-inline .follow-icon.social-whatsapp { color: #25d366 !important; }
