/* Site styles on top of NHS.UK Frontend, matching OPERA NG. */

/* NHS.UK Frontend sizes text in rem, so this scales every size down evenly
   (16px -> 13px base) while still respecting the reader's browser setting.
   Use the nhsuk-body-s/m/l and nhsuk-heading-* classes for different sizes. */
html {
  font-size: 81.25%;
}

/* Site-wide page width. Every section (header, welcome band, main content,
   footer) sits in .nhsuk-width-container, so this one rule sets the width
   everywhere. NHS.UK caps it at 960px; we use 80% of the window instead,
   never narrower than 960px. Below 1024px NHS.UK's own side gutters apply. */
@media (min-width: 1024px) {
  .nhsuk-width-container {
    max-width: max(960px, 80%);
  }
}

/* Each site's colours come from Settings > Site branding (base.html sets the variables). */
.nhsuk-header {
  background-color: var(--dr-header-colour, #005eb8);
}

.nhsuk-header .nhsuk-width-container {
  padding-top: 0;
  padding-bottom: 0;
}

.dr-header__container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.dr-header__container .nhsuk-header__logo {
  display: flex;
  align-items: center;
}

.dr-header__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dr-header__content .nhsuk-header__service-name {
  display: block;
  padding: 0;
  color: #ffffff;
}

.dr-header__right {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.dr-header__region,
a.dr-header__region:link,
a.dr-header__region:visited,
a.dr-header__region:hover,
a.dr-header__region:active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  /* Same size and weight as the "Referral Management Services" service name */
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.1;
  text-decoration: none;
}

/* Map pin before the area name */
.dr-header__region::before {
  content: "";
  width: 0.7em;
  height: 0.7em;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

a.dr-header__region:hover {
  text-decoration: underline;
}

/* NHS.UK focus style: yellow highlight with dark text */
a.dr-header__region:focus {
  background-color: #ffeb3b;
  box-shadow: 0 -2px #ffeb3b, 0 4px #212b32;
  color: #212b32;
  outline: 4px solid transparent;
  text-decoration: none;
}

.dr-language-switcher {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dr-language-switcher a {
  color: #ffffff;
}

/* Welcome band under the header */
/* Text on the band and menu bar is white unless the site sets a band text colour
   (--dr-band-text-colour, Settings > Site branding) for a light band. */
.dr-welcome {
  background: var(--dr-band-colour, #003d7a);
  color: var(--dr-band-text-colour, #ffffff);
  padding: 40px 0 48px;
}

.dr-welcome__back {
  margin-top: 0;
  margin-bottom: 16px;
}

.dr-welcome .nhsuk-back-link--reverse,
.dr-welcome .nhsuk-back-link--reverse:visited {
  color: var(--dr-band-text-colour, #ffffff);
}

/* A partner organisation's logo on the right of the header (Settings > Site branding). */
.dr-header__partner {
  display: block;
  height: 56px;
  width: auto;
}

.dr-welcome h1 {
  color: var(--dr-band-text-colour, #ffffff);
  margin-bottom: 12px;
}

.dr-welcome p {
  color: var(--dr-band-text-colour, #ffffff);
  margin-bottom: 0;
  max-width: 40em;
}

/* Menu bar under the header on information pages */
.dr-menu {
  background: var(--dr-band-colour, #003d7a);
}

.dr-menu__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dr-menu__item {
  position: relative;
  margin: 0;
}

.dr-menu__link,
.dr-menu__link:visited {
  display: block;
  padding: 14px 16px;
  color: var(--dr-band-text-colour, #ffffff);
  text-decoration: none;
  cursor: pointer;
}

.dr-menu__item:first-child .dr-menu__link {
  padding-left: 0;
}

.dr-menu__link:hover {
  color: var(--dr-band-text-colour, #ffffff);
  text-decoration: underline;
}

.dr-menu__link--active {
  box-shadow: inset 0 -4px 0 var(--dr-band-text-colour, #ffffff);
}

.dr-menu__link:focus,
.dr-menu__sublink:focus {
  background-color: #ffeb3b;
  box-shadow: inset 0 -4px 0 #212b32;
  color: #212b32;
  outline: 4px solid transparent;
  text-decoration: none;
}

/* Dropdown (About us) */
summary.dr-menu__link {
  list-style: none;
}

summary.dr-menu__link::-webkit-details-marker {
  display: none;
}

summary.dr-menu__link::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.2em) rotate(45deg);
}

.dr-menu__dropdown[open] > summary.dr-menu__link::after {
  transform: translateY(0.1em) rotate(-135deg);
}

.dr-menu__sublist {
  position: absolute;
  z-index: 10;
  top: 100%;
  left: 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #ffffff;
  border: 1px solid #d8dde0;
  box-shadow: 0 4px 8px rgba(33, 43, 50, 0.2);
}

.dr-menu__sublist li {
  margin: 0;
}

.dr-menu__sublink,
.dr-menu__sublink:visited {
  display: block;
  padding: 8px 16px;
  color: #005eb8;
}

.dr-menu__sublink:hover {
  color: #7c2855;
}

/* On phones the dropdown spans the full menu width under the bar */
@media (max-width: 640px) {
  .dr-menu .nhsuk-width-container {
    position: relative;
  }

  .dr-menu__item {
    position: static;
  }

  .dr-menu__sublist {
    right: 0;
    min-width: 0;
  }
}

.dr-remember-hint {
  margin-top: -8px;
  color: #4c6272;
}

/* Area service page and tracker: the area is in the header, so start the page higher */
.template-dentistregion .nhsuk-main-wrapper,
.template-trackerpage .nhsuk-main-wrapper {
  padding-top: 16px;
}

.template-dentistregion .nhsuk-back-link {
  margin-top: 0;
  margin-bottom: 16px;
}

.template-trackerpage .nhsuk-breadcrumb {
  padding-top: 0;
  margin-bottom: 16px;
}

.template-trackerpage .dr-step-back {
  margin-top: 0;
  margin-bottom: 8px;
}

.template-trackerpage .dr-visitor-back {
  margin-top: 0;
  margin-bottom: 16px;
}

/* Line between groups of front-page options */
.dr-radios__separator {
  margin: 24px 0 20px;
  border-top: 1px solid #d8dde0;
}

/* Service cards on the dentists main service page */
.dr-services {
  margin-top: 24px;
}

.dr-role-panel {
  margin-top: -64px;
  position: relative;
}

.dr-role-panel .nhsuk-error-summary {
  background: #ffffff;
}

.nhsuk-radios__item--disabled .nhsuk-radios__label,
.nhsuk-radios__item--disabled .nhsuk-radios__hint {
  color: #626a6e;
}

.nhsuk-radios__item--disabled .nhsuk-radios__input + .nhsuk-radios__label::before {
  border-color: #aeb7bd;
  background: #f0f4f5;
}

.dr-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid #d8dde0;
}

.dr-footer__links .nhsuk-footer__list-item {
  margin: 0;
  width: auto;
}

.dr-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dr-footer__row .nhsuk-footer__copyright {
  margin: 0;
}

.dr-footer__logo {
  height: 40px;
  width: auto;
  display: block;
  opacity: 0.9;
}

/* ------------------------------------------------------------------
   Long documents (documents.DocumentPage) - see docs/long-documents.md
   ------------------------------------------------------------------ */

.dr-doc-nav {
  margin-bottom: 32px;
  padding: 20px 16px 16px;
  border: 1px solid #d8dde0;
  border-top: 4px solid var(--dr-accent-colour, #005eb8);
  background: #ffffff;
}

/* Sticky contents beside the document on larger screens. The row is a flex
   row so the contents column runs the full height of the article. */
@media (min-width: 48.0625em) {
  .dr-doc {
    display: flex;
  }

  .dr-doc-nav {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
}

.dr-doc-nav__title {
  margin: 0 0 12px;
  font-size: 1.1875rem;
}

.dr-doc-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dr-doc-nav__item {
  margin: 0;
}

.dr-doc-nav__link,
.dr-doc-nav__link:visited {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 4px solid #d8dde0;
  color: #005eb8;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
}

.dr-doc-nav__link:hover {
  color: #7c2855;
  text-decoration: underline;
}

.dr-doc-nav__link--current,
.dr-doc-nav__link--current:visited {
  border-left-color: var(--dr-accent-colour, #005eb8);
  color: #212b32;
  font-weight: 600;
}

.dr-doc-nav__link:focus {
  background-color: #ffeb3b;
  box-shadow: 0 -2px #ffeb3b, 0 4px #212b32;
  color: #212b32;
  outline: 4px solid transparent;
}

.dr-doc-section {
  scroll-margin-top: 24px;
  padding-bottom: 8px;
}

.dr-doc-section:first-child > h2 {
  margin-top: 0;
}

.dr-doc-section + .dr-doc-section {
  padding-top: 24px;
  border-top: 1px solid #d8dde0;
}

.dr-doc__footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #d8dde0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}

.dr-doc__footer p {
  margin: 0;
}

.dr-highlight {
  margin: 24px 0 32px;
}

.dr-doc .nhsuk-card--feature {
  margin-top: 40px;
}

.dr-table {
  margin-bottom: 32px;
}

/* Related links in documents: a one-column list with a chevron, a short
   description, and a tag for PDFs and other websites. The tag sits inside the
   link so screen readers announce it with the link text. */
.dr-related {
  margin-bottom: 32px;
}

.dr-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #d8dde0;
}

.dr-related__item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #d8dde0;
}

.dr-related__icon {
  flex-shrink: 0;
  margin-top: 3px;
  fill: var(--dr-accent-colour, #005eb8);
}

.dr-related__link,
.dr-related__link:visited {
  font-weight: 600;
  color: #005eb8;
}

.dr-related__link:hover {
  color: #7c2855;
}

.dr-related__link:focus .dr-tag {
  background: transparent;
  border-color: #212b32;
  color: #212b32;
}

.dr-related__description {
  margin: 4px 0 0;
  color: #4c6272;
  font-size: 1rem;
}

.dr-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid var(--dr-accent-colour, #005eb8);
  border-radius: 4px;
  background: #e8f1f8;
  color: var(--dr-accent-colour, #005eb8);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  vertical-align: 1px;
}

.dr-tag--grey {
  border-color: #aeb7bd;
  background: #f0f4f5;
  color: #4c6272;
}

/* Link boxes: clickable NHS cards with a chevron (About Us overview) */
.dr-link-boxes {
  margin-bottom: 16px;
}

.dr-link-box__content {
  padding-right: 64px;
}

.dr-link-box__icon {
  position: absolute;
  top: 50%;
  right: 20px;
  margin-top: -14px;
  fill: var(--dr-accent-colour, #005eb8);
}

/* Action link: blue arrow with a bold link, in the NHS.UK action link style */
.dr-action-link {
  margin-bottom: 32px;
}

.dr-action-link__link,
.dr-action-link__link:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #005eb8;
  font-weight: 600;
  font-size: 1.1875rem;
  text-decoration: none;
}

.dr-action-link__link:hover .dr-action-link__text {
  color: #7c2855;
  text-decoration: underline;
}

.dr-action-link__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  fill: var(--dr-accent-colour, #005eb8);
}

.dr-action-link__link:focus {
  background-color: #ffeb3b;
  box-shadow: 0 -2px #ffeb3b, 0 4px #212b32;
  color: #212b32;
  outline: 4px solid transparent;
}

.dr-action-link__link:focus .dr-action-link__icon {
  fill: #212b32;
}

/* ------------------------------------------------------------------
   Cookie consent panel (consent app) - see docs/cookie-consent.md
   ------------------------------------------------------------------ */

.dr-consent {
  position: fixed;
  z-index: 1000;
  left: 24px;
  bottom: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #d8dde0;
  border-top: 4px solid var(--dr-accent-colour, #005eb8);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(33, 43, 50, 0.25);
  transform: translateX(calc(-100% - 48px));
  transition: transform 0.35s ease-out;
}

.dr-consent--open {
  transform: translateX(0);
}

.dr-consent__heading {
  margin: 0 0 12px;
  font-size: 1.375rem;
}

.dr-consent__text {
  margin-bottom: 20px;
}

.dr-consent__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dr-consent__actions .nhsuk-button {
  width: 100%;
  margin: 0;
}

.dr-consent__more {
  margin: 16px 0 0;
}

/* On phones the panel slides up from the bottom instead */
@media (max-width: 40.0525em) {
  .dr-consent {
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    border-left: 0;
    border-right: 0;
    transform: translateY(100%);
  }

  .dr-consent--open {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dr-consent {
    transition: none;
  }
}

/* Cookie settings form on the Cookies page */
.dr-cookie-settings__saved {
  margin-top: 16px;
}

/* ------------------------------------------------------------------
   Track a referral (tracking app)
   ------------------------------------------------------------------ */

.dr-tracker-result {
  margin-top: 40px;
}

.dr-tracker-result .nhsuk-card--feature {
  margin-top: 0;
}

.dr-tracker-result__label {
  margin-bottom: 4px;
  font-size: 1rem;
  color: #4c6272;
}

.dr-tracker-result__status {
  margin-bottom: 4px;
  line-height: 1.3;
  font-size: 1.375rem;
  font-weight: 600;
}

.dr-tracker-result__date {
  margin-bottom: 0;
}

.dr-tracker-result__explanation {
  margin: 12px 0 0;
}

.dr-timeline__explanation {
  margin-top: 4px;
  max-width: 36em;
  font-size: 1rem;
}

/* Referral history: newest first, joined by a vertical line */
.dr-timeline {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.dr-timeline__item {
  position: relative;
  margin: 0;
  padding: 0 0 20px 32px;
}

.dr-timeline__item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 4px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--dr-accent-colour, #005eb8);
  border-radius: 50%;
  background: #ffffff;
}

.dr-timeline__item::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: -4px;
  left: 11px;
  width: 2px;
  background: #aeb7bd;
}

.dr-timeline__item:last-child::after {
  display: none;
}

.dr-timeline__item--latest::before {
  background: var(--dr-accent-colour, #005eb8);
}

.dr-timeline__label {
  margin: 0;
  font-weight: 600;
}

.dr-timeline__date {
  margin: 2px 0 0;
  line-height: 1.4;
  color: #4c6272;
  font-size: 1rem;
}

.dr-timeline__tag {
  margin-left: 8px;
  vertical-align: 1px;
}

/* ------------------------------------------------------------------
   Orthodontic waiting list (tracking.OrthoWaitPage)
   ------------------------------------------------------------------ */

.dr-wait {
  margin-top: 40px;
}

.dr-wait--dentist .nhsuk-summary-list__key {
  width: 40%;
}

.dr-wait .nhsuk-card--feature {
  margin-top: 0;
}

.dr-wait__position {
  font-size: 1.375rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.dr-wait__list-name {
  color: #4c6272;
  margin-bottom: 32px;
}

/* The whole list as a bar: shaded up to "You", grey behind */
.dr-waitlist {
  margin: 0;
  padding-top: 36px;
}

.dr-waitlist__track {
  position: relative;
  height: 20px;
  border-radius: 10px;
  background: #d8dde0;
}

.dr-waitlist__ahead {
  height: 100%;
  border-radius: 10px 0 0 10px;
  background: #41b6e6;
}

/* Recent removals, drawn at the front only when wide enough to see */
.dr-waitlist__taken {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 10px 0 0 10px;
  background: repeating-linear-gradient(135deg, #007f3b 0 4px, #00a499 4px 8px);
}

.dr-waitlist__marker {
  position: absolute;
  top: -8px;
  width: 4px;
  height: 36px;
  margin-left: -2px;
  background: #003d7a;
}

.dr-waitlist__you {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 4px;
  padding: 2px 10px;
  border-radius: 4px;
  background: #003d7a;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.dr-waitlist__ends {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  color: #4c6272;
  font-size: 0.875rem;
  line-height: 1.4;
}

.dr-waitlist__end--back {
  text-align: right;
}

.dr-waitlist__end-title {
  font-weight: 600;
  color: #212b32;
}

.dr-waitlist__end-note {
  margin-top: 2px;
}

.dr-waitlist__end-note--taken {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #007f3b;
  font-weight: 600;
}

.dr-waitlist__arrow {
  flex-shrink: 0;
  fill: currentColor;
}

.dr-wait__counts {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.dr-wait__counts li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.dr-wait__swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.dr-wait__swatch--ahead {
  background: #41b6e6;
}

.dr-wait__swatch--behind {
  background: #d8dde0;
}

.dr-wait__swatch--taken {
  background: repeating-linear-gradient(135deg, #007f3b 0 3px, #00a499 3px 6px);
}

.dr-wait__estimate {
  margin-bottom: 16px;
  padding: 16px 20px;
  border-left: 8px solid var(--dr-accent-colour, #005eb8);
  background: #ffffff;
}

.dr-wait__estimate-figure {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

.dr-wait__estimate-words {
  margin-top: 4px;
}

/* ------------------------------------------------------------------
   Detailed waiting list (dentists)
   ------------------------------------------------------------------ */

.dr-detail {
  margin-bottom: 48px;
}

.dr-detail__heading {
  margin-bottom: 4px;
}

.dr-detail__list-name {
  color: #4c6272;
  margin-bottom: 24px;
}

/* Headline figures */
.dr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

/* Detail charts use colours from the wider NHS palette for variety, each with
   at least 3:1 contrast on white: dark blue, green, dark pink and purple. */
.dr-stat {
  margin: 0;
  padding: 12px 16px;
  border-top: 4px solid var(--dr-accent-colour, #003087); /* NHS Dark Blue */
  background: #ffffff;
}

.dr-stat:nth-child(2) {
  border-top-color: #009639; /* NHS Green */
}

.dr-stat:nth-child(3) {
  border-top-color: #7c2855; /* NHS Dark Pink */
}

.dr-stat:nth-child(4) {
  border-top-color: #330072; /* NHS Purple */
}

.dr-stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.dr-stat__label {
  display: block;
  margin-top: 4px;
  color: #4c6272;
  font-size: 0.875rem;
}


/* Whole list split: named provider or not yet */
.dr-split {
  margin-bottom: 32px;
}

.dr-split__bar {
  display: flex;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: #d8dde0;
}

.dr-split__named {
  background: #003087; /* NHS Dark Blue */
}

.dr-split__unnamed {
  background: #aeb7bd;
}

.dr-split__key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 8px;
  font-size: 1rem;
}

.dr-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: -1px;
}

.dr-swatch--named {
  background: #003087;
}

.dr-swatch--unnamed {
  background: #aeb7bd;
}

/* Bar charts */
.dr-charts {
  margin-bottom: 16px;
}

.dr-chart {
  margin: 0 0 32px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #d8dde0;
  border-top: 4px solid #009639; /* matches its bars */
}

.dr-chart--wait {
  border-top-color: #7c2855;
}

.dr-chart__title {
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 1.1875rem;
}

.dr-chart__note {
  color: #4c6272;
  font-weight: 400;
  font-size: 0.875rem;
}

.dr-chart__row {
  margin-bottom: 10px;
}

.dr-chart__label {
  font-size: 0.875rem;
  line-height: 1.3;
  margin-bottom: 2px;
}

.dr-chart__track {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dr-chart__bar {
  height: 14px;
  min-width: 2px;
  border-radius: 0 3px 3px 0;
  background: #009639; /* NHS Green */
}

.dr-chart__bar--wait {
  background: #7c2855; /* NHS Dark Pink */
}

.dr-chart__value {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Sortable full-width table: scrolls within its box after 10 rows (sized by
   sortable-table.js; max-height here is the fallback without JavaScript) */
.dr-table-scroll {
  overflow: auto;
  max-height: 520px;
  margin-bottom: 16px;
  border: 1px solid #d8dde0;
  background: #ffffff;
}

.dr-table-scroll:focus {
  outline: 4px solid #ffeb3b;
  outline-offset: 0;
  box-shadow: 0 0 0 8px #212b32;
}

/* Column headings stay in view while the rows scroll */
.dr-sortable thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffff;
  box-shadow: inset 0 -2px 0 #d8dde0;
}

.dr-sortable {
  margin-bottom: 0;
  background: #ffffff;
}

.dr-sortable th,
.dr-sortable td {
  padding: 10px 12px;
}

.dr-num {
  text-align: right;
  white-space: nowrap;
}

.dr-sort-button {
  padding: 0;
  border: 0;
  background: none;
  color: #005eb8;
  font: inherit;
  font-weight: 600;
  text-align: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.dr-sort-button::after {
  content: " \2195";
  color: #768692;
  text-decoration: none;
  display: inline-block;
  margin-left: 4px;
}

[aria-sort="ascending"] .dr-sort-button::after {
  content: " \25B2";
  color: #005eb8;
}

[aria-sort="descending"] .dr-sort-button::after {
  content: " \25BC";
  color: #005eb8;
}

.dr-sort-button:focus {
  background-color: #ffeb3b;
  box-shadow: 0 -2px #ffeb3b, 0 4px #212b32;
  color: #212b32;
  outline: 4px solid transparent;
}

.dr-detail__hint {
  color: #4c6272;
}

/* ------------------------------------------------------------------
   FAQ pages (faqs.FAQPage): topics of NHS.UK expanders
   ------------------------------------------------------------------ */

.dr-faq__area {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--dr-accent-colour, #005eb8);
  background: #ffffff;
}

.dr-faq__search {
  margin-bottom: 32px;
}

.dr-faq__count {
  margin: 8px 0 0;
  color: #4c6272;
}

.dr-faq__count:empty {
  display: none;
}

.dr-faq .nhsuk-expander-group {
  margin-bottom: 16px;
}

.dr-faq__answer-area {
  margin-bottom: 12px;
}

.dr-faq__answer-area .dr-tag {
  margin-left: 0;
}

.dr-faq__varies {
  color: #4c6272;
}

.dr-faq [data-faq-question] {
  scroll-margin-top: 24px;
}

/* ------------------------------------------------------------------
   Agreements (agreements.AgreementPage)
   ------------------------------------------------------------------ */

.dr-agreement__signature {
  margin: 0 0 24px;
  padding: 12px 16px 4px;
  border: 1px solid #d8dde0;
  border-bottom: 2px solid #4c6272;
  background: #ffffff;
}

.dr-agreement__signature-label {
  margin-bottom: 0;
  color: #4c6272;
}

.dr-agreement__signature-name {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: 2.5rem;
  line-height: 1.4;
  color: #212b32;
}

/* ------------------------------------------------------------------
   Provider pages (directory.DirectoryPage)
   ------------------------------------------------------------------ */

.dr-provider__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.dr-provider__categories li {
  margin: 0;
}

/* Provider page: a panel (waiting time, contact details, map, getting there) beside
   the main column (services, criteria, referrals not accepted and so on). */
.dr-provider__header {
  margin-bottom: 8px;
}

.dr-provider__panel {
  margin-bottom: 32px;
  padding: 0 24px 24px;
  border-top: 4px solid var(--dr-accent-colour, #005eb8);
  background: #ffffff;
}

.dr-provider__wait {
  margin: 0 -24px 16px;
  padding: 16px 24px;
  background: #e8edee;
}

.dr-provider__wait-label {
  display: block;
  color: #4c6272;
  font-size: 1rem;
}

.dr-provider__wait-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.dr-provider__panel-heading {
  margin: 24px 0 8px;
}

.dr-provider__facts {
  margin: 0;
}

.dr-provider__facts dt {
  margin-top: 12px;
  color: #4c6272;
  font-size: 1rem;
  font-weight: 600;
}

.dr-provider__facts dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere; /* long email addresses in a narrow column */
}

/* Wide map beside the panel. */
.dr-provider .dr-provider__map-frame {
  aspect-ratio: 2 / 1;
}

.dr-provider .dr-provider__map {
  margin-bottom: 24px;
}

.dr-provider__travel {
  margin-bottom: 32px;
}

.dr-provider__travel > :last-child {
  margin-bottom: 0;
}

/* Services in the panel: one column, whatever the screen width. */
.dr-provider__panel .dr-provider__treatments {
  display: block;
}

.dr-provider__panel .dr-provider__categories {
  margin-bottom: 8px;
}

/* More about this service: closed sections for referrers, one under another. */
.dr-provider__more-heading {
  margin-bottom: 8px;
}

.dr-provider__more {
  margin-bottom: 32px;
  border-top: 1px solid #d8dde0;
}

.dr-provider__details {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid #d8dde0;
}

.dr-provider__details .nhsuk-details__summary-text {
  font-size: 1.1875rem;
  font-weight: 600;
}

.dr-provider__details .nhsuk-details__text {
  margin-top: 16px;
}

.dr-provider__details .nhsuk-details__text > :last-child,
.dr-provider__details .nhsuk-warning-callout {
  margin-bottom: 0;
}

/* Long lists of referrals not accepted read in two columns on wide screens. */
@media (min-width: 64em) {
  .dr-provider__columns ul {
    columns: 2;
    column-gap: 32px;
  }

  .dr-provider__columns li {
    break-inside: avoid;
  }
}

.dr-provider__map {
  margin: 0;
}

.dr-provider__panel .dr-provider__map-links {
  margin-bottom: 0;
}

/* The static image, swapped for a live map of the same place when it
   scrolls into view (provider-map.mjs). */
.dr-provider__map-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid #d8dde0;
  background: #f0f4f5;
}

.dr-provider__map-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.dr-provider__live-map,
.dr-provider__live-map.maplibregl-map { /* MapLibre's own class would make it position: relative */
  position: absolute;
  inset: 0;
  opacity: 0; /* until it has drawn: the image shows meanwhile */
  transition: opacity 0.4s ease;
}

.dr-provider__map--live .dr-provider__live-map {
  opacity: 1;
}

.dr-provider__map--live .dr-provider__map-frame img {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .dr-provider__map-frame img,
  .dr-provider__live-map {
    transition: none;
  }
}

.dr-provider-pin {
  width: 30px;
  height: 42px;
  filter: drop-shadow(0 2px 2px rgba(33, 43, 50, 0.35));
}

/* The live map has its own attribution, so the caption isn't needed then. */
.dr-provider__map--live .dr-provider__attribution {
  display: none;
}

.dr-provider__attribution {
  margin-top: 4px;
  color: #4c6272;
  font-size: 0.8125rem;
}

.dr-provider__map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 8px;
}

.dr-provider__treatments li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.dr-provider__treatments .nhsuk-icon {
  position: static; /* NHS.UK positions tick icons absolutely for its own tick lists */
  flex-shrink: 0;
  margin-top: 4px;
  fill: #007f3b;
}

@media (min-width: 64em) {
  .dr-provider__treatments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
}

/* Find a provider (DirectoryPage) */
.dr-finder__results {
  margin-top: 16px;
  scroll-margin-top: 24px;
}

.dr-finder__summary {
  color: #4c6272;
}

.dr-finder__table td {
  vertical-align: top;
}

.dr-finder__col-number {
  width: 1%;
  padding-right: 0 !important;
}

.dr-finder__name {
  display: block;
  font-weight: 600;
}

.dr-finder__address {
  display: block;
  margin-top: 2px;
  color: #4c6272;
  font-size: 0.875rem;
}

.dr-finder__phone {
  white-space: nowrap;
}

.dr-finder__more {
  color: #4c6272;
}

/* Find a provider: results map and numbered pins */
.dr-finder__map {
  height: 440px;
  margin-bottom: 24px;
  border: 1px solid #d8dde0;
  background: #f0f4f5;
}

@media (max-width: 40em) {
  .dr-finder__map {
    height: 320px;
  }
}

.dr-finder__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  margin-right: 4px;
  padding: 0 6px;
  border-radius: 13px;
  background: var(--dr-accent-colour, #005eb8);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  vertical-align: 2px;
}

.dr-map-pin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  margin-bottom: 8px;
  padding: 0 7px;
  border: 2px solid #ffffff;
  border-radius: 15px;
  background: var(--dr-accent-colour, #005eb8);
  box-shadow: 0 2px 4px rgba(33, 43, 50, 0.35);
  color: #ffffff;
  font: 600 14px/1 Frutiger W01, Arial, sans-serif;
  cursor: pointer;
}

/* The point under the pin, touching the provider's location. */
.dr-map-pin::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  margin-left: -6px;
  border-width: 8px 6px 0;
  border-style: solid;
  border-color: var(--dr-accent-colour, #005eb8) transparent transparent;
}

.dr-map-pin:hover,
.dr-map-pin:hover::after {
  background-color: #003087;
  border-top-color: #003087;
}

.dr-map-pin:hover::after {
  background-color: transparent;
}

.dr-map-pin:focus {
  outline: 4px solid #ffeb3b;
  outline-offset: 0;
  box-shadow: 0 0 0 6px #212b32;
}

.dr-map-searched {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dr-map-searched::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: #d5281b;
  box-shadow: 0 0 0 2px #d5281b;
}

.dr-map-searched span {
  position: absolute;
  top: 22px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #212b32;
  color: #ffffff;
  font: 600 12px/1.4 Frutiger W01, Arial, sans-serif;
  white-space: nowrap;
}

.dr-map-popup a {
  font-weight: 600;
}

.dr-map-popup p {
  margin: 4px 0 0;
  color: #4c6272;
  font-size: 0.875rem;
}

.dr-finder__map .maplibregl-ctrl-attrib {
  font-size: 0.75rem;
}

.dr-finder__show-on-map {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--dr-accent-colour, #005eb8);
  border-radius: 4px;
  background: #ffffff;
  color: #005eb8;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.dr-finder__show-on-map[hidden] {
  display: none;
}

.dr-finder__show-on-map svg {
  fill: currentColor;
}

.dr-finder__show-on-map:hover {
  background: #e8f1f8;
  color: #003087;
}

.dr-finder__show-on-map:focus {
  outline: 4px solid transparent;
  background: #ffeb3b;
  border-color: #212b32;
  box-shadow: 0 4px 0 #212b32;
  color: #212b32;
}

/* Find a provider: the search bar */
.dr-finder-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-end;
  margin-bottom: 32px;
  padding: 20px 24px 4px;
  border-top: 4px solid var(--dr-accent-colour, #005eb8);
  background: #ffffff;
  box-shadow: 0 1px 0 #d8dde0;
}

.dr-finder-bar__field {
  margin-bottom: 16px;
}

.dr-finder-bar__type {
  flex: 2 1 320px;
}

.dr-finder-bar__type .nhsuk-select {
  width: 100%;
  min-width: 0;
}

.dr-finder-bar__postcode {
  flex: 1 1 180px;
}

.dr-finder-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.dr-finder-bar__actions .nhsuk-button {
  margin-bottom: 4px; /* room for the NHS button shadow */
}

.dr-finder-bar__reset[hidden] {
  display: none;
}

@media (max-width: 40em) {
  .dr-finder-bar {
    padding: 16px 16px 4px;
  }

  .dr-finder-bar__actions,
  .dr-finder-bar__actions .nhsuk-button {
    width: 100%;
  }
}

/* Multi-select: an NHS-style select box opening a panel of checkboxes */
.dr-multiselect {
  position: relative;
}

.dr-multiselect__button {
  display: block;
  width: 100%;
  height: 40px;
  padding: 4px 40px 4px 8px;
  border: 2px solid #4c6272;
  border-radius: 0;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23212b32' d='M12 15.5a1.5 1.5 0 0 1-1.1-.4l-5-5a1.5 1.5 0 1 1 2.2-2.2l3.9 4 3.9-4a1.5 1.5 0 0 1 2.2 2.2l-5 5a1.5 1.5 0 0 1-1.1.4Z'/%3E%3C/svg%3E") no-repeat right 8px center / 24px 24px;
  color: #212b32;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.dr-multiselect__button[aria-expanded="true"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23212b32' d='M12 8.5a1.5 1.5 0 0 1 1.1.4l5 5a1.5 1.5 0 1 1-2.2 2.2l-3.9-4-3.9 4a1.5 1.5 0 0 1-2.2-2.2l5-5a1.5 1.5 0 0 1 1.1-.4Z'/%3E%3C/svg%3E");
}

.dr-multiselect__button[hidden] {
  display: none;
}

.dr-multiselect__button:focus {
  outline: 4px solid #ffeb3b;
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px #212b32;
}

.dr-multiselect__button--error {
  border-color: #d5281b;
}

.dr-multiselect__summary {
  display: block;
  overflow: hidden;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dr-multiselect__count {
  color: #4c6272;
}

.dr-multiselect--enhanced .dr-multiselect__panel {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  max-height: 340px;
  overflow-y: auto;
  margin-top: 4px;
  padding: 12px 12px 0;
  border: 1px solid #aeb7bd;
  border-top: 4px solid var(--dr-accent-colour, #005eb8);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(33, 43, 50, 0.2);
}

.dr-multiselect--enhanced .dr-multiselect__panel {
  padding-bottom: 12px;
}

.dr-multiselect--enhanced .dr-multiselect__panel .nhsuk-checkboxes {
  margin-bottom: 0; /* NHS.UK's -2px would leave a needless scroll bar */
}

.dr-multiselect--enhanced .dr-multiselect__panel[hidden] {
  display: none;
}

.dr-finder__types {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.dr-finder__types .nhsuk-tag {
  font-size: 0.75rem;
}

/* Long documents: cards, summary lists and key figures (documents/blocks.py). */
.dr-card-group {
  margin-bottom: 8px;
}

.dr-card-group .nhsuk-card__description > :last-child,
.dr-card-group .nhsuk-card__description p:last-child {
  margin-bottom: 0;
}

.dr-card__tag {
  margin-top: -8px;
  margin-bottom: 8px;
  color: #4c6272;
  font-weight: 600;
}

.dr-summary-list .nhsuk-summary-list__value > :last-child {
  margin-bottom: 0;
}

.dr-key-figures .dr-stat__value {
  font-size: 2rem;
}

/* Lead text: a larger paragraph in the flow, no box (documents/blocks.py). */
.dr-lead p {
  font-size: inherit;
  line-height: inherit;
  color: #212b32;
}

/* Contact page (home/templates/home/contact_page.html). */
.dr-contact__panel {
  padding-top: 8px;
}

.dr-contact__phone-note {
  margin: 16px 0 0;
  color: #4c6272;
}

/* The honeypot: off screen for people (and screen readers), there for programs. */
.dr-contact__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.dr-contact__form altcha-widget {
  display: block;
}

/* Images in long documents (documents/blocks.py ImageBlock). */
.dr-image {
  margin-left: auto;
  margin-right: auto;
}

.dr-image--medium {
  max-width: 66.66%;
}

.dr-image--small {
  max-width: 50%;
}

@media (max-width: 40.0525em) {
  .dr-image--medium,
  .dr-image--small {
    max-width: 100%;
  }
}

.dr-image .nhsuk-image__img {
  width: 100%;
  height: auto;
}

/* "Look up another referral", under a tracker or waiting-list result. */
.dr-lookup-again {
  margin-top: 24px;
}

/* Progress dialog while a referral lookup runs (tracking/static/tracking/lookup-progress.js). */
.dr-progress-open {
  overflow: hidden;
}

.dr-progress {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(33, 43, 50, 0.6);
}

.dr-progress__box {
  width: 100%;
  max-width: 480px;
  padding: 32px;
  border-top: 4px solid var(--dr-accent-colour, #005eb8);
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.dr-progress__box:focus {
  outline: none;
}

.dr-progress__step {
  min-height: 1.5em;
  margin-bottom: 16px;
}

.dr-progress__bar {
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #e8edee;
}

.dr-progress__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--dr-accent-colour, #005eb8);
  transition: width 0.3s ease-out;
}

.dr-progress__slow {
  margin: 16px 0 0;
  color: #4c6272;
}

.dr-progress__slow[hidden] {
  display: none; /* nhsuk-body-s would otherwise show it */
}

@media (prefers-reduced-motion: reduce) {
  .dr-progress__bar span {
    transition: none;
  }
}

/* Front page side box (HomePage promo_text), beside the question and lined up with it. */
/* The same size and colour as the question beside it ("Hello, let me know..."). */
.dr-promo__title {
  margin-bottom: 16px;
}

.dr-promo__text {
  margin-bottom: 16px;
}

.dr-promo__link {
  margin-bottom: 0;
  font-weight: 600;
}

/* Latest news box under the side box: each story's title links to it, its date below. */
.dr-promo__news {
  margin-bottom: 16px;
}

.dr-promo__news li {
  margin-bottom: 16px;
}

.dr-promo__news .dr-news-date {
  display: block;
  margin-top: 4px;
}

/* News date, on stories and in the News list. */
.dr-news-date {
  color: #4c6272;
  font-size: 1rem;
}

.dr-news-list__item {
  border-bottom: 1px solid #d8dde0;
  margin-bottom: 24px;
  padding-bottom: 8px;
}

.dr-news-list__title {
  margin-bottom: 8px;
}

.dr-news-list__item .dr-news-date {
  margin-bottom: 8px;
}

/* On larger screens the two columns are the same height: the Latest news box sits at the
   bottom of its column and the question box grows to fill its own, so their bottoms line up
   whichever column is taller. */
@media (min-width: 48.0625em) {
  .dr-home-row {
    display: flex;
  }

  .dr-home-row > .nhsuk-grid-column-two-thirds,
  .dr-home-row > .nhsuk-grid-column-one-third {
    display: flex;
    flex-direction: column;
  }

  .dr-home-row > .nhsuk-grid-column-two-thirds > .nhsuk-card:last-child {
    flex-grow: 1;
  }

  /* Only under the OPERA+ box; on its own (the RMSL site) it stays at the top. */
  .dr-promo + .dr-promo--news {
    margin-top: auto;
  }
}

/* On phones the side box follows the question, without the overlap into the band. */
@media (max-width: 48.0525em) {
  .dr-promo {
    margin-top: 24px;
  }

  .nhsuk-grid-column-one-third.dr-role-panel {
    margin-top: 0;
  }
}

/* OPERA+ roadmap (RoadmapPage): a line of stages, each a dot that shows its card below. */
.dr-roadmap__hint {
  margin-bottom: 24px;
}

.dr-roadmap__scroll {
  margin-bottom: 24px;
  overflow-x: auto;
}

.dr-roadmap__line {
  box-sizing: border-box;
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0 32px 0 0;
  position: relative;
}

/* The line runs through the middle of the dots and on to the right edge: more to come. */
.dr-roadmap__line::before {
  background: #aeb7bd;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 8px;
  top: 37px;
}

.dr-roadmap__line::after {
  border-bottom: 8px solid transparent;
  border-left: 12px solid #aeb7bd;
  border-top: 8px solid transparent;
  content: "";
  position: absolute;
  right: 0;
  top: 31px;
}

/* Stages share the whole width, however many there are; when there are too many to fit they
   keep 112px and the line scrolls sideways. */
.dr-roadmap__stop {
  flex: 1 1 0;
  margin: 0;
  min-width: 112px;
  position: relative;
}

.dr-roadmap__button {
  align-items: center;
  background: none;
  border: 0;
  color: #212b32;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  padding: 0 8px 8px;
  text-align: center;
  width: 100%;
}

.dr-roadmap__when {
  color: #4c6272;
  font-size: 1rem;
  height: 28px;
  line-height: 28px;
}

.dr-roadmap__dot {
  background: #ffffff;
  border: 3px solid var(--dr-accent-colour, #005eb8);
  border-radius: 50%;
  box-sizing: border-box;
  height: 18px;
  margin: 2px 0 8px;
  transition: transform 0.15s;
  width: 18px;
}

.dr-roadmap__title {
  color: #005eb8;
  font-weight: 600;
  text-decoration: underline;
}

.dr-roadmap__button:hover .dr-roadmap__dot {
  transform: scale(1.2);
}

.dr-roadmap__button:hover .dr-roadmap__title {
  color: #7c2855;
}

.dr-roadmap__button[aria-selected="true"] .dr-roadmap__dot {
  background: var(--dr-accent-colour, #005eb8);
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--dr-accent-colour, #005eb8);
}

.dr-roadmap__button[aria-selected="true"] .dr-roadmap__title {
  color: #212b32;
  text-decoration: none;
}

/* NHS focus style: yellow with a black underline. */
.dr-roadmap__button:focus {
  outline: none;
}

.dr-roadmap__button:focus-visible {
  background: #ffeb3b;
  box-shadow: inset 0 -4px 0 #212b32;
}

.dr-roadmap__button:focus-visible .dr-roadmap__title {
  color: #212b32;
  text-decoration: none;
}

.dr-roadmap__card-when {
  color: #4c6272;
  font-weight: 600;
  margin-bottom: 8px;
}

.dr-roadmap__card:focus-visible {
  box-shadow: 0 0 0 4px #ffeb3b, 0 0 0 8px #212b32;
  outline: none;
}


/* Video block (documents.blocks.VideoBlock): full width of the text column. */
.dr-video {
  margin: 0 0 32px;
}

.dr-video__player {
  background: #212b32;
  display: block;
  height: auto;
  width: 100%;
}

.dr-video__caption {
  border-bottom: 1px solid #d8dde0;
  padding: 8px 0 12px;
}

.dr-video__title {
  display: block;
  font-weight: 600;
}

.dr-video__description {
  color: #4c6272;
  display: block;
}

/* A box revealed by a dropdown choice (Request an API key: "Other" software), styled
   like the NHS conditional reveal under radios. */
.dr-conditional {
  margin-top: -8px;
}

.dr-conditional[hidden] {
  display: none;
}


/* The site's accent colour (--dr-accent-colour, Settings > Site branding) on NHS.UK
   components that are blue by default: highlighted boxes, inset text and feature
   card headings. Sites without one keep NHS Blue. */
.nhsuk-card--care--non-urgent .nhsuk-card--care__heading-container {
  background-color: var(--dr-accent-colour, #005eb8);
}

.nhsuk-card--care--non-urgent .nhsuk-card--care__arrow::before,
.nhsuk-card--care--non-urgent .nhsuk-card--care__arrow::after {
  border-color: var(--dr-accent-colour, #005eb8);
}

.nhsuk-inset-text {
  border-left-color: var(--dr-accent-colour, #005eb8);
}

.nhsuk-card--feature > .nhsuk-card__content > .nhsuk-card__heading,
.nhsuk-card--feature > .nhsuk-card__heading-container > .nhsuk-card__heading {
  background-color: var(--dr-accent-colour, #005eb8);
}

/* Quote block (documents.blocks.QuoteBlock): a named person's words, with a bar in the
   site's accent colour. */
.dr-quote {
  border-left: 4px solid var(--dr-accent-colour, #005eb8);
  margin: 0 0 32px;
  padding: 4px 0 4px 24px;
}

.dr-quote__text {
  margin: 0 0 12px;
}

.dr-quote__text p {
  font-size: 1.1875rem;
  font-style: italic;
}

.dr-quote__text p:first-child::before {
  content: "\201C";
}

.dr-quote__text p:last-child::after {
  content: "\201D";
}

.dr-quote__by {
  display: flex;
  flex-direction: column;
}

.dr-quote__name {
  font-weight: 600;
}

.dr-quote__role {
  color: #4c6272;
}

/* OPERA+ Help site (helpdocs): search in the band, and colour-coded category cards. */
.dr-help-search {
  margin-top: 24px;
  max-width: 40em;
}

.dr-help-search__label {
  color: var(--dr-band-text-colour, #ffffff);
  font-weight: 600;
}

.dr-help-search__row {
  display: flex;
  gap: 8px;
}

.dr-help-search__input {
  flex: 1;
}

.dr-help-search__button {
  margin-bottom: 0;
}

.dr-help-popular li {
  margin-bottom: 8px;
}

.dr-help-category {
  border-top: 4px solid #005eb8;
}

.dr-help-category--green {
  border-top-color: #007f3b;
}

.dr-help-category--amber {
  border-top-color: #ffb81c;
}

.dr-help-category__count {
  color: #4c6272;
  font-size: 1rem;
  margin: 8px 0 0;
}

/* Front page: the login button beside Continue, in the hero band's colour, disabled until
   sign-in is ready (HomePage.login_button_text). */
.nhsuk-button.nhsuk-button--login,
.nhsuk-button.nhsuk-button--login:disabled,
.nhsuk-button.nhsuk-button--login:disabled:hover {
  background-color: var(--dr-band-colour, #41b6e6);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--dr-band-colour, #41b6e6) 70%, #000000);
  color: var(--dr-band-text-colour, #ffffff);
  opacity: 1;
  cursor: not-allowed;
}
