:root[data-by-text="1"] { font-size: 112.5%; }
:root[data-by-text="2"] { font-size: 125%; }
:root[data-by-text="3"] { font-size: 150%; }
:root { scroll-padding-top: 6rem; }
:focus-visible { outline: 3px solid #175ac0; outline-offset: 3px; }
#main-content:focus { outline-offset: -3px; }

.by-skip-link {
  position: fixed;
  z-index: 1000;
  inset-inline-start: 1rem;
  inset-block-start: .5rem;
  transform: translateY(-200%);
  padding: .65rem 1rem;
  color: #fff;
  background: #192436;
  border-radius: .4rem;
}
.by-skip-link:focus { transform: none; }

.by-preferences {
  --by-ink: #182231;
  --by-surface: #fff;
  --by-tint: #f3f6fa;
  --by-line: #9ba8b8;
  color: var(--by-ink);
  font: inherit;
  line-height: 1.5;
  text-align: start;
}
.by-preferences [hidden], .by-cookie-banner[hidden] { display: none !important; }
.by-preferences h2, .by-preferences p { margin: 0; color: inherit; }
.by-preferences a { color: #134e9b; text-decoration: underline; }
.by-cookie-banner {
  background: var(--by-tint);
  border-block-end: 1px solid #c7d1dc;
}
.by-cookie-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding: .75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.by-cookie-inner > div:first-child { flex: 1 1 22rem; }
.by-cookie-inner p { font-size: .92rem; }
.by-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.by-preferences button, .by-preferences select {
  background: var(--by-surface);
  color: var(--by-ink);
  border: 1px solid var(--by-line);
  border-radius: .55rem;
  padding: .4rem .7rem;
  min-height: 44px;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.by-preferences button:hover { background: #e8eef7; }
.by-preferences button[data-choice="allow"], .by-preferences button[data-choice="essential"] {
  border-color: #24374f;
}
.by-launchers {
  display: block;
  position: fixed;
  right: max(.85rem, env(safe-area-inset-right));
  bottom: max(.85rem, env(safe-area-inset-bottom));
  z-index: 100;
}
.by-preferences button[data-access-open] {
  width: 50px;
  height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #192b46;
  color: #fff;
  box-shadow: 0 2px 10px #0004;
}
.by-preferences button[data-access-open]:hover { background: #29466f; }
.by-preferences dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(27rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  background: var(--by-surface);
  color: var(--by-ink);
  padding: 1rem;
  border: 1px solid var(--by-line);
  border-radius: .9rem;
  box-shadow: 0 12px 50px #0004;
  text-align: start;
}
.by-preferences dialog::backdrop { background: #0c172a99; }
.by-dialog-head { display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.by-dialog-head h2 { font-size: 1.2rem; line-height: 1.3; }
.by-preferences button[data-close] { min-width: 44px; justify-content: center; font-size: 1.25rem; }
.by-preferences dialog p, .by-preferences dialog .by-actions { margin-block: .75rem; }
.by-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .65rem;
  min-height: 44px;
  margin-block: .35rem;
  font-weight: 600;
  cursor: pointer;
}
.by-option input { width: 1.15rem; height: 1.15rem; accent-color: #192b46; }
.by-option select { margin-inline-start: auto; }
.by-underline a[href] { text-decoration: underline !important; text-underline-offset: .18em; }
.by-contrast body, .by-contrast body :is(header, main, section, article, aside, footer, nav, div, p, span, h1, h2, h3, h4, li, strong, small, table, td, th, details, summary) {
  color: #fff !important;
  background-color: #121212 !important;
  background-image: none !important;
  text-shadow: none !important;
}
.by-contrast body a[href] { color: #ffdf77 !important; text-decoration: underline !important; }
.by-contrast body a[href] :is(span, strong) { color: inherit !important; }
.by-contrast body :is(button, input, select, textarea, dialog) { color: #fff !important; background-color: #121212 !important; border-color: #fff !important; }
.by-contrast :focus-visible { outline-color: #ffdf77 !important; }
.by-reduce-motion *, .by-reduce-motion *::before, .by-reduce-motion *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .by-preferences { display: none !important; }
}

.by-preferences #by-access-dialog {
  --by-paper: #f8f5f0;
  --by-rule: #ded7cc;
  --by-rust: #963c11;
  --by-deep: #243b50;
  width: min(29rem, calc(100% - 1.5rem));
  padding: 0;
  border: 1px solid #aa9f91;
  border-radius: 1.05rem;
  box-shadow: 0 18px 56px #0b172c55;
}
.by-access-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  padding: .8rem 1.05rem;
  background: var(--by-paper);
  border-block-end: 1px solid var(--by-rule);
}
.by-access-icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--by-rust);
  border: 1px solid #cb967e;
  border-radius: .55rem;
}
.by-access-icon svg { width: 1.35rem; height: 1.35rem; }
.by-access-head h2 {
  font-size: clamp(1.05rem, .94rem + .6vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.by-preferences .by-access-head button[data-close] {
  display: grid;
  place-items: center;
  padding: 0;
  width: 44px;
  height: 44px;
  border-color: #94877b;
  border-radius: 50%;
  background: #fff;
}
.by-access-options { padding-inline: 1.05rem; }
.by-access-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  min-height: max(54px, 3rem);
  padding-block: .26rem;
  font-size: .95rem;
  font-weight: 650;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.by-access-row + .by-access-row { border-block-start: 1px solid var(--by-rule); }
.by-access-row select {
  min-width: 5rem;
  max-width: 100%;
  border-color: #817569;
}
.by-access-row input[role="switch"] {
  appearance: none;
  box-sizing: border-box;
  position: relative;
  display: block;
  flex: none;
  width: 48px;
  height: 28px;
  margin: 0;
  border: 1px solid #776e64;
  border-radius: 30px;
  background: #e9e4dc;
  cursor: pointer;
}
.by-access-row input[role="switch"]::before {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border: 1px solid #776e64;
  border-radius: 50%;
  background: #fff;
}
.by-access-row input[role="switch"]:checked {
  border-color: var(--by-deep);
  background: var(--by-deep);
}
.by-access-row input[role="switch"]:checked::before {
  inset-inline-start: 23px;
  border-color: #fff;
}
.by-access-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  padding: .65rem 1.05rem;
  background: var(--by-paper);
  border-block-start: 1px solid var(--by-rule);
}
.by-access-footer [data-reset] {
  border-color: #817569;
  font-size: .86rem;
  font-weight: 750;
}
.by-access-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .8rem; }
.by-access-links a,
.by-preferences .by-access-links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .25rem 0;
  border: 0;
  background: transparent;
  color: #76350e;
  font-size: .86rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.by-preferences .by-access-links button:hover { background: transparent; text-decoration-thickness: 2px; }
.by-preferences :focus-visible { outline: 3px solid #175ac0; outline-offset: 3px; }
.by-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.by-contrast .by-access-icon { border-color: #fff; }
.by-contrast .by-access-row input[role="switch"]:checked { background: #ffdf77 !important; }
.by-contrast .by-access-row input[role="switch"]:checked::before { background: #121212; }
@media (forced-colors: active) {
  .by-access-row input[role="switch"] { appearance: auto; width: 24px; height: 24px; }
  .by-access-row input[role="switch"]::before { display: none; }
}
@media (max-width: 370px) {
  .by-access-head, .by-access-footer, .by-access-options { padding-inline: .75rem; }
  .by-access-head { gap: .45rem; }
  .by-access-icon { width: 1.8rem; height: 1.8rem; }
  .by-access-row select { min-width: 4.4rem; }
}
