[data-digilib-theme="forest"] {
  --theme-deep: #113b32;
  --theme-main: #276952;
  --theme-ink: #18382e;
  --theme-muted: #49635a;
  --theme-paper: #f4f7f0;
  --theme-wash: #e3f3e9;
  --theme-glow: #c4ebdf;
  --theme-line: #c9dece;
  --theme-accent: #f6d487;
}
[data-digilib-theme="ocean"] {
  --theme-deep: #122d4c;
  --theme-main: #245984;
  --theme-ink: #182f47;
  --theme-muted: #405a70;
  --theme-paper: #f1f7fb;
  --theme-wash: #e3eff8;
  --theme-glow: #b9dfef;
  --theme-line: #c5d9e8;
  --theme-accent: #a8ecfb;
}
[data-digilib-theme="parchment"] {
  --theme-deep: #482a1e;
  --theme-main: #77402a;
  --theme-ink: #3e2920;
  --theme-muted: #634b40;
  --theme-paper: #fbf5e9;
  --theme-wash: #f5e9d7;
  --theme-glow: #f1d4ad;
  --theme-line: #e4d2bd;
  --theme-accent: #ffd292;
}
[data-digilib-theme="iris"] {
  --theme-deep: #352345;
  --theme-main: #60417c;
  --theme-ink: #342641;
  --theme-muted: #5e4d6d;
  --theme-paper: #f8f4fa;
  --theme-wash: #f0e8f6;
  --theme-glow: #e2d1f4;
  --theme-line: #ddd0e6;
  --theme-accent: #e9c8ff;
}

/* Hutan Zamrud uses the original colors on the live pages. */
.catalog[data-digilib-theme]:not([data-digilib-theme="forest"]),
.digilib-admin[data-digilib-theme]:not([data-digilib-theme="forest"]),
.admin-module-popup[data-digilib-theme]:not([data-digilib-theme="forest"]) {
  --ink: var(--theme-ink);
  --muted: var(--theme-muted);
  --forest: var(--theme-deep);
  --mint: var(--theme-wash);
  --line: var(--theme-line);
  --paper: var(--theme-paper);
  --module-ink: var(--theme-ink);
  --module-muted: var(--theme-muted);
  --module-primary: var(--theme-main);
  --module-dark: var(--theme-deep);
  --module-line: var(--theme-line);
  --module-wash: var(--theme-wash);
}

.catalog[data-digilib-theme]:not([data-digilib-theme="forest"])::before {
  background-image: radial-gradient(ellipse at 12% 17%, var(--theme-glow), transparent 57%),
    radial-gradient(ellipse at 77% 65%, var(--theme-wash), transparent 54%);
}
.catalog[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(.catalog-header, .catalog-footer) {
  background: color-mix(in srgb, var(--theme-paper) 90%, transparent);
  border-color: var(--theme-line);
  box-shadow: 0 3px 18px color-mix(in srgb, var(--theme-deep) 12%, transparent);
}
.catalog[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(.catalog-hero, .record-hero) {
  background: linear-gradient(130deg, var(--theme-deep), var(--theme-main));
  border-color: var(--theme-line);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--theme-deep) 30%, transparent);
}
.catalog[data-digilib-theme]:not([data-digilib-theme="forest"]) .catalog-hero::before {
  background-image: radial-gradient(ellipse at 20% 100%, color-mix(in srgb, var(--theme-glow) 28%, transparent), transparent 59%),
    radial-gradient(ellipse at 73% 0%, color-mix(in srgb, var(--theme-accent) 22%, transparent), transparent 57%),
    radial-gradient(#ffffff23 1px, transparent 1.5px);
}
.catalog[data-digilib-theme]:not([data-digilib-theme="forest"]) .catalog-hero-media::after {
  background: linear-gradient(90deg, var(--theme-deep), transparent 70%),
    linear-gradient(0deg, color-mix(in srgb, var(--theme-deep) 62%, transparent), transparent 50%);
}
.catalog[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(.catalog-hero h1 em, .record-badges span) { color: var(--theme-accent); }
.catalog[data-digilib-theme]:not([data-digilib-theme="forest"]) .catalog-hero-controls {
  background: color-mix(in srgb, var(--theme-deep) 94%, transparent);
}
.catalog[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(.catalog-nav a[aria-current], .catalog-nav a:hover, .catalog-account, .catalog-subjects a, .catalog-panel--intro, .catalog-librarian-intro, .catalog-profile-avatar, .catalog-panel-icon) {
  background: linear-gradient(140deg, #fff, var(--theme-wash));
  border-color: var(--theme-line);
  color: var(--theme-deep);
  box-shadow: inset 0 1px #fff, 0 2px 0 var(--theme-line);
}
.catalog[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(.catalog-card, .catalog-panel, .repository-visitors) {
  border-color: var(--theme-line);
  box-shadow: 0 5px 16px color-mix(in srgb, var(--theme-deep) 12%, transparent);
}
.catalog[data-digilib-theme]:not([data-digilib-theme="forest"]) .catalog-card { background: linear-gradient(150deg, white, var(--theme-paper)); }
.catalog[data-digilib-theme]:not([data-digilib-theme="forest"]) .catalog-search button {
  color: var(--theme-deep);
  background: linear-gradient(#fff, var(--theme-accent));
  border-color: var(--theme-line);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--theme-main) 40%, var(--theme-accent));
}

.digilib-admin[data-digilib-theme]:not([data-digilib-theme="forest"]) {
  background: radial-gradient(ellipse at 85% 5%, var(--theme-glow), transparent 55%), var(--theme-paper);
}
.digilib-admin[data-digilib-theme]:not([data-digilib-theme="forest"]) .admin-shell-header {
  background: linear-gradient(110deg, var(--theme-deep), var(--theme-main));
  border-color: var(--theme-line);
}
.digilib-admin[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(.admin-shell-menu, #mainContent) {
  background: color-mix(in srgb, white 65%, var(--theme-paper));
  border-color: var(--theme-line);
}
.digilib-admin[data-digilib-theme]:not([data-digilib-theme="forest"]) .admin-module-path:not([hidden]) {
  background: var(--theme-paper);
  border-color: var(--theme-line);
}
.digilib-admin[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(.admin-menu-toggle, #sidepan a, #sidepan button, .admin-account-menu a, .admin-account-menu button, .admin-shell-menu .nav > li > :is(a, button) > i, .admin-account-menu > a > span) {
  color: var(--theme-deep);
  border-color: var(--theme-line);
}
.digilib-admin[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(#sidepan a:hover, #sidepan .open > button, #sidepan a[aria-current], .admin-account-menu :is(a, button):hover, .admin-account-menu a[aria-current]) {
  background: var(--theme-wash);
}
.digilib-admin[data-digilib-theme]:not([data-digilib-theme="forest"]) #sidepan button .caret { border-top-color: var(--theme-main); }
.digilib-admin[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(.repository-admin-heading h1, .repository-admin-overview, .repository-admin-overview h2) { color: var(--theme-ink); }
.digilib-admin[data-digilib-theme]:not([data-digilib-theme="forest"]) .repository-admin-overview dt { color: var(--theme-muted); }
.digilib-admin[data-digilib-theme]:not([data-digilib-theme="forest"]) .repository-admin-overview dl div {
  background: linear-gradient(#fff, var(--theme-paper));
  border-color: var(--theme-line);
}
.digilib-admin[data-digilib-theme]:not([data-digilib-theme="forest"]) .repository-admin-overview .visual {
  color: var(--theme-deep);
  background: var(--theme-wash);
  border-color: var(--theme-line);
}
:is(.catalog, .digilib-admin)[data-digilib-theme]:not([data-digilib-theme="forest"]) .repository-visitors {
  --visit-ink: var(--theme-ink);
  --visit-muted: var(--theme-muted);
  --visit-line: var(--theme-line);
  background: linear-gradient(145deg, #fff, var(--theme-paper));
}
:is(.catalog, .digilib-admin)[data-digilib-theme]:not([data-digilib-theme="forest"]) .repository-visitors-list thead th { background: var(--theme-wash); }

:is(.digilib-admin, .admin-module-popup)[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(#mainContent, #pageContent) .per_title {
  background: linear-gradient(110deg, var(--theme-deep), var(--theme-main)) !important;
}
:is(.digilib-admin, .admin-module-popup)[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(#mainContent, #pageContent) .alterCell2 { background: var(--theme-paper); }
:is(.digilib-admin, .admin-module-popup)[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(#mainContent, #pageContent) tr:hover > :is(.alterCell, .alterCell2) { background: var(--theme-wash); }
:is(.digilib-admin, .admin-module-popup)[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(#mainContent, #pageContent) :is(.btn-primary, .btn-success, #idSearch, input[type=submit], button[type=submit]):not(.btn-danger) {
  background: linear-gradient(var(--theme-main), var(--theme-deep));
}
.catalog[data-digilib-theme]:not([data-digilib-theme="forest"]) .catalog-page-action,
.digilib-admin[data-digilib-theme]:not([data-digilib-theme="forest"]) .catalog-page-action,
:is(.catalog, .digilib-admin)[data-digilib-theme]:not([data-digilib-theme="forest"]) .support-chat .support-chat-launch {
  background: linear-gradient(var(--theme-main), var(--theme-deep));
  color: white;
  border-color: var(--theme-deep);
  box-shadow: 0 3px 0 var(--theme-deep);
}
:is(.catalog, .digilib-admin)[data-digilib-theme]:not([data-digilib-theme="forest"]) .support-chat { --chat-accent: var(--theme-main); --chat-ink: var(--theme-ink); }
:is(.catalog, .digilib-admin, .admin-module-popup)[data-digilib-theme]:not([data-digilib-theme="forest"]) :is(a, button, input, select, textarea):focus-visible {
  outline-color: var(--theme-main);
}
