/*
Theme Name: The Hollies Surgery
Theme URI: https://holliessurgery.com/
Author: The Hollies Surgery
Description: Custom theme for The Hollies Surgery, an NHS GP practice in Downham Market. Blue NHS-style design with top utility bar, fading hero banner, Accurx online-consultation strip, patient shortcut cards and a four-column footer with CQC registration details.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hollies-surgery
*/

/* ---------- Design tokens ---------- */
:root {
  --background: #ffffff;
  --foreground: #4d4d4d;
  --primary: #006fc6;
  --primary-foreground: #ffffff;
  --navy: #0b2a4a;
  --nhs: #005eb8;
  --pale: #f5fbff;
  --topbar: #f5fbff;
  --sky: #83c4ff;
  --sky-strong: #5db2ff;
  --charcoal: #1f1f1f;
  --charcoal-line: #2a2a2a;
  --charcoal-muted: #8f9195;
  --muted-foreground: #727272;
  --border: #e5e6e9;
  --input: #9fb0c8;
  --ring: #ffb81c;
  --warning: #fff4d6;
  --gradient-cta: linear-gradient(to right, #006fc6, #0077d4);
  --shadow-soft: 0 6px 20px -10px rgb(12 35 71 / 0.25);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; margin: 0; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.75;
}
h1, h2, h3, h4 { color: var(--charcoal); font-weight: 500; line-height: 1.2; margin: 0; }
h1 { font-weight: 300; }
a { color: var(--primary); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy);
  border-radius: 2px;
}
.screen-reader-text, .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: absolute; left: 0.5rem; top: 0.5rem; z-index: 100;
  width: auto; height: auto; clip: auto; margin: 0;
  background: var(--warning); color: var(--navy); font-weight: 600;
  padding: 0.5rem 1rem;
}

.container-site { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 1.25rem; }

/* Decorative icons need explicit dimensions; do not resize the NHS badge. */
svg[aria-hidden="true"] {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  vertical-align: -0.2em;
}
.btn-cta svg, .btn-outline-navy svg, .btn-light svg,
.menu-toggle svg, .header-search button svg, .mobile-menu form button svg,
.eyebrow svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
}
.nhs-services a.service > svg {
  margin-left: auto;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  color: var(--primary);
  transition: transform .3s;
}
.nhs-services a.service:hover > svg { transform: translateX(4px); }
.feedback-panel a.row > svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  color: var(--primary);
}
.feedback-panel a.row > svg:last-child {
  margin-left: auto;
  width: 1rem;
  height: 1rem;
  flex-basis: 1rem;
}
.feedback-panel a.row:hover > svg:last-child { transform: translateY(-2px); }

/* ---------- Buttons ---------- */
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem;
  padding: 0 1.75rem; border-radius: 4px; border: 1px solid transparent;
  background: var(--gradient-cta); color: var(--primary-foreground);
  font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: all .4s;
}
.btn-cta:hover { background: var(--background); color: var(--primary); border-color: var(--primary); }
.btn-outline-navy {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem;
  padding: 0 1rem; border-radius: 5px; border: 1px solid var(--navy);
  color: var(--navy); font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: all .4s;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary);
}
.card-hover { transition: all .35s; }
.card-hover:hover { border-color: var(--primary); box-shadow: var(--shadow-soft); transform: translateY(-3px); }

/* Docmed "section_title": centred heading with a short sky-blue underline */
.section-title-docmed { position: relative; z-index: 1; padding-bottom: 15px; margin-bottom: 0; display: inline-block; }
.section-title-docmed::before {
  position: absolute; content: ""; left: 50%; bottom: 0; height: 2px; width: 50px;
  transform: translateX(-50%); background: var(--sky-strong);
}

/* ---------- Top utility bar ---------- */
.topbar { background: var(--topbar); padding-block: 0.625rem; font-size: 0.85rem; color: var(--muted-foreground); }
.topbar .container-site { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; }
.topbar .topbar-right { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.375rem; }
.topbar a:hover { color: var(--primary); }
.topbar svg { width: 0.875rem; height: 0.875rem; color: var(--sky-strong); }

/* ---------- Header ---------- */
.site-header-main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding-block: 0.75rem; }
.site-logo { display: flex; align-items: center; min-width: 0; }
.site-logo img { height: 3rem; width: auto; max-width: 100%; }
@media (min-width: 640px) { .site-logo img { height: 3.5rem; } }
@media (min-width: 1024px) { .site-logo img { height: 68px; } }
.header-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }
.header-search { display: none; }
@media (min-width: 1280px) { .header-search { display: flex; } }
.header-search input[type="search"] {
  height: 2.75rem; width: 9rem; border: 1px solid var(--input); border-right: 0;
  border-radius: 4px 0 0 4px; padding: 0 0.75rem; font-size: 0.95rem; font-family: inherit;
}
.header-search button {
  height: 2.75rem; display: inline-flex; align-items: center; gap: 0.375rem;
  background: var(--primary); color: #fff; border: 0; border-radius: 0 4px 4px 0;
  padding: 0 1rem; font-weight: 500; font-family: inherit; font-size: 0.95rem; cursor: pointer;
}
.header-search button:hover { background: var(--navy); }
.header-phone {
  display: flex; min-height: 2.75rem; align-items: center; gap: 0.5rem;
  font-weight: 700; color: var(--navy); text-decoration: none;
}
.header-phone:hover { text-decoration: underline; }
.header-phone svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.nhs-badge { display: none; height: 2rem; width: auto; }
@media (min-width: 640px) { .nhs-badge { display: block; } }
@media (min-width: 768px) { .nhs-badge { height: 2.5rem; } }

/* ---------- Nav ---------- */
.main-nav { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.main-nav .nav-inner { display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 1024px) { .main-nav .nav-inner { justify-content: flex-start; } }
.main-nav ul { display: none; flex-wrap: wrap; }
@media (min-width: 1024px) { .main-nav ul { display: flex; } }
.main-nav ul a {
  display: flex; min-height: 3.5rem; align-items: center; padding: 0 0.75rem;
  font-weight: 500; font-size: 0.95rem; color: var(--charcoal); text-decoration: none;
}
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: var(--primary); }
.menu-toggle {
  display: flex; min-height: 3rem; align-items: center; gap: 0.5rem;
  background: none; border: 0; font: inherit; font-weight: 500; color: var(--navy); cursor: pointer;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.mobile-menu { border-top: 1px solid var(--border); padding-bottom: 0.75rem; display: none; }
.mobile-menu.open { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu form { display: flex; padding-block: 0.75rem; }
.mobile-menu input[type="search"] {
  height: 2.75rem; min-width: 0; flex: 1; border: 1px solid var(--input);
  border-radius: 6px 0 0 6px; padding: 0 0.75rem; font-family: inherit; font-size: 1rem;
}
.mobile-menu form button {
  height: 2.75rem; background: var(--primary); color: #fff; border: 0;
  border-radius: 0 6px 6px 0; padding: 0 1rem; font-weight: 600; font-family: inherit; cursor: pointer;
}
.mobile-menu ul a {
  display: flex; min-height: 3rem; align-items: center;
  font-weight: 500; color: var(--charcoal); text-decoration: none;
}
.mobile-menu ul a:hover { color: var(--primary); }

/* ---------- Hero / intro banner ---------- */
.intro-banner { background: var(--topbar); }
.intro-banner .container-site {
  display: grid; align-items: center; gap: 1.5rem; padding-block: 2.25rem;
}
@media (min-width: 768px) {
  .intro-banner .container-site { min-height: 320px; grid-template-columns: 1.2fr 1fr; padding-block: 2rem; }
}
.intro-banner h1 { font-size: 2.1rem; line-height: 1.25; }
@media (min-width: 768px) { .intro-banner h1 { font-size: 2.8rem; } }
.intro-banner p { margin: 0.75rem 0 0; max-width: 36rem; font-size: 1.1rem; }

/* Fading slider */
.fade-slider { position: relative; display: none; height: 280px; width: 100%; overflow: hidden; border-radius: 8px; }
@media (min-width: 768px) { .fade-slider { display: block; } }
.fade-slider .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out;
}
.fade-slider .slide.active { opacity: 1; }
.fade-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.fade-slider .dots {
  position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 2;
}
.fade-slider .dots button {
  width: 0.625rem; height: 0.625rem; border-radius: 50%; border: 0;
  background: rgb(255 255 255 / 0.55); cursor: pointer; padding: 0;
}
.fade-slider .dots button.active { background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .fade-slider .slide { transition: none; }
}

/* ---------- Accurx strip (Docmed light-blue service strip) ---------- */
.accurx-strip { background: var(--sky); color: var(--navy); }
.accurx-strip .strip-grid { max-width: 76rem; margin-inline: auto; display: grid; }
@media (min-width: 1024px) { .accurx-strip .strip-grid { grid-template-columns: 1fr 2fr 1.2fr; } }
.accurx-strip .strip-cell { display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; }
@media (min-width: 1024px) { .accurx-strip .strip-cell { padding-block: 2.5rem; } }
.accurx-strip .accurx-tile { display: inline-flex; border-radius: 4px; background: #fff; padding: 1rem 1.25rem; }
.accurx-strip .accurx-tile img { width: 164px; height: auto; }
.accurx-strip .strip-middle { background: var(--sky-strong); padding: 2rem 1.5rem; }
@media (min-width: 1024px) { .accurx-strip .strip-middle { padding: 2.5rem 2rem; } }
.accurx-strip h2 { font-size: 26px; font-weight: 500; color: var(--navy); }
.accurx-strip .strip-middle p { margin: 0.75rem 0 0; font-size: 1rem; line-height: 1.75; }
.accurx-strip .strip-middle p.small { font-size: 13px; }

/* ---------- Shortcut cards (Docmed "Our Departments") ---------- */
.shortcuts { margin-top: 3.5rem; background: var(--topbar); padding-block: 3.5rem; }
.shortcuts .section-head { margin-bottom: 2.5rem; text-align: center; }
.shortcuts .section-head h2 { font-size: 1.75rem; font-weight: 500; color: var(--charcoal); }
.shortcuts .section-head p { margin: 1rem 0 0; font-size: 1rem; color: var(--muted-foreground); }
.shortcuts ul { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .shortcuts ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shortcuts ul { grid-template-columns: repeat(4, 1fr); } }
.shortcuts li { display: flex; }
.shortcut-card {
  display: flex; width: 100%; flex-direction: column; overflow: hidden;
  border-radius: 5px; background: #fff; box-shadow: 0 6px 10px rgba(0,0,0,0.04);
  text-decoration: none; transition: box-shadow .35s;
}
.shortcut-card:hover { box-shadow: var(--shadow-soft); }
.shortcut-card .thumb { height: 7rem; overflow: hidden; background: rgb(131 196 255 / 0.3); }
.shortcut-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s;
}
.shortcut-card:hover .thumb img { transform: scale(1.05); }
.shortcut-card .body { padding: 1rem; }
.shortcut-card .title { display: block; font-size: 1.1rem; font-weight: 500; color: var(--charcoal); }
.shortcut-card:hover .title { color: var(--primary); }
.shortcut-card .note { display: block; margin-top: 0.25rem; font-size: 0.9rem; line-height: 1.5; color: var(--muted-foreground); }
.shortcut-card .card-links { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.shortcut-card .card-links a { display: inline-flex; min-height: 2.25rem; align-items: center; font-size: 0.95rem; font-weight: 500; color: var(--primary); text-decoration: none; }
.shortcut-card .card-links a:hover { text-decoration: underline; }

/* ---------- Welcome ---------- */
.welcome { margin-top: 3rem; background: var(--pale); padding-block: 3rem; }
.welcome .container-site { display: grid; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .welcome .container-site { grid-template-columns: 1fr 1fr; } }
.welcome img { height: 18rem; width: 100%; object-fit: cover; border-radius: 8px; }
.welcome h2 { font-size: 1.75rem; }
.welcome p { margin: 0.75rem 0 0; }
.welcome ul { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.welcome ul a { display: inline-flex; min-height: 2.75rem; align-items: center; font-weight: 600; color: var(--primary); }

/* ---------- PPG panel ---------- */
.ppg { margin-top: 3.5rem; }
.ppg .panel { display: grid; overflow: hidden; border-radius: 8px; background: var(--navy); color: #fff; }
@media (min-width: 768px) { .ppg .panel { grid-template-columns: 1fr 1fr; } }
.ppg .panel img { height: 100%; width: 100%; object-fit: cover; }
.ppg .panel .body { padding: 2rem; }
.ppg h2 { font-size: 1.75rem; color: #fff; }
.ppg p { margin: 0.75rem 0 0; }
.ppg .btn-light {
  margin-top: 1.25rem; display: inline-flex; min-height: 3rem; align-items: center; gap: 0.5rem;
  border-radius: 6px; background: #fff; padding: 0 1.25rem; font-weight: 700; color: var(--navy); text-decoration: none;
}
.ppg .btn-light:hover { background: var(--pale); }

/* ---------- News ---------- */
.news { margin-top: 3.5rem; }
.news .news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem; }
.news h2 { font-size: 1.75rem; }
.news .news-head a { display: inline-flex; min-height: 2.75rem; align-items: center; font-weight: 600; }
.news ul { margin-top: 1.25rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .news ul { grid-template-columns: repeat(3, 1fr); } }
.news li { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.news li time { color: var(--muted-foreground); }
.news li h3 { margin-top: 0.25rem; font-size: 1.25rem; }
.news li p { margin: 0.5rem 0 0; flex: 1; }
.news li a.more { margin-top: 0.75rem; display: inline-flex; min-height: 2.75rem; align-items: center; font-weight: 600; }

/* ---------- Opening hours ---------- */
.hours { margin-top: 3.5rem; }
.hours .panel { border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
@media (min-width: 768px) { .hours .panel { padding: 2rem; } }
.hours h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.75rem; }
.hours h2 svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.hours .grid { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .hours .grid { grid-template-columns: repeat(4, 1fr); } }
.hours .cell { border-radius: 6px; background: var(--pale); padding: 1.25rem; }
.hours .cell h3 { font-size: 1.15rem; }
.hours .cell p { margin: 0.25rem 0 0; }
.hours .cell .big { font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.hours .cell h3 svg { width: 1.25rem; height: 1.25rem; color: var(--primary); vertical-align: -0.2em; }

/* ---------- Local & NHS services ---------- */
.nhs-services { margin-top: 4rem; background: var(--pale); padding-block: 3.5rem; }
.nhs-services h2 { margin-top: 0.5rem; font-size: 2rem; }
.nhs-services .lede { margin: 0.75rem 0 0; max-width: 42rem; }
.nhs-services ul { margin-top: 2rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .nhs-services ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nhs-services ul { grid-template-columns: repeat(4, 1fr); } }
.nhs-services a.service {
  display: flex; height: 100%; align-items: center; gap: 1rem;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 1.25rem;
  text-decoration: none;
}
.nhs-services a.service .icon {
  display: flex; width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  align-items: center; justify-content: center; border-radius: 6px;
  background: rgb(131 196 255 / 0.4); color: var(--navy);
}
.nhs-services a.service .icon svg { width: 1.5rem; height: 1.5rem; }
.nhs-services a.service .label { font-weight: 500; color: var(--navy); }
.nhs-services a.service .arrow { margin-left: auto; width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--primary); transition: transform .3s; }
.nhs-services a.service:hover .arrow { transform: translateX(4px); }

/* ---------- Advice & feedback ---------- */
.advice-feedback { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .advice-feedback { grid-template-columns: 1fr 1fr; } }
.advice-panel {
  position: relative; overflow: hidden; border-radius: 12px;
  background: var(--navy); color: #fff; padding: 2rem;
}
@media (min-width: 768px) { .advice-panel { padding: 2.5rem; } }
.advice-panel .deco1, .advice-panel .deco2 { position: absolute; border-radius: 50%; pointer-events: none; }
.advice-panel .deco1 { right: -3rem; top: -3rem; width: 11rem; height: 11rem; background: rgb(0 111 198 / 0.25); }
.advice-panel .deco2 { bottom: -4rem; left: -2.5rem; width: 10rem; height: 10rem; background: rgb(131 196 255 / 0.15); }
.advice-panel .inner { position: relative; }
.advice-panel .kicker { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); }
.advice-panel h2 { margin-top: 0.75rem; font-size: 1.6rem; color: #fff; }
.advice-panel p { margin: 0.75rem 0 0; max-width: 28rem; }
.advice-panel .btn-light {
  margin-top: 1.75rem; display: inline-flex; min-height: 3rem; align-items: center; gap: 0.5rem;
  border: 1px solid #fff; border-radius: 6px; background: #fff; padding: 0 1.5rem;
  font-weight: 500; color: var(--navy); text-decoration: none; transition: background .3s;
}
.advice-panel .btn-light:hover { background: var(--pale); }
.feedback-panel { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 2rem; }
@media (min-width: 768px) { .feedback-panel { padding: 2.5rem; } }
.feedback-panel .head { display: flex; align-items: center; gap: 0.75rem; }
.feedback-panel .head .icon {
  display: flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
  border-radius: 6px; background: rgb(131 196 255 / 0.4); color: var(--navy);
}
.feedback-panel .head .icon svg { width: 1.5rem; height: 1.5rem; }
.feedback-panel h2 { font-size: 1.6rem; }
.feedback-panel ul { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.feedback-panel a.row {
  display: flex; align-items: center; gap: 1rem; border: 1px solid var(--border);
  border-radius: 8px; background: var(--pale); padding: 1rem; text-decoration: none;
}
.feedback-panel a.row svg.lead { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--primary); }
.feedback-panel a.row .label { font-weight: 500; color: var(--navy); }
.feedback-panel a.row svg.tail { margin-left: auto; width: 1rem; height: 1rem; flex-shrink: 0; color: var(--primary); transition: transform .3s; }
.feedback-panel a.row:hover svg.tail { transform: translateY(-2px); }

/* ---------- PCN ---------- */
.pcn { margin-top: 3rem; }
.pcn .panel {
  display: grid; align-items: center; gap: 2rem;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 2rem;
}
@media (min-width: 1024px) { .pcn .panel { grid-template-columns: 1.05fr 1fr; padding: 2.5rem; } }
.pcn h2 { margin-top: 0.5rem; font-size: 1.75rem; }
.pcn p { margin: 1rem 0 0; }
.pcn .strong { font-weight: 500; color: var(--navy); }
.pcn .btn-cta { margin-top: 1.5rem; }
.video-facade {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px;
  overflow: hidden; cursor: pointer; background: #000 center / cover no-repeat; padding: 0;
}
.video-facade .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-facade .play span {
  display: flex; width: 4.5rem; height: 4.5rem; align-items: center; justify-content: center;
  border-radius: 50%; background: rgb(0 111 198 / 0.9); color: #fff; transition: transform .3s;
}
.video-facade:hover .play span { transform: scale(1.08); }
.video-facade .play svg { width: 2rem; height: 2rem; margin-left: 0.25rem; }
.video-embed { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }

/* ---------- Practice info strip ---------- */
.practice-info-strip { margin-top: 3rem; margin-bottom: 1rem; }
.practice-info-strip .panel { border: 1px solid var(--border); border-radius: 12px; background: var(--pale); padding: 1.5rem; }
@media (min-width: 768px) { .practice-info-strip .panel { padding: 2rem; } }
.practice-info-strip h2 { font-size: 1.4rem; }
.practice-info-strip ul { margin-top: 0.75rem; display: grid; gap: 0 1.5rem; }
@media (min-width: 640px) { .practice-info-strip ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .practice-info-strip ul { grid-template-columns: repeat(4, 1fr); } }
.practice-info-strip a { display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.5rem; font-weight: 600; }
.practice-info-strip a svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--topbar); border-bottom: 1px solid var(--border); }
.page-hero .container-site { padding-block: 2.5rem; }
.page-hero .breadcrumb { font-size: 0.85rem; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.page-hero .breadcrumb a { color: var(--primary); text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: 2.25rem; font-weight: 300; color: var(--navy); }
.page-hero .lede { margin: 0.75rem 0 0; max-width: 46rem; color: var(--foreground); }

.page-layout { display: grid; gap: 2.5rem; padding-block: 3rem; }
@media (min-width: 1024px) { .page-layout { grid-template-columns: 1fr 20rem; } }

.page-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

.page-note {
  border-left: 3px solid var(--ring); background: var(--warning);
  padding: 0.75rem 1.25rem; margin-bottom: 1.5rem; border-radius: 0 5px 5px 0; font-size: 0.95rem;
}

/* Markdown body */
.practice-prose { overflow-wrap: anywhere; }
.practice-prose p { margin-block: 1rem; }
.practice-prose h2 { margin-top: 2.75rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--sky); font-size: 1.6rem; color: var(--navy); }
.practice-prose h2:first-child { margin-top: 0; }
.practice-prose h3, .practice-prose h4 { margin-top: 2rem; margin-bottom: .8rem; font-size: 1.25rem; color: var(--navy); }
.practice-prose ul, .practice-prose ol { padding-left: 1.5rem; margin-block: 1rem; }
.practice-prose ul { list-style: disc; }
.practice-prose ol { list-style: decimal; }
.practice-prose li { padding-block: .3rem; }
.practice-prose a { color: var(--primary); text-decoration: underline; }
.practice-prose img { max-width: 100%; max-height: 480px; object-fit: contain; object-position: left; margin-block: 1.5rem; border-radius: 5px; }
.practice-prose blockquote { border-left: 3px solid var(--sky-strong); background: var(--topbar); margin-block: 1rem; padding: .75rem 1.25rem; }
.practice-prose blockquote p { margin-block: .3rem; }
.practice-prose table { width: 100%; border-collapse: collapse; margin-block: 1.5rem; font-size: .95rem; }
.practice-prose td, .practice-prose th { border-bottom: 1px solid var(--border); padding: .9rem; text-align: left; }
.practice-prose tr:nth-child(even) { background: var(--topbar); }
.practice-prose hr { margin-block: 2rem; border: 0; border-top: 1px solid var(--border); }
.practice-team img { width: 150px; height: 180px; object-fit: cover; }

/* Sidebar */
.page-sidebar .box { border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; }
.page-sidebar .box h2 { font-size: 1.15rem; color: var(--navy); }
.page-sidebar .box ul { margin-top: 0.75rem; }
.page-sidebar .box ul a {
  display: flex; min-height: 2.5rem; align-items: center; justify-content: space-between; gap: 0.5rem;
  color: var(--foreground); text-decoration: none; font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.page-sidebar .box ul li:last-child a { border-bottom: 0; }
.page-sidebar .box ul a:hover { color: var(--primary); }
.page-sidebar .box ul a svg { width: 1rem; height: 1rem; color: var(--primary); flex-shrink: 0; }
.page-sidebar .phone-box { background: var(--navy); color: #fff; border: 0; }
.page-sidebar .phone-box h2 { color: #fff; }
.page-sidebar .phone-box p { margin: 0.5rem 0 0; font-size: 0.95rem; }
.page-sidebar .phone-box a.tel {
  display: inline-flex; margin-top: 0.75rem; align-items: center; gap: 0.5rem;
  font-size: 1.25rem; font-weight: 700; color: #fff; text-decoration: none;
}
.page-sidebar .phone-box a.tel:hover { text-decoration: underline; }
.page-sidebar .phone-box a.tel svg { width: 1.25rem; height: 1.25rem; color: var(--sky); }

/* ---------- Search results ---------- */
.search-results li { border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.search-results h2 { font-size: 1.25rem; }
.search-results h2 a { color: var(--navy); text-decoration: none; }
.search-results h2 a:hover { color: var(--primary); text-decoration: underline; }
.search-results p { margin: 0.5rem 0 0; font-size: 0.95rem; color: var(--muted-foreground); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 4rem; background: var(--charcoal); color: var(--charcoal-muted); }
.site-footer .footer-grid { display: grid; gap: 2.5rem; padding-block: 5rem; }
@media (min-width: 768px) { .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer h2 { font-size: 1.25rem; font-weight: 500; color: #fff; }
.site-footer address { margin-top: 0.75rem; font-style: normal; }
.site-footer p { margin: 0.5rem 0 0; }
.site-footer a { color: #fff; font-weight: 500; text-decoration: none; }
.site-footer a:hover { color: var(--sky-strong); }
.site-footer ul { margin-top: 0.75rem; display: grid; gap: 0.25rem; }
.site-footer ul a { display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.5rem; font-weight: 400; color: var(--charcoal-muted); }
.site-footer ul a:hover { color: var(--sky-strong); }
.site-footer .fb-link { display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.5rem; }
.site-footer svg { width: 1.25rem; height: 1.25rem; }
.footer-bottom { border-top: 1px solid var(--charcoal-line); }
.footer-bottom .container-site { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding-block: 1.25rem; font-size: 1rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; font-size: 0.9rem; margin: 0; }
.footer-bottom ul a { min-height: 0; }
.footer-bottom .nhs-badge { display: block; height: 2rem; width: auto; }

/* Page hero banner (Appointments, Prescriptions, New Patient Registration) */
.page-hero-inner { display: flex; align-items: center; gap: 2rem; }
.page-hero-inner > div { flex: 1 1 auto; min-width: 0; }
.page-hero-banner { flex: 0 0 auto; width: min(320px, 40%); height: auto; border-radius: 10px; display: block; }
@media (max-width: 640px) {
	.page-hero-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
	.page-hero-banner { width: 100%; max-width: 420px; }
}
