/*
 * The classic layout's "centred" variant (OD-02 ticket 06; that spec's shared-code-needs.md S6).
 *
 * Loaded after classic.css, and only when bdental-core's `classic_variant` is "centred" (functions.php); every rule is
 * scoped under the body class core prints for it, so no other install carries a byte of it or changes by it.
 * The shape of a site moved as it is whose header keeps its logo inside the centred 980px grid and docks its menu
 * 80px from the window's right, whose phone menu is a centred list with dividers and a folded submenu, and whose
 * footer is a dark band with the contact details in a left column and the map in a right one. Sizes are measured off
 * that site (in px from 1240px wide, in --bdental-classic-u units of its 320px phone layout below), as classic.css's.
 *
 * Colours are role tokens only. Type: classic.css's text family and weights; --bdental-classic-weight-bold is the
 * weight the brand gives a bold run of its text face (700 without it).
 */

/* ---------------------------------------------------------------- Header: the phone layout first */

:root:has(> body.bdental-classic-centred) {
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 70 * var(--bdental-classic-u) + 12px);
}

.bdental-classic-centred .bdental-classic-header {
	height: calc(70 * var(--bdental-classic-u));
}

.bdental-classic-centred .bdental-classic-header__logo {
	top: calc(15 * var(--bdental-classic-u));
	left: calc(13 * var(--bdental-classic-u));
}

/* The logo box filled the way the moved site fills its own: the picture cropped about the centre ("fill"). A brand
   using this variant ships its logo on that picture's whole frame (margins included), so the same crop puts the ink
   where the site's is in every box; a logo cropped to its ink would lose its top and bottom edges here. */
.bdental-classic-centred .wp-block-site-logo.bdental-classic-header__logo img {
	width: calc(180 * var(--bdental-classic-u));
	height: calc(43 * var(--bdental-classic-u));
	object-fit: cover;
}

.bdental-classic-centred nav.bdental-classic-header__nav {
	top: calc(10 * var(--bdental-classic-u));
	right: calc(21 * var(--bdental-classic-u));
}

/* The three bars drawn 20 units wide, as the site's button draws them (core's icon draws its bars 14 of 24 wide). */
.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__responsive-container-open svg {
	width: calc(34.3 * var(--bdental-classic-u));
	height: calc(34.3 * var(--bdental-classic-u));
}

/* The close cross 13 units across, as the site's (core's cross spans 15 of its 24). */
.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__responsive-container-close svg {
	width: calc(21 * var(--bdental-classic-u));
	height: calc(21 * var(--bdental-classic-u));
}

/* The open menu: white, the items centred under one another, a divider under each top item. */
.bdental-classic-centred nav.bdental-classic-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open.is-menu-open {
	background-color: var(--wp--preset--color--page-background);
}

.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: calc(10 * var(--bdental-classic-u));
	right: calc(21 * var(--bdental-classic-u));
}

.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content.wp-block-navigation__responsive-container-content {
	align-items: center;
	padding: calc(80 * var(--bdental-classic-u)) 0 calc(40 * var(--bdental-classic-u));
}

.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: center;
	width: 100%;
}

.bdental-classic-centred .bdental-classic-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	position: relative;
	align-items: center;
	width: 100%;
	padding-bottom: calc(1.4 * var(--bdental-classic-u)); /* the site's rows are 43.4 units apart, its divider 1px */
	text-align: center;
}

.bdental-classic-centred .bdental-classic-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:not(:last-child)::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: calc(50% - 100 * var(--bdental-classic-u));
	width: calc(200 * var(--bdental-classic-u));
	height: 1px;
	background-color: var(--wp--preset--color--divider);
}

.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content {
	width: auto;
	padding: 0 calc(20 * var(--bdental-classic-u));
	font-size: calc(16 * var(--bdental-classic-u));
	line-height: calc(42 * var(--bdental-classic-u));
	letter-spacing: calc(2 * var(--bdental-classic-u));
	overflow: visible;
	white-space: nowrap;
}

/* The submenu's items: smaller, centred, wrapping inside 280 units, no dividers. */
.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__responsive-container.is-menu-open .has-child .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
	align-items: center;
	width: 100%;
	padding: 0;
}

.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	width: 100%;
	align-items: center;
}

.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content {
	width: auto;
	max-width: calc(280 * var(--bdental-classic-u));
	padding: calc(9.5 * var(--bdental-classic-u)) 0;
	font-size: calc(14.4 * var(--bdental-classic-u));
	line-height: calc(23 * var(--bdental-classic-u));
	white-space: normal;
}

/* The submenu is folded until its parent is opened (classic-centred.js adds the fold button; core keeps a submenu open
   inside its overlay). The button lies over the parent's label, which shows "+" folded and "-" open. No script, no
   button: nothing is folded. Outside the open overlay the button is not shown and core's own toggle works as before. */
.bdental-classic-centred .bdental-classic-header__nav .bdental-classic-fold {
	display: none;
}

.bdental-classic-centred .bdental-classic-header__nav .is-menu-open .bdental-classic-fold {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1;
	height: calc(42 * var(--bdental-classic-u));
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.bdental-classic-centred .bdental-classic-header__nav .is-menu-open .bdental-classic-fold:focus-visible {
	outline: 2px solid var(--wp--preset--color--focus-ring);
	outline-offset: -2px;
}

.bdental-classic-centred .bdental-classic-header__nav .is-menu-open .has-child:has(> .bdental-classic-fold[aria-expanded="false"]) > .wp-block-navigation__submenu-container {
	display: none;
}

.bdental-classic-centred .bdental-classic-header__nav .is-menu-open .has-child:has(> .bdental-classic-fold) > .wp-block-navigation-item__content::before {
	content: "+" / ""; /* drawn, not read: the fold button names the parent */
	display: inline-block;
	width: calc(36 * var(--bdental-classic-u));
	text-align: left;
}

.bdental-classic-centred .bdental-classic-header__nav .is-menu-open .has-child:has(> .bdental-classic-fold[aria-expanded="true"]) > .wp-block-navigation-item__content::before {
	content: "-" / "";
}

/* The page the visitor is on, in the phone menu, and the parent bdental-core marks as its section (aria-current="true",
   P-004 FR-052's navigation filter; core prints "page" only). */
.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content:is([aria-current="page"], [aria-current="true"]) {
	color: var(--wp--preset--color--nav-current-phone, var(--wp--preset--color--heading));
}

/* The current page in the bar and its dropdown, and its marked parent (OD-01 §11.2b and §17, OD-02 D57). */
.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation-item__content.wp-block-navigation-item__content:is([aria-current="page"], [aria-current="true"]) {
	color: var(--wp--preset--color--nav-current, var(--wp--preset--color--heading));
}

/* A second cue, so the current page is not told by colour alone (WCAG 1.4.1; OD-02 H10): a 2px underline in the
   label's own colour, in the bar, the dropdown and the phone menu. A hovered label changes colour only. */
.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation-item__content.wp-block-navigation-item__content:is([aria-current="page"], [aria-current="true"]) {
	text-decoration: underline;
	text-decoration-color: currentcolor;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

/* A group's head in a flat submenu (a menu item given this class), told apart from the items under it by weight,
   in the dropdown and the phone menu (OD-02 H16). */
.bdental-classic-centred .bdental-classic-header__nav .bdental-classic-group-head > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	font-weight: var(--bdental-classic-weight-bold, 700);
}

@media (min-width: 1240px) {
	:root:has(> body.bdental-classic-centred) {
		scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 121px + 12px);
	}

	.bdental-classic-centred .bdental-classic-header {
		height: 121px;
	}

	/* The logo inside the 980px grid (its box 260px wide, so its right edge is at 50% - 195px). */
	.bdental-classic-centred .bdental-classic-header__logo {
		top: 35px;
		left: calc(50% - 455px);
	}

	.bdental-classic-centred .wp-block-site-logo.bdental-classic-header__logo img {
		width: 260px;
		height: 64px;
	}

	/* An item marked phone-only shows in the open phone menu only, never in the bar. */
	.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .bdental-classic-phone-only {
		display: none;
	}

	/* The site's 246px, widened to its longest label: a label can outgrow it, and a label is never wrapped, cut or made
	   smaller (OD-02 D58, kept by D66). */
	.bdental-classic-centred .bdental-classic-header__nav .has-child .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
		width: max-content;
		min-width: 246px;
	}

	/* The dropdown's ground one step more opaque than classic.css's 90%: the current page and a hovered label are in the
	   hover colour (D57), which holds 4.5:1 only on a ground at least this light, whatever lies behind it (over black,
	   4.53:1 at 96% and 3.96:1 at 90%). Worked out from the blue of the one brand on this variant, and no gate sees this
	   ground: another brand on this variant, or a change to that blue, re-measures it (OD-02 D59, parked H15). */
	.bdental-classic-centred .bdental-classic-header__nav {
		--bdental-classic-overlay: color-mix(in srgb, var(--wp--preset--color--page-background) 96%, transparent);
	}
}

/* The menu never runs under the logo (OD-02 D54). The site docks its menu 80px from the window's right and lets the
   logo cover its first items; here every item shows, the bar starting no nearer than 24px after the logo's box, its gaps
   shrinking evenly from the site's 30px to make room, never below 12px. Its last label ends where the site's ends (95px
   from the window's right); where 12px gaps do not fit that way, the bar reaches further right, its last label up to
   24px from the window's edge. Unlike the rest of this file, the numbers below are not measured off the site but worked
   out from its menu as this variant draws it (eight labels in the case they are written in, 569.13px of text at 14px at
   the text weight 400; 559.97px at 300): with 12px gaps the row is 665.13px, 666px rounded up, which fits from 1026px of
   layout width, so the bar shows wherever this variant's wide header does, from 1240px, a 17px scrollbar included, and
   ends on the site's end there (that holds from 1168px). A menu with other labels, or the same labels at another weight,
   re-measures them; a longer one overflows to the right, never under the logo (OD-02 S11). */
@media (min-width: 1240px) {
	/* The room: from 24px right of the logo's box to 18px from the window's right (a last label ending 24px from the
	   edge, its item's box 6px past it). */
	.bdental-classic-centred nav.bdental-classic-header__nav {
		top: 40px;
		right: 18px;
		left: calc(50% - 171px);
	}

	.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) {
		flex: 1 1 auto;
	}

	/* The row: as wide as the room up to the site's right end (71px short of the room's), between 666px (12px gaps) and
	   781px (the site's row: its 30px gaps at the text weight 300, 28.6px at 400), its items spread evenly across it. It
	   ends at the site's right end while it fits there, else it starts at the room's left edge and ends as far right as
	   it needs. Each item's box reaches 6px past its label (half the narrowest gap). */
	.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
		flex: none;
		justify-content: space-between;
		width: clamp(666px, calc(100% - 71px), 781px);
		margin-right: clamp(0px, calc(100% - 666px), 71px);
		margin-left: auto;
	}

	.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		padding: 0 6px;
	}

	/* The dropdown keeps its place under its parent's label: 15px past the label's end, as built. */
	.bdental-classic-centred .bdental-classic-header__nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
		right: -9px;
	}
}

/* ---------------------------------------------------------------- Footer: the phone layout first */

.bdental-classic-centred .bdental-classic-footer--centred {
	padding: calc(10 * var(--bdental-classic-u)) 0 calc(18 * var(--bdental-classic-u));
	background-color: var(--wp--preset--color--dark-band);
	color: var(--wp--preset--color--dark-body);
	font-family: var(--bdental-classic-text);
	font-weight: var(--bdental-classic-text-weight);
}

.bdental-classic-centred .bdental-classic-footer--centred a {
	color: inherit;
}

/* Its focus ring is the dark-surface ring: focus-ring on dark-band is under 3:1. */
.bdental-classic-centred .bdental-classic-footer--centred a:focus-visible {
	outline-color: var(--wp--preset--color--dark-body);
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__form {
	margin: 0 calc(10 * var(--bdental-classic-u)) calc(10 * var(--bdental-classic-u));
}

/* OD-02 ticket 16 (S14): a clinic form's card sits 10 units inside the form's place, as the moved site's widget drew
   its box inside its frame. Its height is its fields' (od-improve-ui.md U3: the form asks for less than the widget did,
   and a fixed height left a blank above the button), so classic.css's card heights (another brand's widget, 957 units
   and 869px) are set aside too. */
.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__form.bdental-classic-form--card {
	min-height: 0;
	margin-inline: calc(20 * var(--bdental-classic-u));
}

/* A link in the white card (the notice line's): underlined, its words' colour, and the light-surface ring, not the
   dark band's white one above. */
.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-form--card a {
	text-decoration: underline;
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-form--card a:focus-visible {
	outline-color: var(--wp--preset--color--focus-ring);
}

.bdental-classic-centred .bdental-classic-footer__form-note {
	margin: 0;
	padding: 0 calc(20 * var(--bdental-classic-u));
	font-size: calc(15 * var(--bdental-classic-u));
	line-height: calc(18 * var(--bdental-classic-u));
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__columns {
	margin-top: calc(48 * var(--bdental-classic-u));
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__col--contact {
	position: relative;
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__heading {
	max-width: none;
	padding: 0;
	font-family: inherit;
	font-size: calc(28 * var(--bdental-classic-u));
	font-weight: inherit;
	line-height: calc(33 * var(--bdental-classic-u));
	color: inherit;
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-social {
	position: absolute;
	top: calc(33.4 * var(--bdental-classic-u));
	left: calc(235 * var(--bdental-classic-u));
	margin: 0;
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-social__icon {
	width: calc(39 * var(--bdental-classic-u));
	height: calc(39 * var(--bdental-classic-u));
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-social__disc {
	fill: var(--wp--preset--color--icon-on-dark, var(--wp--preset--color--icon));
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-social__mark {
	color: var(--wp--preset--color--dark-band);
}

.bdental-classic-centred .bdental-classic-lines {
	margin-top: calc(30 * var(--bdental-classic-u));
}

.bdental-classic-centred .bdental-classic-lines p {
	margin: 0;
}

.bdental-classic-centred .bdental-classic-lines a {
	text-decoration: none;
}

.bdental-classic-centred .bdental-classic-lines__phone {
	font-size: calc(21 * var(--bdental-classic-u));
	line-height: calc(25 * var(--bdental-classic-u));
}

.bdental-classic-centred .bdental-classic-lines__email {
	font-size: calc(19 * var(--bdental-classic-u));
	line-height: calc(23 * var(--bdental-classic-u));
}

.bdental-classic-centred .bdental-classic-lines .bdental-classic-lines__email a {
	text-decoration: underline;
}

.bdental-classic-centred .bdental-classic-lines__address {
	margin-top: calc(20.4 * var(--bdental-classic-u));
	font-size: calc(17 * var(--bdental-classic-u));
	line-height: calc(20.4 * var(--bdental-classic-u));
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-hours {
	margin-top: calc(9.6 * var(--bdental-classic-u));
	font-family: inherit;
	color: inherit;
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-hours__heading {
	font-size: calc(13 * var(--bdental-classic-u));
	font-weight: var(--bdental-classic-weight-bold, 700);
	line-height: calc(18.2 * var(--bdental-classic-u));
	letter-spacing: normal;
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-hours__row,
.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-hours__note {
	font-size: calc(18 * var(--bdental-classic-u));
	line-height: calc(18.2 * var(--bdental-classic-u));
	letter-spacing: normal;
}

/* The map, click to load (bdental-core's embed, N6), its box placed here. */
.bdental-classic-centred .bdental-classic-footer__map {
	width: calc(280 * var(--bdental-classic-u));
	height: calc(240 * var(--bdental-classic-u));
	margin-top: calc(25.8 * var(--bdental-classic-u));
}

/* Centred in a box 258 units wide, where the site wraps these two lines with its own face. */
.bdental-classic-centred .bdental-classic-footer__map-note {
	max-width: calc(258 * var(--bdental-classic-u));
	margin: calc(31.6 * var(--bdental-classic-u)) auto 0;
	font-size: calc(14 * var(--bdental-classic-u));
	line-height: calc(17 * var(--bdental-classic-u));
	text-align: center;
}

.bdental-classic-centred .bdental-classic-footer__map-note p {
	margin: 0;
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__documents {
	margin-top: calc(4.3 * var(--bdental-classic-u));
	font-family: inherit;
	line-height: calc(22.4 * var(--bdental-classic-u));
	text-align: center;
	color: inherit;
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__documents li + li {
	margin-top: calc(5 * var(--bdental-classic-u));
}

.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__copyright {
	margin: calc(24.7 * var(--bdental-classic-u)) 0 0;
	padding: 0 calc(21 * var(--bdental-classic-u));
	font-family: inherit;
	font-size: calc(10 * var(--bdental-classic-u));
	line-height: calc(16 * var(--bdental-classic-u));
	letter-spacing: calc(0.4 * var(--bdental-classic-u));
	color: inherit;
}

/* ---------------------------------------------------------------- Footer: the 980px grid */

@media (min-width: 1240px) {
	.bdental-classic-centred .bdental-classic-footer--centred {
		padding: 15px 0 61px;
	}

	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__form {
		width: 934px;
		margin: 0 0 20px 25px;
	}

	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__form.bdental-classic-form--card {
		width: 914px;
		margin-left: 35px;
	}

	.bdental-classic-centred .bdental-classic-footer__form-note {
		width: 906px;
		margin-left: 32px;
		padding: 0;
		font-size: 15px;
		line-height: 18px;
	}

	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__columns {
		grid-template-columns: 394px 528px;
		column-gap: 0;
		margin-top: 18px;
		padding: 0 0 0 32px;
	}

	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__heading {
		margin-top: 8px;
		font-size: 34px;
		line-height: 41px;
	}

	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-social {
		top: 31px;
		left: 321px;
	}

	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-social__icon {
		width: 39px;
		height: 39px;
	}

	.bdental-classic-centred .bdental-classic-lines {
		margin-top: 21px;
	}

	.bdental-classic-centred .bdental-classic-lines__phone {
		font-size: 30px;
		line-height: 36px;
	}

	.bdental-classic-centred .bdental-classic-lines__email {
		font-size: 24px;
		line-height: 28px;
	}

	.bdental-classic-centred .bdental-classic-lines__address {
		margin-top: 25.2px;
		font-size: 22px;
		line-height: 26.4px;
	}

	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-hours {
		margin-top: 32.4px;
	}

	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-hours__heading {
		font-size: 15px;
		line-height: 21px;
	}

	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-hours__row,
	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-hours__note {
		font-size: 21px;
		line-height: 21px;
	}

	.bdental-classic-centred .bdental-classic-footer__map {
		width: 528px;
		height: 331px;
		margin-top: 0;
	}

	/* One line each, as on the site, whose text box runs a little past the map. */
	.bdental-classic-centred .bdental-classic-footer__map-note {
		max-width: none;
		margin: 46px 0 0;
		font-size: 15px;
		line-height: 18px;
		text-align: left;
		white-space: nowrap;
	}

	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__base {
		justify-content: space-between;
		width: 922px;
		margin: 46px 0 0 32px;
	}

	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__copyright {
		flex: none;
		margin: 0;
		padding: 0;
		font-size: 14px;
		line-height: 22.4px;
		letter-spacing: 0.56px;
	}

	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__documents {
		gap: 40px;
		margin: 0;
		padding: 0;
	}

	.bdental-classic-centred .bdental-classic-footer--centred .bdental-classic-footer__documents li + li {
		margin-top: 0;
	}
}

/* ---------------------------------------------------------------- Footer form card in the flow rhythm (opt-in)

   OD-02 ticket 21 (S17): on a page whose content opts in to the flow layout (bdental-core centred-sections.css,
   `bdental-centred--flow`), the footer form card takes the rhythm too: one inner padding on every side (the flow's
   card padding: 20px below 1240px, the `md` spacing preset from 1240px) and its fields the `xs` preset apart. A page
   without a flow band keeps the card as above. The button stays at the card's foot (components.css places it from
   there), so the foot is the padding and the bottom reserve is the button and its 8 of air above the padding. */
.bdental-classic-centred:has(.bdental-centred--flow) .bdental-classic-footer--centred .bdental-classic-form--card {
	--bdental-classic-form-side: 20px;
	--bdental-classic-form-foot: 20px;
	padding-top: 20px;
}

.bdental-classic-centred:has(.bdental-centred--flow) .bdental-classic-footer--centred .bdental-classic-form--card .fluentform .ff-el-group:not(.ff_submit_btn_wrapper) {
	margin-bottom: var(--wp--preset--spacing--xs, 16px);
}

@media (min-width: 1240px) {
	.bdental-classic-centred:has(.bdental-centred--flow) .bdental-classic-footer--centred .bdental-classic-form--card {
		--bdental-classic-form-side: var(--wp--preset--spacing--md, 32px);
		--bdental-classic-form-foot: var(--wp--preset--spacing--md, 32px);
		padding-top: var(--wp--preset--spacing--md, 32px);
	}
}

/* ================================================================ Top bar frame (opt-in; od-home-v2, OD-02 S18)

   With bdental-core's `classic_frame` "bar" (read only with this variant), the classic parts render as
   `header-classic-bar` and `footer-classic-bar` and the body carries `bdental-classic-frame-bar`; every rule below is
   scoped under both body classes, so the frame as moved (above) is drawn exactly as before without it. The shape: a
   grey top bar of contact lines that scrolls away above a sticky white bar (the logo, the menu, a square register
   button); below 1240px the menu is the phone menu above behind a "Menu" button, and below 761px the register button
   and every top bar line but the phone are hidden; a dark footer of four columns (the logo with the contact lines,
   the opening hours, the quick links, Instagram) over a ruled base line. The layout's own numbers (its 1200px grid,
   gutters, bar heights, sizes) are set once here, as the flow layout's are; colours are role tokens with a fallback
   each, faces the brand's. Touch targets: from 1240px the design's sizes; below it every standalone link and button
   is at least 44px tall. */
.bdental-classic-centred.bdental-classic-frame-bar {
	--bdental-bar-wrap: 1200px;
	--bdental-bar-gutter: 20px;
	--bdental-bar-top: 44px;
	--bdental-bar-head: 68px;
	--bdental-bar-ink: var(--wp--preset--color--ink, var(--wp--preset--color--body));
	--bdental-bar-grey: var(--wp--preset--color--highlight-band);
	--bdental-bar-rule-soft: var(--wp--preset--color--rule-soft, var(--wp--preset--color--divider));
	--bdental-bar-blue: var(--wp--preset--color--button-blue, var(--wp--preset--color--button-primary-bg));
	--bdental-bar-blue-hover: var(--wp--preset--color--link-dark, var(--wp--preset--color--button-primary-hover));
	--bdental-bar-text: var(--wp--preset--font-family--body);
	--bdental-bar-display: var(--wp--preset--font-family--display, var(--wp--preset--font-family--body));
}

/* The bar sticks; the top bar above it scrolls away (the part sticks its top bar's height above the window's top). */
:root:has(> body.bdental-classic-centred.bdental-classic-frame-bar) {
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 68px + 12px);
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header-part {
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--bdental-bar-top) - 1px);
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header {
	height: auto;
	border-bottom: 1px solid var(--bdental-bar-rule-soft);
}

/* The top bar: one row, as tall as a touch target, its border inside the part's sticking offset. */
.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-topbar {
	box-sizing: content-box;
	height: var(--bdental-bar-top);
	border-bottom: 1px solid var(--bdental-bar-rule-soft);
	background-color: var(--bdental-bar-grey);
	color: var(--bdental-bar-ink);
	font-family: var(--bdental-bar-text);
	font-size: 14px;
	line-height: 1.4;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-topbar__items {
	display: flex;
	align-items: center;
	gap: 28px;
	box-sizing: border-box;
	max-width: var(--bdental-bar-wrap);
	height: 100%;
	margin: 0 auto;
	padding: 0 var(--bdental-bar-gutter);
	list-style: none;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-topbar__items > li {
	margin: 0;
	white-space: nowrap;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-topbar__items > li.bdental-classic-topbar__social {
	margin-left: auto;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-topbar a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--bdental-bar-top);
	color: inherit;
	text-decoration: none;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-topbar a:hover {
	text-decoration: underline;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-topbar__phone a {
	font-weight: 800;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-topbar__phone .bdental-classic-icon {
	color: var(--bdental-bar-blue);
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-icon {
	flex: none;
}

/* The bar: the logo, the menu (a "Menu" button below 1240px) and the register button. */
.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	box-sizing: border-box;
	max-width: var(--bdental-bar-wrap);
	min-height: var(--bdental-bar-head);
	margin: 0 auto;
	padding: 0 var(--bdental-bar-gutter);
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__logo {
	position: static;
	flex: none;
}

.bdental-classic-centred.bdental-classic-frame-bar .wp-block-site-logo.bdental-classic-header__logo img {
	width: auto;
	height: 48px;
	object-fit: contain;
}

/* Below 1240px the nav's left margin takes the room, so the menu button and the register button stand together at the
   right in the DOM's order (logo, menu, register; the register button is hidden below 761px), and focus never runs
   backwards. */
.bdental-classic-centred.bdental-classic-frame-bar nav.bdental-classic-header__nav {
	position: static;
	margin-left: auto;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__register {
	display: inline-flex;
	align-items: center;
	min-height: 50px;
	margin: 0;
	padding: 0 24px;
	border-radius: 0;
	background-color: var(--bdental-bar-blue);
	color: var(--wp--preset--color--button-primary-fg);
	font-family: var(--bdental-bar-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__register:hover {
	background-color: var(--bdental-bar-blue-hover);
	color: var(--wp--preset--color--button-primary-fg);
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__register:focus-visible {
	outline: 2px solid var(--wp--preset--color--focus-ring);
	outline-offset: 2px;
}

/* The menu button and the open menu's close button: square, outlined in ink, core's own words "Menu" and "Close" (the
   part sets the navigation's `hasIcon` off) after three drawn bars or a drawn cross (decorative). */
@media (max-width: 1239px) {
	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__nav .wp-block-navigation__responsive-container-open,
	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		width: auto;
		height: auto;
		min-height: 44px;
		padding: 0 14px;
		border: 2px solid var(--bdental-bar-ink);
		border-radius: 0;
		background-color: var(--wp--preset--color--page-background);
		color: var(--bdental-bar-ink);
		font-family: var(--bdental-bar-text);
		font-size: 18px;
		font-weight: 700;
		line-height: 1;
	}

	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__nav .wp-block-navigation__responsive-container-open::before {
		content: "";
		flex: none;
		width: 20px;
		height: 14px;
		background: linear-gradient(currentcolor 0 0) top / 100% 2px no-repeat, linear-gradient(currentcolor 0 0) center / 100% 2px no-repeat, linear-gradient(currentcolor 0 0) bottom / 100% 2px no-repeat;
	}

	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		top: 12px;
		right: var(--bdental-bar-gutter);
	}

	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close::before {
		content: "";
		flex: none;
		width: 16px;
		height: 16px;
		background: linear-gradient(45deg, transparent calc(50% - 1px), currentcolor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(-45deg, transparent calc(50% - 1px), currentcolor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
	}

	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__nav .wp-block-navigation__responsive-container-open:focus-visible,
	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__nav .wp-block-navigation__responsive-container-close:focus-visible {
		outline: 2px solid var(--wp--preset--color--focus-ring);
		outline-offset: 2px;
	}
}

/* Under 360px the logo, the gap and the menu button do not fit at 48px: the logo 40px tall. */
@media (max-width: 359px) {
	.bdental-classic-centred.bdental-classic-frame-bar .wp-block-site-logo.bdental-classic-header__logo img {
		height: 40px;
	}
}

@media (max-width: 760px) {
	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-topbar__items > li:not(.bdental-classic-topbar__phone),
	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__register {
		display: none;
	}
}

@media (min-width: 761px) {
	.bdental-classic-centred.bdental-classic-frame-bar {
		--bdental-bar-gutter: 32px;
		--bdental-bar-head: 86px;
	}

	:root:has(> body.bdental-classic-centred.bdental-classic-frame-bar) {
		scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 86px + 12px);
	}
}

/* Between the phone and 1024px the top bar keeps the phone, the address and Instagram. */
@media (min-width: 761px) and (max-width: 1023px) {
	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-topbar__hours {
		display: none;
	}
}

@media (min-width: 1240px) {
	/* The menu bar between the logo and the button, in ink at 15px and 600, 28px apart; the current page in the menu's
	   current colour with the variant's 2px underline, 8px under the words. Every rule of the frame as moved that
	   places the bar in the window (its right dock, its clamped row) is set aside. */
	.bdental-classic-centred.bdental-classic-frame-bar nav.bdental-classic-header__nav {
		top: auto;
		right: auto;
		left: auto;
		margin-left: 0;
	}

	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
		justify-content: flex-start;
		gap: 28px;
		width: auto;
		margin: 0;
	}

	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		padding: 0;
		color: var(--bdental-bar-ink);
		font-family: var(--bdental-bar-text);
		font-size: 15px;
		font-weight: 600;
		line-height: 44px;
	}

	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__nav .wp-block-navigation__container > .wp-block-navigation-item > a.wp-block-navigation-item__content:hover,
	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:is([aria-current="page"], [aria-current="true"]) {
		color: var(--wp--preset--color--nav-current, var(--wp--preset--color--heading));
	}

	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:is([aria-current="page"], [aria-current="true"]) {
		text-underline-offset: 8px;
	}

	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-header__nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
		right: auto;
		left: -12px;
	}
}

/* ---------------------------------------------------------------- Top bar frame: the footer */

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-footer--bar {
	padding: 0;
	background-color: var(--wp--preset--color--band-ink, var(--wp--preset--color--dark-band));
	color: var(--wp--preset--color--text-on-ink, var(--wp--preset--color--dark-body));
	font-family: var(--bdental-bar-text);
	font-size: 15px;
	line-height: 1.6;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 44px;
	box-sizing: border-box;
	max-width: var(--bdental-bar-wrap);
	margin: 0 auto;
	padding: 60px var(--bdental-bar-gutter) 28px;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__col--contact {
	gap: 14px;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__logo {
	display: block;
	width: auto;
	height: 44px;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__heading {
	color: var(--wp--preset--color--dark-body);
	font-family: var(--bdental-bar-display);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-footer--bar a {
	color: var(--wp--preset--color--dark-body);
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__reach a:first-child {
	font-weight: 800;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__links a,
.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__follow a {
	text-decoration: none;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__links a:hover,
.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__follow a:hover {
	text-decoration: underline;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__follow a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Its focus ring is white: focus-ring on the ink band is 3.17:1, and white is the dark bands' ring. */
.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-footer--bar a:focus-visible {
	outline: 2px solid var(--wp--preset--color--dark-body);
	outline-offset: 2px;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--rule-on-ink, var(--wp--preset--color--divider));
	font-size: 14px;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-footer--bar .bdental-classic-footer__copyright,
.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-footer--bar .bdental-classic-footer__documents {
	order: 0;
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: normal;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-footer--bar .bdental-classic-footer__documents {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-footer--bar .bdental-classic-footer__documents a {
	text-decoration: underline;
}

/* Below the menu bar's width, every standalone link a touch target. */
@media (max-width: 1239px) {
	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__links {
		gap: 0;
	}

	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__links a,
	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__follow a,
	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__reach a,
	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-footer--bar .bdental-classic-footer__documents a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

@media (min-width: 761px) {
	.bdental-classic-centred.bdental-classic-frame-bar .bdental-classic-bar-footer__columns {
		grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
		gap: 40px;
	}
}
