/* ==========================================================================
   CNC Machine Pros
   Brand colors: orange #FF3600, navy #050B20. Fonts: Outfit or Poppins for headings, Inter for body.
   ========================================================================== */

:root {
	--c-primary: #FF3600;
	--c-primary-dark: #D92E00;
	--c-heading: #050B20;
	--c-secondary: #1F1F25;
	--c-text: #555555;
	--c-muted: #B5B5B5;
	--c-section: #F6F6F6;
	--c-white: #FFFFFF;
	--c-dark: #121212;
	--c-dark-card: #252525;
	--c-border: rgba(85, 85, 85, .16);
	--f-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-heading: Outfit, Poppins, Inter, system-ui, sans-serif;
	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 16px;
	--shadow: 0 10px 30px rgba(5, 11, 32, .08);
	--shadow-lg: 0 20px 50px rgba(5, 11, 32, .16);
	--t: all .4s ease;
	--container: 1320px;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-heading);
	font-weight: 500;
	color: var(--c-heading);
	line-height: 1.2;
	margin: 0 0 .5em;
	word-break: break-word;
}
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
::selection { background: var(--c-primary); color: var(--c-white); }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 920px; }
.container--content { max-width: 908px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--c-heading); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px;
	font-family: var(--f-body); font-size: 15px; font-weight: 600; line-height: 1.2;
	border-radius: var(--r-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: var(--t);
	text-align: center;
	white-space: nowrap;
}
.btn .icon { flex: none; }
.btn--primary { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); }
.btn--primary:hover { background: var(--c-heading); border-color: var(--c-heading); color: var(--c-white); }
.btn--outline { background: transparent; color: var(--c-heading); border-color: var(--c-border); }
.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--light { background: var(--c-white); color: var(--c-heading); border-color: var(--c-white); }
.btn--light:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

.badge {
	display: inline-block; padding: 4px 12px; border-radius: 50px;
	background: rgba(255, 54, 0, .1); color: var(--c-primary);
	font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
}

/* Header ----------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	display: flex;
	background: var(--c-white);
	box-shadow: 0 1px 0 var(--c-border);
	transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(5, 11, 32, .08); }
/* Logged-in admins: keep the sticky header below the WordPress admin bar. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__logo {
	flex: 0 0 auto;
	display: flex; align-items: center;
	padding: 14px 40px;
	min-width: 280px;
	border-right: 1px solid var(--c-border);
}
.site-header__logo img { max-height: 64px; width: auto; }
.site-header__right { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.text-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-heading); }
.text-logo:hover { color: var(--c-heading); }
.text-logo__mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: var(--r-md);
	background: var(--c-primary); color: var(--c-white);
}
.text-logo__name { font-family: var(--f-heading); font-weight: 500; font-size: 24px; letter-spacing: -.01em; white-space: nowrap; }
.text-logo__name span { color: var(--c-primary); }

.topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	background: var(--c-primary); color: var(--c-white);
	padding: 9px 40px;
	font-size: 14px;
}
.topbar__text { margin: 0; opacity: .92; }
.topbar__links { display: flex; align-items: center; gap: 28px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: var(--c-white); font-weight: 500; }
.topbar__item:hover { color: var(--c-heading); }
.topbar__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--c-white); color: var(--c-primary);
}

.navbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 40px; min-height: 72px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__list > li { position: relative; }
.nav__list a {
	display: block; padding: 24px 14px;
	font-weight: 600; font-size: 15px; color: var(--c-heading);
}
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current_page_item > a, .nav__list .current-menu-ancestor > a { color: var(--c-primary); }
.nav__list .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.nav__list .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 20;
	min-width: 240px; list-style: none; margin: 0; padding: 10px 0;
	background: var(--c-white); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
	border-top: 3px solid var(--c-primary);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--t);
}
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { padding: 9px 22px; font-weight: 500; }
.navbar__actions { display: flex; align-items: center; gap: 10px; }
.nav__list .menu-item--mobile { display: none; }
.nav-toggle {
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 1px solid var(--c-border); border-radius: var(--r-sm);
	background: var(--c-white); color: var(--c-heading); cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline-flex; }

/* Highlighted heading word ------------------------------------------------ */
.hl { position: relative; display: inline-block; color: var(--c-primary); white-space: nowrap; }
.hl__swoosh {
	position: absolute; left: 0; bottom: -.16em;
	width: 100%; height: .3em;
	color: var(--c-primary); overflow: visible;
}

/* Hero ------------------------------------------------------------------- */
.hero {
	position: relative;
	padding: 120px 0 170px;
	background-color: var(--c-heading);
	background-image:
		radial-gradient(circle at 80% 20%, rgba(255, 54, 0, .24), transparent 45%),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: cover, 48px 48px, 48px 48px;
	color: var(--c-white);
	text-align: center;
	clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
	z-index: 1;
}
.hero--photo {
	background-image:
		linear-gradient(rgba(5, 11, 32, .66), rgba(5, 11, 32, .72)),
		var(--hero-image);
	background-size: cover;
	background-position: center;
}
.hero__inner { position: relative; max-width: 980px; }
.hero__label { font-size: 16px; font-weight: 500; margin: 0 0 14px; color: rgba(255, 255, 255, .9); }
.hero__title { color: var(--c-white); font-size: clamp(36px, 5.4vw, 64px); line-height: 1.12; margin: 0 0 22px; }
.hero__text { max-width: 660px; margin: 0 auto 32px; font-size: 17px; color: rgba(255, 255, 255, .88); }
.hero__buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.search-bar {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px;
	max-width: 900px; margin: 56px auto 0; padding: 14px;
	background: var(--c-white); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.search-bar--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
.search-bar select { height: 50px; }

/* Sections --------------------------------------------------------------- */
.section { padding: 110px 0; }
.hero + .section { margin-top: -130px; padding-top: 210px; }
.section--gray { background: var(--c-section); }
.section--dark { background: var(--c-dark); color: var(--c-muted); }
.section--dark .section-title { color: var(--c-white); }
.section__more { text-align: center; margin: 44px 0 0; }

.section-head { margin: 0 0 54px; }
.section-head--center { text-align: center; }
.eyebrow {
	display: inline-block; margin: 0 0 12px;
	font-family: var(--f-heading); font-size: 17px; font-weight: 500; color: var(--c-primary);
}
.eyebrow--light { color: var(--c-white); opacity: .9; }
.section-title { font-size: clamp(30px, 4vw, 48px); margin: 0; }

/* Component cards -------------------------------------------------------- */
.cat-grid {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
}
.cat-grid > li { flex: 0 1 calc((100% - 72px) / 4); min-width: 220px; }
.cat-card {
	display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%;
	padding: 34px 22px 30px; border-radius: var(--r-md);
	background: var(--c-white); color: var(--c-text);
	box-shadow: 0 1px 0 var(--c-border);
	transition: var(--t);
}
.cat-card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 68px; height: 68px; margin: 0 0 20px; border-radius: var(--r-md);
	background: var(--c-section); color: var(--c-primary); transition: var(--t);
}
.cat-card__title { font-family: var(--f-heading); font-size: 21px; font-weight: 500; color: var(--c-heading); margin: 0 0 8px; transition: var(--t); }
.cat-card__text { font-size: 14px; line-height: 1.55; transition: var(--t); }
.cat-card:hover { background: var(--c-primary); color: rgba(255, 255, 255, .9); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card:hover .cat-card__title { color: var(--c-white); }
.cat-card:hover .cat-card__icon { background: var(--c-white); }

/* Brand cards ------------------------------------------------------------ */
.brand-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.brand-grid > li { flex: 0 1 400px; }
.brand-card {
	position: relative; display: block; height: 100%;
	padding: 32px 30px; border: 1px solid var(--c-border); border-radius: var(--r-md);
	background: var(--c-white); color: var(--c-text); transition: var(--t);
}
.brand-card__name { display: block; font-family: var(--f-heading); font-size: 28px; font-weight: 500; color: var(--c-heading); margin: 0 0 8px; }
.brand-card__text { display: block; padding-right: 40px; font-size: 15px; }
.brand-card__arrow {
	position: absolute; right: 24px; bottom: 24px;
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%; background: var(--c-section); color: var(--c-heading); transition: var(--t);
}
.brand-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow); color: var(--c-text); }
.brand-card:hover .brand-card__arrow { background: var(--c-primary); color: var(--c-white); }

/* Shop cards ------------------------------------------------------------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.shop-card {
	position: relative; display: flex; flex-direction: column;
	padding: 26px; border-radius: var(--r-md);
	background: var(--c-white); border: 1px solid var(--c-border);
	transition: var(--t);
}
.shop-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-3px); }
.shop-card--featured { border-color: var(--c-primary); }
.shop-card__badge {
	position: absolute; top: -12px; left: 26px;
	padding: 4px 12px; border-radius: 50px; background: var(--c-primary); color: var(--c-white);
	font-size: 12px; font-weight: 600;
}
.shop-card__head { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.shop-card__head > div { min-width: 0; }
.shop-card__logo {
	flex: none; display: flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; border-radius: var(--r-md); overflow: hidden;
	background: var(--c-section);
}
.shop-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.shop-card__initials { font-family: var(--f-heading); font-size: 22px; font-weight: 500; color: var(--c-primary); }
.shop-card__title { font-size: 20px; margin: 0 0 4px; }
.shop-card__title a { color: var(--c-heading); }
.shop-card__title a:hover { color: var(--c-primary); }
.shop-card__location { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.shop-card__location svg { color: var(--c-primary); flex: none; }
.shop-card__brands { font-size: 14px; margin: 0 0 12px; }
.shop-card__brands strong { color: var(--c-heading); font-weight: 600; }
.shop-card__tags { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shop-card__tags li {
	padding: 5px 11px; border-radius: 50px;
	background: var(--c-section); color: var(--c-heading);
	font-size: 12.5px; font-weight: 500;
}
.shop-card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--c-border); }
.shop-card__actions .btn { flex: 1 1 0; padding-left: 10px; padding-right: 10px; }

.shop-list { margin: 56px 0; }
.shop-list__heading, .compare__heading, .page-links__title { font-size: 30px; margin: 0 0 24px; }
.shop-list__empty {
	padding: 26px 28px; border-radius: var(--r-md); background: var(--c-section);
	border-left: 4px solid var(--c-primary);
}
.shop-list__empty p { margin: 0; }

/* Steps (dark) ----------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.step { padding: 34px 30px; border-radius: var(--r-md); background: var(--c-dark-card); transition: var(--t); }
.step:hover { transform: translateY(-4px); }
.step__num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; margin: 0 0 22px; border-radius: var(--r-md);
	background: var(--c-primary); color: var(--c-white);
	font-family: var(--f-heading); font-size: 20px; font-weight: 500;
}
.step__title { color: var(--c-white); font-size: 21px; margin: 0 0 10px; }
.step__text { margin: 0; font-size: 15px; color: var(--c-muted); }

/* Comparison table ------------------------------------------------------- */
.compare { margin: 56px 0; }
.section .compare { margin: 0; }
.compare__note { margin: 0 0 20px; font-size: 15px; }
.section .compare__note { text-align: center; max-width: 720px; margin: -30px auto 28px; }
.compare__scroll { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--c-border); }
.compare__table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; background: var(--c-white); }
.compare__table th, .compare__table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.compare__table thead th { background: var(--c-heading); color: var(--c-white); font-weight: 600; font-size: 13.5px; }
.compare__table tbody tr:nth-child(even) { background: #FAFAFA; }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table tbody th a { color: var(--c-heading); font-weight: 600; }
.compare__table tbody th a:hover { color: var(--c-primary); }
.compare__badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 50px; background: rgba(255, 54, 0, .1); color: var(--c-primary); font-size: 11px; font-weight: 600; }
.compare__more { text-align: center; margin: 32px 0 0; }

/* Counts ----------------------------------------------------------------- */
.counts { background: var(--c-primary); color: var(--c-white); padding: 64px 0; }
.counts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.count__num { display: block; font-family: var(--f-heading); font-size: clamp(40px, 5vw, 60px); font-weight: 500; line-height: 1; margin: 0 0 8px; }
.count__label { font-size: 16px; opacity: .92; }

/* FAQ -------------------------------------------------------------------- */
.faq { display: grid; gap: 14px; }
.faq__item { background: var(--c-white); border-radius: var(--r-md); border: 1px solid var(--c-border); transition: var(--t); }
.faq__item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 18px;
	padding: 22px 26px; cursor: pointer; list-style: none;
	font-family: var(--f-heading); font-size: 19px; font-weight: 500; color: var(--c-heading);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; background: var(--c-section); color: var(--c-heading); transition: var(--t);
}
.faq__item[open] .faq__q { color: var(--c-primary); }
.faq__item[open] .faq__icon { background: var(--c-primary); color: var(--c-white); transform: rotate(180deg); }
.faq__a { padding: 0 26px 22px; }
.faq__a p:last-child { margin: 0; }

/* CTA band --------------------------------------------------------------- */
.cta-band {
	background-color: var(--c-heading);
	background-image:
		radial-gradient(circle at 92% 50%, rgba(255, 54, 0, .4), transparent 40%),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: cover, 48px 48px, 48px 48px;
	color: rgba(255, 255, 255, .82);
	padding: 84px 0;
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band__title { color: var(--c-white); font-size: clamp(30px, 4vw, 46px); margin: 0 0 12px; }
.cta-band__text { margin: 0; max-width: 640px; font-size: 17px; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--c-dark); color: var(--c-muted); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; padding-top: 90px; padding-bottom: 60px; }
.site-footer__brand .text-logo { color: var(--c-white); margin: 0 0 20px; }
.site-footer__brand p { max-width: 360px; }
.site-footer__title { color: var(--c-white); font-size: 20px; margin: 0 0 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--c-muted); }
.site-footer a:hover { color: var(--c-primary); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 24px 0; font-size: 13.5px; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; }
.site-footer__tm { max-width: 720px; opacity: .8; }

/* Inner page banner ------------------------------------------------------ */
.page-banner {
	background-color: var(--c-heading);
	background-image:
		radial-gradient(circle at 85% 30%, rgba(255, 54, 0, .32), transparent 40%),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: cover, 48px 48px, 48px 48px;
	color: rgba(255, 255, 255, .8);
	padding: 70px 0 74px;
}
.page-banner__title { color: var(--c-white); font-size: clamp(32px, 4.4vw, 52px); margin: 0; }
.page-banner__intro { margin: 14px 0 0; max-width: 720px; font-size: 17px; }
.breadcrumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--c-primary); border-right: 1.5px solid var(--c-primary); transform: rotate(45deg); }
.breadcrumbs a { color: rgba(255, 255, 255, .8); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs [aria-current] { color: var(--c-white); }

.page-body { padding: 80px 0 100px; }
.page-body > .section { margin-top: 80px; }

/* Entry content ---------------------------------------------------------- */
.entry-content { font-size: 17px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 32px; margin: 1.6em 0 .55em; }
.entry-content h3 { font-size: 24px; margin: 1.5em 0 .5em; }
.entry-content h4 { font-size: 20px; margin: 1.4em 0 .5em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; }
.entry-content li { margin: 0 0 .4em; }
.entry-content li::marker { color: var(--c-primary); }
.entry-content blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--c-primary); background: var(--c-section); border-radius: 0 var(--r-md) var(--r-md) 0; }
.entry-content img { border-radius: var(--r-md); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content .btn, .entry-content .shop-card a, .entry-content .page-links a { text-decoration: none; }
.entry-content figure.wp-block-table { margin: 1.6em 0; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.entry-content th, .entry-content td { padding: 12px 16px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.entry-content thead th, .entry-content table tr:first-child th { background: var(--c-heading); color: var(--c-white); font-weight: 600; }
.entry-content tbody tr:nth-child(even) { background: #FAFAFA; }
.entry-content td:first-child { font-weight: 600; color: var(--c-heading); white-space: nowrap; }
.entry-meta { font-size: 14px; color: var(--c-text); margin: 0 0 20px; }
.entry-image { margin: 0 0 32px; }

/* Related page links ----------------------------------------------------- */
.page-links { margin: 56px 0 0; }
.page-links__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.page-links__grid li { margin: 0; }
.page-links__grid a {
	display: flex; align-items: center; gap: 12px; height: 100%;
	padding: 14px 18px; border: 1px solid var(--c-border); border-radius: var(--r-md);
	color: var(--c-heading); font-weight: 600; font-size: 15px; background: var(--c-white); transition: var(--t);
}
.page-links__grid a:hover { border-color: var(--c-primary); color: var(--c-primary); box-shadow: var(--shadow); }
.page-links__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--c-section); color: var(--c-primary); }

/* Single shop ------------------------------------------------------------ */
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.shop-main__head { display: flex; align-items: center; gap: 24px; margin: 0 0 36px; padding: 0 0 32px; border-bottom: 1px solid var(--c-border); }
.shop-main__logo {
	flex: none; display: flex; align-items: center; justify-content: center;
	width: 120px; height: 120px; border-radius: var(--r-lg); background: var(--c-section); overflow: hidden;
}
.shop-main__logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.shop-main__logo .shop-card__initials { font-size: 38px; }
.shop-main__location { display: flex; align-items: center; gap: 6px; margin: 10px 0 12px; font-size: 16px; color: var(--c-heading); }
.shop-main__location svg { color: var(--c-primary); }
.shop-main__title { font-size: 28px; margin: 36px 0 16px; }
.shop-main__head + .shop-main__title { margin-top: 0; }
.details-table { width: 100%; border-collapse: collapse; font-size: 15.5px; border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.details-table th, .details-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.details-table th { width: 40%; color: var(--c-heading); font-weight: 600; background: #FAFAFA; }
.details-table tr:last-child th, .details-table tr:last-child td { border-bottom: 0; }
.details-note { margin: 14px 0 0; font-size: 14px; }
.shop-side { position: sticky; top: 140px; }
.side-card { padding: 30px; border-radius: var(--r-md); background: var(--c-section); display: grid; gap: 12px; }
.side-card__title { font-size: 22px; margin: 0 0 6px; }
.side-card__note { margin: 6px 0 0; font-size: 14px; }
.related { padding: 90px 0; }
.related__title { font-size: 32px; margin: 0 0 30px; }

/* Shop list filters ------------------------------------------------------ */
.filter-bar {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 16px; align-items: end;
	padding: 22px; margin: -130px 0 36px; position: relative;
	background: var(--c-white); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.filter-bar--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.post-type-archive-cncmp_shop .page-banner { padding-bottom: 150px; }
.filter-bar__field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--c-heading); }
.filter-bar__actions { display: flex; align-items: center; gap: 14px; }
.filter-bar__reset { font-size: 14px; font-weight: 600; }
.results-count { font-weight: 600; color: var(--c-heading); margin: 0 0 18px; }

/* Forms ------------------------------------------------------------------ */
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=search], input[type=date], select, textarea {
	width: 100%; min-height: 50px; padding: 12px 16px;
	font: inherit; font-size: 15px; color: var(--c-heading);
	background: var(--c-white); border: 1px solid rgba(85, 85, 85, .2); border-radius: var(--r-sm);
	outline: none; transition: border-color .2s ease;
	-webkit-appearance: none; appearance: none;
}
textarea { min-height: 140px; resize: vertical; }
select {
	padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23050B20' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center;
}
input:focus, select:focus, textarea:focus { border-color: var(--c-primary); }
.cncmp-form { display: grid; gap: 6px; margin: 30px 0 0; }
.cncmp-form p { margin: 0 0 12px; }
.cncmp-form label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--c-heading); }
.cncmp-form label span { color: var(--c-primary); }
.cncmp-form fieldset { margin: 0 0 22px; padding: 24px 24px 12px; border: 1px solid var(--c-border); border-radius: var(--r-md); }
.cncmp-form legend { padding: 0 8px; font-family: var(--f-heading); font-size: 19px; font-weight: 500; color: var(--c-heading); }
.cncmp-form__row { display: grid; gap: 0 18px; }
.cncmp-form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cncmp-form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cncmp-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 18px; margin: 0 0 14px; }
.cncmp-checks label, .cncmp-form__check label { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--c-text); margin: 0; }
.cncmp-checks input, .cncmp-form__check input { width: 17px; height: 17px; accent-color: var(--c-primary); }
.cncmp-states summary { cursor: pointer; font-weight: 600; color: var(--c-primary); margin: 0 0 12px; }
.cncmp-checks--states { margin-top: 12px; }
.cncmp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cncmp-notice { padding: 16px 20px; border-radius: var(--r-md); margin: 24px 0 0; font-weight: 500; }
.cncmp-notice--ok { background: #EAF7EE; color: #145C2C; border-left: 4px solid #1F9D4C; }
.cncmp-notice--error { background: #FFF0EB; color: #8A1F00; border-left: 4px solid var(--c-primary); }

.search-form { display: flex; gap: 10px; max-width: 560px; }
.search-again { margin: 0 0 36px; }
.not-found .search-form { margin: 24px 0; }
.not-found__links { display: flex; gap: 12px; flex-wrap: wrap; }

/* Blog ------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.post-card { border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; background: var(--c-white); transition: var(--t); }
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-card__image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 24px 26px 26px; }
.post-card__date { font-size: 13px; color: var(--c-primary); font-weight: 600; margin: 0 0 8px; }
.post-card__title { font-size: 22px; margin: 0 0 10px; }
.post-card__title a { color: var(--c-heading); }
.post-card__title a:hover { color: var(--c-primary); }
.post-card__excerpt { margin: 0; font-size: 15px; }

.pagination { margin: 48px 0 0; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: var(--r-sm); border: 1px solid var(--c-border); color: var(--c-heading); font-weight: 600;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1199px) {
	.site-header__logo { min-width: 0; padding: 14px 24px; }
	.topbar, .navbar { padding-left: 24px; padding-right: 24px; }
	.topbar__text { display: none; }
	.navbar__find { display: none; }
	.nav__list a { padding: 24px 10px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.cat-grid > li { flex-basis: calc((100% - 48px) / 3); }
	.shop-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
}

@media (max-width: 991px) {
	.site-header { align-items: center; justify-content: space-between; }
	.site-header__logo { border-right: 0; flex: 1 1 auto; min-width: 0; }
	.site-header__right { flex: 0 0 auto; }
	/* An uploaded logo shrinks so the menu button stays on screen. */
	.site-header__logo img { width: auto; height: auto; max-width: 100%; max-height: 52px; }
	.topbar { display: none; }
	.navbar { min-height: 0; padding: 12px 20px; }
	.nav-toggle { display: inline-flex; }
	.nav {
		position: fixed; inset: 0 0 0 auto; z-index: 200; width: min(360px, 88vw);
		padding: 90px 24px 32px; overflow-y: auto;
		background: var(--c-white);
		transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s;
	}
	.nav-open .nav { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
	.nav-open .nav-toggle { position: relative; z-index: 210; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list a { padding: 14px 4px; border-bottom: 1px solid var(--c-border); }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.nav__list .menu-item-has-children > a::after { display: none; }
	.navbar__actions .btn--primary { display: none; }
	.nav__list .menu-item--mobile { display: block; }
	.nav__list .menu-item--mobile a { color: var(--c-primary); }
	.search-bar { grid-template-columns: 1fr 1fr; }
	.search-bar .btn { grid-column: 1 / -1; }
	.filter-bar { grid-template-columns: 1fr 1fr; }
	.filter-bar__actions { grid-column: 1 / -1; }
	.cta-band__inner { flex-direction: column; align-items: flex-start; }
	.shop-layout { grid-template-columns: 1fr; }
	.shop-side { position: static; }
	.section { padding: 80px 0; }
}

@media (max-width: 640px) {
	.container { padding: 0 18px; }
	.site-header__logo { padding: 12px 18px; }
	.site-header__logo img { max-height: 40px; }
	.text-logo__name { font-size: 20px; }
	.text-logo__mark { width: 36px; height: 36px; }
	.hero { padding: 80px 0 130px; clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); }
	.search-bar, .filter-bar { grid-template-columns: 1fr; }
	.counts__grid { grid-template-columns: 1fr; }
	.cat-grid { gap: 14px; }
	.cat-grid > li { flex-basis: calc(50% - 7px); min-width: 0; }
	.cat-card { padding: 24px 14px; }
	.cat-card__icon { width: 56px; height: 56px; margin-bottom: 14px; }
	.cat-card__title { font-size: 18px; }
	.cat-card__text { font-size: 13px; }
	.site-footer__grid { grid-template-columns: 1fr; padding-top: 64px; }
	.cncmp-form__row--2, .cncmp-form__row--3 { grid-template-columns: 1fr; }
	.shop-main__head { flex-direction: column; align-items: flex-start; }
	.page-body { padding: 56px 0 72px; }
	.entry-content td:first-child { white-space: normal; }
}

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

/* Shop page: unpublished facts line and Listed On links */
.details-missing { margin: 14px 0 0; font-size: 14px; color: var(--c-text); }
.details-table td a { color: var(--c-primary); font-weight: 500; }
.listed-on { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.listed-on a { display: inline-block; padding: 9px 16px; border: 1px solid var(--c-border, #e9e9e9); border-radius: 30px; font-size: 15px; color: var(--c-heading); transition: var(--t); }
.listed-on a:hover { border-color: var(--c-primary); color: var(--c-primary); }
