/*
 * Category pages (pages with the "Category page" template) · Figma "Website Pages" → Category · Gastroenterology.
 * Content column: up to 1440px like the homepage sections (site-wide width decision; the Figma frame shows 1120), 24px between blocks. Template: templates/page-category.html.
 * Sections are Group blocks with the "Section" / "Section · white" style.
 */

/* ---------- Page column ---------- */
body:has(.liv-cat) { background: var(--wp--preset--color--surface); }
.liv-main.liv-cat { display: flex; flex-direction: column; gap: 24px; box-sizing: border-box; inline-size: 100%; max-inline-size: none; margin-inline: auto; margin-block-start: 0 !important; padding-block: 16px 48px; padding-inline: var(--liv-side, 32px) var(--liv-side-end, var(--liv-side, 32px)); color: var(--wp--preset--color--ink); }
.liv-cat > *, .liv-cat__content > * { margin-block: 0 !important; max-inline-size: none !important; min-inline-size: 0; }
/* Two classes: core prints ".wp-block-post-content { display: flow-root }" later, which must not win. */
.liv-cat .liv-cat__content { display: flex; flex-direction: column; gap: 24px; }
.liv-cat > .liv-cat__content:empty { display: none; }

/* ---------- Breadcrumb (Liv / Shell / Breadcrumb) ---------- */
.liv-cat .livh-seo-crumbs { gap: 0 8px; margin: 0; padding: 8px 16px; border-radius: var(--wp--custom--radius--card); font-size: var(--wp--preset--font-size--small); line-height: 1.5; }
.liv-cat .livh-seo-crumbs [aria-current] { font-weight: 400; -webkit-text-stroke-width: 0; }
/* Separator: "›" whatever the SEO setting prints. */
.liv-cat .livh-seo-crumbs__ayirac { opacity: 1; font-size: 0; }
.liv-cat .livh-seo-crumbs__ayirac::before { content: "›"; font-size: var(--wp--preset--font-size--small); font-weight: 700; -webkit-text-stroke-width: 0; }

/* ---------- Hero (Liv / Pattern / Hero): banner, H1, action, accreditation strip ---------- */
.liv-cat-hero { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; background: var(--wp--preset--color--surface-tint); border-radius: var(--wp--custom--radius--card); }
.liv-cat-hero > * { margin: 0 !important; max-inline-size: none !important; }
.liv-cat-hero__image img { display: block; inline-size: 100%; block-size: 290px; object-fit: cover; border-radius: var(--wp--custom--radius--sm); }
.liv-cat-hero__title { font-size: var(--wp--preset--font-size--heading-1); line-height: 1.2; letter-spacing: -0.005em; color: var(--wp--preset--color--ink); }
@media (min-width: 1024px) {
	.liv-cat-hero .liv-accred__badges { justify-content: center; gap: 64px; }
	.liv-cat-hero .liv-accred__badge { flex-direction: row; gap: 12px; inline-size: auto; }
	.liv-cat-hero .liv-accred__label { font-size: var(--wp--preset--font-size--body); line-height: 1.55; text-align: start; }
}

/* ---------- Intro: section label, review line, lead paragraph ---------- */
.liv-review-meta { display: flex; flex-direction: column; gap: 12px; }
.liv-review-meta > p { margin: 0; }
.liv-review-meta__label { font-size: var(--wp--preset--font-size--small); line-height: 1.4; font-weight: var(--liv-fw-label, 600); -webkit-text-stroke-width: var(--liv-ts-label, 0); text-transform: uppercase; color: var(--wp--preset--color--action); }
.liv-review-meta__line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--wp--preset--font-size--small); line-height: 1.5; color: var(--wp--preset--color--text-secondary); }
.liv-review-meta__icon { flex: none; color: var(--wp--preset--color--action); }
.liv-review-meta a, .liv-reviewed a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.liv-review-meta a:hover, .liv-reviewed a:hover { color: var(--wp--preset--color--action); }
/* Label, review line, lead and stats sit 12px apart (one "Intro" group in the design). */
.liv-cat > .liv-review-meta + .liv-cat__content { margin-block-start: -12px !important; }
.liv-cat__content > p { font-size: var(--wp--preset--font-size--large); line-height: 1.55; color: var(--wp--preset--color--ink); }
.liv-cat__content > p + .is-style-stats { margin-block-start: -12px !important; }

/* ---------- Sections (rounded cards; H2 + text) ---------- */
.is-style-section, .is-style-section-white { display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; min-inline-size: 0; padding: 32px; border-radius: var(--wp--custom--radius--card); background: var(--wp--preset--color--surface-subtle); color: var(--wp--preset--color--ink); }
.is-style-section-white { background: var(--wp--preset--color--surface); }
.is-style-section > *, .is-style-section-white > * { margin-block: 0 !important; max-inline-size: none !important; min-inline-size: 0; }
:is(.is-style-section, .is-style-section-white) :where(h2.wp-block-heading) { font-size: var(--wp--preset--font-size--heading-2); line-height: 1.25; letter-spacing: -0.003em; color: var(--wp--preset--color--ink); }
:is(.is-style-section, .is-style-section-white) :where(h3.wp-block-heading) { font-size: var(--wp--preset--font-size--heading-3); line-height: 1.3; color: var(--wp--preset--color--ink); }
:is(.is-style-section, .is-style-section-white) :where(p, li) { font-size: var(--wp--preset--font-size--body); line-height: 1.55; }
:is(.is-style-section, .is-style-section-white) :where(ul, ol):not(.is-style-chips, .is-style-check, .is-style-steps) { display: flex; flex-direction: column; gap: 8px; padding-inline-start: 22px; }
:is(.is-style-section, .is-style-section-white) :where(li)::marker { color: var(--wp--preset--color--action); }
.liv-cat h2[id] { scroll-margin-block-start: calc(var(--liv-bar, var(--wp-admin--admin-bar--height, 0px)) + var(--liv-sticky-top, 0px) + var(--liv-tabs-stop, 148px)); }

/* Text next to an image: Columns inside a section. */
:is(.is-style-section, .is-style-section-white) > .wp-block-columns { gap: 32px; }
:is(.is-style-section, .is-style-section-white) .wp-block-column > * { margin-block: 0 16px; }
:is(.is-style-section, .is-style-section-white) .wp-block-column > :last-child { margin-block-end: 0; }
/* Figure · image + caption with an accent bar. */
:is(.is-style-section, .is-style-section-white) .wp-block-image { margin: 0; overflow: hidden; border-radius: var(--wp--custom--radius--md); }
:is(.is-style-section, .is-style-section-white) .wp-block-image img { display: block; inline-size: 100%; block-size: auto; }
:is(.is-style-section, .is-style-section-white) .wp-block-image figcaption { display: flex; gap: 12px; margin: 0; padding: 12px; background: var(--wp--preset--color--surface-subtle); font-size: var(--wp--preset--font-size--body); line-height: 1.55; font-style: italic; font-weight: 500; -webkit-text-stroke-width: 0; text-align: start; color: var(--wp--preset--color--ink); }
:is(.is-style-section, .is-style-section-white) .wp-block-image figcaption::before { content: ""; flex: none; inline-size: 3px; border-radius: 2px; background: var(--wp--preset--color--action); }

/* Condition chips (non-interactive labels). */
.liv-cat ul.is-style-chips { gap: 10px; }
.liv-cat ul.is-style-chips li { min-block-size: 44px; padding: 8px 12px; background: var(--wp--preset--color--divider); font-size: var(--wp--preset--font-size--small); line-height: 1.5; font-weight: 400; -webkit-text-stroke-width: 0; color: var(--wp--preset--color--ink); }
.liv-cat ul.is-style-chips li:not(:has(a)):hover { background: var(--wp--preset--color--divider); color: var(--wp--preset--color--ink); }

/* Table · evaluation steps: header row 14/600, first column as a card title. */
.liv-cat .wp-block-table { margin: 0; overflow-x: auto; border-radius: var(--wp--custom--radius--sm); }
.liv-cat .wp-block-table table { inline-size: 100%; border: 0; border-collapse: collapse; }
.liv-cat .wp-block-table thead { border: 0; }
.liv-cat .wp-block-table :is(th, td) { padding: 14px 16px; border: 0; text-align: start; vertical-align: top; }
.liv-cat .wp-block-table thead th { background: var(--wp--preset--color--surface-subtle); font-size: var(--wp--preset--font-size--small); line-height: 1.4; font-weight: var(--liv-fw-label, 600); -webkit-text-stroke-width: var(--liv-ts-label, 0); color: var(--wp--preset--color--text-secondary); }
.liv-cat .wp-block-table tbody td { font-size: var(--wp--preset--font-size--body); line-height: 1.55; color: var(--wp--preset--color--ink); }
.liv-cat .wp-block-table tbody td:first-child { inline-size: 30%; font-size: var(--wp--preset--font-size--card-title); line-height: 1.35; font-weight: 600; -webkit-text-stroke-width: 0; }

/* ---------- Related doctors ---------- */
.liv-cat-doctors .liv-doctor-rail { gap: 16px; }
.liv-cat-doctors .liv-slider__controls { margin: 0; }
.liv-doctor-rail__more { display: flex; }

/* ---------- FAQ · open cards in a scroll row with dots ---------- */
.liv-faq-cards .livh-sss { margin: 0; }
.liv-faq-cards .livh-sss__inner { display: flex; flex-direction: column; gap: 16px; }
.liv-faq-cards .livh-sss__list { display: flex; flex-direction: row; gap: 12px !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--wp--preset--color--surface); border-radius: var(--wp--custom--radius--md); }
.liv-faq-cards .livh-sss__list::-webkit-scrollbar { display: none; }
.liv-faq-cards .livh-sss__item { flex: 0 0 min(400px, 86%) !important; box-sizing: border-box; min-block-size: 163px; margin: 0 !important; padding: 18px 24px; overflow: visible; background: var(--wp--preset--color--surface); border: 0; border-radius: var(--wp--custom--radius--md); box-shadow: none; scroll-snap-align: start; }
.liv-faq-cards .livh-sss__q { min-block-size: 44px; padding: 0; font: inherit; font-size: var(--wp--preset--font-size--large); line-height: 1.35; font-weight: 600; -webkit-text-stroke-width: 0; color: var(--wp--preset--color--ink); }
.liv-faq-cards .livh-sss__item[open] .livh-sss__q { cursor: default; user-select: text; }
.liv-faq-cards .livh-sss__item[open] .livh-sss__q:hover { color: var(--wp--preset--color--ink); }
.liv-faq-cards .livh-sss__item[open] .livh-sss__icon { display: none; }
.liv-faq-cards .livh-sss__a { margin-block-start: 8px; padding: 0; font-size: var(--wp--preset--font-size--body); line-height: 1.55; color: var(--wp--preset--color--text-secondary); }
.liv-faq-cards .liv-slider__controls.is-dots { block-size: 6px; align-items: center; margin: 0; }

/* ---------- Second opinion ---------- */
.liv-cat-opinion__lead { color: var(--wp--preset--color--text-secondary); }
.liv-cat-opinion__card { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--wp--preset--color--surface); border-radius: var(--wp--custom--radius--card); }
.liv-cat-opinion__card > * { margin: 0 !important; }

/* ---------- Reviewed by ---------- */
.liv-reviewed { display: flex; flex-direction: column; gap: 4px; padding-block-start: 24px; }
.liv-reviewed > p { margin: 0; }
.liv-reviewed__label { font-size: var(--wp--preset--font-size--small); line-height: 1.4; font-weight: var(--liv-fw-label, 600); -webkit-text-stroke-width: var(--liv-ts-label, 0); text-transform: uppercase; color: var(--wp--preset--color--action); }
.liv-reviewed__name { font-size: var(--wp--preset--font-size--body); line-height: 1.55; color: var(--wp--preset--color--ink); }
.liv-reviewed__dates { font-size: var(--wp--preset--font-size--small); line-height: 1.5; color: var(--wp--preset--color--text-secondary); }

/* =====================================================================================
 * Tablet and mobile · Figma "Category · Gastroenterology" 768 Tablet / 390 Mobile
 * Tablet: 16px gutters, sections 24px. Phone: blocks 16px apart, sections 16px, section H2 22px,
 * portrait hero photo, no accreditation strip, tables become a row of cards, narrower cards.
 * ===================================================================================== */
@media (max-width: 1023.98px) {
	.liv-main.liv-cat { padding: 16px 16px 48px; }
	.liv-cat { --liv-tabs-stop: 132px; }
	.is-style-section, .is-style-section-white { padding: 24px; }
	.liv-cat-opinion { padding: 32px; }
	.liv-cat-hero .liv-accred__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
	.liv-cat-hero .liv-accred__badge { flex-direction: row; gap: 12px; inline-size: auto; }
	.liv-cat-hero .liv-accred__label { font-size: var(--wp--preset--font-size--body); line-height: 1.55; text-align: start; }
	:is(.is-style-section, .is-style-section-white) > .wp-block-columns { gap: 16px; }
}

@media (max-width: 767.98px) {
	.liv-main.liv-cat, .liv-cat__content { gap: 16px; }
	.liv-cat { --liv-tabs-stop: 108px; }
	.liv-cat > .liv-review-meta + .liv-cat__content { margin-block-start: -4px !important; }
	.liv-cat__content > p + .is-style-stats { margin-block-start: -4px !important; }
	.liv-cat__content > p { font-size: var(--wp--preset--font-size--body); }

	/* Hero: portrait photo, title, action */
	.liv-cat-hero__image img { block-size: auto; aspect-ratio: 4 / 5; }
	.liv-cat-hero .liv-accred { display: none; }

	/* Stats strip: 36px values */
	.liv-cat .wp-block-columns.is-style-stats { padding: 14px 0; }
	.liv-cat .is-style-stats > .wp-block-column { gap: 2px; padding: 0 8px 0 12px; }
	.liv-cat .is-style-stats > .wp-block-column:first-child { padding-inline-start: 0; }
	.liv-cat .liv-stat__value { font-size: var(--wp--preset--font-size--heading-1); line-height: 1.2; letter-spacing: -0.005em; }

	/* Sections */
	.is-style-section, .is-style-section-white, .liv-cat-opinion { padding: 16px; }
	:is(.is-style-section, .is-style-section-white) :where(h2.wp-block-heading) { font-size: var(--wp--preset--font-size--heading-3); line-height: 1.3; letter-spacing: 0; }
	.liv-cat-opinion__card { padding: 16px 0; }
	.liv-cat-opinion__card h3 { font-size: var(--wp--preset--font-size--card-title); line-height: 1.4; }

	/* Table → one card per row in a scroll row: title, text, then the last cell under a rule */
	.liv-cat .wp-block-table { overflow: visible; border-radius: 0; }
	.liv-cat .wp-block-table :is(table, tbody, tr, td) { display: block; }
	.liv-cat .wp-block-table thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
	.liv-cat .wp-block-table tbody { display: flex; gap: 12px; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
	.liv-cat .wp-block-table tbody::-webkit-scrollbar { display: none; }
	.liv-cat .wp-block-table tr { flex: 0 0 252px; display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; padding: 20px; background: var(--wp--preset--color--surface); border-radius: var(--wp--custom--radius--md); scroll-snap-align: start; }
	.is-style-section-white .wp-block-table tr { background: var(--wp--preset--color--surface-subtle); }
	.liv-cat .wp-block-table tbody td { inline-size: auto; padding: 0; font-size: var(--wp--preset--font-size--small); line-height: 1.5; }
	.liv-cat .wp-block-table tbody td:first-child { inline-size: auto; font-size: var(--wp--preset--font-size--large); line-height: 1.35; }
	.liv-cat .wp-block-table tbody td:last-child:not(:first-child) { margin-block-start: auto; padding-block-start: 8px; border-block-start: 1px solid var(--wp--preset--color--border-subtle); line-height: 1.4; font-weight: var(--liv-fw-label, 600); -webkit-text-stroke-width: var(--liv-ts-label, 0); color: var(--wp--preset--color--action); }

	/* Doctors and FAQ cards */
	.liv-cat-doctors .liv-doctor-rail__track > .liv-dcard { flex-basis: var(--liv-dcard-w, 248px) !important; }
	.liv-cat-doctors .liv-dcard__photo { aspect-ratio: 216 / 138; }
	.liv-faq-cards .livh-sss__item { flex-basis: min(280px, 86%) !important; padding: 18px 16px; }
	.liv-faq-cards .livh-sss__a { font-size: var(--wp--preset--font-size--small); line-height: 1.5; }
}

/* =====================================================================================
 * Sections page parts (Figma "Medical Second Opinion"): accreditation bar on the hero photo,
 * step cards, support tiles, FAQ list, closing action, small note.
 * ===================================================================================== */
.liv-cat-hero__media { position: relative; }
.liv-cat-hero__media > * { margin: 0 !important; max-inline-size: none !important; }
.liv-cat-hero__media .liv-cat-hero__image img { block-size: 495px; }
/* Second opinion hero: a 16:9 picture. In the flat desktop slot the doctor's head stays below the accreditation bar; in the tall phone slot the doctor and the screen stay in view. */
.liv-mso-hero .liv-cat-hero__image img { object-position: 75% 15%; }
/* Read more: sections kept closed until the link that points to the group is pressed (interactive.js).
   Without script the sections are simply shown. */
.liv-readmore { display: flex; flex-direction: column; gap: 24px; }
.liv-readmore > * { margin-block: 0 !important; max-inline-size: none !important; min-inline-size: 0; }
@media (scripting: enabled) {
	.liv-cat__content > .liv-readmore:not(.is-open) { display: none; }
}
@media (max-width: 1023.98px) {
	.liv-readmore { gap: 16px; }
}
/* Insurers (Website Pages · Contracted Insurances): a list with the style "Insurers (cards)" (inc/insurers.php).
   Card 255 x 85: mark 72 x 44 (logo or initials) and the name; four to a row, three on tablets, one on phones. */
.liv-insurers { display: flex; flex-direction: column; gap: 16px; }
.liv-insurers [hidden] { display: none !important; }
.is-style-section .liv-insurers ul.is-style-insurers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.liv-insurers .liv-insurer { display: flex; align-items: center; gap: 12px; box-sizing: border-box; min-block-size: 85px; min-inline-size: 0; margin: 0; padding: 10px 12px; border: 1px solid var(--wp--preset--color--border-subtle); border-radius: 12px; background: var(--wp--preset--color--surface); font-size: var(--wp--preset--font-size--small); line-height: 1.5; color: var(--wp--preset--color--ink); }
.liv-insurers .liv-insurer::marker { content: ""; }
.liv-insurer__mark { flex: none; display: grid; place-items: center; inline-size: 72px; block-size: 44px; overflow: hidden; border-radius: 8px; background: var(--wp--preset--color--surface-subtle); color: var(--wp--preset--color--action); }
.liv-insurer__mark img { display: block; max-inline-size: 100%; max-block-size: 100%; object-fit: contain; }
.liv-insurer__name { flex: 1; min-inline-size: 0; overflow-wrap: anywhere; }
.liv-insurers .liv-insurers__none { margin: 0; font-size: var(--wp--preset--font-size--body); line-height: 1.55; color: var(--wp--preset--color--text-secondary); }
.liv-insurers__actions { display: flex; }
.liv-insurers__actions .liv-insurers__more { min-block-size: 52px; background: var(--wp--preset--color--divider); color: var(--wp--preset--color--ink); cursor: pointer; font-family: inherit; }
.liv-insurers__actions .liv-insurers__more:hover { background: var(--wp--preset--color--border-subtle); color: var(--wp--preset--color--ink); }
/* Clinics A–Z (Website Pages · Clinics, block liv/clinic-index): "Find a clinic" and the clinics by letter. */
.liv-az { display: flex; flex-direction: column; gap: 24px; scroll-margin-block-start: calc(var(--liv-bar, 0px) + 150px); }
.liv-az > * { margin: 0 !important; }
.liv-az [hidden] { display: none !important; }
.liv-az .liv-doctors__chips { flex-direction: row; padding: 0 !important; }
.liv-az .liv-doctors__chips > li::marker { content: ""; }
.liv-az .liv-doctors__chip { justify-content: center; min-inline-size: 56px; text-decoration: none; }
.liv-az__group { display: flex; flex-direction: column; gap: 16px; scroll-margin-block-start: calc(var(--liv-bar, 0px) + 150px); }
.liv-az__group > * { margin: 0 !important; }
.liv-az .liv-az__none { margin: 0; font-size: var(--wp--preset--font-size--body); line-height: 1.55; color: var(--wp--preset--color--text-secondary); }
/* A chip that is a link: the whole chip is the link. */
.liv-cat ul.is-style-chips li[hidden] { display: none; }
.liv-cat ul.is-style-chips li > a:only-child { display: flex; align-items: center; min-block-size: 44px; margin: -8px -12px; padding: 8px 12px; border-radius: 999px; color: inherit; text-decoration: none; }
.liv-cat ul.is-style-chips li:has(> a:only-child):hover { background: var(--wp--preset--color--border-subtle); }
.liv-cat ul.is-style-chips li > a:only-child:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--wp--preset--color--focus); }
@media (min-width: 1024px) {
	.liv-az .liv-doctors__chips { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 1023.98px) {
	.liv-az { gap: 16px; }
}
/* Four media cards in a row (Liv / Card / Media 252 x 467: photo 252 x 194, title, text, button). */
.liv-cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.liv-cards-4 > * { margin: 0 !important; max-inline-size: none !important; min-inline-size: 0; }
.is-style-section .liv-cards-4 .is-style-card-media-top > .wp-block-image { aspect-ratio: 252 / 194; border-radius: 0; }
.is-style-section .liv-cards-4 .liv-card-media-body p { flex: 1; font-size: var(--wp--preset--font-size--small); line-height: 1.5; color: var(--wp--preset--color--placeholder); }
.liv-cards-4 .liv-card-media-body .wp-block-buttons, .liv-cards-4 .liv-card-media-body .wp-block-button, .liv-cards-4 .liv-card-media-body .wp-block-button__link { inline-size: 100%; box-sizing: border-box; }
@media (max-width: 1023.98px) {
	.liv-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599.98px) {
	.liv-cards-4 { grid-template-columns: minmax(0, 1fr); }
}
/* Liv / Field / Search that filters the cards: 480px, 48px high, icon then the text. */
.liv-filter { display: flex; align-items: center; gap: 12px; box-sizing: border-box; inline-size: min(100%, 480px); block-size: var(--wp--custom--field--height); padding-inline: var(--wp--custom--field--padding-x); border: 1px solid var(--wp--preset--color--field-border); border-radius: var(--wp--custom--field--radius, 8px); background: var(--wp--preset--color--surface); }
.liv-filter:focus-within { border-color: var(--wp--preset--color--focus); box-shadow: 0 0 0 1px var(--wp--preset--color--focus); }
.liv-filter__icon { flex: none; display: grid; place-items: center; inline-size: 24px; block-size: 24px; color: var(--wp--preset--color--ink); }
.liv-filter__icon svg { inline-size: 24px; block-size: 24px; }
.liv-cat .liv-filter input[type="search"] { flex: 1; min-inline-size: 0; inline-size: auto; block-size: 100%; min-block-size: 0; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: none; box-shadow: none; font: inherit; font-size: var(--wp--preset--font-size--small); line-height: 1.5; color: var(--wp--preset--color--ink); }
.liv-cat .liv-filter input[type="search"]::placeholder { color: #566F7A; opacity: 1; }
.liv-filter input::-webkit-search-cancel-button { cursor: pointer; }
@media (max-width: 1023.98px) {
	.is-style-section .liv-insurers ul.is-style-insurers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.liv-filter { inline-size: 100%; }
}
@media (max-width: 599.98px) {
	.is-style-section .liv-insurers ul.is-style-insurers { grid-template-columns: minmax(0, 1fr); }
	.liv-insurers .liv-insurer { min-block-size: 66px; }
	.liv-insurers__actions .liv-insurers__more { inline-size: 100%; }
}
/* "Get a Quote" card (Liv / Pattern / Contact Form): 720px in the wide column. */
.is-style-section > .liv-quote-card { box-sizing: border-box; inline-size: min(100%, 720px); }
/* A form card with a hospital photo beside it (Contact "Get in touch", 514:6407; the check-up quote form uses the same
 * row): 628 + 412 of 1056 on desktop, 326 + 346 on tablet, the photo as high as the form; on phones the photo follows
 * the form as a 4:5 picture (326 x 408). */
.liv-contact-touch__row { display: grid; grid-template-columns: minmax(0, 628fr) minmax(0, 412fr); gap: 16px; }
.liv-contact-touch__row > * { margin: 0 !important; max-inline-size: none !important; }
.is-style-section .liv-contact-touch__row > .liv-cat-opinion__card { box-sizing: border-box; inline-size: auto; }
.liv-contact-touch__row .liv-contact-touch__photo { position: relative; min-block-size: 280px; overflow: hidden; border-radius: var(--wp--custom--radius--card); }
.liv-contact-touch__row .liv-contact-touch__photo img { position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: cover; border-radius: 0; }
@media (max-width: 1023.98px) { .liv-contact-touch__row { grid-template-columns: minmax(0, 326fr) minmax(0, 346fr); } }
@media (max-width: 767.98px) {
	.liv-contact-touch__row { grid-template-columns: minmax(0, 1fr); }
	.liv-contact-touch__row .liv-contact-touch__photo { min-block-size: 0; aspect-ratio: 4 / 5; }
	.is-style-section .liv-contact-touch__row > .liv-cat-opinion__card { padding: 16px; }
	.is-style-section .liv-contact-touch__row > .liv-cat-opinion__card h3 { font-size: var(--wp--preset--font-size--heading-3); line-height: 1.3; }
}
/* About page: hero photo 1088 x 495 in the design; in the wider column it keeps the design's height (495px). */
@media (min-width: 1024px) {
	:is(.liv-about-hero, .liv-page-hero) .liv-cat-hero__media .liv-cat-hero__image img { block-size: auto; aspect-ratio: 1088 / 495; max-block-size: 495px; }
}
/* A section a tab leads to stops below the sticky header. */
.liv-cat__content :is(h2, .liv-cat-hero)[id] { scroll-margin-block-start: calc(var(--liv-bar, 0px) + 150px); }
.liv-accred.is-bar { position: absolute; inset: 12px 12px auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; min-block-size: 44px; padding: 0 16px; background: rgb(255 255 255 / 0.92); border-radius: var(--wp--custom--radius--sm); }
.liv-accred.is-bar .liv-accred__eyebrow { text-align: start; }
.liv-accred.is-bar .liv-accred__badges { display: flex; justify-content: flex-end; gap: 32px; inline-size: auto; }
.liv-accred.is-bar .liv-accred__badge { flex-direction: row; gap: 8px; inline-size: auto; }
.liv-accred.is-bar .liv-accred__mark img { inline-size: 28px !important; block-size: 28px; border-radius: 50%; }
.liv-accred.is-bar .liv-accred__label { white-space: nowrap; }

.liv-steps, .liv-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.liv-steps > *, .liv-tiles > *, .liv-step > *, .liv-step__body > *, .liv-tile > * { margin: 0 !important; max-inline-size: none !important; }
.liv-step { display: flex; flex-direction: column; overflow: hidden; background: var(--wp--preset--color--surface); border-radius: var(--wp--custom--radius--card); }
:is(.is-style-section, .is-style-section-white) .liv-step .wp-block-image { border-radius: 0; }
:is(.is-style-section, .is-style-section-white) .liv-step .wp-block-image img { aspect-ratio: 341 / 192; object-fit: cover; }
.liv-step__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.liv-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
:is(.liv-step__body, .liv-tile) h3.wp-block-heading { font-size: var(--wp--preset--font-size--card-title); line-height: 1.35; font-weight: 600; -webkit-text-stroke-width: 0; }
:is(.liv-step__body, .liv-tile) p { font-size: var(--wp--preset--font-size--small); line-height: 1.5; color: var(--wp--preset--color--ink); }
.liv-note { font-size: var(--wp--preset--font-size--small) !important; line-height: 1.5 !important; color: var(--wp--preset--color--text-secondary); }
.liv-cat-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px; }
.liv-cat-cta > * { margin: 0 !important; }
.liv-cat-cta h3 { font-size: var(--wp--preset--font-size--heading-3); line-height: 1.3; }

/* FAQ list: one white card, rows with + / − */
.liv-faq-list .livh-sss { margin: 0; }
.liv-faq-list .livh-sss__list { gap: 0; overflow: hidden; background: var(--wp--preset--color--surface); border-radius: var(--wp--custom--radius--md); }
.liv-faq-list .livh-sss__item { background: none; border: 0; border-radius: 0; box-shadow: none; }
.liv-faq-list .livh-sss__q { min-block-size: 44px; padding: 14px 24px; box-sizing: content-box; font: inherit; font-size: var(--wp--preset--font-size--large); line-height: 1.35; font-weight: 600; -webkit-text-stroke-width: 0; color: var(--wp--preset--color--ink); }
.liv-faq-list .livh-sss__icon { inline-size: auto; block-size: auto; transform: none !important; }
.liv-faq-list .livh-sss__icon::before { content: "+"; position: static; background: none; clip-path: none; font-size: 22px; line-height: 1.4; font-weight: 400; -webkit-text-stroke-width: 0; color: var(--wp--preset--color--action); }
.liv-faq-list .livh-sss__item[open] .livh-sss__icon::before { content: "\2212"; }
.liv-faq-list .livh-sss__a { padding: 0 24px 14px; font-size: var(--wp--preset--font-size--body); line-height: 1.55; color: var(--wp--preset--color--text-secondary); }

@media (max-width: 1023.98px) {
	.liv-accred.is-bar { position: static; flex-wrap: wrap; justify-content: center; margin-block-start: 12px !important; padding: 12px 16px; background: var(--wp--preset--color--surface); }
	.liv-accred.is-bar .liv-accred__badges { flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
	.liv-cat-hero__media .liv-cat-hero__image img { block-size: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 767.98px) {
	.liv-cat-hero__media .liv-cat-hero__image img { aspect-ratio: 4 / 5; }
	.liv-steps, .liv-tiles { grid-template-columns: minmax(0, 1fr); }
	.liv-tile { padding: 16px; }
	:is(.is-style-section, .is-style-section-white) .liv-step .wp-block-image img { aspect-ratio: 4 / 5; }
	.liv-cat-cta { padding: 0; }
	.liv-faq-list .livh-sss__q { padding: 14px 16px; }
	.liv-faq-list .livh-sss__a { padding: 0 16px 14px; }
}
.liv-cat :is(.is-style-section, .is-style-section-white)[id] { scroll-margin-block-start: calc(var(--liv-bar, var(--wp-admin--admin-bar--height, 0px)) + var(--liv-sticky-top, 0px) + 100px); }

/* =====================================================================================
 * Make an Appointment page (Figma "Make an Appointment" 514:5457, pattern liv/page-make-appointment).
 * Built from the sections-page parts above; these rules cover only where this page's frames differ:
 * accreditation bar kept on the photo at every width, tab row inside a section, two-column forms
 * (2 × 352 + 16), date label inside its field, grey submit on the cancel form, phone spacing.
 * Classes: liv-appointment-hero (hero), liv-appointment (+ is-cancel) (sections), liv-appointment-cta.
 * ===================================================================================== */

/* Hero · accreditation bar as drawn here (I514:5462;273:1313): padding 6 16, radius 12, 6px blur, labels 14/1.4. */
.liv-appointment-hero .liv-accred.is-bar { padding: 6px 16px; border-radius: var(--wp--custom--radius--md); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.liv-appointment-hero .liv-accred.is-bar .liv-accred__label { font-size: var(--wp--preset--font-size--small); line-height: 1.4; }
/* Marks keep 28px when the bar gets tight (1024-1180px): the eyebrow wraps instead. */
.liv-appointment-hero .liv-accred.is-bar .liv-accred__mark { flex: none; }
.liv-appointment-hero .liv-accred__eyebrow.is-short { display: none; }

/* Tab row inside the E-Appointment section (514:5687): a plain row of 172px tabs, not the sticky white card.
   The links jump to the two sections (both stay visible); aria-current marks the section in view. */
.liv-appointment > .liv-section-tabs, .liv-appointment > .liv-section-tabs.is-stuck { position: static; z-index: auto; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.liv-appointment > .liv-section-tabs ul { flex-direction: row; gap: 8px; padding: 0; }
.liv-appointment > .liv-section-tabs a { min-inline-size: 172px; }
/* No sticky tab bar on this page: headings stop 24px under the top edge (or under the sticky header). */
.liv-cat:has(.liv-appointment) { --liv-tabs-stop: 24px; }

/* Forms: 720px = two 352px fields and a 16px gap (514:5693, 514:5717); 16px between fields; submit at least 144px (514:5711). */
.liv-appointment .livh-form-wrap > * { max-inline-size: 720px; }
.liv-appointment .livh-form .frm_fields_container { gap: 16px; }
.liv-appointment .livh-form .frm_button_submit { min-inline-size: 144px; }
.liv-appointment .livh-form :is(.frm_radio, .frm_checkbox) label { font-weight: 400; -webkit-text-stroke-width: 0; }
/* Consent row (514:5707): sentence and link run as one text; in the shared flex row the link became a separate
   item 12px away (a second column on phones). The box keeps its place at the start, centred. */
.liv-appointment .livh-form .livh-form-field--consent label { display: block; position: relative; padding-inline-start: 48px; }
.liv-appointment .livh-form .livh-form-field--consent input[type="checkbox"] { position: absolute; inset-block-start: 50%; inset-inline-start: 16px; translate: 0 -50%; }
.liv-appointment .livh-form-wrap .frm_message { background: var(--wp--preset--color--surface); }
/* Date of birth (514:5702): a date control prints no placeholder, so its label (hidden by labels="hidden")
   is shown inside the field at the start and the date moves to the end. The label stays a real <label>. */
.liv-appointment .livh-form .livh-form-field--date { position: relative; }
.liv-appointment .livh-form .livh-form-field--date > .frm_primary_label { inset-block-start: 0; inset-inline-start: 0; display: flex; align-items: center; inline-size: auto; block-size: var(--wp--custom--field--height); margin: 0; padding-inline: var(--wp--custom--field--padding-x); overflow: visible; clip-path: none; font-size: var(--wp--preset--font-size--body); font-weight: 400; -webkit-text-stroke-width: 0; color: var(--wp--preset--color--placeholder); pointer-events: none; }
.liv-appointment .livh-form .livh-form-field--date > .frm_primary_label .frm_required { display: none; }
.liv-appointment .livh-form .livh-form-field--date input { text-align: end; }
.liv-appointment .livh-form .livh-form-field--date input::-webkit-date-and-time-value { text-align: end; }
/* The inside of a date control is always laid out left to right: in RTL name the side, and move the calendar
   icon to the left as well, or it would cover the label at the right. */
[dir="rtl"] .liv-appointment .livh-form .livh-form-field--date input { text-align: left; }
[dir="rtl"] .liv-appointment .livh-form .livh-form-field--date input::-webkit-date-and-time-value { text-align: left; }
[dir="rtl"] .liv-appointment .livh-form .livh-form-field--date input::-webkit-calendar-picker-indicator { order: -1; margin: 0 8px 0 0; }
/* Cancel form: Liv / Button / Secondary (514:5723). */
.liv-appointment.is-cancel .livh-form .frm_button_submit { background: var(--wp--preset--color--divider); color: var(--wp--preset--color--ink); }
.liv-appointment.is-cancel .livh-form .frm_button_submit:hover { background: var(--wp--preset--color--border-subtle); }

@media (max-width: 1023.98px) {
	/* Tablet: the two columns fill the section (2 × 336 + 16 = 688, 514:5920). */
	.liv-appointment .livh-form-wrap > * { max-inline-size: none; }
	/* Tablet hero (I514:5729;45:283): 402px photo; the bar stays on it with the four badges spread out, no eyebrow. */
	.liv-appointment-hero .liv-cat-hero__media .liv-cat-hero__image img { aspect-ratio: auto; block-size: 402px; }
	.liv-appointment-hero .liv-accred.is-bar { position: absolute; flex-wrap: nowrap; justify-content: space-between; margin: 0 !important; padding: 6px 16px; background: rgb(255 255 255 / 0.92); }
	.liv-appointment-hero .liv-accred.is-bar .liv-accred__badges { flex-wrap: nowrap; justify-content: space-between; gap: 16px; inline-size: 100%; }
	.liv-appointment-hero .liv-accred__eyebrow:not(.is-short) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 767.98px) {
	/* Blocks stay 24px apart on this page (514:5954), not the 16px of the category frames. */
	.liv-main.liv-cat:has(.liv-appointment), .liv-cat:has(.liv-appointment) .liv-cat__content { gap: 24px; }
	/* Section H2 stays 28px here (514:6138, 514:6167); the closing action keeps its 16px padding (514:5985). */
	.liv-appointment > h2.wp-block-heading { font-size: var(--wp--preset--font-size--heading-2); line-height: 1.25; letter-spacing: -0.003em; }
	.liv-cat-cta.liv-appointment-cta { padding: 16px; }
	/* Full-width submit buttons (514:6163, 514:6175). Fields already stack under 600px (forms.css). */
	.liv-appointment .livh-form .frm_button_submit { flex: 1 1 auto; }
}

/* =====================================================================================
 * Website Pages with the page hero (About, Check-up, GDPR, Contracted Insurances, Health Library,
 * Clinics) on tablet and phone · Figma "… · 768 Tablet" / "… · 390 Mobile".
 * - Hero: the accreditation bar stays on the photo at every width (tablet: the four badges spread,
 *   no eyebrow; phone: "Accredited care" and the four marks without their names), photo 704 x 402
 *   on tablet and 170px high on phones.
 * - Phone: the lead paragraph stays 18px and a section title stays 28px; the closing action keeps
 *   its 16px padding.
 * - Liv / Card / Media: photo 194px high on tablet; on phones the portrait card (tint card,
 *   310px photo, primary button).
 * ===================================================================================== */
:is(.liv-about-hero, .liv-page-hero) .liv-accred.is-bar { min-block-size: 44px; padding: 6px 16px; border-radius: var(--wp--custom--radius--md); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
:is(.liv-about-hero, .liv-page-hero) .liv-accred.is-bar .liv-accred__label { font-size: var(--wp--preset--font-size--small); line-height: 1.4; }
:is(.liv-about-hero, .liv-page-hero) .liv-accred.is-bar .liv-accred__mark { flex: none; }
@media (max-width: 1023.98px) {
	:is(.liv-about-hero, .liv-page-hero) .liv-cat-hero__media .liv-cat-hero__image img { block-size: auto; aspect-ratio: 704 / 402; }
	:is(.liv-about-hero, .liv-page-hero) .liv-accred.is-bar { position: absolute; inset: 12px 12px auto; flex-wrap: nowrap; justify-content: center; margin: 0 !important; padding: 6px 16px; background: rgb(255 255 255 / 0.92); }
	:is(.liv-about-hero, .liv-page-hero) .liv-accred.is-bar .liv-accred__eyebrow { display: none; }
	:is(.liv-about-hero, .liv-page-hero) .liv-accred.is-bar .liv-accred__badges { flex: 1; flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
	.is-style-section .liv-cards-4 .is-style-card-media-top > .wp-block-image { block-size: 194px; aspect-ratio: auto; }
	.liv-insurers .liv-insurer { min-block-size: 106px; }
}
@media (max-width: 767.98px) {
	:is(.page-template-page-sections .liv-cat__content, .liv-cat__content:has(.liv-about-hero, .liv-page-hero)) > p { font-size: var(--wp--preset--font-size--large); }
	:is(.page-template-page-sections .liv-cat__content, .liv-cat__content:has(.liv-about-hero, .liv-page-hero)) :is(.is-style-section, .is-style-section-white) :where(h2.wp-block-heading) { font-size: var(--wp--preset--font-size--heading-2); line-height: 1.25; letter-spacing: -0.003em; }
	:is(.page-template-page-sections .liv-cat__content, .liv-cat__content:has(.liv-about-hero, .liv-page-hero)) .liv-cat-cta { padding: 16px; }
	/* Liv / Pattern / Contact Form on phones: the white card keeps its 16px padding and the 22px title. */
	.is-style-section > .liv-quote-card { padding: 16px; }
	.is-style-section > .liv-quote-card h3 { font-size: var(--wp--preset--font-size--heading-3); line-height: 1.3; }
	/* Actions under a section's content: one full-width button per row, 12px apart. */
	.liv-cat__content:has(.liv-about-hero, .liv-page-hero) :is(.is-style-section, .is-style-section-white) > .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
	.liv-cat__content:has(.liv-about-hero, .liv-page-hero) :is(.is-style-section, .is-style-section-white) > .wp-block-buttons :is(.wp-block-button, .wp-block-button__link) { inline-size: 100%; box-sizing: border-box; }
}
@media (max-width: 599.98px) {
	.liv-insurers .liv-insurer { min-block-size: 66px; }
	.is-style-section .liv-cards-4 .is-style-card-media-top > .wp-block-image { block-size: 310px; }
	.liv-cards-4 .is-style-card-media-top { background: var(--wp--preset--color--surface-tint); }
	.liv-cards-4 .is-style-card-media-top .wp-block-button.is-style-secondary .wp-block-button__link { background: var(--wp--preset--color--action); color: var(--wp--preset--color--surface); }
	.liv-cards-4 .is-style-card-media-top .wp-block-button.is-style-secondary .wp-block-button__link:hover { background: var(--wp--preset--color--action-hover); color: var(--wp--preset--color--surface); }
}

/* Medical Second Opinion hero on tablet (82:794): as the other page heroes, photo 704 x 402 with the
 * accreditation bar on it. On phones it keeps its portrait photo without the bar (82:1110). */
@media (min-width: 768px) and (max-width: 1023.98px) {
	.liv-mso-hero .liv-cat-hero__media .liv-cat-hero__image img { block-size: auto; aspect-ratio: 704 / 402; }
	.liv-mso-hero .liv-accred.is-bar { position: absolute; inset: 12px 12px auto; flex-wrap: nowrap; justify-content: center; min-block-size: 44px; margin: 0 !important; padding: 6px 16px; border-radius: var(--wp--custom--radius--md); background: rgb(255 255 255 / 0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
	.liv-mso-hero .liv-accred.is-bar .liv-accred__eyebrow { display: none; }
	.liv-mso-hero .liv-accred.is-bar .liv-accred__badges { flex: 1; flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
	.liv-mso-hero .liv-accred.is-bar .liv-accred__label { font-size: var(--wp--preset--font-size--small); line-height: 1.4; }
	.liv-mso-hero .liv-accred.is-bar .liv-accred__mark { flex: none; }
	/* Step photos keep their height in the narrower card (218 x 189). */
	:is(.is-style-section, .is-style-section-white) .liv-step .wp-block-image img { block-size: 189px; aspect-ratio: auto; }
}

/* Phone hero of every inner page (owner decision 2026-11-13): the portrait form of Medical Second Opinion
 * (82:1110) — a 4:5 photo without the accreditation bar, then the title and the action. The doubled class
 * outranks the tablet rules of the single pages, which also apply below 768px. */
@media (max-width: 767.98px) {
	.liv-cat-hero.liv-cat-hero .liv-cat-hero__media .liv-cat-hero__image img { block-size: auto; aspect-ratio: 4 / 5; }
	.liv-cat-hero.liv-cat-hero .liv-accred { display: none; }
}

/* Page hero without a photo (legal pages): the title at the start and the action at the end of one row;
 * where the row is too narrow for both, the action goes under the title. */
.liv-page-hero:not(:has(.liv-cat-hero__media)) { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.liv-page-hero:not(:has(.liv-cat-hero__media)) > .wp-block-heading { flex: 1 1 320px; min-inline-size: 0; }
.liv-page-hero:not(:has(.liv-cat-hero__media)) > .wp-block-buttons { flex: none; }

/* Make an Appointment: the request form (and its heading) sit in the middle of the section, 720px at most. */
.liv-appointment > :is(h2, .livh-form-wrap) { box-sizing: border-box; inline-size: min(100%, 720px); margin-inline: auto !important; }
