/* Lowbackpain 2027. RTL-first: logical properties throughout. */

@font-face {
	font-family: "Heebo";
	src: url("../fonts/heebo-hebrew.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
	font-family: "Heebo";
	src: url("../fonts/heebo-latin.woff2") format("woff2");
	font-weight: 400 800;
	font-display: optional;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fallback with Heebo's metrics: text keeps its size and position while the font loads. */
@font-face {
	font-family: "Heebo Fallback";
	src: local("Arial");
	font-weight: 400 600;
	size-adjust: 104%;
	ascent-override: 101%;
	descent-override: 40.4%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Heebo Fallback";
	src: local("Arial Bold"), local("Arial");
	font-weight: 700 900;
	size-adjust: 108%;
	ascent-override: 97.2%;
	descent-override: 38.9%;
	line-gap-override: 0%;
}

:root {
	--navy: #102D46;
	--navy-deep: #0B2339;
	--heading: #0B2445;
	--text: #102A43;
	--text-secondary: #526575;
	--teal: #008C95;
	--teal-dark: #00666E; /* Text-safe teal: 4.5:1 and above on white and on --surface. */
	--turquoise: #00B5B5;
	--turquoise-bright: #35DCE0;
	--background: #FFFFFF;
	--surface: #F1F6F8;
	--border: #D9E4E9;

	--container-width: 1280px;
	--gutter: 24px;
	--card-radius: 20px;
	--section-gap: 40px;
	--header-height: 78px;
	--admin-bar: var(--wp-admin--admin-bar--height, 0px);
	--sticky-offset: calc(var(--header-height) + var(--admin-bar) + 20px);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-block-start: var(--sticky-offset);
}

body {
	margin: 0;
	background: var(--background);
	color: var(--text);
	font-family: "Heebo", "Heebo Fallback", "Assistant", "Segoe UI", Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--heading);
	line-height: 1.2;
	font-weight: 700;
	text-wrap: balance;
}

p {
	margin: 0;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--teal-dark);
}

button,
input {
	font: inherit;
	color: inherit;
}

.icon {
	flex: none;
	width: 24px;
	height: 24px;
	stroke-width: 2;
}

.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 3px;
}

.site-header :focus-visible {
	outline-color: var(--turquoise-bright);
}

.site-main:focus {
	outline: none;
}

.skip-link {
	position: absolute;
	inset-block-start: -100px;
	inset-inline-start: 16px;
	z-index: 100;
	padding: 10px 18px;
	border-radius: 0 0 10px 10px;
	background: #fff;
	color: var(--navy);
	font-weight: 600;
}

.skip-link:focus {
	inset-block-start: 0;
}

/* Header */

.site-header {
	position: sticky;
	inset-block-start: var(--admin-bar);
	z-index: 20;
	background: linear-gradient(180deg, #1B3954 0%, var(--navy) 55%, var(--navy-deep) 100%);
	color: #fff;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.6vw, 22px);
	width: 100%;
	max-width: var(--container-width);
	min-height: var(--header-height);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.brand {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	text-decoration: none;
}

.brand__mark {
	flex: none;
	width: 35px;
	height: 60px;
	color: var(--turquoise-bright);
}

.brand__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	white-space: nowrap;
}

.brand__name {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.05;
}

.brand__domain {
	font-size: 1.1rem;
	line-height: 1.2;
	color: #E4EEF4;
}

.site-nav {
	margin-inline-start: auto;
}

.menu,
.sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu {
	display: flex;
	align-items: center;
	gap: clamp(10px, 1.1vw, 15px);
}

.menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.menu > li > a {
	position: relative;
	padding-block: 12px;
	color: #fff;
	font-size: clamp(0.94rem, 1.25vw, 1.03rem);
	white-space: nowrap;
	text-decoration: none;
}

.menu > li > a::after {
	content: "";
	position: absolute;
	inset-inline: -4px;
	inset-block-end: 2px;
	height: 3px;
	border-radius: 2px;
	background: var(--turquoise-bright);
	opacity: 0;
}

.menu > .current-menu-item > a {
	font-weight: 700;
}

.menu > .current-menu-item > a::after,
.menu > li > a:hover::after {
	opacity: 1;
}

.submenu-toggle,
.header-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	color: #fff;
	cursor: pointer;
}

.submenu-toggle {
	width: 28px;
	height: 40px;
}

.submenu-toggle .icon {
	width: 12px;
	height: 8px;
	stroke-width: 1.8;
}

.submenu-toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

.header-button {
	width: 44px;
	height: 44px;
}

.header-button .icon {
	width: 30px;
	height: 30px;
	stroke-width: 2.1;
}

.search-toggle {
	margin-inline-start: clamp(4px, 1.6vw, 24px);
}

.menu-toggle,
.menu-toggle .icon--close {
	display: none;
}

.sub-menu {
	display: none;
	min-width: 230px;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(11, 35, 57, 0.14);
}

.sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--text);
	font-size: 1rem;
	line-height: 1.4;
	text-decoration: none;
}

.sub-menu a:hover {
	background: var(--surface);
	color: var(--teal-dark);
}

.sub-menu :focus-visible {
	outline-color: var(--teal);
	outline-offset: 0;
}

.header-search {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 100%;
	padding: 18px var(--gutter);
	border-block-end: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
}

.header-search .search {
	max-width: 760px;
	margin-inline: auto;
}

@media (min-width: 62.5em) {
	.sub-menu {
		position: absolute;
		inset-block-start: 100%;
		inset-inline-start: -14px;
	}

	.menu > li:hover > .sub-menu,
	.submenu-toggle[aria-expanded="true"] + .sub-menu {
		display: block;
	}
}

/* Search field */

form.search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 66px;
	padding: 4px;
	border: 1.5px solid var(--teal);
	border-radius: 33px;
	background: #fff;
	box-shadow: 0 3px 10px rgba(16, 69, 110, 0.10);
}

form.search:focus-within {
	outline: 3px solid rgba(0, 140, 149, 0.35);
	outline-offset: 2px;
}

.search__field {
	flex: 1;
	min-width: 0;
	min-height: 56px;
	padding-inline: 24px 16px;
	border: 0;
	background: none;
	font-size: 1.3rem;
	appearance: none;
}

.search__field:focus {
	outline: none;
}

.search__field::placeholder {
	color: var(--text-secondary);
	opacity: 1;
}

.search__field::-webkit-search-cancel-button {
	display: none;
}

.search__submit {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 82px;
	align-self: stretch;
	padding: 0;
	border: 0;
	/* Square towards the field, round towards the capsule's end (left in RTL). */
	border-start-start-radius: 8px;
	border-end-start-radius: 8px;
	border-start-end-radius: 28px;
	border-end-end-radius: 28px;
	background: linear-gradient(200deg, #007C86, #01969A);
	color: #fff;
	cursor: pointer;
}

.search__submit:hover {
	background: var(--teal-dark);
}

.search__submit .icon {
	width: 34px;
	height: 34px;
	stroke-width: 1.9;
}

/* Hero */

.hero {
	position: relative;
	overflow: hidden;
}

.hero-grid {
	display: grid;
	grid-template-columns: 60fr 40fr;
	align-items: center;
	min-height: 406px;
}

.hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-block: 44px 64px;
	padding-inline: 40px 0;
}

.hero__title {
	color: var(--heading);
	font-size: clamp(2.6rem, 4.3vw, 4rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.hero__title-line {
	display: block;
}

.hero__points {
	display: flex;
	flex-wrap: wrap;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	font-size: clamp(1.1rem, 1.5vw, 1.36rem);
	line-height: 1.5;
}

.hero__points li {
	display: flex;
	align-items: center;
}

.hero__points li + li::before {
	content: "";
	width: 8px;
	height: 8px;
	margin-inline: 16px;
	border-radius: 50%;
	background: var(--teal);
}

.hero__content .search {
	margin-block-start: 34px;
}

/* The grid cell reserves the 40%; the art is wider on purpose so it fades under the content. */
.hero__art {
	position: static;
}

.hero__art img {
	position: absolute;
	inset-block: 0;
	/* Starts a little outside the container so the search field stays clear of the illustration. */
	left: max(-36px, calc(50% - var(--container-width) / 2 - 36px));
	width: auto;
	max-width: none;
	height: 100%;
}

@media (min-width: 80.0625em) {
	.hero__art img {
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 110px);
		mask-image: linear-gradient(90deg, transparent, #000 110px);
	}
}

/* Knowledge cards */

.knowledge {
	padding-block-end: var(--section-gap);
}

.knowledge-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 8px 24px;
	overflow: hidden;
	border: 1px solid #E3ECF1;
	border-block-end: 4px solid #10B5B0;
	border-radius: var(--card-radius);
	background: linear-gradient(180deg, #F1F6F9 0%, #F3F7FB 65%, #F6FCFD 100%);
	text-align: center;
	transition: border-color 0.15s, background-color 0.15s;
}

.card__art {
	width: 254px;
	max-width: 100%;
}

.card__title {
	margin-block-start: 2px;
	font-size: clamp(1.45rem, 1.95vw, 1.8rem);
}

.card__text {
	max-width: 286px;
	margin-block: 8px 18px;
	font-size: 1.125rem;
	line-height: 1.4;
	text-wrap: pretty;
}

.card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	min-width: 170px;
	min-height: 42px;
	margin-block-start: auto;
	padding-inline: 24px;
	border: 1.5px solid var(--teal);
	border-radius: 21px;
	background: #fff;
	color: #004F57;
	font-size: 1.125rem;
	font-weight: 600;
	text-decoration: none;
}

/* Makes the whole card clickable with one real link. */
.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card__link .icon {
	width: 8px;
	height: 13px;
	color: var(--teal-dark);
}

.card:hover {
	border-color: #B9D6DC;
	border-block-end-color: var(--teal);
}

.card:hover .card__link {
	background: var(--teal-dark);
	border-color: var(--teal-dark);
	color: #fff;
}

.card:hover .card__link .icon {
	color: #fff;
}

.card:focus-within {
	outline: 3px solid var(--teal);
	outline-offset: 3px;
}

.card__link:focus-visible {
	outline: none;
}

/* Popular topics */

.topics {
	margin-block-end: var(--section-gap);
	padding: 14px 28px 24px;
	border-radius: var(--card-radius);
	background: linear-gradient(180deg, #F2F7FA, #EFF4F8);
}

.topics__title {
	font-size: 1.65rem;
}

.topics__list {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.topics__list li {
	flex: 1 1 auto;
}

.topic {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 58px;
	padding-inline: 11px;
	border: 1px solid #E6EEF2;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 2px 5px rgba(16, 60, 95, 0.07);
	color: var(--text);
	font-size: 1.125rem;
	white-space: nowrap;
	text-decoration: none;
	transition: border-color 0.15s;
}

.topic:hover {
	border-color: var(--teal);
	color: var(--teal-dark);
}

.topic .icon {
	width: 36px;
	height: 36px;
	color: var(--teal);
	stroke-width: 1.7;
}

/* Article layout: 74% article, 26% sidebar */

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 74fr) minmax(0, 26fr);
	gap: 32px;
	align-items: start;
	margin-block-end: calc(var(--section-gap) * 1.5);
}

.article {
	padding: 40px 44px 48px;
	border: 1px solid var(--border);
	border-radius: var(--card-radius);
}

.article__title {
	padding-block-end: 16px;
	border-block-end: 3px solid var(--turquoise);
	font-size: clamp(1.9rem, 2.9vw, 2.5rem);
	font-weight: 800;
}

.byline {
	margin-block-start: 12px;
	color: var(--text-secondary);
	font-size: 1rem;
}

.article .byline {
	margin-block-end: 24px;
}

.byline__state {
	display: inline-block;
	margin-inline-start: 8px;
	padding: 1px 10px;
	border-radius: 12px;
	background: #FFF1DF;
	color: #7A4300;
	font-size: 0.9rem;
}

.article__body {
	font-size: 1.1875rem;
	line-height: 1.8;
}

.article__body > * + *,
.article__body .wp-block-group__inner-container > * + * {
	margin-block-start: 1.1em;
}

.article__body h2,
.article__body h3 {
	line-height: 1.3;
}

.article__body > h2 {
	clear: both;
	margin-block-start: 52px;
	padding-inline-start: 14px;
	border-inline-start: 6px solid var(--turquoise);
	font-size: clamp(1.5rem, 2.1vw, 1.8rem);
}

.article__body > h3 {
	margin-block-start: 34px;
	color: var(--teal-dark);
	font-size: 1.3rem;
}

.article__body > :is(h2, h3) + * {
	margin-block-start: 12px;
}

.article__body > h2 + h3 {
	margin-block-start: 20px;
}

.article__body a {
	text-underline-offset: 3px;
}

.article__body :is(ul, ol) {
	margin-block-end: 0;
	padding-inline-start: 1.5em;
}

.article__body li + li {
	margin-block-start: 0.45em;
}

.article__body li::marker {
	color: var(--teal);
	font-weight: 600;
}

/* Figures */

.article__body .lbp-figure {
	float: left;
	width: min(46%, 380px);
	margin-block: 8px 18px;
	margin-inline: 32px 0;
}

.article__body .lbp-figure--center {
	float: none;
	clear: both;
	width: min(100%, 460px);
	margin-inline: auto;
}

.article__body .lbp-figure--wide {
	float: none;
	clear: both;
	width: 100%;
	margin-inline: 0;
}

.lbp-figure img {
	width: 100%;
	border-radius: 14px;
	background: var(--surface);
}

.lbp-figure--orig img {
	padding: 12px;
	border: 1px solid var(--border);
	background: #fff;
}

.lbp-figure figcaption {
	margin-block-start: 8px;
	color: var(--text-secondary);
	font-size: 0.97rem;
	line-height: 1.45;
}

/* Direct answer */

.lbp-answer {
	padding: 24px 28px;
	border-radius: var(--card-radius);
	background: linear-gradient(180deg, #EEF6F8, #F4FAFB);
	font-size: 1.22rem;
	line-height: 1.7;
}

/* Clinical boxes */

.lbp-box {
	clear: both;
	padding: 20px 26px 24px;
	border-inline-start: 5px solid var(--teal);
	border-radius: 14px;
	background: var(--surface);
}

.article__body > .lbp-box {
	margin-block: 30px;
}

.lbp-box__title {
	color: var(--heading);
	font-size: 1.2rem;
}

.lbp-box__label {
	display: inline-block;
	margin-inline-end: 6px;
	padding: 0 10px;
	border-radius: 12px;
	background: var(--navy);
	color: #fff;
	font-size: 0.88rem;
	font-weight: 500;
}

.article__body .lbp-box .wp-block-group__inner-container > * + * {
	margin-block-start: 8px;
}

.lbp-box--warning {
	border-inline-start-color: #D9622B;
	background: #FFF6F0;
}

.lbp-box--warning .lbp-box__title {
	color: #8A3208;
}

.lbp-box--osteo {
	border-inline-start-color: var(--navy);
	background: #F3F5FA;
}

.lbp-box--osteo .lbp-box__label {
	background: #3B4F86;
}

.lbp-box--clinical .lbp-box__label {
	background: var(--teal-dark);
}

/* Tables */

.article__body .wp-block-table {
	clear: both;
	margin-inline: 0;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 14px;
}

.article__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.05rem;
	line-height: 1.5;
}

.article__body th {
	background: var(--navy);
	color: #fff;
	font-weight: 600;
	text-align: start;
}

.article__body :is(th, td) {
	padding: 11px 16px;
	vertical-align: top;
}

.article__body td {
	border-block-start: 1px solid var(--border);
}

.article__body tbody tr:nth-child(even) {
	background: #F7FAFB;
}

.article__body td:first-child {
	color: var(--heading);
	font-weight: 600;
}

/* FAQ, references */

.article__body > h3.lbp-q {
	margin-block-start: 22px;
	padding-block-start: 20px;
	border-block-start: 1px solid var(--border);
	color: var(--heading);
	font-size: 1.22rem;
}

.ref {
	font-size: 0.72em;
	line-height: 1;
	white-space: nowrap;
}

.ref a {
	padding: 2px;
	text-decoration: none;
}

.article__body .lbp-refs {
	font-size: 0.97rem;
	line-height: 1.55;
	direction: ltr;
	text-align: left;
	padding-inline-start: 2em;
}

.lbp-refs li {
	scroll-margin-block-start: 10px;
}

.lbp-refs li:target {
	background: #E8F6F6;
}

/* Author */

.author-box {
	clear: both;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 28px;
	margin-block-start: 56px;
	padding: 28px 30px;
	border-radius: var(--card-radius);
	background: var(--surface);
	line-height: 1.65;
}

.author-box__photo {
	width: 150px;
	border-radius: 14px;
	background: #fff;
}

.author-box__title {
	margin-block-end: 8px;
	font-size: 1.4rem;
}

.author-box ul {
	margin: 8px 0 12px;
	padding-inline-start: 1.3em;
}

/* Inner page hero */

.page-hero {
	position: relative;
	overflow: hidden;
}

.page-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: 62fr 38fr;
	align-items: center;
	min-height: 268px;
}

.page-hero__content {
	position: relative;
	z-index: 1;
	padding-block: 28px 34px;
}

.page-hero__title {
	margin-block-start: 14px;
	font-size: clamp(1.95rem, 3.2vw, 2.85rem);
	font-weight: 800;
	line-height: 1.15;
}

.page-hero__art img {
	position: absolute;
	inset-block: 0;
	left: 24px;
	width: 40%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 72%, transparent), linear-gradient(180deg, #000 78%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 72%, transparent), linear-gradient(180deg, #000 78%, transparent);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--text-secondary);
	font-size: 1rem;
}

.breadcrumbs li + li::before {
	content: "‹" / "";
	margin-inline-end: 8px;
	color: var(--teal);
}

.breadcrumbs a {
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

/* Index pages */

.hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
	margin-block-start: 24px;
}

.hub-grid .card__title {
	font-size: 1.35rem;
}

.hub-grid .card__text {
	font-size: 1.02rem;
}

.hub-grid .card__art {
	height: 132px;
	object-fit: cover;
	-webkit-mask-image: linear-gradient(180deg, #000 75%, transparent);
	mask-image: linear-gradient(180deg, #000 75%, transparent);
}

/* Sidebar */

.sidebar {
	display: grid;
	gap: 20px;
	align-content: start;
}

/* Set by main.js only when the whole table of contents fits in the viewport.
   The middle row spans the article in either case, so nothing moves when the class is set. */
@media (min-width: 62.5em) {
	.sidebar:has(.sidebar__toc) {
		align-self: stretch;
		align-content: stretch;
		grid-template-rows: auto 1fr auto;
	}
}

.has-sticky-toc .toc--side {
	position: sticky;
	inset-block-start: var(--sticky-offset);
	align-self: start;
}

.panel {
	padding: 20px 20px 22px;
	border: 1px solid #E3ECF1;
	border-radius: var(--card-radius);
	background: linear-gradient(180deg, #F1F6F9, #F6FAFC);
}

.panel__title {
	margin-block-end: 12px;
	font-size: 1.3rem;
}

.topic-group {
	border-block-start: 1px solid var(--border);
}

.topic-group summary,
.toc--inline summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	color: var(--heading);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

summary::-webkit-details-marker {
	display: none;
}

summary .icon {
	width: 13px;
	height: 9px;
	color: var(--teal);
}

details[open] > summary .icon {
	transform: rotate(180deg);
}

.topic-group ul,
.related,
.toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.topic-group ul {
	padding-block-end: 12px;
}

.topic-group a,
.toc a {
	display: block;
	padding: 5px 10px;
	border-radius: 8px;
	color: var(--text);
	font-size: 1rem;
	line-height: 1.4;
	text-decoration: none;
	text-wrap: balance;
}

.topic-group a[aria-current] {
	background: #fff;
	color: var(--teal-dark);
	font-weight: 600;
}

.topic-group a:hover,
.toc a:hover {
	background: #fff;
	color: var(--teal-dark);
}

.toc__list > li > a {
	font-weight: 600;
}

.toc ol ol {
	margin-inline-start: 12px;
	border-inline-start: 2px solid var(--border);
}

.toc ol ol a {
	padding-block: 3px;
	font-size: 0.95rem;
}

.toc--inline {
	display: none;
}

.related {
	display: grid;
	gap: 10px;
}

.related a {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 12px;
	align-items: center;
	padding: 8px;
	border: 1px solid #E6EEF2;
	border-radius: 14px;
	background: #fff;
	color: var(--text);
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
}

.related a:hover {
	border-color: var(--teal);
	color: var(--teal-dark);
}

.related img {
	width: 92px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	background: var(--surface);
}

/* Basic inner pages (placeholders until the article template stage) */

.page-body {
	max-width: 820px;
	min-height: 50vh;
	padding-block: 48px;
}

.page-body > * + * {
	margin-block-start: 20px;
}

/* Footer */

.site-footer {
	border-block-start: 4px solid #10B5B0;
	background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 70%);
	color: #D6E3EB;
	font-size: 1rem;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--turquoise-bright);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.site-footer :focus-visible {
	outline-color: var(--turquoise-bright);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
	gap: 32px 40px;
	padding-block: 44px 36px;
}

.site-footer__about {
	max-width: 290px;
	margin-block-start: 16px;
	line-height: 1.6;
}

.site-footer__title {
	margin-block-end: 12px;
	color: #fff;
	font-size: 1.15rem;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer li a {
	display: inline-block;
	padding-block: 4px;
}

.site-footer__bottom {
	padding-block: 18px;
	border-block-start: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.94rem;
}

.site-footer__bottom .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 24px;
}

/* Laptops */

@media (max-width: 79.9375em) {
	.brand__name {
		font-size: 1.4rem;
	}

	.brand__domain {
		font-size: 0.92rem;
	}

	.brand__mark {
		width: 30px;
		height: 50px;
	}

	.submenu-toggle {
		width: 20px;
	}

	.site-header__inner {
		gap: 14px;
	}

	.menu {
		gap: clamp(8px, 1.3vw, 22px);
	}

	.menu > li > a {
		font-size: clamp(0.9rem, 1.35vw, 1.1rem);
	}

	.search-toggle {
		margin-inline: 0;
	}

	.hero__content {
		padding-inline: 8px 0;
	}

	.hero__art img {
		left: -13vw;
	}

	.topics__list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hero__points li + li::before {
		margin-inline: 10px;
		width: 6px;
		height: 6px;
	}
}

/* Tablets: two cards per row */

@media (max-width: 68.6875em) {
	.knowledge-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.article {
		padding: 32px 30px 36px;
	}

	.article-layout {
		gap: 24px;
	}

	.article__body .lbp-figure {
		width: min(48%, 340px);
		margin-inline-start: 24px;
	}
}

@media (max-width: 62.4375em) {
	:root {
		--header-height: 70px;
	}

	/* One column: article, then topics and related articles. */
	.article-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.toc--side {
		display: none;
	}

	.toc--inline {
		display: block;
		margin-block-end: 28px;
		padding: 4px 18px;
		border-radius: 14px;
		background: var(--surface);
	}

	.toc--inline nav {
		padding-block: 4px 14px;
	}

	.toc--inline a {
		padding-block: 9px;
	}

	.topic-group a {
		padding-block: 9px;
	}

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

	.site-nav {
		order: 4;
		margin: 0;
	}

	.a11y-toggle {
		order: 3;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.search-toggle {
		order: 2;
		margin-inline: auto 0;
	}

	.is-menu-open .menu-toggle .icon--close {
		display: block;
	}

	.is-menu-open .menu-toggle .icon--menu {
		display: none;
	}

	.primary-nav {
		display: none;
		position: absolute;
		inset-inline: 0;
		inset-block-start: 100%;
		max-height: calc(100dvh - var(--header-height) - var(--admin-bar));
		margin: 0;
		padding: 8px var(--gutter) 20px;
		overflow-y: auto;
		background: var(--navy-deep);
	}

	.is-menu-open .primary-nav {
		display: block;
	}

	.menu {
		display: block;
	}

	.menu > li {
		flex-wrap: wrap;
		border-block-end: 1px solid rgba(255, 255, 255, 0.14);
	}

	.menu > li > a {
		flex: 1;
		font-size: 1.125rem;
	}

	.menu > li > a::after {
		inset-inline: 0 auto;
		width: 40px;
	}

	.submenu-toggle {
		width: 48px;
		height: 48px;
	}

	.sub-menu {
		width: 100%;
		margin-block-end: 12px;
		padding: 4px;
		border: 0;
		background: rgba(255, 255, 255, 0.07);
		box-shadow: none;
	}

	.sub-menu a {
		color: #fff;
	}

	.sub-menu a:hover {
		background: rgba(255, 255, 255, 0.1);
		color: #fff;
	}

	.submenu-toggle[aria-expanded="true"] + .sub-menu {
		display: block;
	}

	.hero__art img {
		left: -26vw;
	}

	/* The list wraps here, so every item gets its own bullet instead of a separator. */
	.hero__points {
		gap: 2px 22px;
	}

	.hero__points li::before,
	.hero__points li + li::before {
		content: "";
		width: 7px;
		height: 7px;
		margin-inline: 0 8px;
		border-radius: 50%;
		background: var(--teal);
	}

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

	.topic {
		justify-content: flex-start;
	}
}

/* Phones */

@media (max-width: 40em) {
	:root {
		--gutter: 16px;
		--section-gap: 28px;
		--header-height: 64px;
	}

	.brand__name {
		font-size: 1.25rem;
	}

	.brand__domain {
		font-size: 0.85rem;
	}

	.brand__mark {
		width: 26px;
		height: 44px;
	}

	.hero-grid {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.hero__content {
		padding: 28px 0 4px;
		align-items: stretch;
	}

	.hero__title {
		font-size: clamp(2.1rem, 10vw, 2.6rem);
	}

	.hero__points {
		margin-block-start: 16px;
		font-size: 1.0625rem;
		gap: 2px 18px;
	}

	.hero__content .search {
		margin-block-start: 22px;
	}

	form.search {
		min-height: 58px;
	}

	.search__field {
		padding-inline: 18px 8px;
		font-size: 1.0625rem;
	}

	.search__submit {
		width: 62px;
	}

	.search__submit .icon {
		width: 27px;
		height: 27px;
	}

	.hero__art {
		position: relative;
		height: 250px;
		margin-block-start: 12px;
		margin-inline: calc(-1 * var(--gutter));
		overflow: hidden;
		-webkit-mask-image: linear-gradient(180deg, transparent, #000 60px);
		mask-image: linear-gradient(180deg, transparent, #000 60px);
	}

	/* Centre the spine, which sits at about 43% of the art's width. */
	.hero__art img {
		left: 50%;
		transform: translateX(-42%);
	}

	.knowledge {
		padding-block-start: 12px;
	}

	.knowledge-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.topics {
		padding: 18px 16px;
	}

	/* On phones the article uses the full content width, without a frame. */
	.article {
		padding: 8px 0 0;
		border: 0;
	}

	.article__body {
		font-size: 1.125rem;
		line-height: 1.75;
	}

	.article__body h2 {
		margin-block-start: 40px;
	}

	.article__body .lbp-figure {
		float: none;
		width: min(100%, 460px);
		margin-inline: auto;
	}

	.lbp-box,
	.lbp-answer {
		padding: 18px;
	}

	.author-box {
		display: block;
		padding: 22px 18px;
	}

	.author-box__photo {
		margin-block-end: 14px;
	}

	.page-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.page-hero__content {
		padding: 22px 0 6px;
	}

	.page-hero__art {
		position: relative;
		height: 190px;
		margin-inline: calc(-1 * var(--gutter));
		overflow: hidden;
		-webkit-mask-image: linear-gradient(180deg, transparent, #000 30px, #000 75%, transparent);
		mask-image: linear-gradient(180deg, transparent, #000 30px, #000 75%, transparent);
	}

	.page-hero__art img {
		left: 0;
		width: 100%;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.site-footer__grid {
		gap: 26px 16px;
		padding-block: 34px 28px;
	}

	.site-footer__grid > :first-child,
	.site-footer__grid > :last-child {
		grid-column: 1 / -1;
	}

	.site-footer__about {
		max-width: none;
	}

	.site-footer li a {
		padding-block: 8px;
	}

	.topics__title {
		font-size: 1.4rem;
	}
}

@media (max-width: 28.75em) {
	.topics__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}

/* Search results */

.result {
	padding: 20px 24px;
	border: 1px solid #E3ECF1;
	border-radius: var(--card-radius);
	background: var(--surface);
}

.result h2 {
	margin-block-end: 6px;
	font-size: 1.35rem;
}

.result h2 a {
	text-decoration: none;
}


/* ------------------------------------------------------------------ */
/* Accessibility: header button, preferences panel and display modes    */
/* ------------------------------------------------------------------ */

.a11y-toggle .icon {
	width: 32px;
	height: 32px;
	stroke-width: 1.7;
}

.a11y-panel {
	position: fixed;
	inset-block-start: calc(var(--header-height) + var(--admin-bar) + 8px);
	inset-inline-end: max(12px, calc(50vw - var(--container-width) / 2));
	z-index: 40;
	width: min(340px, calc(100vw - 24px));
	max-height: calc(100dvh - var(--header-height) - var(--admin-bar) - 20px);
	padding: 16px 18px;
	overflow-y: auto;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(11, 35, 57, 0.22);
	color: var(--text);
	font-size: 1rem;
}

.a11y-panel[hidden] {
	display: none;
}

.a11y-panel:focus {
	outline: none;
}

.a11y-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-block-end: 8px;
}

.a11y-panel__title {
	font-size: 1.25rem;
}

.a11y-panel button {
	min-width: 44px;
	min-height: 44px;
	border: 1.5px solid var(--teal);
	border-radius: 10px;
	background: #fff;
	color: var(--heading);
	cursor: pointer;
}

.a11y-panel button[aria-disabled="true"] {
	border-color: var(--border);
	color: var(--text-secondary);
	cursor: default;
}

.a11y-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.a11y-close .icon--close {
	display: block;
	width: 22px;
	height: 22px;
}

.a11y-size {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-block-end: 10px;
}

.a11y-size > :first-child {
	flex: 1 1 auto;
	font-weight: 600;
}

.a11y-size button {
	font-weight: 700;
}

.a11y-size [data-size="-10"]::before {
	content: "א-" / "";
}

.a11y-size [data-size="10"]::before {
	content: "א+" / "";
}

.a11y-size__value {
	min-width: 3.4em;
	text-align: center;
}

.a11y-panel .a11y-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin-block-end: 8px;
	padding: 8px 14px;
	text-align: start;
}

.a11y-option__mark {
	flex: none;
	width: 22px;
	height: 22px;
	border: 2px solid currentColor;
	border-radius: 6px;
}

.a11y-panel .a11y-option[aria-pressed="true"] {
	border-color: var(--teal-dark);
	background: var(--teal-dark);
	color: #fff;
}

.a11y-option[aria-pressed="true"] .a11y-option__mark::after {
	content: "";
	display: block;
	width: 6px;
	height: 12px;
	margin: 0 auto;
	border: solid currentColor;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.a11y-panel .a11y-reset {
	width: 100%;
	font-weight: 600;
}

.a11y-panel__note {
	margin-block-start: 6px;
}

.a11y-panel__note a {
	display: inline-block;
	padding-block: 10px;
}

/* The button needs JavaScript, so it is not shown without it. */
html:not(.js) .a11y-toggle {
	display: none;
}

/* Motion */

html.a11y-still *,
html.a11y-still *::before,
html.a11y-still *::after {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

/* Links */

html.a11y-links a:not(.brand):not(.skip-link) {
	background: #FFF2A8 !important;
	color: #101010 !important;
	text-decoration: underline 2px !important;
	text-underline-offset: 3px;
}

html.a11y-links a:not(.brand):not(.skip-link) * {
	color: #101010 !important;
}

/* Text spacing: the WCAG 1.4.12 values */

html.a11y-spacing :is(main, footer, .a11y-panel) :is(p, li, td, th, summary, a, span, h1, h2, h3, figcaption) {
	letter-spacing: 0.12em !important;
	word-spacing: 0.16em !important;
}

html.a11y-spacing main :is(p, li, td, th, figcaption) {
	line-height: 2 !important;
}

html.a11y-spacing .article__body > p {
	margin-block-end: 2em;
}

/* High contrast */

html.a11y-contrast {
	--hc-bg: #FFFFFF;
	--hc-fg: #000000;
	--hc-link: #00247D;
	--hc-focus: #B00020;
}

html.a11y-dark {
	--hc-bg: #000000;
	--hc-fg: #FFFFFF;
	--hc-link: #FFE45C;
	--hc-focus: #5CF2FF;
}

html:is(.a11y-contrast, .a11y-dark) :is(body, main, header, footer, nav, section, article, aside, div, form, figure, details, summary, ul, ol, li, dl, p, h1, h2, h3, h4, span, strong, em, sup, table, thead, tbody, tr, th, td, figcaption, label, input, button, output, time) {
	border-color: var(--hc-fg) !important;
	background: var(--hc-bg) !important;
	box-shadow: none !important;
	color: var(--hc-fg) !important;
}

html:is(.a11y-contrast, .a11y-dark) :is(.card, .panel, .topics, .lbp-answer, .lbp-box, .author-box, .result, .toc--inline, .article, .search, .wp-block-table) {
	border: 2px solid var(--hc-fg) !important;
}

html:is(.a11y-contrast, .a11y-dark) :is(a, a *, .submenu-toggle, .submenu-toggle *, .header-button, .header-button *) {
	background: var(--hc-bg) !important;
	color: var(--hc-link) !important;
}

html:is(.a11y-contrast, .a11y-dark) main a,
html:is(.a11y-contrast, .a11y-dark) footer a {
	text-decoration: underline !important;
}

html:is(.a11y-contrast, .a11y-dark) :is(.a11y-option[aria-pressed="true"], .a11y-option[aria-pressed="true"] *, .search__submit, .search__submit *) {
	background: var(--hc-fg) !important;
	color: var(--hc-bg) !important;
}

html:is(.a11y-contrast, .a11y-dark) .site-header {
	border-block-end: 2px solid var(--hc-fg);
}

html:is(.a11y-contrast, .a11y-dark) :focus-visible {
	outline-color: var(--hc-focus) !important;
}

html:is(.a11y-contrast, .a11y-dark) :is(.screen-reader-text, .card__link::after) {
	background: none !important;
}

/* Fading illustrations behind text are removed in these modes; the article's own figures stay. */
html:is(.a11y-contrast, .a11y-dark) :is(.hero__art, .page-hero__art) {
	display: none;
}

html:is(.a11y-contrast, .a11y-dark) :is(.hero-grid, .page-hero__grid) {
	grid-template-columns: minmax(0, 1fr);
	min-height: 0;
}

/* Large text: layouts use fewer columns */

html.a11y-large .knowledge-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

html.a11y-large .article-layout {
	grid-template-columns: minmax(0, 1fr);
}

html.a11y-large .toc--side {
	display: none;
}

html.a11y-large .toc--inline {
	display: block;
	margin-block-end: 28px;
	padding: 4px 18px;
	border-radius: 14px;
	background: var(--surface);
}

html.a11y-large .topics__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

html.a11y-large .site-footer__grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

html.a11y-large :is(.hero-grid, .page-hero__grid) {
	grid-template-columns: minmax(0, 1fr);
}

html.a11y-large :is(.hero__art, .page-hero__art) {
	display: none;
}

html.a11y-large .hero__title {
	font-size: clamp(2rem, 5vw, 2.6rem);
}

html.a11y-large :is(.topic, .card__link, .menu > li > a, .brand__text) {
	white-space: normal;
}

/* Long words never push the page sideways */
:is(main, footer) :is(h1, h2, h3, p, li, td, th, a, figcaption, summary) {
	overflow-wrap: anywhere;
}

/* Header: compact mode when the menu does not fit (large text), same as on small screens. Set by main.js. */

.site-header.is-compact .site-nav {
	order: 4;
	margin: 0;
}

.site-header.is-compact .menu-toggle {
	display: inline-flex;
}

.site-header.is-compact .search-toggle {
	order: 2;
	margin-inline: auto 0;
}

.site-header.is-compact .a11y-toggle {
	order: 3;
}

.site-header.is-compact .primary-nav {
	display: none;
	position: absolute;
	inset-inline: 0;
	inset-block-start: 100%;
	max-height: calc(100dvh - var(--header-height) - var(--admin-bar));
	padding: 8px var(--gutter) 20px;
	overflow-y: auto;
	background: var(--navy-deep);
}

.site-header.is-compact.is-menu-open .primary-nav {
	display: block;
}

.site-header.is-compact.is-menu-open .menu-toggle .icon--close {
	display: block;
}

.site-header.is-compact.is-menu-open .menu-toggle .icon--menu {
	display: none;
}

.site-header.is-compact .menu {
	display: block;
}

.site-header.is-compact .menu > li {
	flex-wrap: wrap;
	border-block-end: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header.is-compact .menu > li > a {
	flex: 1;
	font-size: 1.125rem;
}

.site-header.is-compact .submenu-toggle {
	width: 48px;
	height: 48px;
}

.site-header.is-compact .sub-menu {
	position: static;
	display: none;
	width: 100%;
	margin-block-end: 12px;
	padding: 4px;
	border: 0;
	background: rgba(255, 255, 255, 0.07);
	box-shadow: none;
}

.site-header.is-compact .sub-menu a {
	color: #fff;
}

.site-header.is-compact .submenu-toggle[aria-expanded="true"] + .sub-menu {
	display: block;
}

/* Short screens (landscape phones, high zoom): the header scrolls away to leave room for reading. */

@media (max-height: 30em) {
	.site-header {
		position: relative;
		inset-block-start: 0;
	}

	html {
		scroll-padding-block-start: 12px;
	}

	.a11y-panel {
		inset-block-start: 8px;
		max-height: calc(100dvh - 16px);
	}
}

/* ------------------------------------------------------------------ */
/* Touch targets and mobile reading                                     */
/* ------------------------------------------------------------------ */

@media (max-width: 62.4375em) {
	.sub-menu a,
	.topic-group a,
	.toc a,
	.site-footer li a,
	.breadcrumbs a,
	.a11y-panel__note a {
		display: flex;
		align-items: center;
		min-height: 44px;
	}

	.site-footer li a,
	.breadcrumbs a {
		display: inline-flex;
		min-width: 44px;
	}

	.breadcrumbs li {
		display: flex;
		align-items: center;
		min-height: 44px;
	}

	.brand {
		min-height: 48px;
	}

	.card__link,
	.search__submit {
		min-height: 48px;
	}

	.byline a,
	.author-box__contact a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	#further-reading + ul a {
		display: inline-block;
		padding-block: 8px;
	}

	.ref a {
		padding: 8px 6px;
	}

	.header-button {
		width: 46px;
		height: 46px;
	}
}

@media (max-width: 40em) {
	.site-header__inner {
		gap: 2px;
	}

	.brand {
		gap: 6px;
		min-width: 0;
		flex: 0 1 auto;
	}

	/* Tables become cards: the first cell is the card's title, other cells carry their column's name. */
	.article__body .wp-block-table {
		border: 0;
		overflow: visible;
	}

	.article__body table,
	.article__body tbody,
	.article__body tr,
	.article__body td {
		display: block;
		width: 100%;
		min-width: 0 !important;
	}

	.article__body thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.article__body tbody tr,
	.article__body tbody tr:nth-child(even) {
		margin-block-end: 14px;
		overflow: hidden;
		border: 1px solid var(--border);
		border-radius: 14px;
		background: #fff;
	}

	.article__body tbody td {
		padding: 10px 14px;
		font-size: 1.0625rem;
	}

	.article__body tbody td:first-child {
		border-block-start: 0;
		background: var(--navy);
		color: #fff;
		font-size: 1.1rem;
	}

	.article__body tbody td:first-child a {
		color: #fff;
	}

	.article__body tbody td[data-label]::before {
		content: attr(data-label);
		display: block;
		color: var(--text-secondary);
		font-size: 0.97rem;
		font-weight: 600;
	}
}

@media (max-width: 22.5em) {
	.brand__mark {
		width: 22px;
		height: 38px;
	}

	.brand__name {
		font-size: 1.1rem;
	}

	.brand__domain {
		font-size: 0.78rem;
	}

	.header-button {
		width: 44px;
	}

	.article__body {
		font-size: 1.0625rem;
	}
}

@media (forced-colors: active) {
	.card,
	.panel,
	.lbp-box,
	.lbp-answer,
	.search,
	.topic {
		border: 1px solid CanvasText;
	}
}

.result h2 a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

/* Schematic diagrams */

.lbp-figure--diagram img {
	padding: 10px;
	border: 1px solid var(--border);
	background: #fff;
}

.article__body .lbp-figure--diagram:not(.lbp-figure--wide) {
	width: min(48%, 420px);
}

@media (max-width: 40em) {
	.article__body .lbp-figure--diagram:not(.lbp-figure--wide) {
		width: 100%;
	}
}

/* Home page, phones only: jump to the article before the cards */

.jump-to-article {
	display: none;
}

.author-box__more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

@media (max-width: 40em) {
	.jump-to-article {
		display: block;
		padding-block: 6px 10px;
	}

	.jump-to-article a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		border: 1.5px solid var(--teal);
		border-radius: 24px;
		color: #004F57;
		font-weight: 600;
		text-decoration: none;
	}
}

/* Home page cards: two by two on phones wide enough to keep the titles on one line */

@media (min-width: 24em) and (max-width: 40em) {
	html:not(.a11y-large) .knowledge-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	html:not(.a11y-large) .knowledge-grid .card__title {
		font-size: 1.2rem;
	}

	html:not(.a11y-large) .knowledge-grid .card__text {
		font-size: 1.0625rem;
	}
}

/* Clinic: arrival details and map on request */

.visit {
	clear: both;
	margin-block-start: 40px;
	padding: 28px 30px;
	border: 1px solid var(--border);
	border-radius: var(--card-radius);
	line-height: 1.65;
}

.visit__title {
	margin-block-end: 12px;
	font-size: 1.4rem;
}

.visit__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

.visit__grid > * {
	min-width: 0;
}

.visit__hours {
	margin: 12px 0;
}

.visit__hours > div {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.visit__hours dt {
	min-width: 7.5em;
	font-weight: 600;
}

.visit__hours dd {
	margin: 0;
}

.visit__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.visit a,
.author-box__more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.map-embed {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 260px;
	padding: 20px;
	border-radius: 14px;
	background: var(--surface);
	text-align: center;
}

.map-embed.is-loaded {
	padding: 0;
	overflow: hidden;
}

.map-embed iframe {
	width: 100%;
	min-height: 320px;
	border: 0;
}

.map-embed__load,
.lightbox button {
	min-height: 44px;
	padding: 10px 24px;
	border: 2px solid var(--navy);
	border-radius: 24px;
	background: var(--navy);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.map-embed__load[hidden] {
	display: none;
}

.map-embed__load:hover,
.lightbox button:hover {
	border-color: var(--teal-dark);
	background: var(--teal-dark);
}

.map-embed__note {
	max-width: 34em;
	color: var(--text-secondary);
	font-size: 0.97rem;
}

/* Galleries and enlarged view */

.article__body .lbp-gallery,
.gallery-block .lbp-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 20px;
	margin-inline: 0;
	padding: 0;
	list-style: none;
}

.article__body .lbp-gallery li + li,
.gallery-block li + li {
	margin: 0;
}

.lbp-gallery figure {
	margin: 0;
}

.lbp-zoom {
	display: block;
	border-radius: 14px;
	cursor: zoom-in;
}

.lbp-gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	object-fit: cover;
	background: var(--surface);
}

.lbp-gallery figcaption {
	margin-block-start: 8px;
	color: var(--text-secondary);
	font-size: 0.97rem;
	line-height: 1.45;
}

.gallery-block {
	margin-block-start: 40px;
}

.lightbox {
	width: min(960px, calc(100vw - 24px));
	max-width: none;
	max-height: calc(100vh - 24px);
	padding: 16px 20px 20px;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: var(--text);
	overflow: auto;
}

.lightbox::backdrop {
	background: rgba(11, 35, 57, 0.86);
}

.lightbox__bar,
.lightbox__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.lightbox__nav[hidden] {
	display: none;
}

.lightbox__img {
	width: auto;
	max-height: 66vh;
	margin: 14px auto;
	object-fit: contain;
}

.lightbox__caption {
	margin-block-end: 12px;
	text-align: center;
}

.author-intro {
	display: grid;
	grid-template-columns: 190px 1fr;
	gap: 28px;
	align-items: start;
}

.author-intro img {
	width: 100%;
	border-radius: 14px;
	background: #fff;
}

.author-box__more + .author-box__more {
	margin-inline-start: 20px;
}

/* Reviews */

.article__body .lbp-review {
	margin: 20px 0;
	padding: 18px 24px;
	border-inline-start: 5px solid var(--teal);
	border-radius: 14px;
	background: var(--surface);
}

.lbp-review blockquote {
	margin: 8px 0;
	font-weight: 600;
}

.lbp-review figcaption {
	color: var(--text-secondary);
	font-size: 0.97rem;
}

@media (max-width: 40em) {
	.visit {
		padding: 20px 18px;
	}

	.visit__grid,
	.author-intro {
		grid-template-columns: 1fr;
	}

	.author-intro img {
		width: 170px;
	}
}

html:is(.a11y-contrast, .a11y-dark) :is(.visit, .map-embed, .lbp-review) {
	border: 2px solid currentColor;
	background: transparent;
}

html.a11y-dark .lightbox {
	background: #000;
	color: #fff;
}

html.a11y-large :is(.visit__grid, .author-intro) {
	grid-template-columns: 1fr;
}

html.a11y-dark ::placeholder {
	color: #fff;
	opacity: 1;
}

html.a11y-contrast ::placeholder {
	color: #000;
	opacity: 1;
}

.nowrap {
	white-space: nowrap;
}

/* A column is never narrower than its heading, where tables keep their columns. */
@media (min-width: 62.5em) {
	html:not(.a11y-large, .a11y-spacing) .article__body :is(th, td:first-child) {
		overflow-wrap: normal;
	}
}

.article__body th a {
	color: var(--turquoise-bright);
}

/* Contact buttons */

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-block: 12px 0;
}

.contact-actions .contact-button,
.visit a.contact-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 8px 18px;
	border: 2px solid var(--navy);
	border-radius: 24px;
	background: var(--navy);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.contact-actions .contact-button--whatsapp,
.visit a.contact-button--whatsapp {
	border-color: #0B5E36;
	background: #0B5E36;
}

.contact-actions .contact-button:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.contact-button .icon {
	flex: none;
	width: 22px;
	height: 22px;
	stroke-width: 2;
}

.panel--contact p {
	margin: 0;
	line-height: 1.5;
}

.panel--contact .contact-actions {
	margin-block-start: 12px;
}

/* Phones: the bar sticks to the bottom inside its own space, so it never hides the end of the page. */
.contact-bar {
	display: none;
}

@media (max-width: 40em) {
	.contact-bar {
		position: sticky;
		inset-block-end: 0;
		z-index: 30;
		display: block;
		padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
		border-block-start: 1px solid var(--border);
		background: #fff;
	}

	.contact-bar .contact-actions {
		flex-wrap: nowrap;
		justify-content: center;
		gap: 8px;
		margin: 0;
	}

	.contact-bar .contact-button {
		flex: 1 1 auto;
		justify-content: center;
		min-height: 46px;
		padding: 6px 10px;
	}

	html {
		scroll-padding-block-end: 76px;
	}
}

@media (max-height: 30em) {
	.contact-bar {
		position: static;
	}

	html {
		scroll-padding-block-end: 0;
	}
}

html.a11y-large .contact-bar {
	position: static;
}

html.a11y-large .contact-bar .contact-actions {
	flex-wrap: wrap;
}

html:is(.a11y-contrast, .a11y-dark) .contact-bar {
	border-block-start: 2px solid currentColor;
}

html.a11y-dark .contact-bar {
	background: #000;
}

/* Certificates */

.lbp-gallery--certificates img {
	aspect-ratio: 3 / 4;
	object-fit: contain;
	border: 1px solid var(--border);
}

.lightbox--document .lightbox__img {
	width: min(100%, 900px);
	max-width: 100%;
	max-height: none;
}

.lightbox--document .lightbox__bar {
	position: sticky;
	inset-block-start: -16px;
	z-index: 1;
	padding-block: 8px;
	background: #fff;
}

html.a11y-dark .lightbox--document .lightbox__bar {
	background: #000;
}

.related-site {
	color: var(--text-secondary);
	font-size: 0.92em;
}

html.a11y-dark .related-site {
	color: #fff;
}

/* Measurement question */

.consent {
	border-block-start: 3px solid var(--teal);
	background: var(--surface);
}

.consent[hidden],
.link-button[hidden] {
	display: none;
}

.consent__inner {
	max-width: var(--container-width);
	margin-inline: auto;
	padding: 18px var(--gutter);
}

.consent__title {
	margin-block-end: 6px;
	font-size: 1.15rem;
}

.consent__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-block-start: 12px;
}

.consent__button {
	min-height: 46px;
	padding: 8px 22px;
	border: 2px solid var(--navy);
	border-radius: 24px;
	background: #fff;
	color: var(--navy);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.link-button {
	min-height: 44px;
	padding: 0 8px;
	border: 0;
	background: none;
	color: #fff;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

html.a11y-dark .consent {
	background: #000;
}
