/* Litcham Health Centre – site styles
   Colours follow the NHS identity palette; all text/background pairs meet WCAG 2.2 AA. */
:root {
  --blue: #005eb8;
  --dark-blue: #003087;
  --text: #212b32;
  --secondary: #4c6272;
  --grey-bg: #f0f4f5;
  --border: #d8dde0;
  --white: #ffffff;
  --focus: #ffeb3b;
  --red: #d5281b;
  --green: #007f3b;
  --warm-yellow: #ffb81c;
  --max: 960px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grey-bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.1875rem; /* 19px – NHS body size */
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.15em; }
a:visited { color: #330072; }
a:hover { color: #7c2855; text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 4px solid transparent;
  background: var(--focus);
  color: var(--text);
  box-shadow: 0 -2px var(--focus), 0 4px var(--text);
  text-decoration: none;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--blue); color: var(--white); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { color: var(--white) !important; text-decoration: none; display: block; }
.brand strong { display: block; font-size: 1.6rem; line-height: 1.2; }
.brand span { font-size: 1rem; }
.brand:hover strong { text-decoration: underline; }
.header-phone { color: var(--white); font-size: 1rem; }
.header-phone a { color: var(--white); font-weight: bold; }

/* Primary navigation */
.site-nav { background: var(--white); border-bottom: 1px solid var(--border); }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0 8px; max-width: var(--max); display: flex; flex-wrap: wrap; }
.site-nav a { display: block; padding: 12px 8px; font-size: 1rem; font-weight: bold; color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; box-shadow: inset 0 -4px var(--blue); }

/* Emergency banner */
.urgent { background: var(--red); color: var(--white); }
.urgent .wrap { padding-top: 12px; padding-bottom: 12px; }
.urgent p { margin: 0; font-size: 1rem; }
.urgent a { color: var(--white); font-weight: bold; }

main { display: block; padding: 32px 0 48px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.6rem; margin-top: 40px; }
h3 { font-size: 1.25rem; margin-top: 24px; }
p, ul, ol, table, dl { margin: 0 0 20px; }
.lede { font-size: 1.4rem; }
.breadcrumb { font-size: 1rem; margin-bottom: 16px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; list-style: none; padding: 0; }
.card { background: var(--white); border: 1px solid var(--border); border-bottom: 4px solid var(--blue); padding: 20px; height: 100%; position: relative; }
.card h2, .card h3 { font-size: 1.25rem; margin: 0 0 8px; }
.card p { margin: 0; font-size: 1rem; }
.card a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card:hover { border-bottom-color: var(--dark-blue); }

/* Callouts */
.panel { background: var(--white); border: 1px solid var(--border); padding: 24px; margin-bottom: 24px; }
.inset { border-left: 8px solid var(--blue); background: var(--white); padding: 16px 20px; margin: 0 0 24px; }
.care-urgent { border-left: 8px solid var(--red); background: var(--white); padding: 16px 20px; margin: 0 0 24px; }
.care-urgent h2, .inset h2 { margin-top: 0; font-size: 1.3rem; }
.todo { background: #fff3c4; outline: 2px dashed #b27b00; padding: 0 4px; }
div.todo, p.todo { padding: 12px 16px; }

/* Buttons */
.button { display: inline-block; background: var(--green); color: var(--white) !important; font-weight: bold; padding: 12px 20px; border-radius: 4px; box-shadow: 0 4px 0 #00401e; text-decoration: none; margin: 4px 8px 12px 0; }
.button:hover { background: #00662f; }
.button.secondary { background: var(--white); color: var(--blue) !important; box-shadow: 0 4px 0 var(--blue); border: 2px solid var(--blue); }

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 1rem; }
caption { text-align: left; font-weight: bold; font-size: 1.15rem; padding-bottom: 8px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { border-bottom: 2px solid var(--text); }
.table-scroll { overflow-x: auto; margin-bottom: 24px; }

details { background: var(--white); border: 1px solid var(--border); padding: 12px 16px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: bold; color: var(--blue); }

/* Footer */
.site-footer { background: var(--white); border-top: 4px solid var(--blue); font-size: 1rem; padding: 32px 0; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.site-footer h2 { font-size: 1.1rem; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.small { font-size: 0.95rem; color: var(--secondary); }

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }
  .lede { font-size: 1.2rem; }
}
@media print {
  .site-nav, .urgent, .skip, .site-footer { display: none; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.soon { display: block; background: var(--white); border: 2px dashed var(--secondary); padding: 12px 16px; margin: 8px 0 16px; font-size: 1rem; }
.rating { background: var(--white); border: 1px solid var(--border); border-left: 8px solid var(--green); padding: 16px 20px; margin-bottom: 16px; display: inline-block; }
.rating p { margin: 0; }
.rating-value { font-size: 2rem; font-weight: bold; color: var(--green); }
.cqc-widget { margin: 0 0 16px; max-width: 100%; overflow-x: auto; min-height: 1px; }
/* CQC widget: fallback visible by default (no-JS), hidden while waiting or once the widget renders */
.cqc-waiting .cqc-fallback, .cqc-ok .cqc-fallback { display: none; }

/* ---- Layout additions (Oct 2026) ---- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; font-size: 1rem; }
.breadcrumb li + li::before { content: "\203A"; margin: 0 8px; color: var(--secondary); }

/* Contact panel on home page */
.contact-panel { background: var(--white); border: 1px solid var(--border); border-top: 6px solid var(--blue); padding: 24px; margin: 0 0 32px; }
.contact-panel > h2 { margin-top: 0; }
.contact-ways { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 24px; }
.contact-ways li { border-left: 4px solid var(--grey-bg); padding-left: 16px; min-width: 0; }
.contact-ways h3 { margin: 0 0 4px; font-size: 1.15rem; }
.contact-ways p { margin: 0 0 8px; font-size: 1rem; }
.big-number { font-size: 1.4rem !important; font-weight: bold; }

/* Two-column sections */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.split > section { min-width: 0; }
.hours th { width: 55%; }
.closed { }
.closed ul { padding-left: 20px; }

/* News */
.news-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.news-item { background: var(--white); border: 1px solid var(--border); padding: 20px; }
.news-item h3 { margin: 0 0 8px; font-size: 1.15rem; }
.news-item p { margin: 0; font-size: 1rem; }
.date { color: var(--secondary); font-size: 0.95rem !important; margin: 0 0 4px !important; }
.news-article { background: var(--white); border: 1px solid var(--border); padding: 24px; margin-bottom: 24px; }
.news-article h2 { margin-top: 0; }
.news-article > :last-child { margin-bottom: 0; }

/* On this page */
.contents { border-left: 4px solid var(--border); padding-left: 16px; margin: 0 0 32px; }
.contents h2 { font-size: 1rem; margin: 0 0 8px; color: var(--secondary); }
.contents ul { margin: 0; padding-left: 20px; font-size: 1rem; }
.contents li { margin-bottom: 4px; }

/* Team roles */
.roles { background: var(--white); border: 1px solid var(--border); padding: 20px 24px; }
.roles dt { font-weight: bold; margin-top: 12px; }
.roles dt:first-child { margin-top: 0; }
.roles dd { margin: 0; }

/* Navigation: two-column grid on small screens so 10 links stay tidy */
@media (max-width: 640px) {
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; padding: 4px 8px; }
  .site-nav a { padding: 10px 8px; }
  .contact-panel { padding: 16px; }
}

/* ---- Forms (NHS.UK form patterns) ---- */
.form-group { margin-bottom: 32px; }
.form-group--error { border-left: 4px solid var(--red); padding-left: 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; max-width: 100%; }
.legend-heading { font-size: 1.4rem; margin: 0 0 8px; }
.label { display: block; font-weight: bold; margin-bottom: 8px; }
.hint { color: var(--secondary); margin: 0 0 12px; font-size: 1rem; }
.hint.over { color: var(--red); font-weight: bold; }
.error-message { color: var(--red); font-weight: bold; margin: 0 0 12px; }
.radio { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.radio input { width: 32px; height: 32px; margin: 0; accent-color: var(--blue); flex: 0 0 auto; }
.radio label { cursor: pointer; padding: 4px 0; }
textarea, select, input[type="month"], input[type="search"], input[type="text"] {
  font: inherit; font-size: 1.1875rem; color: var(--text); background: var(--white);
  border: 2px solid #4c6272; border-radius: 0; padding: 8px; max-width: 100%; }
textarea { width: 100%; min-height: 8em; }
select { min-width: 0; width: 100%; max-width: 28em; }
textarea:focus, select:focus, input:focus { outline: 4px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--text); }
.radio input:focus-visible { outline: 4px solid var(--focus); outline-offset: 2px; }
button.button { border: 0; font: inherit; font-weight: bold; cursor: pointer; }
button.button.secondary { border: 2px solid var(--blue); }
button.button:disabled { opacity: 0.6; cursor: default; }
.error-summary { border: 4px solid var(--red); background: var(--white); padding: 16px 20px; margin-bottom: 24px; }
.error-summary h2 { margin-top: 0; font-size: 1.3rem; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--red); font-weight: bold; }
.thanks { border: 4px solid var(--green); background: var(--white); padding: 20px 24px; margin-bottom: 24px; }
.thanks h2 { margin-top: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Staff report ---- */
.report-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.report-bar p { margin: 0; }
.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; margin: 24px 0 16px; }
.controls > div { min-width: 0; }
.controls-actions .button { margin-bottom: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 8px; }
.tile { background: var(--white); border: 1px solid var(--border); padding: 16px 20px; }
.tile p { margin: 0; }
.tile-label { font-size: 1rem; color: var(--secondary); }
.tile-value { font-size: 2.2rem; font-weight: bold; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: 0.95rem; color: var(--secondary); }
.report-table td, .report-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.report-table td { text-align: right; }
.report-table tr.selected { background: #e8f1f8; }
.report-table tfoot th, .report-table tfoot td { font-weight: bold; border-top: 2px solid var(--text); }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: bold; color: var(--blue); text-decoration: underline; cursor: pointer; text-align: left; }
.linklike[aria-current="true"] { color: var(--text); text-decoration: none; }
.linklike:focus-visible { background: var(--focus); color: var(--text); outline: none; }
/* rating colours: greens for positive, grey neutral, reds for negative */
.vg { background: #007f3b; } .g { background: #78be20; } .n { background: #aeb7bd; }
.p { background: #ed8b00; } .vp { background: #d5281b; } .dk { background: #e8edee; }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 1rem; }
.legend .seg { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border: 1px solid #768692; }
.chart { background: var(--white); border: 1px solid var(--border); padding: 16px; margin-bottom: 8px; }
.bar-row { display: grid; grid-template-columns: 9.5em 1fr 3em; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 0.95rem; }
.bar { display: flex; height: 20px; background: var(--grey-bg); min-width: 0; }
.bar .seg { display: block; height: 100%; }
.bar .seg.empty { background: var(--grey-bg); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: bold; }
.comments { list-style: none; padding: 0; }
.comment { background: var(--white); border: 1px solid var(--border); padding: 14px 18px; margin-bottom: 10px; }
.comment p { margin: 0; }
.comment-meta { font-size: 0.95rem; color: var(--secondary); margin-bottom: 6px !important; }
.comment-text { overflow-wrap: anywhere; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 3px; font-weight: bold; font-size: 0.9rem; color: #fff; }
.chip.g, .chip.n, .chip.dk { color: var(--text); }
@media (max-width: 640px) { .bar-row { grid-template-columns: 6.5em 1fr 2.6em; } }

/* ---- Visual refresh: banner, icons, tiles (Oct 2026) ---- */
:root { --pale-blue: #e8f1f8; --icon-bg: #e8f1f8; }
.icon { width: 100%; height: 100%; display: block; }
main.has-hero { padding-top: 0; }

/* Banner */
.hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; margin-bottom: 40px; overflow: hidden; background: #bcdcf2; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-inner { position: relative; width: 100%; padding-top: 48px; padding-bottom: 32px; }
.hero-card { background: var(--white); max-width: 34em; padding: 24px 28px; border-left: 8px solid var(--blue); box-shadow: 0 2px 12px rgba(33,43,50,0.15); }
.hero-card h1 { font-size: 2.1rem; margin-bottom: 8px; }
.hero-card p { margin-bottom: 12px; }
.hero-actions { margin: 8px 0 0 !important; }
.hero-actions .button { margin-bottom: 4px; }

/* "How can we help" icon tiles */
.section-title { margin-top: 0; }
.tiles-nav { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tiles-nav a { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; background: var(--white); border: 1px solid var(--border); border-bottom: 4px solid var(--blue); padding: 20px; text-decoration: none; color: var(--text); }
.tiles-nav a:hover { border-bottom-color: var(--dark-blue); box-shadow: 0 4px 10px rgba(33,43,50,0.08); }
.tiles-nav a:hover strong { text-decoration: underline; }
.tiles-nav a:focus-visible { background: var(--focus); box-shadow: 0 4px 0 var(--text); }
.tile-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--icon-bg); color: var(--blue); padding: 13px; flex: 0 0 auto; }
.tile-text strong { display: block; color: var(--blue); font-size: 1.15rem; margin-bottom: 2px; text-decoration: underline; text-underline-offset: 0.15em; }
.tiles-nav a:focus-visible strong { color: var(--text); }
.tile-text span { display: block; font-size: 0.95rem; color: var(--secondary); }

/* Contact strip */
.contact-strip { background: var(--blue); color: var(--white); padding: 24px; margin: 0 0 40px; }
.contact-strip h2 { color: var(--white); }
.contact-strip a { color: var(--white); }
.contact-strip a:focus-visible { color: var(--text); }
.contact-strip .contact-ways li { border-left: 0; padding-left: 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: start; }
.way-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.18); padding: 10px; }
.contact-strip h3 { color: var(--white); margin: 0 0 2px; font-size: 1.1rem; }
.contact-strip p { margin: 0; font-size: 1rem; }
.contact-strip .big-number { font-size: 1.3rem !important; }

/* Info cards */
.info-card { background: var(--white); border: 1px solid var(--border); padding: 20px 24px; margin-bottom: 40px; }
.info-card h2 { margin-top: 0; display: flex; align-items: center; gap: 12px; font-size: 1.4rem; }
.h-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--icon-bg); color: var(--blue); padding: 9px; flex: 0 0 auto; }
.closed .h-icon { background: #fde8e6; color: var(--red); }
.icon-list { list-style: none; padding: 0; }
.icon-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.icon-list li:last-child { border-bottom: 0; }
.info-card .hours { background: transparent; }
.info-card .cqc-widget { margin: 0; }

/* News with icons */
.news-item { display: flex; gap: 14px; align-items: flex-start; }
.news-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--icon-bg); color: var(--blue); padding: 10px; flex: 0 0 auto; }
.news-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.news-head h2 { margin: 0; }

/* Inner page titles */
.page-title { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.page-title h1 { margin: 0; }
.page-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--blue); color: var(--white); padding: 14px; flex: 0 0 auto; }

@media (max-width: 900px) { .tiles-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hero { min-height: 0; display: block; }
  .hero-img { position: static; height: 180px; }
  .hero-inner { padding-top: 0; padding-bottom: 0; }
  .hero-card { margin: -24px 0 0; box-shadow: none; border: 1px solid var(--border); border-left: 8px solid var(--blue); padding: 18px; }
  .hero-card h1 { font-size: 1.7rem; }
  .tiles-nav { gap: 10px; }
  .tiles-nav a { padding: 14px; gap: 8px; }
  .tile-icon { width: 44px; height: 44px; padding: 10px; }
  .tile-text strong { font-size: 1.05rem; }
  .contact-strip { padding: 18px 16px; margin-left: -16px; margin-right: -16px; }
  .page-icon { width: 48px; height: 48px; padding: 11px; }
}
.hero { min-height: 380px; }
.hero-img { object-position: center 75%; }
@media (max-width: 640px) { .hero { min-height: 0; } .hero-img { height: 190px; object-position: 92% 80%; } }
.hero-card { max-width: 30em; } .hero-card h1 { font-size: 1.95rem; } @media (min-width: 1100px) { .hero-img { object-position: 30% 75%; } }
/* Real photo banner: card sits on the right (over the car park) so the entrance stays visible */
.hero--photo { min-height: 430px; background: #6aa5d8; }
.hero--photo .hero-img { object-position: 50% 45%; }
@media (min-width: 900px) {
  .hero--photo .hero-inner { display: flex; justify-content: flex-end; }
  .hero--photo .hero-card { max-width: 25em; border-left: 0; border-top: 8px solid var(--blue); }
  .hero--photo .hero-img { object-position: 30% 45%; }
}
@media (max-width: 640px) {
  .hero--photo { min-height: 0; }
  .hero--photo .hero-img { height: 200px; object-position: 50% 50%; }
}
@media (min-width: 900px) {
  .hero--photo { min-height: 480px; }
  .hero--photo .hero-img { object-position: 40% 45%; }
  .hero--photo .hero-card { max-width: 21em; padding: 20px 24px; }
  .hero--photo .hero-card h1 { font-size: 1.6rem; }
  .hero--photo .hero-card p { font-size: 1.05rem; }
}
/* Header lockup: practice name with NHS logo to its right (NHS identity for GP practices) */
.brand-lockup { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.brand-lockup strong { display: inline; }
.nhs-logo { display: block; width: 80px; height: 32px; flex: 0 0 auto; }
.brand-sub { display: block; font-size: 1rem; margin-top: 4px; }
.brand:hover .brand-sub { text-decoration: none; }
.brand:focus-visible .nhs-logo__bg { fill: #ffffff; }
@media (max-width: 640px) { .nhs-logo { width: 65px; height: 26px; } }

/* ---- Header search ---- */
.header-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.header-tools .header-phone { margin: 0; }
.header-search { display: flex; width: 20em; max-width: 100%; }
.header-search input { flex: 1 1 auto; min-width: 0; border: 2px solid var(--white); border-right: 0; border-radius: 4px 0 0 4px; padding: 6px 10px; font-size: 1rem; }
.header-search button { flex: 0 0 auto; width: 44px; border: 2px solid var(--white); border-radius: 0 4px 4px 0; background: var(--dark-blue); color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.header-search button:hover { background: #002060; }
.header-search button:focus-visible, .header-search input:focus { outline: 4px solid var(--focus); outline-offset: 0; box-shadow: none; }
.search-page-form { margin-bottom: 24px; }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.search-row input { flex: 1 1 16em; min-width: 0; }
.search-row .button { margin: 0; }
.search-count { font-size: 1.1rem; }
.search-list { list-style: none; padding: 0; }
.search-list li { background: var(--white); border: 1px solid var(--border); padding: 16px 20px; margin-bottom: 12px; }
.search-list h2 { font-size: 1.25rem; margin: 0 0 6px; }
.search-list p { margin: 0; font-size: 1rem; }
mark { background: #fff3c4; color: inherit; padding: 0 1px; }
@media (max-width: 640px) {
  .header-tools { align-items: stretch; width: 100%; }
  .header-search { width: 100%; }
  .header-search input { font-size: 1.0625rem; padding: 8px 10px; }
}

/* ---- Practice team ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 32px; }
.team-group { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--blue); padding: 18px 20px; min-width: 0; }
.team-group h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 1.2rem; }
.team-list { list-style: none; padding: 0; margin: 0; }
.team-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.team-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.team-name { display: block; font-weight: bold; }
.team-role { display: block; font-size: 0.95rem; color: var(--secondary); }
.team-grid { align-items: start; }
.header-tools { justify-content: center; }

/* ---- Temporary site notice (NHS "warning callout" style) ---- */
.site-notice { background: #fff9c4; border-bottom: 4px solid #ffb81c; }
.site-notice .wrap { padding-top: 20px; padding-bottom: 20px; }
.notice-inner { display: flex; gap: 16px; align-items: flex-start; }
.notice-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: #fff9c4; padding: 10px; flex: 0 0 auto; }
.site-notice h2 { margin: 4px 0 8px; font-size: 1.4rem; }
.site-notice p { margin: 0 0 8px; }
.site-notice .notice-actions { margin: 12px 0 0; font-size: 1rem; }
main.has-hero .site-notice + .hero { margin-top: 0; }
@media (max-width: 640px) { .notice-icon { width: 36px; height: 36px; padding: 8px; } .site-notice h2 { font-size: 1.2rem; } }
.catchment-map { background: var(--white); border: 1px solid var(--border); margin-bottom: 8px; }
.catchment-map iframe { display: block; width: 100%; height: 400px; border: 0; }
@media (max-width: 640px) { .catchment-map iframe { height: 360px; } }

/* ---- Service cards (mental health) ---- */
.care-urgent h3 { margin-top: 0; font-size: 1.25rem; }
.care-urgent ul { margin-bottom: 0; }
.service-card { background: var(--white); border: 1px solid var(--border); padding: 20px 24px; margin-bottom: 24px; min-width: 0; }
.service-card h3, .service-card h4 { margin: 0 0 8px; font-size: 1.2rem; }
.service-card p { margin-bottom: 10px; }
.service-card > :last-child { margin-bottom: 0; }
.service-card--new { border-left: 8px solid var(--green); }
.service-tag { display: inline-block; background: var(--green); color: var(--white); font-weight: bold; font-size: 0.9rem; padding: 2px 10px; border-radius: 3px; margin-bottom: 8px !important; }
.contact-list { list-style: none; padding: 0; margin: 0 0 12px; }
.contact-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 24px; }
.service-grid .service-card { margin-bottom: 0; }

/* ---- Friends and Family Test results ---- */
.fft-tiles { margin-bottom: 24px; }
.fft-table td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fft-table td:nth-child(3) { text-align: left; }
.fft-bar { display: inline-block; vertical-align: middle; width: 120px; height: 12px; background: var(--grey-bg); margin-right: 10px; border: 1px solid var(--border); }
.fft-bar span { display: block; height: 100%; background: var(--green); }
@media (max-width: 640px) { .fft-bar { width: 60px; } }

/* ---- New patient questionnaire ---- */
.reg-form .q-part { margin-bottom: 16px; }
.reg-form .q-part > h2 { border-bottom: 4px solid var(--blue); padding-bottom: 8px; margin-top: 40px; }
.q-section { background: var(--white); border: 1px solid var(--border); padding: 20px 24px 4px; margin-bottom: 20px; }
.q-section h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 1.3rem; }
.q-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 1rem; flex: 0 0 auto; }
.reg-form .form-group { margin-bottom: 20px; }
.reg-form input[type=text], .reg-form input[type=tel], .reg-form input[type=email], .reg-form input[type=date] { font: inherit; font-size: 1.0625rem; color: var(--text); background: var(--white); border: 2px solid #4c6272; padding: 6px 8px; width: 100%; max-width: 32em; }
.reg-form .input-10 { max-width: 12em !important; }
.reg-form .input-20 { max-width: 18em !important; }
.req { font-weight: normal; color: var(--secondary); font-size: 0.95rem; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choices--inline { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
.choice { display: flex; align-items: center; gap: 10px; }
.choice input { width: 28px; height: 28px; margin: 0; accent-color: var(--blue); flex: 0 0 auto; }
.choice label { cursor: pointer; }
.choice-other { margin-top: 10px; }
.label-inline { display: block; font-size: 1rem; margin-bottom: 4px; }
.form-table { background: var(--white); }
.form-table caption { font-size: 1rem; }
.form-table td { padding: 4px; }
.form-table input { width: 100%; min-width: 9em; font: inherit; font-size: 1rem; border: 2px solid #4c6272; padding: 6px; }
.add-row { font-size: 1rem; padding: 8px 14px; }
.warning-note { background: #fff9c4; border-left: 8px solid #ffb81c; padding: 12px 16px; }
.inset-note { border-left: 4px solid var(--blue); padding-left: 12px; }
.answers h3 { font-size: 1.15rem; margin-top: 24px; }
.answer-list dt { font-weight: bold; margin-top: 8px; }
.answer-list dd { margin: 0; white-space: pre-wrap; }
@media print {
  .site-header, .site-nav, .urgent, .site-footer, .breadcrumb, .page-title, .lede, .inset, #print-answers, #error-summary { display: none !important; }
  .thanks { border: 0; padding: 0; }
}

/* ---- White header with practice logo; blue navigation bar (Oct 2026) ---- */
.site-header { background: var(--white); color: var(--text); border-bottom: 1px solid var(--border); }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; align-items: center; }
.brand--logo { display: block; line-height: 0; }
.brand--logo img { display: block; width: auto; height: 88px; max-width: 100%; }
.brand--logo:focus-visible { background: var(--focus); box-shadow: 0 0 0 4px var(--focus), 0 4px 0 4px var(--text); }
.header-tools { flex-direction: column; align-items: flex-end; gap: 10px; }
.nhs-mark { display: block; line-height: 0; }
.nhs-mark .nhs-logo { width: 90px; height: 36px; }
.header-search input { border: 2px solid #4c6272; border-right: 0; }
.header-search button { border: 2px solid var(--blue); background: var(--blue); }
.header-search button:hover { background: var(--dark-blue); border-color: var(--dark-blue); }

.site-nav { background: var(--blue); border-bottom: 0; }
.site-nav a, .site-nav a:visited { color: var(--white); }
.site-nav a:hover { color: var(--white); text-decoration-thickness: 3px; }
.site-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -4px var(--white); }
.site-nav a:focus-visible { color: var(--text); background: var(--focus); box-shadow: inset 0 -4px var(--text); }

/* Translate button (in the menu) and panel */
.nav-translate button { display: flex; align-items: center; gap: 6px; padding: 12px 8px; border: 0; background: none; color: var(--white); font: inherit; font-size: 1rem; font-weight: bold; text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.nav-translate button:hover { text-decoration-thickness: 3px; }
.nav-translate button[aria-expanded="true"] { box-shadow: inset 0 -4px var(--white); }
.nav-translate button:focus-visible { color: var(--text); background: var(--focus); box-shadow: inset 0 -4px var(--text); }
.nav-translate .icon { width: 20px; height: 20px; }
.translate-panel { background: var(--white); border-bottom: 4px solid var(--blue); padding: 8px 0 4px; }
.translate-panel h2 { margin: 8px 0; font-size: 1.4rem; }
.translate-panel h2:focus { outline: none; }
.translate-panel p { max-width: 44em; }
.translate-actions .button { margin-bottom: 8px; }
#google_translate_element select { font: inherit; font-size: 1rem; padding: 8px; border: 2px solid var(--text); border-radius: 0; min-width: 16em; max-width: 100%; }
@media (min-width: 641px) {  /* fit all menu items, including Translate, on one line */
  .site-nav a, .nav-translate button { padding-left: 5px; padding-right: 5px; }
}
@media (max-width: 640px) {
  .nav-translate { grid-column: 1 / -1; }
  .nav-translate button { padding: 10px 8px; }
}

@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; }
  .brand--logo img { height: 56px; }
  .header-tools { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .nhs-mark { order: 2; }
  .nhs-mark .nhs-logo { width: 70px; height: 28px; }
  .header-search { order: 1; flex: 1 1 auto; margin-right: 12px; }
}
@media (max-width: 640px) {
  .site-header .wrap { position: relative; }
  .header-tools { flex-direction: column; align-items: stretch; }
  .nhs-mark { position: absolute; top: 18px; right: max(16px, env(safe-area-inset-right, 0px)); }
  .header-search { margin-right: 0; width: 100%; }
  .brand--logo img { height: 52px; }
}
