/*
 * Blog — listing (template-parts/content/listing.php) and article (single.php).
 *
 * Layout and spacing follow the redesigned Smile 4 Ever blog (hero with the latest article, card grid with topic and
 * sort controls, biggest topics; split article hero, sticky left column, FAQ accordion, related posts). Colours,
 * type (Inter) and buttons come from the Cypress Towne tokens in main.css — no new brand colours.
 * Everything is scoped to .ctd-blog. Breakpoints as main.css: phones ≤ 767px, tablets 768–1024px, desktop ≥ 1025px.
 */

.ctd-blog {
	--bl-brand: var(--ctd-brand);
	--bl-brand-dark: var(--ctd-brand-dark);
	--bl-navy: var(--ctd-navy);
	--bl-tint: var(--ctd-tint);
	--bl-sky: var(--ctd-sky);
	--bl-bg: #f4fafb;               /* page background of the listing: the teal tint, lighter */
	--bl-ink: #0e1b26;
	--bl-text: #33434d;
	--bl-muted: var(--ctd-muted);
	--bl-line: #d8e8ec;
	--bl-r: var(--ctd-radius-lg);
	--bl-shadow: 0 1px 2px rgba(5, 35, 72, .06), 0 8px 24px rgba(5, 35, 72, .08);
	--bl-shadow-h: 0 2px 4px rgba(5, 35, 72, .08), 0 18px 40px rgba(5, 35, 72, .16);
	display: block;
	color: var(--bl-text);
	overflow-x: clip;
}
.ctd-blog--list { background: var(--bl-bg); }
.ctd-blog img { max-width: 100%; height: auto; }

/* ------------------------------------------------------------------ shared bits */

.ctd-bcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; color: rgba(255, 255, 255, .78); }
.ctd-bcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.ctd-bcrumbs li + li::before { content: "/"; opacity: .7; }
.ctd-blog .ctd-bcrumbs a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.ctd-blog .ctd-bcrumbs a:hover { color: #fff; text-decoration: underline; }
.ctd-bcrumbs [aria-current] { display: inline-block; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.ctd-beyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.ctd-beyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--bl-navy); }

.ctd-bmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--bl-muted); }
.ctd-bmeta__cat { color: var(--bl-brand-dark); font-weight: 700; }
.ctd-bdot { width: 4px; height: 4px; flex: none; border-radius: 50%; background: currentColor; opacity: .5; }
.ctd-bread { display: inline-flex; align-items: center; gap: 5px; }

.ctd-bsec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ctd-blog .ctd-bsec-title { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--bl-ink); }
.ctd-bcount { margin: 6px 0 0; font-size: 14px; color: var(--bl-muted); }

.ctd-blog .ctd-btn .ctd-icon--arrow { transition: transform .2s; }
.ctd-blog .ctd-btn:hover .ctd-icon--arrow { transform: translateX(3px); }

/* image placeholder (posts without a featured image) */
.ctd-bph { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; overflow: hidden; background: linear-gradient(135deg, var(--bl-brand), var(--bl-navy)); color: #fff; }
.ctd-bph::before { content: ""; position: absolute; right: -20%; top: -35%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.ctd-bph img { width: 60px; height: auto; }
.ctd-bph__label { padding: 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: center; opacity: .92; }

/* ------------------------------------------------------------------ listing hero */

.ctd-bhero {
	position: relative;
	isolation: isolate;
	padding: clamp(32px, 4vw, 48px) 0 clamp(36px, 4.5vw, 56px);
	background: var(--bl-brand) url("../images/pattern-leaves.png") center / cover;
	color: #fff;
	overflow: hidden;
}
.ctd-bhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bl-brand); opacity: .96; }
.ctd-bhero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 5vw, 64px); align-items: center; }
.ctd-bhero__grid.is-single { grid-template-columns: minmax(0, 1fr); }
.ctd-bhero__text { min-width: 0; }
.ctd-blog .ctd-bhero__title { margin: 0 0 14px; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; color: #fff; }
.ctd-blog .ctd-bhero__lede { max-width: 560px; margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: #fff; }
.ctd-bhero__search .ctd-search { max-width: 520px; }
.ctd-bhero__search .ctd-search__submit { background: var(--bl-navy); }
.ctd-bhero__rating .ctd-rating {
	margin: 0;
	color: #fff;
	padding: 12px 20px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 16px;
	background: rgba(255, 255, 255, .12);
	font-size: 16px;
	transition: background-color .2s, transform .2s;
}
.ctd-bhero__rating .ctd-rating:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.ctd-bhero__rating .ctd-rating__value { font-size: 26px; font-weight: 800; line-height: 1; }
.ctd-bhero__rating .ctd-rating__count { flex-basis: 100%; font-size: 14px; font-weight: 500; opacity: .92; }

/* latest article */
.ctd-blead {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	background: #fff;
	color: var(--bl-text);
	box-shadow: 0 24px 48px rgba(5, 35, 72, .3);
	transform: rotate(.6deg);
	transition: transform .35s ease;
}
.ctd-blead:hover { transform: rotate(0) translateY(-4px); }
.ctd-blead__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bl-tint); }
.ctd-blead__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ctd-blead:hover .ctd-blead__media img { transform: scale(1.04); }
.ctd-blead__flag { position: absolute; top: 14px; left: 14px; padding: 8px 14px; border-radius: 999px; background: var(--bl-navy); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(5, 35, 72, .35); }
.ctd-blead__body { padding: 16px 22px 22px; }
.ctd-blog .ctd-blead__title { margin: 8px 0; font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.ctd-blog .ctd-blead__title a { color: var(--bl-ink); text-decoration: none; }
.ctd-blog .ctd-blead__title a:hover { color: var(--bl-brand-dark); }
.ctd-blog .ctd-blead__excerpt { display: -webkit-box; margin: 0 0 16px; overflow: hidden; font-size: 15px; line-height: 1.55; color: var(--bl-text); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ctd-blog .ctd-blead__btn { min-height: 40px; padding: 9px 18px; font-size: 14px; font-weight: 700; }

/* ------------------------------------------------------------------ articles grid */

.ctd-barticles { padding-top: clamp(44px, 5vw, 64px); padding-bottom: 24px; }
.ctd-bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.ctd-pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--bl-r);
	background: #fff;
	box-shadow: var(--bl-shadow);
	transition: transform .3s ease, box-shadow .3s ease;
}
.ctd-pcard:hover { transform: translateY(-6px); box-shadow: var(--bl-shadow-h); }
.ctd-pcard__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bl-tint); }
.ctd-pcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ctd-pcard:hover .ctd-pcard__media img { transform: scale(1.06); }
.ctd-pcard__media .ctd-bph img { width: 56px; height: auto; object-fit: contain; transform: none !important; }
.ctd-blog .ctd-pcard__badge {
	position: absolute;
	top: 14px; left: 14px;
	z-index: 2;
	max-width: calc(100% - 28px);
	padding: 7px 12px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(5, 35, 72, .9);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background-color .2s;
}
.ctd-blog .ctd-pcard__badge:hover { background: var(--bl-brand-dark); color: #fff; }
.ctd-pcard__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.ctd-blog .ctd-pcard__title { margin: 10px 0; font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.ctd-blog .ctd-pcard__title a {
	color: var(--bl-ink);
	text-decoration: none;
	background: linear-gradient(var(--bl-tint), var(--bl-tint)) 0 100% / 0 40% no-repeat;
	transition: background-size .35s, color .2s;
}
.ctd-pcard:hover .ctd-pcard__title a { color: var(--bl-navy); background-size: 100% 40%; }
.ctd-blog .ctd-pcard__excerpt { display: -webkit-box; margin: 0 0 18px; overflow: hidden; font-size: 15px; line-height: 1.6; color: var(--bl-text); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ctd-blog .ctd-pcard__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--bl-brand-dark); font-size: 14px; font-weight: 700; text-decoration: none; }
.ctd-pcard__more::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.ctd-pcard__more .ctd-icon { transition: transform .2s; }
.ctd-pcard:hover .ctd-pcard__more .ctd-icon { transform: translateX(4px); }

.ctd-blog .ctd-pagination ul { margin-top: 40px; }
.ctd-blog .ctd-pagination a,
.ctd-blog .ctd-pagination span { min-width: 44px; height: 44px; border-radius: 999px; background: #fff; box-shadow: var(--bl-shadow); }
.ctd-blog .ctd-pagination .current { background: var(--bl-brand); color: #fff; }
.ctd-blog .ctd-pagination a:hover { background: var(--bl-navy); color: #fff; }
.ctd-blog .ctd-pagination .dots { background: none; box-shadow: none; }

.ctd-bempty { padding: 48px 16px; border-radius: var(--bl-r); background: #fff; box-shadow: var(--bl-shadow); text-align: center; }
.ctd-bempty img { box-sizing: content-box; width: 52px; margin: 0 auto 12px; padding: 14px 12px; border-radius: 16px; background: var(--bl-tint); }
.ctd-blog .ctd-bempty h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--bl-ink); }
.ctd-bempty p { margin: 0 0 18px; color: var(--bl-muted); }
.ctd-bempty .ctd-search { max-width: 420px; margin-inline: auto; }

/* topic + sort */
.ctd-btools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.ctd-bsel { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--bl-muted); }
.ctd-blog .ctd-bsel select {
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 44px;
	padding: 10px 40px 10px 16px;
	border: 1px solid var(--bl-line);
	border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23052348' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 15px center;
	color: var(--bl-ink);
	font: 600 14px/1.3 var(--wp--preset--font-family--inter);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.ctd-blog .ctd-bsel--topic select { min-width: 250px; font-weight: 700; }
.ctd-blog .ctd-bsel select:hover { border-color: var(--bl-brand); }
.ctd-blog .ctd-bsel select.is-set {
	border-color: var(--bl-navy);
	background-color: var(--bl-navy);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
	color: #fff;
}
.ctd-blog .ctd-bsel select.is-set option { background: #fff; color: var(--bl-ink); }

/* ------------------------------------------------------------------ biggest topics */

.ctd-btopics-sec { padding-top: clamp(44px, 5vw, 64px); padding-bottom: clamp(44px, 5vw, 64px); }
.ctd-btopics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ctd-btopic { display: flex; flex-direction: column; padding: 26px; border-top: 5px solid var(--bl-brand); border-radius: var(--bl-r); background: #fff; box-shadow: var(--bl-shadow); }
.ctd-btopic:nth-child(2) { border-top-color: var(--bl-navy); }
.ctd-btopic:nth-child(3) { border-top-color: var(--bl-brand-dark); }
.ctd-btopic__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ctd-btopic__icon { display: grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bl-tint); }
.ctd-btopic__icon img { width: 30px; height: auto; }
.ctd-blog .ctd-btopic__name { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--bl-ink); }
.ctd-btopic__count { margin: 4px 0 0; font-size: 13px; color: var(--bl-muted); }
.ctd-btopic__list { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: bt; }
.ctd-btopic__list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--bl-line); counter-increment: bt; }
.ctd-btopic__list li::before { content: counter(bt, decimal-leading-zero); font-size: 15px; font-weight: 800; line-height: 1.4; color: var(--bl-brand-dark); }
.ctd-blog .ctd-btopic__list a { color: var(--bl-ink); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.ctd-blog .ctd-btopic__list a:hover { color: var(--bl-brand-dark); text-decoration: underline; }
.ctd-blog .ctd-btopic__link { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: auto; padding: 10px 16px; border-radius: 999px; background: var(--bl-tint); color: var(--bl-navy); font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.ctd-blog .ctd-btopic__link:hover { background: var(--bl-navy); color: #fff; }

/* ------------------------------------------------------------------ article */

.ctd-bprogress { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; height: 4px; pointer-events: none; }
.ctd-bprogress span { display: block; width: 0; height: 100%; border-radius: 0 4px 4px 0; background: linear-gradient(90deg, var(--bl-brand), var(--bl-sky)); transition: width .1s linear; }
.admin-bar .ctd-bprogress { top: 32px; }

/* hero: text left, featured image right */
.ctd-ahero {
	position: relative;
	isolation: isolate;
	padding: 40px 0 48px;
	background: var(--bl-brand) url("../images/pattern-leaves.png") center / cover;
	color: #fff;
	overflow: hidden;
}
.ctd-ahero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bl-brand); opacity: .96; }
.ctd-ahero--noimg { padding: 56px 0 64px; background: #333 var(--ctd-hero) center / cover no-repeat; }
.ctd-ahero--noimg::before { background: #000; opacity: .45; }
.ctd-ahero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 56px; align-items: center; }
.ctd-ahero--noimg .ctd-ahero__grid { grid-template-columns: minmax(0, 1fr); }
.ctd-ahero--noimg .ctd-ahero__text { max-width: 820px; }
.ctd-ahero__text { min-width: 0; }
.ctd-blog .ctd-bpill { display: inline-flex; align-items: center; margin: 0 0 14px; padding: 8px 14px; border-radius: 999px; background: var(--bl-navy); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background-color .2s, color .2s; }
.ctd-blog .ctd-bpill:hover { background: #fff; color: var(--bl-navy); }
.ctd-blog .ctd-bpill--light { margin: 0; background: var(--bl-tint); color: var(--bl-navy); letter-spacing: .04em; }
.ctd-blog .ctd-bpill--light:hover { background: var(--bl-navy); color: #fff; }
.ctd-blog .ctd-ahero__title { margin: 0 0 14px; font-size: clamp(30px, 3.3vw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.ctd-blog .ctd-ahero__dek { max-width: 560px; margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: #fff; }
.ctd-byline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; line-height: 1.4; }
.ctd-blog .ctd-byline a { color: #fff; font-weight: 700; text-decoration: none; }
.ctd-blog .ctd-byline a:hover { text-decoration: underline; }
.ctd-ahero__fig { margin: 0; }
.ctd-ahero__fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 4px solid rgba(255, 255, 255, .2); border-radius: 20px; background: rgba(255, 255, 255, .12); box-shadow: 0 20px 44px rgba(5, 35, 72, .35); }

/* two columns: sticky tools on the left, the article on the right */
.ctd-alayout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 56px; }
.ctd-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - 48px); }
.admin-bar .ctd-aside { top: 56px; max-height: calc(100vh - 80px); }
.ctd-abody { min-width: 0; }

.ctd-btoc { display: flex; flex: 0 1 auto; flex-direction: column; min-height: 0; padding: 20px 18px 14px; border: 1px solid var(--bl-line); border-radius: 18px; background: #fff; }
.ctd-btoc__h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 800; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--bl-navy); }
.ctd-btoc ol { min-height: 0; margin: 0; padding: 0 6px 0 0; overflow: auto; list-style: none; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bcdde4 transparent; box-shadow: inset 2px 0 0 var(--bl-line); }
.ctd-btoc li { margin: 0; }
.ctd-blog .ctd-btoc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: #4a5a63; font-size: 14px; line-height: 1.45; text-decoration: none; transition: color .2s, border-color .2s; }
.ctd-blog .ctd-btoc a:hover { color: var(--bl-navy); }
.ctd-blog .ctd-btoc a.is-active { border-left-color: var(--bl-brand); color: var(--bl-navy); font-weight: 700; }
.ctd-aside__share { flex: none; }

/* the Cypress new-patient offer card, compact in the column */
.ctd-aside .ctd-offer { position: static; flex: none; gap: 8px; padding: 20px 18px; box-shadow: 0 12px 28px rgba(5, 35, 72, .18); }
.ctd-aside .ctd-offer__icon { display: none; }
.ctd-aside .ctd-offer__price { font-size: 34px; }
.ctd-aside .ctd-offer__title { font-size: 18px; }
.ctd-aside .ctd-offer__text { margin-top: -6px !important; font-size: 13px; }
.ctd-aside .ctd-offer__or { font-size: 16px; }
.ctd-aside .ctd-offer__visit { font-size: 14px; }
.ctd-aside .ctd-offer .ctd-btn { max-width: none; }
@media (max-height: 960px) and (min-width: 1025px) {
	.ctd-aside .ctd-offer__or,
	.ctd-aside .ctd-offer__visit,
	.ctd-aside .ctd-offer .ctd-btn:last-child { display: none; }
}

/* table of contents on tablets and phones */
.ctd-btoc-m { display: none; margin: 0 0 28px; border: 1px solid var(--bl-line); border-radius: 16px; background: var(--bl-bg); }
.ctd-btoc-m summary { display: flex; align-items: center; gap: 10px; padding: 16px 18px; color: var(--bl-navy); font-size: 15px; font-weight: 800; list-style: none; cursor: pointer; }
.ctd-btoc-m summary::-webkit-details-marker { display: none; }
.ctd-btoc-m summary span { margin-left: auto; color: var(--bl-muted); font-size: 13px; font-weight: 500; }
.ctd-btoc-m summary::after { content: ""; width: 9px; height: 9px; margin-left: 6px; border-right: 2px solid var(--bl-navy); border-bottom: 2px solid var(--bl-navy); transform: rotate(45deg); transition: transform .2s; }
.ctd-btoc-m[open] summary::after { transform: rotate(-135deg); }
.ctd-btoc-m ol { margin: 0; padding: 0 18px 16px 38px; }
.ctd-btoc-m li { padding: 5px 0; }
.ctd-blog .ctd-btoc-m a { color: var(--bl-ink); font-size: 15px; }

/* prose */
.ctd-bprose { color: #1f2a30; font-size: 17.5px; line-height: 1.78; overflow-wrap: break-word; }
.ctd-bprose > :first-child { margin-top: 0; }
.ctd-blog .ctd-bprose p { margin: 0 0 1.15em; }
.ctd-blog .ctd-bprose :is(h2, h3, h4) { scroll-margin-top: 24px; }
.ctd-blog .ctd-bprose h2 { margin: 48px 0 14px; color: var(--bl-ink); font-size: clamp(24px, 2.4vw, 28px); font-weight: 800; line-height: 1.28; letter-spacing: -.015em; }
.ctd-blog .ctd-bprose > h2:first-child { margin-top: 0; }
.ctd-blog .ctd-bprose h3 { margin: 32px 0 10px; color: var(--bl-navy); font-size: 21px; font-weight: 700; line-height: 1.35; }
.ctd-blog .ctd-bprose h4 { margin: 24px 0 8px; color: var(--bl-ink); font-size: 18px; font-weight: 700; line-height: 1.4; }
.ctd-blog .ctd-bprose a:not(.wp-block-button__link):not(.ctd-btn) { color: var(--ctd-rose); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(204, 51, 102, .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.ctd-blog .ctd-bprose a:not(.wp-block-button__link):not(.ctd-btn):hover { text-decoration-color: currentColor; }
.ctd-blog .ctd-bprose strong,
.ctd-blog .ctd-bprose b { color: var(--bl-ink); font-weight: 700; }
.ctd-blog .ctd-bprose :is(ul, ol):not(.ctd-checklist):not(.ctd-iconlist) { margin: 0 0 1.3em; padding: 0; list-style: none; }
.ctd-blog .ctd-bprose :is(ul, ol):not(.ctd-checklist):not(.ctd-iconlist) > li { position: relative; margin: 0 0 .45em; padding-left: 28px; line-height: 1.7; }
.ctd-blog .ctd-bprose ul:not(.ctd-checklist):not(.ctd-iconlist) > li::before { content: ""; position: absolute; top: .72em; left: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--bl-brand); }
.ctd-blog .ctd-bprose ol:not(.ctd-checklist):not(.ctd-iconlist) { counter-reset: bol; }
.ctd-blog .ctd-bprose ol:not(.ctd-checklist):not(.ctd-iconlist) > li { counter-increment: bol; padding-left: 32px; }
.ctd-blog .ctd-bprose ol:not(.ctd-checklist):not(.ctd-iconlist) > li::before { content: counter(bol); position: absolute; top: .25em; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bl-navy); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.ctd-blog .ctd-bprose li > :is(ul, ol) { margin: .5em 0 0; }
.ctd-blog .ctd-bprose li p { margin: 0; }
.ctd-blog .ctd-bprose .wp-block-image,
.ctd-blog .ctd-bprose figure { margin: 1.8em 0; }
.ctd-blog .ctd-bprose img { border-radius: 14px; }
.ctd-blog .ctd-bprose figcaption { margin-top: 8px; color: var(--bl-muted); font-size: 14px; text-align: center; }
.ctd-blog .ctd-bprose .wp-block-quote,
.ctd-blog .ctd-bprose blockquote { margin: 1.8em 0; padding: 20px 24px; border-left: 4px solid var(--bl-brand); border-radius: 0 16px 16px 0; background: var(--bl-tint); color: var(--bl-ink); font-size: 18px; }
.ctd-blog .ctd-bprose blockquote p:last-child { margin: 0; }
.ctd-blog .ctd-bprose .wp-block-table { margin: 1.8em 0; overflow-x: auto; border: 1px solid var(--bl-line); border-radius: 14px; background: #fff; -webkit-overflow-scrolling: touch; }
.ctd-blog .ctd-bprose .wp-block-table table { min-width: 520px; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.ctd-blog .ctd-bprose .wp-block-table :is(th, td) { padding: 13px 16px; border: 0; border-top: 1px solid var(--bl-line); vertical-align: top; }
.ctd-blog .ctd-bprose .wp-block-table thead :is(th, td),
.ctd-blog .ctd-bprose .wp-block-table tr:first-child th { border-top: 0; background: var(--bl-tint); color: var(--bl-navy); font-weight: 700; }
.ctd-blog .ctd-bprose .wp-block-table tbody tr:first-child td { border-top: 0; }
.ctd-blog .ctd-bprose .wp-block-table thead + tbody tr:first-child td { border-top: 1px solid var(--bl-line); }
.ctd-blog .ctd-bprose .wp-block-table tbody tr:nth-child(even) td { background: #f8fbfc; }
.ctd-blog .ctd-bprose .wp-block-table :is(thead, tfoot) { border: 0; }
.ctd-blog .ctd-bprose .wp-block-table table:has(> tbody > tr:only-child > td:only-child) { min-width: 0; }

/* lead paragraph, "This guide explains" card, summary callout */
.ctd-blog .ctd-bprose p.ctd-bintro { margin: 0 0 28px; color: var(--bl-ink); font-size: 20px; font-weight: 500; line-height: 1.7; letter-spacing: -.005em; }
.ctd-bguide { margin: 0 0 8px; padding: 24px 28px 18px; border: 1px solid #c9e6ec; border-left: 4px solid var(--bl-brand); border-radius: 18px; background: linear-gradient(135deg, var(--bl-tint), #f7fcfd); }
.ctd-blog .ctd-bprose p.ctd-bguide__h { margin: 0 0 12px; color: var(--bl-brand-dark); font-size: 13px; font-weight: 800; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.ctd-blog .ctd-bprose .ctd-bguide ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; margin: 0; }
.ctd-blog .ctd-bprose .ctd-bguide li { margin: 0; padding: 6px 0 6px 32px; font-size: 16px; font-weight: 500; line-height: 1.5; }
.ctd-blog .ctd-bprose .ctd-bguide ul > li::before { top: 7px; left: 0; width: 20px; height: 20px; background: var(--bl-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 14px; }
.ctd-bcallout { margin: 0 0 2em; padding: 26px 28px 10px; border: 1px solid #c9e6ec; border-radius: 20px; background: linear-gradient(135deg, var(--bl-tint), #f7fcfd); }
.ctd-blog .ctd-bprose .ctd-bcallout h2 { margin: 0 0 .5em; color: var(--bl-brand-dark); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }

/* booking banners inside the article */
.ctd-bcta { display: flex; align-items: center; gap: 20px; margin: 2.2em 0; padding: 22px 24px; border-radius: 18px; }
.ctd-blog .ctd-bcta p { margin: 0; line-height: 1.5; }
.ctd-bcta__body { flex: 1; min-width: 0; }
.ctd-blog .ctd-bcta__k { margin-bottom: 8px; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.ctd-blog .ctd-bcta__t { color: var(--bl-ink); font-size: 20px; font-weight: 800; line-height: 1.3; }
.ctd-blog .ctd-bcta__d { margin-top: 4px; color: #4a5a63; font-size: 15.5px; }
.ctd-bcta__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ctd-bcta .ctd-btn { min-height: 44px; padding: 10px 18px; font-size: 14px; font-weight: 700; }
.ctd-bcta--soft { border: 1px solid #c9e6ec; background: var(--bl-tint); }
.ctd-bcta__icon { display: grid; flex: none; align-self: flex-start; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--bl-brand-dark); box-shadow: var(--bl-shadow); }
.ctd-bcta--offer { position: relative; gap: 24px; padding: 28px 32px; overflow: hidden; background: var(--bl-navy); box-shadow: 0 18px 40px rgba(5, 35, 72, .25); }
.ctd-bcta--offer::after { content: ""; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none; }
.ctd-blog .ctd-bprose .ctd-bcta__img { flex: none; width: 96px; height: auto; border-radius: 0; }
.ctd-blog .ctd-bcta--offer .ctd-bcta__k { color: var(--bl-sky); }
.ctd-blog .ctd-bcta--offer .ctd-bcta__t { color: #fff; font-size: 26px; }
.ctd-blog .ctd-bcta--offer .ctd-bcta__t span { color: var(--bl-sky); }
.ctd-blog .ctd-bcta--offer .ctd-bcta__d { color: rgba(255, 255, 255, .88); }

/* article footer, share, tags, author box */
.ctd-afoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--bl-line); }
.ctd-afoot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ctd-afoot__l { color: var(--bl-muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ctd-afoot__tags { flex-basis: 100%; }
.ctd-afoot .ctd-tags { margin: 0; }
.ctd-bshare { display: flex; flex-wrap: wrap; gap: 10px; }
.ctd-blog .ctd-bshare__btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--bl-line); border-radius: 50%; background: #fff; color: var(--bl-navy); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.ctd-blog .ctd-bshare__btn:hover { border-color: var(--bl-brand); background: var(--bl-brand); color: #fff; transform: translateY(-2px); }
.ctd-blog .ctd-bshare__btn.is-copied { border-color: var(--bl-navy); background: var(--bl-navy); color: #fff; }
.ctd-blog .ctd-bshare__btn.is-copied::after { content: attr(data-ctd-copied); position: absolute; bottom: calc(100% + 8px); left: 50%; padding: 5px 9px; border-radius: 6px; background: var(--bl-ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); }
.ctd-abody .s4a-box { margin: 32px 0 0; }

/* FAQ accordion (the article's FAQ section, Cypress FAQ items) */
.ctd-bfaq { padding: 64px 0; background: var(--bl-tint); }
.ctd-bfaq__in { max-width: calc(900px + 2 * var(--ctd-gutter)); }
.ctd-bfaq .ctd-bsec-title { margin: 0 0 24px; scroll-margin-top: 24px; }
.ctd-bfaq__lead { margin: -8px 0 20px; font-size: 16px; line-height: 1.7; }
.ctd-bfaq__lead p { margin: 0 0 .75em; }
.ctd-bfaq__list { gap: 12px; }
.ctd-bfaq .ctd-faq-item { border-radius: 16px; box-shadow: 0 1px 2px rgba(5, 35, 72, .06), 0 4px 14px rgba(5, 35, 72, .07); }
.ctd-bfaq .ctd-faq-item summary { padding: 18px 56px 18px 22px; }
.ctd-bfaq .ctd-faq-item summary::after { right: 22px; }
.ctd-blog .ctd-bfaq__q { margin: 0; color: inherit; font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.ctd-bfaq .ctd-faq-item > .ctd-bfaq__a { padding: 0 22px 20px; color: var(--bl-text); font-size: 16px; line-height: 1.7; }
.ctd-blog .ctd-bfaq__a p { margin: 0; font-size: 16px !important; }
.ctd-blog .ctd-bfaq__a :is(p, ul, ol) + :is(p, ul, ol) { margin-top: .75em; }
.ctd-blog .ctd-bfaq__a :is(ul, ol) { margin: .5em 0 0; padding-left: 1.3em; }
.ctd-blog .ctd-bfaq__a a { color: var(--ctd-rose); }

/* older / newer, keep reading */
.ctd-bpns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 32px; padding-bottom: 8px; }
.ctd-blog .ctd-bpn { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1px solid var(--bl-line); border-radius: var(--bl-r); background: #fff; text-decoration: none; transition: border-color .25s, box-shadow .25s, transform .25s; }
.ctd-blog .ctd-bpn:hover { border-color: var(--bl-brand); box-shadow: var(--bl-shadow-h); transform: translateY(-2px); }
.ctd-bpn--next { text-align: right; }
.ctd-bpn__l { color: var(--bl-brand-dark); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ctd-bpn__t { color: var(--bl-ink); font-size: 17px; font-weight: 800; line-height: 1.35; }
.ctd-brelated { padding-top: 40px; padding-bottom: clamp(44px, 5vw, 64px); }
.ctd-brelated .ctd-btn--outline .ctd-icon { margin-left: 2px; }
.ctd-bgrid--3 .ctd-pcard__title { font-size: 19px; }

/* ------------------------------------------------------------------ tablets (768–1024) */

@media (max-width: 1024px) {
	.ctd-bhero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.ctd-bhero__lede { max-width: 640px; }
	.ctd-blead { max-width: 560px; transform: none; }
	.ctd-blead:hover { transform: translateY(-4px); }
	.ctd-bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	.ctd-btopics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ctd-btopic:nth-child(3) { grid-column: 1 / -1; }

	.ctd-ahero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 800px; }
	.ctd-alayout { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: calc(760px + 2 * var(--ctd-gutter)); padding-top: 40px; }
	.ctd-aside { position: static; order: 2; max-height: none; }
	.ctd-aside .ctd-btoc,
	.ctd-aside .ctd-aside__share { display: none; }
	.ctd-aside .ctd-offer { padding: 28px 22px; }
	.ctd-aside .ctd-offer__icon { display: block; }
	.ctd-btoc-m { display: block; }
	.ctd-bfaq { padding: 48px 0; }
	.ctd-bgrid--3 .ctd-pcard:nth-child(3) { display: none; }
	.ctd-bcta--end { display: none; } /* the offer card follows the article on tablets and phones */
}

/* ------------------------------------------------------------------ phones (≤ 767) */

@media (max-width: 767px) {
	.ctd-bhero { padding: 24px 0 36px; }
	.ctd-bhero .ctd-beyebrow { display: none; }
	.ctd-blog .ctd-bhero__lede { font-size: 16px; }
	.ctd-blead { display: none; } /* the latest article opens the grid below instead */
	.ctd-barticles { padding-top: 36px; }
	.ctd-bsec-head { align-items: flex-start; }
	.ctd-btools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
	.ctd-bsel { flex-direction: column; align-items: stretch; gap: 6px; font-size: 13px; }
	.ctd-blog .ctd-bsel select,
	.ctd-blog .ctd-bsel--topic select { width: 100%; min-width: 0; }
	.ctd-bgrid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.ctd-btopics { grid-template-columns: minmax(0, 1fr); }
	.ctd-pcard__body { padding: 18px 18px 20px; }
	.ctd-blog .ctd-pcard__title { font-size: 19px; }

	.ctd-ahero { padding: 24px 0 32px; }
	.ctd-ahero .ctd-bcrumbs li:last-child { display: none; } /* Home / Blog / Topic, as the title follows */
	.ctd-ahero--noimg { padding: 40px 0; }
	.ctd-blog .ctd-ahero__dek { display: none; }
	.ctd-byline { border-radius: 16px; padding: 8px 14px; font-size: 13px; }
	.ctd-ahero__fig img { border-width: 3px; border-radius: 14px; }
	.ctd-alayout { padding-top: 28px; padding-bottom: 40px; }
	.ctd-bprose { font-size: 17px; line-height: 1.75; }
	.ctd-blog .ctd-bprose p.ctd-bintro { font-size: 18px; }
	.ctd-blog .ctd-bprose h2 { margin-top: 40px; }
	.ctd-bguide { padding: 20px 18px 14px; }
	.ctd-blog .ctd-bprose .ctd-bguide ul { grid-template-columns: 1fr; }
	.ctd-bcallout { padding: 22px 20px 6px; }
	.ctd-bcta { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
	.ctd-bcta--offer { padding: 24px 20px; }
	.ctd-blog .ctd-bprose .ctd-bcta__img { width: 72px; }
	.ctd-blog .ctd-bcta__t { font-size: 18px; }
	.ctd-blog .ctd-bcta--offer .ctd-bcta__t { font-size: 22px; }
	.ctd-bcta__acts { width: 100%; }
	.ctd-bcta__acts .ctd-btn { flex: 1 1 100%; }
	.ctd-afoot { flex-direction: column; }
	.ctd-bfaq { padding: 40px 0; }
	.ctd-bfaq .ctd-faq-item summary { padding: 16px 48px 16px 16px; }
	.ctd-bfaq .ctd-faq-item summary::after { right: 16px; }
	.ctd-blog .ctd-bfaq__q { font-size: 17px; }
	.ctd-bfaq .ctd-faq-item > .ctd-bfaq__a { padding: 0 16px 16px; font-size: 15px; }
	.ctd-bpns { grid-template-columns: minmax(0, 1fr); }
	.ctd-bpn--next { text-align: left; }
	.ctd-bgrid--3 .ctd-pcard:nth-child(3) { display: flex; }
}

/* The latest article is in the hero on tablets and desktops; on phones it opens the grid. */
@media (min-width: 768px) {
	.ctd-pcard.is-lead { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ctd-blead, .ctd-pcard, .ctd-bpn, .ctd-pcard__media img, .ctd-blead__media img { transition: none; }
	.ctd-blead, .ctd-blead:hover, .ctd-pcard:hover, .ctd-bpn:hover { transform: none; }
	.ctd-pcard:hover .ctd-pcard__media img, .ctd-blead:hover .ctd-blead__media img { transform: none; }
}

@media print {
	.ctd-bprogress, .ctd-aside, .ctd-btoc-m, .ctd-brelated, .ctd-bpns, .ctd-bshare, .ctd-bcta { display: none !important; }
	.ctd-ahero, .ctd-bhero { background: none; color: #000; }
	.ctd-alayout { grid-template-columns: 1fr; }
	.ctd-bfaq .ctd-faq-item:not([open]) > .ctd-bfaq__a { display: block; }
}
