/*
 * Crystal Clear: blog styles (posts page, single posts, archives, search, 404, comments).
 * Loads after main.css and uses its tokens only. Look: mockup of 6 Dec 2026 (square cards with a
 * coral top rule on the grey-green section colour, mono labels, sky appointment band).
 * Sections: 1 Listing hero and search  2 Chips  3 Post cards  4 Pagination  5 Shared sections
 *  6 Single post  7 Old post HTML (drg-*, full-page CSS)  8 Author box  9 Appointment band
 *  10 Related  11 Comments  12 Motion and print
 */

/* 1 Listing hero and search ------------------------------------------------------------ */

.cc-blog-hero__grid { display: grid; gap: 2rem; }
.cc-blog-hero__copy { min-width: 0; }

@media (min-width: 1024px) {
	.cc-blog-hero__grid--search {
		grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
		align-items: end;
		gap: 3rem;
	}
}

.cc-blog-hero__label {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-label);
	line-height: 1.5;
	text-transform: uppercase;
}

.cc-blog-hero__intro > * + * { margin-top: 0.75rem; }

.cc-blog-hero__note {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.25rem;
	color: var(--teal-dark);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cc-blog-hero__note::before {
	content: "";
	width: 1.5rem;
	height: 2px;
	background: var(--gold);
}

.cc-search {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 36rem;
	padding: 0.375rem 0.375rem 0.375rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-btn);
	background: var(--paper);
}

.cc-search:focus-within { outline: 3px solid var(--teal); outline-offset: 3px; }
.cc-search__icon { display: inline-flex; color: var(--muted); }

.cc-search__input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: var(--text-base);
	appearance: none;
}

.cc-search__input:focus { outline: none; }
.cc-search__input::placeholder { color: var(--muted); opacity: 1; }
.cc-search__submit { min-height: 44px; padding-inline: 1.1rem; border-radius: calc(var(--radius-btn) - 4px); }

/* 2 Chips (category filter) -------------------------------------------------------------- */

.cc-blog-toolbar { padding-top: clamp(1.75rem, 1.5rem + 1vw, 2.5rem); }

.cc-chips__list {
	display: flex;
	gap: 0.5rem;
	margin: 0 calc(var(--gutter) * -1);
	padding: 0 var(--gutter) 0.25rem;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: thin;
}

.cc-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.18s ease-out, border-color 0.18s ease-out;
}

.cc-chip:hover { border-color: var(--teal); background: var(--section); }
.cc-chip[aria-current] { border-color: var(--teal-dark); background: var(--teal-dark); color: var(--on-dark); }
.cc-chip__count { color: var(--muted); font-size: 0.6875rem; }
.cc-chip[aria-current] .cc-chip__count { color: var(--on-dark-muted); }

@media (min-width: 768px) {
	.cc-chips__list { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
}

/* 3 Post cards (same look as the home "Latest blogs" cards) ------------------------------- */

.cc-blog-list { padding-block: clamp(1.75rem, 1.5rem + 1vw, 2.5rem) var(--space-section); }

.cc-post-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.cc-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cc-post-card { min-height: 240px; }
}

@media (min-width: 1024px) {
	.cc-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cc-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-top: 2px solid var(--gold);
	border-radius: var(--radius-panel);
	background: var(--section);
	color: var(--ink);
}

.cc-post-card:focus-within { outline: 3px solid var(--teal); outline-offset: 4px; }
.cc-post-card:focus-within:not(:has(:focus-visible)) { outline: none; }

.cc-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem;
}

.cc-post-card__cat {
	color: var(--teal-dark);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.5;
	text-transform: uppercase;
}

.cc-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	margin-top: 0.5rem;
	color: var(--muted);
	font-size: var(--text-xs);
	line-height: 1.5;
}

.cc-post-card__title {
	margin-top: 1rem;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: 600;
	line-height: 1.375;
	letter-spacing: -0.02em;
	text-wrap: wrap;
	overflow-wrap: break-word;
}

.cc-post-card__link { color: inherit; text-decoration: none; }
.cc-post-card__link:focus-visible { outline: none; }
.cc-post-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cc-post-card:hover .cc-post-card__link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.cc-post-card__excerpt {
	display: -webkit-box;
	margin-top: 0.75rem;
	overflow: hidden;
	color: var(--muted);
	font-size: var(--text-sm);
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.cc-post-card__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 1.25rem;
	font-size: var(--text-sm);
	font-weight: 600;
}

.cc-post-card__more .cc-icon { transition: transform 0.18s ease-out; }
.cc-post-card:hover .cc-post-card__more .cc-icon { transform: translateX(4px); }

.cc-post-card__media {
	order: -1;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--gold-soft);
}

.cc-post-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Featured: the first card of a listing page spans the row, with a bigger title. */
.cc-post-card--featured { grid-column: 1 / -1; }

.cc-post-card--featured .cc-post-card__title {
	font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem);
	line-height: 1.15;
	letter-spacing: -0.035em;
}

.cc-post-card--featured .cc-post-card__excerpt { max-width: 40rem; font-size: var(--text-base); -webkit-line-clamp: 4; }

@media (min-width: 768px) {
	.cc-post-card--featured .cc-post-card__body { padding: clamp(1.75rem, 1rem + 2vw, 3rem); }

	.cc-post-card--featured.cc-post-card--media {
		display: grid;
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	}

	.cc-post-card--featured .cc-post-card__media { order: 0; aspect-ratio: auto; min-height: 20rem; }
}

/* 4 Pagination ------------------------------------------------------------------------- */

.cc-pagination { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }

.cc-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.cc-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.85rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.18s ease-out, border-color 0.18s ease-out;
}

.cc-pagination a.page-numbers:hover { border-color: var(--teal); background: var(--section); }
.cc-pagination .page-numbers.current { border-color: var(--teal-dark); background: var(--teal-dark); color: var(--on-dark); }
.cc-pagination .page-numbers.dots { min-width: auto; padding: 0 0.25rem; border: 0; background: none; }

/* 5 Shared sections, empty state, treatment links --------------------------------------- */

.cc-blog-section + .cc-blog-section { margin-top: var(--space-section); }
.cc-blog-section__title { margin-bottom: 2rem; }

.cc-blog-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 2.5rem;
}

.cc-blog-404__links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 1.5rem; }

.cc-blog-empty { max-width: 46rem; }
.cc-blog-empty > * + * { margin-top: 1rem; }

.cc-treatment-links {
	display: grid;
	gap: 0.75rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) { .cc-treatment-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cc-treatment-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cc-blog-empty .cc-treatment-links { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

.cc-treatment-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 64px;
	padding: 0.85rem 1.25rem;
	border-bottom: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--section);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.18s ease-out;
}

.cc-treatment-link:hover { background: var(--teal-soft); }
.cc-treatment-link .cc-icon { color: var(--teal); transition: transform 0.18s ease-out; }
.cc-treatment-link:hover .cc-icon { transform: translateX(4px); }

/* 6 Single post ------------------------------------------------------------------------ */

.cc-read { max-width: 46rem; margin-inline: auto; }
.cc-post__body { padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }

.cc-post__hero-inner { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.5rem); }
.cc-post__cat { color: inherit; text-decoration: none; }
.cc-post__cat:hover { text-decoration: underline; text-underline-offset: 3px; }

.cc-post__title {
	color: var(--ink);
	font-family: var(--font-display);
	font-size: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.045em;
	overflow-wrap: break-word;
}

.cc-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 1.5rem 0 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: var(--text-sm);
	list-style: none;
}

.cc-post__meta li { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; }
.cc-post__meta .cc-icon { color: var(--teal); }

.cc-post__meta a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-underline-offset: 3px;
}

.cc-post__meta a:hover { text-decoration-color: currentColor; }

.cc-post__figure { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.cc-post__img { display: block; width: 100%; border-radius: var(--radius-md); }
.cc-post__figure .wp-element-caption { margin-top: 0.6rem; color: var(--muted); font-size: var(--text-sm); }

.cc-post__content {
	padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) 0;
	color: var(--ink);
	font-size: 1.0625rem;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.cc-post__content :where(h2, h3) { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Wide blocks may grow past the reading column, up to 64rem. */
@media (min-width: 1024px) {
	.cc-post__content > .alignwide {
		width: min(64rem, 100vw - 2 * var(--gutter));
		max-width: none;
		margin-inline: calc((100% - min(64rem, 100vw - 2 * var(--gutter))) / 2);
	}
}

/* Plain HTML tables (not inside a table block) scroll sideways on phones. */
@media (max-width: 767.98px) {
	.cc-post__content :not(figure) > table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* YouTube iframes pasted as HTML (width 560, height 315) keep 16:9 at any width.
   Embed blocks are sized by core (wp-has-aspect-ratio) and are left alone. */
.cc-post__content :not(.wp-block-embed__wrapper) > iframe:is([src*="youtube.com"], [src*="youtube-nocookie.com"], [src*="youtu.be"]) {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* Pasted images with fixed width or height attributes never overflow. */
.cc-post__content img { max-width: 100%; height: auto; }

/* Spectra (uagb) blocks keep their own styles; only stop media from overflowing. */
.cc-post__content [class*="wp-block-uagb-"] :where(img, iframe, video) { max-width: 100%; }
.cc-post__content [class*="wp-block-uagb-"] :where(p, ul, ol, h2, h3, h4) { max-width: none; }

/* 7 Old post HTML ------------------------------------------------------------------------ */

/* About twenty posts are one Custom HTML block (wrapper .drg-blog) with their own <style> in navy
   and teal. The content is not changed; these rules (higher specificity than .drg-blog x) give
   those components the site palette, type and square corners. */
.cc-post__content .drg-blog { color: var(--ink); font-family: inherit; line-height: inherit; }

.cc-post__content .drg-blog :is(h2, h3, h4) {
	color: var(--ink);
	font-family: var(--font-display);
}

.cc-post__content .drg-blog h2 {
	margin-top: 3rem;
	padding-left: 0;
	border-left: 0;
	font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
	line-height: 1.12;
	letter-spacing: -0.04em;
}

.cc-post__content .drg-blog h3 { margin-top: 2rem; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem); letter-spacing: -0.02em; }

.cc-post__content .drg-blog :is(.drg-toc, .drg-answer, .drg-note, .drg-alert, .drg-vs, .drg-doctor, .drg-lang, .drg-cta) {
	margin-block: 2rem;
	padding: 1.25rem 1.5rem;
	border: 0;
	border-radius: var(--radius-panel);
}

.cc-post__content .drg-blog .drg-toc { border-top: 2px solid var(--gold); background: var(--section); }
.cc-post__content .drg-blog .drg-toc a { color: var(--teal-dark); text-decoration: underline; text-decoration-color: var(--teal-light); }
.cc-post__content .drg-blog .drg-answer { border-left: 3px solid var(--teal); background: var(--wash); }
.cc-post__content .drg-blog .drg-note { border-left: 3px solid var(--teal); background: var(--section); }
.cc-post__content .drg-blog .drg-alert { border-left: 3px solid var(--urgent-ink); background: var(--urgent); color: var(--urgent-ink); }
.cc-post__content .drg-blog .drg-alert :is(h2, h3, h4, strong, a) { color: inherit; }
.cc-post__content .drg-blog :is(.drg-vs, .drg-lang) { box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); }
.cc-post__content .drg-blog .drg-doctor { border-top: 2px solid var(--gold); background: var(--section); }

.cc-post__content .drg-blog .drg-cta { background: var(--sky); color: var(--ink); text-align: left; }
.cc-post__content .drg-blog .drg-cta :is(h2, h3, p) { color: var(--ink); }
.cc-post__content .drg-blog .drg-cta a { color: var(--ink); }

.cc-post__content .drg-blog .drg-cta a.drg-btn,
.cc-post__content .drg-blog a.drg-btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	margin: 0.5rem 0.5rem 0 0;
	padding: 0.75rem 1.35rem;
	border-radius: var(--radius-btn);
	background: var(--gold);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
}

.cc-post__content .drg-blog .drg-table { margin-block: 1.5rem; border: 1px solid var(--line); font-size: 0.9375rem; }

.cc-post__content .drg-blog .drg-table th {
	padding: 0.85rem 1rem;
	background: var(--wash);
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cc-post__content .drg-blog .drg-table td { padding: 0.85rem 1rem; border: 0; border-bottom: 1px solid var(--line); }
.cc-post__content .drg-blog .drg-table tr:nth-child(even) td { background: var(--wash); }
.cc-post__content .drg-blog .drg-img { border-radius: var(--radius-md); box-shadow: none; }
.cc-post__content .drg-blog .drg-cap { color: var(--muted); font-size: var(--text-sm); font-style: normal; }

.cc-post__content .drg-blog .drg-faq details { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.cc-post__content .drg-blog .drg-faq details:first-of-type { border-top: 1px solid var(--line); }
.cc-post__content .drg-blog .drg-faq summary { padding: 1.1rem 0; color: var(--ink); font-weight: 600; }
.cc-post__content .drg-blog .drg-faq details p { padding: 0 0 1.25rem; color: var(--muted); }
.cc-post__content .drg-blog .drg-refs { color: var(--muted); }

/* C1 Astra palette classes left in post 2105 (Astra is gone): mapped to the site palette. */
.cc-post__content .has-ast-global-color-1-color { color: var(--teal-dark); }
.cc-post__content .has-ast-global-color-5-background-color { background-color: var(--paper); }
.cc-post__content .has-ast-global-color-6-background-color { background-color: var(--section); }
.cc-post__content .has-ast-global-color-8-background-color { background-color: var(--wash); }

/* C2 Core palette fallback in case the theme palette switches the default one off (2105). */
.cc-post__content .has-black-color { color: #000; }
.cc-post__content .has-luminous-vivid-amber-background-color { background-color: #fcb900; }
.cc-post__content .has-vivid-green-cyan-border-color { border-color: #00d084; }

/* C3 Demoted H1s in block posts (2060: 12 of them, 42px x-large preset) at the normal H2 size. */
.cc-post__content h2.cc-demoted-h1.has-x-large-font-size { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem) !important; }

/* C4 Raw tables with 5 or 6 columns (2441, 2400, 2393, 2388, 2385): tighter cells so they fit
   the reading column. Phones scroll them sideways (section 6). */
@media (min-width: 1024px) {
	.cc-post__content .drg-blog .drg-table { font-size: 0.875rem; }
	.cc-post__content .drg-blog .drg-table :is(th, td) { padding: 0.6rem 0.7rem; }
}

/* C5 Whole-page posts (2338, 2351, 2360, 2363; class from single.php, CSS scoped by
   inc/post-compat.php). They were designed for about 1200px: use the full container. Their old
   hero headline (now an H2) stays white on the dark hero. Their own sticky headers and fixed
   bars would sit on top of the theme header and action bar: made static or hidden. */
.cc-post--fullpage .cc-read { max-width: none; }
.cc-post--fullpage .cc-post__content :where(p, ul, ol, dl, h2, h3, h4, h5, h6, blockquote) { max-width: none; }
/* Their flex and grid items default to min-width: auto, so long words and badges pushed them past
   the column on phones. Their own min-width rules (same specificity, later) still win. */
.cc-post--fullpage .cc-post__content :where(*) { min-width: 0; }

.cc-post--fullpage .cc-post__content .hero .cc-demoted-h1 {
	color: #fff;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
	line-height: 1.2;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.cc-post--fullpage .cc-post__content .hero .cc-demoted-h1 * { color: inherit; }

.cc-post--fullpage .cc-post__content :is(.sticky-topbar, .main-header, .header, .nav, .topbar, header, nav) {
	position: static !important;
	top: auto !important;
}

.cc-post--fullpage .cc-post__content :is(.sticky-cta, .floating-whatsapp, [style*="position:fixed"], [style*="position: fixed"]) { display: none !important; }

/* Five older posts carry full-page CSS in the content (body, *, h1 to h6, p, a rules). Keep the
   page font and colours of the theme; their own classed components still apply. */
body.single-post {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--text-base);
	line-height: 1.65;
}

/* 8 Author box --------------------------------------------------------------------------- */

.cc-author-box {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.25rem;
	margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
	padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
	border-top: 2px solid var(--gold);
	border-radius: var(--radius-panel);
	background: var(--section);
}

.cc-author-box__photo {
	width: 72px;
	height: 72px;
	overflow: hidden;
	background: var(--gold-soft);
}

.cc-author-box__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

.cc-author-box__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	border: 1px solid var(--teal);
	border-radius: 50%;
	color: var(--teal);
	font-family: Georgia, Cambria, "Times New Roman", serif;
	font-size: 1.5rem;
	font-weight: 600;
}

.cc-author-box__kicker {
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cc-author-box__name {
	margin-top: 0.35rem;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
	letter-spacing: -0.035em;
}

.cc-author-box__role { margin-top: 0.35rem; color: var(--teal-dark); font-size: var(--text-base); }

.cc-author-box__creds {
	margin-top: 0.75rem;
	color: var(--teal-dark);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.7;
	text-transform: uppercase;
}

.cc-author-box__bio { margin-top: 0.75rem; color: var(--muted); font-size: var(--text-sm); line-height: 1.65; }
.cc-author-box .cc-arrow-link { margin-top: 0.5rem; }

@media (min-width: 640px) {
	.cc-author-box { gap: 1.75rem; }
	.cc-author-box__photo { width: 112px; height: 112px; }
}

/* 9 Appointment band (template-parts/blog/cta.php) -------------------------------------------- */

.cc-blog-cta {
	background: var(--sky);
	color: var(--ink);
}

.cc-blog-cta__inner {
	display: grid;
	gap: 2rem;
	padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

.cc-blog-cta__copy { min-width: 0; }
.cc-blog-cta .cc-blog-cta__eyebrow { color: var(--muted); }

.cc-blog-cta__title {
	max-width: 18ch;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
	line-height: 1.04;
	letter-spacing: -0.045em;
}

.cc-blog-cta__text { max-width: 36rem; margin-top: 1rem; color: var(--muted); }

.cc-blog-cta__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

.cc-blog-cta__phone { font-size: var(--text-sm); }

@media (min-width: 768px) {
	.cc-blog-cta__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem; }
	.cc-blog-cta__actions { align-items: flex-end; }
}

/* 10 Related guides ----------------------------------------------------------------------- */

.cc-related .cc-blog-section__head { margin-bottom: 2.5rem; }

/* 11 Comments ------------------------------------------------------------------------------ */

.cc-comments { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: 2.5rem; border-top: 1px solid var(--line); }
.cc-comments__title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); letter-spacing: -0.035em; }
.cc-comment-list,
.cc-comment-list .children { margin: 0; padding: 0; list-style: none; }
.cc-comment-list { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.cc-comment-list .children { padding-left: clamp(1rem, 3vw, 2.5rem); }
.cc-comment-list .comment-body { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.cc-comment-list .comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; font-size: var(--text-sm); }
.cc-comment-list .comment-author { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.cc-comment-list .comment-author .says { display: none; }
.cc-comment-list .avatar { border-radius: 50%; }
.cc-comment-list .comment-metadata a { color: var(--muted); font-family: var(--font-mono); font-size: var(--text-xs); text-decoration: none; }
.cc-comment-list .comment-content { margin-top: 0.75rem; }
.cc-comment-list .comment-content > * + * { margin-top: 0.75rem; }
.cc-comment-list .reply a,
.cc-comment-list .comment-edit-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--teal-dark); font-size: var(--text-sm); font-weight: 600; }
.cc-comments__closed,
.cc-comments__note { margin-top: 1rem; color: var(--muted); font-size: var(--text-sm); }

.cc-comment-respond { margin-top: 2.5rem; }
.cc-comments__reply-title { font-family: var(--font-display); font-size: var(--text-xl); }
.cc-comments__reply-title small { margin-left: 0.75rem; font-size: var(--text-sm); font-weight: 500; }
.cc-comment-respond .comment-form > p { margin-top: 1rem; }
.cc-comment-respond label { display: block; margin-bottom: 0.35rem; font-size: var(--text-sm); font-weight: 600; }

.cc-comment-respond :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
	font-size: var(--text-base);
}

.cc-comment-respond textarea { min-height: 9rem; resize: vertical; }
.cc-comment-respond .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 0.6rem; }
.cc-comment-respond .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.cc-comment-respond .comment-form-cookies-consent input { width: 20px; height: 20px; margin-top: 0.15rem; flex: none; }
.cc-comment-respond .form-submit { margin-top: 1.5rem; }

/* 12 Motion and print ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.cc-post-card:hover .cc-post-card__more .cc-icon,
	.cc-treatment-link:hover .cc-icon { transform: none; }
}

@media print {
	.cc-chips,
	.cc-blog-hero__search,
	.cc-pagination,
	.cc-blog-cta,
	.cc-related,
	.cc-comments { display: none !important; }
	.cc-post__content { font-size: 11pt; }
}

/* Pasted hero photos inside posts: the doctor stands at the right of a wide photo, and a tall
   cover crop centred on the middle cut his head at the edge. Anchor the crop to the right. */
.cc-post__content .hero-bg { object-position: 75% 50%; }

/* Cashless eye surgery post: the 70px round photo of two doctors is a wide photo with Dr. Gala at the
   left edge; the default centre crop cut his face in half. Anchor it left (post markup is not edited). */
.cc-post__content img[alt^="Dr. Gala and Dr. Bhuta in professional surgical discussion"] { object-position: 10% 50%; }
