/* Presets change colors only; tenant templates and CMS settings remain independent. */
body {
  --canvas: #f7f9fc;
  --surface: #fff;
  --ink: #213047;
  --muted: #526379;
  --line: #dce5ef;
  --editorial-dark: #315d83;
  --palette-panel: #e8f3fa;
  --palette-panel-text: #25465e;
  --palette-art: #e4f2f8;
  --palette-header: rgb(255 255 255 / 94%);
  --palette-footer: #e9f2f8;
  --palette-footer-text: #29465b;
  --palette-footer-muted: #526b7b;
  --palette-placeholder: #e4f0f7;
  --palette-link: var(--primary-color);
  --palette-button: var(--primary-color);
}

body[data-palette="light"] {
  --primary-color: #315f91;
  --secondary-color: #eaf3fb;
}
body[data-palette="christmas"] {
  --primary-color: #9c3842;
  --secondary-color: #f8eeee;
  --canvas: #fcf8f6;
  --ink: #3a3031;
  --muted: #6c5959;
  --line: #ead9d7;
  --editorial-dark: #355f4b;
  --palette-panel: #e7f2e7;
  --palette-panel-text: #315347;
  --palette-art: #f3e4de;
  --palette-footer: #e4f0e5;
  --palette-footer-text: #315347;
  --palette-footer-muted: #52685b;
  --palette-placeholder: #f3e4de;
}
body[data-palette="mid_autumn"] {
  --primary-color: #745692;
  --secondary-color: #f2ecf8;
  --canvas: #fbf8fc;
  --ink: #362d42;
  --muted: #6b5d77;
  --line: #e8ddec;
  --editorial-dark: #725584;
  --palette-panel: #f2e7d4;
  --palette-panel-text: #644d42;
  --palette-art: #eee5f5;
  --palette-footer: #f0e9f5;
  --palette-footer-text: #554364;
  --palette-footer-muted: #6b5c77;
  --palette-placeholder: #eee5f5;
}
body[data-palette="mothers_day"] {
  --primary-color: #a44869;
  --secondary-color: #faedf2;
  --canvas: #fdf8fa;
  --ink: #462e39;
  --muted: #745c66;
  --line: #eedce4;
  --editorial-dark: #98576c;
  --palette-panel: #f9e4ec;
  --palette-panel-text: #704458;
  --palette-art: #f7e4ea;
  --palette-footer: #f7e9ee;
  --palette-footer-text: #684655;
  --palette-footer-muted: #765d68;
  --palette-placeholder: #f7e4ea;
}
body[data-palette="fathers_day"] {
  --primary-color: #315b83;
  --secondary-color: #eaf1f7;
  --canvas: #f6f9fc;
  --ink: #28374a;
  --muted: #596a7b;
  --line: #dce5ed;
  --editorial-dark: #3d5c7d;
  --palette-panel: #e2edf6;
  --palette-panel-text: #34516a;
  --palette-art: #dfeaf2;
  --palette-footer: #e5eef5;
  --palette-footer-text: #35526b;
  --palette-footer-muted: #506577;
  --palette-placeholder: #dfeaf2;
}
body[data-palette="promotion"] {
  --primary-color: #ac3d39;
  --secondary-color: #fff0e9;
  --canvas: #fffaf5;
  --ink: #46342e;
  --muted: #795f56;
  --line: #f0ddd1;
  --editorial-dark: #9b4e37;
  --palette-panel: #ffead9;
  --palette-panel-text: #7d4938;
  --palette-art: #ffe5d4;
  --palette-footer: #f9e9dc;
  --palette-footer-text: #734938;
  --palette-footer-muted: #7c6256;
  --palette-placeholder: #ffe5d4;
}
body[data-palette="halloween"] {
  --primary-color: #814f9b;
  --secondary-color: #f2eaf8;
  --canvas: #fbf8fc;
  --ink: #382e3f;
  --muted: #6c5b72;
  --line: #e8ddea;
  --editorial-dark: #765187;
  --palette-panel: #fae7d4;
  --palette-panel-text: #754d3b;
  --palette-art: #f8e6d5;
  --palette-footer: #ede5f1;
  --palette-footer-text: #5b4668;
  --palette-footer-muted: #715e79;
  --palette-placeholder: #f8e6d5;
}
body[data-palette="dragon_boat"] {
  --primary-color: #326b60;
  --secondary-color: #e8f4ef;
  --canvas: #f7fbf8;
  --ink: #263d36;
  --muted: #536d62;
  --line: #d9e8df;
  --editorial-dark: #3e7565;
  --palette-panel: #e0f0e2;
  --palette-panel-text: #345d4d;
  --palette-art: #e2f1e7;
  --palette-footer: #e6f1e9;
  --palette-footer-text: #345b4d;
  --palette-footer-muted: #4c685b;
  --palette-placeholder: #e2f1e7;
}
body[data-palette="dark"] {
  color-scheme: dark;
  --primary-color: #b6d2ff;
  --secondary-color: #283b50;
  --canvas: #17212d;
  --surface: #223141;
  --ink: #f1f5fb;
  --muted: #c1cedc;
  --line: #43556a;
  --editorial-dark: #c4daf4;
  --palette-panel: #304558;
  --palette-panel-text: #edf5ff;
  --palette-art: #354f60;
  --palette-header: rgb(34 49 65 / 96%);
  --palette-footer: #223343;
  --palette-footer-text: #f0f6fc;
  --palette-footer-muted: #c3d2e0;
  --palette-placeholder: #354f60;
  --palette-button: #315f91;
}

body { background: var(--canvas); color: var(--ink); }
a, .text-button, .eyebrow { color: var(--palette-link); }
a:hover { color: var(--ink); }
.button { background: var(--palette-button); }
.button-secondary { background: var(--surface); color: var(--ink); }
.site-header::before { background: var(--palette-header); }
.brand-mark { background: var(--palette-panel); color: var(--palette-panel-text); }
.hero-description, .hero-note, .home-marquee { color: var(--muted); }
.hero-art { background: var(--palette-art); color: var(--palette-panel-text); }
.art-orbit { border-color: currentColor; opacity: .18; }
.art-stamp { background: var(--surface); color: var(--ink); }
.home-marquee span:nth-child(even) { color: var(--editorial-dark); }
.destination-chip, .destination-chip:nth-child(n) { background: var(--palette-panel); color: var(--palette-panel-text); }
.destination-chip span { color: inherit; }
.steps-grid li > span { color: var(--muted); }
.tagline-reveal, .ai-prompt-teaser, .management-header { background: var(--palette-panel); }
.tagline-label, .tagline-reveal p, .tagline-reveal [data-reveal-word] { color: var(--palette-panel-text); }
.product-image-placeholder, .product-card:nth-child(n) .product-image-placeholder { background: var(--palette-placeholder); color: var(--palette-panel-text); }
.site-footer { background: var(--palette-footer); color: var(--palette-footer-text); }
.footer-brand, .footer-brand:hover, .footer-nav a:hover, .social-links a:hover { color: var(--palette-footer-text); }
.footer-brand span { color: var(--editorial-dark); }
.footer-intro p, .footer-nav a, .social-links a, .footer-layout .social-links, .footer-bottom { color: var(--palette-footer-muted); }
.footer-bottom { border-color: var(--line); }

body[data-palette="dark"] .primary-navigation { background-color: var(--surface); }
body[data-palette="dark"] .primary-navigation a,
body[data-palette="dark"] .blog-card time,
body[data-palette="dark"] .blog-byline,
body[data-palette="dark"] .blog-breadcrumb,
body[data-palette="dark"] .blog-summary,
body[data-palette="dark"] .ai-privacy-note { color: var(--muted); }
body[data-palette="dark"] .primary-navigation a[aria-current="page"] { color: var(--ink); }
body[data-palette="dark"] .primary-navigation .button { color: #fff; }
body[data-palette="dark"] .form-card input,
body[data-palette="dark"] .form-card select,
body[data-palette="dark"] .form-card textarea,
body[data-palette="dark"] main form input,
body[data-palette="dark"] main form select,
body[data-palette="dark"] main form textarea { background: var(--surface); border-color: var(--line); color: var(--ink); }
body[data-palette="dark"] .ai-chat-notice { background: #665426; color: #fff; }
body[data-palette="dark"] .error-message,
body[data-palette="dark"] .errorlist { color: #ffbaba; }
body[data-palette="dark"] .error-message { background: #592e35; border-color: #a65c67; }
body[data-palette="dark"] .message.success { background: #2b4a39; color: #e3f7e8; }
body[data-palette="dark"] .message.error { background: #592e35; color: #ffe9e9; }
body[data-palette="dark"] code, body[data-palette="dark"] .fulfillment-card code { background: #384b5d; color: var(--ink); }
body[data-palette="dark"] .hero-caption .button { background: #fff; color: #172033; }

@media (min-width: 961px) {
  body[data-palette="dark"] .primary-navigation { background: transparent; }
}
