/* Single condition — the live /{slug} guide design: dark hero with the
   "sound familiar?" card, facts strip, trust strip, guide copy beside a sticky
   booking card, related treatments, related guides, closing band. */

/* Hero */
.cond-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.cond-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(closest-side, rgba(176, 172, 5, 0.18), transparent 65%) 0 -20% / 70% 130% no-repeat,
		radial-gradient(closest-side, rgba(176, 172, 5, 0.08), transparent 70%) 110% 120% / 55% 120% no-repeat;
}

.cond-hero > * {
	position: relative;
}

.cond-crumbs {
	margin: 0;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(217, 212, 168, 0.92);
}

.cond-crumbs a {
	color: rgba(217, 212, 168, 0.85);
	text-decoration: none;
}

.cond-crumbs a:hover {
	color: var(--accent);
}

.cond-crumbs .nb-breadcrumbs__separator {
	margin: 0 8px;
	color: rgba(217, 212, 168, 0.35);
}

.cond-crumbs [aria-current] {
	color: var(--fg-on-dark);
}

.cond-hero-grid {
	margin-top: var(--wp--preset--spacing--4);
}

.cond-region {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	letter-spacing: 0.22em;
}

.cond-region::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--accent);
}

.cond-hero .wp-block-post-title {
	max-width: 14ch;
	font-size: clamp(44px, 8vw, 96px);
	line-height: 0.95;
	letter-spacing: -0.028em;
	text-wrap: balance;
}

.cond-hero .cond-lede {
	max-width: 52ch;
	color: var(--border);
	font-size: clamp(16px, 1.6vw, 19px);
	line-height: 1.55;
}

.cond-hero .cond-chip {
	margin: 0;
	padding: 6px 12px;
	border: 1px solid rgba(217, 212, 168, 0.28);
	border-radius: 999px;
	background: rgba(250, 248, 236, 0.04);
	color: var(--border);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.cond-hero .cond-chip-accent {
	color: var(--accent);
	background: rgba(176, 172, 5, 0.1);
	border-color: rgba(176, 172, 5, 0.55);
}

.cond-actions {
	margin-top: 4px;
}

/* "book low back pain assessment →" is a hyperlink group dressed as the primary button. */
.cond-hero .cond-book {
	--wp--custom--hyperlink-group--hover-background-color: var(--np-ink);
	display: inline-flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	width: auto;
	min-height: 52px;
	padding: 14px 28px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--fg);
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-transform: lowercase;
	transition:
		background var(--dur-base) var(--ease-out),
		color var(--dur-base) var(--ease-out),
		box-shadow var(--dur-base) var(--ease-out);
}

.cond-hero .cond-book p {
	margin: 0;
	color: inherit;
	font: inherit;
}

.cond-hero .cond-book:hover,
.cond-hero .cond-book:focus-visible {
	color: var(--accent);
	box-shadow: inset 0 0 0 1.5px var(--accent);
}

.cond-hero .cond-meta-call {
	margin: 0;
	color: var(--border);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.cond-hero .cond-meta-call a {
	color: var(--accent);
	border-bottom: 1px solid rgba(176, 172, 5, 0.45);
	text-decoration: none;
}

/* "sound familiar?" card */
.cond-check {
	padding: 24px;
	border: 1px solid rgba(217, 212, 168, 0.2);
	border-radius: 20px;
	background: rgba(250, 248, 236, 0.04);
}

.cond-check > * + * {
	margin-block-start: 14px;
}

.cond-check .is-style-meta-label {
	margin: 0;
	letter-spacing: 0.22em;
}

.cond-check-title {
	row-gap: 0;
}

.cond-check-title p,
.cond-check-title .cond-title-inline {
	margin: 0;
	color: var(--fg-on-dark);
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-transform: lowercase;
}

.cond-title-inline {
	color: var(--accent);
	font-style: italic;
	font-weight: 400;
}

.cond-check-title .cond-check-stop,
.cond-related-desc .cond-check-stop {
	margin-left: -0.3em;
}

.cond-signs.nb-detail-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.cond-signs .nb-detail-list__row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 0;
	border: 0;
}

.cond-signs .nb-detail-list__row::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B0AC05'%3E%3Cpath d='M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.cond-signs .nb-detail-list__label {
	margin: 0;
	color: var(--border);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-transform: none;
	letter-spacing: 0;
}

.cond-signs .nb-detail-list__value {
	display: none;
}

.cond-check .cond-pitch {
	margin: 6px 0 0;
	color: rgba(217, 212, 168, 0.92);
	font-size: 13px;
	line-height: 1.55;
}

/* Facts strip */
.cond-strip {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	border-top: 1px solid rgba(217, 212, 168, 0.14);
	border-bottom: 1px solid rgba(217, 212, 168, 0.14);
}

.cond-strip-grid {
	background: rgba(217, 212, 168, 0.12);
}

.cond-cell {
	padding: 18px 24px;
	background: var(--wp--preset--color--ink);
}

.cond-cell p {
	margin: 0;
}

.cond-cell .is-style-meta-label {
	font-size: 10px;
	letter-spacing: 0.22em;
	color: var(--accent-soft);
}

.cond-cell-value {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: lowercase;
}

.cond-cell-value em {
	color: var(--accent);
	font-style: italic;
	font-weight: 400;
}

/* Trust strip */
.cond-trust {
	border-bottom: 1px solid var(--border);
}

.cond-trust .is-style-eyebrow {
	margin: 0;
	letter-spacing: 0.22em;
}

.cond-mark {
	margin: 0;
}

.cond-mark img {
	display: block;
	width: auto;
	height: 30px;
	filter: saturate(0.9) opacity(0.85);
	transition: filter var(--dur-base) var(--ease-out);
}

.cond-mark:hover img {
	filter: none;
}

/* Body: guide copy, stories and "ready?" on the left */
.cond-main > * + * {
	margin-top: 72px;
}

.cond-main :where(h2) {
	max-width: 20ch;
	margin-bottom: 24px;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.cond-main :where(h2, h3) em {
	color: var(--accent-soft);
	font-style: italic;
	font-weight: 400;
}

.cond-sections :where(h2):not(:first-child) {
	margin-top: 72px;
}

.cond-main :where(p) {
	max-width: 62ch;
	color: var(--fg-soft);
	font-size: 17px;
	line-height: 1.62;
}

/* Plain lists in the guide ("how we treat it") become the focus grid. */
.cond-sections > .wp-block-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.cond-sections > .wp-block-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--bg-elevated);
	color: var(--fg);
	font-family: var(--font-display);
	font-size: 15px;
	letter-spacing: -0.01em;
	text-transform: lowercase;
}

.cond-sections > .wp-block-list li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--accent);
}

/* Symptom grid: "where the pain is" / "how it feels" cards. */
.cond-sections .cond-symptom-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.cond-symptom-col {
	padding: 20px 22px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--bg-elevated);
}

.cond-symptom-col > * + * {
	margin-block-start: 10px;
}

.cond-main .cond-symptom-head {
	margin: 0;
	color: var(--accent-soft);
	font-family: var(--font-body);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.cond-symptom-col .wp-block-list {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cond-symptom-col .wp-block-list li {
	position: relative;
	padding-left: 18px;
	color: var(--fg);
	font-family: var(--font-display);
	font-size: 15px;
	letter-spacing: -0.01em;
	text-transform: lowercase;
}

.cond-symptom-col .wp-block-list li::before {
	content: "";
	position: absolute;
	top: 9px;
	left: 0;
	width: 8px;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
}

/* FAQs: native details blocks styled as the live accordion. */
.cond-sections .cond-faq {
	margin: 0;
	border-bottom: 1px solid var(--border);
}

.cond-sections .cond-faq:first-of-type {
	border-top: 1px solid var(--border);
}

.cond-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 0;
	cursor: pointer;
	list-style: none;
	color: var(--fg);
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-transform: lowercase;
}

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

.cond-faq summary::after {
	content: "+";
	flex: none;
	width: 32px;
	color: var(--accent-soft);
	font-family: var(--font-body);
	font-size: 22px;
	text-align: center;
}

.cond-faq[open] summary::after {
	content: "−";
}

.cond-faq summary:hover {
	color: var(--accent-soft);
}

.cond-main .cond-faq p {
	max-width: 58ch;
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.6;
}

/* Patient stories */
.cond-stories > .wp-block-query {
	margin-top: 24px;
}

.cond-stories .wp-block-post-template {
	gap: 20px;
}

.cond-story-card {
	position: relative;
	height: 100%;
	padding: 40px 28px 24px;
	border-radius: 18px;
	background: var(--bg-elevated);
	box-shadow: var(--shadow-rest);
}

.cond-story-card > * + * {
	margin-block-start: 6px;
}

.cond-story-card::before {
	content: "“";
	position: absolute;
	top: 4px;
	left: 20px;
	pointer-events: none;
	color: var(--accent);
	font-family: var(--font-display);
	font-size: 78px;
	font-style: italic;
	font-weight: 500;
	line-height: 1;
}

.cond-main .cond-quote {
	margin: 14px 0 0;
	max-width: 32ch;
	color: var(--fg);
	font-family: var(--font-display);
	font-size: 18px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-transform: lowercase;
}

.cond-main .cond-story-name {
	margin: 12px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: lowercase;
}

.cond-story-chips {
	margin-top: 6px;
}

.cond-main .cond-story-chip {
	margin: 0;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(176, 172, 5, 0.08);
	color: var(--accent-soft);
	font-family: var(--font-body);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cond-story-chip:empty {
	display: none;
}

.cond-ready .wp-block-buttons {
	margin-top: 8px;
}

/* Sticky booking card on the right */
.cond-booking-card {
	padding: 24px 26px 26px;
	border: 1px solid var(--border);
	border-radius: 18px;
	box-shadow: var(--shadow-rest);
}

@media (min-width: 1024px) {
	.cond-grid > .wp-block-column:last-child {
		flex: 0 0 340px;
	}

	.cond-booking-card {
		position: sticky;
		top: 110px;
	}
}

.cond-booking-card .cond-avail {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 12px 6px 10px;
	border-radius: 999px;
	background: rgba(176, 172, 5, 0.12);
	color: var(--accent-soft);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.cond-booking-card .cond-avail::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--accent);
	box-shadow: 0 0 0 3px rgba(176, 172, 5, 0.28);
}

.cond-card-title {
	row-gap: 0;
}

.cond-card-title p,
.cond-card-title .cond-title-inline {
	margin: 0;
	color: var(--fg);
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-transform: lowercase;
}

.cond-card-title .cond-title-inline {
	color: var(--accent-soft);
	font-style: italic;
	font-weight: 400;
}

.cond-booking-card .cond-price {
	--wp--custom--hyperlink-group--hover-background-color: #e8e0a8;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	padding: 14px 18px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--bg-hover);
	color: var(--fg);
}

.cond-price p {
	margin: 0;
}

.cond-price .is-style-meta-label {
	font-size: 10px;
	letter-spacing: 0.22em;
}

.cond-amount {
	color: var(--fg);
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.02em;
}

.cond-booking-card .cond-per {
	color: var(--accent-soft);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.22em;
	text-align: right;
	text-transform: uppercase;
}

.cond-checks {
	padding: 14px 0 4px;
	border-top: 1px solid var(--border);
}

.cond-checks p {
	display: grid;
	grid-template-columns: 24px 1fr;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--fg);
	font-family: var(--font-display);
	font-size: 15px;
	letter-spacing: -0.01em;
	text-transform: lowercase;
}

.cond-checks p::before {
	content: "";
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B0AC05' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 12.5l2.5 2.5 4.5-5'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.cond-book-btn .wp-block-button__link {
	width: 100%;
}

.cond-booking-card .cond-phone-line {
	--wp--custom--hyperlink-group--hover-background-color: #e8e0a8;
	display: flex;
	flex-direction: column;
	position: relative;
	padding: 12px 44px 12px 14px;
	border-radius: 14px;
	background: var(--bg-hover);
	color: var(--fg);
}

.cond-booking-card .cond-phone-line::after {
	content: "→";
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	color: var(--accent-soft);
	font-family: var(--font-display);
	font-size: 20px;
}

.cond-booking-card .cond-phone-line p {
	margin: 0;
}

.cond-booking-card .cond-phone-line .is-style-meta-label {
	font-size: 10px;
	letter-spacing: 0.22em;
}

.cond-booking-card .cond-num {
	color: var(--fg);
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.1;
}

.cond-booking-card .cond-insurers {
	margin: 4px 0 0;
	color: var(--accent-soft);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-align: center;
	text-transform: uppercase;
}

/* Related treatments and guides: eyebrow / heading / description with the
   condition's name inline. */
.cond-related {
	border-top: 1px solid var(--border);
}

.cond-related-head {
	max-width: 640px;
}

.cond-related-head > * + * {
	margin-block-start: 10px;
}

.cond-related-eyebrow,
.cond-related-desc {
	row-gap: 0;
}

.cond-related-eyebrow .is-style-eyebrow,
.cond-related-eyebrow .cond-title-inline {
	margin: 0;
	color: var(--accent-soft);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	font-style: normal;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.cond-related-eyebrow .is-style-eyebrow::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 1px;
	margin-right: 10px;
	vertical-align: middle;
	background: var(--accent-soft);
}

.cond-related-head :where(h2) {
	max-width: 18ch;
	margin: 0;
}

.cond-related-desc p,
.cond-related-desc .cond-title-inline {
	margin: 0;
	color: var(--fg-soft);
	font-family: var(--font-body);
	font-size: 15px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.6;
}

.cond-guides {
	border-top: 1px solid var(--border);
}

.cond-guides .wp-block-post-template {
	gap: 20px;
}

/* Light variant of the homepage condition rows for the sand band. */
.cond-guides .wp-block-nimue-blocks-hyperlink-group.condition-row {
	background: var(--wp--preset--color--white);
	border-color: var(--border);
}

.cond-guides .wp-block-nimue-blocks-hyperlink-group.condition-row:hover {
	background: var(--wp--preset--color--white);
	border-color: rgba(176, 172, 5, 0.6);
}

.cond-guides .condition-row .is-style-number {
	color: var(--accent-soft);
}

.cond-guides .condition-row .wp-block-post-title {
	color: var(--fg);
}

.cond-guides .condition-row .wp-block-post-excerpt p {
	color: var(--fg-soft);
}

.cond-guides .condition-row-arrow {
	color: var(--fg-soft);
}

/* Below desktop: three-up grids drop to two, then one. */
@media (max-width: 1023px) {
	.cond-stories .wp-block-post-template,
	.cond-guides .wp-block-post-template,
	.cond-related .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.cond-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.cond-main > * + * {
		margin-top: 48px;
	}

	.cond-sections :where(h2):not(:first-child) {
		margin-top: 48px;
	}
}

@media (max-width: 719px) {
	.cond-sections .cond-symptom-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cond-strip-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cond-stories .wp-block-post-template,
	.cond-guides .wp-block-post-template,
	.cond-related .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
	}
}
