/* Quayside Medical Practice — Standalone Static Styles Extras */
:root {
  --primary: 210 100% 36% !important; /* #005eb8 NHS Blue */
  --ring: 210 100% 36% !important;
}
html { scroll-behavior: smooth; }
details.qmp-accordion summary { list-style: none; cursor: pointer; }
details.qmp-accordion summary::-webkit-details-marker { display: none; }
details.qmp-accordion[open] summary .qmp-chev { transform: rotate(180deg); }
.qmp-chev { transition: transform 0.2s ease; }

/* NHS Primary Care Header Badge */
.qmp-nhs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.qmp-nhs-logo-box {
  background-color: #005eb8;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.45rem;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

/* Header Search Bar & Search Results Panel */
.qmp-search-wrap {
  position: relative;
}
.qmp-search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(92vw, 30rem);
  max-height: 75vh;
  overflow-y: auto;
  background: #ffffff;
  border: 2px solid #005eb8;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 60;
  padding: 0.75rem;
}
.qmp-search-results[hidden] {
  display: none !important;
}
.qmp-search-item {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.15s ease;
}
.qmp-search-item:last-child {
  border-bottom: none;
}
.qmp-search-item:hover,
.qmp-search-item:focus {
  background-color: #f0f6ff;
  outline: 2px solid #005eb8;
  outline-offset: -2px;
}

/* Community calendar month grid (classes had no rules before 29 Oct 2026) */
.qmp-month-grid-header, .qmp-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; }
.qmp-month-grid-header { font-size: 0.7rem; font-weight: 700; text-align: center; margin-bottom: 0.25rem; }
.qmp-month-cell { min-height: 3.25rem; border-radius: 0.375rem; padding: 0.25rem; text-align: left; display: flex; flex-direction: column; font: inherit; }
@media (max-width: 480px) { .qmp-month-cell { min-height: 2.5rem; padding: 0.15rem; } }
/* Skip link: make sure it is visible on keyboard focus */
a[href="#main-content"]:focus { outline: 3px solid #212b32; outline-offset: 2px; }

/* Colour contrast fix (29 Oct 2026): the theme's grey "muted" text (#65758b) only reached
   4.15-4.43:1 on the light blue panels. Darkened so it passes WCAG 2.1 AA (4.5:1) everywhere. */
:root { --muted-foreground: 215 22% 34%; }

/* Strong, consistent keyboard focus indicator (29 Oct 2026): yellow ring with a dark outer ring,
   visible on white, light blue and NHS-blue backgrounds. Mouse clicks are not affected (:focus-visible). */
:focus-visible { outline: 3px solid #ffeb3b !important; outline-offset: 0 !important; box-shadow: 0 0 0 6px #212b32 !important; }

/* Homepage "Join Quayside" review cards (2 Nov 2026). No stars or ratings. Scoped to .qmp-review* */
.qmp-reviews { margin-top: 0.5rem; }
.qmp-reviews-heading { font-size: 1.25rem; line-height: 1.75rem; font-weight: 800; color: #212b32; margin: 0 0 1rem; }
.qmp-review-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .qmp-review-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.qmp-review-card { margin: 0; display: flex; }
.qmp-review-figure { position: relative; margin: 0; width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  background: #ffffff; border: 1px solid #d8dde0; border-radius: 1rem; padding: 1.5rem 1.5rem 1.25rem; box-shadow: 0 4px 14px rgba(33, 43, 50, 0.08); }
.qmp-review-mark { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 4rem; line-height: 1; height: 2.25rem; color: #005eb8; font-weight: 700; }
.qmp-review-quote { margin: 0; }
.qmp-review-quote p { margin: 0; font-size: 1.125rem; line-height: 1.6; font-style: italic; color: #212b32; }
.qmp-review-cite { border-top: 1px solid #e8edee; padding-top: 0.75rem; font-size: 0.875rem; line-height: 1.4; font-weight: 600; color: #4c6272; }
.qmp-review-cite cite { font-style: normal; }

/* "Before you send us an online request" checklist (2 Nov 2026, staging). Scoped to .qmp-rc* */
.qmp-rc { margin-top: 1.5rem; border-top: 1px solid #d8dde0; padding-top: 1.5rem; color: #212b32; scroll-margin-top: 1rem; }
.qmp-rc [hidden] { display: none !important; }
.qmp-rc-title { font-size: 1.375rem; line-height: 1.3; font-weight: 800; margin: 0 0 0.5rem; }
.qmp-rc-intro { margin: 0 0 1rem; }
.qmp-rc a { color: #005eb8; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.qmp-rc a:hover { color: #003087; text-decoration-thickness: 3px; }
.qmp-rc-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.qmp-rc-steps { display: grid; gap: 1rem; }
.qmp-rc-view { scroll-margin-top: 8rem; background: #ffffff; border: 2px solid #d8dde0; border-left: 6px solid #005eb8; border-radius: 0.75rem; padding: 1.25rem 1.25rem 1rem; }
.qmp-rc-view p { margin: 0 0 0.75rem; }
.qmp-rc-progress { font-size: 0.875rem; font-weight: 700; color: #005eb8; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.25rem !important; }
.qmp-rc-h { font-size: 1.25rem; line-height: 1.35; font-weight: 800; margin: 0 0 0.75rem; }
.qmp-rc-h:focus { outline: none; }
.qmp-rc-h:focus-visible { outline: 3px solid #ffeb3b !important; box-shadow: 0 0 0 6px #212b32 !important; }
.qmp-rc-list { list-style: disc; padding-left: 1.5rem; margin: 0 0 1rem; }
.qmp-rc-list li { margin: 0.2rem 0; }
.qmp-rc-answers { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.25rem 0 1rem; }
.qmp-rc-btn, .qmp-rc-cta, .qmp-rc-back, .qmp-rc-link-btn { font: inherit; cursor: pointer; border-radius: 0.5rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.qmp-rc-btn { min-width: 6.5rem; padding: 0.6rem 1.25rem; background: #005eb8; color: #ffffff; border: 2px solid #005eb8; font-weight: 700; box-shadow: 0 3px 0 #003087; }
.qmp-rc-btn:hover { background: #003087; border-color: #003087; }
.qmp-rc-btn:active { transform: translateY(2px); box-shadow: none; }
.qmp-rc a.qmp-rc-cta, .qmp-rc-cta { padding: 0.65rem 1.25rem; background: #005eb8; color: #ffffff; border: 2px solid #005eb8; font-weight: 700; text-decoration: none; }
.qmp-rc a.qmp-rc-cta:hover, .qmp-rc-cta:hover { background: #003087; border-color: #003087; color: #ffffff; }
.qmp-rc a.qmp-rc-cta--go { background: #007f3b; border-color: #007f3b; font-size: 1.0625rem; }
.qmp-rc a.qmp-rc-cta--go:hover { background: #00401e; border-color: #00401e; }
.qmp-rc a.qmp-rc-cta--secondary { background: #ffffff; color: #005eb8; }
.qmp-rc a.qmp-rc-cta--secondary:hover { background: #e8f1fa; color: #003087; }
.qmp-rc-back { padding: 0.5rem 1rem; background: #ffffff; color: #212b32; border: 2px solid #4c6272; font-weight: 600; }
.qmp-rc-back::before { content: "\2039"; font-size: 1.25em; line-height: 1; margin-right: 0.4rem; }
.qmp-rc-back:hover { background: #f0f4f5; }
.qmp-rc-link-btn { padding: 0.5rem 0.25rem; background: none; border: 0; color: #005eb8; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-align: left; }
.qmp-rc-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.qmp-rc-safety { background: #fff9c4; border-left: 4px solid #ffb81c; padding: 0.6rem 0.8rem; border-radius: 0.25rem; font-size: 0.9375rem; color: #212b32; }
.qmp-rc-skip { font-size: 0.875rem; margin: 0 !important; }
.qmp-rc-small { font-size: 0.9375rem; background: #f0f4f5; border-radius: 0.5rem; padding: 0.75rem; }
.qmp-rc-outcome { border-left-color: #007f3b; background: #f6fbf8; }
.qmp-rc-outcome--urgent { border: 3px solid #d5281b; border-left-width: 8px; background: #fff5f5; }
.qmp-rc-outcome--urgent .qmp-rc-h { color: #8a1538; font-size: 1.375rem; }
.qmp-rc-outcome--urgent .qmp-rc-progress { color: #8a1538; }
.qmp-rc-final { border-left-color: #007f3b; }
/* With JavaScript: one step at a time, so the "if yes / if no" notes are not needed */
.qmp-rc--js .qmp-rc-nojs-note, .qmp-rc--js .qmp-rc-nojs-label, .qmp-rc--js .qmp-rc-safety--top { display: none; }
/* Without JavaScript: all steps listed. Show the safety line once at the top and again at the end. */
.qmp-rc:not(.qmp-rc--js) .qmp-rc-view:not(.qmp-rc-final) .qmp-rc-safety { display: none; }
.qmp-rc:not(.qmp-rc--js) .qmp-rc-nojs-note { font-style: italic; color: #4c6272; }
@media (max-width: 480px) { .qmp-rc-view { padding: 1rem 0.9rem 0.85rem; } .qmp-rc-btn { flex: 1 1 40%; } .qmp-rc-h { font-size: 1.125rem; } }
@media (prefers-reduced-motion: reduce) { .qmp-rc-btn:active { transform: none; } }
/* Step 5 admin answer: two equally weighted choices (side by side, stacked on mobile) */
.qmp-rc-choices { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .qmp-rc-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qmp-rc-choice { display: flex; flex-direction: column; background: #ffffff; border: 2px solid #005eb8; border-radius: 0.75rem; padding: 1rem; }
.qmp-rc-choice p { font-size: 0.9375rem; }
.qmp-rc-choice-h { font-size: 1.0625rem; font-weight: 800; margin: 0 0 0.5rem; color: #212b32; }
.qmp-rc-choice-action { margin-top: auto !important; margin-bottom: 0.5rem !important; }
.qmp-rc a.qmp-rc-cta--choice, .qmp-rc-cta--choice { width: 100%; min-height: 4.5rem; text-align: center; }
.qmp-rc-chat-hint { font-size: 0.875rem !important; color: #4c6272; }

/* Fit note pre-check (2 Nov 2026, staging). Reuses the .qmp-rc checklist styles; extras scoped to .qmp-fn* */
.qmp-fn-form { margin: 0.25rem 0 1rem; }
.qmp-fn-field { margin-bottom: 1rem; padding-left: 0; }
.qmp-fn-field--error { border-left: 4px solid #d5281b; padding-left: 0.85rem; }
.qmp-fn-label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.qmp-fn-hint { color: #4c6272; font-size: 0.9375rem; margin: 0 0 0.5rem !important; }
.qmp-fn-error { color: #d5281b; font-weight: 700; margin: 0 0 0.5rem !important; }
.qmp-fn-input { font: inherit; font-size: 1rem; min-height: 44px; padding: 0.4rem 0.6rem; border: 2px solid #4c6272; border-radius: 0.25rem; background: #ffffff; color: #212b32; max-width: 100%; }
.qmp-fn-field--error .qmp-fn-input { border-color: #d5281b; }
/* Keep checklist / fit note check clear of the sticky header when linked to by #anchor */
#before-you-send, #fit-note-check { scroll-margin-top: 241px; }
@media (min-width: 640px) { #before-you-send, #fit-note-check { scroll-margin-top: 159px; } }
@media (min-width: 768px) { #before-you-send, #fit-note-check { scroll-margin-top: 203px; } }
@media (min-width: 1024px) { #before-you-send, #fit-note-check { scroll-margin-top: 174px; } }
.qmp-rc-fitnote-hint { margin: 1rem 0 0; }
