/* About, Media and Certificate pages in the Home page style.
   Loaded after theme.css on pages with body.theme-calm, scoped to main.ip. Mobile first. */

.ip h4 {
	margin: 0;
}

.ip svg {
	display: block;
}

.ip-alt {
	background: var(--sand);
}

/* Section headings */
.ip-head {
	max-width: 760px;
	margin-bottom: 34px;
}

.ip-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: 30px;
}

.ip-head-row .ip-head {
	margin-bottom: 0;
}

.ip h3.hv-title {
	font-size: clamp(24px, 2.8vw, 34px);
}

.ip-lede {
	margin-top: 14px !important;
	color: var(--muted);
	font-size: 16.5px;
	line-height: 1.75;
}

/* Small rounded icon box */
.ip-ico {
	display: flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--mint);
	color: var(--teal);
	transition: background-color .3s ease, color .3s ease, transform .35s var(--ease);
}

.ip-ico svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Text link with an arrow */
.ip-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--teal);
	font-size: 15px;
	font-weight: 700;
}

.ip-arrow {
	display: flex;
	flex: 0 0 32px;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: #fff;
	color: var(--teal);
	transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .35s var(--ease);
}

.ip-arrow svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ip-link:hover .ip-arrow,
.ip-link:focus-visible .ip-arrow {
	border-color: var(--teal);
	background: var(--teal);
	color: #fff;
	transform: rotate(-45deg);
}

/* ============ About: intro ============ */
.ip-intro-grid {
	display: grid;
	gap: 40px;
	align-items: center;
}

.ip-points {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px !important;
}

.ip-points li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 16px 6px 6px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--navy);
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(0, 71, 94, .06);
}

.ip-points .ip-ico {
	flex-basis: 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--teal);
	color: #fff;
}

.ip-points .ip-ico svg {
	width: 17px;
	height: 17px;
}

.ip-photo {
	position: relative;
	padding: 0 0 16px 16px;
}

.ip-photo::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 70%;
	height: 72%;
	border-radius: 22px;
	background: linear-gradient(135deg, var(--teal), var(--light-color));
}

.ip-photo img {
	position: relative;
	width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: var(--shadow-deep);
}

.ip-photo-tag {
	position: absolute;
	right: 14px;
	bottom: 32px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px 10px 10px;
	border-radius: 14px;
	background: #fff;
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	box-shadow: var(--shadow-deep);
}

.ip-photo-tag small {
	display: block;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

/* ============ About: qualification cards (Home care card style) ============ */
.ip-cards {
	display: grid;
	gap: 18px;
	counter-reset: tc-care;
}

.ip-cards .hv-care-card,
.ip-cards .hv-care-card:last-child {
	grid-column: auto !important;
}

.ip .hv-care-card h4 {
	color: var(--navy);
	font-family: var(--heading);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	transition: color .3s ease;
}

.ip .hv-care-card:hover h4,
.ip .hv-care-card:focus-visible h4 {
	color: #fff;
}

.ip .hv-care-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ============ About: areas of surgical care ============ */
.ip-areas {
	display: grid;
	gap: 12px;
}

.ip-areas a {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 14px 14px 14px 16px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
	color: var(--navy);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.4;
	box-shadow: 0 6px 18px rgba(0, 71, 94, .05);
	transition: border-color .3s ease, box-shadow .35s var(--ease), translate .35s var(--ease);
}

.ip-areas .ip-txt {
	flex: 1 1 auto;
}

.ip-areas a:hover,
.ip-areas a:focus-visible {
	border-color: var(--teal);
	box-shadow: 0 16px 34px rgba(0, 71, 94, .14);
	translate: 0 -3px;
}

.ip-areas a:hover .ip-ico,
.ip-areas a:focus-visible .ip-ico {
	background: var(--teal);
	color: #fff;
	transform: rotate(-5deg);
}

.ip-areas a:hover .ip-arrow,
.ip-areas a:focus-visible .ip-arrow {
	border-color: var(--teal);
	background: var(--teal);
	color: #fff;
	transform: rotate(-45deg);
}

/* Last row: contact strip */
.ip-areas .ip-areas-cta {
	grid-column: 1 / -1;
}

.ip-areas .ip-areas-cta a {
	border-color: transparent;
	background: linear-gradient(135deg, #00384b, var(--teal));
	color: #fff;
}

.ip-areas .ip-areas-cta small {
	display: block;
	color: #bfe3ee;
	font-size: 13.5px;
	font-weight: 500;
}

.ip-areas .ip-areas-cta .ip-ico,
.ip-areas .ip-areas-cta a:hover .ip-ico {
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

.ip-areas .ip-areas-cta .ip-arrow,
.ip-areas .ip-areas-cta a:hover .ip-arrow {
	border-color: #fff;
	background: #fff;
	color: var(--teal);
}

/* ============ Dark panels: clinic details and the closing strip ============ */
.ip-panel {
	border-radius: 24px;
	color: #fff;
}

.ip-panel > *:not(.sf-bg) {
	position: relative;
}

.ip-panel .hv-eyebrow {
	color: #bfe3ee;
}

.ip-panel .hv-title {
	color: #fff;
}

.ip-panel p {
	color: rgba(255, 255, 255, .85);
}

.theme-calm .ip-panel .btn-style-one,
.theme-calm .ip-panel .btn-style-one:hover,
.theme-calm .ip-panel .btn-style-one:focus {
	background: #fff;
	color: var(--teal-dark);
}

.theme-calm .ip-panel .btn-style-one::before {
	background: #cfe4ec;
}

.theme-calm .ip-panel .btn-style-two {
	border-color: rgba(255, 255, 255, .55);
	color: #fff;
}

.theme-calm .ip-panel .btn-style-two::before {
	background: rgba(255, 255, 255, .16);
}

.theme-calm .ip-panel .btn-style-two:hover,
.theme-calm .ip-panel .btn-style-two:focus {
	border-color: #fff;
	color: #fff;
}

.ip-visit {
	display: grid;
	gap: 26px;
	align-items: center;
	padding: 16px;
}

.ip-visit-photo img {
	width: 100%;
	height: 100%;
	border-radius: 18px;
	object-fit: cover;
	aspect-ratio: 534 / 392;
}

.ip-visit-body {
	padding: 0 6px 10px;
}

.ip-contact {
	display: grid;
	gap: 10px;
	margin: 20px 0 0 !important;
}

.ip-contact a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 14px;
	background: rgba(255, 255, 255, .07);
	color: #fff;
	font-size: 15px;
	line-height: 1.5;
	transition: background-color .3s ease, border-color .3s ease;
}

.ip-contact a:hover,
.ip-contact a:focus-visible {
	border-color: rgba(255, 255, 255, .5);
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

.ip-contact small {
	display: block;
	color: #bfe3ee;
	font-size: 12.5px;
	font-weight: 600;
}

.ip-contact .ip-ico {
	background: #fff;
	color: var(--teal);
}

.ip-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin-top: 48px;
	padding: 28px 22px;
}

.ip-cta h3 {
	color: #fff;
	font-family: var(--heading);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.ip-cta p {
	margin-top: 6px !important;
	font-size: 15px;
}

.ip-cta .hv-actions {
	margin-top: 0;
}

/* ============ Media ============ */
.ip-media-grid {
	display: grid;
	gap: 18px;
}

.ip-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 71, 94, .06);
	transition: border-color .3s ease, box-shadow .35s var(--ease), translate .35s var(--ease);
}

.ip-card:hover,
.ip-card:focus-visible {
	border-color: var(--teal);
	box-shadow: 0 22px 44px rgba(0, 71, 94, .18);
	translate: 0 -6px;
}

.ip-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--navy);
}

.ip-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--ease);
}

.ip-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 56, 75, .55), rgba(0, 56, 75, 0) 55%);
	opacity: .6;
	transition: opacity .3s ease;
}

.ip-card:hover .ip-thumb img,
.ip-card:focus-visible .ip-thumb img {
	transform: scale(1.06);
}

.ip-card:hover .ip-thumb::after,
.ip-card:focus-visible .ip-thumb::after {
	opacity: 1;
}

.ip-card .hv-play {
	padding-left: 0;
}

.ip-card .hv-play svg {
	width: 18px;
	height: 18px;
	margin-left: 3px;
	fill: currentColor;
}

.ip-card:hover .hv-play,
.ip-card:focus-visible .hv-play {
	transform: scale(1.14);
}

.ip-cap {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px 20px 20px;
}

.ip-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--mint);
	color: var(--teal-dark);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ip-tag svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ip-cap h3,
.ip-cap h4 {
	color: var(--navy);
	font-family: var(--heading);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

.ip-cap p {
	margin-top: 4px !important;
	color: var(--muted);
	font-size: 14.5px;
	line-height: 1.55;
}

/* ============ Certificates ============ */
.ip-group {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 46px 0 20px;
}

.ip-head + .ip-group {
	margin-top: 0;
}

.ip-group::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--line);
}

.ip-group .ip-ico {
	flex-basis: 44px;
	width: 44px;
	height: 44px;
	background: var(--teal);
	color: #fff;
}

.ip-group h3 {
	color: var(--navy);
	font-family: var(--heading);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
}

.ip-group span.ip-count {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--mint);
	color: var(--teal-dark);
	font-size: 13px;
	font-weight: 700;
}

.ip-cert-grid {
	display: grid;
	gap: 18px;
}

.ip-cert .ip-thumb {
	aspect-ratio: 4 / 3;
	padding: 14px;
	background: var(--sand);
}

.ip-cert .ip-thumb::after {
	background: rgba(0, 56, 75, .35);
	opacity: 0;
}

.ip-cert .ip-thumb img {
	border-radius: 6px;
	object-fit: contain;
	filter: drop-shadow(0 6px 14px rgba(0, 71, 94, .18));
}

.ip-zoom {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin: -25px 0 0 -25px;
	border-radius: 50%;
	background: #fff;
	color: var(--teal-dark);
	box-shadow: var(--shadow-deep);
	opacity: 0;
	transform: scale(.7);
	transition: opacity .3s ease, transform .35s var(--ease);
}

.ip-zoom svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ip-cert:hover .ip-zoom,
.ip-cert:focus-visible .ip-zoom {
	opacity: 1;
	transform: scale(1);
}

/* ============ 576px and up ============ */
@media (min-width: 576px) {
	.ip-areas,
	.ip-media-grid,
	.ip-cert-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ip-media-grid > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.ip-media-grid > :last-child:nth-child(odd) .ip-thumb {
		aspect-ratio: 16 / 7;
	}

	.ip-photo {
		padding: 0 0 22px 22px;
	}

	.ip-visit {
		padding: 22px;
	}

	.ip-cta {
		padding: 30px 32px;
	}
}

/* ============ 768px and up ============ */
@media (min-width: 768px) {
	.ip-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 22px;
	}

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

	/* Four cards: two rows of two until there is room for four */
	.ip-cert-grid.ip-four {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ============ 992px and up ============ */
@media (min-width: 992px) {
	.ip-intro-grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		gap: 64px;
	}

	.ip-areas {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
	}

	.ip-visit {
		grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
		gap: 48px;
		padding: 28px;
	}

	.ip-visit-body {
		padding: 10px 20px 10px 0;
	}

	/* Media and gallery: rows of three; two left over share a row as wider cards, one left over sits in the middle */
	.ip-media-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 24px;
	}

	.ip-media-grid > * {
		grid-column: span 2;
	}

	.ip-media-grid > :nth-last-child(2):nth-child(3n+1):nth-child(n+4),
	.ip-media-grid > :last-child:nth-child(3n+2):nth-child(n+4) {
		grid-column: span 3;
	}

	.ip-media-grid > :last-child:nth-child(3n+1):nth-child(n+4) {
		grid-column: 3 / span 2;
	}

	.ip-media-grid > :last-child:nth-child(odd) .ip-thumb {
		aspect-ratio: 16 / 10;
	}

	.ip-cert-grid {
		gap: 22px;
	}

	.ip-cta {
		padding: 34px 40px;
	}

	.ip-cta h3 {
		font-size: 24px;
	}
}

/* ============ 1200px and up ============ */
@media (min-width: 1200px) {
	.ip-cert-grid.ip-four {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.ip-card:hover,
	.ip-card:focus-visible,
	.ip-areas a:hover,
	.ip-areas a:focus-visible {
		translate: none;
	}

	.ip-thumb img,
	.ip-card:hover .ip-thumb img {
		transform: none;
	}
}

/* ============ Specialty cards and FAQ under an h3 section title (titles one level down) ============ */
.ip .hv-spec h4 {
	margin: 0;
	color: var(--navy);
	font-family: var(--heading);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.ip .hv-spec.hv-spec-contact h4 {
	color: #fff;
}

@media (min-width: 576px) {
	.ip .hv-spec-grid > .hv-spec.hv-spec-contact > div > h4 {
		grid-column: 1;
		margin-bottom: 0;
	}
}

/* FAQ page: the help card title is an h3 here, styled like the Home h4 */
.hv-faq-card h3 {
	margin: 0;
	color: #fff;
	font-family: var(--heading);
	font-size: 17px;
	font-weight: 600;
}

/* ============ Contact page ============ */
/* Contact cards: no step numbers */
.ip-cards-plain .hv-care-card::after {
	display: none;
}

.ip-cards-plain .hv-care-card p {
	overflow-wrap: anywhere;
}

/* Form and map share one white panel, the map fills the right side */
.theme-calm .contact-form-one .cp-row {
	align-items: stretch;
}

.theme-calm .contact-form-one .cp-map {
	height: 100%;
	min-height: 320px;
	overflow: hidden;
	background: var(--sand);
}

.theme-calm .contact-form-one .cp-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
}

.theme-calm .contact-form-one .intl-tel-input,
.theme-calm .contact-form-one .intl-tel-input input[type="tel"] {
	width: 100%;
}

@media (min-width: 576px) {
	.theme-calm .contact-form-one .default-form {
		padding: 32px 30px;
	}
}

@media (min-width: 992px) {
	.theme-calm .contact-form-one .default-form {
		padding: 40px;
	}
}

/* FAQ page: the closing strip sits below the questions */
.hv-faq .ip-cta {
	margin-top: 56px;
}

/* Media grid with three cards (Gallery): one row of three on desktops */
@media (min-width: 992px) {
	.ip-media-grid > :last-child:nth-child(3):not(:nth-child(n+4)) {
		grid-column: span 2;
	}
}

/* ============ Doctor profile: qualification and experience cards ============ */
.ip-info-grid {
	display: grid;
	gap: 18px;
}

.ip-info-card {
	padding: 24px 22px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 71, 94, .06);
}

.ip-info-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}

.ip-info-head .ip-ico {
	flex-basis: 46px;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--teal);
	color: #fff;
}

.ip-info-head h4 {
	color: var(--navy);
	font-family: var(--heading);
	font-size: 19px;
	font-weight: 600;
}

.ip .ip-ticks {
	display: grid;
	gap: 12px;
}

.ip-ticks li {
	position: relative;
	padding-left: 32px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.65;
}

.ip-ticks li::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--mint);
}

.ip-ticks li::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 8px;
	width: 6px;
	height: 10px;
	border: solid var(--teal);
	border-width: 0 2px 2px 0;
	transform: rotate(40deg);
}

@media (min-width: 768px) {
	.ip-info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.ip-info-card {
		padding: 28px;
	}
}

/* ============ Terms and Privacy: the text in one readable card ============ */
.ip-legal {
	max-width: 960px;
	margin: 0 auto;
	padding: 26px 20px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(0, 71, 94, .08);
}

.ip-legal .hv-title {
	margin-bottom: 8px;
}

.ip-legal p,
.ip-legal li {
	color: var(--muted);
	font-size: 15.5px;
	line-height: 1.75;
	text-align: left;
}

.ip-legal p {
	margin: 0 0 8px;
}

.ip-legal .ip-legal-date {
	display: inline-block;
	margin-bottom: 18px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--mint);
	color: var(--teal-dark);
	font-size: 13.5px;
	font-weight: 700;
}

.ip-legal a {
	color: var(--teal);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ip-legal b {
	color: var(--navy);
	font-weight: 600;
}

.ip-legal-sec {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.ip-legal-sec h3 {
	margin: 0 0 10px;
	color: var(--navy);
	font-family: var(--heading);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.35;
}

.ip .ip-legal ol,
.ip .ip-legal ul {
	margin: 8px 0 0;
	padding-left: 22px;
}

.ip .ip-legal ol {
	list-style: decimal;
}

.ip .ip-legal ul {
	list-style: disc;
}

.ip .ip-legal li {
	margin-bottom: 8px;
	list-style: inherit;
}

.ip-legal li::marker {
	color: var(--teal);
	font-weight: 700;
}

@media (min-width: 576px) {
	.ip-legal {
		padding: 36px 34px;
	}
}

@media (min-width: 992px) {
	.ip-legal {
		padding: 48px 52px;
	}
}

/* ============ Blogs ============ */
.bl-tools {
	display: grid;
	gap: 14px;
	margin-bottom: 14px;
}

.bl-tools label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	color: var(--navy);
	font-size: 14px;
	font-weight: 600;
}

.bl-tools select,
.bl-tools input {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #f7fbfc;
	color: var(--text);
	font-size: 15px;
	font-weight: 400;
}

.bl-tools select:focus,
.bl-tools input:focus {
	border-color: var(--teal);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(0, 91, 120, .12);
	outline: 0;
}

.bl-count {
	margin-bottom: 18px !important;
	color: var(--muted);
	font-size: 14px;
}

.bl-grid {
	display: grid;
	gap: 18px;
}

.bl-card[hidden] {
	display: none;
}

.bl-card .ip-cap h3 {
	margin-bottom: 12px;
	font-size: 16px;
}

.bl-card .hv-more {
	margin-top: auto;
}

.bl-empty {
	padding: 24px;
	border-radius: 14px;
	background: var(--sand);
	text-align: center;
}

.bl-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 32px;
}

.bl-pager[hidden] {
	display: none;
}

.bl-pager span {
	color: var(--navy);
	font-weight: 600;
}

.bl-pager .theme-btn:disabled {
	opacity: .4;
	pointer-events: none;
}

@media (min-width: 576px) {
	.bl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

@media (min-width: 992px) {
	.bl-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.bl-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Blog article: share links */
.bl-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 22px 0 28px !important;
	color: var(--navy);
	font-weight: 600;
}

.bl-share a {
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--teal-dark);
	font-size: 14px;
	transition: border-color .2s ease, background-color .2s ease;
}

.bl-share a:hover,
.bl-share a:focus-visible {
	border-color: var(--teal);
	background: var(--mint);
}

/* Two certificates (registration): two columns, kept to the width of two of the three-column cards */
@media (min-width: 992px) {
	.ip-cert-grid.ip-two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: calc((100% - 44px) / 3 * 2 + 22px);
	}
}

/* Five certificates in three columns: the last two sit in the middle of their row */
@media (min-width: 768px) {
	.ip-cert-grid.ip-five {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.ip-cert-grid.ip-five > * {
		grid-column: span 2;
	}

	.ip-cert-grid.ip-five > :nth-child(4) {
		grid-column: 2 / span 2;
	}
}

@media (min-width: 576px) and (max-width: 767px) {
	.ip-cert-grid.ip-five > :last-child {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - 9px);
	}
}

/* About: portrait photos shown in the landscape frames, kept on the face */
.ip-photo img.ip-photo-fit {
	width: 100%;
	aspect-ratio: 826 / 605;
	object-fit: cover;
	object-position: 50% 22%;
}

.ip-visit-photo img.ip-photo-fit {
	object-position: 50% 28%;
}
