/* ICRR — GOV.UK Design System patterns */
:root {
  --govuk-black: #0b0c0c;
  --govuk-yellow: #ffdd00;
  --govuk-blue: #1d70b8;
  --govuk-dark-blue: #003078;
  --govuk-navy: #001b3a;
  --govuk-light-grey: #f3f2f1;
  --govuk-mid-grey: #b1b4b6;
  --govuk-text-secondary: #505a5f;
}

.icrr-govuk-crown-bar {
  background: var(--govuk-black);
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}

.icrr-govuk-crown-bar__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
  font-weight: 700;
}

.icrr-header {
  background: var(--govuk-navy);
  border-bottom: 10px solid var(--govuk-blue);
  color: #fff;
  padding: 15px 0;
}

.icrr-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

a.icrr-header__inner,
a.icrr-header__inner:link,
a.icrr-header__inner:visited,
a.icrr-header__inner:hover,
a.icrr-header__inner:focus {
  color: #fff;
  text-decoration: none;
}

.icrr-header__badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
}

.icrr-header__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.icrr-header__tagline {
  font-size: 16px;
  margin: 5px 0 0;
  opacity: 0.9;
}

.icrr-disclaimer-banner {
  background: var(--govuk-yellow);
  color: var(--govuk-black);
  padding: 10px 15px;
  font-size: 16px;
  border-bottom: 1px solid var(--govuk-black);
}

.icrr-disclaimer-banner p {
  max-width: 960px;
  margin: 0 auto;
}

.icrr-trust-panel {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px;
  background: var(--govuk-light-grey);
  border-left: 5px solid var(--govuk-blue);
  margin-bottom: 30px;
}

.icrr-trust-panel img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.icrr-price-card {
  background: #fff;
  border: 2px solid var(--govuk-mid-grey);
  padding: 20px;
  margin-bottom: 20px;
}

.icrr-price-card--featured {
  border-color: var(--govuk-blue);
  border-width: 3px;
}

.icrr-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--govuk-dark-blue);
}

.icrr-price--range {
  font-size: 28px;
  line-height: 1.2;
}

.icrr-section-gap {
  margin-top: 72px;
}

.icrr-site-links {
  background: var(--govuk-light-grey);
  padding: 15px;
  margin-top: 40px;
  font-size: 14px;
}

.icrr-site-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.icrr-hero {
  background: linear-gradient(135deg, #f3f2f1 0%, #fff 100%);
  padding: 30px 0 20px;
  margin-bottom: 20px;
}

.icrr-hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.icrr-hub-card .govuk-body {
  flex: 1;
}

.icrr-hub-card .govuk-button {
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

@media (min-width: 641px) {
  .icrr-hub-card .govuk-button {
    width: auto;
  }
}

.icrr-grid-2 {
  display: grid;
  gap: 20px;
}

.icrr-alt-card--one {
  border-left: 5px solid #00703c;
}

.icrr-alt-card--two {
  border-left: 5px solid #4c2c92;
}

.icrr-plan-card {
  background: #fff;
  border: 1px solid var(--govuk-mid-grey);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.icrr-plan-card__head {
  padding: 20px 20px 0;
}

.icrr-plan-card__body {
  padding: 0 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.icrr-plan-card__foot {
  margin-top: auto;
  padding-top: 20px;
}

.icrr-plan-card--priority {
  border: 3px solid var(--govuk-blue);
  position: relative;
}

.icrr-plan-card--priority .icrr-plan-card__head {
  background: var(--govuk-light-grey);
  padding-bottom: 15px;
  margin-bottom: 0;
}

.icrr-plan-card .icrr-price {
  font-size: 48px;
  line-height: 1;
  margin: 10px 0 15px;
}

.icrr-plan-card .icrr-price-suffix {
  font-size: 19px;
  font-weight: 400;
  color: var(--govuk-text-secondary);
}

.icrr-plan-features {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.icrr-plan-features li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--govuk-light-grey);
  font-size: 16px;
}

.icrr-plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--govuk-blue);
  border-radius: 50%;
}

.icrr-payment-summary {
  background: var(--govuk-light-grey);
  padding: 20px;
  border-left: 5px solid var(--govuk-blue);
  margin-bottom: 30px;
}

.icrr-payment-summary__amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--govuk-dark-blue);
}

@media (min-width: 641px) {
  .icrr-header__badge {
    width: 88px;
    height: 88px;
  }
  .icrr-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .icrr-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile — all ICRR sites */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

#report-types {
  scroll-margin-top: 16px;
}

body.govuk-template__body {
  overflow-x: clip;
}

.icrr-overflow-safe {
  max-width: 100%;
}

@media (max-width: 640px) {
  .icrr-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .icrr-header__title {
    font-size: 20px;
    word-break: break-word;
  }

  .icrr-header__tagline {
    font-size: 16px;
  }

  .icrr-trust-panel {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
  }

  .icrr-trust-panel img {
    width: 88px;
    height: 88px;
  }

  .icrr-price,
  .icrr-plan-card .icrr-price,
  .icrr-payment-summary__amount {
    font-size: 28px;
  }

  .icrr-hero {
    padding: 20px 0 12px;
  }

  .icrr-hub-card {
    height: auto;
  }

  .icrr-grid-2 {
    gap: 28px;
  }

  .icrr-price-card {
    margin-bottom: 0;
  }

  .icrr-hub-card .govuk-button,
  .icrr-alt-card .govuk-button,
  .icrr-plan-card__foot .govuk-button {
    width: 100%;
    margin-bottom: 4px;
  }

  .govuk-main-wrapper {
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .govuk-button--start {
    width: 100%;
    text-align: center;
  }

  .govuk-grid-row .govuk-grid-column-one-third {
    margin-top: 24px;
  }

  .icrr-business-aside-float img {
    float: none !important;
    margin: 0 auto 12px !important;
    display: block;
  }

  .govuk-input,
  .govuk-textarea,
  .govuk-select {
    max-width: 100%;
    box-sizing: border-box;
  }

  .govuk-input--width-20,
  .govuk-input--width-10 {
    width: 100%;
  }

  .govuk-date-input {
    flex-wrap: wrap;
  }
}