/*
 * The Clinics page (/clinics/) in the layout of beta.mlphosts.com/clinics with the new design's colours and measures
 * (owner 2026-11-20). Markup: inc/livcom-page-clinics.php (class "lc-clinics"; <body> carries "lc-page-clinics").
 * Behaviour: assets/js/livcom-page-clinics.js.
 *
 * The band and the path are the inner pages' ones (assets/css/livcom-shell.css). Here: "Find a clinic" in the
 * light-blue panel of the hospitals page (title, a line, the search pill with its clear and go buttons, the letters as
 * round buttons), then per letter the letter, large, in the Liv colour, and the clinics in two columns, the letters
 * parted by a hairline.
 */

.lc-clinics { --lc-cl-brand: #0082B9; display: flex; flex-direction: column; gap: 40px; min-inline-size: 0; margin-block-end: 56px !important; }
.lc-clinics [hidden] { display: none !important; }
.lc-clinics :is(h2, h3, p, ul, li) { margin: 0; padding: 0; }
.lc-clinics ul { list-style: none; }
.lc-clinics a { text-decoration: none; }

/* ---------- Find a clinic ---------- */
.lc-cfind { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: center; gap: 24px 40px; padding: 32px 36px; overflow: hidden; border: 1px solid #D6ECF6; border-radius: 24px; background: linear-gradient(120deg, #EEFAFF 0%, #F7FCFF 55%, #E6F5FC 100%); }
.lc-cfind::before { content: ""; position: absolute; z-index: -1; inset-block-start: -120px; inset-inline-end: -80px; inline-size: 340px; block-size: 340px; border-radius: 50%; background: radial-gradient(circle, rgb(0 130 185 / 0.12), rgb(0 130 185 / 0) 70%); pointer-events: none; }
.lc-cfind__head { display: flex; flex-direction: column; gap: 6px; }
.lc-clinics .lc-cfind__title { color: var(--lc-cl-brand); font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.005em; -webkit-text-stroke-width: 0; }
.lc-cfind__lead { color: #386E98; font-size: 16px; line-height: 1.5; }
.lc-cfind__form { margin: 0 !important; }
.lc-cfind__field { position: relative; display: flex; align-items: center; gap: 4px; box-sizing: border-box; inline-size: 100%; block-size: 60px; padding: 6px; padding-inline-start: 20px; border: 1px solid #DCE4EA; border-radius: 999px; background: #FFFFFF; box-shadow: 0 10px 28px rgb(0 70 102 / 0.08); transition: border-color 0.15s, box-shadow 0.15s; }
.lc-cfind__field:focus-within { border-color: var(--lc-cl-brand); box-shadow: 0 0 0 4px rgb(0 130 185 / 0.14), 0 10px 28px rgb(0 70 102 / 0.08); }
.lc-cfind__icon { flex: none; color: var(--lc-cl-brand); }
.lc-clinics .lc-cfind__field input { flex: 1 1 auto; min-inline-size: 0; block-size: 100%; margin: 0; padding: 0 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; color: #163B4D; font: inherit; font-size: 16px; line-height: 1.4; -webkit-appearance: none; appearance: none; }
.lc-clinics .lc-cfind__field input::-webkit-search-cancel-button { display: none; }
.lc-clinics .lc-cfind__field input::placeholder { color: #6B7F8C; opacity: 1; }
.lc-cfind__clear { flex: none; display: inline-flex; align-items: center; justify-content: center; inline-size: 32px; block-size: 32px; padding: 0; border: 0; border-radius: 50%; background: #EEF3F6; color: #566F7A; cursor: pointer; }
.lc-cfind__clear:hover { background: #DCE4EA; color: #163B4D; }
.lc-cfind__go { flex: none; display: inline-flex; align-items: center; gap: 8px; block-size: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--lc-cl-brand); color: #FFFFFF; font: inherit; font-size: 15px; line-height: 1; font-weight: 700; cursor: pointer; transition: background-color 0.15s; }
.lc-cfind__go:hover { background: #05658B; }
[dir="rtl"] .lc-cfind__go svg { transform: scaleX(-1); }
/* The letters: round buttons under a hairline; a letter without clinics (after a search) is faint. */
.lc-cfind__letters { grid-column: 1 / -1; padding-block-start: 20px; border-block-start: 1px solid #D6ECF6; }
.lc-cfind__letters ul { display: flex; flex-wrap: wrap; gap: 8px; }
.lc-cfind__letter { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; inline-size: 40px; block-size: 40px; border: 1px solid #DCE4EA; border-radius: 50%; background: #FFFFFF; color: var(--lc-cl-brand); font-size: 15px; line-height: 1; font-weight: 700; transition: border-color 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s; }
.lc-cfind__letter:hover, .lc-cfind__letter.is-on { border-color: var(--lc-cl-brand); background: var(--lc-cl-brand); color: #FFFFFF; box-shadow: 0 8px 20px rgb(0 130 185 / 0.24); }
.lc-cfind__letter[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.lc-cfind__letter:focus-visible, .lc-cfind__go:focus-visible, .lc-cfind__clear:focus-visible { outline: 2px solid var(--lc-cl-brand); outline-offset: 2px; }

/* ---------- The list by letter ---------- */
.lc-clist { display: flex; flex-direction: column; }
.lc-clist__group { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 24px; padding-block: 28px; border-block-start: 1px solid #D6ECF6; scroll-margin-block-start: calc(var(--liv-bar, 0px) + var(--liv-sticky-top, 0px) + 16px); }
.lc-clist__group:first-of-type { border-block-start: 0; padding-block-start: 4px; }
.lc-clinics .lc-clist__initial { color: var(--lc-cl-brand); font-size: 56px; line-height: 0.95; font-weight: 700; letter-spacing: -0.02em; -webkit-text-stroke-width: 0; }
.lc-clist__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.lc-clist__items li[hidden] { display: none; }
.lc-clist__items a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-radius: 999px; color: #163B4D; font-size: 16px; line-height: 1.4; font-weight: 500; transition: background-color 0.15s, color 0.15s; }
.lc-clist__items a::after { content: ""; flex: none; inline-size: 14px; block-size: 14px; background: currentColor; opacity: 0; -webkit-mask: url("../img/icons/arrow-right.svg") center / contain no-repeat; mask: url("../img/icons/arrow-right.svg") center / contain no-repeat; transition: opacity 0.15s; }
[dir="rtl"] .lc-clist__items a::after { transform: scaleX(-1); }
.lc-clist__items a:hover { background: #EEFAFF; color: var(--lc-cl-brand); }
.lc-clist__items a:hover::after { opacity: 1; }
.lc-clist__items a:focus-visible { outline: 2px solid var(--lc-cl-brand); outline-offset: 0; }
.lc-clist__empty { padding: 24px 0; color: #566F7A; font-size: 16px; }

/* ---------- Tablets ---------- */
@media (max-width: 1023.98px) {
	.lc-cfind { grid-template-columns: minmax(0, 1fr); }
	.lc-clist__group { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
	.lc-clinics .lc-clist__initial { font-size: 44px; }
}

/* ---------- Phones ---------- */
@media (max-width: 767.98px) {
	.lc-clinics { gap: 28px; margin-block-end: 40px !important; }
	.lc-cfind { gap: 16px; padding: 20px 16px; border-radius: 20px; }
	.lc-clinics .lc-cfind__title { font-size: 24px; }
	.lc-cfind__lead { font-size: 15px; }
	.lc-cfind__field { block-size: 54px; padding-inline-start: 16px; }
	.lc-cfind__go { inline-size: 42px; block-size: 42px; justify-content: center; padding: 0; }
	.lc-cfind__go span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.lc-cfind__letters { padding-block-start: 16px; }
	.lc-cfind__letters ul { gap: 6px; }
	.lc-cfind__letter { inline-size: 36px; block-size: 36px; font-size: 14px; }
	/* The letter as a heading over its clinics, one per row. */
	.lc-clist__group { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 20px; }
	.lc-clinics .lc-clist__initial { font-size: 34px; }
	.lc-clist__items { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.lc-clist__items a { padding: 10px 14px; font-size: 15px; }
	.lc-clist__items a::after { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
	.lc-cfind__letter, .lc-clist__items a, .lc-clist__items a::after { transition: none; }
}
