/*
 * The classic layout's ruled sections (od-home-v2; OD-02 `shared-code-needs.md` S18).
 *
 * Bands for a page on the classic template whose content opts in band by band with `bdental-ruled`: a calm, square,
 * ruled layout of white and light-grey bands with one dark band, lists divided by lines, headings in the display face
 * and text in the text face. Loaded only on a classic page whose own content names `bdental-ruled`
 * (`bdental_classic_enqueue_ruled_sections()`), so a page or an install that names none loads none of it, and every
 * rule is scoped under `.bdental-ruled`. Nothing here reads the centred variant's measured places.
 *
 * The pieces, each a class the content writes:
 * - `.bdental-ruled`: a band. Modifiers: `--sec` (the band's padding), `--grey`, `--slate` (the dark band, white and
 *   light text), `--rule-top`, `--rule-bottom`. `__wrap`: the 1200px grid with its gutters.
 * - `-hero`: a full-width photograph (`__image`) with a white panel over it (`__in`, `__panel`); on the phone the
 *   photograph above and the panel under it. `-award`: a small picture beside two lines.
 * - `-kick` (a small line with a rule before it), `-lead`, `-strong`, `-buttons` with `-button` (`--outline`,
 *   `--white`), `-more` (a text link with its arrow).
 * - `-routes`: a row of three linked cards divided by lines. `-head`: a heading block with an optional button.
 * - `-rows`: two columns of linked rows divided by lines (`-row`), and `-aside`, a grey box under them.
 * - `-split` (`--even`): two columns. `-points`: a grid of short points under a rule. `-figure`: a centred picture.
 * - team-grid's `grid` cards inside a band; the reviews panel (`-reviews`); `-emr`, rows divided by lines on the dark
 *   band; `-hours`, a ruled table of days; `-map`, the clinic map's box; `-form`, a clinic form's box.
 * - An inner page (od-pages-v2, S19): `--head` and `--head-text` (the header band), `-pagehead` (`--text`, `__text`,
 *   `__image`); `-body` (`--side-only`, `__main`), `-prose` (the page's own words; `__picture`, `--wide`), `-toc`
 *   ("On this page"), `-side` (the side box, `__phone`); `-close` (the closing band's row); `-table-wrap` and `-table`
 *   (`__fee`, `__note`), a fee table; `-form--panel`; `-list`, a ruled list; `-more--back`; `-figure__link`.
 * - A registration page (od-register-ui, S23): `-steps`, a strip of numbered steps; inside a form, `-form__intro` with
 *   `-form__required` and `-form__star`, `-form__section` with `-form__heading`, `-form__row` (`--title`), `-form__send`,
 *   `-form__consent` (`__consent-title`, inside `-form__consent-group`).
 *
 * The numbers are the layout's own (structure, as the flow layout's are): the grid, gutters and band padding, the type
 * sizes (h1 50px, h2 38px, body 18px; on the phone h1 34px, h2 28px; an inner page's own h2 28px, 24px on the
 * phone), from the approved design. Colours are role tokens, each with a fallback to a platform role, so a brand without the design's roles still reads; faces are the brand's
 * display and body families. Square corners throughout. The phone layout is below 761px.
 */

.bdental-ruled {
	--bdental-ruled-gutter: 32px;
	--bdental-ruled-sec: 80px;
	--bdental-ruled-ink: var(--wp--preset--color--ink, var(--wp--preset--color--body));
	--bdental-ruled-text: var(--wp--preset--color--ink-soft, var(--wp--preset--color--body));
	--bdental-ruled-muted: var(--wp--preset--color--text-muted, var(--wp--preset--color--body-secondary));
	--bdental-ruled-rule: var(--wp--preset--color--rule, var(--wp--preset--color--divider));
	--bdental-ruled-rule-soft: var(--wp--preset--color--rule-soft, var(--wp--preset--color--divider));
	--bdental-ruled-blue: var(--wp--preset--color--button-blue, var(--wp--preset--color--button-primary-bg));
	--bdental-ruled-link: var(--wp--preset--color--link-dark, var(--wp--preset--color--link));
	--bdental-ruled-link-hover: var(--wp--preset--color--link-dark-hover, var(--wp--preset--color--link));
	--bdental-ruled-white: var(--wp--preset--color--page-background);
	box-sizing: border-box;
	background-color: var(--bdental-ruled-white);
	color: var(--bdental-ruled-text);
	font-family: var(--wp--preset--font-family--body);
	font-size: 18px;
	line-height: 1.6;
}

.bdental-ruled *,
.bdental-ruled *::before,
.bdental-ruled *::after {
	box-sizing: border-box;
}

.bdental-classic-main .wp-block-post-content > .bdental-ruled {
	margin-block: 0;
}

.bdental-ruled :is(h1, h2, h3) {
	margin: 0;
	color: var(--bdental-ruled-ink);
	font-family: var(--wp--preset--font-family--display, var(--wp--preset--font-family--body));
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
}

.bdental-ruled h1 {
	font-size: 50px;
	letter-spacing: -0.015em;
}

.bdental-ruled h2 {
	font-size: 38px;
}

.bdental-ruled h3 {
	font-size: 20px;
}

.bdental-ruled :is(p, figure, ul, dl) {
	margin: 0;
}

.bdental-ruled p {
	color: var(--bdental-ruled-muted);
}

.bdental-ruled a {
	color: var(--bdental-ruled-link);
}

.bdental-ruled a:hover {
	color: var(--bdental-ruled-link-hover);
}

/* The ring, at a weight above structure.css's `:root a:focus-visible`, which loads later (as centred-sections.css's). */
.bdental-classic-main .bdental-ruled :is(a, button):focus-visible {
	outline: 2px solid var(--wp--preset--color--focus-ring);
	outline-offset: 2px;
}

/* Every picture but a click-to-load embed's still, which its own box sizes; at one class of weight, so a piece's own
   picture rule (the hero's, the award's) wins. */
.bdental-ruled :where(img:not(.bdental-embed__still)) {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 0;
}

/* ---------------------------------------------------------------- The band */

.bdental-ruled__wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--bdental-ruled-gutter);
}

.bdental-ruled--sec {
	padding-block: var(--bdental-ruled-sec);
}

/* A padded band's grid is 1200px of content, its gutters outside it (the header, the hero and the routes keep 1200px
   with the gutters inside), as the approved design draws them. */
.bdental-ruled--sec > .bdental-ruled__wrap {
	max-width: calc(1200px + 2 * var(--bdental-ruled-gutter));
}

.bdental-ruled--grey {
	background-color: var(--wp--preset--color--highlight-band);
}

.bdental-ruled--rule-top {
	border-top: 1px solid var(--bdental-ruled-rule);
}

.bdental-ruled--rule-bottom {
	border-bottom: 1px solid var(--bdental-ruled-rule);
}

/* The dark band: white headings, kick and links, its words in their own light colour, its rules and focus ring its own. */
.bdental-ruled--slate {
	--bdental-ruled-ink: var(--wp--preset--color--dark-body);
	--bdental-ruled-muted: var(--wp--preset--color--text-on-slate, var(--wp--preset--color--dark-body));
	--bdental-ruled-link: var(--wp--preset--color--dark-body);
	--bdental-ruled-link-hover: var(--wp--preset--color--dark-body);
	--bdental-ruled-rule: var(--wp--preset--color--rule-on-slate, var(--wp--preset--color--dark-body));
	background-color: var(--wp--preset--color--band-slate, var(--wp--preset--color--dark-band));
	color: var(--bdental-ruled-muted);
}

.bdental-ruled--slate a {
	font-weight: 800;
}

/* On the dark band the white ring: focus-ring is 2.09:1 there (the token file's anti-pattern). */
.bdental-classic-main .bdental-ruled--slate :is(a, button):focus-visible {
	outline-color: var(--wp--preset--color--dark-body);
}

/* ---------------------------------------------------------------- Small pieces */

.bdental-ruled-kick {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--bdental-ruled-link);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.6;
}

.bdental-ruled .bdental-ruled-kick {
	color: var(--bdental-ruled-link);
}

.bdental-ruled-kick::before {
	content: "";
	flex: none;
	width: 28px;
	height: 2px;
	background-color: var(--bdental-ruled-blue);
}

.bdental-ruled .bdental-ruled-lead {
	font-size: 20px;
}

.bdental-ruled .bdental-ruled-strong {
	color: var(--bdental-ruled-ink);
	font-weight: 800;
}

.bdental-ruled-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.bdental-ruled .bdental-ruled-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 24px;
	border: 2px solid var(--bdental-ruled-blue);
	border-radius: 0;
	background-color: var(--bdental-ruled-blue);
	color: var(--wp--preset--color--button-primary-fg);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.bdental-ruled .bdental-ruled-button:hover {
	border-color: var(--wp--preset--color--link-dark, var(--wp--preset--color--button-primary-hover));
	background-color: var(--wp--preset--color--link-dark, var(--wp--preset--color--button-primary-hover));
	color: var(--wp--preset--color--button-primary-fg);
}

.bdental-ruled .bdental-ruled-button--outline {
	border-color: var(--bdental-ruled-ink);
	background-color: transparent;
	color: var(--bdental-ruled-ink);
}

.bdental-ruled .bdental-ruled-button--outline:hover {
	border-color: var(--bdental-ruled-ink);
	background-color: var(--bdental-ruled-ink);
	color: var(--bdental-ruled-white);
}

.bdental-ruled .bdental-ruled-button--white {
	align-self: flex-start;
	border-color: var(--bdental-ruled-white);
	background-color: var(--bdental-ruled-white);
	color: var(--wp--preset--color--ink, var(--wp--preset--color--body));
	font-weight: 700;
}

.bdental-ruled .bdental-ruled-button--white:hover {
	border-color: var(--wp--preset--color--button-white-hover, var(--bdental-ruled-white));
	background-color: var(--wp--preset--color--button-white-hover, var(--bdental-ruled-white));
	color: var(--wp--preset--color--ink, var(--wp--preset--color--body));
}

.bdental-ruled .bdental-ruled-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--bdental-ruled-link);
	font-weight: 700;
	text-decoration: none;
}

.bdental-ruled a.bdental-ruled-more:hover {
	text-decoration: underline;
}

/* A text link's arrow, drawn, not read. */
.bdental-ruled-more::after,
.bdental-ruled-row::after {
	content: "\2192" / "";
}

/* ---------------------------------------------------------------- Hero */

.bdental-ruled-hero {
	display: grid;
	grid-template-areas: "hero";
}

.bdental-ruled .bdental-ruled-hero__image {
	grid-area: hero;
	width: 100%;
	max-width: none;
	height: 600px;
	object-fit: cover;
}

.bdental-ruled-hero__in {
	grid-area: hero;
	align-self: center;
	width: 100%;
}

.bdental-ruled-hero__panel {
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: 580px;
	padding: 48px;
	border-top: 5px solid var(--bdental-ruled-blue);
	background-color: var(--bdental-ruled-white);
}

.bdental-ruled-award {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-top: 18px;
	border-top: 1px solid var(--bdental-ruled-rule-soft);
}

.bdental-ruled .bdental-ruled-award img {
	flex: none;
	width: 38px;
	height: 56px;
	object-fit: cover;
}

.bdental-ruled .bdental-ruled-award p {
	font-size: 15px;
	line-height: 1.4;
}

.bdental-ruled-award strong {
	color: var(--bdental-ruled-ink);
}

/* ---------------------------------------------------------------- Three routes */

.bdental-ruled-routes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* A route, and a registration page's step (`-steps`, below), which takes the routes' columns and lines. */
.bdental-ruled .bdental-ruled-routes > a,
.bdental-ruled .bdental-ruled-steps > li {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 32px 32px 32px 0;
	color: inherit;
	text-decoration: none;
}

.bdental-ruled .bdental-ruled-routes > a + a,
.bdental-ruled .bdental-ruled-steps > li + li {
	padding-left: 32px;
	border-left: 1px solid var(--bdental-ruled-rule);
}

.bdental-ruled-routes__label {
	color: var(--bdental-ruled-link);
	font-size: 14px;
	font-weight: 800;
}

/* A route's title is an h2 (it follows the hero's h1), at a sub-heading's size. */
.bdental-ruled .bdental-ruled-routes :is(h2, h3) {
	font-size: 21px;
}

/* Blue words on white or grey are link-dark (the button blue is under 4.5:1 on the grey). */
.bdental-ruled .bdental-ruled-routes > a:hover :is(h2, h3),
.bdental-ruled .bdental-ruled-rows a:hover h3 {
	color: var(--bdental-ruled-link);
}

.bdental-ruled-routes .bdental-ruled-more {
	min-height: 0;
}

/* ---------------------------------------------------------------- A heading block */

.bdental-ruled-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.bdental-ruled-head__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 660px;
}

/* ---------------------------------------------------------------- Ruled rows */

.bdental-ruled-rows {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 56px;
}

.bdental-ruled .bdental-ruled-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	border-top: 1px solid var(--bdental-ruled-rule);
	color: inherit;
	text-decoration: none;
}

.bdental-ruled-row:last-child {
	border-bottom: 1px solid var(--bdental-ruled-rule);
}

.bdental-ruled-row__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bdental-ruled-row::after {
	color: var(--bdental-ruled-blue);
	font-size: 22px;
}

.bdental-ruled-aside {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	margin-top: 40px;
	padding: 28px 32px;
	background-color: var(--wp--preset--color--highlight-band);
}

.bdental-ruled-aside__text {
	display: flex;
	flex: 1 1 520px;
	flex-direction: column;
	gap: 6px;
}

.bdental-ruled .bdental-ruled-aside h3 {
	font-size: 19px;
}

/* ---------------------------------------------------------------- Two columns, points, a figure */

.bdental-ruled-split {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: center;
	gap: 72px;
}

.bdental-ruled-split--even {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
}

.bdental-ruled-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
}

.bdental-ruled-stack--tight {
	gap: 4px;
}

.bdental-ruled-points {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 40px;
	align-self: stretch;
	margin-top: 8px;
}

.bdental-ruled-points > div {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 16px;
	border-top: 2px solid var(--bdental-ruled-ink);
}

.bdental-ruled .bdental-ruled-points h3 {
	font-size: 18px;
}

.bdental-ruled .bdental-ruled-figure {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bdental-ruled .bdental-ruled-figure img {
	align-self: center;
	width: 100%;
	max-width: 360px;
}

.bdental-ruled .bdental-ruled-figure figcaption {
	color: var(--bdental-ruled-muted);
	font-size: 15px;
	text-align: center;
}

/* ---------------------------------------------------------------- Team cards (team-grid's `grid` presentation) */

.bdental-ruled .bdental-team-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	padding: 0;
	font-size: 15px;
}

.bdental-ruled .bdental-team-grid__member {
	gap: 10px;
	height: auto;
	border-radius: 0;
	box-shadow: none;
	background: none;
	text-align: left;
}

.bdental-ruled .bdental-team-grid__photo img {
	aspect-ratio: 3 / 4;
	border-radius: 0;
}

.bdental-ruled .bdental-team-grid__plate {
	align-items: flex-start;
	padding: 0;
	background: none;
}

.bdental-ruled .bdental-team-grid__name {
	margin: 0;
	color: var(--bdental-ruled-ink);
	font-family: var(--wp--preset--font-family--display, var(--wp--preset--font-family--body));
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
}

.bdental-ruled .bdental-team-grid :is(.bdental-team-grid__role, .bdental-team-grid__gdc) {
	margin: 0;
	color: var(--bdental-ruled-muted);
	font-size: 15px;
	line-height: 1.4;
}

.bdental-ruled .bdental-team-grid .bdental-team-grid__name + * {
	margin-top: 10px;
}

/* ---------------------------------------------------------------- Reviews panel (`[bdental_embed variant="reviews"]`) */

.bdental-ruled .bdental-ruled-reviews {
	width: 100%;
	height: 640px;
}

/* ---------------------------------------------------------------- Rows on the dark band */

.bdental-ruled-emr {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 0;
	border-top: 1px solid var(--bdental-ruled-rule);
}

.bdental-ruled-emr:last-child {
	border-bottom: 1px solid var(--bdental-ruled-rule);
}

.bdental-ruled .bdental-ruled-emr h3 {
	font-size: 18px;
}

.bdental-ruled .bdental-ruled-urgent {
	color: var(--bdental-ruled-ink);
	font-size: 20px;
	font-weight: 800;
}

/* ---------------------------------------------------------------- Opening hours, the map, a form */

.bdental-ruled-hours {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px 24px;
	width: 100%;
	max-width: 440px;
	padding: 14px 0;
	border-top: 2px solid var(--bdental-ruled-ink);
	border-bottom: 1px solid var(--bdental-ruled-rule);
}

.bdental-ruled-hours :is(dt, dd) {
	margin: 0;
}

.bdental-ruled-hours dd {
	font-weight: 800;
}

.bdental-ruled .bdental-ruled-strong-links a {
	font-weight: 800;
}

@media (max-width: 1239px) {
	.bdental-ruled .bdental-ruled-strong-links a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

/* The clinic map (`[bdental_classic_footer part="map"]`), click to load: its box the column's width and 400px tall. */
.bdental-ruled .bdental-ruled-map .bdental-embed {
	width: 100%;
	height: 400px;
	margin: 0;
	background-color: var(--wp--preset--color--highlight-band);
}

.bdental-ruled-map {
	align-self: stretch;
	width: 100%;
}

/* A heading one step under h2's size, such as a column's title beside a form. */
.bdental-ruled .bdental-ruled-sub {
	font-size: 28px;
}

/* A clinic form (Fluent Forms) in the ruled look: labels above square fields with a 3:1 edge, the blue button. Every
   rule is inside the box, so Fluent's own look elsewhere is untouched. */
.bdental-ruled-form {
	width: 100%;
	color: var(--bdental-ruled-text);
}

.bdental-ruled-form .fluentform :where(p, h2) {
	margin: 0;
}

.bdental-ruled-form .fluentform .bdental-classic-form__title {
	margin-bottom: 24px;
	color: var(--bdental-ruled-ink);
	font-family: var(--wp--preset--font-family--display, var(--wp--preset--font-family--body));
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
}

.bdental-ruled-form .fluentform .ff-el-group {
	margin-bottom: 20px;
}

.bdental-ruled-form .fluentform .ff-el-input--label {
	margin-bottom: 6px;
}

.bdental-ruled-form .fluentform .ff-el-input--label label {
	color: var(--bdental-ruled-ink);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.bdental-ruled-form .fluentform .ff-el-is-required.asterisk-left label::before,
.bdental-ruled-form .fluentform .ff-el-is-required.asterisk-right label::after {
	color: var(--wp--preset--color--form-required, var(--wp--preset--color--error));
}

/* A field at least 48px tall, so larger text spacing grows it rather than clipping (a box of several lines from 140px),
   its text 18px so a phone does not zoom in on it. */
.bdental-ruled-form .fluentform .ff-el-form-control {
	box-sizing: border-box;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--form-border, var(--wp--preset--color--border-control));
	border-radius: 0;
	background-color: var(--bdental-ruled-white);
	color: var(--bdental-ruled-text);
	font-family: inherit;
	font-size: 18px;
	line-height: 1.4;
}

.bdental-ruled-form .fluentform textarea.ff-el-form-control {
	min-height: 140px;
	resize: vertical;
}

.bdental-ruled-form .fluentform .ff-el-form-control:focus,
.bdental-ruled-form .fluentform .ff-el-form-check-input:focus-visible,
.bdental-ruled-form .fluentform .ff-btn-submit:focus-visible {
	outline: 2px solid var(--wp--preset--color--focus-ring);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--form-border, var(--wp--preset--color--border-control));
	box-shadow: none;
}

.bdental-ruled-form .fluentform .ff-el-form-check label.ff-el-form-check-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	color: var(--bdental-ruled-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.bdental-ruled-form .fluentform .ff-el-form-check-input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--bdental-ruled-blue);
}

.bdental-ruled-form .fluentform :is(.bdental-classic-form__note, .bdental-classic-form__count, .ff-el-help-message, .ff_custom_html) {
	color: var(--bdental-ruled-muted);
	font-size: 16px;
	line-height: 1.5;
}

.bdental-ruled-form .fluentform a {
	color: var(--bdental-ruled-link);
	text-decoration: underline;
}

.bdental-ruled-form .fluentform .ff-btn-submit {
	min-height: 50px;
	padding: 0 24px;
	border: 2px solid var(--bdental-ruled-blue);
	border-radius: 0;
	background-color: var(--bdental-ruled-blue);
	color: var(--wp--preset--color--button-primary-fg);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	opacity: 1;
}

/* A field the visitor got wrong: Fluent's own red is 2.90:1 on white, so its message, its edge and a tick's words take
   the brand's error role (as components.css does for a form in the classic look). */
.bdental-ruled-form .fluentform .text-danger,
.bdental-ruled-form .fluentform .error,
.bdental-ruled-form .fluentform .ff-el-is-error .ff-el-form-check-label,
.bdental-ruled-form .fluentform .ff-el-is-error .ff-el-form-check-label a {
	color: var(--wp--preset--color--error);
}

.bdental-ruled-form .fluentform .text-danger,
.bdental-ruled-form .fluentform .error {
	margin-top: 4px;
	font-size: 15px;
	line-height: 1.4;
}

.bdental-ruled-form .fluentform .ff-el-is-error .ff-el-form-control {
	border-color: var(--wp--preset--color--error);
}

.bdental-ruled-form .fluentform .ff-btn-submit:hover {
	border-color: var(--wp--preset--color--link-dark, var(--wp--preset--color--button-primary-hover));
	background-color: var(--wp--preset--color--link-dark, var(--wp--preset--color--button-primary-hover));
	color: var(--wp--preset--color--button-primary-fg);
	opacity: 1;
}

/* ---------------------------------------------------------------- An inner page (od-pages-v2, OD-02 S19) */

/* The page header: a grey band (`bdental-ruled--grey bdental-ruled--head`, and `--head-text` when it has no photograph),
   the words on the left and the page's own photograph, if it has one, on the right (`__image`); the grid `--text` when
   there is none. */
.bdental-ruled--head {
	padding-block: 56px;
}

/* The header's grid is the padded bands' (1200px of content, the gutters outside it), so its words line up with the body. */
.bdental-ruled--head > .bdental-ruled__wrap {
	max-width: calc(1200px + 2 * var(--bdental-ruled-gutter));
}

.bdental-ruled-pagehead {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
	align-items: center;
	gap: 64px;
}

.bdental-ruled-pagehead--text {
	grid-template-columns: minmax(0, 1fr);
}

.bdental-ruled-pagehead__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	max-width: 720px;
}

.bdental-ruled .bdental-ruled-pagehead__image {
	width: 100%;
	max-width: none;
	height: 360px;
	object-fit: cover;
}

/* The body: the reading column and, from 1240px, a 320px side box beside it; one column below, the box after the text. */
.bdental-ruled-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 56px;
}

.bdental-ruled-body__main {
	min-width: 0;
	max-width: 68ch;
}

/* A page whose text all moved to its header: the box alone, at the reading column's width. */
.bdental-ruled-body--side-only .bdental-ruled-side {
	max-width: 480px;
}

@media (min-width: 1240px) {
	.bdental-ruled-body {
		grid-template-columns: minmax(0, 1fr) 320px;
		align-items: start;
		gap: 80px;
	}

	.bdental-ruled-body--side-only {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The page's own words in the reading column: its sub-titles h2 and h3 one step under the bands' headings, its lists
   with a small square in the button blue, its run-ins in the heading ink, its links underlined. */
.bdental-ruled .bdental-ruled-prose > * + * {
	margin-top: 18px;
}

.bdental-ruled .bdental-ruled-prose > h2:not(:first-child) {
	margin-top: 48px;
}

.bdental-ruled .bdental-ruled-prose > h3:not(:first-child) {
	margin-top: 32px;
}

.bdental-ruled .bdental-ruled-prose > :is(h2, h3) + * {
	margin-top: 12px;
}

/* A sub-title straight under a title stays close to it. */
.bdental-ruled .bdental-ruled-prose > h2 + h3:not(:first-child) {
	margin-top: 16px;
}

.bdental-ruled .bdental-ruled-prose :is(p, li) {
	color: var(--bdental-ruled-text);
}

.bdental-ruled .bdental-ruled-prose h2 {
	font-size: 28px;
	scroll-margin-top: 24px;
}

.bdental-ruled-prose strong {
	color: var(--bdental-ruled-ink);
	font-weight: 800;
}

.bdental-ruled .bdental-ruled-prose a {
	font-weight: 700;
	text-decoration: underline;
}

.bdental-ruled-prose ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.bdental-ruled-prose li {
	position: relative;
	padding-left: 26px;
}

.bdental-ruled-prose li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 0;
	width: 8px;
	height: 8px;
	background-color: var(--bdental-ruled-blue);
}

/* A logo or an advertisement the page carries in its text, at its own size. */
.bdental-ruled .bdental-ruled-prose__picture {
	width: auto;
	max-width: min(100%, 240px);
}

.bdental-ruled .bdental-ruled-prose__picture--wide {
	max-width: min(100%, 360px);
}

/* "On this page": the page's h2s as ruled links, under the header. */
.bdental-ruled-toc {
	margin-bottom: 48px;
	padding-top: 16px;
	border-top: 2px solid var(--bdental-ruled-ink);
}

.bdental-ruled .bdental-ruled-toc__title {
	color: var(--bdental-ruled-ink);
	font-size: 15px;
	font-weight: 800;
}

.bdental-ruled-toc ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 32px;
	margin-top: 8px;
	padding: 0;
	list-style: none;
}

.bdental-ruled-toc li {
	border-bottom: 1px solid var(--bdental-ruled-rule);
}

.bdental-ruled .bdental-ruled-toc a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-block: 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.bdental-ruled .bdental-ruled-toc a:hover {
	text-decoration: underline;
}

/* The side box: white, a 2px line in the heading ink on top (as the About points), the phone, the hours, two actions. */
.bdental-ruled-side {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-top: 20px;
	border-top: 2px solid var(--bdental-ruled-ink);
	background-color: var(--bdental-ruled-white);
}

.bdental-ruled .bdental-ruled-side h2 {
	font-size: 20px;
}

.bdental-ruled .bdental-ruled-side__phone {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 22px;
	font-weight: 800;
}

.bdental-ruled-side .bdental-ruled-hours {
	padding-top: 0;
	border-top: 0;
	font-size: 16px;
}

.bdental-ruled-side .bdental-ruled-buttons {
	flex-direction: column;
}

.bdental-ruled-side .bdental-ruled-button {
	width: 100%;
}

/* The closing band on the slate: the words on the left, the white button on the right. */
.bdental-ruled-close {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
}

.bdental-ruled-close .bdental-ruled-button--white {
	align-self: center;
}

/* A table of fees (od-pages-v2 B4): a header row on the heading ink with white words, each row's treatment its row
   header, rows divided by the rule, the fee column on the right. `-table-wrap` scrolls a table that ever overflows. */
.bdental-ruled-table-wrap {
	max-width: 880px;
	overflow-x: auto;
}

.bdental-ruled-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 18px;
	line-height: 1.5;
}

.bdental-ruled-table thead th {
	padding: 12px 16px;
	background-color: var(--wp--preset--color--band-ink, var(--wp--preset--color--dark-band));
	color: var(--wp--preset--color--dark-body);
	font-weight: 700;
	text-align: left;
}

.bdental-ruled-table :is(td, tbody th) {
	padding: 14px 16px;
	border-bottom: 1px solid var(--bdental-ruled-rule);
	color: var(--bdental-ruled-text);
	font-weight: 400;
	text-align: left;
	vertical-align: top;
}

.bdental-ruled-table :is(th, td):last-child {
	width: 34%;
	text-align: right;
}

.bdental-ruled-table__fee {
	color: var(--bdental-ruled-ink);
	font-weight: 800;
	white-space: nowrap;
}

.bdental-ruled .bdental-ruled-table__note {
	display: block;
	color: var(--bdental-ruled-muted);
	font-size: 15px;
}

/* A link back (B3's "Back to Home Page"): its arrow before it, pointing back. */
.bdental-ruled-more--back::after {
	content: none;
}

.bdental-ruled-more--back::before {
	content: "\2190" / "";
}

/* A figure that is a link (B1's award, to the team page). */
.bdental-ruled .bdental-ruled-figure__link {
	display: block;
	align-self: center;
	width: 100%;
	max-width: 360px;
}

/* A clinic form in a panel (B3): a 2px line in the heading ink on top, 40px from the words before and after it. */
.bdental-ruled .bdental-ruled-body__main > :is(.bdental-ruled-form--panel, .bdental-ruled-form--panel + *) {
	margin-top: 40px;
}

.bdental-ruled-form--panel {
	padding-top: 28px;
	border-top: 2px solid var(--bdental-ruled-ink);
	background-color: var(--bdental-ruled-white);
}

/* A ruled list (B5): short items divided by lines, in the heading ink. */
.bdental-ruled-list {
	align-self: stretch;
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--bdental-ruled-ink);
}

.bdental-ruled .bdental-ruled-list li {
	padding: 12px 0;
	border-bottom: 1px solid var(--bdental-ruled-rule);
	color: var(--bdental-ruled-ink);
	font-weight: 700;
}

/* ---------------------------------------------------------------- A registration page (od-register-ui, OD-02 S23) */

/* A strip of numbered steps under a page's header (`bdental-ruled-steps`, an `ol role="list"` that is also the band's
   `__wrap`; the role keeps the list a list where `list-style: none` would drop it), in the three routes' style and
   sharing their rules: three columns divided by lines, one on the phone. The number is the list's own, shown in the
   display face; where the browser can, it is hidden from assistive technology, which announces the list's position
   itself, and an older browser shows it from the plain declaration. Its grid is the padded bands', so its words line up
   with the header's and the body's. */
.bdental-ruled-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: calc(1200px + 2 * var(--bdental-ruled-gutter));
	list-style: none;
	counter-reset: bdental-ruled-step;
}

.bdental-ruled .bdental-ruled-steps > li {
	color: var(--bdental-ruled-ink);
	font-weight: 700;
	counter-increment: bdental-ruled-step;
}

.bdental-ruled .bdental-ruled-steps > li::before {
	content: counter(bdental-ruled-step);
	content: counter(bdental-ruled-step) / "";
	color: var(--bdental-ruled-link);
	font-family: var(--wp--preset--font-family--display, var(--wp--preset--font-family--body));
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
}

/* A clinic form in numbered sections (form 6's classes): the line under its title, each section's heading under a thin
   rule 32px from the section before, rows of two fields, the send area under the same rule. */
.bdental-ruled-form .fluentform .ff-el-group:has(.bdental-classic-form__title):has(+ .bdental-ruled-form__intro) {
	margin-bottom: 8px;
}

.bdental-ruled-form .fluentform .ff-el-group:has(+ .bdental-ruled-form__intro) .bdental-classic-form__title {
	margin-bottom: 0;
}

.bdental-ruled-form .fluentform .bdental-ruled-form__required {
	color: var(--bdental-ruled-muted);
	font-size: 16px;
}

.bdental-ruled-form .fluentform .bdental-ruled-form__star {
	color: var(--wp--preset--color--form-required, var(--wp--preset--color--error));
	font-weight: 700;
}

/* 32px from the last field: the field's 20px below collapses into this margin, as a row's does (a row keeps its fields'
   20px on itself, so the gap is the same after a row as after a single field). */
.bdental-ruled-form .fluentform .ff-el-group:is(.bdental-ruled-form__section, .bdental-ruled-form__send) {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--bdental-ruled-rule);
}

.bdental-ruled-form .fluentform .bdental-ruled-form__heading {
	font-size: 21px;
}

.bdental-ruled-form .frm-fluent-form .ff-t-container.bdental-ruled-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: end;
	gap: 20px 24px;
	margin-bottom: 20px;
}

.bdental-ruled-form .fluentform .bdental-ruled-form__row .ff-el-group {
	margin-bottom: 0;
}

.bdental-ruled-form .frm-fluent-form .ff-t-container.bdental-ruled-form__row--title {
	grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
}

.bdental-ruled-form .frm-fluent-form .ff-t-container.bdental-ruled-form__row > .ff-t-cell {
	padding: 0;
}

/* The consent sentence in a grey box above the button. */
.bdental-ruled-form .fluentform .bdental-ruled-form__consent {
	padding: 20px 24px;
	background-color: var(--wp--preset--color--highlight-band);
	font-size: 16px;
	line-height: 1.5;
}

.bdental-ruled-form .fluentform .bdental-ruled-form__consent p {
	color: var(--bdental-ruled-text);
}

.bdental-ruled-form .fluentform .bdental-ruled-form__consent .bdental-ruled-form__consent-title {
	margin-bottom: 4px;
	color: var(--bdental-ruled-ink);
	font-weight: 700;
}

/* The panel's button: at least 220px wide on the left; the panel's full width on the phone. */
.bdental-ruled-form--panel .fluentform .ff_submit_btn_wrapper {
	text-align: left;
}

.bdental-ruled-form--panel .fluentform .ff-btn-submit {
	min-width: 220px;
}

@media (max-width: 760px) {
	.bdental-ruled-steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.bdental-ruled-form .frm-fluent-form .ff-t-container.bdental-ruled-form__row,
	.bdental-ruled-form .frm-fluent-form .ff-t-container.bdental-ruled-form__row--title {
		grid-template-columns: minmax(0, 1fr);
	}

	.bdental-ruled-form--panel .fluentform .ff-btn-submit {
		width: 100%;
		min-width: 0;
	}
}

/* Between the phone and 1240px the header keeps its two columns, the photograph narrower. */
@media (min-width: 761px) and (max-width: 1239px) {
	.bdental-ruled-pagehead {
		grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
		gap: 40px;
	}

	.bdental-ruled .bdental-ruled-pagehead__image {
		height: 300px;
	}

	/* The box under the text keeps a box's width, not the page's. */
	.bdental-ruled-side {
		max-width: 480px;
	}
}

/* ---------------------------------------------------------------- The phone */

@media (max-width: 760px) {
	.bdental-ruled {
		--bdental-ruled-gutter: 20px;
		--bdental-ruled-sec: 52px;
	}

	.bdental-ruled h1 {
		font-size: 34px;
	}

	.bdental-ruled h2 {
		font-size: 28px;
	}

	.bdental-ruled-hero {
		grid-template-areas: "hero" "panel";
	}

	.bdental-ruled .bdental-ruled-hero__image {
		height: 260px;
	}

	.bdental-ruled-hero__in {
		grid-area: panel;
	}

	.bdental-ruled-hero__panel {
		max-width: none;
		padding: 28px 0 8px;
		border-top: 0;
	}

	.bdental-ruled-routes,
	.bdental-ruled-rows,
	.bdental-ruled-split,
	.bdental-ruled-split--even,
	.bdental-ruled-points {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.bdental-ruled-routes,
	.bdental-ruled-rows {
		gap: 0;
	}

	/* One line between the two columns once they stack, not two. */
	.bdental-ruled-rows > :first-child > .bdental-ruled-row:last-child {
		border-bottom: 0;
	}

	.bdental-ruled .bdental-ruled-routes > a,
	.bdental-ruled .bdental-ruled-routes > a + a,
	.bdental-ruled .bdental-ruled-steps > li,
	.bdental-ruled .bdental-ruled-steps > li + li {
		padding: 22px 0;
		border-left: 0;
		border-top: 1px solid var(--bdental-ruled-rule);
	}

	.bdental-ruled .bdental-team-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.bdental-ruled .bdental-ruled-button {
		width: 100%;
	}

	.bdental-ruled-buttons {
		width: 100%;
	}

	.bdental-ruled-head {
		margin-bottom: 24px;
	}

	.bdental-ruled .bdental-ruled-reviews {
		height: 777px;
	}

	.bdental-ruled .bdental-ruled-map .bdental-embed {
		height: 300px;
	}

	.bdental-ruled--head {
		padding-block: 0 40px;
	}

	/* The photograph above the words, edge to edge; a header without one keeps the band's top padding. */
	.bdental-ruled-pagehead {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.bdental-ruled--head-text {
		padding-top: 40px;
	}

	.bdental-ruled .bdental-ruled-pagehead__image {
		order: -1;
		width: calc(100% + 2 * var(--bdental-ruled-gutter));
		height: 220px;
		margin-inline: calc(-1 * var(--bdental-ruled-gutter));
	}

	.bdental-ruled .bdental-ruled-prose h2 {
		font-size: 24px;
	}

	.bdental-ruled .bdental-ruled-prose > h2:not(:first-child) {
		margin-top: 40px;
	}

	.bdental-ruled-toc ul {
		grid-template-columns: minmax(0, 1fr);
	}

	.bdental-ruled-body {
		gap: 48px;
	}

	.bdental-ruled-close .bdental-ruled-button--white {
		align-self: stretch;
	}

	/* A list of rows in one column keeps its closing line (the two-column rule above takes it off the first column). */
	.bdental-ruled-rows > :only-child > .bdental-ruled-row:last-child {
		border-bottom: 1px solid var(--bdental-ruled-rule);
	}
}
