/* ==========================================================================
   Service page
   --------------------------------------------------------------------------
   Loaded AFTER homepage-2.css, which owns the design tokens, the type scale
   and the shared primitives (.hp2-container, .hp2-heading, .hp2-btn,
   .hp2-compare, …). Nothing here redefines a token or restyles a shared
   component — this file only adds the structures this page introduces.

   Selectors are scoped to .sp (set alongside .hp2 on the page wrapper) and
   doubled as .sp.sp where they must outrank the Elementor kit, matching the
   .hp2.hp2 convention already used across the theme.
   ========================================================================== */

/* --------------------------------------------------------- Sticky enabler */

/*
 * .sp and .hp2 sit on the same wrapper, and homepage-2.css gives .hp2
 * `overflow-x: hidden` to stop the homepage marquee widening the page. Setting
 * one axis to hidden makes the other compute to `auto`, which turns the wrapper
 * into a scroll container — and a scrolling ancestor clips `position: sticky`,
 * so the contents sidebar scrolled away instead of pinning.
 *
 * This page has no marquee, and its only over-wide element (the comparison
 * tables) already scrolls inside its own box, so the wrapper goes back to
 * visible. Doubled selector to outrank .hp2.
 */
.sp.sp {
	overflow: visible;
}

.sp {
	/* The one colour this page introduces that the homepage palette has no
	   equivalent for: the closing band's cool grey. Declared as a token so it
	   is named in one place rather than inlined at each use. */
	--hp2-cta-bg: #E4E6E9;
}

/* The design sets its buttons a step larger than the homepage default. */
.sp.sp .hp2-btn {
	font-size: 13px;
}

/* ------------------------------------------------------------------ Banner */

.sp.sp .sp-banner {
	background: var(--hp2-mist);
	padding: clamp(40px, 6vw, 86px) 0 clamp(44px, 6vw, 92px);
}

.sp.sp .sp-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 clamp(18px, 2.2vw, 30px);
	padding: 0;
	list-style: none;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hp2-slate);
}
nav.sp-crumbs {
    padding-top: 70px;
}
.sp.sp .sp-crumbs a {
	color: var(--hp2-graphite);
	text-decoration: none;
	border-bottom: 1px solid var(--hp2-silver);
	transition: color 240ms var(--hp2-ease), border-color 240ms var(--hp2-ease);
}

.sp.sp .sp-crumbs a:hover,
.sp.sp .sp-crumbs a:focus-visible {
	color: var(--hp2-ink);
	border-color: var(--hp2-ink);
}

.sp.sp .sp-crumbs [aria-current='page'] {
	color: var(--hp2-slate);
}

.sp.sp .sp-banner__title {
	margin: 0;

	/* The design sets its own H1 scale here, smaller than the homepage
	   .hp2-display it would otherwise inherit. */
	font-size: clamp(40px, 4.8vw, 72px);
	line-height: 0.96;

	/* No width cap: the design lets the headline run to the container edge and
	   break naturally. Capping it at ~20ch forced a third line. */
	max-width: none;
}

/* ------------------------------------------------------------- Key figures */

.sp.sp .sp-figures {
	background: var(--hp2-ink);
	color: var(--hp2-paper);
}

.sp.sp .sp-figures__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0 auto;
	padding-top: clamp(28px, 3.4vw, 46px);
	padding-bottom: clamp(28px, 3.4vw, 46px);
}

/* Hairlines between the figures only, so the row does not end in a stray
   rule against the container edge. */
.sp.sp .sp-figures__list > div + div {
	border-left: 1px solid var(--hp2-ink-border);
	padding-left: clamp(20px, 2.6vw, 38px);
}

.sp.sp .sp-figures__list > div + div ~ div {
	padding-left: clamp(20px, 2.6vw, 38px);
}

.sp.sp .sp-figures__list dd {
	margin: 0 0 12px;
	font-family: var(--hp2-serif);
	font-weight: 400;
	font-size: clamp(28px, 2.8vw, 36px);
	line-height: 1;
	color: var(--hp2-paper);
}

.sp.sp .sp-figures__list dt {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hp2-on-ink-label);
}

/* ------------------------------------------------- Body grid + sticky aside */

.sp.sp .sp-body {
	background: var(--hp2-bone);
	padding: var(--hp2-section-y) 0;
}

.sp.sp .sp-body__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(32px, 4.5vw, 62px);

	/* Deliberately NOT align-items: start. A sticky element can only travel
	   inside its own containing block, so the sidebar column has to span the
	   full row height; shrink-to-fit gives it zero travel and it just scrolls
	   away. The column stretches, the card inside it sticks. */
	align-items: stretch;
}

.sp.sp .sp-aside {
	/* The grid item is the sticky element's containing block. */
	height: 100%;
}

.sp.sp .sp-aside__inner {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: var(--hp2-24);
}

.sp.sp .sp-toc {
	background: var(--hp2-paper);
	border: 1px solid var(--hp2-hairline);
}

.sp.sp .sp-toc__title {
	margin: 0;
	padding: 18px 20px;
	border-bottom: 1px solid var(--hp2-hairline);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hp2-eyebrow);
}

.sp.sp .sp-toc__list {
	margin: 0;
	padding: 8px 0;
	list-style: none;

	/* The list is taller than most viewports once the sticky card below it is
	   accounted for; scrolling it keeps the CTA reachable. */
	max-height: min(52vh, 560px);
	overflow-y: auto;
}

.sp.sp .sp-toc__list a {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 10px;
	padding: 9px 20px;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 500;
	color: var(--hp2-text-muted);
	text-decoration: none;
	border-left: 2px solid transparent;
	transition: background 200ms var(--hp2-ease), color 200ms var(--hp2-ease);
}

.sp.sp .sp-toc__list a:hover,
.sp.sp .sp-toc__list a:focus-visible {
	background: var(--hp2-bone);
	color: var(--hp2-ink);
}

/* Set by service-page.js as the reader moves through the page. */
.sp.sp .sp-toc__list a[aria-current='true'] {
	background: var(--hp2-bone);
	border-left-color: var(--hp2-ink);
	color: var(--hp2-ink);
	font-weight: 500;
}

.sp.sp .sp-toc__num {
	font-size: 11px;
	letter-spacing: 0.12em;
	color: var(--hp2-slate);
	padding-top: 2px;
}

.sp.sp .sp-aside__cta {
	background: var(--hp2-ink);
	color: var(--hp2-paper);
	padding: 24px 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sp.sp .sp-aside__heading {
	margin: 0;
	font-family: var(--hp2-serif);
	font-size: 25px;
	line-height: 1.15;
}

.sp.sp .sp-aside__body {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--hp2-on-ink);
}

/* -------------------------------------------------------- Section scaffolding */

.sp.sp .sp-main {
	display: flex;
	flex-direction: column;
}

/*
 * The design rules every section off from the one above with a hairline and
 * equal vertical padding, which is what gives the long page its rhythm. Spacing
 * lives here rather than as a flex gap so the rule sits midway between
 * sections. scroll-margin keeps an anchor jump clear of the sticky header.
 */
.sp.sp .sp-section {
	border-top: 1px solid var(--hp2-silver);
	padding: clamp(64px, 6vw, 88px) 0;
	scroll-margin-top: 96px;
}

/* The first section has nothing above it to be separated from. */
.sp.sp .sp-section:first-child {
	border-top: 0;
	padding-top: 0;
}

/* The ink Book panel is a card, not a ruled band: it carries its own edges. */
.sp.sp .sp-section--book {
	border-top: 0;
	padding: 12px 0 clamp(64px, 6vw, 88px);
}

.sp.sp .sp-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 var(--hp2-16);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--hp2-eyebrow);
}

.sp.sp .sp-eyebrow__num {
	font-variant-numeric: tabular-nums;
	color: var(--hp2-graphite);
}

.sp.sp .sp-eyebrow__sep {
	color: var(--hp2-ash);
}

.sp.sp .sp-lead {
	margin: 0 0 var(--hp2-24);
	font-family: var(--hp2-serif);
	font-weight: 300;
	font-size: clamp(26px, 2.4vw, 34px);
	line-height: 1.35;
	color: var(--hp2-text);
	text-wrap: pretty;
}

.sp.sp .sp-body-copy {
	margin: 0 0 var(--hp2-16);
	font-size: 17px;
	line-height: 1.8;
	font-weight: 300;
	color: var(--hp2-text-muted);
	max-width: 100%;
	text-wrap: pretty;
}

.sp.sp .sp-body-copy:last-child {
	margin-bottom: 0;
}

.sp.sp .sp-section h2 {
	margin: 0 0 var(--hp2-24);
}

.sp.sp .sp-serif-heading {
	margin: clamp(28px, 3vw, 44px) 0 var(--hp2-16);
	font-family: var(--hp2-serif);
	font-weight: 400;
	font-size: clamp(24px, 2.2vw, 30px);
	line-height: 1.25;
	color: var(--hp2-graphite);
}

/* The cost sub-section runs a size larger and darker. */
.sp.sp .sp-cost + .sp-serif-heading,
.sp.sp #cost .sp-serif-heading {
	font-size: clamp(26px, 2.4vw, 32px);
	line-height: 1.2;
	color: var(--hp2-text);
}

/* The in-house feature panel carries the largest serif heading on the page. */
.sp.sp .sp-feature__text .sp-serif-heading {
	font-size: clamp(28px, 2.9vw, 40px);
	line-height: 1.15;
	color: var(--hp2-text);
}

.sp.sp .sp-minilabel {
	margin: 0 0 var(--hp2-12);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hp2-text);
}

.sp.sp .sp-footnote {
	margin: var(--hp2-16) 0 0;
	font-size: 17px;
	line-height: 1.7;
	font-weight: 300;
	color: var(--hp2-text-muted);
	/* max-width: 68ch;  */
}

/* ------------------------------------------------------------- Quick facts */

.sp.sp .sp-facts {
	margin-top: clamp(28px, 3.4vw, 44px);
	background: var(--hp2-paper);
	border: 1px solid var(--hp2-hairline);
}

.sp.sp .sp-facts__title {
	margin: 0;
	padding: 20px 24px;
	border-bottom: 1px solid var(--hp2-hairline);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hp2-graphite);
}

.sp.sp .sp-facts__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
}

.sp.sp .sp-facts__item {
	padding: 20px 24px;
	border-top: 1px solid var(--hp2-hairline);
}

/* The first row sits directly under the title rule. */
.sp.sp .sp-facts__item:nth-child(-n + 2) {
	border-top: 0;
}

.sp.sp .sp-facts__item:nth-child(odd) {
	border-right: 1px solid var(--hp2-hairline);
}

.sp.sp .sp-facts__item dt {
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hp2-eyebrow);
}

.sp.sp .sp-facts__item dd {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	font-weight: 300;
	color: var(--hp2-graphite);
}

/* ---------------------------------------------------------------- Location */

.sp.sp .sp-location {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--hp2-24);
	margin-top: clamp(24px, 3vw, 40px);
}

.sp.sp .sp-location__areas {
	grid-column: 1 / -1;
}

.sp.sp .sp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp.sp .sp-chips li {
	padding: 7px 14px;
	background: var(--hp2-paper);
	border: 1px solid var(--hp2-hairline);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--hp2-graphite);
}

/* Financing options read as a row of bordered tags, in ink rather than the
   soft hairline the area chips use. */
.sp.sp .sp-chips--bordered li {
	background: transparent;
	border-color: var(--hp2-ink);
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hp2-text);
}

.sp.sp .sp-location__photo {
	margin: 0;
}

.sp.sp .sp-location__photo img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 240px;
	object-fit: cover;
}

.sp.sp .sp-location__card {
	background: var(--hp2-paper);
	border: 1px solid var(--hp2-hairline);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: var(--hp2-16);
}

.sp.sp .sp-location__address {
	margin: 0;
	font-family: var(--hp2-serif);
	font-size: 21px;
	line-height: 1.3;
	color: var(--hp2-text);
}

.sp.sp .sp-location__phone {
	font-size: 15px;
	letter-spacing: 0.12em;
	color: var(--hp2-graphite);
	text-decoration: none;
	border-bottom: 1px solid var(--hp2-silver);
	align-self: flex-start;
}

.sp.sp .sp-location__phone:hover,
.sp.sp .sp-location__phone:focus-visible {
	color: var(--hp2-ink);
	border-color: var(--hp2-ink);
}

.sp.sp .sp-hours {
	margin: 0;
	display: grid;
	gap: 6px;
}

.sp.sp .sp-hours > div {
	display: flex;
	justify-content: space-between;
	gap: var(--hp2-16);
	padding-bottom: 6px;
	border-bottom: 1px solid var(--hp2-hairline);
	font-size: 15px;
	line-height: 1.5;
}

.sp.sp .sp-hours dt {
	color: var(--hp2-text);
	font-weight: 500;
}

.sp.sp .sp-hours dd {
	margin: 0;
	color: var(--hp2-text-muted);
	text-align: right;
}

/* .hp2-link carries a full-width underline from the homepage, where it spans a
   section header. In this narrow card it should hug its own text. */
.sp.sp .sp-location__card .hp2-link {
	align-self: flex-start;
}

/* ------------------------------------------------------------------- Cases */

.sp.sp .sp-cases {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--hp2-16);
	margin: clamp(24px, 3vw, 40px) 0 0;
	padding: 0;
	list-style: none;
}

/* The compare widget is shared with the homepage, so its caption type is
   nudged to the design's sizes here rather than in homepage-2.css. */
.sp.sp .hp2-case__label {
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.sp.sp .hp2-case__note {
	font-size: 15px;
	font-weight: 300;
	color: var(--hp2-eyebrow);
}

.sp.sp .sp-cases__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: var(--hp2-16);
	margin-top: var(--hp2-24);
}

.sp.sp .sp-cases__foot .sp-minilabel {
	margin: 0;
	font-weight: 400;
	letter-spacing: 0.14em;
	color: var(--hp2-slate);
}

/* -------------------------------------------------------------------- Tabs */

.sp.sp .sp-tabs {
	margin-top: clamp(24px, 3vw, 40px);
}

.sp.sp .sp-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: var(--hp2-24);
}

.sp.sp .sp-tabs__tab {
	padding: 10px 15px;
	background: transparent;
	border: 1px solid var(--hp2-silver);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--hp2-text-muted);
	cursor: pointer;
	transition: background 220ms var(--hp2-ease), color 220ms var(--hp2-ease), border-color 220ms var(--hp2-ease);
}

.sp.sp .sp-tabs__tab:hover {
	border-color: var(--hp2-ink);
	color: var(--hp2-ink);
}

.sp.sp .sp-tabs__tab[aria-selected='true'] {
	background: var(--hp2-ink);
	border-color: var(--hp2-ink);
	color: var(--hp2-paper);
}

.sp.sp .sp-tabs__panel {
	background: var(--hp2-paper);
	border: 1px solid var(--hp2-hairline);
	padding: clamp(20px, 2.6vw, 32px);
}

/* A tabpanel is focusable for keyboard users; the default ring is kept but the
   panel should not look focused on mouse click. */
.sp.sp .sp-tabs__panel:focus:not(:focus-visible) {
	outline: none;
}

.sp.sp .sp-tabs__count {
	margin: 0 0 var(--hp2-12);
	font-size: 12px;
	letter-spacing: 0.2em;
	color: var(--hp2-slate);
	font-variant-numeric: tabular-nums;
}

.sp.sp .sp-tabs__heading {
	margin: 0 0 var(--hp2-12);
	font-family: var(--hp2-serif);
	font-weight: 400;
	font-size: clamp(24px, 2.3vw, 32px);
	line-height: 1.2;
	color: var(--hp2-text);
}

/* ----------------------------------------------------------------- Feature */

.sp.sp .sp-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 44px);
	align-items: center;
	margin-top: clamp(32px, 4vw, 56px);
}

.sp.sp .sp-feature__photo {
	margin: 0;
}

.sp.sp .sp-feature__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.sp.sp .sp-feature__text .sp-serif-heading {
	margin-top: 0;
}

.sp.sp .sp-quote {
	margin: var(--hp2-24) 0 0;
	padding-left: var(--hp2-16);
	border-left: 2px solid var(--hp2-ink);
}

.sp.sp .sp-quote blockquote {
	margin: 0 0 8px;
	font-family: var(--hp2-serif);
	font-style: italic;
	font-size: 28px;
	line-height: 1.4;
	color: var(--hp2-text);
}

.sp.sp .sp-quote figcaption {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hp2-text-muted);
}

/* ------------------------------------------------------- Can / cannot fix */

.sp.sp .sp-fix {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--hp2-16);
	margin: clamp(24px, 3vw, 40px) 0 0;
	padding: 0;
	list-style: none;
}

.sp.sp .sp-fix__item {
	background: var(--hp2-paper);
	border: 1px solid var(--hp2-hairline);
	padding: clamp(20px, 2.4vw, 28px);
	display: flex;
	flex-direction: column;
}

.sp.sp .sp-fix__title {
	margin: 0 0 var(--hp2-12);
	font-family: var(--hp2-serif);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.15;
	color: var(--hp2-text);
}

.sp.sp .sp-caveat {
	margin: var(--hp2-16) 0 0;
	padding-top: var(--hp2-12);
	border-top: 1px solid var(--hp2-hairline);
	font-size: 15px;
	line-height: 1.65;
	font-weight: 400;
	color: var(--hp2-text-muted);
}

.sp.sp .sp-caveat__label {
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hp2-graphite);
}

.sp.sp .sp-caveat__label::after {
	content: ' \00b7';
}

/* --------------------------------------------------------------- Candidacy */

.sp.sp .sp-candidate {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--hp2-16);
	margin-top: clamp(24px, 3vw, 40px);
}

.sp.sp .sp-candidate__col {
	background: var(--hp2-paper);
	border: 1px solid var(--hp2-hairline);
	padding: clamp(20px, 2.4vw, 28px);
}

.sp.sp .sp-candidate .sp-minilabel {
	font-size: 15px;
}

.sp.sp .sp-candidate__col--yes {
	border-top: 2px solid var(--hp2-ink);
}

.sp.sp .sp-candidate__col--no {
	border-top: 2px solid var(--hp2-silver);
}

.sp.sp .sp-ticks {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--hp2-12);
}

.sp.sp .sp-ticks li {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 10px;
	font-size: 17px;
	line-height: 1.65;
	font-weight: 300;
	color: var(--hp2-graphite);
}

.sp.sp .sp-ticks__mark {
	color: var(--hp2-ink);
	font-size: 14px;
	line-height: 1.75;
}

.sp.sp .sp-ticks--dash .sp-ticks__mark {
	color: var(--hp2-ash);
}

/* ----------------------------------------------------------------- Process */

.sp.sp .sp-process__media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--hp2-16);
	margin-top: clamp(24px, 3vw, 40px);
}

.sp.sp .sp-process__media img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.sp.sp .sp-steps {
	margin: var(--hp2-24) 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--hp2-hairline);
}

.sp.sp .sp-steps__item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: var(--hp2-24);
	padding: var(--hp2-24) 0;
	border-bottom: 1px solid var(--hp2-hairline);
}

.sp.sp .sp-steps__num {
	font-family: var(--hp2-serif);
	font-size: 28px;
	line-height: 1;
	color: var(--hp2-ash);
	font-variant-numeric: tabular-nums;
}

.sp.sp .sp-steps__text {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sp.sp .sp-steps__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 16px;
}

.sp.sp .sp-steps__title {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hp2-text);
}

.sp.sp .sp-steps__meta {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	color: var(--hp2-eyebrow);
}

.sp.sp .sp-callout {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 22px;
	align-items: start;
	margin-top: var(--hp2-24);
	background: var(--hp2-paper);
	border: 1px solid var(--hp2-ink);
	padding: 26px 28px;
}

.sp.sp .sp-callout__label {
	margin: 0;
	padding: 7px 12px;
	background: var(--hp2-ink);
	color: var(--hp2-paper);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------- Types */

.sp.sp .sp-types {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
	margin: clamp(24px, 3vw, 40px) 0 clamp(32px, 4vw, 52px);
	padding: 0;
	list-style: none;
}

.sp.sp .sp-types__card {
	background: var(--hp2-paper);
	border: 1px solid var(--hp2-hairline);
	padding: 30px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* The recommended option, inverted to ink. */
.sp.sp .sp-types__card--ink {
	background: var(--hp2-ink);
	border-color: var(--hp2-ink);
	color: var(--hp2-paper);
}

/* A plain label, not a chip: the design has no box around it. */
.sp.sp .sp-types__badge {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hp2-eyebrow);
}

.sp.sp .sp-types__card--ink .sp-types__badge {
	color: var(--hp2-on-ink-legal);
}

.sp.sp .sp-types__title {
	margin: 0;
	font-family: var(--hp2-serif);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.15;
}

.sp.sp .sp-types__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 300;
	color: var(--hp2-text-muted);
}

/* Slightly heavier on ink, where light text on dark needs the extra weight to
   hold the same apparent density. */
.sp.sp .sp-types__card--ink .sp-types__text {
	font-weight: 400;
	color: var(--hp2-on-ink);
}

/* ------------------------------------------------------------------ Tables */

/* Wide tables scroll inside their own box rather than widening the page. */
.sp.sp .sp-tablewrap {
	overflow-x: auto;
	background: var(--hp2-paper);
	border: 1px solid var(--hp2-hairline);
}

.sp.sp .sp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 17px;
}

/* Forces the four-column comparison to scroll rather than crush its columns;
   the wrapper is a focusable scroll region so keyboard users can reach it. */
.sp.sp .sp-table--wide {
	min-width: 640px;
}

/* A caption rendered outside the scroll box, tied to the table by
   aria-labelledby. */
.sp.sp .sp-table__label {
	margin: 0 0 var(--hp2-12);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--hp2-text);
}

.sp.sp .sp-table__caption {
	caption-side: top;
	text-align: left;
	padding: 18px 26px;
	border-bottom: 1px solid var(--hp2-hairline);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--hp2-text);
}

.sp.sp .sp-table thead th {
	text-align: left;
	padding: 16px 20px;
	font-size: 13px;
	line-height: 1.55;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hp2-graphite);
}

/* The comparison table's header is an ink bar; the totals table keeps light
   grey labels instead. */
.sp.sp .sp-table--wide thead tr {
	background: var(--hp2-ink);
	color: var(--hp2-paper);
}

.sp.sp .sp-table--wide thead th {
	color: var(--hp2-paper);
}

.sp.sp .sp-table--totals thead th {
	padding: 14px 26px 6px;
	color: var(--hp2-eyebrow);
}

.sp.sp .sp-table--totals thead th:last-child {
	text-align: right;
}

/* Row headers are set in the serif, as the design does, so the leftmost column
   reads as a label rather than more table data. */
.sp.sp .sp-table tbody th {
	text-align: left;
	padding: 12px 20px;
	border-bottom: 1px solid var(--hp2-hairline);
	font-family: var(--hp2-serif);
	font-size: 21px;
	line-height: 1.2;
	font-weight: 400;
	color: var(--hp2-text);
	vertical-align: top;
}

.sp.sp .sp-table td {
	padding: 12px 20px;
	border-bottom: 1px solid var(--hp2-hairline);
	font-weight: 300;
	line-height: 1.2;
	color: var(--hp2-graphite);
	vertical-align: top;
}
.sp.sp .sp-table {
    margin-bottom: 0;
}
.sp.sp .sp-table tbody tr:last-child th,
.sp.sp .sp-table tbody tr:last-child td {
	border-bottom: 0;
}

/* Shaded rows: the treatment this page is about, and the typical tooth counts. */
.sp.sp .sp-table tbody tr.is-typical,
.sp.sp .sp-table tbody tr.is-subject {
	background: var(--hp2-bone);
}

.sp.sp .sp-table tbody tr.is-subject th {
	font-weight: 500;
	color: var(--hp2-ink);
}

/* Totals table: big serif counts on the left, right-aligned ranges. */
.sp.sp .sp-table--totals tbody th {
	padding: 16px 26px;
	border-bottom: 0;
	border-top: 1px solid var(--hp2-mist);
	font-size: 28px;
}

.sp.sp .sp-table--totals td {
	padding: 16px 26px;
	border-bottom: 0;
	border-top: 1px solid var(--hp2-mist);
	text-align: right;
	font-size: 17px;
	color: var(--hp2-text);
}

/* -------------------------------------------------------------------- Cost */

.sp.sp .sp-cost {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 40px;
	align-items: start;
	margin-top: clamp(24px, 3vw, 40px);
}

.sp.sp .sp-cost__intro {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.sp.sp .sp-cost__intro .sp-body-copy {
	margin: 0;
	max-width: none;
}

/* The replacement paragraph that closes the cost section. */
.sp.sp #cost .sp-serif-heading + .sp-body-copy {
	line-height: 1.75;
	color: var(--hp2-graphite);
}

/* Figure stacked above its label, the pair ruled off from the copy below. */
.sp.sp .sp-price {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--hp2-silver);
}

.sp.sp .sp-price__figure {
	margin: 0;

	/* Serif, not the condensed display face: the design sets prices in
	   Cormorant so the numerals read as editorial rather than as a banner. */
	font-family: var(--hp2-serif);
	font-weight: 400;
	font-size: clamp(48px, 4.6vw, 64px);
	line-height: 1;
	letter-spacing: normal;
	color: var(--hp2-ink);
}

.sp.sp .sp-price__note {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hp2-eyebrow);
}

.sp.sp .sp-cost__table {
	background: var(--hp2-paper);
	border: 1px solid var(--hp2-hairline);
}

/* The totals footnote belongs inside the table's box, under the last row. */
.sp.sp .sp-table__note {
	margin: 0;
	padding: 16px 26px;
	border-top: 1px solid var(--hp2-mist);
	font-size: 14px;
	line-height: 1.6;
	color: var(--hp2-slate);
}

/* -------------------------------------------------------------------- Meet */

.sp.sp .sp-meet {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 44px;
	align-items: center;
}

.sp.sp .sp-meet__photo {
	margin: 0;
}

.sp.sp .sp-meet__photo img {
	display: block;
	width: 100%;

	/* A tall fixed crop rather than a ratio: the portrait has to hold the
	   column's full height next to the text block beside it. object-position
	   keeps his face in frame as the column narrows. */
	height: clamp(420px, 38vw, 540px);
	object-fit: cover;
	object-position: 52% 20%;
	box-shadow: 0 34px 74px rgba(13, 13, 13, 0.22);
}

.sp.sp .sp-meet__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
}

/* The heading group now lives inside the text column, so its own margins
   would double up with the flex gap. */
.sp.sp .sp-meet__text .sp-eyebrow,
.sp.sp .sp-meet__text h2,
.sp.sp .sp-meet__text .sp-body-copy {
	margin: 0;
}
.sp.sp .sp-section {
    padding: clamp(64px, 6vw, 60px) 0;
}
.sp.sp .sp-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(20px, 3vw, 34px);
	margin: clamp(28px, 3.4vw, 44px) 0 0;
	padding-top: clamp(24px, 3vw, 36px);
	border-top: 1px solid var(--hp2-hairline);
	list-style: none;
}

.sp.sp .sp-logos img {
	display: block;
	height: 34px;
	width: auto;

	/* The credential marks are supplied in mixed colours; flattening them to
	   one grey keeps the row reading as a set rather than a sticker sheet. */
	filter: grayscale(1);
	opacity: 0.7;
}

/* ---------------------------------------------------------------- Aftercare */

.sp.sp .sp-care {
	margin: clamp(24px, 3vw, 40px) 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--hp2-hairline);
}

.sp.sp .sp-care li {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: var(--hp2-16);
	padding: var(--hp2-16) 0;
	border-bottom: 1px solid var(--hp2-hairline);
	font-size: 17px;
	line-height: 1.7;
	font-weight: 300;
	color: var(--hp2-graphite);
}

.sp.sp .sp-care__num {
	font-family: var(--hp2-serif);
	font-size: 20px;
	color: var(--hp2-ash);
	font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------- Book */

.sp.sp .sp-section--book {
	scroll-margin-top: 96px;
}

.sp.sp .sp-book {
	position: relative;
	overflow: hidden;
	background: var(--hp2-ink);
	color: var(--hp2-paper);
	padding: clamp(28px, 4vw, 56px);
}

.sp.sp .sp-book .sp-eyebrow {
	color: var(--hp2-eyebrow-on-ink);
}

.sp.sp .sp-book .sp-eyebrow__num {
	color: var(--hp2-on-ink-label);
}

.sp.sp .sp-book .sp-eyebrow__sep {
	color: var(--hp2-on-ink-muted);
}

.sp.sp .sp-book h2 {
	color: var(--hp2-paper);
}

.sp.sp .sp-book .sp-body-copy {
	font-weight: 400;
	color: var(--hp2-on-ink);
}

/* The closing line is set a notch tighter than the intro above the list. */
.sp.sp .sp-book__note {
	line-height: 1.7;
}

.sp.sp .sp-book .sp-ticks li {
	font-weight: 400;
	color: var(--hp2-paper);
}

.sp.sp .sp-book .sp-ticks__mark {
	color: var(--hp2-on-ink-muted);
}

/* The list sits between two paragraphs; without this the closing line reads as
   a fifth bullet. */
.sp.sp .sp-book .sp-ticks {
	margin: var(--hp2-16) 0 var(--hp2-24);
}

/* An outlined letterform bleeding off the bottom-right corner, per the design —
   not a filled low-opacity mark in the top corner. */
.sp.sp .sp-book__mark {
	position: absolute;
	right: -0.04em;
	bottom: -0.22em;
	margin: 0;
	font-family: var(--hp2-condensed);
	font-size: clamp(140px, 16vw, 230px);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

.sp.sp .sp-book__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hp2-24);
	margin-top: var(--hp2-24);
}

.sp.sp .sp-book__phone {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--hp2-on-ink-link);
	text-decoration: none;
	border-bottom: 1px solid var(--hp2-ink-border-strong);
}

.sp.sp .sp-book__phone:hover,
.sp.sp .sp-book__phone:focus-visible {
	color: var(--hp2-paper);
	border-color: var(--hp2-paper);
}

/* --------------------------------------------------------------------- FAQ */

.sp.sp .sp-faq__count {
	margin-bottom: var(--hp2-16);
	font-weight: 400;
	letter-spacing: 0.14em;
	color: var(--hp2-slate);
}

.sp.sp .sp-faq {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--hp2-hairline);
}

.sp.sp .sp-faq__item {
	border-bottom: 1px solid var(--hp2-hairline);
}

.sp.sp .sp-faq__item details {
	background: transparent;
}

.sp.sp .sp-faq__q {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 24px;
	gap: var(--hp2-16);
	align-items: baseline;
	padding: var(--hp2-16) 4px;
	cursor: pointer;
	list-style: none;
}

/* Hide the native disclosure triangle in both engines. */
.sp.sp .sp-faq__q::-webkit-details-marker {
	display: none;
}

.sp.sp .sp-faq__q::marker {
	content: '';
}

.sp.sp .sp-faq__num {
	font-size: 12px;
	letter-spacing: 0.14em;
	color: var(--hp2-slate);
	font-variant-numeric: tabular-nums;
}

/* An h3 inside <summary>, so the questions appear in the heading outline as
   the design has them. Resetting the heading's own margins and weight keeps it
   looking identical to the previous span. */
.sp.sp .sp-faq__text {
	margin: 0;
	font-family: var(--hp2-serif);
	font-weight: 400;
	font-size: clamp(20px, 1.9vw, 25px);
	line-height: 1.3;
	color: var(--hp2-text);
}

/* A plus that becomes a minus: drawn from borders so it needs no icon font. */
.sp.sp .sp-faq__icon {
	position: relative;
	width: 14px;
	height: 14px;
	justify-self: end;
	align-self: center;
}

.sp.sp .sp-faq__icon::before,
.sp.sp .sp-faq__icon::after {
	content: '';
	position: absolute;
	background: var(--hp2-graphite);
	transition: transform 240ms var(--hp2-ease), opacity 240ms var(--hp2-ease);
}

.sp.sp .sp-faq__icon::before {
	inset: 6px 0 auto 0;
	height: 1px;
}

.sp.sp .sp-faq__icon::after {
	inset: 0 6px auto 6px;
	width: 1px;
	height: 14px;
}

.sp.sp .sp-faq__item details[open] .sp-faq__icon::after {
	transform: rotate(90deg);
	opacity: 0;
}

.sp.sp .sp-faq__a {
	padding: 0 4px var(--hp2-24) calc(34px + var(--hp2-16));
}

/* --------------------------------------------------------------- Resources */

.sp.sp .sp-reslist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp.sp .sp-reslist li + li {
	border-top: 1px solid var(--hp2-hairline);
}

.sp.sp .sp-reslist a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--hp2-16);
	padding: 14px 4px;
	font-size: 17px;
	line-height: 1.5;
	font-weight: 300;
	color: var(--hp2-graphite);
	text-decoration: none;
	transition: color 220ms var(--hp2-ease), padding-left 220ms var(--hp2-ease);
}

.sp.sp .sp-reslist a:hover,
.sp.sp .sp-reslist a:focus-visible {
	color: var(--hp2-ink);
	padding-left: 10px;
}

.sp.sp .sp-reslist__arrow {
	flex: none;
	color: var(--hp2-ash);
}

.sp.sp .sp-reslist a:hover .sp-reslist__arrow {
	color: var(--hp2-ink);
}

/* --------------------------------------------------------------- Final CTA */

/*
 * A LIGHT band, not an ink one: the portrait sits in the right half and fades
 * in from the left behind the copy, which stays dark on #E4E6E9. Built as a
 * dimmed full-bleed overlay first, which inverted the whole section.
 */
.sp.sp .sp-final {
	position: relative;
	overflow: hidden;
	background: var(--hp2-cta-bg);
	color: var(--hp2-text);
	border-top: 1px solid var(--hp2-silver);
	padding: var(--hp2-section-y) 0;
}

/*
 * Height-driven: the box spans the band and derives its width from the photo's
 * own 3:4 ratio, so the figure reads at a natural size instead of being blown
 * up. The design assumed a wide banner asset (hero-banner-wide.png, not
 * supplied); ours is a portrait studio shot, and forcing it into the design's
 * 0.95/1 box at 62% made it swallow the headline.
 */
.sp.sp .sp-final__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	aspect-ratio: 0.75 / 1;
	max-width: 46%;
	overflow: hidden;
	pointer-events: none;
}

.sp.sp .sp-final__bg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 12%;

	/* Dissolves the photo's left edge into the flat background so there is no
	   hard seam behind the headline. A longer fade than the design's 24%,
	   because our portrait asset carries its subject nearer the centre. */
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
	mask-image: linear-gradient(90deg, transparent 0, #000 38%);
}

.sp.sp .sp-final__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 26px;

	/* Keeps the copy clear of the portrait on wide screens; full width once the
	   photo is hidden below 900px. */
	max-width: min(720px, 56%);
}

.sp.sp .sp-final h2 {
	margin: 0;
}

/* A step larger than the section eyebrows, and the darker grey the design
   uses over this light band. */
.sp.sp .sp-final .hp2-eyebrow {
	font-size: 15px;
	color: var(--hp2-eyebrow-hero);
}

/* Short rule between the headline and the copy. */
.sp.sp .sp-final__rule {
	width: 96px;
	height: 1px;
	background: var(--hp2-ink);
}

.sp.sp .sp-final .sp-body-copy,
.sp.sp .sp-final .sp-footnote {
	margin: 0;
}

.sp.sp .sp-final .sp-body-copy {
	color: var(--hp2-graphite);
}

.sp.sp .sp-final__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hp2-16);
	padding-top: 6px;
}

/* ============================================================== Responsive */

@media (max-width: 1100px) {
	/* The sidebar stops being a sidebar: the contents list moves above the
	   content as a plain collapsed list, and the CTA card follows the copy. */
	.sp.sp .sp-body__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sp.sp .sp-aside {
		order: -1;
	}

	.sp.sp .sp-aside__inner {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: start;
	}

	.sp.sp .sp-toc,
	.sp.sp .sp-aside__cta {
		flex: 1 1 320px;
	}

	.sp.sp .sp-toc__list {
		max-height: none;
		columns: 2;
	}

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

	.sp.sp .sp-types {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.sp.sp .sp-figures__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--hp2-24);
	}

	/* With two per row the vertical rules fall in the wrong places. */
	.sp.sp .sp-figures__list > div + div,
	.sp.sp .sp-figures__list > div + div ~ div {
		border-left: 0;
		padding-left: 0;
	}

	.sp.sp .sp-location,
	.sp.sp .sp-feature,
	.sp.sp .sp-fix,
	.sp.sp .sp-candidate,
	.sp.sp .sp-meet,
	.sp.sp .sp-process__media {
		grid-template-columns: minmax(0, 1fr);
	}

	.sp.sp .sp-facts__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sp.sp .sp-facts__item:nth-child(odd) {
		border-right: 0;
	}

	.sp.sp .sp-facts__item:nth-child(2) {
		border-top: 1px solid var(--hp2-hairline);
	}

	/* No room for the portrait beside the closing copy; the design drops it and
	   lets the text use the full width. */
	.sp.sp .sp-final__media {
		display: none;
	}

	.sp.sp .sp-final__inner {
		max-width: none;
	}
}

@media (max-width: 700px) {
	.sp.sp .sp-cases {
		grid-template-columns: minmax(0, 1fr);
	}

	.sp.sp .sp-toc__list {
		columns: 1;
	}

	.sp.sp .sp-steps__item {
		grid-template-columns: 36px minmax(0, 1fr);
		gap: var(--hp2-16);
	}

	.sp.sp .sp-faq__q {
		grid-template-columns: 28px minmax(0, 1fr) 20px;
		gap: var(--hp2-12);
	}

	.sp.sp .sp-faq__a {
		padding-left: calc(28px + var(--hp2-12));
	}

	/* Stacked comparison tables: each cell carries its column name, so the
	   header row can be dropped instead of scrolling four columns sideways. */
	.sp.sp .sp-table--wide thead {
		display: none;
	}

	.sp.sp .sp-table--wide,
	.sp.sp .sp-table--wide tbody,
	.sp.sp .sp-table--wide tr,
	.sp.sp .sp-table--wide th,
	.sp.sp .sp-table--wide td {
		display: block;
		width: auto;
	}

	/* Only for the stacked table: once its elements are display:block the
	   caption shrinks to its longest word. Scoped to --wide because forcing
	   display:block on a caption inside a real table drops caption-side and
	   renders it *below* the header row. */
	.sp.sp .sp-table--wide .sp-table__caption {
		display: block;
		width: 100%;
	}

	.sp.sp .sp-table--wide tbody tr {
		border-bottom: 1px solid var(--hp2-hairline-strong);
		padding: var(--hp2-8) 0;
	}

	.sp.sp .sp-table--wide tbody tr:last-child {
		border-bottom: 0;
	}

	.sp.sp .sp-table--wide tbody th {
		border-bottom: 0;
		padding-bottom: 4px;
		font-family: var(--hp2-serif);
		font-size: 20px;
	}

	.sp.sp .sp-table--wide td {
		border-bottom: 0;
		padding-top: 4px;
		padding-bottom: 4px;
	}

	.sp.sp .sp-table--wide td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		font-size: 11px;
		font-weight: 500;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: var(--hp2-slate);
	}
}

/* The callout copy is a grid cell beside the pill, so it carries the body
   style directly rather than borrowing .sp-body-copy's bottom margin. */
.sp.sp .sp-callout__body {
	margin: 0;
	font-size: 17px;
	line-height: 1.7;
	font-weight: 300;
	color: var(--hp2-graphite);
}
