/* Inclusive Retention Partners */

/* Text colours from Niamh's palette; secondary text in a cool grey to suit the navy (7:1 on the page background) */
:root {
  --b-text: #2D2D2D;
  --irp-muted: #4B5563;
  /* Buttons inside navy layout panels use the brand red, not the theme's grey */
  --json-bg-primary-button-bg: #D9303E;
  --json-bg-primary-button-color: #FFFFFF;
}
.nova-jc-color-muted {
  color: var(--irp-muted);
}

/* Header logo, slightly larger, keeping its proportions */
.tn-brand .tn-brand__logo {
  height: 42px;
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
@media (max-width: 767px) {
  .tn-brand .tn-brand__logo {
    height: 34px;
  }
}

/* Banners: brand navy instead of near-black, and no fade at the bottom */
.nova-hero.nova-hero--gradient.nova-on-dark {
  background: linear-gradient(135deg, #111C33 0%, #1B2A4A 60%, #24396A 100%);
}
.nova-hero .nova-hero__fade {
  display: none;
}

/* Breathing room between the header and the banner below it */
.bdgr-block > .nova-hero {
  margin-top: 24px;
}
.nova-breadcrumb.nova-breadcrumb--page {
  margin-top: 8px;
}
@media (max-width: 767px) {
  .bdgr-block > .nova-hero {
    margin-top: 16px;
  }
}

/* Footer in brand navy */
.nova-sitefooter .nova-sitefooter__main,
.nova-sitefooter .nova-sitefooter__base {
  background-color: #14203A;
}

/* Buttons: one shape everywhere (pill, 48px), primary in Niamh's CTA red */
.nova-btn.nova-btn-primary,
.nova-on-dark .nova-btn.nova-btn-primary,
.nova-cta .nova-btn.nova-btn-primary,
.json-container.nova-on-dark .json-button.nova-btn-primary {
  background: #D9303E;
  border: 1px solid #D9303E;
  color: #FFFFFF;
}
.nova-btn.nova-btn-primary:hover,
.nova-on-dark .nova-btn.nova-btn-primary:hover,
.nova-cta .nova-btn.nova-btn-primary:hover,
.json-container.nova-on-dark .json-button.nova-btn-primary:hover {
  background: #BF2A37;
  border-color: #BF2A37;
  color: #FFFFFF;
}
.json-button.nova-btn,
.nova-cta .nova-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  min-height: 48px;
  padding: 12px 32px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  text-decoration: none;
}
.nova-cta .nova-btn.nova-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.nova-cta .nova-btn.nova-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
.nova-cta .nova-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Text pages: headings in proportion with the body text */
.nova-html-content h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--color-text-strong);
  margin: 2.5rem 0 0.75rem;
}
.nova-html-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-strong);
  margin: 1.75rem 0 0.5rem;
}
.nova-html-content > .nova-container > h2:first-child {
  margin-top: 0;
}

/* Full-width tinted bands: background bleeds to the window edges, content stays in the column */
.json-container.nova-bg-primary-subtle {
  --irp-band: #F3F6FD;
  background: var(--irp-band);
  box-shadow: 0 0 0 100vmax var(--irp-band);
  clip-path: inset(0 -100vmax);
}

/* Icon tiles: compact squares, not full-width bars */
.json-container.nova-jc-bg-primary:has(> .json-icon) {
  width: fit-content;
  align-self: flex-start;
  padding: 12px;
  margin-bottom: 4px;
}
.json-container.nova-jc-bg-primary:has(> .json-icon) svg {
  width: 24px;
  height: 24px;
}

/* Tick icons in the away-days panel */
.nova-on-dark .json-row > .json-icon svg {
  color: #F3A6AD;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Phones: buttons that fit the screen */
@media (max-width: 767px) {
  .json-button.nova-btn,
  .nova-cta .nova-btn {
    padding: 12px 24px;
  }
}
