.hero-section {
  background-color: #ede6f0; /* match the light purple */
  padding: 3rem 1rem;
  text-align: left;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content ul {
  margin: 1rem 0 1rem 1.5rem;
  list-style-type: disc;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content h2,
.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.post-content blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  color: #555;
  margin: 1.5rem 0;
  font-style: italic;
}

/* Solution 1: Force override with high specificity */
/* #google_translate_element .goog-te-gadget-simple {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: normal !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value {
  color: #495057 !important;
  font-family: "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
  border: 2px solid #000 !important;
  border-radius: 6px !important;
  background: #fff !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  min-width: 150px !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value:hover {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span {
  color: #495057 !important;
}

/* Hide the Google Translate icon */
/* #google_translate_element .goog-te-gadget-icon {
  display: none !important;
} */

/* Style the dropdown arrow */
/* #google_translate_element
  .goog-te-gadget-simple
  .goog-te-menu-value
  span:last-child {
  border-left: 1px solid #ced4da !important;
  padding-left: 8px !important;
  margin-left: 8px !important;
}  */

/* Container sizing — keep your existing size rules if you prefer */
#google_translate_element {
  width: 5%;
  min-width: 64px;
  display: inline-block;
}

/* Style the native combobox injected by Google so it matches your .form-select */
.goog-te-combo,
#google_translate_combo {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  width: 100%;
  min-width: 64px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #ccc !important;
  border-radius: 0.5rem !important;
  background: #fff !important;
  font-family: "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  line-height: normal !important;
  color: #495057 !important;
  cursor: pointer;
}

/* Hide Google's floating iframe menu entirely (we rely on the native combo) */
.goog-te-menu-frame {
  display: none !important;
}

/* Hide Google translate icon that appears inside gadget */
.goog-te-gadget-icon {
  display: none !important;
}

/* iframe[title="Language Translate Widget"] {
  width: 100% !important;
  max-height: 300px !important;
  overflow: auto !important;
} */

.hero-section h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.2;
  max-width: 768px;
  color: #040106;
}

.hero-section p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5px;
  color: #040106;
  max-width: 768px;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 1rem; /* adds space between buttons */
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Primary solid purple button */
.hero-buttons .btn-primary {
  background-color: #4d1a79;
  border: 1px solid #4d1a79;
  color: #fff;
  font-weight: 500;
  border-radius: 0;
  border: none;
  padding: 0.5rem 1.25rem;
}

/* Outline button with black text */
.hero-buttons .btn-outline-secondary {
  border: 1px solid #04010626;
  color: #000;
  font-weight: 500;
  border-radius: 0;
  padding: 0.5rem 1.25rem;
  background-color: transparent;
}

/* On hover, darken the border slightly */
.hero-buttons .btn-outline-secondary:hover {
  background-color: #000;
  color: #fff;
}

/* Image styles */
.hero-section .hero-image {
  margin-top: 1rem;
}

.hero-section .hero-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.service-box {
  position: relative;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.service-box::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: #4d1a79; /* Change to match your theme */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.service-box:hover::after {
  width: 100%; /* How wide the underline becomes on hover */
}

.service-box:hover {
  transform: translateY(-5px); /* Slight lift effect */
}

/* === Section: Essential Services === */
.essential-services-section {
  background-color: #ede6f0; /* match the light purple */
  text-align: center;
  padding: 6rem;
}

.essential-services-section h2 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 3rem;
  color: #1a1a1a;
}

.essential-services-section h5 {
  color: #040106;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

.essential-services-section p {
  color: #040106;
}

/* === Section: Understanding Domestic Abuse === */
.info-section {
  background-color: #ffffff;
  padding: 8rem;
}

.info-section h2 {
  font-size: 40px;
  line-height: 120%;
  font-weight: 400;
  color: #040106;
}
.info-section-description {
  font-size: 18px;
  line-height: 150%;
  font-weight: 400;
  color: #040106;
}

.domestic-abuse-info h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 2rem;
}

.domestic-abuse-info .lead {
  font-family: var(--font-sans, "Work Sans", system-ui, sans-serif);
  color: #555;
  font-size: 1.1rem;
}

.domestic-abuse-info i {
  color: #d0315e;
  font-size: 1.75rem;
  margin-top: 2px;
}

.domestic-abuse-info a:hover {
  text-decoration: underline;
  color: #d0315e;
}

.domestic-abuse-info a {
  color: #d0315e;
  font-weight: 500;
}

/* === Section: Make a Difference === */
.make-a-difference-section {
  background-color: #ede6f0;
  padding: 4rem 1rem;
}

.make-a-difference-section h2 {
  font-size: 48px;
  font-weight: 400;
  color: #040106;
  line-height: 120%;
}
.make-a-difference-section p {
  font-size: 18px;
  font-weight: 400;
  color: #040106;
  line-height: 150%;
}

.make-a-difference-section .btn-primary {
  background-color: #4d1a79;
  border: 1px solid #4d1a79;
  color: #fff;
  font-weight: 500;
  border-radius: 0;
  border: none;
  padding: 0.5rem 1.25rem;
}

.make-a-difference-section .btn-outline-secondary {
  border: 1px solid #04010626;
  color: #000;
  font-weight: 500;
  border-radius: 0;
  padding: 0.5rem 1.25rem;
  background-color: transparent;
}

.make-a-difference-section .btn-outline-secondary:hover {
  background-color: #fbe7f1;
  color: #fff;
}

/* === Section: Latest News === */
.latest-news-preview {
  background-color: #ffffff;
  padding: 5rem 1rem;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.latest-news-preview h2 {
  color: #040106;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -1%;
  margin-bottom: 80px;
}

.latest-news-preview .border {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
  padding: 1rem;
  background-color: #ffff;
}

.latest-news-preview .border:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.latest-news-preview h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* === Section: FAQ Accordion === */
.accordion-button {
  background-color: #faf8fc;
  font-weight: 500;
  color: #1a1a1a;
  border-radius: 0;
}

.accordion-button:not(.collapsed) {
  background-color: #eae2f8;
  color: #6a0dad;
}

.accordion-body {
  font-size: 1rem;
  color: #444;
  background-color: #fff;
}

/* === Typography Utilities === */
.text-muted {
  color: #666;
}

/* =========================================
   Reset Bootstrap Default Styles
   ========================================= */

/* Reset heading margins and font sizes */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Reset paragraph margins */
p {
  margin-top: 0;
  margin-bottom: 0;
}

.accordion-body p {
  margin-bottom: 1rem !important;
}
.accordion-body ul,
.accordion-body ol {
  margin-bottom: 1rem !important;
  padding-left: 1.5rem !important; /* a bit more indentation looks better */
}

/* Wagtail |richtext wraps HTML in <div class="rich-text">.
   The site-wide heading/paragraph/list reset above zeros margins and
   makes headings inherit body size. Restore readable CMS typography
   only inside that wrapper so layout headings (.heading-style) and
   flex gaps are unchanged. .richtext is kept as a legacy alias. */
.rich-text p,
.richtext p {
  margin-bottom: 1em;
}

.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6,
.richtext h2,
.richtext h3,
.richtext h4,
.richtext h5,
.richtext h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.15em;
  margin-bottom: 0.45em;
}

.rich-text h2,
.richtext h2 {
  font-size: 1.35em;
}

.rich-text h3,
.richtext h3 {
  font-size: 1.2em;
}

.rich-text h4,
.rich-text h5,
.rich-text h6,
.richtext h4,
.richtext h5,
.richtext h6 {
  font-size: 1.1em;
}

.rich-text h2:first-child,
.rich-text h3:first-child,
.rich-text h4:first-child,
.rich-text h5:first-child,
.rich-text h6:first-child,
.richtext h2:first-child,
.richtext h3:first-child,
.richtext h4:first-child,
.richtext h5:first-child,
.richtext h6:first-child {
  margin-top: 0;
}

.rich-text ul,
.rich-text ol,
.richtext ul,
.richtext ol {
  margin: 0 0 1em;
  padding-left: 1.5rem;
}

.rich-text ul,
.richtext ul {
  list-style-type: disc;
}

.rich-text ol,
.richtext ol {
  list-style-type: decimal;
}

.rich-text li,
.richtext li {
  margin-bottom: 0.4em;
}

.rich-text li:last-child,
.richtext li:last-child {
  margin-bottom: 0;
}

.rich-text p:last-child,
.rich-text ul:last-child,
.rich-text ol:last-child,
.rich-text h2:last-child,
.rich-text h3:last-child,
.rich-text h4:last-child,
.richtext p:last-child,
.richtext ul:last-child,
.richtext ol:last-child,
.richtext h2:last-child,
.richtext h3:last-child,
.richtext h4:last-child {
  margin-bottom: 0;
}

/* Ensure richtext content has proper height in flex containers */
.d-flex .rich-text,
.d-flex .richtext,
.d-flex > div > .rich-text,
.d-flex > div > .richtext {
  min-height: fit-content;
}

/* Hero section specific richtext styling */
.hero-section .richtext p,
.hero-section p {
  font-size: 18px;
  font-weight: 400;
  color: #040106;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Reset other common elements */
ul,
ol {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}

/* Work Sans heading class */
.heading-work-sans,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Work Sans", sans-serif;
}

.essential-services {
  background-color: #fff;
  padding: 4rem 1rem;
}

.essential-services h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 3rem;
}

.essential-services h5 {
  color: #6a0dad;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.essential-services p {
  color: #555;
  font-size: 1rem;
}

/* Custom Navbar Styling */
.custom-navbar {
  background-color: #ede6f0;
}

.gap-32px {
  gap: 32px !important;
}

.gap-24px {
  gap: 24px !important;
}

.gap-16px {
  gap: 16px !important;
}

.gap-8px {
  gap: 8px !important;
}

.mt-32px {
  margin-top: 32px !important;
}

.custom-navbar .navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.custom-navbar .navbar-brand img {
  width: 150px;
  height: auto;
}

@media (max-width: 991.98px) {
  .custom-navbar .navbar-brand img {
    width: 120px;
  }

  .offcanvas .nav-link,
  .offcanvas .dropdown-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(4, 1, 6, 0.12);
  }
}

.custom-navbar .nav-link {
  color: #0b0b0b;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  padding: 0.5rem;
  padding-left: 0rem !important;
  padding-right: 0rem !important;
  transition: color 0.2s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus,
.custom-navbar .nav-link.active {
  color: #6a0dad;
  text-decoration: underline;
}

.custom-navbar .user-greeting {
  color: #6a0dad;
  font-weight: 600;
}

/* Responsive nav link spacing */
@media (max-width: 991.98px) {
  .custom-navbar .nav-link {
    padding: 0.75rem 1rem;
  }
}

body {
  font-family: var(--font-sans, "Work Sans", system-ui, sans-serif);
  color: #1a1a1a;
  background-color: #fff;
  line-height: 1.6;
}

/* === Section: Understanding Domestic Abuse === */

.domestic-abuse-info {
  background-color: #ffffff;
  padding: 4rem 1rem;
}

.domestic-abuse-info h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 2rem;
}

.domestic-abuse-info i {
  color: #d0315e;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.domestic-abuse-info a {
  color: #d0315e;
  font-weight: 500;
  font-size: 0.95rem;
}

.domestic-abuse-info a:hover {
  text-decoration: underline;
}

.domestic-abuse-info p {
  margin-bottom: 0.75rem;
}

.safety-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  background: #fff;
}

body {
  padding-top: var(--safety-banner-height);
}

.offcanvas {
  top: var(--safety-banner-height);
  height: calc(100% - var(--safety-banner-height));
}

.safety-banner .helpline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 575.98px) {
  .safety-banner .helpline-link {
    white-space: nowrap;
    font-size: 0.875rem;
  }
}

.exit-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#freewills,
#volunteer,
#fundraise,
#work-with-us {
  scroll-margin-top: var(--safety-banner-height);
}

.google-translate-host {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.faq-section {
  background-color: #1e0a30; /* Very dark purple */
  color: #ffffff;
  padding: 4rem 1rem;
}

.faq-section h2 {
  color: #ffffff;
  font-weight: 400;
  font-size: 40px;
  line-height: 120%;
}

.faq-section .accordion-button {
  background-color: #1e0a30; /* Slightly lighter than background */
  color: #ffffff;
  font-weight: 500;
  border: none;
  padding: 4px 8px;
}
.faq-section .accordion {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq-section .accordion-button.collapsed {
  background-color: #1e0a30;
  color: #ffffff;
}

.faq-section .accordion-button:not(.collapsed) {
  background-color: #1e0a30;
  color: #ffffff;
}

.faq-section .accordion-button:focus {
  box-shadow: none !important;
  outline: none !important;
}

.faq-section .accordion-body {
  background-color: #1e0a30;
  color: #ffffff;
}

.faq-section .accordion-item {
  border: 1px solid #ffffff;
  /* border-radius: 4px; */
  /* margin-bottom: 1rem; */
}

.faq-section .accordion-item:first-child {
  border-radius: 0 !important;
}

.faq-section .accordion-item:last-child {
  border-radius: 0 !important;
}

.faq-section .accordion-item:first-child .accordion-button {
  border-radius: 0 !important;
}

.faq-section .accordion-item:last-child .accordion-button {
  border-radius: 0 !important;
}
.faq-section .accordion-button::after {
  filter: brightness(0) invert(1); /* makes the default chevron white */
}

.faq-section p {
  font-size: 18px;
  line-height: 150%;
  font-weight: 400;
}
.faq-section h3 {
  font-size: 32px;
  line-height: 130%;
  font-weight: 400;
}

.faq-section .btn-outline-secondary {
  border: 1px solid #fff;
  color: #fff;
  font-weight: 500;
  border-radius: 0;
  padding: 0.5rem 1.25rem;
  background-color: transparent;
  width: fit-content;
}

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

.card-info .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 32px;
}

/* Ensure equal height cards in rows */
.row.gy-4 .col-md-6 {
  display: flex;
}

.card-info h6 {
  color: #040106;
  margin-bottom: 0px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.card-info p {
  color: #040106;
  margin-bottom: 0px;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
}

.card-info a {
  color: #040106;
  margin-bottom: 0px;
  flex-shrink: 0;
  min-height: 1.5em; /* Consistent height for links */
  display: flex;
  align-items: center;
}

/* Ensure icon alignment */
.card-info .icon-img {
  margin-bottom: 0 !important;
  flex-shrink: 0;
  height: 48px; /* Fixed icon height */
  width: 48px; /* Fixed icon width */
  object-fit: contain;
}
.link-hover-underline {
  text-decoration: none;
}

.link-hover-underline:hover .link-text {
  text-decoration: underline !important; /* underline only the text */
}

.link-hover-underline i {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.black-link {
  color: black;
  text-decoration: none;
}

.news-card-info {
  /* background-color: #f8d1f5; */
  border-radius: 0.5rem;
  padding: 1rem;
}

.news-card-info h6 {
  color: #040106;
  margin-bottom: 0px;
}
.news-card-info p {
  color: #040106;
  margin-bottom: 0px;
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
}
.news-card-info a {
  color: #040106;
  margin-bottom: 0px;
}
.news-link-hover-underline {
  text-decoration: none;
}

.news-link-text {
  font-size: 16px;
  line-height: 150%;
}

.news-link-hover-underline:hover .news-link-text {
  text-decoration: underline !important; /* underline only the text */
}

.news-link-hover-underline i {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.terms-section {
  border-top: 1px solid #04010626;
  margin-top: 40px;
}
.terms-section a {
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  text-decoration: underline !important;
  color: #000;
}
.terms-section p {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
}

.abuse-heading {
  padding: 112px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.abuse-heading h1 {
  font-weight: 400;
  font-size: 48px;
  color: #040106;
  line-height: 120%;
  max-width: 768px;
  text-align: center;
}
.abuse-section {
  background-color: #1e0a30; /* Very dark purple */
  color: #ffffff;
  padding: 4rem 1rem;
}

.abuse-accordion {
  margin: 60px 0;
}

/* .abuse-section h2 {
  color: #ffffff;
  font-weight: 400;
  font-size: 48px;
  line-height: 120%;
} */

.abuse-section .accordion-button {
  background-color: #fff; /* Slightly lighter than background */
  color: #000;
  font-weight: 400;
  border: none;
  border-radius: 0 !important;
  font-size: 18px;
  line-height: 150%;
  padding: 4px 8px;
  justify-content: space-between;
  box-shadow: none !important;
}

.abuse-section .accordion-button.collapsed {
  background-color: #fff;
  color: #000;
  box-shadow: none !important;
}

.abuse-section .accordion-button:focus {
  box-shadow: none !important;
  outline: none !important;
}

.abuse-section .accordion-body {
  background-color: #fff;
  color: #000;
}

.abuse-section .accordion-item {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 8px 4px;
}

.abuse-section .accordion-button::after {
  width: 24px;
  height: 24px;
  background-image: url("/static/images/svgs/chevron-purple.227255b0821f.svg");
  background-repeat: no-repeat;
  background-size: 24px;
  margin-left: 12px;
  transition: transform 0.3s ease;
}
.abuse-section .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg); /* Flip arrow when expanded */
}
.abuse-section p {
  font-size: 18px;
  line-height: 150%;
  font-weight: 400;
}
.abuse-section h3 {
  font-size: 32px;
  line-height: 130%;
  font-weight: 400;
}

.abuse-section .btn-outline-secondary {
  border: 1px solid #fff;
  color: #fff;
  font-weight: 500;
  border-radius: 0;
  padding: 0.5rem 1.25rem;
  background-color: transparent;
  width: fit-content;
}

.full-height-img {
  height: 100%;
  width: 100%;
  object-fit: cover; /* Ensures image covers without distortion */
}

.complaints-section .accordion-button {
  background-color: #fff; /* Slightly lighter than background */
  color: #000;
  font-weight: 400;
  border: none;
  font-size: 18px;
  line-height: 150%;
  padding: 4px 8px;
  justify-content: space-between;
  box-shadow: none !important;
}

.complaints-section .accordion-button.collapsed {
  background-color: #fff;
  color: #000;
  box-shadow: none !important;
}

.complaints-section .accordion-button:focus {
  box-shadow: none !important;
  outline: none !important;
}

.complaints-section .accordion-body {
  background-color: #fff;
  color: #000;
}

.complaints-section .accordion-item {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #04010626;
  padding: 8px 4px;
}

.complaints-section .accordion-button::after {
  width: 24px;
  height: 24px;
  background-image: url("/static/images/svgs/chevron-pink.5e391183abbb.svg");
  background-repeat: no-repeat;
  background-size: 24px;
  margin-left: 12px;
  transition: transform 0.3s ease;
}
.complaints-section .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg); /* Flip arrow when expanded */
}
.image-container {
  height: 600px;
}
.bg-lilac {
  background-color: #ede6f0; /* soft lilac */
}
.bg-violet {
  background-color: #d91377; /* soft lilac */
}
.bg-purple {
  background-color: #4d1a79; /* soft lilac */
}
.bg-dark-purple {
  background-color: #1e0a30; /* soft lilac */
}

.bg-red-violet {
  background-color: #fbe7f1;
}

.heading-style {
  font-size: 48px;
  font-weight: 400;
  line-height: 120%;
  color: #040106;
}

.heading-style-h4 {
  font-size: 32px;
  font-weight: 400;
  line-height: 130%;
  color: #040106;
}

.img-container {
  width: 100%;
  max-width: 616px;
  height: auto;
  aspect-ratio: 616 / 640; /* keeps correct ratio */
  object-fit: cover; /* crops gracefully if needed */
}

.p-style {
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  color: #040106;
}

.btn-primary-purple {
  background-color: #4d1a79;
  border: 1px solid #4d1a79;
  color: #fff;
  font-weight: 500;
  border-radius: 0;
  border: none;
  padding: 0.5rem 1.25rem;
}

.btn-secondary-outline {
  border: 1px solid #04010626;
  color: #000;
  font-weight: 500;
  border-radius: 0;
  padding: 0.5rem 1.25rem;
  background-color: transparent;
}

.our-policies-title {
  font-size: 56px;
}

.font-size-xxl {
  font-size: 56px;
}

.vertical-padding {
  padding-top: 112px;
  padding-bottom: 112px;
}

/* Accordion item styling */
#servicesAccordion .accordion-item {
  border: none; /* remove Bootstrap border */
  border-radius: 8px; /* rounded corners */
  background-color: #ffffff; /* white background */
  overflow: hidden; /* ensures rounded corners apply to children */
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Header (button) styling */
#servicesAccordion .accordion-button {
  border: none;
  background-color: #ffffff; /* same as item background */
  box-shadow: none; /* remove Bootstrap default shadow when open */
  border-radius: 8px 8px 0 0; /* round top when collapsed */
  font-weight: 500;
  width: 100%;
  justify-content: space-between;
}

/* .accordion-button {
  background-color: #fff;
  color: #000;
  font-weight: 400;
  border: none;
  font-size: 18px;
  line-height: 150%;
  padding: 4px 8px;
  justify-content: space-between;
  box-shadow: none !important;
} */

#servicesAccordion .accordion-button::after {
  width: 24px;
  height: 24px;
  background-image: url("/static/images/svgs/chevron-pink.5e391183abbb.svg");
  background-repeat: no-repeat;
  background-size: 24px;
  margin-left: 12px;
  transition: transform 0.3s ease;
}
#servicesAccordion .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg); /* Flip arrow when expanded */
}

/* When accordion is open, keep background white */
#servicesAccordion .accordion-button:not(.collapsed) {
  background-color: #ffffff;
  color: inherit;
  box-shadow: none;
}

/* Body styling */
#servicesAccordion .accordion-body {
  background-color: #ffffff;
  border-radius: 0 0 8px 8px; /* round bottom edges */
}

/* Apply full black border around every item */
#referralAccordion .accordion-item {
  border: 1px solid #000000; /* ensures all sides have border */
  border-radius: 8px; /* rounded corners */
  background-color: #ffffff;
  overflow: hidden;
  margin-bottom: 10px; /* add spacing so stacked items don't "double-border" */
}

/* Remove the border suppression Bootstrap applies */
#referralAccordion .accordion-item:not(:first-of-type) {
  border-top: 1px solid #000000 !important;
}

/* Header (button) styling */
#referralAccordion .accordion-button {
  border: none;
  background-color: #ffffff;
  box-shadow: none;
  font-weight: 500;
  border-radius: 0; /* prevent button from interfering with rounded corners */
  /* flex-direction: column; */
  display: flex;
  justify-content: space-between;
}

#referralAccordion .accordion-button::after {
  width: 24px;
  height: 24px;
  background-image: url("/static/images/svgs/chevron-pink.5e391183abbb.svg");
  background-repeat: no-repeat;
  background-size: 24px;
  margin-left: 12px;
  transition: transform 0.3s ease;
}
#referralAccordion .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg); /* Flip arrow when expanded */
}

/* Keep background white when open */
#referralAccordion .accordion-button:not(.collapsed) {
  background-color: #ffffff;
  color: inherit;
  box-shadow: none;
}

/* Body styling */
#referralAccordion .accordion-body {
  background-color: #ffffff;
  color: #000;
}

#jobsAccordion .accordion-item {
  border: none; /* remove Bootstrap border */
  border-radius: 8px; /* rounded corners */
  background-color: #ffffff; /* white background */
  overflow: hidden; /* ensures rounded corners apply to children */
}

/* Header (button) styling */
#jobsAccordion .accordion-button {
  border: none;
  background-color: #ffffff; /* same as item background */
  box-shadow: none; /* remove Bootstrap default shadow when open */
  border-radius: 8px 8px 0 0; /* round top when collapsed */
  font-weight: 500;
}

/* When accordion is open, keep background white */
#jobsAccordion .accordion-button:not(.collapsed) {
  background-color: #ffffff;
  color: inherit;
  box-shadow: none;
}

/* Body styling */
#jobsAccordion .accordion-body {
  background-color: #ffffff;
  border-top: 1px solid #eee; /* subtle divider */
  border-radius: 0 0 8px 8px; /* round bottom edges */
}
/* Location line only — do not flatten |richtext job descriptions */
#jobsAccordion .accordion-body > .d-flex p {
  margin-bottom: 0 !important;
}

/* Contact Form */
.contact-form {
  width: 100%;
  max-width: 768px;
  /* border: 1px solid #ccc; */
  /* padding: 24px; */
  /* border-radius: 8px; */
  /* background-color: #fff; */
}

.contact-form .form-row {
  display: flex;
  gap: 16px;
}

.contact-form .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-form .form-section {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.contact-form .radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  gap: 12px 32px; /* row gap and column gap */
}

.contact-form .radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-form .terms {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-form .submit-row {
  text-align: center;
}

.contact-form .submit-btn {
  background-color: #5c267d;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form .submit-btn:hover {
  background-color: #4a1e65;
}

/* =========================================
   Responsive Typography & Layout
   ========================================= */

/* Tablet adjustments (Bootstrap md & sm sizes) */
@media (max-width: 991.98px) {
  .vertical-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .image-container {
    height: auto;
  }
  .our-policies-title {
    font-size: 40px;
  }
  .font-size-xxl {
    font-size: 40px;
  }

  /* Headings */
  h1,
  .heading-style {
    font-size: 36px;
    line-height: 120%;
  }
  .make-a-difference-section h2,
  .essential-services-section h2 {
    font-size: 32px;
    line-height: 120%;
  }

  h2,
  h1.card-title,
  .info-section h2,
  .heading-style-h4 {
    font-size: 28px;
    line-height: 125%;
  }

  .abuse-section h3,
  h3 {
    font-size: 24px;
  }

  /* Paragraphs & text blocks */
  p,
  .p-style,
  .info-section p,
  .abuse-section p,
  .make-a-difference-section p,
  .faq-section p,
  .news-card-info p {
    font-size: 16px;
    line-height: 145%;
  }

  /* Hero section */
  .hero-section {
    padding: 4rem 1rem;
    text-align: center;
  }
  .hero-section h1 {
    font-size: 2.25rem;
  }
  .hero-section p {
    font-size: 1.1rem;
  }
  .hero-buttons {
    justify-content: center;
    margin-bottom: 4rem;
  }

  /* Section paddings */
  .essential-services-section,
  .info-section,
  .make-a-difference-section,
  .faq-section,
  .abuse-section {
    padding: 3rem 1rem;
  }

  /* Abuse heading */
  .abuse-heading {
    padding: 80px 24px;
  }
  .abuse-heading h1 {
    font-size: 36px;
  }

  .abuse-accordion {
    margin: 30px 0;
  }

  .news-card-info {
    width: 100%;
  }
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
  /* Headings */
  h1,
  .heading-style {
    font-size: 28px;
  }
  h2,
  h1.card-title,
  .heading-style-h4 {
    font-size: 22px;
  }
  h3 {
    font-size: 20px;
  }
  .our-policies-title {
    font-size: 32px;
  }
  .font-size-xxl {
    font-size: 32px;
  }

  /* Paragraphs */
  p,
  .p-style,
  .info-section p,
  .abuse-section p,
  .make-a-difference-section p,
  .faq-section p,
  .news-card-info p {
    font-size: 14px;
    line-height: 140%;
  }

  /* Hero section */
  .hero-section {
    padding: 3rem 1rem;
  }
  .hero-section h1 {
    font-size: 1.75rem;
    line-height: 130%;
  }
  .hero-section p {
    font-size: 1rem;
  }

  /* Buttons */
  .btn-primary-purple,
  .btn-secondary-outline,
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline-secondary {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  /* Section paddings */
  .essential-services-section,
  .info-section,
  .make-a-difference-section,
  .faq-section,
  .latest-news-preview,
  .mobile-padding-section,
  .abuse-section {
    padding: 2rem 2rem;
  }

  /* Abuse heading */
  .abuse-heading {
    padding: 60px 16px;
  }
  .abuse-heading h1 {
    font-size: 28px;
  }
  footer a {
    font-size: 13px;
  }
  .terms-section p {
    font-size: 13px;
    text-align: center;
  }
  .vertical-padding {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .contact-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .contact-form .radio-group {
    display: flex;
    flex-direction: column; /* stack vertically */
    gap: 12px; /* vertical spacing */
  }
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
}

/* Footer styling inherits the body font */

/* =========================================
   Text Size Utility Classes
   ========================================= */

/* Text Size 18px */
.text-18 {
  font-size: 18px;
  line-height: 150%;
  font-weight: 400;
  color: #040106;
}

/* Text Size 16px */
.text-16 {
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
  color: #040106;
}

/* Text Size 20px */
.text-20 {
  font-size: 20px;
  line-height: 140%;
  font-weight: 400;
  color: #040106;
}

/* Text Size 24px */
.text-24 {
  font-size: 24px;
  line-height: 140%;
  font-weight: 400;
  color: #040106;
}
.text-40 {
  font-size: 40px;
  line-height: 120%;
  font-weight: 400;
  color: #040106;
}

/* =========================================
   Responsive Text Size Adjustments
   ========================================= */

/* Tablet adjustments (Bootstrap md & sm sizes) */
@media (max-width: 991.98px) {
  .text-24 {
    font-size: 20px;
    line-height: 140%;
  }

  .text-40 {
    font-size: 32px;
    line-height: 120%;
    font-weight: 400;
    color: #040106;
  }

  .text-20 {
    font-size: 18px;
    line-height: 140%;
  }

  .text-18 {
    font-size: 16px;
    line-height: 150%;
  }

  .text-16 {
    font-size: 15px;
    line-height: 150%;
  }
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
  .text-24 {
    font-size: 18px;
    line-height: 140%;
  }

  .text-40 {
    font-size: 28%px;
    line-height: 120%;
    font-weight: 400;
    color: #040106;
  }

  .text-20 {
    font-size: 16px;
    line-height: 140%;
  }

  .text-18 {
    font-size: 15px;
    line-height: 150%;
  }

  .text-16 {
    font-size: 14px;
    line-height: 150%;
  }
}

/* Latest News article + index */
.news-page-section {
  overflow-x: clip;
  width: 100%;
}

.news-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d1a79;
}

.news-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 14px;
  color: #666;
}

.news-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: #999;
}

.news-breadcrumb a {
  color: #4d1a79;
  text-decoration: none;
}

.news-breadcrumb a:hover,
.news-breadcrumb a:focus {
  text-decoration: underline;
}

.news-article {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-index {
  width: 100%;
  max-width: 100%;
}

.news-feature-wrap {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.news-feature-image,
.news-card-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.news-feature-image {
  border-radius: 12px;
}

.news-article .rich-text img,
.news-article .rich-text iframe,
.news-article .rich-text video,
.news-article .rich-text table {
  max-width: 100%;
  height: auto;
}

.news-article .rich-text table {
  display: block;
  overflow-x: auto;
}

.news-card-title {
  font-weight: 600;
  line-height: 1.3;
}

.news-more {
  max-width: 100%;
}

body.news-article-page,
body.news-index-page {
  overflow-x: clip;
}

.hero-buttons {
  margin-bottom: 0;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-outline-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #4d1a79;
  outline-offset: 2px;
}

.skip-link:focus {
  position: absolute;
  z-index: 2000;
  top: calc(var(--safety-banner-height) + 8px);
  left: 8px;
  background: #fff;
  color: #040106;
  padding: 8px 12px;
}

@media (min-width: 992px) {
  .hero-section > .container {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .hero-section .col-md-7,
  .hero-section .hero-image {
    flex: 1 1 50%;
    max-width: 50%;
  }

  .hero-section h1 {
    font-size: clamp(2rem, 3.2vw + 1rem, 3.25rem);
  }

  .hero-section .hero-image {
    margin-top: 0;
  }

  .hero-section .hero-image img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .hero-section .hero-image img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
  }
}

:root {
  --safety-banner-height: 76px;
  --swa-purple: #4d1a79;
  --swa-purple-deep: #5c267d;
  --swa-lilac: #ede6f0;
  --swa-pink: #fbe7f1;
  --swa-exit: #d91377;
  --swa-ink: #040106;
  --swa-aubergine: #1e0a30;
  --color-purple: var(--swa-purple);
  --color-lilac: var(--swa-lilac);
  --color-pink-100: var(--swa-pink);
  --color-pink-600: var(--swa-exit);
  --color-text: var(--swa-ink);
  --color-muted: #5c5348;
  --color-white: #fff;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 12px rgb(0 0 0 / 0.06);
  --font-sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --text-h1: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  --text-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
  --text-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --text-h4: 1.125rem;
  --text-body: 1.0625rem;
  --text-small: 0.875rem;
  --text-ui: 1rem;
  --bs-body-font-family: var(--font-sans);
  --bs-body-font-size: var(--text-body);
  --bs-body-line-height: 1.6;
}

body,
button,
input,
textarea,
select,
.btn,
.nav-link,
.form-control {
  font-family: var(--font-sans);
}

body {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
}

p,
.p-style,
.rich-text {
  max-width: 70ch;
  text-align: left;
}

.rich-text a {
  color: var(--swa-purple);
  text-decoration: underline;
}

.faq-section .rich-text a,
.bg-dark-purple .rich-text a,
.section--dark .rich-text a {
  color: #fff;
}

html {
  scroll-padding-top: var(--safety-banner-height);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.terms-section a,
footer .nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

h1,
.heading-style {
  font-size: var(--text-h1);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.2;
}

h3,
.heading-style-h4,
.text-24 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.4;
}

small,
.text-muted,
.news-card-date {
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.5;
}

.btn,
.nav-link,
.exit-button {
  font-size: var(--text-ui);
  font-weight: 600;
  line-height: 1.2;
}

.vertical-padding,
.essential-services-section,
.info-section,
.make-a-difference-section,
.faq-section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: 1.5rem;
  background: #fff;
  color: var(--swa-ink);
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.service-card:hover,
.service-card:focus-visible {
  color: inherit;
  text-decoration: none;
}

.service-card .bi,
.service-card-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.service-card h3,
.get-involved-card h3 {
  margin: 0;
}

.essential-services-section {
  background: var(--swa-lilac);
}

.hero-section {
  background-color: var(--swa-lilac);
}

.bg-violet {
  background-color: var(--swa-exit) !important;
}

.btn-outline-dark {
  border-color: var(--swa-ink);
  color: var(--swa-ink);
}

.btn.btn-primary-purple {
  color: #fff;
}

main {
  overflow-wrap: anywhere;
}

.faq-section .accordion-button:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 2px;
}

.abuse-section .accordion-button:focus-visible,
.complaints-section .accordion-button:focus-visible {
  outline: 3px solid #4d1a79 !important;
  outline-offset: 2px;
}

.get-involved-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-4);
  height: 100%;
  box-shadow: var(--shadow-sm);
}

section.section {
  padding-block: clamp(var(--space-7), 8vw, var(--space-8));
}

.section--white { background: var(--color-white); }
.section--lilac { background: var(--color-lilac); }
.section--pink { background: var(--color-pink-100); }
.section--dark { background: var(--swa-aubergine); color: var(--color-white); }

.hero-section {
  padding-block: var(--space-6) var(--space-7);
}

.section-header {
  margin-bottom: var(--space-5);
  text-align: left;
}

.section-header > :last-child,
.card-swa > :last-child {
  margin-bottom: 0;
}

.h1 { font-size: var(--text-h1); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.h2 { font-size: var(--text-h2); font-weight: 500; line-height: 1.2; }
.h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.3; }
.h4 { font-size: var(--text-h4); font-weight: 600; line-height: 1.4; }

.hero-section h1,
.section-header,
.card-swa,
.card-swa h2,
.card-swa h3 {
  text-align: left;
}

.hero-section .rich-text,
.section-header .rich-text {
  max-width: 40ch;
}

.card-swa {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: var(--space-4);
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

@media (min-width: 768px) {
  .card-swa { padding: var(--space-5); }
}

.news-card.card-swa { padding: 0; }
.news-card .news-card-image { width: 100%; display: block; object-fit: cover; }

.card-swa__title { margin-bottom: var(--space-3); }
.card-swa__link { margin-top: auto; }

.icon-circle {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-pink-100);
  color: var(--color-pink-600);
}

.icon-circle .bi { font-size: 28px; line-height: 1; }

.link-arrow {
  color: var(--color-purple);
  font-weight: 600;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.btn-swa,
.btn-swa-outline {
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border-width: 2px;
  border-style: solid;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-swa {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: var(--color-white);
}

.btn-swa-outline {
  background: transparent;
  border-color: var(--color-purple);
  color: var(--color-purple);
}

.section--dark .btn-swa-outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--swa-purple-deep);
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-2);
  color: #7a1230;
}

/* ------------------------------------------------------------------
   Layout consistency fixes (see docs/DESIGN_GUIDELINES.md §2–3)
   ------------------------------------------------------------------ */

/* Sections never add side padding: the .container provides the gutters.
   Older section rules (.info-section 8rem, .faq-section 1rem, etc.) pushed
   content off the shared left edge. */
section.section,
.hero-section {
  padding-inline: 0;
}

/* Two sections with the same background read as one block, so don't double
   the gap between them (96px + 96px = 192px of empty space). */
.section--white + .section--white,
.section--lilac + .section--lilac,
.section--pink + .section--pink,
.section--dark + .section--dark {
  padding-top: 0;
}

/* Safety panel: first thing on Contact */
.safety-panel {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);

}

@media (min-width: 768px) {
  .safety-panel {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-5);
  }
}

.safety-panel__item > :last-child { margin-bottom: 0; }

.safety-panel__label {
  font-size: var(--text-h4);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.safety-panel__note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--color-text);
}

/* Contact method cards: same pattern as every other card */
.contact-methods .card-swa a:not(.btn-swa):not(.btn-swa-outline) {
  color: var(--color-purple);
  text-decoration: underline;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Left-aligned form header on Get Involved */
.form-block {
  max-width: 768px;
}

/* Mobile gutters: 16px each side (guidelines §10). Sections no longer add
   side padding, so the container provides the whole gutter. */
@media (max-width: 575.98px) {
  .container {
    --bs-gutter-x: 2rem;
  }
}

/* Heading sizes: H1 caps at 44px (was 52px). Anything marked up as an H2
   uses the H2 size, even if it still carries the old .heading-style class. */
h2.heading-style,
h2.font-size-xxl {
  font-size: var(--text-h2);
  line-height: 1.2;
}
h1.font-size-xxl {
  font-size: var(--text-h1);
}

/* One H1 size on every page (older page-specific rules set 48–56px). */
main h1:not(.text-24) {
  font-size: var(--text-h1);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Language picker (top bar on desktop, inside the mobile menu) */
.lang-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.lang-select-label {
  display: inline-flex;
  color: var(--color-purple);
  font-size: 1.25rem;
  cursor: pointer;
}
.lang-select {
  min-height: 44px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--swa-purple-deep, var(--color-purple));
  border-radius: var(--radius-sm);
  background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234d1a79' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  color: var(--color-text);
  font: inherit;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  max-width: 12rem;
}
.offcanvas-body .lang-select-wrap,
.offcanvas-body .lang-select {
  width: 100%;
  max-width: none;
}

/* Accordions (FAQs, complaints, types of abuse, job openings)
   The shared 70ch text limit was being applied to the accordion body box
   itself, so its background stopped part-way across and Bootstrap's white
   item background showed through. Limit the text, not the box. */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-bg: transparent;
}
.accordion-body.rich-text,
.accordion-body {
  max-width: none;
}
.accordion-body > * {
  max-width: 70ch;
}
.accordion-body > :last-child {
  margin-bottom: 0;
}
.accordion-collapse,
.accordion-item {
  background: transparent;
}

/* ------------------------------------------------------------------
   One accordion design everywhere (FAQs, complaints, services, types of
   abuse, referral, job openings). Overrides the older per-page styles
   (pink badge chevrons, square corners, mixed weights).
   ------------------------------------------------------------------ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3) !important;
  --swa-acc-border: #c9bdd4;
  --swa-acc-text: var(--color-text);
  --swa-acc-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' fill='none' stroke='%234d1a79' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.section--dark .accordion {
  --swa-acc-border: rgba(255, 255, 255, 0.55);
  --swa-acc-text: #ffffff;
  --swa-acc-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.accordion .accordion-item {
  border: 1px solid var(--swa-acc-border) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  margin: 0 !important;
  background: transparent !important;
}
.accordion .accordion-header {
  margin: 0;
  font-size: inherit;
}
.accordion .accordion-button {
  min-height: 56px;
  padding: var(--space-3) var(--space-4) !important;
  background: transparent !important;
  color: var(--swa-acc-text) !important;
  font-family: inherit;
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  line-height: 1.4;
  text-align: left;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.accordion .accordion-button::after {
  width: 20px !important;
  height: 20px !important;
  margin-left: var(--space-3) !important;
  background-image: var(--swa-acc-chevron) !important;
  background-size: 20px !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  filter: none !important;
  transition: transform 0.2s ease;
}
.accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}
.accordion .accordion-body {
  padding: 0 var(--space-4) var(--space-4) !important;
  color: var(--swa-acc-text);
  background: transparent !important;
}
.faq-section .accordion + * {
  margin-top: var(--space-6);
  padding-top: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
  .accordion .accordion-button::after { transition: none; }
}

/* ------------------------------------------------------------------
   Heading normalisation. Older page rules (e.g. ".info-section h2",
   ".text-40") set thin 400 weights and one-off sizes. The :not(#_) adds
   ID-level specificity so these shared rules always win, without !important.
   ------------------------------------------------------------------ */
main h2:not(#_):not(.h3):not(.h4):not(.accordion-header),
main .h2:not(#_) {
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
}
main h3:not(#_):not(.accordion-header):not(.h4),
main .h3:not(#_) {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
}
main h4:not(#_),
main .h4:not(#_) {
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.4;
}
main .accordion-header:not(#_) {
  font-size: inherit;
  font-weight: 600;
}
/* Body copy in content areas: one size */
main .rich-text:not(#_) p,
main .rich-text:not(#_) li,
main .p-style:not(#_) {
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------------
   GOV.UK-style two-thirds reading column.
   Text blocks (section headers, intros, standalone copy) sit in a column
   two-thirds of the container wide on desktop, so every block shares the
   same right edge. Cards, grids, images and accordions stay full width.
   Text inside cards/accordions/columns fills its container.
   ------------------------------------------------------------------ */
main p,
main .p-style,
main .rich-text {
  max-width: none;
}
@media (min-width: 992px) {
  main .section-header,
  main .container > p,
  main .container > .rich-text,
  main .container > .p-style,
  main .container > .d-flex > .rich-text,
  main .container > .d-flex > .p-style,
  main .container > .d-flex > h2,
  .two-thirds {
    max-width: 66.666%;
  }
  /* Accordion answers: keep lines readable inside full-width accordions */
  main .accordion-body > * {
    max-width: 66.666%;
  }
}

/* Header buttons (Exit site, Donate): same corner radius and weight as every other button */
.btn-header {
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tinted card: for cards sitting on a white section, so they separate clearly */
.card-swa--tint {
  background: var(--color-lilac);
  box-shadow: none;
}
.card-swa--tint .icon-circle {
  background: var(--color-white);
}

/* Breathing room inside section headers and cards */
.section-header h2,
.section-header .h2 {
  margin-bottom: var(--space-3);
}
.card-swa .rich-text {
  margin-bottom: var(--space-4);
}
.card-swa .rich-text > :last-child {
  margin-bottom: 0;
}

/* Section intros fill the two-thirds column (the old 40ch cap made them half-width) */
main .section-header .rich-text,
main .section-header p,
main .section-header .info-section-description {
  max-width: none;
}

/* Text on dark sections is always white (older rules forced some headings black) */
.section--dark :is(h1, h2, h3, h4, p, li, .rich-text, .p-style, .h1, .h2, .h3):not(#_) {
  color: #ffffff;
}
.section--dark .card-swa :is(h1, h2, h3, h4, p, li, .rich-text, .p-style):not(#_) {
  color: var(--color-text);
}

/* Page header: the first section on inner pages. Less padding than a content
   section so a short heading doesn't sit in a big empty block. */
.page-header.section {
  padding-block: var(--space-6) var(--space-6);
}

/* "Still have questions?" style call-to-action under an accordion */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.cta-block h3 { margin-bottom: var(--space-2); }
.cta-block p { margin-bottom: 0; }

/* Small label above a card title: who the service is for */
.card-swa__eyebrow {
  margin-bottom: var(--space-1);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--swa-purple-deep, var(--color-purple));
}

/* Images beside text: fixed shape so they never dwarf the copy */
.media-frame {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.media-frame--landscape { aspect-ratio: 4 / 3; max-height: 380px; }
.media-frame--portrait  { aspect-ratio: 4 / 5; max-height: 460px; }

/* Values list on Who we are: even spacing between principles */
.values-list p,
.values-list li {
  margin-bottom: var(--space-2);
}

/* Annual report feature card */
.report-card {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-4);
}
.report-card .icon-circle { flex-shrink: 0; margin-bottom: 0; }
.report-card__body { flex: 1; }
@media (max-width: 575.98px) {
  .report-card { flex-direction: column; }
}

/* News cards: no stray gaps (an old rule gave titles an 80px bottom margin) */
main .news-card-title:not(#_) {
  margin-bottom: var(--space-2);
}
.news-card-intro {
  color: var(--color-text);
}


/* Desktop nav items never wrap onto two lines */
.custom-navbar .nav-link {
  white-space: nowrap;
}


/* ==================================================================
   SPACING SYSTEM — the single source of truth (see DESIGN_GUIDELINES §1–2)
   Everything below overrides older page-specific margins and paddings.
   Only these values are used:
     8   between a heading and small meta / inside components
     16  after a paragraph or H2
     24  after the page H1, between cards (grid gutter)
     32  between text and its buttons
     48  between a section heading block and its content
     64–96 between sections (one value, top and bottom)
   ================================================================== */
:root {
  --section-space: clamp(4rem, 8vw, 6rem); /* 64px → 96px */
}

/* 1. Sections: one gap, top and bottom, everywhere */
main section.section:not(#_),
main .hero-section:not(#_) {
  padding-block: var(--section-space);
}
main .hero-section:not(#_),
main .page-header.section:not(#_) {
  padding-top: var(--space-6); /* 48px under the site header */
}
main .page-header.section:not(#_) {
  padding-bottom: var(--space-6);
}
/* Same background twice in a row reads as one block: don't double the gap */
main .section--white + .section--white:not(#_),
main .section--lilac + .section--lilac:not(#_),
main .section--pink + .section--pink:not(#_),
main .section--dark + .section--dark:not(#_),
main .hero-section.section--lilac + .section--lilac:not(#_) {
  padding-top: 0;
}

/* 2. Vertical rhythm inside content */
main :is(h1, h2, h3, h4, h5, h6):not(#_) { margin-top: 0; }
main :is(h1, .h1):not(#_) { margin-bottom: var(--space-4); }
main :is(h2, .h2):not(#_):not(.accordion-header) { margin-bottom: var(--space-3); }
main :is(h3, .h3):not(#_):not(.accordion-header) { margin-bottom: var(--space-2); }
main p:not(#_) { margin-top: 0; margin-bottom: var(--space-3); }
main :is(p, .rich-text > *):last-child:not(#_) { margin-bottom: 0; }

/* 3. Text → actions */
main .btn-row:not(#_) { margin-top: var(--space-5); }

/* 4. Section heading block → content */
main .section-header:not(#_) { margin-bottom: var(--space-6); }
main .section-header.mb-0:not(#_),
main .page-header .section-header:not(#_) { margin-bottom: 0; }
main .section-header--split:not(#_) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  max-width: none;
}
main .section-header--split > div { max-width: 40rem; }

/* 5. Cards */
main .card-swa .icon-circle:not(#_) { margin-bottom: var(--space-3); }
main .card-swa .card-swa__title:not(#_) { margin-bottom: var(--space-2); }
main .card-swa__link:not(#_) { margin-top: auto; padding-top: var(--space-4); }
main .card-swa > .rich-text:not(#_) { margin-bottom: 0; }

/* 6. Header: room around the logo, lighter logo */
.custom-navbar:not(#_) { padding-block: var(--space-3); }
.custom-navbar .navbar-brand img:not(#_) { width: 128px; }

/* 7. News: a single story shows as one wide card, not a lonely small one */
.news-card--feature .news-card > div:not(#_) {
  display: grid !important;
  grid-template-columns: 1fr auto;
  grid-template-areas: "date link" "title link" "intro link";
  column-gap: var(--space-5);
  align-items: center;
}
.news-card--feature .news-card-date { grid-area: date; }
.news-card--feature .news-card-title { grid-area: title; }
.news-card--feature .news-card-intro { grid-area: intro; margin-bottom: 0 !important; }
.news-card--feature .card-swa__link:not(#_) { grid-area: link; padding-top: 0; margin: 0; }
@media (max-width: 767.98px) {
  .news-card--feature .news-card > div:not(#_) {
    grid-template-columns: 1fr;
    grid-template-areas: "date" "title" "intro" "link";
  }
  .news-card--feature .card-swa__link:not(#_) { padding-top: var(--space-4); }
}

/* Compact section: for short content (e.g. latest news) so it isn't
   surrounded by more space than content. 48px → 64px. */
main section.section.section--compact:not(#_) {
  padding-block: clamp(var(--space-6), 5vw, var(--space-7));
}

/* ------------------------------------------------------------------
   Latest news strip (homepage): a slim ticker-style band
   ------------------------------------------------------------------ */
main section.section.section--strip:not(#_) {
  padding-block: var(--space-5); /* 32px */
}
.news-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--color-lilac);
  border-radius: var(--radius);
}
main h2.news-strip__label:not(#_):not(#__) {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0.5rem 0.875rem;
  background: var(--color-purple);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.news-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.news-strip__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-block: var(--space-2);
  min-width: 0;
}
.news-strip__item + .news-strip__item {
  border-top: 1px solid rgba(77, 26, 121, 0.15);
}
.news-strip__date {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--color-text);
  opacity: 0.8;
  white-space: nowrap;
}
.news-strip__link {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.news-strip__link:hover { color: var(--color-purple); }
.news-strip__intro { font-weight: 400; }
.news-strip__all { white-space: nowrap; }
@media (max-width: 767.98px) {
  .news-strip { grid-template-columns: 1fr; padding: var(--space-4); }
  .news-strip__label { justify-self: start; }
  .news-strip__item { flex-direction: column; gap: var(--space-1); }
  .news-strip__link { white-space: normal; }
}

/* ------------------------------------------------------------------
   Get involved page
   ------------------------------------------------------------------ */
/* Image stays beside long text on desktop */
@media (min-width: 992px) {
  .sticky-media {
    position: sticky;
    top: calc(var(--safety-banner-height, 64px) + var(--space-4));
  }
}
/* Sub-headings inside long rich text (e.g. volunteer roles) */
main .rich-text h3:not(#_),
main .rich-text h4:not(#_) {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
main .rich-text > :first-child:not(#_) { margin-top: 0; }
main .rich-text ul:not(#_),
main .rich-text ol:not(#_) {
  margin: 0 0 var(--space-3);
  padding-left: 1.25rem;
}

/* Jobs */
.job-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3) !important;
}

/* Form in a card */
.form-card { padding: var(--space-5); }
@media (min-width: 768px) { .form-card { padding: var(--space-6); } }
main .form-card .contact-form:not(#_) {
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}
.form-card .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .form-card .form-row { grid-template-columns: 1fr 1fr; }
}
.form-card .form-group,
.form-card .form-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
}
.form-card label,
.form-card .form-legend {
  font-weight: 600;
  font-size: 1rem;
}
.form-card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-card .form-legend { margin-bottom: var(--space-2); float: none; width: auto; }
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  background: #fff;
}
.form-card textarea { min-height: 160px; }
.form-card .radio-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2) var(--space-4);
}
@media (min-width: 576px) {
  .form-card .radio-group { grid-template-columns: 1fr 1fr; }
}
.form-card .radio-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-weight: 400;
}
.form-card .radio-option input,
.form-card .terms input { width: 20px; height: 20px; min-height: 0; accent-color: var(--color-purple); }
.form-card .terms {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.form-card .terms label { font-weight: 400; }
.form-card .submit-row { margin-top: var(--space-2); }
/* A sticky card must be its own height, not the column's */
main .sticky-media.card-swa:not(#_) { height: auto; }
main .sticky-media.card-swa a:not(.btn-swa):not(#_) { color: var(--color-purple); font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }

/* Volunteers: an opening paragraph entered as a heading in the CMS reads as an
   intro, not a shouty bold block. Role headings further down stay as headings. */
main .volunteer-text > h2:first-child:not(#_),
main .volunteer-text > h3:first-child:not(#_) {
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: var(--space-3);
}

/* Centred form block (Get involved): heading and intro centred above a centred form card */
.form-centre {
  max-width: 760px;
  margin-inline: auto;
}
main .form-centre__intro:not(#_) {
  text-align: center;
  margin-bottom: var(--space-6);
}
main .form-centre__intro p:not(#_) { margin-inline: auto; max-width: 36rem; }
.form-centre__intro a { color: var(--color-purple); font-weight: 600; }

/* Volunteer role cards */
.role-card__when {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--swa-purple-deep, var(--color-purple));
}
.role-card__more {
  margin-top: var(--space-3);
  border-top: 1px solid rgba(77, 26, 121, 0.15);
  padding-top: var(--space-3);
}
.role-card__more summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-purple);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.role-card__more[open] summary { margin-bottom: var(--space-2); }
main .lead-para:not(#_) {
  font-size: 1.1875rem;
  line-height: 1.55;
}

/* Role cards size to their own content, so opening one doesn't stretch its neighbour */
main .role-card.card-swa:not(#_) { height: auto; }

/* Nav: breathing room under the safety bar, clear current-page marker */
.custom-navbar:not(#_) { padding-top: var(--space-4); padding-bottom: var(--space-3); }
.custom-navbar .nav-link.active,
.custom-navbar .nav-link[aria-current="page"] {
  color: var(--color-purple) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Staff-only tools on the public site (only rendered for logged-in CMS users) */
.staff-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 2px dashed var(--color-purple);
  border-radius: var(--radius);
  background: #fff;
}
.staff-actions__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-purple);
}
.staff-actions .btn-swa,
.staff-actions .btn-swa-outline { min-height: 44px; padding: 0.5rem 1rem; gap: var(--space-2); }

/* News cards: every card has the same image area (photo or branded placeholder) */
.news-card .news-card-image,
.news-card .news-card-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 5;
  object-fit: cover;
}
.news-card-placeholder {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--color-lilac);
}
.news-card-placeholder img {
  width: 34%;
  max-width: 140px;
  height: auto;
  opacity: 0.55;
}

/* ------------------------------------------------------------------
   Site footer
   ------------------------------------------------------------------ */
.site-footer {
  background: #f7f5f9;
  border-top: 1px solid rgba(77, 26, 121, 0.12);
  padding-block: var(--space-6) var(--space-5);
  font-size: 0.9375rem;
  text-align: left;
}
.site-footer a { color: var(--color-text); }
.site-footer__top { padding-bottom: var(--space-5); }
.site-footer__logo { display: inline-block; }
.site-footer__nav,
.site-footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}
.site-footer__nav a {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__icons {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .site-footer__nav { justify-content: center; }
  .site-footer__icons { justify-content: flex-end; }
}
.site-footer__safety {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-4);
  border-top: 1px solid rgba(77, 26, 121, 0.12);
}
.site-footer__safety a { font-weight: 600; text-decoration: underline; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(77, 26, 121, 0.12);
  font-size: 0.875rem;
}
.site-footer__legal a {
  text-decoration: underline;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
}
.site-footer__staff,
.site-footer__legal .dropdown-toggle { color: #5c636a !important; }

/* News story image */
.news-story-image { aspect-ratio: 16 / 9; }
main .news-breadcrumb ol:not(#_) { justify-content: flex-start; }

/* Staff edit/delete links on news cards (logged-in CMS users only).
   Sit above the card's stretched "Read more" link so they're clickable. */
.news-card__staff {
  position: relative;
  z-index: 2;
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-top: 2px dashed rgba(77, 26, 121, 0.35);
  font-size: 0.875rem;
  background: #fff;
}
.news-card__staff-label { font-weight: 600; color: var(--color-purple); }
.news-card__staff a { font-weight: 600; color: var(--color-purple); text-decoration: underline; min-height: 32px; display: inline-flex; align-items: center; }
.staff-actions__danger,
.news-card__staff a.staff-actions__danger { color: #a4133c !important; border-color: #a4133c !important; }

/* ------------------------------------------------------------------
   Front-end news editor (staff only)
   ------------------------------------------------------------------ */
.site-message {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: #e6f4ea;
  color: #1e4620;
  font-weight: 600;
}
.form-hint { margin: 0 0 var(--space-1) !important; font-size: 0.9375rem; opacity: 0.8; }
.news-editor__date input { max-width: 14rem; }
.news-editor__current-photo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.news-editor__current-photo img { border-radius: var(--radius-sm); object-fit: cover; }
.news-editor__remove { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 400 !important; }
.news-editor input[type="date"],
.news-editor input[type="file"] { font: inherit; }
.news-editor input[type="date"] {
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--swa-purple-deep, var(--color-purple));
  border-radius: var(--radius-sm);
}
.news-editor textarea { min-height: 0 !important; }
trix-toolbar .trix-button-row { flex-wrap: wrap; }
trix-editor.news-editor__trix {
  min-height: 280px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--swa-purple-deep, var(--color-purple));
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1.0625rem;
  line-height: 1.6;
}
trix-editor.news-editor__trix:focus { outline: 3px solid var(--color-purple); outline-offset: 2px; }
.btn-danger-swa { background: #a4133c !important; border-color: #a4133c !important; }

/* Page headers: keep the photo modest so short intros don't float in space */
main .page-header .media-frame--landscape:not(#_) { max-height: 300px; }

/* "On this page" jump links (GOV.UK-style contents list) */
.on-this-page { margin-top: var(--space-5); }
main .on-this-page__label:not(#_) {
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--swa-purple-deep, var(--color-purple));
}
.on-this-page ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}
.on-this-page a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--color-purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.on-this-page a::before {
  content: "—";
  margin-right: var(--space-2);
  color: var(--color-purple);
  text-decoration: none;
  display: inline-block;
}
section[id] { scroll-margin-top: calc(var(--safety-banner-height, 64px) + var(--space-3)); }

/* Our values grid (Who we are) */
main .values-heading:not(#_) { margin-top: var(--space-6); margin-bottom: var(--space-4); }
.values-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.values-grid__item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border: 1px solid rgba(77, 26, 121, 0.15);
  border-radius: var(--radius);
  background: #fff;
}
.values-grid__item > .bi { color: var(--color-pink-600); font-size: 1rem; margin-top: 0.25rem; }
main .values-grid__name:not(#_) { margin: 0 0 var(--space-1); font-weight: 600; }
main .values-grid__text:not(#_) { margin: 0; font-size: 0.9375rem; }

/* Buttons are as wide as their text unless deliberately full width */
main :is(a, button).btn-swa:not(.w-100),
main :is(a, button).btn-swa-outline:not(.w-100) {
  width: auto;
  align-self: flex-start;
  max-width: 100%;
}

/* Job cards: the role title is the heading */
main .job-card__title:not(#_) {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-3);
}
.job-card__meta {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.job-card__meta li { display: flex; gap: var(--space-2); align-items: baseline; }
.job-card__meta .bi { color: var(--color-purple); }
/* Job meta lines: left-aligned (an older rule centred them) */
main ul.job-card__meta:not(#_) { align-items: flex-start; }
/* Job cards: slightly larger top line (currently holds the job title) */
main .job-card .card-swa__eyebrow:not(#_) { font-size: 1.0625rem; }

/* "On this page": GOV.UK-style contents list (vertical, regular weight,
   dash outside the link so it isn't underlined) */
main .on-this-page__label:not(#_) {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
main .on-this-page ul:not(#_) {
  flex-direction: column;
  gap: var(--space-1);
}
main .on-this-page li:not(#_) {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
main .on-this-page li::before {
  content: "—";
  color: var(--color-text);
  opacity: 0.6;
}
main .on-this-page a:not(#_) {
  font-weight: 400;
  min-height: 0;
  padding-block: 2px;
}
main .on-this-page a::before { content: none !important; }

/* Phones: row gutters can't be wider than the container's 16px side padding,
   otherwise the page scrolls sideways by a few pixels. */
@media (max-width: 575.98px) {
  main .row.g-5,
  main .row.gx-5 { --bs-gutter-x: 2rem; }
}
/* Homepage news: compact spacing, no leftover margins from older rules */
main .latest-news-preview:not(#_) { margin: 0; }
main .latest-news-preview .section-header:not(#_) { margin-bottom: var(--space-5); }
.site-footer__social { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
