/* Old pages only. New pages do not get body.bw-old-buttons. Header, footer, buttons, and accent blues are not recolored. */

body.bw-old-buttons {
	background-color: var(--bw-color-bwwhite);
}

body.bw-old-buttons :is(section, header.site-header, main, article) {
	--main-color: var(--bw-color-black);
	--secondary-color: var(--bw-color-black);
	--blue-color: var(--bw-color-black);
	--black-color: var(--bw-color-black);
	--white-color: var(--bw-color-white);
	--off-white: var(--bw-color-bwwhite);
	--gray-color: var(--bw-color-grey);
}

/* Light canvases: old beige and off-white section fills. */
body.bw-old-buttons :is(section, header.site-header)[style*="#f4ede7" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#f4ede8" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#f4ede9" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#f3ede7" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#f3ede8" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#f3ede9" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#f3ece7" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#f2ebe5" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#f2ede9" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#f5eee7" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#f7f8fb" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#f8f8f8" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#f2f2f2" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#ffffff" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#fff" i],
body.bw-old-buttons :is(section, header.site-header)[style*="rgb(247, 248, 251)"],
body.bw-old-buttons :is(section, header.site-header)[style*="rgb(244, 237, 231)"],
body.bw-old-buttons :is(section, header.site-header)[style*="rgb(248, 248, 248)"],
body.bw-old-buttons :is(section, header.site-header)[style*="rgb(255, 255, 255)"],
body.bw-old-buttons .resource-wrapper,
body.bw-old-buttons .section-part-navres,
body.bw-old-buttons .section-careers .inner,
body.bw-old-buttons .section-four .tab-list li.tab-head-img.active,
body.bw-old-buttons .section-six .work-wrap .white-shadow:before,
body.bw-old-buttons .gradient-top-one:before {
	background-color: var(--bw-color-bwwhite) !important;
}

body.bw-old-buttons .site-header.header-one:after {
	background: linear-gradient(0deg, var(--bw-color-bwwhite) 0%, transparent 100%);
}

/* Near-black section fills. */
body.bw-old-buttons :is(section, header.site-header)[style*="#000000" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#0a0a0a" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#1c1c1c" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#020a1a" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#020913" i],
body.bw-old-buttons :is(section, header.site-header)[style*="#010a19" i],
body.bw-old-buttons :is(section, header.site-header)[style*="rgb(0, 0, 0)"],
body.bw-old-buttons :is(section, header.site-header)[style*="rgb(10, 10, 10)"],
body.bw-old-buttons :is(section, header.site-header)[style*="rgb(2, 10, 26)"] {
	background-color: var(--bw-color-black) !important;
}

/* Cards stay white so they sit on the BW White canvas. */
body.bw-old-buttons .resource-wrapper .first-box,
body.bw-old-buttons .resource-wrapper .inner-box,
body.bw-old-buttons .section-recent-posts .inner-box,
body.bw-old-buttons section .box,
body.bw-old-buttons section .card {
	background-color: var(--bw-color-white);
}

/* Primary text. Links, buttons, and text with its own inline color are left alone. */
body.bw-old-buttons :is(section, header.site-header, main, article):not(.font-white) :is(h1, h2, h3, h4, h5, h6, p, li):not(.navbar-top *):not(.new-nav-wrapper *):not(.site-footer *):not(.button):not([style*="color"]) {
	color: var(--bw-color-black);
}

body.bw-old-buttons :is(section, header.site-header, main, article):not(.font-white) :is(h1, h2, h3, h4, h5, h6) a:not(.button):not([style*="color"]) {
	color: inherit;
}

body.bw-old-buttons :is(section, header.site-header).font-blue:not(.font-white),
body.bw-old-buttons :is(section, header.site-header).font-blue:not(.font-white) :is(h1, h2, h3, h4, h5, h6, p, li):not(.button):not([style*="color"]) {
	color: var(--bw-color-black);
}

/* Supporting text. */
body.bw-old-buttons :is(section, header.site-header, main, article) :is(.date, .caption, figcaption, small, time, blockquote):not(.navbar-top *):not(.site-footer *):not([style*="color"]) {
	color: var(--bw-color-dark-grey);
}

/* Text on dark sections. */
body.bw-old-buttons :is(section, header.site-header).font-white :is(h1, h2, h3, h4, h5, h6, p, li, a):not(.button):not(.navbar-top *):not(.site-footer *) {
	color: var(--bw-color-link-white);
}

/* Dividers. */
body.bw-old-buttons :is(section, header.site-header, main, article) :is(hr, .line, .border) {
	border-color: var(--bw-color-grey);
}

body.bw-old-buttons :is(section, header.site-header) ::placeholder {
	color: var(--bw-color-grey);
}
