/* Preview skins. cream = page :root. Others overlay chrome + dividers. */

html[data-rs-skin="paper"] {
  --bg: #ffffff;
  --cream: #ffffff;
  --cream-soft: #f6f4f1;
  --line: #eee6de;
  --caramel-light: #fff7f0;
}

html[data-rs-skin="paper"] header {
  background: rgba(255, 255, 255, .96);
}

html[data-rs-skin="paper"] header .menu.rs-open {
  background: var(--cream);
}

html[data-rs-skin="market"] {
  --bg: #ffffff;
  --cream: #ffffff;
  --cream-soft: #f7f5f4;
  --line: #f0d0cc;
  --caramel: #e62e04;
  --caramel-dark: #c42703;
  --caramel-light: #fff5f2;
  --caramel-border: #f5b8a8;
}

html[data-rs-skin="plant"] {
  --bg: #f3f3f1;
  --cream: #ffffff;
  --cream-soft: #eeeeec;
  --line: #d9d9d4;
  --ink: #1a1a1a;
  --text: #3a3a3a;
  --muted: #6e6e6e;
  --caramel-light: #fff7f0;
  --caramel-border: #e2c4b0;
  --dark-footer: #2a2a2a;
  --dark-footer-line: #444440;
  --dark-footer-text: #c8c8c4;
}

html[data-rs-skin="biz"] {
  --bg: #ffffff;
  --cream: #ffffff;
  --cream-soft: #f3f6fa;
  --line: #d5deea;
  --ink: #0f2744;
  --text: #3d4d63;
  --muted: #6b7c91;
  --caramel: #c26a3a;
  --caramel-dark: #a4532c;
  --caramel-light: #fff7f0;
  --caramel-border: #d7c4b0;
  --dark-footer: #0f2744;
  --dark-footer-line: #1e3a5f;
  --dark-footer-text: #c5d0de;
}

html[data-rs-skin="market"] .topbar {
  background: #fff;
  color: #444;
  border-bottom: 1px solid var(--line);
}

html[data-rs-skin="plant"] .topbar,
html[data-rs-skin="biz"] .topbar {
  color: #d0d4d8;
}

html[data-rs-skin="market"] header {
  background: var(--caramel);
  border-bottom: 0;
}

html[data-rs-skin="plant"] header {
  background: #2a2a2a;
  border-bottom: 0;
}

html[data-rs-skin="biz"] header {
  background: #0f2744;
  border-bottom: 0;
}

html[data-rs-skin="market"] header .logo,
html[data-rs-skin="plant"] header .logo,
html[data-rs-skin="biz"] header .logo,
html[data-rs-skin="market"] header .menu,
html[data-rs-skin="plant"] header .menu,
html[data-rs-skin="biz"] header .menu,
html[data-rs-skin="market"] header .menu > a,
html[data-rs-skin="plant"] header .menu > a,
html[data-rs-skin="biz"] header .menu > a,
html[data-rs-skin="market"] header .nav-item > a,
html[data-rs-skin="plant"] header .nav-item > a,
html[data-rs-skin="biz"] header .nav-item > a {
  color: #fff;
}

html[data-rs-skin="market"] header .menu > a:hover,
html[data-rs-skin="plant"] header .menu > a:hover,
html[data-rs-skin="biz"] header .menu > a:hover,
html[data-rs-skin="market"] header .nav-item > a:hover,
html[data-rs-skin="plant"] header .nav-item > a:hover,
html[data-rs-skin="biz"] header .nav-item > a:hover,
html[data-rs-skin="market"] header .menu > a.active,
html[data-rs-skin="plant"] header .menu > a.active,
html[data-rs-skin="biz"] header .menu > a.active,
html[data-rs-skin="market"] header .nav-item > a.active,
html[data-rs-skin="plant"] header .nav-item > a.active,
html[data-rs-skin="biz"] header .nav-item > a.active {
  color: #fff;
}

html[data-rs-skin="market"] header .menu > a:hover::after,
html[data-rs-skin="plant"] header .menu > a:hover::after,
html[data-rs-skin="biz"] header .menu > a:hover::after,
html[data-rs-skin="market"] header .nav-item > a:hover::after,
html[data-rs-skin="plant"] header .nav-item > a:hover::after,
html[data-rs-skin="biz"] header .nav-item > a:hover::after,
html[data-rs-skin="market"] header .menu > a.active::after,
html[data-rs-skin="plant"] header .menu > a.active::after,
html[data-rs-skin="biz"] header .menu > a.active::after,
html[data-rs-skin="market"] header .nav-item > a.active::after,
html[data-rs-skin="plant"] header .nav-item > a.active::after,
html[data-rs-skin="biz"] header .nav-item > a.active::after {
  background: #fff;
}

html[data-rs-skin="market"] header .logo .mark {
  background: #fff;
  color: var(--caramel);
}

html[data-rs-skin="plant"] header .logo .mark,
html[data-rs-skin="biz"] header .logo .mark {
  background: var(--caramel);
  color: #fff;
}

html[data-rs-skin="market"] header .btn {
  background: #fff;
  color: var(--caramel);
}

html[data-rs-skin="market"] header .btn:hover {
  background: #fff7f5;
  color: var(--caramel-dark);
}

html[data-rs-skin="market"] header .dropdown,
html[data-rs-skin="plant"] header .dropdown,
html[data-rs-skin="biz"] header .dropdown {
  background: #fff;
}

html[data-rs-skin="market"] header .dropdown a,
html[data-rs-skin="plant"] header .dropdown a,
html[data-rs-skin="biz"] header .dropdown a {
  color: var(--ink, #2b211c);
}

html[data-rs-skin="market"] header .dropdown a:hover,
html[data-rs-skin="plant"] header .dropdown a:hover,
html[data-rs-skin="biz"] header .dropdown a:hover {
  background: var(--caramel-light);
  color: var(--caramel);
}

html[data-rs-skin="market"] .rs-menu-toggle,
html[data-rs-skin="plant"] .rs-menu-toggle,
html[data-rs-skin="biz"] .rs-menu-toggle {
  border-color: rgba(255, 255, 255, .45);
  background: transparent;
}

html[data-rs-skin="market"] .rs-menu-toggle span,
html[data-rs-skin="plant"] .rs-menu-toggle span,
html[data-rs-skin="biz"] .rs-menu-toggle span {
  background: #fff;
}

html[data-rs-skin="market"] header .menu.rs-open {
  background: var(--caramel);
  border-color: var(--caramel-dark);
}

html[data-rs-skin="plant"] header .menu.rs-open {
  background: #2a2a2a;
  border-color: #444;
}

html[data-rs-skin="biz"] header .menu.rs-open {
  background: #0f2744;
  border-color: #1e3a5f;
}

html[data-rs-skin="market"] header .menu.rs-open .dropdown a,
html[data-rs-skin="plant"] header .menu.rs-open .dropdown a,
html[data-rs-skin="biz"] header .menu.rs-open .dropdown a {
  color: var(--ink, #2b211c);
}

html[data-rs-skin="paper"] .rs-site .rs-paper-wave,
html[data-rs-skin="market"] .rs-site .rs-paper-wave,
html[data-rs-skin="plant"] .rs-site .rs-paper-wave,
html[data-rs-skin="biz"] .rs-site .rs-paper-wave {
  display: none;
}

html[data-rs-skin="paper"] .rs-page-home section.rs-paper.rs-mold,
html[data-rs-skin="paper"] .rs-page-home section.rs-paper.rs-foil,
html[data-rs-skin="market"] .rs-page-home section.rs-paper.rs-mold,
html[data-rs-skin="market"] .rs-page-home section.rs-paper.rs-foil,
html[data-rs-skin="plant"] .rs-page-home section.rs-paper.rs-mold,
html[data-rs-skin="plant"] .rs-page-home section.rs-paper.rs-foil,
html[data-rs-skin="biz"] .rs-page-home section.rs-paper.rs-mold,
html[data-rs-skin="biz"] .rs-page-home section.rs-paper.rs-foil {
  background: var(--cream);
}

html[data-rs-skin="paper"] .rs-page-home section.soft.rs-paper,
html[data-rs-skin="market"] .rs-page-home section.soft.rs-paper,
html[data-rs-skin="plant"] .rs-page-home section.soft.rs-paper,
html[data-rs-skin="biz"] .rs-page-home section.soft.rs-paper {
  background: var(--cream-soft);
}

html[data-rs-skin="paper"] .rs-site section:is(.rs-mold, .rs-foil, .rs-paper) + section:not(.hero):not(.page-hero)::before,
html[data-rs-skin="paper"] .rs-site section:is(.rs-mold, .rs-foil, .rs-paper) + section:not(.hero):not(.page-hero)::after,
html[data-rs-skin="market"] .rs-site section:is(.rs-mold, .rs-foil, .rs-paper) + section:not(.hero):not(.page-hero)::before,
html[data-rs-skin="market"] .rs-site section:is(.rs-mold, .rs-foil, .rs-paper) + section:not(.hero):not(.page-hero)::after,
html[data-rs-skin="plant"] .rs-site section:is(.rs-mold, .rs-foil, .rs-paper) + section:not(.hero):not(.page-hero)::before,
html[data-rs-skin="plant"] .rs-site section:is(.rs-mold, .rs-foil, .rs-paper) + section:not(.hero):not(.page-hero)::after,
html[data-rs-skin="biz"] .rs-site section:is(.rs-mold, .rs-foil, .rs-paper) + section:not(.hero):not(.page-hero)::before,
html[data-rs-skin="biz"] .rs-site section:is(.rs-mold, .rs-foil, .rs-paper) + section:not(.hero):not(.page-hero)::after {
  display: block;
}

html[data-rs-skin="paper"] .rs-site section:not(.hero):not(.page-hero)::before,
html[data-rs-skin="paper"] .rs-site section.rs-paper::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(420px, 56%);
  height: 1px;
  pointer-events: none;
  z-index: 4;
  transform: translate(-50%, -50%);
  background: var(--line);
  background-image: none;
  filter: none;
}

html[data-rs-skin="paper"] .rs-site section:not(.hero):not(.page-hero)::after,
html[data-rs-skin="paper"] .rs-site section.rs-paper::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 18px;
  height: 18px;
  z-index: 5;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fff 0 2px, transparent 2.4px),
    radial-gradient(circle at 50% 55%, #fff9f3 0 38%, #f4d4b4 62%, #e4b089 100%);
  border: 2px solid var(--caramel, #c26a3a);
  box-shadow:
    0 0 0 4px var(--cream, #fff),
    0 0 0 5px var(--line, #eee6de);
  filter: none;
}

html[data-rs-skin="paper"] .rs-site section.soft:not(.hero):not(.page-hero)::after,
html[data-rs-skin="paper"] .rs-site section.rs-paper.soft::after {
  box-shadow:
    0 0 0 4px var(--cream-soft, #f6f4f1),
    0 0 0 5px var(--line, #eee6de);
}

html[data-rs-skin="paper"] .rs-site .page-hero.has-photo::before {
  left: 50%;
  right: auto;
  bottom: -1px;
  width: min(420px, 56%);
  height: 1px;
  transform: translateX(-50%);
  background: var(--line);
  filter: none;
}

html[data-rs-skin="paper"] .rs-site .page-hero.has-photo::after {
  bottom: -9px;
  width: 18px;
  height: 18px;
  box-shadow:
    0 0 0 4px var(--cream, #fff),
    0 0 0 5px var(--line, #eee6de);
}

html[data-rs-skin="market"] .rs-site section:not(.hero):not(.page-hero)::before,
html[data-rs-skin="market"] .rs-site section.rs-paper::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  z-index: 4;
  transform: translateY(-50%);
  background: var(--caramel);
  background-image: none;
  filter: none;
}

html[data-rs-skin="market"] .rs-site section:not(.hero):not(.page-hero)::after,
html[data-rs-skin="market"] .rs-site section.rs-paper::after,
html[data-rs-skin="market"] .rs-site .page-hero.has-photo::after {
  display: none;
}

html[data-rs-skin="market"] .rs-site .page-hero.has-photo::before {
  left: 0;
  right: 0;
  bottom: -2px;
  width: auto;
  height: 3px;
  background: var(--caramel);
  filter: none;
}

html[data-rs-skin="plant"] .rs-site section:not(.hero):not(.page-hero)::before,
html[data-rs-skin="plant"] .rs-site section.rs-paper::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(720px, 88%);
  height: 8px;
  pointer-events: none;
  z-index: 4;
  transform: translate(-50%, -50%);
  background-image: radial-gradient(circle, #b5b5b0 1.15px, transparent 1.35px);
  background-size: 11px 8px;
  background-repeat: repeat-x;
  background-position: 0 50%;
  background-color: transparent;
  filter: none;
}

html[data-rs-skin="plant"] .rs-site section:not(.hero):not(.page-hero)::after,
html[data-rs-skin="plant"] .rs-site section.rs-paper::after,
html[data-rs-skin="plant"] .rs-site .page-hero.has-photo::after {
  display: none;
}

html[data-rs-skin="plant"] .rs-site .page-hero.has-photo::before {
  left: 50%;
  right: auto;
  bottom: -4px;
  width: min(720px, 88%);
  height: 8px;
  transform: translateX(-50%);
  background-image: radial-gradient(circle, #b5b5b0 1.15px, transparent 1.35px);
  background-size: 11px 8px;
  background-repeat: repeat-x;
  background-position: 0 50%;
  background-color: transparent;
  filter: none;
}

html[data-rs-skin="biz"] .rs-site section:not(.hero):not(.page-hero)::before,
html[data-rs-skin="biz"] .rs-site section.rs-paper::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(280px, 42%);
  height: 5px;
  pointer-events: none;
  z-index: 4;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(#0f2744, #0f2744) 0 0 / 100% 1px no-repeat,
    linear-gradient(#0f2744, #0f2744) 0 100% / 100% 1px no-repeat;
  filter: none;
}

html[data-rs-skin="biz"] .rs-site section:not(.hero):not(.page-hero)::after,
html[data-rs-skin="biz"] .rs-site section.rs-paper::after,
html[data-rs-skin="biz"] .rs-site .page-hero.has-photo::after {
  display: none;
}

html[data-rs-skin="biz"] .rs-site .page-hero.has-photo::before {
  left: 50%;
  right: auto;
  bottom: -1px;
  width: min(280px, 42%);
  height: 5px;
  transform: translateX(-50%);
  background:
    linear-gradient(#0f2744, #0f2744) 0 0 / 100% 1px no-repeat,
    linear-gradient(#0f2744, #0f2744) 0 100% / 100% 1px no-repeat;
  filter: none;
}

.rs-skin-switcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line, #eadfd6);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(43, 33, 28, .14);
}

.rs-skin-switcher span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #8a7b71);
  padding: 0 4px 2px;
}

.rs-skin-switcher button {
  appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  line-height: 1.2;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink, #2b211c);
  cursor: pointer;
}

.rs-skin-switcher button:hover {
  background: var(--cream-soft, #fff6ee);
}

.rs-skin-switcher button.is-on {
  background: var(--caramel, #c26a3a);
  color: #fff;
}

@media (max-width: 720px) {
  .rs-skin-switcher {
    right: 10px;
    bottom: 10px;
    padding: 6px;
  }
  .rs-skin-switcher button {
    font-size: 12px;
    padding: 6px 10px;
  }
}
