/* The referral system, joined into the North West Aortic Surgical Network's
   website. Colours and type follow the site's theme (NHS blue #005eb8, dark
   blue #003087, text #231f20, Frutiger). */

.nw-refer-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 16px;
  padding: 10px 16px;
  border-radius: 4px;
  background: #ffffff;
  color: #005eb8;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 0 #003087;
}
.nw-refer-button:hover { background: #e8edee; }
.nw-refer-button:focus-visible {
  outline: none;
  background: #ffeb3b;
  color: #212b32;
  box-shadow: 0 4px 0 #212b32;
}
.nw-refer-button:active { transform: translateY(4px); box-shadow: none; }
.nw-refer-button-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cd363a;
  box-shadow: 0 0 0 3px rgba(205, 54, 58, 0.18);
}
@media (max-width: 900px) {
  .nw-refer-button { padding: 9px 12px; font-size: 15px; margin-right: 10px; }
}
@media (max-width: 420px) {
  .nw-refer-button-dot { display: none; }
  .nw-refer-button { padding: 8px 10px; font-size: 14px; }
}

.nw-refer {
  background: #003087;
  color: #ffffff;
  padding: 48px 0;
}
.nw-refer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .nw-refer { padding: 36px 0; }
  .nw-refer-inner { grid-template-columns: 1fr; gap: 28px; }
}
.nw-refer h2 { color: #ffffff; margin: 6px 0 12px; }
.nw-refer p { color: #ffffff; margin: 0 0 12px; }
.nw-refer-tag {
  display: inline-block;
  background: #ffffff;
  color: #003087 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 4px;
}
.nw-refer-points { margin: 12px 0 0; padding: 0; list-style: none; }
.nw-refer-points li { position: relative; padding-left: 28px; margin: 8px 0; }
.nw-refer-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(-45deg);
}
.nw-refer-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.nw-refer-primary,
.nw-refer-secondary {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}
.nw-refer-primary { background: #ffffff; color: #005eb8; box-shadow: 0 4px 0 #001f5c; }
.nw-refer-primary:hover { background: #e8edee; }
.nw-refer-secondary { color: #ffffff; border: 2px solid #ffffff; }
.nw-refer-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.nw-refer-primary:focus-visible,
.nw-refer-secondary:focus-visible,
.nw-refer a:focus-visible {
  outline: none;
  background: #ffeb3b;
  color: #212b32;
  box-shadow: 0 4px 0 #212b32;
}
.nw-refer-small { font-size: 15px; opacity: 0.9; }
.nw-refer-small a { color: #ffffff; }
.nw-refer.is-signed-in .nw-refer-secondary { display: none; }

.nw-footer-referrals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 16px 0 8px;
  font-size: 15px;
}
.nw-footer-referrals a { font-weight: 700; }
