/**
 * CanRad Beauty — front-end styles.
 * Design source of truth: https://home.canrad.com/
 *
 * 1. Tokens & base
 * 2. Utilities (container, buttons, chips, section shells)
 * 3. Header bars (announcement, utility) + navigation
 * 4. Homepage components (hero, ticker, marquee, cards, carousels, bands)
 * 5. Interior pages (page header, prose, cards grid, pagination, 404)
 * 6. Footer + CTA band
 * 7. Nymble Storefront (b2b) fit & finish
 * 8. Accessibility & motion
 */

/* ------------------------------------------------------------------
 * 1. Tokens & base
 * ------------------------------------------------------------------ */

:root {
	--cr-red: #de1f26;
	--cr-red-dark: #b8151b;
	--cr-orange: #f04e26;
	--cr-ink: #121212;
	--cr-night: #18191e;
	--cr-paper: #fcfcfc;
	--cr-mist: #f4f4f4;
	--cr-cream: #fde0b3;
	--cr-peach: #fff5ec;
	--cr-blush: #ffd3d4;
	--cr-teal: #0faebd;
	--cr-teal-soft: #b5e2e7;
	--cr-amber: #ed9431;
	--cr-white: #ffffff;
	--cr-line: #e2e2e2;
	--cr-line-dark: #cfcfcf;

	--cr-font-display: "Bebas Neue", "Arial Narrow", sans-serif;
	--cr-font-body: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;

	--cr-container: 1120px;
	--cr-container-wide: 1280px;
	--cr-gutter: clamp(1.25rem, 4vw, 2.5rem);

	--cr-radius-pill: 40px;
	--cr-shadow-card: 0 1px 0 rgba(18, 18, 18, 0.04), 0 10px 24px -18px rgba(18, 18, 18, 0.35);
	--cr-header-height: 96px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--cr-header-height) + 12px);
}

body {
	margin: 0;
	font-family: var(--cr-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--cr-ink);
	background: var(--cr-paper);
}

img {
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--cr-font-display);
	font-weight: 400;
	letter-spacing: 0.03em;
	line-height: 1.05;
	margin: 0 0 0.5em;
	text-transform: uppercase;
}

a {
	color: inherit;
}

a:hover {
	color: var(--cr-red);
}

p {
	margin: 0 0 1em;
}

:focus-visible {
	outline: 2px solid var(--cr-red);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--cr-ink);
	color: var(--cr-white);
	padding: 0.75rem 1.25rem;
}

.skip-link:focus {
	left: 0;
	clip-path: none;
	width: auto;
	height: auto;
}

/* ------------------------------------------------------------------
 * 2. Utilities
 * ------------------------------------------------------------------ */

.cr-container {
	width: 100%;
	max-width: calc(var(--cr-container) + var(--cr-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--cr-gutter);
}

.cr-section-pad {
	padding-block: clamp(2.5rem, 6vw, 3.75rem);
}

/* Buttons */
.cr-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: var(--cr-ink);
	color: var(--cr-white);
	font-family: var(--cr-font-display);
	font-size: 1.125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	padding: 0.95rem 1.9rem 0.8rem;
	border: 2px solid var(--cr-ink);
	border-radius: var(--cr-radius-pill);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cr-btn svg {
	width: 1.1em;
	height: 1.1em;
	margin-top: -0.15em;
}

.cr-btn:hover,
.wp-block-button__link:hover {
	background: var(--cr-red);
	border-color: var(--cr-red);
	color: var(--cr-white);
}

.cr-btn--outline {
	background: transparent;
	border-color: var(--cr-white);
	color: var(--cr-white);
}

.cr-btn--outline:hover {
	background: var(--cr-white);
	border-color: var(--cr-white);
	color: var(--cr-ink);
}

.cr-btn--block {
	border-radius: 0;
	width: 100%;
	justify-content: center;
	padding-block: 1.15rem 1rem;
}

/* Highlight chips (the “VIEW ON CANRAD.COM” treatment) */
.cr-chip {
	display: inline-block;
	background: var(--cr-blush);
	color: var(--cr-ink);
	font-family: var(--cr-font-display);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.1em 0.45em 0.05em;
	text-decoration: none;
}

a.cr-chip:hover {
	background: var(--cr-ink);
	color: var(--cr-white);
}

.cr-chip--teal { background: var(--cr-teal-soft); }
.cr-chip--amber { background: var(--cr-amber); color: var(--cr-white); }
.cr-chip--ink { background: var(--cr-ink); color: var(--cr-white); }
.cr-chip--white { background: var(--cr-white); color: var(--cr-ink); }

/* Section shells used by patterns */
.cr-section {
	padding-block: clamp(2.5rem, 6vw, 3.5rem);
}

.cr-section--mist { background: var(--cr-mist); }
.cr-section--red { background: var(--cr-red); color: var(--cr-white); }
.cr-section--cream { background: var(--cr-cream); }
.cr-section--ink { background: var(--cr-ink); color: var(--cr-white); }

/* Section header row: title left, “view on” right, ruled underneath */
.cr-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	border-bottom: 2px solid currentColor;
	padding-bottom: 0.5rem;
	margin-bottom: 1.75rem;
}

.cr-section-head h2 {
	font-size: clamp(1.6rem, 3vw, 2.125rem);
	margin: 0;
}

.cr-section-head .cr-view-on {
	font-family: var(--cr-font-display);
	font-size: 1.05rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ------------------------------------------------------------------
 * 3. Header bars + navigation
 * ------------------------------------------------------------------ */

.cr-announcement {
	position: relative;
	background: var(--cr-ink);
	color: var(--cr-white);
	font-family: var(--cr-font-display);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.95rem;
}

.cr-announcement__social {
	position: absolute;
	/* Sit on the content rail (aligned with the logo), falling back to
	   the gutter on narrow viewports. */
	left: max(var(--cr-gutter), calc(50% - var(--cr-container) / 2));
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 0.9rem;
	z-index: 2;
}

.cr-announcement__social a {
	display: inline-flex;
	color: var(--cr-white);
}

.cr-announcement__social svg {
	width: 15px;
	height: 15px;
}

.cr-announcement__rotator {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	min-height: 36px;
	padding-inline: 5.5rem;
}

.cr-announcement__messages {
	position: relative;
	text-align: center;
}

.cr-announcement__message {
	margin: 0;
	opacity: 0;
	position: absolute;
	inset: 0;
	transition: opacity 0.35s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cr-announcement__message.is-active {
	position: relative;
	opacity: 1;
}

.cr-announcement__message a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cr-announcement__arrow {
	background: none;
	border: 0;
	color: var(--cr-white);
	padding: 0.25rem;
	cursor: pointer;
	display: inline-flex;
	opacity: 0.8;
}

.cr-announcement__arrow:hover { opacity: 1; }

.cr-announcement__arrow svg {
	width: 14px;
	height: 14px;
	transform: rotate(90deg);
}

.cr-announcement__arrow--next svg {
	transform: rotate(-90deg);
}

/* Red login / register bar */
.cr-utility-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	background: var(--cr-red);
	color: var(--cr-white);
	font-family: var(--cr-font-display);
	font-size: 1.15rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.55rem 1rem 0.45rem;
}

.cr-utility-bar svg {
	width: 1.05em;
	height: 1.05em;
	margin-top: -0.1em;
	transition: transform 0.15s ease;
}

.cr-utility-bar:hover {
	color: var(--cr-white);
	background: var(--cr-red-dark);
}

.cr-utility-bar:hover svg {
	transform: translateX(4px);
}

/* Masthead */
.cr-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--cr-white);
	transition: box-shadow 0.2s ease;
}

.cr-header.is-stuck {
	box-shadow: 0 6px 24px -18px rgba(18, 18, 18, 0.5);
}

.cr-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(1.5rem, 3vw, 2.75rem);
	padding-block: 0.85rem;
}

.cr-header__brand .custom-logo-link {
	display: inline-flex;
}

.cr-header__brand img {
	width: clamp(72px, 8vw, 96px);
	height: auto;
}

.cr-nav {
	flex: 1;
	min-width: 0;
}

.cr-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
}

.cr-nav .cr-menu {
	column-gap: clamp(1.1rem, 2vw, 1.65rem);
	row-gap: 0.15rem;
}

.cr-nav__row + .cr-nav__row {
	margin-top: 0.35rem;
}

.cr-nav .cr-menu > li {
	position: relative;
}

.cr-nav .cr-menu a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--cr-ink);
	text-decoration: none;
	padding-block: 0.3rem;
}

.cr-nav .cr-menu a:hover {
	color: var(--cr-red);
}

.cr-menu-icon {
	display: inline-flex;
}

.cr-menu-icon svg {
	width: 15px;
	height: 15px;
}

/* Dropdown indicator + panel */
.cr-nav .menu-item-has-children > a::after {
	content: "";
	width: 9px;
	height: 9px;
	margin-left: 0.1rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.cr-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	position: absolute;
	top: 100%;
	left: -0.75rem;
	min-width: 230px;
	background: var(--cr-white);
	border: 1px solid var(--cr-line);
	box-shadow: 0 18px 38px -24px rgba(18, 18, 18, 0.45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 30;
}

.cr-nav li:hover > .sub-menu,
.cr-nav li:focus-within > .sub-menu,
.cr-nav li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.cr-nav .sub-menu a {
	display: block;
	padding: 0.5rem 1.1rem;
	font-size: 0.875rem;
}

.cr-nav .sub-menu a:hover {
	background: var(--cr-mist);
}

/* Header tools (plugin cart/search icons + hamburger) */
.cr-header__tools {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-left: auto;
}

.cr-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 9px;
	background: none;
	border: 1px solid var(--cr-line-dark);
	cursor: pointer;
}

.cr-nav-toggle span {
	display: block;
	height: 2px;
	background: var(--cr-ink);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.cr-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cr-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cr-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.cr-drawer {
	background: var(--cr-white);
	border-top: 1px solid var(--cr-line);
	max-height: calc(100vh - var(--cr-header-height));
	overflow: auto;
	padding: 1rem var(--cr-gutter) 2rem;
}

.cr-drawer .cr-menu {
	display: block;
}

.cr-drawer .cr-menu a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 0;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid var(--cr-mist);
}

.cr-drawer .sub-menu {
	list-style: none;
	margin: 0;
	padding-left: 1.25rem;
}

.cr-drawer__menu--secondary {
	margin-top: 1rem;
	padding-top: 0.5rem;
	border-top: 2px solid var(--cr-ink);
}

@media (max-width: 1099px) {
	.cr-nav { display: none; }
	.cr-nav-toggle { display: inline-flex; }
}

@media (min-width: 1100px) {
	.cr-drawer { display: none; }
}

/* ------------------------------------------------------------------
 * 4. Homepage components
 * ------------------------------------------------------------------ */

/* Split hero */
.cr-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--cr-orange);
}

.cr-hero__media {
	display: flex;
	flex-direction: column;
	background: var(--cr-white);
}

.cr-hero__media figure,
.cr-hero__media .wp-block-image {
	margin: 0;
	flex: 1;
	min-height: 0;
}

.cr-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cr-hero__strip {
	background: var(--cr-white);
	text-align: center;
	padding: 0.85rem 1.25rem 0.75rem;
}

.cr-hero__strip p {
	margin: 0;
}

.cr-hero__strip .cr-hero__strip-main {
	font-family: var(--cr-font-body);
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: 0.01em;
}

.cr-hero__strip .cr-hero__strip-fine {
	font-size: 0.7rem;
	color: #555;
}

.cr-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	color: var(--cr-white);
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
}

.cr-hero__eyebrow {
	font-family: var(--cr-font-display);
	font-size: clamp(1.1rem, 1.8vw, 1.35rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
}

.cr-hero__title {
	color: var(--cr-white);
	font-size: clamp(2.8rem, 6vw, 4.6rem);
	line-height: 0.95;
	letter-spacing: 0.02em;
	margin-bottom: 2rem;
}

.cr-hero__title .is-large {
	display: block;
	font-size: 1.28em;
}

.cr-hero__content .cr-btn {
	border-color: var(--cr-ink);
}

@media (max-width: 899px) {
	.cr-hero {
		grid-template-columns: 1fr;
	}
	.cr-hero__media img {
		max-height: 70vw;
	}
}

/* Black ticker band */
.cr-ticker {
	background: var(--cr-ink);
	color: var(--cr-white);
	text-align: center;
	padding: 0.9rem var(--cr-gutter) 0.75rem;
}

.cr-ticker p {
	margin: 0;
	font-family: var(--cr-font-display);
	font-size: clamp(1.15rem, 2.4vw, 1.8rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.25;
}

.cr-ticker a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.cr-ticker a:hover {
	color: var(--cr-blush);
}

/* Brand logo marquee */
.cr-marquee {
	background: var(--cr-white);
	overflow: hidden;
	padding-block: 0.75rem;
}

.cr-marquee__track {
	display: flex;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem);
	width: max-content;
	animation: cr-marquee 80s linear infinite;
}

.cr-marquee:hover .cr-marquee__track {
	animation-play-state: paused;
}

.cr-marquee__track img {
	height: clamp(84px, 10vw, 128px);
	width: clamp(110px, 13vw, 168px);
	object-fit: contain;
	flex: none;
}

@keyframes cr-marquee {
	to { transform: translateX(-50%); }
}

/* Editorial / product cards */
.cr-cards {
	position: relative;
}

.cr-carousel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3rem) / 3);
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 0.25rem;
}

.cr-carousel::-webkit-scrollbar { display: none; }

.cr-carousel > * {
	scroll-snap-align: start;
	min-width: 0;
}

@media (max-width: 899px) {
	.cr-carousel { grid-auto-columns: 78%; }
}

@media (min-width: 900px) {
	.cr-carousel--wide { grid-auto-columns: calc((100% - 3rem) / 2.55); }
	.cr-carousel--products { grid-auto-columns: calc((100% - 6rem) / 5); }
}

.cr-tile {
	background: var(--cr-white);
	border: 1px solid var(--cr-line-dark);
	box-shadow: var(--cr-shadow-card);
	display: flex;
	flex-direction: column;
}

.cr-tile figure,
.cr-tile .wp-block-image {
	margin: 0;
}

.cr-tile__media img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.cr-tile__media--square img {
	aspect-ratio: 1 / 1;
}

.cr-tile__media--contain img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 8%;
}

.cr-tile__label {
	background: var(--cr-ink);
	color: var(--cr-white);
	font-family: var(--cr-font-display);
	font-size: 0.95rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.4rem 0.85rem 0.3rem;
	margin: 0;
}

.cr-tile__body {
	padding: 0.9rem 1rem 1.1rem;
}

.cr-tile__body h3 {
	font-size: 1.3rem;
	letter-spacing: 0.04em;
	margin-bottom: 0.35rem;
}

.cr-tile__body h3 a {
	text-decoration: none;
}

.cr-tile__body p {
	font-size: 0.9rem;
	line-height: 1.45;
	color: #3a3a3a;
	margin: 0;
}

/* Carousel dots */
.cr-dots {
	display: flex;
	justify-content: center;
	gap: 0.55rem;
	margin-top: 1.25rem;
}

.cr-dots button {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: #c6c6c6;
	cursor: pointer;
}

.cr-dots button.is-active {
	background: var(--cr-red);
}

.cr-section--red .cr-dots button { background: rgba(255, 255, 255, 0.5); }
.cr-section--red .cr-dots button.is-active { background: var(--cr-white); }

/* Tribute / announcement band (dark) */
.cr-tribute {
	background: #000;
	color: var(--cr-white);
	padding-block: clamp(2rem, 5vw, 3rem);
}

.cr-tribute .cr-container {
	display: grid;
	grid-template-columns: minmax(200px, 300px) 1fr;
	gap: clamp(1.5rem, 5vw, 4rem);
	align-items: center;
}

.cr-tribute__portrait img {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 6px solid #8c7a4e;
}

.cr-tribute__name {
	font-family: Georgia, "Times New Roman", serif;
	font-variant: small-caps;
	letter-spacing: 0.12em;
	text-align: center;
	font-size: 1.5rem;
	margin-top: 1rem;
}

.cr-tribute__text p {
	text-align: center;
	font-size: 1.05rem;
	line-height: 1.7;
	margin-bottom: 1.1em;
}

@media (max-width: 767px) {
	.cr-tribute .cr-container {
		grid-template-columns: 1fr;
		justify-items: center;
	}
}

/* Education band content */
.cr-section--red .cr-section-head {
	border-color: var(--cr-white);
	color: var(--cr-white);
}

.cr-education__lede {
	text-align: center;
	font-family: var(--cr-font-display);
	font-size: clamp(1.25rem, 2.6vw, 1.75rem);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.6;
	margin-bottom: 0.75rem;
}

.cr-education__lede .cr-chip {
	margin-inline: 0.15em;
}

.cr-section--red p a {
	color: var(--cr-white);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cr-education__banner img,
.cr-banner img {
	display: block;
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Center statements (Quaffed / LivWise) */
.cr-statement {
	text-align: center;
	max-width: 900px;
	margin-inline: auto;
}

.cr-statement h3 {
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	letter-spacing: 0.05em;
}

.cr-statement p {
	font-size: 1rem;
	margin-bottom: 0.4em;
}

.cr-partner-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 1.25rem;
}

.cr-partner-logo img {
	max-width: min(70vw, 420px);
}

.cr-button-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-top: 1.75rem;
}

.cr-button-pair .wp-block-buttons,
.cr-button-pair .wp-block-button {
	width: 100%;
}

.cr-button-pair .wp-block-button__link {
	border-radius: 0;
	width: 100%;
	justify-content: center;
	padding-block: 1.15rem 1rem;
}

@media (max-width: 767px) {
	.cr-button-pair { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
 * 5. Interior pages
 * ------------------------------------------------------------------ */

.cr-page-header {
	background: var(--cr-mist);
	padding: clamp(2rem, 5vw, 3rem) 0;
}

.cr-page-header__title {
	font-size: clamp(2rem, 4.5vw, 2.75rem);
	margin: 0;
}

.cr-page-header__description {
	max-width: 720px;
	color: #3a3a3a;
}

.cr-prose {
	max-width: 860px;
	padding-block: clamp(2rem, 5vw, 3rem);
}

.cr-prose a {
	color: var(--cr-red);
}

.cr-prose .wp-block-button__link {
	color: var(--cr-white);
}

/* Pages built around a directory grid or column layout use the full
   content rail, matching their width on the source site. */
.cr-prose:has(.cr-rep-grid),
.cr-prose:has(.cr-store-grid),
.cr-prose:has(.cr-about-row),
.cr-prose:has(.cr-contact-row),
.cr-prose:has(.cr-recall-list) {
	max-width: calc(var(--cr-container) + var(--cr-gutter) * 2);
}

/* Policy pages: centered title on white, narrow reading measure
   (mirrors the Shopify policy template). */
.canrad-policy .cr-page-header {
	background: transparent;
	padding-bottom: 0;
	text-align: center;
}

.canrad-policy .cr-page-header__title {
	font-size: clamp(2.2rem, 5vw, 3rem);
}

.canrad-policy .cr-prose {
	max-width: 720px;
}

.canrad-policy .cr-prose h3 {
	font-size: 1.15rem;
	letter-spacing: 0.05em;
	margin-top: 2rem;
}

/* Education class rows: alternating poster / details layout. */
.cr-edu-list > .cr-edu-row {
	margin-block: 0 clamp(2.5rem, 6vw, 4rem);
}

.cr-edu-eyebrow {
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #3a3a3a;
	margin-bottom: 0.5rem;
}

.cr-edu-row h2 {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	margin-bottom: 0.75rem;
}

.cr-edu-row h4 {
	font-size: 1.05rem;
	letter-spacing: 0.06em;
	margin-bottom: 1.2rem;
}

.cr-edu-row .wp-block-media-text__content {
	padding-block: 1.5rem;
}

/* Outline (ghost) button variant on light backgrounds. */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--cr-line-dark);
	color: var(--cr-ink);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--cr-ink);
	border-color: var(--cr-ink);
	color: var(--cr-white);
}

/* Recall notices: full-rail posters, stacked with breathing room. */
.cr-recall-list > * {
	margin-block: 0 2.75rem;
}

.cr-recall-list img {
	display: block;
	width: 100%;
}

/* Contact page: details column beside the embedded map. */
.cr-contact-row {
	gap: clamp(1.5rem, 4vw, 3rem);
}

.cr-contact-row h3 {
	font-size: 1.35rem;
	letter-spacing: 0.05em;
	border-bottom: 2px solid var(--cr-red);
	display: inline-block;
	padding-bottom: 0.2rem;
	margin-bottom: 0.9rem;
}

.cr-contact-map {
	display: flex;
}

.cr-contact-map iframe {
	width: 100%;
	min-height: 520px;
	border: 0;
	display: block;
	flex: 1;
}

/* Text/image column rows (About page): roomy gap, top-aligned. */
.cr-about-row {
	gap: clamp(1.5rem, 4vw, 3.5rem);
	margin-bottom: 1rem;
}

.cr-about-row .wp-block-column p {
	line-height: 1.7;
}

.cr-prose h2 { font-size: 1.9rem; }
.cr-prose h3 { font-size: 1.5rem; }

.cr-page--chromeless .entry-content > .wp-block-group:first-child {
	margin-top: 0;
}

.cr-featured-media {
	padding-top: 2rem;
}

.cr-featured-media img {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
}

/* Full-bleed helpers for classic-wrapped block content */
.cr-prose > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

/* A leading full-bleed element (hero image/band) sits flush under the
   page-title band instead of floating inside the prose padding. */
.cr-prose > .alignfull:first-child {
	margin-top: calc(-1 * clamp(2rem, 5vw, 3rem));
}

.cr-prose > .alignwide {
	width: min(100vw - var(--cr-gutter) * 2, var(--cr-container-wide));
	max-width: none;
	margin-left: calc(50% - min(100vw - var(--cr-gutter) * 2, var(--cr-container-wide)) / 2);
}

/* Blog cards grid */
.cr-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.75rem;
}

.cr-card {
	background: var(--cr-white);
	border: 1px solid var(--cr-line-dark);
	box-shadow: var(--cr-shadow-card);
	display: flex;
	flex-direction: column;
	padding-bottom: 1.1rem;
}

.cr-card__media {
	display: block;
}

.cr-card__media img,
.cr-card__media-fallback {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	background: var(--cr-mist);
}

.cr-card__kicker {
	font-family: var(--cr-font-display);
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6a6a6a;
	margin: 0.9rem 1rem 0.2rem;
}

.cr-card__title {
	font-size: 1.35rem;
	margin: 0 1rem 0.4rem;
}

.cr-card__title a { text-decoration: none; }

.cr-card__excerpt {
	margin: 0 1rem;
	font-size: 0.9rem;
	color: #3a3a3a;
}

.cr-card__excerpt p { margin: 0; }

.cr-pagination {
	margin-top: 2.5rem;
	text-align: center;
	font-family: var(--cr-font-display);
	letter-spacing: 0.06em;
}

.cr-pagination .page-numbers {
	display: inline-block;
	padding: 0.45rem 0.85rem 0.3rem;
	border: 1px solid var(--cr-line-dark);
	text-decoration: none;
	margin-inline: 0.15rem;
}

.cr-pagination .page-numbers.current {
	background: var(--cr-ink);
	color: var(--cr-white);
	border-color: var(--cr-ink);
}

.cr-404__code {
	font-family: var(--cr-font-display);
	font-size: clamp(5rem, 14vw, 9rem);
	line-height: 1;
	color: var(--cr-red);
	margin: 0;
}

.cr-none {
	max-width: 560px;
}

.search-form {
	display: flex;
	gap: 0.6rem;
}

.search-form .search-field {
	flex: 1;
	border: 1px solid var(--cr-line-dark);
	padding: 0.7rem 1rem;
	font-family: var(--cr-font-body);
	font-size: 1rem;
}

.search-form .search-submit {
	background: var(--cr-ink);
	color: var(--cr-white);
	border: 0;
	font-family: var(--cr-font-display);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.7rem 1.5rem 0.55rem;
	border-radius: var(--cr-radius-pill);
	cursor: pointer;
}

/* ------------------------------------------------------------------
 * 6. Footer + CTA band
 * ------------------------------------------------------------------ */

.cr-cta-band {
	background: var(--cr-ink);
	color: var(--cr-white);
	text-align: center;
	padding: clamp(2.5rem, 6vw, 3.5rem) 0;
}

.cr-cta-band__heading {
	font-size: clamp(1.5rem, 3vw, 2rem);
	letter-spacing: 0.05em;
	margin-bottom: 1.5rem;
}

.cr-footer {
	background: var(--cr-white);
	padding-top: clamp(2.5rem, 6vw, 4rem);
}

.cr-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr 1fr;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}

.cr-footer__heading {
	font-size: 1.35rem;
	letter-spacing: 0.06em;
	margin-bottom: 1rem;
}

.cr-footer__contact p {
	font-size: 0.95rem;
	margin-bottom: 0.9em;
}

.cr-footer__contact a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cr-footer__brand {
	display: flex;
	justify-content: center;
}

.cr-footer__brand img {
	width: clamp(110px, 12vw, 150px);
	height: auto;
}

.cr-footer__menu {
	display: block;
}

.cr-footer__menu li {
	margin-bottom: 0.7rem;
}

.cr-footer__menu a {
	font-size: 0.95rem;
	text-decoration: none;
}

.cr-footer__menu a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cr-footer__social {
	display: flex;
	justify-content: center;
	gap: 1.4rem;
	padding: 2.25rem 0 0.5rem;
}

.cr-footer__social a {
	display: inline-flex;
	color: var(--cr-ink);
}

.cr-footer__social svg {
	width: 19px;
	height: 19px;
}

.cr-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem 1.5rem;
	padding: 1rem var(--cr-gutter) 2rem;
	font-size: 0.8rem;
	color: #555;
}

.cr-footer__legal p { margin: 0; }

.cr-footer__legal-menu {
	gap: 0.35rem 1.4rem;
}

.cr-footer__legal-menu a {
	text-decoration: none;
	color: inherit;
}

.cr-footer__legal-menu a:hover {
	text-decoration: underline;
}

@media (max-width: 899px) {
	.cr-footer__grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.cr-footer__brand { order: -1; }
}

/* ------------------------------------------------------------------
 * 7. Nymble Storefront fit & finish
 * ------------------------------------------------------------------ */

.canrad-storefront .cr-main {
	background: var(--cr-paper);
}

.canrad-storefront .entry-content {
	padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

/* Cap plugin blocks — and the breadcrumbs bar the blocks echo before
   their wrapper — to the same content rail as the header/logo. */
.canrad-storefront .entry-content > .wp-block-group,
.canrad-storefront .entry-content > [class*="wp-block-nymble-b2b"],
.canrad-storefront .entry-content > .b2b-block,
.canrad-storefront .entry-content > .b2b-breadcrumbs-container {
	width: 100%;
	max-width: calc(var(--cr-container) + var(--cr-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--cr-gutter);
}

/* When a block renders breadcrumbs inside its own wrapper (the SSR
   listing branch), drop the plugin's extra 20px so they line up with
   the rail like everything else. */
.canrad-storefront .entry-content > * .b2b-breadcrumbs-container {
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

/* Uniform header-to-breadcrumbs gap across categories / listing /
   detail pages: the entry padding provides the space, not the
   plugin's extra top margin. */
.canrad-storefront .entry-content > .b2b-breadcrumbs-container {
	margin-block: 0 20px;
}

.canrad-storefront .entry-content > * .b2b-breadcrumbs-container {
	margin-block: 0 20px;
}


/* Nymble search form, matched to the theme-styled core search block on
   the same page: square bordered input + Bebas pill button. Scoped to
   the search block and kept in the theme so plugin updates can't
   overwrite it. */
.wp-block-nymble-b2b-search .b2b-input {
	background: var(--cr-white);
	border: 1px solid var(--cr-line-dark);
	border-radius: 0;
	font-family: var(--cr-font-body);
	font-size: 1rem;
	line-height: 1.5;
	padding: 0.7rem 1rem;
	/* keep room for the plugin's clear (×) control */
	padding-right: calc(var(--b2b-spacing-4, 1.5rem) + 5px);
}

.wp-block-nymble-b2b-search .b2b-input:focus {
	border-color: var(--cr-ink);
	box-shadow: 0 0 0 1px var(--cr-ink);
	outline: none;
}

.wp-block-nymble-b2b-search .b2b-search-form .b2b-btn-primary {
	background: var(--cr-ink);
	border: 2px solid var(--cr-ink);
	border-radius: var(--cr-radius-pill);
	color: var(--cr-white);
	font-family: var(--cr-font-display);
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	padding: 0.85rem 1.9rem 0.7rem;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wp-block-nymble-b2b-search .b2b-search-form .b2b-btn-primary:hover {
	background: var(--cr-red);
	border-color: var(--cr-red);
	color: var(--cr-white);
}

/* Header icon blocks (cart / search) alignment */
.cr-header__tools .b2b-block,
.cr-header__tools [id*="search-icon"],
.cr-header__tools [id*="cart-icon"] {
	display: inline-flex;
	align-items: center;
}

/* FAQ accordion, mirroring home.canrad.com's collapsible rows:
   ruled rows, ?-in-a-circle icon, Bebas question, caret toggle. */
.cr-faq {
	max-width: 760px;
	margin-inline: auto;
}

.cr-faq > * {
	margin-block: 0;
}

.cr-faq .wp-block-details {
	border-top: 1px solid var(--cr-line);
	margin: 0;
	padding: 0;
}

.cr-faq .wp-block-details:last-child {
	border-bottom: 1px solid var(--cr-line);
}

.cr-faq summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 1.05rem 0.75rem;
	cursor: pointer;
	font-family: var(--cr-font-display);
	font-size: 1.05rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.2;
}

.cr-faq summary::-webkit-details-marker {
	display: none;
}

.cr-faq summary::before {
	content: "?";
	flex: none;
	width: 22px;
	height: 22px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--cr-font-body);
	font-size: 0.8rem;
	font-weight: 700;
}

.cr-faq summary::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-left: auto;
	transition: transform 0.15s ease;
}

.cr-faq details[open] summary::after {
	transform: rotate(225deg);
}

.cr-faq details[open] summary {
	background: var(--cr-mist);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cr-faq details[open] {
	padding-bottom: 1.1rem;
}

.cr-faq details > :not(summary) {
	padding-inline: 0.75rem;
}

.cr-faq details p,
.cr-faq details li {
	font-size: 0.9rem;
	color: #3a3a3a;
}

/* Full-bleed statement bands (FAQ credit sections): huge centered title,
   white pill button on the colored background. The doubled selector keeps
   it ahead of the .cr-prose h2 sizing on interior pages. */
.cr-band-title.cr-band-title {
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	letter-spacing: 0.04em;
	margin-bottom: 1rem;
}

.cr-section--red .wp-block-button__link,
.cr-section--ink .wp-block-button__link {
	background: var(--cr-white);
	border-color: var(--cr-white);
	color: var(--cr-ink);
}

.cr-section--red .wp-block-button__link:hover,
.cr-section--ink .wp-block-button__link:hover {
	background: var(--cr-ink);
	border-color: var(--cr-ink);
	color: var(--cr-white);
}

/* Payment-methods listing (Methods of Payment): underlined bold label
   with its option lines grouped tightly beneath, like the source page. */
.cr-pay-item {
	margin-bottom: 1.6rem;
}

.cr-pay-item > p {
	margin: 0 0 0.2em;
}

.cr-pay-item > p:first-child {
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-bottom: 0.4em;
}

.cr-pay-media {
	margin: 2rem 0 0.75rem;
}

.cr-pay-media .wp-block-image {
	margin: 0 0 0.9rem;
}

/* Editor-only notes inside ported content: hidden on the front end. */
.cr-editor-note {
	display: none !important;
}

/* Store locations grid (Our Stores), mirroring home.canrad.com:
   3-up flat mist cards with inset photo, Bebas city/address, bold
   contact lines and a "Get Map Directions" link. */
.cr-store-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
}

.cr-store-grid > * {
	margin-block: 0;
}

.cr-store {
	background: var(--cr-mist);
	padding: 1.1rem 1.1rem 1.75rem;
}

.cr-store figure,
.cr-store .wp-block-image {
	margin: 0 0 1.4rem;
}

.cr-store img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.cr-store h3 {
	font-size: 1.35rem;
	letter-spacing: 0.04em;
	margin-bottom: 0.5rem;
}

.cr-store h4 {
	font-size: 1.05rem;
	letter-spacing: 0.05em;
	margin-bottom: 1.3rem;
}

.cr-store p {
	font-size: 0.875rem;
	color: #3a3a3a;
	line-height: 1.6;
	margin: 0 0 0.5em;
}

.cr-store a {
	color: inherit;
	text-decoration: none;
}

.cr-store a:hover {
	color: var(--cr-red);
}

.cr-store .cr-store__map {
	font-weight: 700;
	margin-top: 1.1rem;
}

@media (max-width: 989px) {
	.cr-store-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
	.cr-store-grid { grid-template-columns: 1fr; }
}

/* Directory card grid (e.g. Sales Representatives), mirroring the
   flat light-gray multicolumn cards on home.canrad.com. */
.cr-rep-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
}

/* Defeat core block-gap margins so grid rows top-align and stretch. */
.cr-rep-grid > * {
	margin-block: 0;
}

.cr-rep {
	background: var(--cr-mist);
	padding: 1.5rem 1.25rem;
}

.cr-rep h3 {
	font-size: 1.3rem;
	letter-spacing: 0.04em;
	margin-bottom: 0.9rem;
}

.cr-rep h3 em {
	font-style: italic;
}

.cr-rep p {
	font-size: 0.875rem;
	color: #3a3a3a;
	line-height: 1.55;
	margin: 0 0 0.55em;
}

.cr-rep p:last-child {
	margin-bottom: 0;
}

.cr-rep a {
	color: inherit;
	text-decoration: none;
}

.cr-rep a:hover {
	color: var(--cr-red);
}

.cr-rep a.cr-rep__profile {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 989px) {
	.cr-rep-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 599px) {
	.cr-rep-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
 * 8. Accessibility & motion
 * ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.cr-marquee__track {
		animation: none;
	}
	.cr-announcement__message {
		transition: none;
	}
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
	}
}
