/*
Title: Be the One styles for Jadu Galaxies Re-usable Theme
Description: Styles override default theme styles to apply brand colours and fonts
Version: 1.2
Created by: John Kelly
Date created: 15/04/2025
Last updated: 12/09/2025 16:50
*/

/* UPDATED: Ensured Montserrat weight 600 is imported */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600&display=swap');
*:focus {
  /* Using Turquoise for focus outline - better brand alignment */
  outline: 3px solid #2bb3bc;
  /* Increased thickness for better visibility */
  outline-offset: 1px;
}
#wrapper .toggle:focus {
  /* Consistent focus style */
  outline: 3px solid #2bb3bc;
  outline-offset: 1px;
}
/* Base font settings */

html {
  font-size: 16px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}
body {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  /* Default text color to the dark neutral for better consistency */
  color: #231f20;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  hyphens: none !important;
  letter-spacing: 0;
  /* Standard background is white */
  background-color: #ffffff !important;
}
/* Typography for standard elements */

h1, h2, h3, h4, h5, h6, p, li {
  margin: 0 0 1rem;
}
/* Mobile-first typography */

h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.125rem;
}
h5 {
  font-size: 1rem;
}
h6 {
  font-size: 0.875rem;
}
p, li {
  font-size: 1rem;
}
/* Larger breakpoint (640px) */

@media (min-width: 640px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.25rem;
  }
  h5 {
    font-size: 1.125rem;
  }
  h6 {
    font-size: 1rem;
  }
}
/* Typography for GOV.UK-specific classes */

.govuk-heading-xl {
  font-size: 2.25rem;
  font-weight: bold;
}
.govuk-heading-l {
  font-size: 1.5rem;
  font-weight: bold;
}
.govuk-heading-m {
  font-size: 1.25rem;
  font-weight: bold;
}
.govuk-heading-s {
  font-size: 1rem;
  font-weight: bold;
}
.govuk-body {
  font-size: 1rem;
  line-height: 1.5;
}
.govuk-body-l {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 300;
}
.govuk-body-s {
  font-size: 0.875rem;
  line-height: 1.4;
}
.govuk-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style-type: disc;
}
@media (min-width: 640px) {
  .govuk-heading-xl {
    font-size: 3rem;
  }
  .govuk-heading-l {
    font-size: 2rem;
  }
  .govuk-heading-m {
    font-size: 1.5rem;
  }
  .govuk-heading-s {
    font-size: 1.25rem;
  }
}
/* List bullets use consistent dark neutral */

.editor ul:not([class]):not([type]) li::before, .editor ul:not([class]):not([type]) .list__item::before, .list--unordered li::before, .list--unordered .list__item::before {
  background-color: #231f20;
  border: 1px solid #231f20;
  border-radius: 50%;
  content: "";
  display: block;
  height: 0.375rem;
  left: 0.75rem;
  width: 0.375rem;
}
/* Headings use brand Dark Blue and Montserrat Semi-Bold weight */

h1, .h1, .site-header .identity__heading, h2, .form__heading, .directory-records .widget__heading, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  color: #0a233f;
  /* Brand Dark Blue */
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  /* REVERTED: Changed back from 100 (Thin) to 600 for better readability */
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  letter-spacing: -0.025em;
}
/* Base link styles for standard hyperlinks */

a {
  font-weight: 400;
  text-decoration: underline;
  /* Using dark neutral for default links on light background */
  color: #231f20 !important;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
a:hover {
  color: #0a233f !important;
  /* Hover with brand blue */
  text-decoration-thickness: max(3px, .1875rem, .12em);
}
a:visited {
  /* Consistent dark neutral for visited */
  color: #231f20 !important;
}
a:focus {
  /* Use standard focus style */
  outline: 3px solid #2bb3bc;
  outline-offset: 1px;
  /* Add background/color change for visibility */
  background-color: #d6dd32;
  /* Lime Green background on focus */
  color: #0a233f !important;
  /* Use Dark Blue text on focus for contrast */
  box-shadow: none;
  text-decoration: none;
}
hr {
  /* Consistent dark neutral */
  background-color: #231f20;
  border: 0;
  height: 1px;
  margin: 1.5rem 0;
}
.data-table th, .data-table td.th, .page-content table:not([class]) th, .page-content table:not([class]) td.th {
  /* Use brand Dark Blue for table headers */
  background-color: #0a233f;
  /* Use dark neutral for border */
  border: 1px solid #231f20;
  border-bottom: 0;
  color: #ffffff;
  /* White text for contrast */
  font-weight: 700;
  padding: 0.75rem;
  text-align: left;
}
.site-main {
  margin: 0;
  z-index: 995;
}
/* Footer links - Ensure contrast */

.site-footer__text a, .site-footer__text a:visited {
  /* Underline uses white on the dark footer */
  background-image: linear-gradient(to top, #ffffff 0, #ffffff 1px, transparent 1px, transparent 100%);
  background-position: 0 -2px;
  background-repeat: no-repeat;
  background-size: 0 100%;
  color: #ffffff !important;
  /* White text on dark footer */
  text-decoration: none;
  text-shadow: none;
  font-weight: 700;
}
.site-footer__text a:hover, .site-footer__text a:focus {
  background-size: 100% 100%;
  /* Show underline */
  color: #ffffff !important;
  outline: none;
}
/* --- Button Styles --- */

a.button, button.button {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border-width: 2px;
  border-style: solid;
  border-radius: 0;
  transition: all 0.2s ease-in-out;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: inline-block;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
/* Default Button Style (Dark Blue) */

a.button, button.button {
  background-color: #0a233f;
  color: #ffffff !important;
  border-color: #0a233f;
}
a.button:hover, button.button:hover {
  background-color: #231f20 !important;
  /* Dark neutral hover */
  border-color: #231f20 !important;
  color: #ffffff !important;
}
/* Focus states */

a.button:focus, button.button:focus {
  outline: 3px solid #2bb3bc;
  /* Standard focus outline */
  outline-offset: 1px;
  box-shadow: inset 0 0 0 2px #ffffff;
  /* White inner ring on dark buttons */
}
/* Button sizes */

a.button.small, button.button.small {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
}
a.button.standard, button.button.standard {
  font-size: 1rem;
  padding: 0.5rem 1rem;
}
a.button.large, button.button.large {
  font-size: 1.125rem;
  padding: 0.75rem 1.5rem;
}
/* Lime Green Button Variant (Primary Accent) */

a.button.lime, button.button.lime {
  background-color: #d6dd32 !important;
  /* Brand Lime */
  /* UPDATED: Brand Dark Blue text for contrast */
  color: #0a233f !important;
  border-color: #d6dd32;
}
a.button.lime:hover, button.button.lime:hover {
  background-color: #bec42c !important;
  /* Darker lime */
  border-color: #bec42c !important;
  /* UPDATED: Keep Brand Dark Blue text */
  color: #0a233f !important;
}
a.button.lime:focus, button.button.lime:focus {
  outline: 3px solid #0a233f;
  /* Dark blue outline */
  outline-offset: 1px;
  /* UPDATED: Use Dark Blue inner ring */
  box-shadow: inset 0 0 0 2px #0a233f;
  /* UPDATED: Keep Brand Dark Blue text */
  color: #0a233f !important;
}
/* Red Button Variant (Utility/Warning) */

a.button.red, button.button.red {
  background-color: #b91d4e !important;
  /* Brand Red */
  color: #ffffff !important;
  /* White text for contrast */
  border-color: #b91d4e;
}
a.button.red:hover, button.button.red:hover {
  background-color: #9a1741 !important;
  /* Darker red */
  border-color: #9a1741 !important;
  color: #ffffff !important;
}
a.button.red:focus, button.button.red:focus {
  outline: 3px solid #2bb3bc;
  /* Turquoise outline */
  outline-offset: 1px;
  box-shadow: inset 0 0 0 2px #ffffff;
  /* White inner ring */
}
/* Turquoise Button Variant (Secondary Accent) */

a.button.turquoise, button.button.turquoise {
  background-color: #2bb3bc !important;
  /* Brand Turquoise */
  color: #231f20 !important;
  /* Dark text for contrast */
  border-color: #2bb3bc;
}
a.button.turquoise:hover, button.button.turquoise:hover {
  background-color: #238f99 !important;
  /* Darker turquoise */
  border-color: #238f99 !important;
  color: #231f20 !important;
}
a.button.turquoise:focus, button.button.turquoise:focus {
  outline: 3px solid #0a233f;
  /* Dark blue outline */
  outline-offset: 1px;
  box-shadow: inset 0 0 0 2px #231f20;
  /* Dark inner ring */
}
/* White Button Variant (Neutral) */

a.button.white, button.button.white {
  background-color: #ffffff !important;
  color: #231f20 !important;
  border-color: #231f20;
  /* Dark border */
}
a.button.white:hover, button.button.white:hover {
  background-color: #f2f2f2 !important;
  /* Light grey hover */
  color: #231f20 !important;
  border-color: #231f20 !important;
}
a.button.white:focus, button.button.white:focus {
  outline: 3px solid #0a233f;
  /* Dark blue outline */
  outline-offset: 1px;
  border-color: #0a233f;
  box-shadow: inset 0 0 0 2px #0a233f;
  /* Dark inner ring */
}
/* Toggle icon uses consistent dark neutral */

.toggle-icon::before, .toggle-icon::after, .toggle-icon .toggle-icon__line {
  background-color: #231f20;
  height: 2px;
  left: 0;
  position: absolute;
  transition: transform 0.2s ease-out, -webkit-transform 0.2s ease-out;
  width: 100%;
}
/* Alerts use Brand Red */

.alert--warning, .alert--site-announcement {
  background-color: #b91d4e;
  /* Brand Red */
  border: 1px solid #b91d4e;
  color: #ffffff;
  /* White text */
}
.alert--warning a, .alert--site-announcement a {
  color: #ffffff !important;
  /* White link */
  font-weight: 700;
  text-decoration: underline;
}
.alert--warning a:hover, .alert--site-announcement a:hover, .alert--warning a:focus, .alert--site-announcement a:focus {
  text-decoration-thickness: max(3px, .1875rem, .12em);
  outline: none;
}
/* Form section in aside */

.aside__section .form {
  background-color: #f2f2f2;
  /* Light grey */
  padding: 1rem;
  border: 1px solid #d4d4d4;
}
.aside__section .form__label {
  color: #231f20;
  /* Dark text */
}
/* Primary form action button - Use Lime Green */

.form__action--primary .button {
  background-color: #d6dd32 !important;
  /* Lime */
  /* UPDATED: Brand Dark Blue text */
  color: #0a233f !important;
  border: 2px solid #d6dd32 !important;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: "Lato", sans-serif;
  text-transform: capitalize !important;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.form__action--primary .button:hover {
  background-color: #bec42c !important;
  /* Darker lime */
  border-color: #bec42c !important;
  /* UPDATED: Keep Brand Dark Blue text */
  color: #0a233f !important;
}
.form__action--primary .button:focus {
  outline: 3px solid #0a233f;
  /* Dark blue outline */
  outline-offset: 1px;
  /* UPDATED: Use Dark Blue inner ring */
  box-shadow: inset 0 0 0 2px #0a233f;
  /* UPDATED: Keep Brand Dark Blue text */
  color: #0a233f !important;
}
/* Primary Nav adjustments */

.nav--primary-navigation .button .icon {
  display: block;
  margin-top: 0.25rem;
}
@media (min-width: 640px) {
  .nav--primary-navigation .button .icon {
    display: block;
    margin-top: 1.5rem;
  }
}
.nav--primary-navigation .button__text {
  color: #231f20;
  margin-top: 1.35rem;
}
/* Primary nav hover uses Lime */

.nav--primary-navigation .button:hover, .nav--primary-navigation .button:focus, .nav--primary-navigation .button:active {
  background-color: #d6dd32 !important;
  /* Brand Lime */
  border-color: #d6dd32;
  color: #0a233f !important;
  /* UPDATED: Dark Blue text */
  outline: 0;
}
/* Mobile Menu Toggle - Use Lime */

.menu-navigation__controls .js-menu-toggle {
  background-color: #d6dd32;
  /* Brand Lime */
  display: block;
  font-size: 1.25rem;
  padding: 2.25rem;
  text-align: right;
  text-decoration: none;
  color: #0a233f;
  /* UPDATED: Dark Blue text */
}
.menu-navigation__controls .js-menu-toggle:hover, .menu-navigation__controls .js-menu-toggle:focus, .menu-navigation__controls .js-menu-toggle:active {
  background-color: #0a233f;
  /* Dark neutral hover */
  color: #ffffff;
  /* White text */
}
.menu-navigation__controls .js-menu-toggle .button__text {
  color: inherit;
  /* Inherit color from parent toggle */
  display: inline-block;
  margin-left: 0.5rem;
  text-decoration: underline;
  vertical-align: middle;
}
/* Mobile Menu uses Lime */

.menu-navigation__list-container {
  background-color: #d6dd32;
  /* Brand Lime */
  height: calc(100% - (4.5rem + 1.125rem));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.5rem;
}
.menu-navigation .list__link {
  /* Underline uses dark blue */
  background-image: linear-gradient( to top, #0a233f 0, #0a233f 1px, transparent 1px, transparent 100%);
  background-position: 0 -2px;
  background-repeat: no-repeat;
  background-size: 0 100%;
  color: #0a233f;
  /* UPDATED: Dark Blue text */
  text-decoration: none;
  text-shadow: none;
  display: inline;
  font-size: 1.5rem;
  font-weight: 700;
}
.menu-navigation .list__link:visited {
  color: #0a233f !important;
  /* UPDATED: Consistent dark blue text */
}
.menu-navigation .list__link:hover, .menu-navigation .list__link:focus {
  background-size: 100% 100%;
  /* Show underline */
  outline: none;
}
.button::after, .top-task::after, .icon-ui-chevron-right-primary {
  background-image: none !important;
  background-repeat: no-repeat;
}
.identity {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 0;
  padding-right: 0;
}
.aside.aside--sidebar a.button.button--primary.button--block {
  display: none;
  visibility: hidden;
}
.index-modular .site-main {
  margin: 0;
  padding-top: 3rem;
}
.page-heading {
  /* Use consistent Dark Blue */
  border-bottom: 1px solid #0a233f;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
}
/* Header Search - Use Dark Blue */

.site-search--header {
  background-color: #0a233f;
  /* Brand Dark Blue */
  color: #ffffff;
  margin: 0;
  padding: 1rem 0;
  width: 100%;
}
/* Placeholder text */

input::placeholder {
  color: #6f6f6f !important;
  /* WCAG AA on white */
}
/* Placeholder on dark background requires lighter color */

.site-search--header input::placeholder {
  color: #b5b5b5 !important;
  /* Lighter grey for dark bg */
}
.site-search--header .button {
  background-color: #d6dd32;
  /* Brand Lime */
  background-position: center;
  background-size: 1.5rem;
  border: 2px solid #d6dd32;
  /* UPDATED: Brand Dark Blue text */
  color: #0a233f !important;
  margin: 0;
  padding: 0 1.5rem;
}
.site-search--header .button:hover {
  background-color: #bec42c !important;
  /* Darker lime hover */
  border-color: #bec42c !important;
  /* UPDATED: Keep Brand Dark Blue text */
  color: #0a233f !important;
}
.site-search--header .button:focus {
  outline: 3px solid #ffffff;
  /* White outline on dark background */
  outline-offset: -3px;
  box-shadow: none;
  /* Ensure text color doesn't change on focus */
  color: #0a233f !important;
}
/* Breadcrumbs use dark neutral */

.list--breadcrumb .list__item {
  color: #231f20;
  display: inline-block;
  font-weight: 400;
  margin: 0.5rem 0;
}
.list--breadcrumb a {
  color: #231f20;
  /* Dark text */
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
}
.list--breadcrumb a:hover, .list--breadcrumb a:focus {
  text-decoration: underline;
  outline: none;
  color: #0a233f;
  /* Hover with Brand Blue */
}
/* Listings use dark neutral */

.list--listing .list__item:first-child, .list--grouped .list__item:first-child, .list--rich .list__item:first-child {
  border-top: none;
}
.list--listing .list__item, .list--grouped .list__item, .list--rich .list__item {
  border-bottom: 1px solid #231f20;
  font-size: 1.125rem;
  margin: 0;
  padding: 0.75rem 0;
}
.editor {
  max-width: 100%;
}
/* Footer uses Dark Blue */

.site-footer {
  background-color: #0a233f !important;
  /* Consistent Brand Dark Blue */
  margin: 0;
  padding-top: 2.5rem;
  text-align: center;
  color: #ffffff;
  /* Default text color */
}
.site-footer a {
  color: #ffffff !important;
}
.site-footer a:visited {
  color: #ffffff !important;
}
.site-footer__group .list__link {
  background-image: linear-gradient(to top, #ffffff 0, #ffffff 1px, transparent 1px, transparent 100%);
  background-position: 0 -2px;
  background-repeat: no-repeat;
  background-size: 0 100%;
  color: #ffffff;
  text-decoration: none;
  text-shadow: none;
  vertical-align: middle;
}
.footer-navigation .list__item, .footer-social .list__item {
  display: inline-block;
  margin-left: .5rem !important;
  margin-right: .5rem !important;
}
@media (min-width: 640px) {
  .footer-navigation .list__item, .footer-social .list__item {
    display: inline-block;
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }
}
.site-footer__group .list__link:hover, .site-footer__group .list__link:focus {
  background-size: 100% 100%;
  outline: none;
}
/* Footer nav: reset UL defaults and use flex to truly center */

.footer-navigation .list {
  list-style: none !important;
  margin: 0 !important;
  /* remove UA margin */
  padding-left: 0 !important;
  /* remove UA left padding that causes the shift */
  display: flex !important;
  /* avoid inline/inline-block quirks */
  flex-wrap: wrap;
  justify-content: center;
  /* center horizontally */
  gap: .75rem;
  /* control spacing between items */
  width: 100%;
  text-align: center;
  /* helps when items wrap */
}
/* Use gap for spacing (avoid double-spacing from margins) */

.footer-navigation .list__item {
  margin: 0 !important;
  padding: 0 !important;
}
/* Footer bottom uses Dark Blue */

.footer-bottom {
  background-color: #0a233f;
  /* Consistent Brand Dark Blue */
  margin-top: 2.5rem;
  padding-bottom: 1.5rem;
  color: #ffffff;
}
/* Selection uses Turquoise bg and Dark text */

::selection {
  background-color: #2bb3bc !important;
  /* Brand Turquoise */
  color: #231f20 !important;
  /* Dark text */
}