/* Map the V5 identity into native Blocksy components without changing saved options. */
.rd-v5-editorial {
  --theme-palette-color-1: var(--rd-ink);
  --theme-palette-color-2: var(--rd-secondary);
  --theme-palette-color-3: var(--rd-text);
  --theme-palette-color-4: var(--rd-ink);
  --theme-palette-color-5: var(--rd-line);
  --theme-palette-color-6: var(--rd-light);
  --theme-palette-color-7: var(--rd-bg);
  --theme-palette-color-8: #fff;
  --theme-text-color: var(--rd-text);
  --theme-headings-color: var(--rd-ink);
  --theme-link-initial-color: var(--rd-ink);
  --theme-link-hover-color: var(--rd-secondary);
  --theme-link-active-color: var(--rd-secondary);
  --theme-border-color: var(--rd-line);
  --theme-selection-background-color: var(--rd-ink);
  --theme-selection-text-color: #fff;
  --theme-button-background-initial-color: var(--rd-button);
  --theme-button-background-hover-color: var(--rd-secondary);
  --theme-button-text-initial-color: #fff;
  --theme-button-text-hover-color: #fff;
  --theme-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --paletteColor1: var(--rd-ink);
  --paletteColor2: var(--rd-secondary);
  --paletteColor3: var(--rd-text);
  --paletteColor4: var(--rd-ink);
  --paletteColor5: var(--rd-line);
  --paletteColor6: var(--rd-light);
  --paletteColor7: var(--rd-bg);
  --paletteColor8: #fff;
}
.rd-v5-editorial #main {background:var(--rd-bg);color:var(--rd-text)}
.rd-v5-editorial :is(#header,#footer) {color:var(--rd-text)}
.rd-v5-editorial #header [data-row],
.rd-v5-editorial #header [data-row]>div {background-color:#fff;background-image:none}
.rd-v5-editorial #header {border-bottom:1px solid var(--rd-line)}
/* Keep native responsive/sticky sizing, while containing oversized saved logos. */
.rd-v5-editorial :is(#header,#footer) .site-logo-container {
  max-height:64px;
  max-width:100%;
  flex-shrink:0;
}
.rd-v5-editorial :is(#header,#footer) .site-logo-container :is(img,svg,picture) {
  width:auto;
  height:inherit;
  max-height:64px;
  max-width:100%;
  object-fit:contain;
  border-radius:0;
}
.rd-v5-editorial #header :is(.site-title,.ct-menu-link,.ct-header-text,.ct-label) {
  --theme-link-initial-color:var(--rd-ink);
  --theme-link-hover-color:var(--rd-secondary);
  --theme-link-active-color:var(--rd-secondary);
}
.rd-v5-editorial #header :is(.sub-menu,[data-row]) {--theme-icon-color:var(--rd-ink);--theme-icon-hover-color:var(--rd-secondary)}
.rd-v5-editorial #header .sub-menu {background:#fff;--dropdown-divider:1px solid var(--rd-line)}
.rd-v5-editorial #header .site-title {font-size:clamp(19px,2vw,25px);overflow-wrap:anywhere}
.rd-v5-editorial #header .site-description {color:var(--rd-secondary)}
.rd-v5-editorial #footer,
.rd-v5-editorial #footer [data-row] {background-color:#fff;background-image:none}
.rd-v5-editorial #footer {border-top:1px solid var(--rd-line)}
.rd-v5-editorial #footer :is(a,.ct-footer-copyright) {color:var(--rd-secondary)}
.rd-v5-editorial #offcanvas .ct-panel-inner {background:var(--rd-ink);color:#fff}
.rd-v5-editorial #offcanvas :is(.ct-menu-link,.ct-toggle-close) {
  --theme-link-initial-color:#fff;
  --theme-link-hover-color:var(--rd-light);
  --theme-link-active-color:var(--rd-light);
  --theme-icon-color:#fff;
  --theme-icon-hover-color:var(--rd-light);
}
.rd-v5-editorial #search-modal {background:var(--rd-ink)}
.rd-v5-editorial .rd-prose {color:var(--rd-text)}
@media(max-width:999px) {
  .rd-v5-editorial :is(#header,#footer) .site-logo-container,
  .rd-v5-editorial :is(#header,#footer) .site-logo-container :is(img,svg,picture) {max-height:46px}
}
