/*
  Initially Overrides from
  localgov_paragraphs/modules/localgov_subsites_paragraphs/css/localgov-subsites-paragraphs.css

  copied from /themes/contrib/localgov_base/css/components/page-sections.css?

*/
.lgd-page-section {
  color: var(--color-black)!important;
  background-color: var(--color-page-section-background-color);
}
.lgd-page-section--bg-colour-2 {
  --color-page-section-background-color: #ffffff !important;
  --color-page-section-text-color: #212529 !important;
}

/* Change to Light Grey instead of pure white */
.lgd-page-section--bg-colour-2.light-grey {
  --color-page-section-background-color: #f8f9fa !important;
  --color-page-section-text-color: #212529 !important;
}

.lgd-page-section--bg-colour-1 a,
.lgd-page-section--bg-colour-1 h2 a,
.lgd-page-section--bg-colour-1 h3 a,
.lgd-page-section--bg-colour-1 h4 a,
.lgd-page-section--bg-colour-1 h5 a,
.lgd-page-section--bg-colour-1 h6 a {
  color: var(--color-link) !important;
}

.lgd-page-section--bg-colour-3 a,
.lgd-page-section--bg-colour-3 h2 a,
.lgd-page-section--bg-colour-3 h3 a,
.lgd-page-section--bg-colour-3 h4 a,
.lgd-page-section--bg-colour-3 h5 a,
.lgd-page-section--bg-colour-3 h6 a {
  color: var(--color-link) !important;
}

/* All links inside the contact card */
.card.contact-card a,
.card.contact-card a[href^="mailto:"],
.card.contact-card a[href^="tel:"] {
  color: var(--wc-secondary-darker) !important;
  text-decoration: underline;
  transition: color 0.15s ease-in-out;
}

/* Hover and focus state */
.card.contact-card a:hover,
.card.contact-card a:focus,
.card.contact-card a:active {
  color: var(--wc-primary) !important;
  text-decoration: underline;
}

/* Make sure phone and email links inside list-group also follow the rule */
.list-group-item a {
  color: var(--wc-secondary-darker) !important;
}

.list-group-item a:hover,
.list-group-item a:focus {
  color: var(--wc-primary) !important;
}
