:root {
  --ecb-brand-header: #121520;
  --ecb-brand-night: #151822;
  --ecb-brand-slate: #272c3b;
  --ecb-brand-light: #393f53;
  --ecb-brand-ink: #1c2130;
  --ecb-brand-muted: #535b6d;
  --ecb-brand-paper: #f8f8fa;
  --ecb-brand-mist: #edeef3;
  --ecb-brand-line: #d6dae3;
  --ecb-brand-cream: #f7f5f1;
  --ecb-brand-white: #faf9fb;
  --ecb-brand-night-copy: #dce0eb;
  --ecb-brand-night-muted: #b8c1d4;
  --ecb-brand-night-line: #b6bed344;
  --ecb-brand-blush: #f2c4d2;
  --ecb-brand-rose: #f380a9;
  --ecb-brand-heading-accent: #ff0066;
  --ecb-brand-rose-wash: #f8edf2;
  --ecb-brand-berry: #b90d49;
  --ecb-brand-berry-hover: #97103e;
  --ecb-brand-panel: linear-gradient(145deg, var(--ecb-brand-slate), var(--ecb-brand-night) 68%);
  --ecb-brand-heading-shade: linear-gradient(90deg, #151822b8, #15182299 43%, transparent 67%);
}

html:root { --wd-text-font: var(--ecb-sans); }

.ecb-migration {
  --night: var(--ecb-brand-night);
  --ink: var(--ecb-brand-ink);
  --paper: var(--ecb-brand-paper);
  --quiet: var(--ecb-brand-muted);
  --crimson: var(--ecb-brand-berry);
  --crimson-hover: var(--ecb-brand-berry-hover);
  --crimson-light: var(--ecb-brand-blush);
  --night-copy: var(--ecb-brand-night-copy);
  --night-muted: var(--ecb-brand-night-muted);
  --night-line: var(--ecb-brand-night-line);
  --paper-line: var(--ecb-brand-line);
}

/* The color sampled from the ECB lettering is reserved for display headings. */
.ecb-migration :is(.chapter__title, .ecb-heading, .ec-company-title, .legacy-locale__heading, h1, h2, h3) > em,
.ecb-migration :is(.ecb-gallery, .contact-film, .supply-film, .supply-packaging) :is(h1, h2) > em,
[data-reel-ready] .ecb-migration .film-story__copy h2 > em,
.ecb-migration .film-story__copy #products h2 > em {
  color: var(--ecb-brand-heading-accent);
}

/* WoodMart renders its regular and sticky rows outside the page sections. */
.ecb-migration-page { --ecb-header-accent: var(--ecb-brand-rose); }
body .whb-header :is(.whb-main-header, .whb-general-header),
.ecb-migration-page .whb-header .whb-general-header { background-color: var(--ecb-brand-header); }
.whb-header .whb-general-header { border-color: var(--ecb-brand-night-line); }
.ecb-migration-page .main-page-wrapper { background-color: var(--ecb-brand-paper); }
.whb-header .wd-nav-main > .ecb-nav-quote > a,
.ecb-migration-page .whb-header .wd-nav-main > .ecb-nav-quote > a { background: var(--ecb-brand-berry); }
.ecb-migration-page .whb-header .wd-nav-main > .ecb-nav-quote > a:is(:hover, :focus-visible) { background: var(--ecb-brand-berry-hover); }
.mobile-nav .ecb-nav-quote > a { color: var(--ecb-brand-berry); }
.mobile-nav .ecb-nav-quote > a:is(:hover, :focus-visible) { color: var(--ecb-brand-berry-hover); }

.film__light {
  background: radial-gradient(ellipse at 72% 44%, var(--ecb-brand-light), var(--ecb-brand-slate) 36%, var(--night) 77%);
}
.film__light::after {
  background: radial-gradient(ellipse at 73% 45%, #59586c, var(--ecb-brand-light) 25%, transparent 59%);
}
.film__vignette {
  background: linear-gradient(0deg, #10151ee8, #10151e00 26%), var(--ecb-brand-heading-shade);
}
.film .film__continue { border-color: #c3cce74c; background: #f0f1ff08; }
.film .film__continue:is(:hover, :focus-visible) { border-color: var(--ecb-brand-blush); background: var(--ecb-brand-slate); }
.film .film__continue > span:first-child { border-color: #f380a964; background: #f380a914; color: var(--ecb-brand-rose); }
.film__meter span { background: var(--ecb-brand-rose); }
.film__exit span { color: var(--ecb-brand-rose); }

/* The existing canvases and unframed light scenes keep their transparency. */
.film-story__chapters {
  --chapter-about: #fff;
  --chapter-packaging: var(--ecb-brand-cream);
  --chapter-documents: #fff;
  --chapter-news: var(--ecb-brand-paper);
}
.film-story__copy > :is(#about, #packaging, #questions, #news) { --night-muted: var(--ecb-brand-muted); }
.film-story__copy #products .film-catalogue__item,
.film-catalogue__services-photo,
[data-reel-ready] .film-story__copy .depth-stage {
  background: var(--ecb-brand-slate);
}
.depth-stage__viewport {
  background: radial-gradient(ellipse at 59% 53%, var(--ecb-brand-light), var(--ecb-brand-slate) 49%, var(--night) 85%);
}

.ecb-gallery__hero::before,
.supply-film__frame {
  background: var(--ecb-brand-heading-shade), radial-gradient(ellipse at 72% 51%, var(--ecb-brand-light), var(--ecb-brand-slate) 37%, transparent 73%), var(--night);
}
.ecb-egg-film__frame {
  background: var(--egg-top-fade), radial-gradient(ellipse at 75% 44%, var(--ecb-brand-light), var(--ecb-brand-slate) 28%, transparent 69%), var(--night);
}
.ecb-gallery__start,
.ecb-gallery__categories a { background: var(--ecb-brand-mist); }
.ecb-gallery__categories a:is(:hover, :focus-visible) { background: var(--ecb-brand-rose-wash); }
.about-network {
  background: linear-gradient(var(--night), transparent 42%), radial-gradient(ellipse at 69% 67%, var(--ecb-brand-light), transparent 68%), var(--night);
}
.about-network button:is(:hover, [aria-pressed='true']) { background: var(--ecb-brand-slate); }
.about-questions__list details[open] { background: var(--ecb-brand-rose-wash); }
.about-documents { background: linear-gradient(155deg, #fff, var(--ecb-brand-paper) 66%, var(--ecb-brand-rose-wash)); }
.about-documents__action:is(:hover, :focus-visible) { background: var(--ecb-brand-berry-hover); }
.ecb-product__contact--cinematic::before { background: radial-gradient(ellipse at 68% 43%, var(--ecb-brand-slate), transparent 62%), var(--night); }

.ecb-news { background: var(--ecb-brand-paper); }
.ecb-news__grid img { background: var(--ecb-brand-mist); }
.contact-film__hero { background: radial-gradient(ellipse at 76% 48%, var(--ecb-brand-mist), transparent 52%), var(--paper); }
.contact-film__people li:first-child { background: var(--ecb-brand-rose-wash); }
.ecb-form-panel { background: var(--ecb-brand-slate); }
.contact-film .contact-film__enquiry { background: var(--ecb-brand-panel); }
.ecb-enquiry :is(input:not([type='checkbox']), textarea),
.contact-film__enquiry .ecb-enquiry :is(input:not([type='checkbox']), textarea) { background: var(--ecb-brand-night); }
.contact-film__enquiry .ecb-enquiry :is(input:not([type='checkbox']), textarea):is(:hover, :focus) { background: var(--ecb-brand-slate); }

.footer-container:has(.ecb-footer--modern),
.ecb-migration-page .footer-container:has(.ecb-footer) { background: var(--ecb-brand-night); }
.ecb-footer.ecb-footer--modern {
  --footer-line: var(--ecb-brand-night-line);
  --footer-text: var(--ecb-brand-white);
  --footer-detail: var(--ecb-brand-night-copy);
  --footer-accent: var(--ecb-brand-blush);
  background: radial-gradient(ellipse at 12% 0%, var(--ecb-brand-slate), transparent 66%), var(--ecb-brand-night);
}
.ecb-footer.ecb-footer--modern .ecb-footer-modern__quote { background: var(--ecb-brand-berry); border-color: var(--ecb-brand-berry); }
.ecb-footer.ecb-footer--modern .ecb-footer-modern__quote:is(:hover, :focus-visible) { background: var(--ecb-brand-berry-hover); }
.ecb-migration-page .footer-container .ecb-footer a:is(:hover, :focus-visible) { color: var(--ecb-brand-blush); }
.ecb-migration-page .footer-container .ecb-footer .ecb-footer-modern__quote:is(:hover, :focus-visible) { color: #fff; }

.ecb-quote {
  --quote-night: var(--ecb-brand-night);
  --quote-ink: var(--ecb-brand-ink);
  --quote-rose: var(--ecb-brand-berry);
  background: var(--ecb-brand-paper);
  border-color: var(--ecb-brand-line);
}
.ecb-quote::backdrop { background: #121520bd; }
.ecb-quote :focus-visible { outline-color: var(--ecb-brand-berry); }
.ecb-quote .ecb-quote__panel :focus-visible { outline-color: var(--ecb-brand-blush); }
.ecb-quote__panel { background: var(--ecb-brand-panel); }
.ecb-quote__panel :is(input:not([type='checkbox']), textarea) { background: var(--ecb-brand-night); }
.ecb-quote .ecb-quote__action:hover { background: var(--ecb-brand-berry-hover); }
.ecb-quote .ecb-quote__back:hover { background: var(--ecb-brand-light); }
.ecb-quote__team address div:first-child { background: var(--ecb-brand-rose-wash); }
.ecb-quote__team p { color: var(--ecb-brand-berry); }

@media (max-width: 800px) {
  :root { --ecb-brand-heading-shade: linear-gradient(180deg, #151822bd, #151822a1 34%, transparent 64%); }
  .film__light { background: radial-gradient(ellipse at 61% 71%, var(--ecb-brand-light), var(--ecb-brand-slate) 35%, var(--night) 75%); }
  .film__light::after { background: radial-gradient(ellipse at 60% 75%, #59586c, transparent 56%); }
  .film__vignette { background: linear-gradient(0deg, #10151eed, #10151e00 24%), var(--ecb-brand-heading-shade); }
  .ecb-gallery__hero::before,
  .supply-film__frame { background: var(--ecb-brand-heading-shade), radial-gradient(ellipse at 57% 74%, var(--ecb-brand-light), var(--ecb-brand-slate) 33%, transparent 73%), var(--night); }
  .contact-film__hero { background: radial-gradient(ellipse at 57% 84%, var(--ecb-brand-mist), transparent 55%), var(--paper); }
}

@media (max-width: 690px) {
  .ecb-quote__heading { background: var(--ecb-brand-paper); }
}
