/*
 * NHS Proton Registry: site-specific styles.
 * Everything else comes from nhsuk-frontend. Keep this file small, and use
 * NHS colour values only.
 */

/* ---- Draft banner ------------------------------------------------------ */
.npr-draft-banner {
  background: #fff9c4;
  border-bottom: 4px solid #ffb81c;
  padding: 8px 0;
}

/* ---- Reading width ------------------------------------------------------
 * Pages use the full 960px container so tables, diagrams and cards have
 * room. Running text is held to a comfortable line length, following the
 * NHS service manual: "lines of text content should be no longer than 70
 * to 80 characters". Tables, figures and card groups are not limited.
 */
.npr-content > :where(p:not(:has(img)), ul:not([class]), ol:not([class]), dl, blockquote,
  h1, h2, h3, h4, .nhsuk-lede-text, .nhsuk-inset-text, .npr-question) {
  max-width: 38em;
}
.npr-content img {
  max-width: 100%;
  height: auto;
}

/* ---- Open questions (draft placeholders) -------------------------------- */
.npr-question {
  background: #fff9c4;
  border: 2px dashed #ffb81c;
  border-left: 8px solid #ffb81c;
  padding: 12px 16px;
  margin: 0 0 24px;
}
.npr-question__label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.npr-question__label::before {
  content: "?";
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  margin-right: 8px;
  border-radius: 50%;
  background: #212b32;
  color: #fff9c4;
  text-align: center;
  line-height: 1.4em;
}
.npr-question__text {
  margin: 0;
}
td .npr-question { margin: 0; padding: 8px 12px; }
td .npr-question__text { font-size: 1rem; }

/* ---- Proposed photograph slots (draft only) ------------------------------ */
.npr-proposed-photo {
  margin: 0 0 32px;
}
.npr-proposed-photo__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 3 / 2;
  background: repeating-linear-gradient(-45deg, #e8edee, #e8edee 12px, #f0f4f5 12px, #f0f4f5 24px);
  border: 2px dashed #768692;
  color: #4c6272;
  text-align: center;
  padding: 16px;
}
.npr-proposed-photo__desc {
  font-weight: 700;
  max-width: 22em;
}
.npr-proposed-photo figcaption .npr-question {
  border-top: 0;
  margin: 0;
}
.npr-photo-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 32px;
}
@media (min-width: 48.0625em) {
  .npr-photo-pair { grid-template-columns: 1fr 1fr; }
}

/* ---- Home: hero with illustration --------------------------------------- */
.npr-hero .nhsuk-hero__content {
  padding-top: 40px;
  padding-bottom: 40px;
}
.npr-bragg {
  margin: 0;
  color: #ffffff;
}
.npr-bragg__svg {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}
.npr-bragg__label {
  fill: #ffffff;
  font-size: 13px;
}
.npr-bragg__label--strong { font-weight: 700; }
.npr-bragg__axis {
  fill: #ffffff;
  font-size: 12px;
}
.npr-bragg figcaption { color: #ffffff; margin-top: 8px; }

/* ---- Home: headline figures ---------------------------------------------- */
.npr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.npr-stats__item {
  background: #ffffff;
  border-top: 4px solid #005eb8;
  padding: 16px 20px 20px;
  margin: 0;
}
.npr-stats__value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #212b32;
}
.npr-stats__value--pending {
  font-size: 1.25rem;
  line-height: 2.2;
  color: #4c6272;
}
.npr-stats__label {
  display: block;
  margin-top: 4px;
}
