/* Shared by the library, editors and embedded topic maps. */
:root {
  color-scheme: dark;
  --theme-paper: #171d25;
  --theme-surface: #1c242d;
  --theme-sidebar: #131921;
  --theme-reader: #151b23;
  --theme-ink: #eeeef2;
  --theme-muted: #a6b0be;
  --theme-line: #34404e;
  --theme-line-strong: #55647a;
  --theme-primary: #9dbbe8;
  --theme-secondary: #eba48f;
  --theme-secondary-text: #f2bba8;
  --theme-tertiary: #9bb7c5;
  --theme-primary-soft: #263443;
  --theme-primary-wash: #1b2632;
  --theme-primary-hover: #35465a;
  --theme-secondary-soft: #42313d;
  --theme-secondary-wash: #2c252f;
  --theme-secondary-line: #775461;
  --theme-secondary-hover: #594051;
  --theme-on-accent: #1a1d29;
  --theme-highlight: #403b2d;
  --branch-blue: #9dbbe8; --branch-purple: #c6b0ff; --branch-teal: #aab8da; --branch-coral: #eba48f; --branch-gold: #d6aecb;
  --branch-blue-soft: #263443; --branch-purple-soft: #3b3055; --branch-teal-soft: #2b344c; --branch-coral-soft: #49332f; --branch-gold-soft: #42313d;
  --theme-hero: linear-gradient(120deg,#111a39,#30234f 55%,#76164e);
  --theme-hero-ink: #faf4fc;
  --theme-hero-muted: #d6bfd9;
  --theme-green: var(--theme-primary);
  --theme-sage: var(--theme-tertiary);
  --theme-green-soft: var(--theme-primary-soft);
  --theme-green-wash: var(--theme-primary-wash);
  --theme-green-hover: var(--theme-primary-hover);
  --theme-coral: var(--theme-secondary);
  --theme-coral-text: var(--theme-secondary-text);
  --theme-coral-soft: var(--theme-secondary-soft);
  --theme-coral-wash: var(--theme-secondary-wash);
  --theme-coral-line: var(--theme-secondary-line);
  --theme-coral-hover: var(--theme-secondary-hover);
}
:root[data-appearance="ocean"] {
  --branch-blue: #99cde7; --branch-purple: #a5bfdf; --branch-teal: #8ed7bd; --branch-coral: #a4d8d2; --branch-gold: #b1c7e0;
  --branch-blue-soft: #233b45; --branch-purple-soft: #29394c; --branch-teal-soft: #24433f; --branch-coral-soft: #284340; --branch-gold-soft: #2b3a4a;
  --theme-paper: #14232b; --theme-surface: #192b34; --theme-sidebar: #101e26; --theme-reader: #13232b;
  --theme-primary: #99cde7; --theme-secondary: #8ed7bd; --theme-secondary-text: #b0e4d1;
  --theme-primary-soft: #233b45; --theme-primary-wash: #192e38; --theme-primary-hover: #304f5d;
  --theme-secondary-soft: #24433f; --theme-secondary-wash: #1b3434; --theme-secondary-line: #4c756b; --theme-secondary-hover: #33564e;
  --theme-hero: linear-gradient(115deg,#0c203d,#174661 55%,#236d66); --theme-hero-muted: #b0d6d6;
}
:root[data-appearance="paper"] {
  color-scheme: light;
  --theme-paper: #f3f6fb; --theme-surface: #ffffff; --theme-sidebar: #eaf0f8; --theme-reader: #ffffff;
  --theme-ink: #182c48; --theme-muted: #526580; --theme-line: #d5deeb; --theme-line-strong: #92a6c2;
  --theme-primary: #28569c; --theme-secondary: #294e89; --theme-secondary-text: #294e89; --theme-tertiary: #276f78;
  --theme-primary-soft: #e5eefb; --theme-primary-wash: #f0f5fd; --theme-primary-hover: #d2e2f7;
  --theme-secondary-soft: #e8ecfa; --theme-secondary-wash: #f2f4fc; --theme-secondary-line: #a8b8db; --theme-secondary-hover: #dce4f6;
  --theme-on-accent: #ffffff; --theme-highlight: #edf1fc;
  --branch-blue: #255ca2; --branch-purple: #495b91; --branch-teal: #386780; --branch-coral: #294e89; --branch-gold: #516383;
  --branch-blue-soft: #e7f0fe; --branch-purple-soft: #e9edfa; --branch-teal-soft: #e5eff5; --branch-coral-soft: #e0e9f8; --branch-gold-soft: #ecf0f7;
  --theme-hero: linear-gradient(115deg,#e7f0ff,#edf0fc 58%,#e4f1f6); --theme-hero-ink: #182e52; --theme-hero-muted: #4d617f;
}
/* Document-inspired alternatives. Existing palettes above remain unchanged. */
:root[data-appearance="cyan"] {
  color-scheme: light;
  --theme-paper: #ffffff; --theme-surface: #ffffff; --theme-sidebar: #f4f8fa; --theme-reader: #ffffff;
  --theme-ink: #182329; --theme-muted: #55646c; --theme-line: #dce4e8; --theme-line-strong: #92a9b7;
  --theme-primary: #116ab2; --theme-secondary: #2058aa; --theme-secondary-text: #2058aa; --theme-tertiary: #08766d;
  --theme-primary-soft: #eaf5fe; --theme-primary-wash: #f6fbff; --theme-primary-hover: #d9ecfb;
  --theme-secondary-soft: #eaf0fc; --theme-secondary-wash: #f7f9ff; --theme-secondary-line: #a3bfe7; --theme-secondary-hover: #dbe7fb;
  --theme-on-accent: #ffffff; --theme-highlight: #eaf6fa;
  --theme-hero: #ffffff; --theme-hero-ink: #182329; --theme-hero-muted: #55646c;
  --branch-blue: #116ab2; --branch-purple: #384cab; --branch-teal: #08766d; --branch-coral: #116ab2; --branch-gold: #384cab;
  --branch-blue-soft: #eaf5fe; --branch-purple-soft: #edf0fd; --branch-teal-soft: #e4f7f1; --branch-coral-soft: #eaf5fe; --branch-gold-soft: #edf0fd;
  --document-accent: #139ee6; --document-ribbon: linear-gradient(90deg,#10bca7,#139ee6,#4962e2);
}
:root[data-appearance="rose"] {
  color-scheme: light;
  --theme-paper: #fff9f5; --theme-surface: #fffdfb; --theme-sidebar: #f7e7df; --theme-reader: #fffdfb;
  --theme-ink: #46352f; --theme-muted: #766057; --theme-line: #ead3c7; --theme-line-strong: #ba9381;
  --theme-primary: #a34b2d; --theme-secondary: #99503b; --theme-secondary-text: #99503b; --theme-tertiary: #836128;
  --theme-primary-soft: #fff0e9; --theme-primary-wash: #fffaf7; --theme-primary-hover: #f9dfd5;
  --theme-secondary-soft: #f9e4dc; --theme-secondary-wash: #fff0e8; --theme-secondary-line: #d7a48f; --theme-secondary-hover: #f0d1c2;
  --theme-on-accent: #ffffff; --theme-highlight: #fff0e9;
  --theme-hero: linear-gradient(115deg,#fae5d4,#fbeee7 58%,#efd5d1); --theme-hero-ink: #46352f; --theme-hero-muted: #766057;
  --branch-blue: #a34b2d; --branch-purple: #96535e; --branch-teal: #805647; --branch-coral: #99503b; --branch-gold: #8e5a4b;
  --branch-blue-soft: #fae5d4; --branch-purple-soft: #f5e1e3; --branch-teal-soft: #f0e2da; --branch-coral-soft: #f9e4dc; --branch-gold-soft: #f5e9e1;
  --document-accent: #eb6545; --document-ribbon: linear-gradient(90deg,#f47743,#e24c61,#d43c81);
}
:root[data-appearance="editorial"] {
  color-scheme: light;
  --theme-paper: #f7f8fd; --theme-surface: #ffffff; --theme-sidebar: #e9edf9; --theme-reader: #ffffff;
  --theme-ink: #303c5c; --theme-muted: #606a83; --theme-line: #d9dfef; --theme-line-strong: #9aa8c9;
  --theme-primary: #3f61a3; --theme-secondary: #a74670; --theme-secondary-text: #a74670; --theme-tertiary: #68619d;
  --theme-primary-soft: #e8eefc; --theme-primary-wash: #f2f5ff; --theme-primary-hover: #d8e1f8;
  --theme-secondary-soft: #fbeaf1; --theme-secondary-wash: #fff8fb; --theme-secondary-line: #edb5cc; --theme-secondary-hover: #f5d8e5;
  --theme-on-accent: #ffffff; --theme-highlight: #fbeaf1;
  --theme-hero: linear-gradient(115deg,#e1eafb,#ecedf9 55%,#f5dfe9); --theme-hero-ink: #303c5c; --theme-hero-muted: #606a83;
  --branch-blue: #3f61a3; --branch-purple: #a04069; --branch-teal: #68619d; --branch-coral: #925773; --branch-gold: #506c9b;
  --branch-blue-soft: #e1eafb; --branch-purple-soft: #f5dfe9; --branch-teal-soft: #ece8f6; --branch-coral-soft: #f7e8ee; --branch-gold-soft: #edf1fb;
  --document-accent: #27a7e8; --document-ribbon: linear-gradient(90deg,#27a7e8 0 60%,#d84f84 60% 100%);
}
:root[data-appearance="alpine"] {
  color-scheme: light;
  --theme-paper: #e8e6ec; --theme-surface: #f3eff2; --theme-sidebar: #d8d7e3; --theme-reader: #faf7f6;
  --theme-ink: #293b58; --theme-muted: #5d6076; --theme-line: #c8c6d5; --theme-line-strong: #8d91aa;
  --theme-primary: #3e577d; --theme-secondary: #ab4e3b; --theme-secondary-text: #a44837; --theme-tertiary: #705e83;
  --theme-primary-soft: #dce3ef; --theme-primary-wash: #e8eaf2; --theme-primary-hover: #cbd6e6;
  --theme-secondary-soft: #f2d8d0; --theme-secondary-wash: #f6e6df; --theme-secondary-line: #ce9484; --theme-secondary-hover: #edc7ba;
  --theme-on-accent: #ffffff; --theme-highlight: #f4e0d6;
  --theme-hero: linear-gradient(115deg,#c9ccdd,#d8cbd6 52%,#efb7a4); --theme-hero-ink: #293b58; --theme-hero-muted: #55566e;
  --branch-blue: #3e577d; --branch-purple: #69567d; --branch-teal: #555d80; --branch-coral: #9c4131; --branch-gold: #874c4b;
  --branch-blue-soft: #dce3ef; --branch-purple-soft: #e6dce9; --branch-teal-soft: #dddfea; --branch-coral-soft: #f2d8d0; --branch-gold-soft: #ebd8d8;
}
