/* Stendhal Suites first-party reading preferences and isolated widget styles. */
html.ss-a11y-contrast body,
html.ss-a11y-contrast body *:not(#ss-a11y):not(svg):not(svg *) {
  color: #fff !important;
  background-color: #111 !important;
  border-color: #fff !important;
  text-shadow: none !important;
}
html.ss-a11y-contrast body a { color: #ffdf83 !important; }
html.ss-a11y-links body a {
  text-decoration: underline !important;
  text-underline-offset: .2em !important;
  text-decoration-thickness: 2px !important;
}
html.ss-a11y-spacing body :is(p, li, h1, h2, h3, h4, h5, h6, label, a, button, input, textarea, td, th, span) {
  line-height: 1.8 !important;
  letter-spacing: .12em !important;
  word-spacing: .16em !important;
}
html.ss-a11y-spacing body p { margin-bottom: 2em !important; }
html.ss-a11y-font body :is(p, li, h1, h2, h3, h4, h5, h6, label, a, button, input, textarea, td, th, span):not(.fa):not([class*="icofont"]) {
  font-family: Arial, Helvetica, sans-serif !important;
}
html.ss-a11y-motion { scroll-behavior: auto !important; }
html.ss-a11y-motion body *, html.ss-a11y-motion body *::before, html.ss-a11y-motion body *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.ss-a11y-motion body [data-aos] { opacity: 1 !important; transform: none !important; }
/* The following selectors apply inside the widget's shadow root only. */
:host {
  --ss-teal: #044142;
  --ss-paper: #ebe9e5;
  --ss-a11y-bottom: 24px;
  --ss-a11y-text-scale: 1;
  position: fixed !important;
  left: 24px !important;
  bottom: var(--ss-a11y-bottom) !important;
  z-index: 2147483647 !important;
  font: calc(14px * var(--ss-a11y-text-scale))/1.5 'Montserrat', sans-serif !important;
  color: var(--ss-teal) !important;
  color-scheme: light;
}
:host *, :host *::before, :host *::after { box-sizing: border-box; }
:host button, :host select { font: inherit; }
:host button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:host button:focus-visible, :host select:focus-visible { outline: 3px solid var(--ss-teal); outline-offset: 3px; }
:host .close:focus-visible, :host .launcher:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--ss-teal); }
:host .launcher {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 50%;
}
:host .launcher::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--ss-teal);
  border: 2px solid var(--ss-paper);
  border-radius: 50%;
  box-shadow: 0 4px 16px #0003;
  pointer-events: none;
}
:host .launcher:hover::before { background: #114e4f; }
:host .launcher svg { position: relative; width: 22px; height: 22px; }
:host dialog {
  position: fixed;
  inset: auto auto 24px 24px;
  width: 384px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ss-teal);
  background: #fff;
  border: 1px solid #04414233;
  border-radius: 14px;
  box-shadow: 0 16px 64px #0004;
  font: calc(14px * var(--ss-a11y-text-scale))/1.5 'Montserrat', sans-serif;
}
:host dialog::backdrop { background: #05232455; }
:host .panel-header {
  padding: 22px 24px 20px;
  color: #fff;
  background: var(--ss-teal);
  position: relative;
}
:host .brand { overflow-wrap: anywhere; margin: 0 40px 5px 0; font-size: calc(10px * var(--ss-a11y-text-scale)); letter-spacing: .16em; text-transform: uppercase; }
:host h2 { overflow-wrap: anywhere; margin: 0 36px 0 0; font: calc(28px * var(--ss-a11y-text-scale))/1.2 'Playfair Display', serif; color: #fff; }
:host .close { position: absolute; right: 14px; top: 16px; width: 44px; height: 44px; border: 1px solid #ffffff66; border-radius: 50%; color: #fff; background: transparent; font: 28px/1 Arial,sans-serif; }
:host .close:hover { background: #ffffff22; }
:host .content { padding: 20px 24px 24px; }
:host .intro { margin: 0 0 18px; color: #465858; font: calc(15px * var(--ss-a11y-text-scale))/1.65 'Quicksand', sans-serif; }
:host .language { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
:host .language label { font-size: calc(12px * var(--ss-a11y-text-scale)); }
:host .language select { min-height: 44px; max-width: 170px; padding: 8px 12px; border: 1px solid #627c7c; border-radius: 6px; background: #fff; color: var(--ss-teal); }
:host .text-size { padding: 14px; margin-bottom: 12px; background: var(--ss-paper); border-radius: 8px; }
:host .size-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
:host .size-heading span { font-size: calc(13px * var(--ss-a11y-text-scale)); }
:host .size-heading output { font-size: calc(13px * var(--ss-a11y-text-scale)); font-weight: 600; }
:host .stepper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
:host .stepper button { min-height: 44px; border: 1px solid #627c7c; border-radius: 6px; background: #fff; color: var(--ss-teal); font-size: calc(20px * var(--ss-a11y-text-scale)); }
:host .stepper button:disabled { cursor: default; opacity: .45; }
:host .controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
:host .toggle { position: relative; overflow-wrap: anywhere; min-height: 88px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid #627c7c; border-radius: 8px; background: #fff; color: var(--ss-teal); font-size: calc(12px * var(--ss-a11y-text-scale)); line-height: 1.4; text-align: center; }
:host .selected-mark { display: none; position: absolute; top: 4px; right: 7px; font: 16px/1 Arial,sans-serif; }
:host .toggle[aria-pressed="true"] .selected-mark { display: block; }
:host .toggle svg { width: 24px; height: 24px; }
:host .toggle:hover { background: var(--ss-paper); }
:host .toggle[aria-pressed="true"] { background: var(--ss-teal); color: #fff; border-color: var(--ss-teal); }
:host .toggle:last-child { grid-column: 1 / -1; min-height: 62px; flex-direction: row; gap: 12px; }
:host .reset { display: block; width: 100%; min-height: 46px; padding: 10px; margin-top: 18px; border: 1px solid var(--ss-teal); border-radius: 6px; color: var(--ss-teal); background: var(--ss-paper); font-size: calc(12px * var(--ss-a11y-text-scale)); }
:host .reset:hover { background: #dedbd5; }
:host .note { margin: 14px 0 0; color: #465858; font: calc(12px * var(--ss-a11y-text-scale))/1.6 'Quicksand',sans-serif; }
:host(.ss-a11y-spacing) :is(p,h2,label,button,select,output) { line-height: 1.8 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
:host(.ss-a11y-spacing) p { margin-bottom: 2em !important; }
:host .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media(max-width:767px) {
  :host { left: 16px !important; --ss-a11y-bottom: 78px; }
  :host dialog { left: 16px; bottom: 72px; max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); }
  :host .panel-header { padding: 18px 20px; }
  :host .content { padding: 16px 20px 20px; }
}
@media(forced-colors:active) {
  :host button:focus-visible, :host select:focus-visible { outline-color: Highlight; box-shadow: none; }
  :host .launcher, :host .toggle, :host .close, :host .reset, :host .stepper button { border: 2px solid ButtonText; }
  :host .toggle[aria-pressed="true"] { border-color: Highlight; outline: 2px solid Highlight; }
}
@media(max-width:480px) {
  :host(.ss-a11y-large-text) .controls { grid-template-columns: minmax(0, 1fr); }
}
