/* ==========================================================================
   City Portal Directory — front-end styles (v1.1 modern)
   ========================================================================== */

:root {
	--cpd-accent: #4f46e5;
	--cpd-accent-2: #7c3aed;
	--cpd-accent-dark: #3730a3;
	--cpd-ink: #0b1220;
	--cpd-muted: #667085;
	--cpd-line: #eaecf2;
	--cpd-bg-soft: #f6f7fb;
	--cpd-radius: 18px;
	--cpd-radius-sm: 12px;
	--cpd-shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
	--cpd-shadow-hover: 0 18px 48px rgba(16,24,40,.16);
	--cpd-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cpd-directory, .cpd-offers, .cpd-videos, .cpd-single, .cpd-form, .cpd-hero { font-family: var(--cpd-font); }
.cpd-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Buttons ------------------------------------------------------------------ */
.cpd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
	line-height: 1; cursor: pointer; text-decoration: none; border: 0;
	transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, filter .18s ease;
}
.cpd-btn--primary { background: linear-gradient(135deg, var(--cpd-accent), var(--cpd-accent-2)); color: #fff; box-shadow: 0 6px 18px rgba(79,70,229,.35); }
.cpd-btn--primary:hover { transform: translateY(-2px); filter: brightness(1.05); color: #fff; }
.cpd-btn--light { background: #fff; color: var(--cpd-ink); box-shadow: var(--cpd-shadow); }
.cpd-btn--light:hover { transform: translateY(-2px); }
.cpd-btn--small { padding: .55rem 1.05rem; font-size: .85rem; }

/* Hero --------------------------------------------------------------------- */
.cpd-hero {
	position: relative; overflow: hidden; color: #fff; text-align: center;
	padding: clamp(3.5rem, 9vw, 8rem) 20px; border-radius: 28px;
	background:
		radial-gradient(1200px 500px at 15% -10%, rgba(124,58,237,.55), transparent 60%),
		radial-gradient(900px 500px at 100% 0%, rgba(14,165,233,.45), transparent 55%),
		linear-gradient(135deg, var(--cpd-accent), var(--cpd-accent-dark));
	background-size: cover; background-position: center;
}
.cpd-hero::after {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
	background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.cpd-hero__inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.cpd-hero__title { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin: 0 0 .6rem; line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.cpd-hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); opacity: .94; margin: 0 0 2rem; }
.cpd-hero__search {
	display: flex; gap: .4rem; max-width: 600px; margin: 0 auto 1.3rem;
	background: rgba(255,255,255,.16); padding: .45rem; border-radius: 999px;
	backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25);
}
.cpd-hero__search input { flex: 1; padding: .85rem 1.2rem; border-radius: 999px; border: 0; font-size: 1rem; color: var(--cpd-ink); }
.cpd-hero__search input:focus { outline: 2px solid #fff; }

/* Hero layout variants -------------------------------------------------- */
/* left: content aligned to the left edge */
.cpd-hero--left { text-align: left; }
.cpd-hero--left .cpd-hero__inner { margin: 0; max-width: 680px; }
.cpd-hero--left .cpd-hero__search { margin-left: 0; margin-right: 0; }

/* compact: short, search-focused */
.cpd-hero--compact { padding: clamp(2rem, 5vw, 3.5rem) 20px; }
.cpd-hero--compact .cpd-hero__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.cpd-hero--compact .cpd-hero__subtitle { margin-bottom: 1.2rem; }
.cpd-hero--compact .cpd-hero__search { max-width: 680px; }

/* split: text left, search card right */
.cpd-hero--split { text-align: left; }
.cpd-hero__inner--split {
	display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center; max-width: 1100px;
}
.cpd-hero__text { max-width: 560px; }
.cpd-hero__card {
	background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
	backdrop-filter: blur(10px); border-radius: 20px; padding: 1.6rem;
}
.cpd-hero__card-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .7rem; color: #fff; }
.cpd-hero__card .cpd-hero__search { margin: 0; background: #fff; border: 0; flex-direction: column; gap: .6rem; }
.cpd-hero__card .cpd-hero__search input { width: 100%; }
.cpd-hero__card .cpd-hero__search .cpd-btn { width: 100%; }

@media (max-width: 780px) {
	.cpd-hero__inner--split { grid-template-columns: 1fr; }
}

/* Filter bar --------------------------------------------------------------- */
.cpd-filter {
	display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.8rem; align-items: center;
	background: #fff; padding: .7rem; border-radius: 999px; border: 1px solid var(--cpd-line);
	box-shadow: var(--cpd-shadow);
}
.cpd-filter input, .cpd-filter select {
	padding: .75rem 1.1rem; border: 0; border-radius: 999px; font-size: .95rem;
	flex: 1; min-width: 150px; background: var(--cpd-bg-soft);
}
.cpd-filter input:focus, .cpd-filter select:focus { outline: 2px solid var(--cpd-accent); }

/* Grid / Masonry ----------------------------------------------------------- */
.cpd-grid { display: grid; grid-template-columns: repeat(var(--cpd-cols, 3), 1fr); gap: 1.6rem; }
.cpd-masonry { columns: var(--cpd-cols, 3); column-gap: 1.6rem; }
.cpd-masonry .cpd-card { break-inside: avoid; margin-bottom: 1.6rem; }

/* Card --------------------------------------------------------------------- */
.cpd-card {
	background: #fff; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius);
	overflow: hidden; box-shadow: var(--cpd-shadow);
	transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease;
	display: flex; flex-direction: column;
}
.cpd-card:hover { transform: translateY(-6px); box-shadow: var(--cpd-shadow-hover); }
.cpd-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cpd-bg-soft); }
.cpd-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.cpd-card:hover .cpd-card__img img { transform: scale(1.06); }
.cpd-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--cpd-accent), var(--cpd-accent-2)); }
.cpd-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; }
.cpd-card__title { font-size: 1.2rem; margin: 0; letter-spacing: -.01em; }
.cpd-card__title a { color: var(--cpd-ink); text-decoration: none; }
.cpd-card__title a:hover { color: var(--cpd-accent); }
.cpd-card__excerpt { color: var(--cpd-muted); font-size: .92rem; margin: 0; }
.cpd-card__loc { font-size: .85rem; color: var(--cpd-muted); }
.cpd-cat {
	display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
	background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(124,58,237,.12));
	color: var(--cpd-accent); padding: .3rem .7rem; border-radius: 999px; font-weight: 700; margin-right: .3rem;
}
.cpd-cat a { color: inherit; text-decoration: none; }
.cpd-card .cpd-btn--small { align-self: flex-start; margin-top: .3rem; }

/* List --------------------------------------------------------------------- */
.cpd-list { display: flex; flex-direction: column; gap: 1.2rem; }
.cpd-list__item {
	display: grid; grid-template-columns: 240px 1fr; gap: 1.4rem; background: #fff;
	border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius); overflow: hidden;
	box-shadow: var(--cpd-shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.cpd-list__item:hover { transform: translateY(-3px); box-shadow: var(--cpd-shadow-hover); }
.cpd-list__thumb { overflow: hidden; }
.cpd-list__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpd-list__body { padding: 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.cpd-list__title { margin: 0; font-size: 1.35rem; letter-spacing: -.01em; }
.cpd-list__title a { color: var(--cpd-ink); text-decoration: none; }
.cpd-list__title a:hover { color: var(--cpd-accent); }
.cpd-meta-list { list-style: none; padding: 0; margin: .3rem 0; display: flex; flex-wrap: wrap; gap: 1.1rem; color: var(--cpd-muted); font-size: .9rem; }
.cpd-meta-list a { color: var(--cpd-muted); text-decoration: none; }
.cpd-list__body .cpd-btn--small { align-self: flex-start; }

/* Map ---------------------------------------------------------------------- */
.cpd-map-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 1.4rem; }
.cpd-map { height: 560px; width: 100%; border-radius: var(--cpd-radius); z-index: 0; box-shadow: var(--cpd-shadow); }
.cpd-map__list { display: flex; flex-direction: column; gap: .6rem; max-height: 560px; overflow-y: auto; padding-right: .3rem; }
.cpd-map__list-item {
	display: block; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--cpd-line);
	border-radius: var(--cpd-radius-sm); text-decoration: none; color: var(--cpd-ink); font-weight: 600;
	transition: border-color .15s ease, transform .15s ease;
}
.cpd-map__list-item:hover { border-color: var(--cpd-accent); color: var(--cpd-accent); transform: translateX(3px); }

/* Offers ------------------------------------------------------------------- */
.cpd-offers { display: grid; grid-template-columns: repeat(var(--cpd-cols, 3), 1fr); gap: 1.6rem; }
.cpd-offer-card {
	position: relative; background: #fff; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius);
	overflow: hidden; box-shadow: var(--cpd-shadow); transition: transform .22s ease, box-shadow .22s ease;
}
.cpd-offer-card:hover { transform: translateY(-6px); box-shadow: var(--cpd-shadow-hover); }
.cpd-offer-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.cpd-offer-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cpd-offer-card__badge {
	position: absolute; top: 12px; right: 12px; z-index: 3;
	background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff;
	font-weight: 800; padding: .35rem .8rem; border-radius: 999px; font-size: .85rem;
	box-shadow: 0 6px 16px rgba(244,63,94,.4);
}
.cpd-offer-card__body { padding: 1.2rem 1.3rem; }
.cpd-offer-card__title { margin: 0 0 .4rem; font-size: 1.15rem; }
.cpd-offer-card__title a { color: var(--cpd-ink); text-decoration: none; }
.cpd-offer-card__expiry { font-size: .82rem; color: var(--cpd-muted); }

/* Videos ------------------------------------------------------------------- */
.cpd-videos { display: grid; grid-template-columns: repeat(var(--cpd-cols, 3), 1fr); gap: 1.4rem; }
.cpd-video { position: relative; border-radius: var(--cpd-radius); overflow: hidden; box-shadow: var(--cpd-shadow); }
.cpd-video iframe { width: 100% !important; aspect-ratio: 16 / 9; height: auto !important; display: block; border: 0; }

/* Single business ---------------------------------------------------------- */
.cpd-single { display: grid; gap: 1.8rem; margin-top: 2.2rem; }
.cpd-single h3 { margin: 0 0 .9rem; font-size: 1.3rem; letter-spacing: -.01em; }
.cpd-single__info { background: var(--cpd-bg-soft); border-radius: var(--cpd-radius); padding: 1.6rem 1.8rem; border: 1px solid var(--cpd-line); }
.cpd-single__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.cpd-single__list li { display: flex; gap: .7rem; align-items: baseline; color: var(--cpd-ink); }
.cpd-single__icon { width: 1.5rem; flex-shrink: 0; }
.cpd-single__social { margin-top: 1.1rem; display: flex; gap: .9rem; }
.cpd-single__social a { color: var(--cpd-accent); font-weight: 700; text-decoration: none; }
.cpd-single__video iframe { width: 100% !important; aspect-ratio: 16 / 9; height: auto !important; border: 0; border-radius: var(--cpd-radius); }

/* Forms -------------------------------------------------------------------- */
.cpd-form { max-width: 740px; display: flex; flex-direction: column; gap: 1.1rem; }
.cpd-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cpd-form__row { display: flex; flex-direction: column; gap: .4rem; }
.cpd-form__row label { font-weight: 600; font-size: .9rem; }
.cpd-form input, .cpd-form textarea, .cpd-form select {
	padding: .85rem 1.1rem; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius-sm);
	font-size: 1rem; font-family: inherit; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.cpd-form input:focus, .cpd-form textarea:focus, .cpd-form select:focus {
	outline: 0; border-color: var(--cpd-accent); box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
.cpd-form__row--consent label { font-weight: 400; flex-direction: row; gap: .5rem; }
.cpd-alert { padding: 1.1rem 1.3rem; border-radius: var(--cpd-radius-sm); margin-bottom: 1.6rem; }
.cpd-alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* Misc --------------------------------------------------------------------- */
.cpd-empty { color: var(--cpd-muted); padding: 2.5rem; text-align: center; background: var(--cpd-bg-soft); border-radius: var(--cpd-radius); }
.cpd-pagination { margin-top: 2.4rem; display: flex; justify-content: center; gap: .45rem; flex-wrap: wrap; }
.cpd-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
	padding: 0 .7rem; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius-sm);
	text-decoration: none; color: var(--cpd-ink); font-weight: 600; background: #fff;
}
.cpd-pagination .page-numbers.current { background: linear-gradient(135deg, var(--cpd-accent), var(--cpd-accent-2)); color: #fff; border-color: transparent; }
.cpd-pagination .page-numbers:hover:not(.current) { border-color: var(--cpd-accent); color: var(--cpd-accent); }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 980px) {
	.cpd-grid, .cpd-offers, .cpd-videos { grid-template-columns: repeat(2, 1fr); }
	.cpd-masonry { columns: 2; }
	.cpd-map-wrap { grid-template-columns: 1fr; }
	.cpd-map__list { flex-direction: row; overflow-x: auto; max-height: none; }
}
@media (max-width: 640px) {
	.cpd-grid, .cpd-offers, .cpd-videos { grid-template-columns: 1fr; }
	.cpd-masonry { columns: 1; }
	.cpd-list__item { grid-template-columns: 1fr; }
	.cpd-form__grid { grid-template-columns: 1fr; }
	.cpd-hero__search { flex-direction: column; background: transparent; border: 0; padding: 0; }
	.cpd-hero__search input { width: 100%; }
}

/* ==========================================================================
   Single business — professional one-page layout
   ========================================================================== */
.cpd-bp { font-family: var(--cpd-font); }
.cpd-bp__cover {
	background: linear-gradient(135deg, var(--cpd-accent), var(--cpd-accent-dark));
	background-size: cover; background-position: center; color: #fff;
	padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
	display: flex; align-items: flex-end; min-height: 340px;
}
.cpd-bp__cover-inner { width: 100%; }
.cpd-bp__crumbs { font-size: .85rem; opacity: .9; margin-bottom: 1rem; display: flex; gap: .5rem; align-items: center; }
.cpd-bp__crumbs a { color: #fff; text-decoration: none; opacity: .85; }
.cpd-bp__crumbs a:hover { opacity: 1; text-decoration: underline; }
.cpd-bp__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.cpd-bp__tags a {
	background: rgba(255,255,255,.2); color: #fff; text-decoration: none; font-size: .72rem;
	text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: .3rem .8rem; border-radius: 999px;
	backdrop-filter: blur(4px);
}
.cpd-bp__title { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .5rem; letter-spacing: -.02em; }
.cpd-bp__addr { margin: 0 0 1.3rem; opacity: .95; font-size: 1.05rem; }
.cpd-bp__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Sticky section nav */
.cpd-bp__nav {
	position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92);
	backdrop-filter: blur(10px); border-bottom: 1px solid var(--cpd-line);
}
.cpd-bp__nav-inner { display: flex; gap: 1.8rem; overflow-x: auto; }
.cpd-bp__nav-inner a {
	display: inline-block; padding: 1rem 0; color: var(--cpd-muted); text-decoration: none;
	font-weight: 600; font-size: .95rem; white-space: nowrap; border-bottom: 2px solid transparent;
}
.cpd-bp__nav-inner a:hover { color: var(--cpd-accent); border-bottom-color: var(--cpd-accent); }

/* Body grid */
.cpd-bp__body { display: grid; grid-template-columns: 1fr 360px; gap: 2.6rem; padding: clamp(2rem,5vw,3.5rem) 20px; }
.cpd-bp__section { margin-bottom: 2.8rem; scroll-margin-top: 80px; }
.cpd-bp__section h2 { font-size: 1.6rem; margin: 0 0 1.1rem; letter-spacing: -.01em; }
.cpd-bp__prose { font-size: 1.06rem; color: #243049; }
.cpd-bp__prose > * + * { margin-top: 1rem; }

/* Gallery */
.cpd-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.cpd-gallery__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--cpd-radius-sm); cursor: zoom-in; }
.cpd-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cpd-gallery__item:hover img { transform: scale(1.08); }

/* Sticky contact card */
.cpd-bp__aside { position: relative; }
.cpd-bp__card {
	position: sticky; top: 84px; background: #fff; border: 1px solid var(--cpd-line);
	border-radius: var(--cpd-radius); box-shadow: var(--cpd-shadow); padding: 1.6rem 1.7rem;
}
.cpd-bp__card h3 { margin: 0 0 1rem; font-size: 1.2rem; }
.cpd-bp__card h4 { margin: 1.3rem 0 .5rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cpd-muted); }
.cpd-bp__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cpd-bp__contact li { display: flex; gap: .6rem; align-items: baseline; }
.cpd-bp__contact a { color: var(--cpd-ink); text-decoration: none; word-break: break-word; }
.cpd-bp__contact a:hover { color: var(--cpd-accent); }
.cpd-bp__hours { color: #243049; font-size: .95rem; line-height: 1.9; background: var(--cpd-bg-soft); padding: .8rem 1rem; border-radius: var(--cpd-radius-sm); }
.cpd-bp__social { margin-top: 1.1rem; display: flex; gap: .9rem; }
.cpd-bp__social a { color: var(--cpd-accent); font-weight: 700; text-decoration: none; }
.cpd-bp__cta { width: 100%; margin-top: 1.3rem; }

/* Lightbox */
.cpd-lightbox {
	position: fixed; inset: 0; z-index: 9999; background: rgba(11,18,32,.92);
	display: flex; align-items: center; justify-content: center; padding: 30px;
	opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.cpd-lightbox.is-open { opacity: 1; visibility: visible; }
.cpd-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cpd-lightbox__close, .cpd-lightbox__nav {
	position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
	width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
	display: flex; align-items: center; justify-content: center; transition: background .15s ease;
}
.cpd-lightbox__close:hover, .cpd-lightbox__nav:hover { background: rgba(255,255,255,.25); }
.cpd-lightbox__close { top: 24px; right: 24px; }
.cpd-lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.cpd-lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 980px) {
	.cpd-bp__body { grid-template-columns: 1fr; }
	.cpd-bp__card { position: static; }
	.cpd-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.cpd-gallery { grid-template-columns: repeat(2, 1fr); }
	.cpd-bp__videos { --cpd-cols: 1; }
}

/* ==========================================================================
   News slider (self-built, hero-style carousel)
   ========================================================================== */
.cpd-slider {
	position: relative; overflow: hidden; border-radius: 28px; font-family: var(--cpd-font);
	background: linear-gradient(135deg, var(--cpd-accent), var(--cpd-accent-dark));
	box-shadow: var(--cpd-shadow);
}
/* Full-width: break out of any container to the viewport edges. */
.cpd-slider--full {
	width: 100vw; max-width: 100vw;
	margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
	border-radius: 0; box-shadow: none;
}
.cpd-slider__track { display: flex; transition: transform .6s cubic-bezier(.7, 0, .25, 1); will-change: transform; }
.cpd-slider__slide {
	position: relative; flex: 0 0 100%; min-width: 100%;
	min-height: var(--cpd-slider-h, 500px); display: flex; align-items: flex-end;
	background-size: cover; background-position: center; color: #fff;
	background-color: var(--cpd-accent-dark);
}
.cpd-slider__inner { width: 100%; padding: clamp(2rem, 5vw, 3.5rem) 20px; max-width: 820px; }
.cpd-slider__meta { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; flex-wrap: wrap; }
.cpd-slider__cat {
	background: rgba(255,255,255,.2); backdrop-filter: blur(4px); color: #fff;
	font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	padding: .3rem .8rem; border-radius: 999px;
}
.cpd-slider__date { font-size: .85rem; opacity: .9; font-weight: 600; }
.cpd-slider__title { color: #fff; font-size: clamp(1.7rem, 4.2vw, 3rem); margin: 0 0 .7rem; line-height: 1.08; letter-spacing: -.02em; }
.cpd-slider__title a { color: #fff; text-decoration: none; }
.cpd-slider__title a:hover { text-decoration: underline; }
.cpd-slider__excerpt { font-size: 1.05rem; opacity: .94; margin: 0 0 1.4rem; max-width: 60ch; }

/* Arrows */
.cpd-slider__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255,255,255,.18); color: #fff; font-size: 1.8rem; line-height: 1;
	display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px);
	transition: background .15s ease;
}
.cpd-slider__arrow:hover { background: rgba(255,255,255,.34); }
.cpd-slider__arrow--prev { left: 18px; }
.cpd-slider__arrow--next { right: 18px; }

/* Dots */
.cpd-slider__dots { position: absolute; bottom: 18px; right: 24px; z-index: 3; display: flex; gap: .5rem; }
.cpd-slider__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.45); transition: width .2s ease, background .2s ease; padding: 0; }
.cpd-slider__dot.is-active { background: #fff; width: 26px; border-radius: 999px; }

@media (max-width: 640px) {
	.cpd-slider { border-radius: 18px; }
	.cpd-slider__arrow { width: 40px; height: 40px; font-size: 1.4rem; }
	.cpd-slider__dots { bottom: 12px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.cpd-slider__track { transition: none; }
}

/* ==========================================================================
   Business page — layout variants
   ========================================================================== */
/* Sidebar left: put the contact column first */
.cpd-bp--sidebar-left .cpd-bp__main { order: 2; }
.cpd-bp--sidebar-left .cpd-bp__aside { order: 1; }
.cpd-bp--sidebar-left .cpd-bp__body { grid-template-columns: 360px 1fr; }

/* Stacked, gallery, minimal: single full-width column, contact as a band */
.cpd-bp--stacked .cpd-bp__body,
.cpd-bp--gallery .cpd-bp__body,
.cpd-bp--minimal .cpd-bp__body { grid-template-columns: 1fr; }
.cpd-bp--stacked .cpd-bp__card,
.cpd-bp--gallery .cpd-bp__card,
.cpd-bp--minimal .cpd-bp__card { position: static; }
.cpd-bp--stacked .cpd-bp__aside,
.cpd-bp--gallery .cpd-bp__aside,
.cpd-bp--minimal .cpd-bp__aside { margin-top: 1rem; }
/* On full-width layouts, lay the contact card out in a horizontal band */
.cpd-bp--stacked .cpd-bp__card,
.cpd-bp--gallery .cpd-bp__card {
	display: grid; grid-template-columns: 1fr 1fr auto; gap: 1.4rem 2rem; align-items: start;
}
.cpd-bp--stacked .cpd-bp__card h3,
.cpd-bp--gallery .cpd-bp__card h3 { grid-column: 1 / -1; }
.cpd-bp--stacked .cpd-bp__cta,
.cpd-bp--gallery .cpd-bp__cta { align-self: center; margin-top: 0; }

/* Gallery-first: make the lead gallery larger */
.cpd-bp--gallery #gallery .cpd-gallery { grid-template-columns: repeat(4, 1fr); }

/* Minimal: clean, narrow, no cover image */
.cpd-bp__mini { padding: clamp(2rem, 5vw, 3.2rem) 0 .5rem; border-bottom: 1px solid var(--cpd-line); margin-bottom: 1.5rem; }
.cpd-bp__mini .cpd-bp__crumbs { color: var(--cpd-muted); margin-bottom: 1rem; }
.cpd-bp__mini .cpd-bp__crumbs a { color: var(--cpd-muted); }
.cpd-bp__mini .cpd-bp__title { color: var(--cpd-ink); font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.cpd-bp__mini .cpd-bp__addr { color: var(--cpd-muted); }
.cpd-bp__mini .cpd-bp__tags a { background: var(--cpd-bg-soft); color: var(--cpd-accent); }
.cpd-bp__mini .cpd-btn--light { background: var(--cpd-bg-soft); }
.cpd-bp--minimal .cpd-bp__main { max-width: 780px; margin: 0 auto; }
.cpd-bp--minimal .cpd-bp__aside { max-width: 780px; margin-left: auto; margin-right: auto; }

/* Split header: image beside the title/actions */
.cpd-bp__cover--split { background: var(--cpd-bg-soft); color: var(--cpd-ink); padding: clamp(1.5rem, 4vw, 2.6rem) 0; display: block; min-height: 0; }
.cpd-bp__split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: stretch; }
.cpd-bp__split-media { border-radius: var(--cpd-radius); background-size: cover; background-position: center; min-height: 320px; background-color: var(--cpd-accent-dark); }
.cpd-bp__split-info { display: flex; flex-direction: column; justify-content: center; }
.cpd-bp__split-info .cpd-bp__crumbs { color: var(--cpd-muted); margin-bottom: .8rem; }
.cpd-bp__split-info .cpd-bp__crumbs a { color: var(--cpd-muted); }
.cpd-bp__split-info .cpd-bp__title { color: var(--cpd-ink); }
.cpd-bp__split-info .cpd-bp__addr { color: var(--cpd-muted); }
.cpd-bp__split-info .cpd-bp__tags a { background: #fff; color: var(--cpd-accent); border: 1px solid var(--cpd-line); }
.cpd-bp__split-info .cpd-btn--light { background: #fff; box-shadow: var(--cpd-shadow); }

@media (max-width: 980px) {
	.cpd-bp--sidebar-left .cpd-bp__body { grid-template-columns: 1fr; }
	.cpd-bp--sidebar-left .cpd-bp__main { order: 1; }
	.cpd-bp--sidebar-left .cpd-bp__aside { order: 2; }
	.cpd-bp__split { grid-template-columns: 1fr; }
	.cpd-bp__split-media { min-height: 220px; }
	.cpd-bp--stacked .cpd-bp__card,
	.cpd-bp--gallery .cpd-bp__card { grid-template-columns: 1fr; }
	.cpd-bp--gallery #gallery .cpd-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Reviews & ratings
   ========================================================================== */
/* Star bar (display) */
.cpd-stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; vertical-align: middle; }
.cpd-stars::before { content: "★★★★★"; color: #d8dbe3; letter-spacing: 2px; }
.cpd-stars__fill { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; }
.cpd-stars__fill::before { content: "★★★★★"; color: #f59e0b; letter-spacing: 2px; }

/* Card badge */
.cpd-rating-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--cpd-muted); }
.cpd-rating-badge__num { font-weight: 700; color: var(--cpd-ink); }
.cpd-rating-badge__count { font-weight: 400; color: var(--cpd-muted); }

/* Header inline summary */
.cpd-rating-inline { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 600; }
.cpd-bp__actions .cpd-rating-inline { flex-basis: 100%; margin-bottom: .2rem; }
.cpd-bp__mini .cpd-rating-inline, .cpd-bp__split-info .cpd-rating-inline { color: var(--cpd-ink); }

/* Reviews section */
.cpd-reviews__summary { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.cpd-reviews__avg { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.cpd-reviews__summary .cpd-stars { font-size: 1.3rem; }
.cpd-reviews__count { color: var(--cpd-muted); }
.cpd-reviews__list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.2rem; }
.cpd-review { border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius); padding: 1.1rem 1.3rem; background: #fff; }
.cpd-review__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.cpd-review__avatar { border-radius: 50%; }
.cpd-review__author { display: block; font-weight: 700; }
.cpd-review__date { display: block; font-size: .8rem; color: var(--cpd-muted); }
.cpd-review__head .cpd-stars { margin-left: auto; }
.cpd-review__text { color: #243049; }
.cpd-review__text p { margin: 0 0 .5rem; }

/* Interactive star picker (pure CSS) */
.cpd-rate-wrap { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.cpd-rate-label { font-weight: 600; }
.cpd-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.cpd-rate input { position: absolute; opacity: 0; width: 0; height: 0; }
.cpd-rate label { font-size: 1.9rem; line-height: 1; color: #d8dbe3; cursor: pointer; padding: 0 .05em; transition: color .12s ease; }
.cpd-rate label:hover, .cpd-rate label:hover ~ label, .cpd-rate input:checked ~ label { color: #f59e0b; }
.cpd-rate input:focus-visible + label { outline: 2px solid var(--cpd-accent); border-radius: 4px; }

/* Comment/review form spacing */
.cpd-reviews .comment-form { display: grid; gap: 1.1rem; max-width: 640px; }
.cpd-reviews .comment-form p { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.cpd-reviews .comment-form label { font-weight: 600; font-size: .92rem; color: var(--cpd-ink); }
.cpd-reviews .comment-form input[type="text"],
.cpd-reviews .comment-form input[type="email"],
.cpd-reviews .comment-form input[type="url"],
.cpd-reviews .comment-form textarea {
	padding: .8rem 1rem; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius-sm); font-family: inherit; font-size: 1rem; width: 100%;
}
.cpd-reviews .comment-form input:focus,
.cpd-reviews .comment-form textarea:focus {
	border-color: var(--cpd-accent); box-shadow: 0 0 0 3px rgba(79,70,229,.18); outline: 0;
}
/* Consent checkbox: checkbox left, label beside it, both aligned. */
.cpd-reviews .comment-form-cookies-consent {
	flex-direction: row; align-items: flex-start; gap: .6rem;
}
.cpd-reviews .comment-form-cookies-consent input { margin-top: .2rem; flex: 0 0 auto; }
.cpd-reviews .comment-form-cookies-consent label { font-weight: 400; font-size: .88rem; color: var(--cpd-muted); }
/* Anti-spam math question: label and small input on one line. */
.cpd-reviews .comment-form .cpd-captcha { flex-direction: row; align-items: center; flex-wrap: wrap; gap: .5rem; }
.cpd-reviews .comment-form .cpd-captcha label { margin: 0; }
.cpd-reviews .comment-form .cpd-captcha input { width: 90px; padding: .6rem .8rem; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius-sm); font-size: 1rem; }
.cpd-reviews .form-submit { margin: 0; }
.cpd-reviews .form-submit .submit {
	width: 100%; padding: .9rem 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
	background: linear-gradient(135deg, var(--cpd-accent), var(--cpd-accent-2, #7c3aed));
	color: #fff; font-weight: 800; font-size: 1rem;
}
.cpd-reviews .form-submit .submit:hover { opacity: .93; }

/* ==========================================================================
   Smarter filtering: open-now badges, filter controls, AJAX loading
   ========================================================================== */
.cpd-open { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.cpd-open--yes { background: #dcfce7; color: #15803d; }
.cpd-open--no { background: #fee2e2; color: #b91c1c; }

.cpd-bp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.cpd-bp__actions .cpd-bp__meta { flex-basis: 100%; margin-bottom: .3rem; }
.cpd-bp__mini .cpd-open, .cpd-bp__split-info .cpd-open { box-shadow: none; }

/* Filter bar: open-now toggle */
.cpd-filter__open { display: inline-flex; align-items: center; gap: .4rem; padding: 0 .6rem; font-size: .92rem; color: var(--cpd-ink); white-space: nowrap; cursor: pointer; }
.cpd-filter__open input { width: 16px; height: 16px; accent-color: var(--cpd-accent); }

/* AJAX loading state */
.cpd-directory__results { position: relative; min-height: 120px; transition: opacity .15s ease; }
.cpd-directory__results.is-loading { opacity: .45; pointer-events: none; }
.cpd-directory__results.is-loading::after {
	content: ""; position: absolute; top: 40px; left: 50%; width: 34px; height: 34px; margin-left: -17px;
	border: 3px solid var(--cpd-line); border-top-color: var(--cpd-accent); border-radius: 50%;
	animation: cpd-spin .7s linear infinite;
}
@keyframes cpd-spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
	.cpd-filter { border-radius: 18px; }
	.cpd-filter input, .cpd-filter select { min-width: 120px; }
}

/* ==========================================================================
   RGPD cookie consent banner
   ========================================================================== */
.cpd-consent {
	position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 9998;
	width: min(960px, calc(100% - 32px)); background: #fff; color: var(--cpd-ink);
	border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius);
	box-shadow: 0 20px 60px rgba(16,24,40,.22); padding: 1.1rem 1.3rem;
	display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.cpd-consent[hidden] { display: none; }
.cpd-consent__text { margin: 0; flex: 1; min-width: 240px; font-size: .92rem; color: #243049; }
.cpd-consent__text a { color: var(--cpd-accent); font-weight: 600; }
.cpd-consent__actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cpd-consent .cpd-btn { padding: .65rem 1.2rem; }
@media (max-width: 560px) {
	.cpd-consent { bottom: 0; border-radius: 16px 16px 0 0; }
	.cpd-consent__actions { width: 100%; }
	.cpd-consent__actions .cpd-btn { flex: 1; }
}

/* ==========================================================================
   Owner dashboard, claim, front-end hours grid
   ========================================================================== */
.cpd-dash__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.cpd-dash__head h2 { margin: 0; }
.cpd-dash__table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius); overflow: hidden; }
.cpd-dash__table th, .cpd-dash__table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--cpd-line); }
.cpd-dash__table th { background: var(--cpd-bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cpd-muted); }
.cpd-dash__table tr:last-child td { border-bottom: 0; }
.cpd-status { display: inline-block; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.cpd-status--publish { background: #dcfce7; color: #15803d; }
.cpd-status--pending { background: #fef9c3; color: #a16207; }
.cpd-status--draft { background: #e2e8f0; color: #475569; }
.cpd-dash__login { padding: 1.5rem 0; }

.cpd-claim { margin-top: .8rem; }
.cpd-claim .cpd-btn { width: 100%; }
.cpd-claim-note { margin-top: .8rem; font-size: .9rem; color: var(--cpd-muted); }

.cpd-hours-grid { display: grid; gap: .5rem; }
.cpd-hours-grid__row { display: grid; grid-template-columns: 110px 1fr 1fr; gap: .6rem; align-items: center; }
.cpd-hours-grid__row span { font-size: .9rem; color: var(--cpd-muted); }
.cpd-hours-grid__row input { padding: .55rem .7rem; border: 1px solid var(--cpd-line); border-radius: 10px; }

/* ==========================================================================
   Events: cards, date badge, month calendar
   ========================================================================== */
.cpd-events--list { display: grid; gap: .8rem; }
.cpd-events--grid { display: grid; grid-template-columns: repeat(var(--cpd-cols, 3), 1fr); gap: 1.4rem; }
.cpd-event-card { background: #fff; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius); overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.cpd-event-card:hover { box-shadow: var(--cpd-shadow); transform: translateY(-2px); }
.cpd-event-card__link { display: flex; align-items: stretch; gap: 1rem; color: inherit; text-decoration: none; }
.cpd-events--grid .cpd-event-card__link { flex-direction: column; gap: 0; }

.cpd-event-badge { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; background: var(--cpd-accent); color: #fff; padding: .6rem; text-align: center; }
.cpd-events--grid .cpd-event-badge { position: absolute; margin: .8rem; border-radius: 12px; width: 58px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.cpd-events--grid .cpd-event-card { position: relative; }
.cpd-event-badge__day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.cpd-event-badge__mon { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.cpd-event-card__img img { display: block; width: 100%; height: 170px; object-fit: cover; }
.cpd-event-card__body { display: flex; flex-direction: column; justify-content: center; gap: .25rem; padding: .9rem 1.1rem .9rem 0; }
.cpd-events--grid .cpd-event-card__body { padding: 1rem 1.2rem; }
.cpd-event-card__when { font-size: .8rem; color: var(--cpd-accent); font-weight: 700; }
.cpd-event-card__title { font-weight: 700; font-size: 1.05rem; color: var(--cpd-ink); }
.cpd-event-card__venue { font-size: .85rem; color: var(--cpd-muted); }

/* Month calendar */
.cpd-cal { background: #fff; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius); padding: 1rem; }
.cpd-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cpd-cal__title { margin: 0; font-size: 1.2rem; text-transform: capitalize; }
.cpd-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cpd-cal__dow { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--cpd-muted); padding: .3rem 0; font-weight: 700; }
.cpd-cal__cell { min-height: 84px; border: 1px solid var(--cpd-line); border-radius: 10px; padding: .35rem; background: var(--cpd-bg-soft); }
.cpd-cal__cell--empty { background: transparent; border-color: transparent; }
.cpd-cal__cell.is-today { border-color: var(--cpd-accent); box-shadow: inset 0 0 0 1px var(--cpd-accent); }
.cpd-cal__num { font-size: .8rem; font-weight: 700; color: var(--cpd-muted); }
.cpd-cal__events { display: flex; flex-direction: column; gap: 2px; margin-top: .25rem; }
.cpd-cal__event { font-size: .72rem; line-height: 1.2; background: var(--cpd-accent); color: #fff; border-radius: 6px; padding: .15rem .35rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 720px) {
	.cpd-events--grid { grid-template-columns: 1fr; }
	.cpd-cal__cell { min-height: 56px; }
	.cpd-cal__event { font-size: 0; padding: 3px; }
	.cpd-cal__event::before { content: "•"; font-size: 14px; }
}

/* Google photo attribution */
.cpd-photo-credit { margin-top: .6rem; font-size: .78rem; color: var(--cpd-muted); }
.cpd-photo-credit a { color: var(--cpd-muted); }

/* ==========================================================================
   News layouts (magazine / grid / list / cards)
   ========================================================================== */
.cpd-news-item { background: #fff; }
.cpd-news-item__media { display: block; overflow: hidden; border-radius: var(--cpd-radius); }
.cpd-news-item__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cpd-news-item__media:hover img { transform: scale(1.04); }
.cpd-news-item__ph { display: block; width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--cpd-accent), var(--cpd-accent-dark)); border-radius: var(--cpd-radius); }
.cpd-news-item__cat { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--cpd-accent); margin: .6rem 0 .3rem; }
.cpd-news-item__cat a { color: inherit; text-decoration: none; }
.cpd-news-item__title { margin: .1rem 0 .2rem; line-height: 1.25; }
.cpd-news-item__title a { color: var(--cpd-ink); text-decoration: none; }
.cpd-news-item__title a:hover { color: var(--cpd-accent); }
.cpd-news-item__date { font-size: .78rem; color: var(--cpd-muted); }
.cpd-news-item__excerpt { margin: .5rem 0 0; color: #243049; font-size: .92rem; }

/* Magazine: big lead + side list */
.cpd-news--magazine { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.8rem; align-items: start; }
.cpd-news--magazine .cpd-news-item--lead .cpd-news-item__media img { aspect-ratio: 16/10; }
.cpd-news--magazine .cpd-news-item--lead .cpd-news-item__title { font-size: 1.9rem; }
.cpd-news__side { display: grid; gap: 1.1rem; }
.cpd-news--magazine .cpd-news-item--compact { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; align-items: center; }
.cpd-news--magazine .cpd-news-item--compact .cpd-news-item__media img { aspect-ratio: 1; height: 96px; }
.cpd-news--magazine .cpd-news-item--compact .cpd-news-item__cat { margin-top: 0; }
.cpd-news--magazine .cpd-news-item--compact .cpd-news-item__title { font-size: 1rem; }

/* Grid + cards */
.cpd-news--grid, .cpd-news--cards { display: grid; grid-template-columns: repeat(var(--cpd-cols, 3), 1fr); gap: 1.6rem; }
.cpd-news--grid .cpd-news-item__media img,
.cpd-news--cards .cpd-news-item__media img { aspect-ratio: 16/10; }
.cpd-news--cards .cpd-news-item { border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius); overflow: hidden; box-shadow: var(--cpd-shadow); }
.cpd-news--cards .cpd-news-item__media { border-radius: 0; }
.cpd-news--cards .cpd-news-item__body { padding: 0 1.1rem 1.2rem; }
.cpd-news--cards .cpd-news-item__cat { margin-top: 1rem; }

/* List: horizontal rows */
.cpd-news--list { display: grid; gap: 1.2rem; }
.cpd-news-item--row { display: grid; grid-template-columns: 220px 1fr; gap: 1.3rem; align-items: center; border-bottom: 1px solid var(--cpd-line); padding-bottom: 1.2rem; }
.cpd-news-item--row .cpd-news-item__media img { aspect-ratio: 16/10; }
.cpd-news-item--row .cpd-news-item__cat { margin-top: 0; }
.cpd-news-item--row .cpd-news-item__title { font-size: 1.3rem; }

@media (max-width: 860px) {
	.cpd-news--magazine { grid-template-columns: 1fr; }
	.cpd-news--grid, .cpd-news--cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.cpd-news--grid, .cpd-news--cards { grid-template-columns: 1fr; }
	.cpd-news-item--row { grid-template-columns: 110px 1fr; gap: .9rem; }
	.cpd-news-item--row .cpd-news-item__title { font-size: 1.05rem; }
}

/* ==========================================================================
   Offers (improved) + Flash deals + countdown
   ========================================================================== */
.cpd-offer-card__biz { display: inline-block; font-size: .82rem; color: var(--cpd-accent); text-decoration: none; margin: 0 0 .3rem; font-weight: 600; }
.cpd-offer-card__biz:hover { text-decoration: underline; }
.cpd-countdown { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .82rem; font-weight: 700; color: var(--cpd-ink); background: var(--cpd-bg-soft); border-radius: 999px; padding: .25rem .7rem; }
.cpd-countdown__label { font-weight: 500; color: var(--cpd-muted); }
.cpd-countdown.is-ended { opacity: .6; }

/* Flash deals strip */
.cpd-flash { background: linear-gradient(135deg, #1f2937, #0b1220); border-radius: var(--cpd-radius); padding: 1.5rem; color: #fff; box-shadow: var(--cpd-shadow); }
.cpd-flash__head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.cpd-flash__title { margin: 0; color: #fff; font-size: 1.5rem; }
.cpd-flash__bolt { font-size: 1.6rem; animation: cpd-bolt 1.4s ease-in-out infinite; }
@keyframes cpd-bolt { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: .7; } }
.cpd-flash__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.cpd-flash .cpd-offer-card { background: #fff; color: var(--cpd-ink); }
.cpd-flash .cpd-countdown { background: #fef3c7; color: #92400e; }
.cpd-flash .cpd-countdown__label { color: #b45309; }

/* Flash badge / ribbon on cards */
.cpd-offer-card { position: relative; }
.cpd-offer-card__flash { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: .25rem; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .22rem .55rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(239,68,68,.45); animation: cpd-flash-pulse 1.6s ease-in-out infinite; }
.cpd-offer-card__flash::before { content: "\26A1"; font-size: .8em; }
/* When both sponsored + flash exist, stack them: sponsored on top, flash below. */
.cpd-offer-card--sponsored .cpd-offer-card__flash { top: 44px; }
@keyframes cpd-flash-pulse { 0%,100% { box-shadow: 0 4px 12px rgba(239,68,68,.45); } 50% { box-shadow: 0 4px 20px rgba(239,68,68,.85); } }

/* ==========================================================================
   v2.6 Visual polish: reveal animations, hovers, hero & slider effects
   ========================================================================== */
/* Scroll reveal (class added by JS only, so no-JS users see everything) */
.cpd-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.cpd-reveal.is-in { opacity: 1; transform: none; }

/* Card hover polish (lift + shadow, consistent across modules) */
.cpd-card, .cpd-news--cards .cpd-news-item, .cpd-event-card, .cpd-offer-card, .cpd-review {
	transition: transform .22s ease, box-shadow .22s ease;
}
.cpd-card:hover, .cpd-news--cards .cpd-news-item:hover, .cpd-offer-card:hover {
	transform: translateY(-4px); box-shadow: 0 16px 38px rgba(16,24,40,.14);
}

/* Buttons: subtle lift + pressed state + visible focus */
.cpd-btn { transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.cpd-btn:hover { transform: translateY(-1px); }
.cpd-btn:active { transform: translateY(0) scale(.98); }
.cpd-btn:focus-visible, .cpd-filter input:focus-visible, .cpd-filter select:focus-visible {
	outline: 2px solid var(--cpd-accent); outline-offset: 2px;
}

/* Hero: slow animated gradient sheen */
.cpd-hero { position: relative; overflow: hidden; }
.cpd-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.07) 45%, transparent 60%);
	background-size: 240% 100%;
	animation: cpd-sheen 9s linear infinite;
}
@keyframes cpd-sheen { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* News slider: content entrance on the active slide */
.cpd-slider__slide .cpd-slider__meta,
.cpd-slider__slide .cpd-slider__title,
.cpd-slider__slide .cpd-slider__excerpt { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.cpd-slider__slide.is-active .cpd-slider__meta { opacity: 1; transform: none; transition-delay: .15s; }
.cpd-slider__slide.is-active .cpd-slider__title { opacity: 1; transform: none; transition-delay: .28s; }
.cpd-slider__slide.is-active .cpd-slider__excerpt { opacity: 1; transform: none; transition-delay: .4s; }

/* Gallery: gentle zoom + soften on hover */
.cpd-gallery__item { overflow: hidden; border-radius: 12px; }
.cpd-gallery__item img { transition: transform .35s ease, filter .35s ease; }
.cpd-gallery__item:hover img { transform: scale(1.06); filter: brightness(1.05); }

/* Calendar: today pulse ring */
.cpd-cal__cell.is-today { animation: cpd-today 2.4s ease-in-out infinite; }
@keyframes cpd-today { 0%,100% { box-shadow: inset 0 0 0 1px var(--cpd-accent); } 50% { box-shadow: inset 0 0 0 2px var(--cpd-accent), 0 0 0 3px rgba(37,99,235,.12); } }

/* Respect user/system preference and site toggle */
@media (prefers-reduced-motion: reduce) {
	.cpd-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	.cpd-hero::after, .cpd-cal__cell.is-today, .cpd-flash__bolt, .cpd-offer-card__flash { animation: none !important; }
	.cpd-slider__slide .cpd-slider__meta, .cpd-slider__slide .cpd-slider__title, .cpd-slider__slide .cpd-slider__excerpt { opacity: 1; transform: none; transition: none; }
}
body.cp-no-anim .cpd-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
body.cp-no-anim .cpd-hero::after, body.cp-no-anim .cpd-cal__cell.is-today,
body.cp-no-anim .cpd-flash__bolt, body.cp-no-anim .cpd-offer-card__flash { animation: none !important; }

/* Structured opening-hours table */
.cpd-hours-list { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cpd-hours-list th { text-align: left; font-weight: 600; padding: .3rem .6rem .3rem 0; color: var(--cpd-ink); white-space: nowrap; }
.cpd-hours-list td { padding: .3rem 0; color: #243049; }
.cpd-hours-list tr + tr { border-top: 1px dashed var(--cpd-line); }

/* ==========================================================================
   v2.13 Dark mode (html.cp-dark set by the City Portal theme)
   ========================================================================== */
.cp-dark {
	--cpd-ink: #e6e9f2;
	--cpd-muted: #98a2b8;
	--cpd-line: #263042;
	--cpd-bg-soft: #141c2b;
	--cpd-shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.45);
	--cpd-shadow-hover: 0 18px 48px rgba(0,0,0,.6);
}
/* Cards & surfaces that were white */
.cp-dark .cpd-card,
.cp-dark .cpd-news-item,
.cp-dark .cpd-news--cards .cpd-news-item,
.cp-dark .cpd-offer-card,
.cp-dark .cpd-event-card,
.cp-dark .cpd-review,
.cp-dark .cpd-bp__section,
.cp-dark .cpd-bp__aside > div,
.cp-dark .cpd-filter,
.cp-dark .cpd-form,
.cp-dark .cpd-cal,
.cp-dark .cpd-dashboard .cpd-dash-card {
	background: #131b2a;
	border-color: var(--cpd-line);
}
.cp-dark .cpd-flash .cpd-offer-card { background: #1b2436; color: var(--cpd-ink); }
.cp-dark .cpd-news-item__excerpt, .cp-dark .cpd-hours-list td { color: #b9c2d4; }
.cp-dark .cpd-card:hover, .cp-dark .cpd-news--cards .cpd-news-item:hover, .cp-dark .cpd-offer-card:hover {
	box-shadow: 0 16px 38px rgba(0,0,0,.55);
}
/* Inputs */
.cp-dark .cpd-filter input, .cp-dark .cpd-filter select,
.cp-dark .cpd-form input, .cp-dark .cpd-form select, .cp-dark .cpd-form textarea {
	background: #0e1522; color: var(--cpd-ink); border-color: var(--cpd-line);
}
/* Badges & chips keep contrast */
.cp-dark .cpd-badge, .cp-dark .cpd-chip { background: #1b2436; color: var(--cpd-ink); }
.cp-dark .cpd-countdown { background: #1b2436; color: var(--cpd-ink); }
/* Calendar */
.cp-dark .cpd-cal__cell { border-color: var(--cpd-line); }
.cp-dark .cpd-cal__cell.is-other { background: #0e1522; }
/* Maps: soften OpenStreetMap tiles at night (Google manages its own) */
.cp-dark .cpd-map .leaflet-tile { filter: brightness(.7) contrast(1.05) saturate(.7); }
.cp-dark .cpd-map { background: #0e1522; }
/* Consent banner */
.cp-dark .cpd-consent { background: #131b2a; color: var(--cpd-ink); border-color: var(--cpd-line); }
/* Pagination / empty states */
.cp-dark .cpd-empty { color: var(--cpd-muted); }

/* v2.15.2 dark-mode audit fixes (plugin) */
/* Surfaces missed in the first pass */
.cp-dark .cpd-list__item,
.cp-dark .cpd-map__list-item,
.cp-dark .cpd-bp__card,
.cp-dark .cpd-dash__table,
.cp-dark .cpd-dash__table td,
.cp-dark .cpd-dash__table th {
	background: #131b2a;
	border-color: var(--cpd-line);
}
.cp-dark .cpd-dash__table { color: var(--cpd-ink); }
.cp-dark .cpd-pagination .page-numbers { background: #131b2a; color: var(--cpd-ink); border-color: var(--cpd-line); }
.cp-dark .cpd-pagination .page-numbers.current { background: var(--cpd-accent); color: #fff; }
.cp-dark .cpd-bp__split-info .cpd-bp__tags a { background: #1b2436; color: var(--cpd-ink); }

/* Hardcoded dark text made readable */
.cp-dark .cpd-bp__prose,
.cp-dark .cpd-bp__hours,
.cp-dark .cpd-review__text,
.cp-dark .cpd-consent__text { color: #c3ccdd; }
.cp-dark .cpd-open--yes { color: #4ade80; }
.cp-dark .cpd-open--no { background: #3b1d1d; color: #fca5a5; }
.cp-dark .cpd-alert--success { background: #0d2a20; color: #6ee7b7; }
.cp-dark .cpd-status--publish { color: #4ade80; }
.cp-dark .cpd-status--pending { background: #332b10; color: #fbbf24; }
.cp-dark .cpd-status--draft { background: #1b2436; color: var(--cpd-muted); }

/* Generic safety nets: any missed component inherits readable text */
.cp-dark .cpd-card *, .cp-dark .cpd-list__item *, .cp-dark .cpd-bp__card * { color: inherit; }
.cp-dark .cpd-card, .cp-dark .cpd-list__item, .cp-dark .cpd-bp__card,
.cp-dark .cpd-event-card, .cp-dark .cpd-review, .cp-dark .cpd-cal { color: var(--cpd-ink); }
.cp-dark .cpd-card a, .cp-dark .cpd-list__item a, .cp-dark .cpd-news-item a,
.cp-dark .cpd-event-card a, .cp-dark .cpd-bp__card a { color: var(--cpd-ink); }
.cp-dark .cpd-card a:hover, .cp-dark .cpd-news-item a:hover { color: #93b4ff; }
/* Links in running text: lighter accent for contrast */
.cp-dark .cpd-bp__prose a, .cp-dark .site-main p a { color: #8ab1ff; }
/* Labels & small print */
.cp-dark .cpd-form label, .cp-dark .cpd-filter label { color: var(--cpd-ink); }
.cp-dark .description, .cp-dark .cpd-meta, .cp-dark .cpd-news-item__date { color: var(--cpd-muted); }

/* Business ↔ offer visibility (v2.19) */
.cpd-card__offer {
	position: absolute; top: 10px; right: 10px; z-index: 2;
	background: #ef4444; color: #fff; font-size: .72rem; font-weight: 800;
	text-transform: uppercase; letter-spacing: .04em; padding: .25rem .6rem;
	border-radius: 999px; box-shadow: 0 4px 12px rgba(239,68,68,.45);
	animation: cpd-flash-pulse 1.6s ease-in-out infinite;
}
body.cp-no-anim .cpd-card__offer { animation: none; }
@media (prefers-reduced-motion: reduce) { .cpd-card__offer { animation: none; } }
.cpd-bp__offers .cpd-offers { margin-top: .6rem; }

/* ==========================================================================
   v2.20 Single offer page + expired states
   ========================================================================== */
.cpd-op__container { max-width: var(--cp-maxw, var(--cpd-width, 1100px)); margin: 0 auto; padding: 2.5rem 20px; }
.cpd-op__expired { background: #fee2e2; color: #b91c1c; font-weight: 700; text-align: center; padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1.2rem; }
.cpd-op__hero { position: relative; border-radius: var(--cpd-radius); overflow: hidden; background: linear-gradient(135deg, #1f2937, #0b1220); color: #fff; }
.cpd-op__hero.is-expired { filter: grayscale(.7); }
.cpd-op__media img { width: 100%; height: 340px; object-fit: cover; display: block; opacity: .45; }
.cpd-op__head { position: absolute; inset: auto 0 0 0; padding: 1.6rem 2rem; }
.cpd-op__hero:not(:has(.cpd-op__media)) .cpd-op__head { position: static; }
.cpd-op__badge { display: inline-block; background: #ef4444; color: #fff; font-weight: 800; font-size: 1.05rem; padding: .3rem .8rem; border-radius: 10px; margin-bottom: .6rem; }
.cpd-op__title { margin: 0 0 .3rem; color: #fff; font-size: 2rem; }
.cpd-op__biz { color: #c7d2fe; text-decoration: none; font-weight: 600; }
.cpd-op__biz:hover { text-decoration: underline; }
.cpd-op__hero .cpd-countdown { margin-top: .8rem; background: rgba(255,255,255,.14); color: #fff; }
.cpd-op__hero .cpd-countdown__label { color: rgba(255,255,255,.75); }
.cpd-op__cols { display: grid; grid-template-columns: 1.8fr 1fr; gap: 2rem; margin-top: 2rem; }
.cpd-op__content { font-size: 1.05rem; line-height: 1.7; }
.cpd-op__card { background: #fff; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius); padding: 1.4rem; box-shadow: var(--cpd-shadow); }
.cpd-op__card h3 { margin-top: 0; }
.cpd-op__bizname { font-weight: 700; }
.cpd-op__related { margin-top: 3rem; }
.cpd-offer-card.is-expired { opacity: .55; filter: grayscale(.6); }
.cpd-offer-card.is-expired .cpd-offer-card__flash { display: none; }
@media (max-width: 860px) {
	.cpd-op__cols { grid-template-columns: 1fr; }
	.cpd-op__title { font-size: 1.5rem; }
	.cpd-op__media img { height: 240px; }
}
/* dark */
.cp-dark .cpd-op__card { background: #131b2a; border-color: var(--cpd-line); }
.cp-dark .cpd-op__expired { background: #3b1d1d; color: #fca5a5; }

/* ==========================================================================
   v2.21 Council members
   ========================================================================== */
.cpd-members__heading { margin: 2.2rem 0 1rem; }
.cpd-members__grid { display: grid; grid-template-columns: repeat(var(--cpd-cols, 3), 1fr); gap: 1.2rem; }
.cpd-members__grid--featured { grid-template-columns: minmax(0, 460px); justify-content: center; margin-bottom: .8rem; }
.cpd-member-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cpd-line);
	border-radius: var(--cpd-radius); overflow: hidden; text-decoration: none; color: inherit;
	box-shadow: var(--cpd-shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.cpd-member-card:hover { transform: translateY(-4px); box-shadow: var(--cpd-shadow-hover); }
.cpd-member-card__media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--cpd-bg-soft); }
.cpd-member-card__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpd-member-card__photo--empty { display: flex; align-items: center; justify-content: center; font-size: 3rem; height: 100%; }
.cpd-member-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .15rem; }
.cpd-member-card__name { font-weight: 800; font-size: 1.05rem; color: var(--cpd-ink); }
.cpd-member-card__role { color: var(--cpd-accent); font-weight: 600; font-size: .9rem; }
.cpd-member-card__deleg { color: var(--cpd-muted); font-size: .88rem; }
.cpd-member-card__group { color: var(--cpd-muted); font-size: .8rem; font-style: italic; }
.cpd-member-card--featured .cpd-member-card__name { font-size: 1.3rem; }
/* Profile */
.cpd-mp__grid { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; }
.cpd-mp__photo { width: 100%; border-radius: 12px; display: block; }
.cpd-mp__photo--empty { display: flex; align-items: center; justify-content: center; font-size: 4rem; aspect-ratio: 1; background: var(--cpd-bg-soft); }
.cpd-mp__name { margin: 0 0 .2rem; }
.cpd-mp__role { color: var(--cpd-accent); font-weight: 700; font-size: 1.1rem; margin: 0 0 .6rem; }
.cpd-mp__group { font-style: italic; color: var(--cpd-muted); }
.cpd-mp__bio { margin-top: 1.2rem; line-height: 1.7; }
.cpd-archive__head { margin: 0 0 1.6rem; }
@media (max-width: 860px) {
	.cpd-members__grid { grid-template-columns: repeat(2, 1fr); }
	.cpd-mp__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .cpd-members__grid { grid-template-columns: 1fr; } }
/* dark */
.cp-dark .cpd-member-card { background: #131b2a; border-color: var(--cpd-line); }
.cp-dark .cpd-member-card__name { color: var(--cpd-ink); }

/* ==========================================================================
   v2.22 AI assistant widget
   ========================================================================== */
.cpd-ai-fab {
	position: fixed; left: 22px; bottom: 22px; z-index: 9998;
	width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--cpd-accent, #4f46e5); color: #fff; font-size: 1.5rem;
	box-shadow: 0 10px 30px rgba(79,70,229,.45); transition: transform .2s ease;
}
.cpd-ai-fab:hover { transform: scale(1.08); }
.cpd-ai-panel {
	position: fixed; left: 22px; bottom: 22px; z-index: 9999;
	width: min(360px, calc(100vw - 44px)); height: min(520px, calc(100vh - 90px));
	background: #fff; border: 1px solid var(--cpd-line); border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden;
}
.cpd-ai-panel[hidden] { display: none !important; }
.cpd-ai-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: .8rem 1rem; background: var(--cpd-accent, #4f46e5); color: #fff; font-weight: 700;
}
.cpd-ai-close { border: 0; background: transparent; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.cpd-ai-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.cpd-ai-msg { max-width: 85%; padding: .55rem .8rem; border-radius: 12px; font-size: .92rem; line-height: 1.5; word-wrap: break-word; }
.cpd-ai-msg--user { align-self: flex-end; background: var(--cpd-accent, #4f46e5); color: #fff; border-bottom-right-radius: 4px; }
.cpd-ai-msg--assistant { align-self: flex-start; background: var(--cpd-bg-soft, #f1f5f9); color: var(--cpd-ink, #0f172a); border-bottom-left-radius: 4px; }
.cpd-ai-msg--assistant a { color: var(--cpd-accent, #4f46e5); word-break: break-all; }
.cpd-ai-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--cpd-line); }
.cpd-ai-input { flex: 1; border: 1px solid var(--cpd-line); border-radius: 999px; padding: .5rem .9rem; font-size: .92rem; }
.cpd-ai-send { border: 0; border-radius: 999px; padding: .5rem 1rem; background: var(--cpd-accent, #4f46e5); color: #fff; font-weight: 700; cursor: pointer; }
@media (max-width: 560px) { .cpd-ai-panel { left: 12px; right: 12px; width: auto; } .cpd-ai-fab { left: 14px; bottom: 14px; } }
/* dark */
.cp-dark .cpd-ai-panel { background: #101827; border-color: var(--cpd-line); }
.cp-dark .cpd-ai-msg--assistant { background: #1b2436; color: var(--cpd-ink); }
.cp-dark .cpd-ai-input { background: #0e1522; color: var(--cpd-ink); border-color: var(--cpd-line); }

/* ==========================================================================
   v2.23 Featured (sponsored) businesses
   ========================================================================== */
.cpd-card--featured { border: 2px solid #f59e0b; }
.cpd-card__sponsored {
	position: absolute; top: 12px; left: 12px; z-index: 3;
	background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
	font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
	padding: .22rem .6rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(245,158,11,.4);
	display: inline-flex; align-items: center; gap: .2rem;
}
.cp-dark .cpd-card--featured { border-color: #b45309; }

/* v2.26 Owner classifieds + sponsored offers */
.cpd-offer-card--sponsored { border: 2px solid #f59e0b; position: relative; }
.cpd-offer-card { position: relative; }
.cpd-dash__ads { margin-top: 2.5rem; }
.cpd-dash__ads .cpd-form select, .cpd-dash__ads .cpd-form input[type="date"], .cpd-dash__ads .cpd-form input[type="file"] { width: 100%; }

/* ==========================================================================
   v2.27 Classifieds browsing page
   ========================================================================== */
.cpd-cls__bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.cpd-cls__cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.cpd-cls__pill { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--cpd-line); background: #fff; color: var(--cpd-ink); text-decoration: none; font-size: .9rem; font-weight: 600; transition: all .2s ease; }
.cpd-cls__pill span { background: var(--cpd-bg-soft); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; color: var(--cpd-muted); }
.cpd-cls__pill:hover { border-color: var(--cpd-accent); color: var(--cpd-accent); }
.cpd-cls__pill.is-active { background: var(--cpd-accent); border-color: var(--cpd-accent); color: #fff; }
.cpd-cls__pill.is-active span { background: rgba(255,255,255,.2); color: #fff; }
.cpd-cls__search { display: flex; gap: .5rem; }
.cpd-cls__search input { border: 1px solid var(--cpd-line); border-radius: 999px; padding: .45rem 1rem; min-width: 220px; }
.cpd-cls__grid { display: grid; grid-template-columns: repeat(var(--cpd-cols, 3), 1fr); gap: 1.2rem; }
.cpd-cls-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--cpd-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.cpd-cls-card:hover { transform: translateY(-4px); box-shadow: var(--cpd-shadow-hover); }
.cpd-cls-card--sponsored { border: 2px solid #f59e0b; }
.cpd-cls-card__media { display: block; aspect-ratio: 4/3; background: var(--cpd-bg-soft); overflow: hidden; }
.cpd-cls-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpd-cls-card__noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.4rem; }
.cpd-cls-card__body { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem 1.1rem; }
.cpd-cls-card__price { font-weight: 800; font-size: 1.15rem; color: var(--cpd-accent); }
.cpd-cls-card__title { font-weight: 600; color: var(--cpd-ink); line-height: 1.35; }
.cpd-ad-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0; }
.cpd-ad-chip { background: var(--cpd-bg-soft); border-radius: 6px; padding: .15rem .5rem; font-size: .78rem; color: var(--cpd-muted); }
.cpd-cls-card__meta { font-size: .84rem; color: var(--cpd-muted); }
.cpd-cls-card__date { font-size: .78rem; color: var(--cpd-muted); }
.cpd-cls__pages { display: flex; gap: .4rem; justify-content: center; margin-top: 1.6rem; }
.cpd-cls__page { padding: .35rem .8rem; border: 1px solid var(--cpd-line); border-radius: 8px; text-decoration: none; color: var(--cpd-ink); }
.cpd-cls__page.is-current { background: var(--cpd-accent); color: #fff; border-color: var(--cpd-accent); }
@media (max-width: 860px) { .cpd-cls__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cpd-cls__grid { grid-template-columns: 1fr; } .cpd-cls__search input { min-width: 0; flex: 1; } }
/* dark */
.cp-dark .cpd-cls__pill, .cp-dark .cpd-cls-card { background: #131b2a; border-color: var(--cpd-line); }
.cp-dark .cpd-cls__pill.is-active { background: var(--cpd-accent); }
.cp-dark .cpd-cls__search input { background: #0e1522; color: var(--cpd-ink); border-color: var(--cpd-line); }
.cp-dark .cpd-ad-chip { background: #1b2436; }

/* v2.27.2 Prominent ad contact */
.cpd-op__phone {
	display: block; font-size: 1.55rem; font-weight: 800; color: #fff;
	background: var(--cpd-accent); text-decoration: none; text-align: center;
	padding: .6rem 1rem; border-radius: 12px; margin: .5rem 0 .8rem;
	transition: transform .2s ease, box-shadow .2s ease;
}
.cpd-op__phone:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(79,70,229,.35); color: #fff; }
.cpd-op__addr { font-size: 1.02rem; font-weight: 600; line-height: 1.5; }

/* v2.28 Guided ad posting */
.cpd-ads-onboard { background: var(--cpd-bg-soft); border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius); padding: 1.2rem 1.4rem; }
.cpd-ads-onboard__steps { margin: .6rem 0 1rem; padding-left: 1.2rem; line-height: 1.9; }
.cpd-ads-onboard__steps li { margin-bottom: .3rem; }
.cpd-ad-open { font-size: 1.05rem; }
.cpd-cls__post { white-space: nowrap; }
.cp-dark .cpd-ads-onboard { background: #131b2a; }

/* v2.28.4 Professional owner dashboard */
.cpd-dash__hero { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.2rem; }
.cpd-dash__hello h2 { margin: 0 0 .3rem; }
.cpd-dash__hello p { margin: 0; color: var(--cpd-muted); }
.cpd-dash__stats { display: flex; gap: .6rem; flex-wrap: wrap; }
.cpd-dash__stat { background: var(--cpd-bg-soft); border: 1px solid var(--cpd-line); border-radius: 999px; padding: .35rem .9rem; font-size: .88rem; color: var(--cpd-muted); }
.cpd-dash__stat strong { color: var(--cpd-ink); margin-right: .25rem; }
.cpd-dash__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.8rem; }
.cpd-dash__action { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius); padding: 1rem 1.2rem; text-decoration: none; color: inherit; box-shadow: var(--cpd-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cpd-dash__action:hover { transform: translateY(-3px); box-shadow: var(--cpd-shadow-hover); border-color: var(--cpd-accent); }
.cpd-dash__action-ico { font-size: 1.9rem; }
.cpd-dash__action-txt { display: flex; flex-direction: column; line-height: 1.35; }
.cpd-dash__action-txt strong { color: var(--cpd-ink); font-size: 1.05rem; }
.cpd-dash__action-txt span { color: var(--cpd-muted); font-size: .86rem; }
.cpd-dash__table { background: #fff; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius); overflow: hidden; box-shadow: var(--cpd-shadow); }
.cpd-dash__ads { background: #fff; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius); padding: 1.2rem 1.4rem; box-shadow: var(--cpd-shadow); }
@media (max-width: 640px) { .cpd-dash__actions { grid-template-columns: 1fr; } }
.cp-dark .cpd-dash__action, .cp-dark .cpd-dash__table, .cp-dark .cpd-dash__ads { background: #131b2a; }
.cp-dark .cpd-dash__stat { background: #131b2a; }

/* v2.29 Sidebar widgets */
.cpd-w { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.cpd-w__item a { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: inherit; }
.cpd-w__thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cpd-w__date { flex-shrink: 0; width: 48px; text-align: center; background: var(--cpd-accent, #4f46e5); color: #fff; border-radius: 10px; padding: .3rem 0; line-height: 1.1; }
.cpd-w__date strong { display: block; font-size: 1.15rem; }
.cpd-w__date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.cpd-w__txt { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.cpd-w__title { font-weight: 600; font-size: .93rem; line-height: 1.35; color: var(--cpd-ink, #0f172a); }
.cpd-w__item a:hover .cpd-w__title { color: var(--cpd-accent, #4f46e5); }
.cpd-w__meta { font-size: .8rem; color: var(--cpd-muted); }
.cpd-w__price { font-weight: 800; font-size: .9rem; color: var(--cpd-accent, #4f46e5); }
.cp-dark .cpd-w__title { color: var(--cpd-ink); }

/* ==========================================================================
   v2.30 City map: modern pins + card popups
   ========================================================================== */
.cpd-map--full { border-radius: var(--cpd-radius); box-shadow: var(--cpd-shadow); overflow: hidden; }
.cpd-pin {
	display: block; width: 22px; height: 22px; border-radius: 50%;
	background: var(--cpd-accent, #4f46e5); border: 3px solid #fff;
	box-shadow: 0 4px 12px rgba(15,23,42,.35);
}
.cpd-pin--feat { background: #f59e0b; }
.cpd-pop .leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 18px 44px rgba(15,23,42,.25); }
.cpd-pop .leaflet-popup-content { margin: 0; width: auto !important; }
.cpd-pop .leaflet-popup-tip { box-shadow: 0 4px 10px rgba(15,23,42,.15); }
.cpd-mappop { width: 250px; font-family: inherit; }
.cpd-mappop__img { width: 100%; height: 120px; object-fit: cover; display: block; }
.cpd-mappop__body { display: flex; flex-direction: column; gap: .35rem; padding: .8rem .9rem 1rem; }
.cpd-mappop__title { font-size: 1rem; line-height: 1.3; color: var(--cpd-ink, #0f172a); }
.cpd-mappop__chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.cpd-mappop__chip { background: var(--cpd-bg-soft, #f1f5f9); border-radius: 999px; padding: .12rem .55rem; font-size: .74rem; color: var(--cpd-muted, #64748b); }
.cpd-mappop__chip--open { background: #dcfce7; color: #166534; font-weight: 700; }
.cpd-mappop__meta { font-size: .82rem; color: var(--cpd-muted, #64748b); }
.cpd-mappop__btn {
	margin-top: .35rem; text-align: center; text-decoration: none; font-weight: 700; font-size: .88rem;
	background: var(--cpd-accent, #4f46e5); color: #fff !important; border-radius: 999px; padding: .45rem .8rem;
	transition: opacity .2s ease;
}
.cpd-mappop__btn:hover { opacity: .9; }
.cp-dark .cpd-pop .leaflet-popup-content-wrapper, .cp-dark .cpd-pop .leaflet-popup-tip { background: #131b2a; }
.cp-dark .cpd-mappop__title { color: var(--cpd-ink); }
.cp-dark .cpd-mappop__chip { background: #1b2436; }

/* v2.30.1 Review star picker (comment form) */
.cpd-rate-wrap { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.cpd-rate-label { font-weight: 700; }
.cpd-rate { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.cpd-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cpd-rate label {
	font-size: 2rem; line-height: 1; cursor: pointer; color: #d8dbe3;
	transition: color .15s ease, transform .15s ease; user-select: none;
}
.cpd-rate label:hover { transform: scale(1.15); }
/* hover: the hovered star and all previous (following in reversed DOM) */
.cpd-rate label:hover, .cpd-rate label:hover ~ label { color: #f59e0b; }
/* selected state */
.cpd-rate input:checked ~ label { color: #f59e0b; }
/* keyboard focus */
.cpd-rate input:focus-visible + label { outline: 2px solid var(--cpd-accent); outline-offset: 3px; border-radius: 4px; }
.cp-dark .cpd-rate label { color: #3a4358; }
.cp-dark .cpd-rate label:hover, .cp-dark .cpd-rate label:hover ~ label, .cp-dark .cpd-rate input:checked ~ label { color: #f59e0b; }
/* slightly larger display stars on the single business page */
.cpd-bp__hero .cpd-stars, .cpd-review .cpd-stars { font-size: 1.05rem; }

/* v2.32 Classified photo gallery */
.cpd-ad-gallery-current { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }
.cpd-ad-gthumb { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .75rem; }
.cpd-ad-gthumb img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--cpd-line); }
.cpd-op__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; margin-top: 1rem; }
.cpd-op__gallery .cpd-gallery__item { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.cpd-op__gallery img { width: 100%; height: 100%; object-fit: cover; }
.cpd-cls-card__media { position: relative; }
.cpd-cls-card__count { position: absolute; bottom: 8px; right: 8px; background: rgba(15,23,42,.72); color: #fff; font-size: .74rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; }

/* v2.32.1 Classified carousel */
.cpd-carousel { position: relative; margin-top: 1rem; border-radius: var(--cpd-radius); overflow: hidden; background: var(--cpd-bg-soft); }
.cpd-carousel__track { display: flex; transition: transform .5s ease; }
.cpd-carousel__slide { flex: 0 0 100%; aspect-ratio: 16/10; }
.cpd-carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpd-carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(15,23,42,.55); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.cpd-carousel__nav:hover { background: rgba(15,23,42,.8); }
.cpd-carousel__nav--prev { left: 12px; }
.cpd-carousel__nav--next { right: 12px; }
.cpd-carousel__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: .4rem; justify-content: center; }
.cpd-carousel__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.cpd-carousel__dot.is-active { background: #fff; transform: scale(1.25); }
@media (max-width: 560px) { .cpd-carousel__nav { width: 34px; height: 34px; font-size: 1.3rem; } }

/* v2.32.2 Carousel thumbnail strip */
.cpd-carousel__thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.cpd-carousel__thumb { flex: 0 0 auto; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; opacity: .65; transition: opacity .2s ease, border-color .2s ease; }
.cpd-carousel__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpd-carousel__thumb:hover { opacity: 1; }
.cpd-carousel__thumb.is-active { opacity: 1; border-color: var(--cpd-accent, #4f46e5); }

/* v2.33 PWA install bar */
#cpd-pwa-bar {
	position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9997;
	max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 1rem;
	justify-content: space-between; background: #fff; border: 1px solid var(--cpd-line, #e2e8f0);
	border-radius: 14px; box-shadow: 0 18px 44px rgba(15,23,42,.22); padding: .8rem 1rem;
	transform: translateY(140%); transition: transform .3s ease;
}
#cpd-pwa-bar.is-in { transform: translateY(0); }
.cpd-pwa-bar__txt { font-size: .9rem; color: var(--cpd-ink, #0f172a); }
.cpd-pwa-bar__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.cpd-pwa-bar__install { border: 0; border-radius: 999px; padding: .5rem 1rem; background: var(--cpd-accent, #4f46e5); color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cpd-pwa-bar__dismiss { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; color: var(--cpd-muted, #64748b); cursor: pointer; }
.cp-dark #cpd-pwa-bar { background: #131b2a; border-color: var(--cpd-line); }

/* v2.35 Resident event form */
.cpd-event-form .cpd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .cpd-event-form .cpd-form__row { grid-template-columns: 1fr; } }
.cpd-event-form label { font-weight: 600; display: block; margin-bottom: .25rem; }
.cpd-event-form input, .cpd-event-form textarea { width: 100%; }

/* v2.38 Claim verification form */
.cpd-claim { display: flex; flex-direction: column; gap: .6rem; max-width: 420px; }
.cpd-claim__intro { font-size: .92rem; color: var(--cpd-muted); margin: 0 0 .3rem; }
.cpd-claim label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .2rem; }
.cpd-claim input { width: 100%; }
.cpd-claim p { margin: 0; }

/* v2.39 Anti-spam captcha field */
.cpd-captcha { margin: .6rem 0; }
.cpd-captcha label { font-weight: 600; }
.cpd-captcha input[type=text] { margin-left: .4rem; }

/* v2.39.2 Claim form collapsed behind a toggle */
.cpd-claim-toggle { margin: 0; }
.cpd-claim-toggle > summary {
	list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem;
	text-align: center; justify-content: center;
}
.cpd-claim-toggle > summary::-webkit-details-marker { display: none; }
.cpd-claim-toggle > summary::after { content: "▾"; font-size: .8em; transition: transform .2s ease; }
.cpd-claim-toggle[open] > summary::after { transform: rotate(180deg); }
.cpd-claim-toggle[open] > summary { margin-bottom: 1rem; }
.cpd-claim-toggle .cpd-claim { animation: cpd-claim-in .2s ease; }
@keyframes cpd-claim-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* v2.40 Owner replies to reviews */
.cpd-review__reply {
	margin: .8rem 0 0 2.6rem; padding: .8rem 1rem; background: var(--cpd-bg-soft, #f6f7fb);
	border-left: 3px solid var(--cpd-accent, #4f46e5); border-radius: 0 10px 10px 0;
}
.cpd-review__reply-badge { font-weight: 700; color: var(--cpd-accent, #4f46e5); font-size: .85rem; margin-right: .5rem; }
.cpd-review__reply .cpd-review__date { font-size: .8rem; color: var(--cpd-muted); }
.cpd-review__reply .cpd-review__text { margin-top: .3rem; }
.cpd-review__replybox { margin: .6rem 0 0 2.6rem; }
.cpd-review__replybox > summary { cursor: pointer; color: var(--cpd-accent, #4f46e5); font-weight: 600; font-size: .88rem; list-style: none; display: inline-flex; align-items: center; gap: .3rem; }
.cpd-review__replybox > summary::-webkit-details-marker { display: none; }
.cpd-review__replybox > summary::before { content: "↩"; }
.cpd-review__replyform { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; max-width: 520px; }
.cpd-review__replyform textarea { padding: .7rem .9rem; border: 1px solid var(--cpd-line); border-radius: 10px; font-family: inherit; font-size: .95rem; resize: vertical; }
.cpd-review__replyform button { align-self: flex-start; }
.cp-dark .cpd-review__reply { background: #1b2436; }

/* v2.66 Poster "studio": canvas-first design-tool layout
   The canvas is the hero on neutral dark chrome (so poster colours read
   accurately, the way real design tools surround artwork), with controls
   grouped into tabs on the right instead of one long scrolling form. */
.cpd-studio {
	max-width: 1180px; border: 1px solid rgba(15,23,42,.1); border-radius: 18px; overflow: hidden;
	box-shadow: 0 18px 44px -18px rgba(15,23,42,.28); background: #fff;
}
.cpd-studio__topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	padding: .8rem 1.1rem; background: #10131c; border-bottom: 1px solid rgba(255,255,255,.07);
}
.cpd-studio__doc { display: flex; align-items: center; gap: .6rem; min-width: 0; flex: 1 1 240px; }
.cpd-studio__doclabel { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8b93a7; white-space: nowrap; }
.cpd-studio__docselect {
	flex: 1 1 auto; min-width: 0; max-width: 380px; padding: .5rem .7rem; font-family: inherit; font-size: .9rem; font-weight: 600;
	color: #eef1f7; background: #1b2030; border: 1px solid rgba(255,255,255,.12); border-radius: 9px;
}
.cpd-studio__download { flex: 0 0 auto; }

.cpd-studio__body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cpd-studio__body { grid-template-columns: minmax(0,1fr) 372px; } }

/* Canvas workspace — neutral dark, canvas floats on it */
.cpd-studio__canvas {
	background: #1a1d27;
	background-image: linear-gradient(45deg, rgba(255,255,255,.02) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.02) 75%),
	                  linear-gradient(45deg, rgba(255,255,255,.02) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.02) 75%);
	background-size: 22px 22px; background-position: 0 0, 11px 11px;
	display: flex; flex-direction: column; min-width: 0;
}
.cpd-studio__stage { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 1.8rem 1.6rem; min-height: 340px; }
.cpd-poster-preview__frame {
	/* width-driven with an aspect ratio, capped by max-height so tall
	   (story) and wide (landscape) formats both stay fully visible. */
	position: relative; aspect-ratio: 1 / 1;
	width: 100%; height: auto; max-width: 520px; max-height: 60vh; margin: 0 auto;
	background: #0d1017; border-radius: 10px; overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 22px 50px -14px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.07);
	transition: aspect-ratio .25s ease;
}
@media (max-width: 899px) { .cpd-poster-preview__frame { max-height: 70vh; } }
.cpd-poster-preview__frame img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s ease; }
.cpd-poster-preview__loading {
	position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
	color: #cbd2e1; font-size: .85rem; background: rgba(13,16,23,.62);
}
.cpd-studio__canvasbar {
	display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
	padding: .7rem 1.1rem; background: rgba(0,0,0,.28); border-top: 1px solid rgba(255,255,255,.06);
}
.cpd-studio__hint { margin-left: auto; font-size: .72rem; color: #7f879b; }
.cpd-fmt-row { display: flex; gap: .35rem; }
.cpd-fmt {
	display: flex; flex-direction: column; align-items: center; gap: .1rem; cursor: pointer; font-family: inherit;
	padding: .4rem .7rem; border-radius: 8px; border: 1px solid transparent; background: rgba(255,255,255,.06);
	transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.cpd-fmt__ratio { font-size: .72rem; font-weight: 800; color: #cfd5e4; }
.cpd-fmt__name { font-size: .66rem; color: #8b93a7; }
.cpd-fmt:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.cpd-fmt.is-selected { background: var(--cpd-accent, #4f46e5); border-color: rgba(255,255,255,.25); }
.cpd-fmt.is-selected .cpd-fmt__ratio, .cpd-fmt.is-selected .cpd-fmt__name { color: #fff; }

/* Right-hand properties panel with tabs */
.cpd-studio__panel { background: #fff; border-left: 1px solid rgba(15,23,42,.08); display: flex; flex-direction: column; min-width: 0; }
.cpd-studio__tabs { display: flex; border-bottom: 1px solid rgba(15,23,42,.08); background: #f7f8fb; }
.cpd-studio__tab {
	flex: 1 1 0; padding: .85rem .4rem; cursor: pointer; font-family: inherit; font-size: .85rem; font-weight: 700;
	color: var(--cpd-muted); background: transparent; border: none; border-bottom: 2px solid transparent;
	transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.cpd-studio__tab:hover { color: var(--cpd-ink); background: rgba(79,70,229,.04); }
.cpd-studio__tab.is-active { color: var(--cpd-accent); border-bottom-color: var(--cpd-accent); background: #fff; }
.cpd-studio__pane { display: none; padding: 1.1rem 1.2rem 1.4rem; overflow-y: auto; max-height: 66vh; }
.cpd-studio__pane.is-active { display: block; }
.cpd-studio__pane > p { margin: 0 0 .9rem; }
.cpd-studio__pane label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .25rem; }
.cpd-studio__pane select, .cpd-studio__pane input[type="text"] {
	width: 100%; max-width: 100%; padding: .6rem .8rem; border: 1px solid var(--cpd-line); border-radius: 9px;
	font-family: inherit; font-size: .9rem; box-sizing: border-box; text-overflow: ellipsis;
}
.cpd-poster-form__row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .9rem; }
@media (max-width: 560px) { .cpd-poster-form__row { grid-template-columns: 1fr; } }
.cpd-studio #cpd-poster-ai { margin-top: .5rem; }

.cp-dark .cpd-studio { background: #131b2a; border-color: rgba(255,255,255,.08); }
.cp-dark .cpd-studio__panel { background: #131b2a; border-left-color: rgba(255,255,255,.08); }
.cp-dark .cpd-studio__tabs { background: #0f1626; border-bottom-color: rgba(255,255,255,.08); }
.cp-dark .cpd-studio__tab.is-active { background: #131b2a; }

/* v2.43 Poster context fields (ad type, price, occasion, person) */
.cpd-poster-form__row--three { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: .9rem; }
@media (max-width: 700px) { .cpd-poster-form__row--three { grid-template-columns: 1fr; } }

/* v2.46 Transit departures board */
.cpd-transport { display: flex; flex-direction: column; gap: 1.2rem; }
.cpd-transport--compact { gap: .8rem; }
.cpd-transport__stop-name { margin: 0 0 .5rem; font-size: 1rem; }
.cpd-transport--compact .cpd-transport__stop-name { font-size: .92rem; margin-bottom: .35rem; }
.cpd-transport__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--cpd-line); border-radius: 10px; overflow: hidden; }
.cpd-transport__row { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; font-size: .92rem; border-bottom: 1px solid var(--cpd-line); background: #fff; }
.cpd-transport__row:last-child { border-bottom: 0; }
.cpd-transport__row.is-cancelled { opacity: .55; }
.cpd-transport__line { font-weight: 800; color: #fff; background: var(--cpd-accent); border-radius: 6px; padding: .1rem .45rem; font-size: .8rem; flex: 0 0 auto; }
.cpd-transport__dest { flex: 1 1 auto; color: var(--cpd-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpd-transport__eta { flex: 0 0 auto; font-weight: 700; color: var(--cpd-accent); font-variant-numeric: tabular-nums; }
.cpd-transport__eta--cancelled { color: #b91c1c; font-weight: 600; font-size: .8rem; }
.cpd-transport__empty { color: var(--cpd-muted); font-size: .88rem; margin: 0; padding: .6rem 0; }
.cpd-transport__credit { margin: 0; font-size: .74rem; color: var(--cpd-muted); text-align: right; }
.cpd-transport__debug { font-size: .78rem; color: #b91c1c; background: #fef2f2; border: 1px dashed #fecaca; border-radius: 6px; padding: .4rem .6rem; margin: .3rem 0 0; }

/* v2.48 Famous personalities ("Personnalités célèbres") */
.cpd-personalities__grid { display: grid; grid-template-columns: repeat(var(--cpd-cols, 3), 1fr); gap: 1.2rem; }
.cpd-personality-card {
	display: block; background: #fff; border: 1px solid var(--cpd-line); border-radius: var(--cpd-radius, 14px);
	overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--cpd-shadow, 0 4px 14px rgba(15,23,42,.05));
	transition: transform .2s ease, box-shadow .2s ease;
}
.cpd-personality-card:hover { transform: translateY(-4px); box-shadow: var(--cpd-shadow-hover, 0 10px 26px rgba(15,23,42,.1)); }
.cpd-personality-card__media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--cpd-bg-soft); }
.cpd-personality-card__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpd-personality-card__photo--empty { display: flex; align-items: center; justify-content: center; font-size: 3rem; height: 100%; }
.cpd-personality-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .15rem; }
.cpd-personality-card__name { font-weight: 800; font-size: 1.05rem; color: var(--cpd-ink); }
.cpd-personality-card__field { color: var(--cpd-accent); font-weight: 600; font-size: .9rem; }
.cpd-personality-card__link { color: var(--cpd-muted); font-size: .85rem; }
.cpd-personality-card__years { color: var(--cpd-muted); font-size: .8rem; font-style: italic; }
@media (max-width: 860px) { .cpd-personalities__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cpd-personalities__grid { grid-template-columns: 1fr; } }
.cp-dark .cpd-personality-card { background: #131b2a; border-color: var(--cpd-line); }
.cp-dark .cpd-personality-card__name { color: var(--cpd-ink); }

/* v2.49 Weather + Seine water level */
.cpd-weather { display: flex; flex-direction: column; gap: .9rem; }
.cpd-weather__now { display: flex; align-items: center; gap: .6rem; }
.cpd-weather__icon { display: inline-flex; color: var(--cpd-ink); }
.cpd-weather__temp { font-size: 1.7rem; font-weight: 800; color: var(--cpd-ink); }
.cpd-weather__label { color: var(--cpd-muted); font-size: .92rem; }
.cpd-weather__days { display: flex; gap: .5rem; overflow-x: auto; }
.cpd-weather__day { display: flex; flex-direction: column; align-items: center; gap: .1rem; background: var(--cpd-bg-soft); border-radius: 10px; padding: .5rem .6rem; min-width: 56px; }
.cpd-weather__day-name { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--cpd-muted); }
.cpd-weather__day-icon { display: inline-flex; color: var(--cpd-muted); }
.cpd-weather__day-temps { font-size: .78rem; color: var(--cpd-ink); white-space: nowrap; }
.cpd-weather__seine { display: flex; align-items: center; gap: .6rem; padding-top: .7rem; border-top: 1px solid var(--cpd-line); }
.cpd-weather__seine-icon { font-size: 1.4rem; }
.cpd-weather__seine-text { font-size: .92rem; color: var(--cpd-ink); }
.cpd-weather__credit { margin: 0; font-size: .72rem; color: var(--cpd-muted); }
.cpd-weather--compact .cpd-weather__days { display: none; }

/* v2.54 Full weather page — modern, custom SVG icons, day/night hero */
.cpd-wx { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; font-feature-settings: "tnum"; }
.cpd-wx__hero {
	background: linear-gradient(160deg, #4f80f0 0%, #6d5eea 55%, #8451e0 100%);
	border-radius: 20px; padding: 1.9rem 2.1rem 2.1rem; color: #fff; position: relative; overflow: hidden;
	box-shadow: 0 20px 44px -12px rgba(79,70,229,.4), 0 2px 8px rgba(79,70,229,.15);
}
.cpd-wx__hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(circle at 85% -10%, rgba(255,255,255,.22), transparent 55%);
}
.cpd-wx__hero--night { background: linear-gradient(160deg, #1e2555 0%, #2d2a63 50%, #3d2f70 100%); }
.cpd-wx__hero-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.cpd-wx__place { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.cpd-wx__updated { font-size: .8rem; opacity: .8; margin-top: .2rem; text-transform: capitalize; }
.cpd-wx__hero-main { display: flex; align-items: center; gap: .7rem; margin: 1.1rem 0 .2rem; position: relative; z-index: 1; }
.cpd-wx__hero-icon { display: flex; filter: drop-shadow(0 6px 14px rgba(0,0,0,.15)); }
.cpd-wx__hero-icon svg { display: block; }
.cpd-wx__hero-temp { font-size: 4.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.cpd-wx__hero-desc { font-size: 1.08rem; font-weight: 500; opacity: .95; align-self: flex-end; margin-bottom: .55rem; }
.cpd-wx__hero-sub { display: flex; gap: 1.3rem; font-size: .9rem; font-weight: 500; opacity: .88; position: relative; z-index: 1; }

.cpd-wx__hgraph { margin-top: 1.3rem; overflow-x: auto; position: relative; z-index: 1; }
.cpd-wx__hgraph svg { display: block; min-width: 480px; }
.cpd-wx__svg-hour { fill: rgba(255,255,255,.8); font-size: 11px; font-weight: 700; font-family: inherit; }
.cpd-wx__svg-icon { color: #fff; opacity: .95; }
.cpd-wx__svg-temp { fill: #ffffff; font-size: 13px; font-weight: 800; font-family: inherit; }

.cpd-wx__details { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: .7rem; }
.cpd-wx__tile {
	display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center;
	background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: 14px; padding: 1.05rem .6rem;
	box-shadow: 0 2px 10px rgba(15,23,42,.04); transition: box-shadow .2s ease, transform .2s ease;
}
.cpd-wx__tile:hover { box-shadow: 0 8px 20px rgba(15,23,42,.08); transform: translateY(-1px); }
.cpd-wx__tile-icon { font-size: 1.35rem; }
.cpd-wx__tile-value { font-weight: 800; color: var(--cpd-ink); font-size: 1.02rem; letter-spacing: -.01em; }
.cpd-wx__tile-label { font-size: .72rem; color: var(--cpd-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

.cpd-wx__section-title { margin: 0; font-size: 1.08rem; font-weight: 800; color: var(--cpd-ink); letter-spacing: -.01em; }

.cpd-wx__daily { display: flex; flex-direction: column; border: 1px solid rgba(15,23,42,.06); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(15,23,42,.04); }
.cpd-wx__drow { display: grid; grid-template-columns: 96px 28px 44px 34px 1fr 34px; align-items: center; gap: .7rem; padding: .75rem 1.1rem; border-bottom: 1px solid rgba(15,23,42,.05); transition: background .15s ease; }
.cpd-wx__drow:hover { background: rgba(79,70,229,.03); }
.cpd-wx__drow:last-child { border-bottom: 0; }
.cpd-wx__drow-day { font-weight: 700; color: var(--cpd-ink); text-transform: capitalize; font-size: .92rem; }
.cpd-wx__drow-icon { display: flex; align-items: center; justify-content: center; color: var(--cpd-muted); }
.cpd-wx__drow-pop { color: var(--cpd-accent); font-size: .78rem; font-weight: 600; text-align: right; min-width: 34px; }
.cpd-wx__drow-min { color: var(--cpd-muted); font-size: .88rem; text-align: right; font-weight: 600; }
.cpd-wx__drow-max { color: var(--cpd-ink); font-size: .88rem; text-align: left; font-weight: 700; }
.cpd-wx__drow-bar { position: relative; height: 4px; border-radius: 999px; background: rgba(15,23,42,.07); }
.cpd-wx__drow-bar-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #f59e0b); }

.cpd-wx__seine {
	display: flex; align-items: baseline; gap: .8rem; background: linear-gradient(135deg,#eef4ff,#f5f0ff);
	border: 1px solid #d7e3ff; border-radius: 14px; padding: 1.1rem 1.4rem; box-shadow: 0 2px 10px rgba(15,23,42,.04);
}
.cpd-wx__seine-value { font-size: 1.8rem; font-weight: 800; color: var(--cpd-accent-dark, var(--cpd-accent)); letter-spacing: -.02em; }
.cpd-wx__seine-label { color: var(--cpd-muted); font-size: .9rem; }

.cpd-wx__credit { margin: 0; font-size: .74rem; color: var(--cpd-muted); text-align: center; }

@media (max-width: 620px) {
	.cpd-wx__hero-temp { font-size: 3.2rem; }
	.cpd-wx__hero-icon svg { width: 56px; height: 56px; }
	.cpd-wx__drow { grid-template-columns: 74px 24px 36px 30px 1fr 30px; padding: .65rem .8rem; gap: .5rem; }
}
.cp-dark .cpd-wx__tile, .cp-dark .cpd-wx__daily { background: #131b2a; border-color: rgba(255,255,255,.06); }
.cp-dark .cpd-wx__tile-value, .cp-dark .cpd-wx__drow-day, .cp-dark .cpd-wx__drow-max { color: var(--cpd-ink); }
.cp-dark .cpd-wx__seine { background: linear-gradient(135deg,#14213a,#1c1a3a); border-color: #23365c; }
.cp-dark .cpd-wx__drow:hover { background: rgba(255,255,255,.03); }
.cp-dark .cpd-wx__drow-bar { background: rgba(255,255,255,.08); }
.cpd-weather__more { display: block; margin-top: .5rem; font-size: .82rem; font-weight: 700; color: var(--cpd-accent); text-decoration: none; }
.cpd-weather__more:hover { text-decoration: underline; }

/* v2.53 "Improve with AI" writing-help button */
.cpd-ai-polish { margin-top: .5rem; }
.cpd-form__row .cpd-ai-polish, .cpd-form__row .description { display: block; }

/* v2.56 Personality categories (multi-select checkboxes) */
.cpd-personality-card__cats { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .3rem; }
.cpd-personality-card__cat {
	display: inline-block; font-size: .72rem; font-weight: 700; padding: .15rem .55rem;
	border-radius: 999px; background: var(--cpd-bg-soft, #eef2ff); color: var(--cpd-accent, #4f46e5);
}
.cpd-personality-single__cats { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0 .8rem; }

/* v2.57 Personalities slider — modern "3D" home page section */
.cpd-pslider { display: flex; align-items: center; gap: .8rem; position: relative; }
.cpd-pslider__viewport {
	flex: 1 1 auto; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
	scrollbar-width: none; -ms-overflow-style: none; padding: 1.2rem .2rem 1.6rem;
}
.cpd-pslider__viewport::-webkit-scrollbar { display: none; }
.cpd-pslider__track { display: flex; gap: 1.4rem; width: max-content; }

.cpd-pcard {
	display: flex; flex-direction: column; text-decoration: none; color: inherit;
	scroll-snap-align: start; width: 130px;
	perspective: 900px;
}
.cpd-pcard__media {
	display: block; aspect-ratio: 3/3.6; border-radius: 22px; overflow: hidden;
	box-shadow: 0 10px 24px -8px rgba(15,23,42,.22), 0 2px 6px rgba(15,23,42,.08);
	transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
	transform-style: preserve-3d; will-change: transform;
}
.cpd-pcard__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpd-pcard__photo--empty {
	display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
	background: linear-gradient(135deg, var(--cpd-accent, #4f46e5), var(--cpd-accent-2, #7c3aed)); color: #fff;
}
.cpd-pcard:hover .cpd-pcard__media {
	transform: translateY(-8px) scale(1.045) rotateX(3deg);
	box-shadow: 0 22px 40px -12px rgba(79,70,229,.35), 0 6px 14px rgba(15,23,42,.12);
}
.cpd-pcard__name { margin-top: .8rem; font-weight: 800; font-size: .98rem; color: var(--cpd-ink, #0b1220); text-align: center; }
.cpd-pcard__excerpt { margin-top: .25rem; font-size: .8rem; color: var(--cpd-muted, #667085); text-align: center; line-height: 1.4; }

.cpd-pslider__nav {
	flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(15,23,42,.08);
	background: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.08); font-size: 1.4rem; line-height: 1;
	color: var(--cpd-ink, #0b1220); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
	display: flex; align-items: center; justify-content: center;
}
.cpd-pslider__nav:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(79,70,229,.25); color: var(--cpd-accent, #4f46e5); }

@media (min-width: 1025px) {
	.cpd-pcard { width: 185px; }
}
@media (min-width: 601px) and (max-width: 1024px) {
	.cpd-pcard { width: 175px; }
}
@media (max-width: 600px) {
	.cpd-pcard { width: 42vw; max-width: 165px; }
	.cpd-pslider__nav { width: 36px; height: 36px; font-size: 1.2rem; }
}
.cp-dark .cpd-pslider__nav { background: #131b2a; border-color: rgba(255,255,255,.08); color: var(--cpd-ink); }
.cp-dark .cpd-pcard__name { color: var(--cpd-ink); }

/* v2.60 Video ad generator */
.cpd-video-form { display: flex; flex-direction: column; gap: .9rem; max-width: 560px; }
.cpd-video-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.cpd-video-form select, .cpd-video-form textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--cpd-line); border-radius: 10px; font-family: inherit; font-size: .95rem; }
.cpd-video-ad { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.cpd-video-ad video { display: block; background: #000; }
.cpd-video-ad__card { flex: 1 1 260px; max-width: 400px; width: 100%; border-radius: 12px; box-shadow: 0 6px 18px rgba(15,23,42,.12); display: block; }
@media (max-width: 560px) { .cpd-video-ad { flex-direction: column; } .cpd-video-ad__card { max-width: 100%; } }
.cpd-video-form #cpd-video-photo-preview { flex-shrink: 0; }

/* v2.63/2.66 Promo poster controls — 3D template cards, colour swatches */
.cpd-poster-select--hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.cpd-poster-substep-label { font-weight: 600; font-size: .85rem; color: var(--cpd-muted); margin: 1rem 0 .5rem; }

/* Template cards — 3D hover lift, matching the site's other "premium" card treatments */
.cpd-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .7rem; perspective: 900px; }
.cpd-tpl-card {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
	background: var(--cpd-bg-soft, #f6f7fb); border: 2px solid transparent; border-radius: 14px; padding: 1rem .6rem .9rem;
	cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .2s ease, border-color .2s ease;
	transform-style: preserve-3d; font-family: inherit;
}
.cpd-tpl-card__icon { font-size: 1.7rem; line-height: 1; }
.cpd-tpl-card__name { font-weight: 800; font-size: .88rem; color: var(--cpd-ink); }
.cpd-tpl-card__desc { font-size: .72rem; color: var(--cpd-muted); line-height: 1.3; }
.cpd-tpl-card:hover {
	transform: translateY(-5px) scale(1.035) rotateX(4deg);
	box-shadow: 0 14px 26px -8px rgba(79,70,229,.25), 0 4px 10px rgba(15,23,42,.08);
	background: #fff;
}
.cpd-tpl-card.is-selected {
	border-color: var(--cpd-accent); background: #fff;
	box-shadow: 0 10px 22px -6px rgba(79,70,229,.3), 0 0 0 4px rgba(79,70,229,.1);
}
.cpd-tpl-card.is-selected .cpd-tpl-card__name { color: var(--cpd-accent); }

/* Colour swatches — real gradient preview, 3D lift + selection ring */
.cpd-swatch-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.cpd-swatch {
	width: 42px; height: 42px; border-radius: 50%; border: none; padding: 0; cursor: pointer; position: relative;
	background: linear-gradient(135deg, var(--c1), var(--c2));
	box-shadow: 0 3px 8px rgba(15,23,42,.15);
	transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
}
.cpd-swatch:hover { transform: translateY(-4px) scale(1.12); box-shadow: 0 10px 18px rgba(15,23,42,.22); }
.cpd-swatch.is-selected { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c1), 0 8px 16px rgba(15,23,42,.2); transform: translateY(-2px); }
.cpd-swatch__dot { display: block; width: 100%; height: 100%; border-radius: 50%; }

@media (max-width: 560px) {
	.cpd-tpl-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
	.cpd-tpl-card__desc { display: none; }
}
.cp-dark .cpd-tpl-card { background: #182234; }
.cp-dark .cpd-tpl-card:hover, .cp-dark .cpd-tpl-card.is-selected { background: #1c2740; }
.cp-dark .cpd-tpl-card__name { color: var(--cpd-ink); }

/* v2.64 Poster: text styles, custom colours, text position */
.cpd-custom-colours { margin-top: .9rem; border: 1px dashed var(--cpd-line); border-radius: 12px; padding: .7rem .9rem; }
.cpd-custom-colours summary { cursor: pointer; font-weight: 600; font-size: .87rem; color: var(--cpd-accent); }
.cpd-custom-colours__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-top: .8rem; }
.cpd-custom-colours__row label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; }
.cpd-custom-colours__row input[type="color"] { width: 60px; height: 38px; padding: 2px; border: 1px solid var(--cpd-line); border-radius: 8px; cursor: pointer; background: #fff; }

.cpd-tstyle-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; perspective: 800px; }
.cpd-tstyle {
	display: flex; flex-direction: column; align-items: center; gap: .3rem; cursor: pointer; font-family: inherit;
	background: var(--cpd-bg-soft, #f6f7fb); border: 2px solid transparent; border-radius: 12px; padding: .7rem .4rem .6rem;
	transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .2s ease, background .2s ease;
	transform-style: preserve-3d;
}
.cpd-tstyle__sample { font-size: 1.5rem; font-weight: 800; color: var(--cpd-ink); line-height: 1.1; }
.cpd-tstyle__name { font-size: .72rem; font-weight: 700; color: var(--cpd-muted); }
.cpd-tstyle:hover { transform: translateY(-4px) scale(1.04) rotateX(4deg); box-shadow: 0 12px 22px -8px rgba(79,70,229,.25); background: #fff; }
.cpd-tstyle.is-selected { border-color: var(--cpd-accent); background: #fff; box-shadow: 0 8px 18px -6px rgba(79,70,229,.3), 0 0 0 4px rgba(79,70,229,.1); }
.cpd-tstyle.is-selected .cpd-tstyle__name { color: var(--cpd-accent); }
/* Each swatch previews its own effect */
.cpd-tstyle--shadow .cpd-tstyle__sample { text-shadow: 3px 3px 5px rgba(0,0,0,.45); }
.cpd-tstyle--outline .cpd-tstyle__sample { color: #fff; -webkit-text-stroke: 2px #0c0c14; paint-order: stroke fill; }
.cpd-tstyle--serif .cpd-tstyle__sample { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.cpd-tstyle--highlight .cpd-tstyle__sample { background: var(--cpd-ink); color: #fff; padding: 0 .25rem; border-radius: 3px; }
.cpd-tstyle--contrast .cpd-tstyle__sample { font-weight: 300; }
.cpd-tstyle--spaced .cpd-tstyle__sample { letter-spacing: .18em; font-size: 1.2rem; }

.cpd-pos-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.cpd-pos {
	display: flex; flex-direction: column; align-items: center; gap: .35rem; cursor: pointer; font-family: inherit;
	background: var(--cpd-bg-soft, #f6f7fb); border: 2px solid transparent; border-radius: 12px; padding: .6rem .7rem;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.cpd-pos__box { display: block; width: 34px; height: 44px; border-radius: 5px; background: #d7dae2; position: relative; overflow: hidden; }
.cpd-pos__box::after { content: ""; position: absolute; left: 5px; right: 5px; height: 8px; border-radius: 2px; background: var(--cpd-accent); }
.cpd-pos__box--auto::after { bottom: 6px; opacity: .55; }
.cpd-pos__box--top::after { top: 6px; }
.cpd-pos__box--middle::after { top: 50%; transform: translateY(-50%); }
.cpd-pos__box--bottom::after { bottom: 6px; }
.cpd-pos__name { font-size: .72rem; font-weight: 700; color: var(--cpd-muted); }
.cpd-pos:hover { transform: translateY(-3px); box-shadow: 0 8px 16px -6px rgba(79,70,229,.25); background: #fff; }
.cpd-pos.is-selected { border-color: var(--cpd-accent); background: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,.1); }
.cpd-pos.is-selected .cpd-pos__name { color: var(--cpd-accent); }

.cp-dark .cpd-tstyle, .cp-dark .cpd-pos { background: #182234; }
.cp-dark .cpd-tstyle:hover, .cp-dark .cpd-tstyle.is-selected, .cp-dark .cpd-pos:hover, .cp-dark .cpd-pos.is-selected { background: #1c2740; }
.cp-dark .cpd-tstyle__sample { color: var(--cpd-ink); }

/* v2.65 Poster: photo + logo pickers */
.cpd-media-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.1rem; }
.cpd-media-pick { background: var(--cpd-bg-soft, #f6f7fb); border: 1px solid rgba(15,23,42,.06); border-radius: 12px; padding: .85rem .9rem; }
.cpd-media-pick__label { display: block; font-weight: 700; font-size: .85rem; color: var(--cpd-ink); margin-bottom: .55rem; }
.cpd-media-pick__body { display: flex; align-items: center; gap: .8rem; }
.cpd-media-pick__body img { width: 62px; height: 62px; object-fit: contain; background: #fff; border: 1px solid var(--cpd-line); border-radius: 9px; display: none; flex-shrink: 0; padding: 3px; }
.cpd-media-pick .description { display: block; margin-top: .55rem; font-size: .74rem; line-height: 1.4; }
.cp-dark .cpd-media-pick { background: #182234; border-color: rgba(255,255,255,.06); }
.cp-dark .cpd-media-pick__body img { background: #0f1626; }

/* v2.67 Poster studio — fullscreen mode */
.cpd-studio__actions { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.cpd-studio__fs {
	display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font-family: inherit;
	font-size: .82rem; font-weight: 700; color: #cfd5e4;
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
	border-radius: 9px; padding: .5rem .8rem;
	transition: background .2s ease, color .2s ease, transform .15s ease;
}
.cpd-studio__fs:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-1px); }
.cpd-studio__fs-icon { font-size: .95rem; line-height: 1; }
@media (max-width: 640px) { .cpd-studio__fs-text { display: none; } }

html.cpd-fs-lock, html.cpd-fs-lock body { overflow: hidden; }

.cpd-studio.is-fullscreen {
	position: fixed; inset: 0; z-index: 100000;
	max-width: none; width: 100%; height: 100%; margin: 0;
	border: 0; border-radius: 0;
	display: flex; flex-direction: column;
	background: #fff;
}
.cpd-studio.is-fullscreen .cpd-studio__topbar { flex: 0 0 auto; }
.cpd-studio.is-fullscreen .cpd-studio__body { flex: 1 1 auto; min-height: 0; }
.cpd-studio.is-fullscreen .cpd-studio__canvas { min-height: 0; }
.cpd-studio.is-fullscreen .cpd-studio__stage { padding: 2rem; min-height: 0; }
/* With the whole viewport available the canvas can breathe — cap by height so
   9:16 stories still fit, and by width so 1.91:1 doesn't run under the panel. */
.cpd-studio.is-fullscreen .cpd-poster-preview__frame {
	max-height: calc(100vh - 190px); max-width: min(72vw, 860px);
}
.cpd-studio.is-fullscreen .cpd-studio__panel { min-height: 0; }
.cpd-studio.is-fullscreen .cpd-studio__pane { max-height: calc(100vh - 150px); }
@media (max-width: 899px) {
	.cpd-studio.is-fullscreen .cpd-studio__body { display: block; overflow-y: auto; }
	.cpd-studio.is-fullscreen .cpd-poster-preview__frame { max-height: 52vh; max-width: 100%; }
	.cpd-studio.is-fullscreen .cpd-studio__pane { max-height: none; }
}
.cp-dark .cpd-studio.is-fullscreen { background: #131b2a; }

/* v2.71 Poster: Compose with AI button + photo palette swatch + best-fit position */
.cpd-studio__compose {
	display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font-family: inherit;
	font-size: .82rem; font-weight: 700; color: #fff;
	background: linear-gradient(135deg, #7c3aed, #4f46e5);
	border: 1px solid rgba(255,255,255,.18); border-radius: 9px; padding: .5rem .85rem;
	transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.cpd-studio__compose:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(124,58,237,.4); filter: brightness(1.08); }
.cpd-studio__compose:disabled { opacity: .7; cursor: default; transform: none; }
@media (max-width: 720px) { .cpd-studio__compose-text { display: none; } }

/* The photo-derived palette can't show one fixed colour, so it gets a
   multi-stop swatch to read as "taken from the image". */
.cpd-swatch[data-value="photo"] .cpd-swatch__dot {
	background: conic-gradient(#e08b2a, #d84f4f, #7c3aed, #2f6fb0, #2fa36b, #e08b2a);
}
.cpd-pos__box--smart::after { top: 50%; transform: translateY(-50%); opacity: .9; }
.cpd-pos__box--smart { position: relative; }
.cpd-pos__box--smart::before {
	content: "✦"; position: absolute; top: 2px; right: 3px; font-size: 9px; color: var(--cpd-accent); z-index: 1;
}

/* v2.72 Weather — condition-aware colour, sun arc, UV scale, wind compass */

/* The hero now reflects the actual weather. A rainy day looking identical to
   a clear one is the main thing that makes a weather page feel generic. */
.cpd-wx__hero--clear   { background: linear-gradient(160deg, #2f8fe0 0%, #46a7e8 45%, #7cc6f0 100%); }
.cpd-wx__hero--partly  { background: linear-gradient(160deg, #4f80f0 0%, #6d8fe0 55%, #93b4e8 100%); }
.cpd-wx__hero--cloudy  { background: linear-gradient(160deg, #5b6579 0%, #6d7789 55%, #8d95a5 100%); }
.cpd-wx__hero--rain    { background: linear-gradient(160deg, #33506e 0%, #3f6382 55%, #55809e 100%); }
.cpd-wx__hero--snow    { background: linear-gradient(160deg, #6b7f96 0%, #8ea3b8 55%, #b9c9d8 100%); }
.cpd-wx__hero--storm   { background: linear-gradient(160deg, #262b3d 0%, #3b3355 55%, #55446b 100%); }
.cpd-wx__hero--night   { background: linear-gradient(160deg, #16203a 0%, #23264d 50%, #33285c 100%); }
.cpd-wx__hero--clear, .cpd-wx__hero--partly { box-shadow: 0 20px 44px -14px rgba(47,143,224,.45); }
.cpd-wx__hero--rain, .cpd-wx__hero--storm, .cpd-wx__hero--night { box-shadow: 0 20px 44px -14px rgba(20,28,45,.5); }

/* Sun path arc */
.cpd-wx__sun {
	background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: 16px;
	padding: 1rem 1.2rem .9rem; box-shadow: 0 2px 10px rgba(15,23,42,.04);
	color: var(--cpd-muted);
}
.cpd-wx__sun svg { display: block; overflow: visible; }
.cpd-wx__sun-times {
	display: flex; justify-content: space-between; align-items: center; gap: .5rem;
	margin-top: .35rem; font-size: .78rem; font-weight: 600; color: var(--cpd-muted);
}
.cpd-wx__sun-times span:nth-child(2) { color: var(--cpd-ink); font-weight: 700; }

/* UV index on the WHO colour bands — a bare number means little to most
   people, "4 — Modéré" does. */
.cpd-wx__tile--wide { grid-column: span 2; align-items: flex-start; text-align: left; }
.cpd-wx__uv-value { font-weight: 800; color: var(--cpd-ink); font-size: 1.02rem; }
.cpd-wx__uv-value em { font-style: normal; font-weight: 600; color: var(--cpd-muted); font-size: .84rem; margin-left: .25rem; }
.cpd-wx__uv-bar {
	position: relative; display: block; width: 100%; height: 6px; border-radius: 999px; margin-top: .5rem;
	background: linear-gradient(90deg, #3ec46d 0%, #f5c542 30%, #f58a42 52%, #e5484d 72%, #a855f7 100%);
}
.cpd-wx__uv-dot {
	position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
	background: #fff; border: 2px solid var(--cpd-ink); transform: translate(-50%, -50%);
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.cpd-wx__wind { display: inline-flex; color: var(--cpd-accent); transition: transform .4s ease; }

/* Compact widget takes the same colour treatment */
.cpd-weather--compact {
	border-radius: 16px; padding: 1.1rem 1.2rem; color: #fff;
	box-shadow: 0 10px 26px -10px rgba(15,23,42,.35);
}
.cpd-weather--compact.cpd-weather--clear  { background: linear-gradient(150deg, #2f8fe0, #7cc6f0); }
.cpd-weather--compact.cpd-weather--partly { background: linear-gradient(150deg, #4f80f0, #93b4e8); }
.cpd-weather--compact.cpd-weather--cloudy { background: linear-gradient(150deg, #5b6579, #8d95a5); }
.cpd-weather--compact.cpd-weather--rain   { background: linear-gradient(150deg, #33506e, #55809e); }
.cpd-weather--compact.cpd-weather--snow   { background: linear-gradient(150deg, #6b7f96, #b9c9d8); }
.cpd-weather--compact.cpd-weather--storm  { background: linear-gradient(150deg, #262b3d, #55446b); }
.cpd-weather--compact.cpd-weather--night  { background: linear-gradient(150deg, #16203a, #33285c); }
.cpd-weather--compact .cpd-weather__icon,
.cpd-weather--compact .cpd-weather__temp,
.cpd-weather--compact .cpd-weather__label,
.cpd-weather--compact .cpd-weather__seine-text,
.cpd-weather--compact .cpd-weather__day-name,
.cpd-weather--compact .cpd-weather__day-temps { color: #fff; }
.cpd-weather--compact .cpd-weather__label { opacity: .9; }
.cpd-weather--compact .cpd-weather__day { background: rgba(255,255,255,.14); }
.cpd-weather--compact .cpd-weather__day-icon { color: #fff; }
.cpd-weather--compact .cpd-weather__seine { border-top-color: rgba(255,255,255,.2); }
.cpd-weather--compact .cpd-weather__credit { color: rgba(255,255,255,.7); }
.cpd-weather--compact .cpd-weather__more { color: #fff; text-decoration: underline; }

.cp-dark .cpd-wx__sun { background: #131b2a; border-color: rgba(255,255,255,.06); }

/* v2.73 Modern public forms — "Ajouter un commerce" and "Petites annonces" */
.cpd-visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0,0,0,0); white-space: nowrap;
}

.cpd-form {
	max-width: 720px; background: #fff; border: 1px solid rgba(15,23,42,.07);
	border-radius: 18px; padding: 1.6rem 1.7rem 1.8rem;
	box-shadow: 0 4px 20px -8px rgba(15,23,42,.12);
}
.cpd-form p, .cpd-form .cpd-form__row { margin: 0 0 1.15rem; position: relative; }
.cpd-form label {
	display: block; font-weight: 700; font-size: .86rem; color: var(--cpd-ink);
	margin-bottom: .4rem; letter-spacing: -.005em;
}
.cpd-form input[type="text"], .cpd-form input[type="email"], .cpd-form input[type="url"],
.cpd-form input[type="tel"], .cpd-form input[type="number"], .cpd-form input[type="date"],
.cpd-form select, .cpd-form textarea {
	width: 100%; box-sizing: border-box; padding: .8rem .95rem;
	border: 1.5px solid var(--cpd-line); border-radius: 11px;
	font-family: inherit; font-size: .95rem; color: var(--cpd-ink); background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.cpd-form input:focus, .cpd-form select:focus, .cpd-form textarea:focus {
	outline: none; border-color: var(--cpd-accent);
	box-shadow: 0 0 0 4px rgba(79,70,229,.12); background: #fff;
}
.cpd-form textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.cpd-form .description { display: block; margin-top: .4rem; font-size: .78rem; color: var(--cpd-muted); line-height: 1.45; }

/* Live character counter */
.cpd-form__count {
	position: absolute; right: 2px; bottom: -.15rem;
	font-size: .7rem; font-weight: 600; color: var(--cpd-muted); pointer-events: none;
}
.cpd-form__count.is-near { color: #b45309; }

/* Required-field progress */
.cpd-form__progress { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.5rem; }
.cpd-form__progress-bar {
	flex: 1 1 auto; height: 6px; border-radius: 999px; background: rgba(15,23,42,.08); overflow: hidden;
}
.cpd-form__progress-bar > span {
	display: block; height: 100%; width: 0;
	background: linear-gradient(90deg, var(--cpd-accent), var(--cpd-accent-2));
	transition: width .3s ease;
}
.cpd-form__progress-text { font-size: .76rem; font-weight: 700; color: var(--cpd-muted); white-space: nowrap; }
.cpd-form__progress.is-complete .cpd-form__progress-bar > span { background: linear-gradient(90deg, #16a34a, #22c55e); }
.cpd-form__progress.is-complete .cpd-form__progress-text { color: #16a34a; }

/* Image previews */
.cpd-form__preview { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.cpd-form__preview img {
	width: 76px; height: 76px; object-fit: cover; border-radius: 10px;
	border: 1px solid var(--cpd-line); box-shadow: 0 2px 8px rgba(15,23,42,.08);
}
.cpd-form input[type="file"] {
	width: 100%; box-sizing: border-box; padding: .85rem;
	border: 1.5px dashed var(--cpd-line); border-radius: 11px; background: var(--cpd-bg-soft);
	font-family: inherit; font-size: .86rem; cursor: pointer; transition: border-color .18s ease, background .18s ease;
}
.cpd-form input[type="file"]:hover { border-color: var(--cpd-accent); background: #fff; }

/* Category chosen as cards rather than a dropdown */
.cpd-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .55rem; }
.cpd-choice {
	display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer;
	font-family: inherit; font-size: .85rem; font-weight: 600; color: var(--cpd-ink);
	background: var(--cpd-bg-soft); border: 2px solid transparent; border-radius: 12px;
	padding: .8rem .6rem; min-height: 52px; line-height: 1.25;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.cpd-choice:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(79,70,229,.3); }
.cpd-choice.is-selected {
	background: #fff; border-color: var(--cpd-accent); color: var(--cpd-accent);
	box-shadow: 0 0 0 4px rgba(79,70,229,.1);
}

.cpd-form .cpd-btn--primary { width: 100%; padding: .95rem 1.2rem; font-size: .98rem; margin-top: .4rem; }

@media (max-width: 560px) {
	.cpd-form { padding: 1.2rem 1.1rem 1.4rem; border-radius: 14px; }
	.cpd-choice-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
.cp-dark .cpd-form { background: #131b2a; border-color: rgba(255,255,255,.07); }
.cp-dark .cpd-form input, .cp-dark .cpd-form select, .cp-dark .cpd-form textarea { background: #0f1626; color: var(--cpd-ink); }
.cp-dark .cpd-choice { background: #182234; }
.cp-dark .cpd-choice:hover, .cp-dark .cpd-choice.is-selected { background: #1c2740; }

/* v2.74 Classifieds: private seller vs business badge */
.cpd-cls-card__who {
	display: inline-block; align-self: flex-start; font-size: .68rem; font-weight: 800;
	text-transform: uppercase; letter-spacing: .04em; padding: .12rem .5rem;
	border-radius: 999px; background: #eef2ff; color: #4338ca; margin-bottom: .3rem;
}
.cpd-cls-card__who.is-pro { background: #ecfdf5; color: #047857; }
.cp-dark .cpd-cls-card__who { background: #1e2540; color: #a5b4fc; }
.cp-dark .cpd-cls-card__who.is-pro { background: #0d2a20; color: #6ee7b7; }

/* ==========================================================================
   v2.75 Business page polish + mobile pass
   ========================================================================== */

/* --- Sticky mobile action bar (phones only) ---
   On mobile the contact card sits below the gallery, reviews and map, so the
   single most common action — phoning the shop or getting directions — was
   the hardest to reach. Hidden on desktop, where the sticky card already
   covers it. */
.cpd-bp__bar { display: none; }
@media (max-width: 780px) {
	.cpd-bp__bar {
		display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
		padding: .6rem .7rem calc(.6rem + env(safe-area-inset-bottom, 0px));
		background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
		border-top: 1px solid rgba(15,23,42,.1); box-shadow: 0 -4px 18px rgba(15,23,42,.1);
	}
	.cpd-bp__bar-btn {
		flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
		gap: .15rem; min-height: 50px; padding: .4rem .3rem; border-radius: 12px;
		font-size: .72rem; font-weight: 700; text-decoration: none;
		color: var(--cpd-ink); background: var(--cpd-bg-soft, #f4f5f9);
	}
	.cpd-bp__bar-btn span:first-child { font-size: 1.15rem; line-height: 1; }
	.cpd-bp__bar-btn--primary {
		background: linear-gradient(135deg, var(--cpd-accent), var(--cpd-accent-2)); color: #fff;
	}
	/* Keep the last section clear of the fixed bar. */
	.cpd-bp__body { padding-bottom: 6rem; }
}

/* --- Business page: tighter, more readable on small screens --- */
@media (max-width: 780px) {
	.cpd-bp__body { gap: 1.6rem; }
	.cpd-bp__section { margin-bottom: 2rem; }
	.cpd-bp__section h2 { font-size: 1.25rem; }
	.cpd-bp__prose { font-size: 1rem; }
	/* The in-page nav becomes a swipeable strip rather than wrapping. */
	.cpd-bp__nav-inner {
		gap: 1.1rem; scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch; scrollbar-width: none;
	}
	.cpd-bp__nav-inner::-webkit-scrollbar { display: none; }
	.cpd-bp__nav-inner a { scroll-snap-align: start; white-space: nowrap; font-size: .88rem; }
	.cpd-bp__card { padding: 1.2rem 1.25rem; }
}
@media (max-width: 480px) {
	/* Two columns still beats one for a gallery: more photos visible per
	   screen, and each is still large enough to judge. */
	.cpd-gallery { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
}

/* --- Global mobile pass over everything redesigned this session --- */
@media (max-width: 780px) {
	/* Tap targets: 44px is the accessibility minimum for a touch target. */
	.cpd-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
	.cpd-form input[type="text"], .cpd-form input[type="email"], .cpd-form input[type="url"],
	.cpd-form input[type="tel"], .cpd-form input[type="number"], .cpd-form input[type="date"],
	.cpd-form select, .cpd-form textarea {
		/* 16px prevents iOS Safari from zooming in when a field is focused. */
		font-size: 16px; padding: .85rem .9rem;
	}
	.cpd-choice { min-height: 56px; }

	/* Poster studio: canvas above controls, panel full width. */
	.cpd-studio__body { display: block; }
	.cpd-studio__panel { border-left: 0; border-top: 1px solid rgba(15,23,42,.08); }
	.cpd-studio__pane { max-height: none; padding: 1rem 1rem 1.4rem; }
	.cpd-studio__topbar { padding: .6rem .8rem; }
	.cpd-studio__docselect { max-width: none; }
	.cpd-tpl-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
	.cpd-tstyle-row { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
	.cpd-swatch { width: 46px; height: 46px; }

	/* Weather: bigger touch scroll, fewer cramped columns. */
	.cpd-wx__details { grid-template-columns: repeat(2, 1fr); }
	.cpd-wx__tile--wide { grid-column: span 2; }
	.cpd-wx__hgraph { -webkit-overflow-scrolling: touch; }

	/* Personalities slider: nav arrows are hard to hit — rely on swipe. */
	.cpd-pslider__nav { display: none; }
	.cpd-pslider__viewport { padding-left: .2rem; padding-right: .2rem; }

	/* Admin-ish tables inside the site shouldn't force horizontal page scroll. */
	.cpd-quality .wp-list-table { display: block; overflow-x: auto; }
}

/* Respect users who prefer less motion — the 3D card lifts are decorative. */
@media (prefers-reduced-motion: reduce) {
	.cpd-tpl-card, .cpd-tstyle, .cpd-pos, .cpd-swatch, .cpd-choice,
	.cpd-pcard__media, .cpd-personality-card, .cpd-wx__tile {
		transition: none !important;
	}
	.cpd-tpl-card:hover, .cpd-tstyle:hover, .cpd-choice:hover,
	.cpd-pcard:hover .cpd-pcard__media, .cpd-personality-card:hover {
		transform: none !important;
	}
}
.cp-dark .cpd-bp__bar { background: rgba(19,27,42,.94); border-top-color: rgba(255,255,255,.08); }
.cp-dark .cpd-bp__bar-btn { background: #182234; color: var(--cpd-ink); }

/* Other bottom-fixed UI must clear the business page's action bar on phones,
   otherwise the assistant bubble, cookie banner and PWA prompt sit on top of
   the Call / Directions buttons. Only applies where the bar actually shows. */
@media (max-width: 780px) {
	.single-cpd_business .cpd-ai-fab,
	.single-cpd_business .cpd-ai-panel { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
	.single-cpd_business .cpd-consent { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
	.single-cpd_business #cpd-pwa-bar { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* v2.82 Focused edit mode: back link above a lone form */
.cpd-dash__back { margin: 0 0 1.2rem; }
.cpd-dash__back a {
	display: inline-flex; align-items: center; gap: .35rem; text-decoration: none;
	font-weight: 600; font-size: .9rem; color: var(--cpd-muted);
	padding: .5rem .85rem; border-radius: 9px; background: var(--cpd-bg-soft);
	transition: background .18s ease, color .18s ease;
}
.cpd-dash__back a:hover { background: #fff; color: var(--cpd-accent); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.cp-dark .cpd-dash__back a { background: #182234; }

/* v2.83 Guest panel on the ad form page */
.cpd-ads-onboard__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .4rem; }
.cpd-dash__login { display: flex; flex-wrap: wrap; gap: .6rem; }
