/* ============================================================
   Accessibility panel (adapted from the supplied Lifest widget, rebranded for Shine)
   Writes GLOBAL rules on <html>/<body> on purpose: the panel must restyle the whole page.
   The panel's own UI stays scoped under .lfst-a11y.
   Brand mapping: navy #2F408A -> Deep Teal #0B7275, orange #F05F36 -> Coral #EF4D6B.
   ============================================================ */
@font-face {
  font-family: "LfstDyslexic";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@latest/latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "LfstDyslexic";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@latest/latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* ---------- global adjustments ---------- */
html.lfst-a11y-dyslexia body > *:not(.lfst-a11y), html.lfst-a11y-dyslexia body > *:not(.lfst-a11y) * {
  font-family: "LfstDyslexic", "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif !important;
}

html.lfst-a11y-spacing body > *:not(.lfst-a11y) * {
  letter-spacing: 0.12em !important;
  word-spacing: 0.16em !important;
}

html.lfst-a11y-lineheight body > *:not(.lfst-a11y) * {
  line-height: 2 !important;
}

html.lfst-a11y-weight body > *:not(.lfst-a11y) * {
  font-weight: 700 !important;
}

html.lfst-a11y-alignleft body > *:not(.lfst-a11y) * {
  text-align: left !important;
}

html.lfst-a11y-titles body > *:not(.lfst-a11y) :is(h1, h2, h3, h4, h5, h6) {
  outline: 2px dashed #0B7275 !important;
  outline-offset: 3px !important;
  background: #FEF0CF !important;
  color: #212221 !important;
}

html.lfst-a11y-links body > *:not(.lfst-a11y) a {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  outline: 2px solid #EF4D6B !important;
  outline-offset: 2px !important;
  background: #FEF0CF !important;
  color: #06393A !important;
}

/* colour modes go on body's children so the panel itself is never filtered */
html.lfst-a11y-dark body > *:not(.lfst-a11y) {
  filter: invert(1) hue-rotate(180deg) !important;
  background-color: #FFFFFF;
}

html.lfst-a11y-dark body > *:not(.lfst-a11y) :is(img, video, iframe, canvas, svg[data-photo]) {
  filter: invert(1) hue-rotate(180deg) !important;
}

html.lfst-a11y-light body > *:not(.lfst-a11y) {
  filter: brightness(1.06) contrast(1.22) !important;
}

html.lfst-a11y-contrast body > *:not(.lfst-a11y) {
  filter: contrast(1.75) !important;
}

html.lfst-a11y-satplus body > *:not(.lfst-a11y) {
  filter: saturate(2.2) !important;
}

html.lfst-a11y-satminus body > *:not(.lfst-a11y) {
  filter: saturate(0.4) !important;
}

html.lfst-a11y-mono body > *:not(.lfst-a11y) {
  filter: grayscale(1) !important;
}

html.lfst-a11y-stopmotion body > *:not(.lfst-a11y), html.lfst-a11y-stopmotion body > *:not(.lfst-a11y) *, html.lfst-a11y-stopmotion body > *:not(.lfst-a11y) *::before, html.lfst-a11y-stopmotion body > *:not(.lfst-a11y) *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.lfst-a11y-cursor body > *:not(.lfst-a11y), html.lfst-a11y-cursor body > *:not(.lfst-a11y) * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 32 32'%3E%3Cpath d='M6 2l18 12-8 1.6 4.6 9.2-3.6 1.8L12.4 17 6 22z' fill='%23FFFFFF' stroke='%230B7275' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important;
}

html.lfst-a11y-cursor body > *:not(.lfst-a11y) :is(a, button, [role=button], input, select, textarea, label) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 32 32'%3E%3Cpath d='M12 3a2.5 2.5 0 015 0v10h1V9.5a2.5 2.5 0 015 0V15h1v-2.5a2.5 2.5 0 015 0V22a7 7 0 01-7 7h-4a8 8 0 01-8-8V11a2.5 2.5 0 015 0z' fill='%23FFFFFF' stroke='%23EF4D6B' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 10 2, pointer !important;
}

.lfst-a11y .lfst-a11y__guide {
  position: fixed;
  left: 0;
  z-index: 2147483004;
  display: none;
  width: 100%;
  height: 44px;
  border-top: 3px solid #EF4D6B;
  border-bottom: 3px solid #EF4D6B;
  background: rgba(11, 114, 117, 0.12);
  pointer-events: none;
  transform: translateY(-50%);
}

.lfst-a11y .lfst-a11y__guide.lfst-is-on {
  display: block;
}

/* ============ PANEL UI (scoped) ============ */
.lfst-a11y * {
  box-sizing: border-box;
}

.lfst-a11y h2, .lfst-a11y h3 {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  letter-spacing: inherit !important;
  font-size: inherit !important;
  text-transform: inherit !important;
  font-family: inherit !important;
}

.lfst-a11y p {
  margin: 0 !important;
  padding: 0 !important;
}

.lfst-a11y, .lfst-a11y * {
  font-family: "Nunito Sans", Arial, sans-serif !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-align: left !important;
  filter: none !important;
}

.lfst-a11y[dir=rtl] * {
  text-align: right !important;
}

.lfst-a11y .lfst-a11y__trigger {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 2147483001 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  border: 2px solid #FFFFFF !important;
  border-radius: 50% !important;
  background: #0B7275 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24) !important;
  color: #FFFFFF !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.lfst-a11y .lfst-a11y__trigger:hover {
  background: #06393A !important;
  transform: translateY(-2px) !important;
}

.lfst-a11y .lfst-a11y__trigger:focus-visible {
  outline: 3px solid #EF4D6B !important;
  outline-offset: 3px !important;
}

.lfst-a11y .lfst-a11y__trigger svg {
  width: 28px;
  height: 28px;
  fill: #FFFFFF;
}

.lfst-a11y .lfst-a11y__scrim {
  position: fixed;
  inset: 0;
  z-index: 2147483002;
  background: rgba(24, 26, 30, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lfst-a11y .lfst-a11y__scrim.lfst-is-shown {
  opacity: 1;
}

.lfst-a11y .lfst-a11y__scrim[hidden] {
  display: none !important;
}

.lfst-a11y .lfst-a11y__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483003;
  display: flex;
  flex-direction: column;
  width: 380px;
  max-width: 100vw;
  background: #FBF8F3;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.22);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lfst-a11y .lfst-a11y__panel.lfst-is-open {
  transform: translateX(0);
}

.lfst-a11y .lfst-a11y__panel[hidden] {
  display: none !important;
}

.lfst-a11y .lfst-a11y__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 16px 18px;
  background: #0B7275;
}

.lfst-a11y .lfst-a11y__head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.lfst-a11y .lfst-a11y__head-icon svg {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
}

.lfst-a11y .lfst-a11y__title {
  flex: 1 1 auto;
  color: #FFFFFF !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 24px !important;
  font-family: "Poppins", Arial, sans-serif !important;
}

.lfst-a11y .lfst-a11y__iconbtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px;
  padding: 0 !important;
  border: none !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #FFFFFF !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.lfst-a11y .lfst-a11y__iconbtn:hover {
  background: rgba(255, 255, 255, 0.28) !important;
}

.lfst-a11y .lfst-a11y__iconbtn:focus-visible {
  outline: 3px solid #FAB316 !important;
  outline-offset: 2px !important;
}

.lfst-a11y .lfst-a11y__iconbtn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lfst-a11y .lfst-a11y__body {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 18px 24px;
  -webkit-overflow-scrolling: touch;
}

.lfst-a11y .lfst-a11y__legend {
  margin-bottom: 10px !important;
  color: #4A4B4A !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 20px !important;
}

.lfst-a11y .lfst-a11y__group {
  border: none;
  margin: 0 0 22px;
  padding: 0;
  min-width: 0;
  max-width: 100%;
}

.lfst-a11y .lfst-a11y__group:last-of-type {
  margin-bottom: 0;
}

.lfst-a11y .lfst-a11y__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.lfst-a11y .lfst-a11y__lang {
  position: relative;
  margin-bottom: 20px;
}

.lfst-a11y .lfst-a11y__lang-btn {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 14px 16px !important;
  border: 2px solid #DDD7CD !important;
  border-radius: 14px !important;
  background: #FFFFFF !important;
  color: #212221 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.lfst-a11y .lfst-a11y__lang-btn:hover {
  border-color: #0B7275 !important;
}

.lfst-a11y .lfst-a11y__lang-btn:focus-visible {
  outline: 3px solid #EF4D6B !important;
  outline-offset: 2px !important;
}

.lfst-a11y .lfst-a11y__lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #DAEAEA;
  color: #0B7275 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 16px !important;
  text-align: center !important;
}

.lfst-a11y .lfst-a11y__lang-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lfst-a11y .lfst-a11y__lang-opt span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lfst-a11y .lfst-a11y__lang-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #4A4B4A;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.lfst-a11y .lfst-a11y__lang-btn[aria-expanded=true] svg {
  transform: rotate(90deg);
}

.lfst-a11y[dir=rtl] .lfst-a11y__lang-btn svg {
  transform: rotate(180deg);
}

.lfst-a11y[dir=rtl] .lfst-a11y__lang-btn[aria-expanded=true] svg {
  transform: rotate(90deg);
}

.lfst-a11y .lfst-a11y__lang-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 5;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 2px solid #DDD7CD;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  list-style: none;
}

.lfst-a11y .lfst-a11y__lang-list[hidden] {
  display: none !important;
}

.lfst-a11y .lfst-a11y__lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #212221;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.lfst-a11y .lfst-a11y__lang-opt:hover, .lfst-a11y .lfst-a11y__lang-opt.lfst-is-active {
  background: #DAEAEA;
  color: #0B7275;
}

.lfst-a11y .lfst-a11y__lang-opt[aria-selected=true] {
  font-weight: 700;
}

.lfst-a11y .lfst-a11y__card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 96px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 14px 10px !important;
  border: 2px solid #DDD7CD !important;
  border-radius: 14px !important;
  background: #FFFFFF !important;
  color: #0B7275 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 15px !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.lfst-a11y .lfst-a11y__card svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  margin: 0 auto;
  fill: none;
  stroke: #212221;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lfst-a11y .lfst-a11y__card span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
  text-align: center !important;
}

.lfst-a11y .lfst-a11y__card:hover {
  border-color: #0B7275 !important;
  transform: translateY(-2px) !important;
}

.lfst-a11y .lfst-a11y__card:focus-visible {
  outline: 3px solid #EF4D6B !important;
  outline-offset: 2px !important;
}

.lfst-a11y .lfst-a11y__card[aria-pressed=true] {
  border-color: #0B7275 !important;
  background: #DAEAEA !important;
}

.lfst-a11y .lfst-a11y__card[aria-pressed=true] svg {
  stroke: #0B7275;
}

.lfst-a11y .lfst-a11y__stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 2px solid #DDD7CD;
  border-radius: 14px;
  background: #FFFFFF;
}

.lfst-a11y .lfst-a11y__stepper-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  color: #212221 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 15px !important;
  overflow-wrap: anywhere;
}

.lfst-a11y .lfst-a11y__stepper-label span {
  min-width: 0;
}

.lfst-a11y .lfst-a11y__stepper-label svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: #212221;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lfst-a11y .lfst-a11y__step {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: #0B7275 !important;
  color: #FFFFFF !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.lfst-a11y .lfst-a11y__step:hover {
  background: #06393A !important;
}

.lfst-a11y .lfst-a11y__step:disabled {
  background: #DDD7CD !important;
  cursor: not-allowed !important;
}

.lfst-a11y .lfst-a11y__step:focus-visible {
  outline: 3px solid #EF4D6B !important;
  outline-offset: 2px !important;
}

.lfst-a11y .lfst-a11y__pct {
  min-width: 54px;
  flex: 0 0 auto;
  padding: 8px 4px;
  border-radius: 999px;
  background: #EFEAE2;
  color: #212221 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  text-align: center !important;
}

.lfst-a11y .lfst-a11y__reset {
  display: block !important;
  width: 100% !important;
  margin-top: 22px !important;
  padding: 15px 16px !important;
  border: none !important;
  border-radius: 12px !important;
  background: #B33A50 !important;
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 20px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.lfst-a11y .lfst-a11y__reset:hover {
  background: #782636 !important;
}

.lfst-a11y .lfst-a11y__reset:focus-visible {
  outline: 3px solid #0B7275 !important;
  outline-offset: 2px !important;
}

.lfst-a11y .lfst-a11y__sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Mobile: half-height bottom sheet with no scrim so the page stays visible while adjusting */
@media (max-width: 767px) {
  .lfst-a11y .lfst-a11y__panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-width: none;
    height: 58svh;
    max-height: 58svh;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.22);
    transform: translateY(102%);
  }
  .lfst-a11y .lfst-a11y__panel.lfst-is-open {
    transform: translateY(0);
  }
  .lfst-a11y .lfst-a11y__head {
    border-radius: 18px 18px 0 0;
  }
  .lfst-a11y .lfst-a11y__scrim {
    display: none !important;
  }
  .lfst-a11y .lfst-a11y__trigger[aria-expanded=true] {
    bottom: calc(58svh + 12px) !important;
  }
}
@supports not (height: 1svh) {
  @media (max-width: 767px) {
    .lfst-a11y .lfst-a11y__panel {
      height: 58vh;
      max-height: 58vh;
    }
    .lfst-a11y .lfst-a11y__trigger[aria-expanded=true] {
      bottom: calc(58vh + 12px) !important;
    }
  }
}
@media (max-width: 480px) {
  .lfst-a11y .lfst-a11y__body {
    padding: 16px 16px 24px;
  }
  .lfst-a11y .lfst-a11y__grid {
    gap: 8px;
  }
  .lfst-a11y .lfst-a11y__card {
    min-height: 92px !important;
    padding: 14px 8px !important;
    font-size: 13px !important;
    line-height: 16px !important;
  }
  .lfst-a11y .lfst-a11y__card svg {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .lfst-a11y .lfst-a11y__head {
    padding: 14px 16px;
  }
  .lfst-a11y .lfst-a11y__title {
    font-size: 17px !important;
  }
  .lfst-a11y .lfst-a11y__stepper {
    gap: 10px;
    padding: 14px 12px;
  }
  .lfst-a11y .lfst-a11y__stepper-label {
    font-size: 13px !important;
  }
  .lfst-a11y .lfst-a11y__step {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px;
  }
  .lfst-a11y .lfst-a11y__lang {
    margin-bottom: 16px;
  }
  .lfst-a11y .lfst-a11y__lang-list {
    max-height: 240px;
  }
  .lfst-a11y .lfst-a11y__reset {
    padding: 16px !important;
  }
  .lfst-a11y .lfst-a11y__trigger {
    right: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (max-width: 340px) {
  .lfst-a11y .lfst-a11y__grid {
    grid-template-columns: 1fr;
  }
  .lfst-a11y .lfst-a11y__card {
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    min-height: 56px !important;
    padding: 12px 14px !important;
    text-align: left !important;
  }
  .lfst-a11y .lfst-a11y__card span {
    flex: 1 1 auto !important;
    align-self: auto !important;
    width: auto !important;
    text-align: left !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lfst-a11y .lfst-a11y__panel, .lfst-a11y .lfst-a11y__scrim, .lfst-a11y .lfst-a11y__card, .lfst-a11y .lfst-a11y__lang-btn svg, .lfst-a11y .lfst-a11y__trigger {
    transition: none !important;
  }
  .lfst-a11y .lfst-a11y__card:hover, .lfst-a11y .lfst-a11y__trigger:hover {
    transform: none !important;
  }
}
@media print {
  .lfst-a11y {
    display: none !important;
  }
}

/* Leave space for Shine's separate Back to Top button. */
.lfst-a11y .lfst-a11y__trigger:not([aria-expanded="true"]) {
  bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
}
html.lfst-a11y-stopmotion { scroll-behavior: auto !important; }
