/* Clinilabs Help Centre: matches www.clinilabs.co.uk (Poppins, blue #2463eb, #111 headings, #f4f7fa background) */
:root {
  --ink: #111; --text: #2c3340; --muted: #6b7385; --line: #e3e8f0; --bg: #f4f7fa; --card: #fff;
  --blue: #2463eb; --blue-dark: #1b4fc4; --blue-soft: #eaf0fe; --green: #108474; --amber: #8a5a00; --red: #c43d33;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; letter-spacing: -0.01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; padding-top: 32px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.devbar { background: #fff4cc; color: var(--amber); font-size: 13px; text-align: center; padding: 7px 16px; font-weight: 500; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; display: block; }
.brand span { font-weight: 600; color: var(--ink); font-size: 15px; padding-left: 12px; border-left: 1px solid var(--line); }
.header-links { display: flex; gap: 18px; font-size: 14px; font-weight: 500; }
.header-links a { text-decoration: none; color: var(--text); }
.header-links a:hover { color: var(--blue); }

.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 56px 0 36px; text-align: center; }
.hero h1 { font-size: 40px; font-weight: 800; margin: 0 0 6px; }
.hero p { margin: 0 0 24px; color: var(--muted); font-size: 17px; }

.search { position: relative; max-width: 620px; margin: 0 auto 22px; }
.search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 999px; padding: 0 20px 0 50px; font: inherit; font-size: 15px; background: #fff; outline: none; }
.search-big input { height: 58px; font-size: 16px; box-shadow: 0 6px 22px rgba(17, 24, 39, .06); }
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 36px rgba(17, 24, 39, .12); overflow: hidden; text-align: left; }
.search-results a, .result { display: block; padding: 12px 18px; text-decoration: none; border-top: 1px solid var(--line); color: var(--text); }
.search-results a:first-child { border-top: 0; }
.search-results a:hover, .search-results a.active { background: var(--blue-soft); }
.search-results strong, .result strong { display: block; color: var(--ink); font-weight: 600; }
.search-results small, .result small { color: var(--muted); font-size: 13px; }
.search-empty { padding: 14px 18px; color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; padding-bottom: 56px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.section-card { text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; }
.section-card:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(36, 99, 235, .1); transform: translateY(-2px); color: var(--text); }
.section-card h2 { font-size: 19px; margin: 14px 0 4px; }
.section-card p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.section-card ul { list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; }
.section-card li { padding: 5px 0; border-top: 1px solid var(--line); }
.section-card .more { margin-top: auto; color: var(--blue); font-weight: 600; font-size: 14px; }
.ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--blue-soft); fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.crumbs { font-size: 13.5px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.section-head { display: flex; gap: 16px; align-items: center; padding-top: 18px; padding-bottom: 8px; }
.section-head h1 { font-size: 32px; margin: 0; }
.section-head p { margin: 2px 0 0; color: var(--muted); }
.section-head + .wrap .search { margin: 14px 0 20px; max-width: none; }
.article-list { list-style: none; padding: 0; margin: 0 0 56px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.article-list a { display: block; padding: 16px 22px; text-decoration: none; border-top: 1px solid var(--line); color: var(--text); }
.article-list li:first-child a { border-top: 0; }
.article-list a:hover { background: var(--blue-soft); }
.article-list strong { display: block; color: var(--ink); font-weight: 600; }
.article-list span { color: var(--muted); font-size: 14px; }

.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding-top: 18px; padding-bottom: 56px; align-items: start; }
.side { position: sticky; top: 18px; font-size: 14px; }
.side-title { font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.side ul { list-style: none; padding: 0; margin: 0; }
.side a { display: block; padding: 7px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.side a:hover { background: #fff; }
.side a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px 40px; }
.article h1 { font-size: 30px; margin: 0 0 6px; }
.article .lede { font-size: 17px; color: var(--muted); margin-top: 0; }
.article h2 { font-size: 21px; margin: 34px 0 10px; padding-top: 6px; }
.article h3 { font-size: 17px; margin: 24px 0 6px; }
.article p, .article li { max-width: 72ch; }
.article code { background: #f1f4f8; border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.toc { background: var(--bg); border-radius: 14px; padding: 14px 18px; font-size: 14px; margin: 18px 0 8px; }
.toc ul { margin: 6px 0 0; padding-left: 18px; }
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 14px 0 18px; }
ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 12px 46px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.article ul { padding-left: 22px; }
.callout { border-radius: 14px; padding: 14px 18px; margin: 18px 0; border-left: 4px solid; }
.callout > strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.callout p { margin: 4px 0; }
.callout.tip { background: #e8f6f3; border-color: var(--green); }
.callout.tip > strong { color: var(--green); }
.callout.note { background: var(--blue-soft); border-color: var(--blue); }
.callout.note > strong { color: var(--blue); }
.callout.warning { background: #fdeeec; border-color: var(--red); }
.callout.warning > strong { color: var(--red); }
.table-wrap { overflow-x: auto; margin: 14px 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); font-size: 13px; color: var(--muted); font-weight: 600; }
.shot img { max-width: 100%; border: 1px solid var(--line); border-radius: 12px; display: block; }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
figure { margin: 18px 0; }
.shot-placeholder { border: 2px dashed #c9d3e3; border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); font-size: 14px; background: #fafbfd; }
.shot-placeholder span { display: block; font-weight: 600; color: var(--text); margin-bottom: 4px; }
mark.confirm { background: #fff1b8; color: #7a5600; border-radius: 6px; padding: 1px 6px; font-weight: 500; font-size: .92em; }
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; font-weight: 600; max-width: 48%; }
.pager .next { text-align: right; }
.pager small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 22px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .side { position: static; order: 2; }
  .article { padding: 24px 20px; }
  .hero h1 { font-size: 30px; }
  .header-links { display: none; }
}
@media print {
  .site-header, .site-footer, .side, .pager, .devbar, .search, .crumbs { display: none; }
  .article { border: 0; padding: 0; }
  body { background: #fff; }
}
.shot a { display: block; cursor: zoom-in; }
.shot a:hover img { border-color: var(--blue); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 16, 28, .82); display: flex; align-items: center; justify-content: center; padding: 28px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 12px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.4); cursor: default; }
.lightbox figcaption { color: #fff; font-size: 14px; text-align: center; max-width: 80ch; }
.lightbox-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox-close:hover, .lightbox-close:focus-visible { background: rgba(255,255,255,.3); }
