/* Adoluna Accessibility widget 1.0.0 — self-hosted. Colors come from the variables below;
   each site overrides them in its own small CSS block. */
:root {
  --ad11y-accent: #1d1d1f;      /* button + pressed options */
  --ad11y-accent-ink: #ffffff;  /* text on accent */
  --ad11y-focus: #005fcc;       /* focus ring */
  --ad11y-bg: #ffffff;          /* panel */
  --ad11y-soft: #f5f5f7;        /* option tiles */
  --ad11y-line: #d9d9de;
  --ad11y-ink: #1d1d1f;
  --ad11y-muted: #4a4a50;
  --ad11y-left: 16px;
  --ad11y-bottom: 16px;
  --ad11y-bottom-mobile: 16px;  /* raise above a fixed mobile bottom bar */
  --ad11y-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Skip link (added by the script only when a page has none). */
.ad11y-skip {
  position: absolute; left: -9999px; top: 8px; z-index: 2147483100;
  padding: 12px 18px; border-radius: 999px; background: var(--ad11y-accent); color: var(--ad11y-accent-ink) !important;
  font: 700 16px/1.2 var(--ad11y-font); text-decoration: none !important;
}
.ad11y-skip:focus { left: 8px; outline: 3px solid var(--ad11y-focus); outline-offset: 2px; }

.ad11y-btn {
  position: fixed; left: var(--ad11y-left); bottom: var(--ad11y-bottom); z-index: 2147482990;
  width: 52px; height: 52px; padding: 0; border: 2px solid var(--ad11y-accent-ink); border-radius: 50%;
  background: var(--ad11y-accent); color: var(--ad11y-accent-ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  min-width: 0; min-height: 0; margin: 0; line-height: 1; text-transform: none; letter-spacing: 0;
}
.ad11y-btn:hover, .ad11y-btn[aria-expanded="true"] { filter: brightness(1.15); }
.ad11y-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ad11y-btn svg circle { fill: currentColor; stroke: none; }
@media (max-width: 782px) { .ad11y-btn { bottom: var(--ad11y-bottom-mobile); width: 48px; height: 48px; } }

.ad11y-panel[hidden] { display: none !important; }
.ad11y-panel {
  position: fixed; left: var(--ad11y-left); bottom: calc(var(--ad11y-bottom) + 62px); z-index: 2147482991;
  box-sizing: border-box; width: min(340px, calc(100vw - 32px)); max-height: min(80vh, 560px); overflow: auto;
  background: var(--ad11y-bg); color: var(--ad11y-ink); border: 1px solid var(--ad11y-line); border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2); padding: 16px 16px 12px; text-align: left;
  font: 500 15px/1.45 var(--ad11y-font); letter-spacing: 0; text-transform: none;
}
@media (max-width: 782px) { .ad11y-panel { bottom: calc(var(--ad11y-bottom-mobile) + 58px); max-height: calc(100vh - var(--ad11y-bottom-mobile) - 80px); } }
.ad11y-panel h2 { font: 700 20px/1.25 var(--ad11y-font); margin: 0 40px 4px 0; padding: 0; color: var(--ad11y-ink); letter-spacing: 0; text-transform: none; }
.ad11y-lead { margin: 0 40px 14px 0; color: var(--ad11y-muted); font-size: 14px; }
.ad11y-panel button { font-family: var(--ad11y-font); text-transform: none; letter-spacing: 0; box-shadow: none; }
button.ad11y-close {
  position: absolute; top: 8px; right: 8px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; min-width: 40px; min-height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ad11y-ink); cursor: pointer; font-size: 26px; font-weight: 400; line-height: 1;
}
button.ad11y-close:hover { background: var(--ad11y-soft); }
.ad11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad11y-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; margin: 0;
  background: var(--ad11y-soft); border: 1.5px solid var(--ad11y-line); border-radius: 12px; padding: 10px 10px 9px;
  cursor: pointer; color: var(--ad11y-ink); font: 700 14px/1.2 var(--ad11y-font); min-height: 44px;
}
.ad11y-opt small { font-weight: 500; font-size: 12px; color: var(--ad11y-muted); }
.ad11y-opt[aria-pressed="true"] { background: var(--ad11y-accent); border-color: var(--ad11y-accent); color: var(--ad11y-accent-ink); }
.ad11y-opt[aria-pressed="true"] small { color: var(--ad11y-accent-ink); }
.ad11y-textrow {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
  background: var(--ad11y-soft); border: 1.5px solid var(--ad11y-line); border-radius: 12px; padding: 8px;
}
.ad11y-textrow > span { flex: 1; font-weight: 700; font-size: 14px; }
button.ad11y-step {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--ad11y-accent); color: var(--ad11y-accent-ink); font-weight: 700; font-size: 16px; line-height: 1; cursor: pointer; white-space: nowrap;
}
#ad11y-text-inc { font-size: 18px; }
button.ad11y-step:disabled { opacity: .4; cursor: not-allowed; }
.ad11y-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
button.ad11y-reset { background: transparent; border: 0; color: var(--ad11y-ink); font: 700 14px/1.2 var(--ad11y-font); text-decoration: underline; cursor: pointer; padding: 10px 4px; margin: 0; min-height: 44px; }
.ad11y-foot a { color: var(--ad11y-ink) !important; font-weight: 700; font-size: 14px; text-decoration: underline !important; padding: 10px 4px; }
.ad11y-btn:focus-visible, .ad11y-panel button:focus-visible, .ad11y-panel a:focus-visible {
  outline: 3px solid var(--ad11y-focus) !important; outline-offset: 2px !important;
}
.ad11y-close span, .ad11y-step span { display: block; line-height: 1; pointer-events: none; }

/* ---------- Applied options (classes on <html>) ---------- */
/* Default: scale rem-based sites through the root font size. */
html.ad11y-text-1:not(.ad11y-zoom) { font-size: 112.5% !important; }
html.ad11y-text-2:not(.ad11y-zoom) { font-size: 125% !important; }
html.ad11y-text-3:not(.ad11y-zoom) { font-size: 137.5% !important; }
/* textMode "zoom" (sites that size text in px): scale the page, not the widget. */
html.ad11y-zoom.ad11y-text-1 body > *:not(.ad11y-btn):not(.ad11y-panel):not(.ad11y-skip):not(script) { zoom: 1.1; }
html.ad11y-zoom.ad11y-text-2 body > *:not(.ad11y-btn):not(.ad11y-panel):not(.ad11y-skip):not(script) { zoom: 1.2; }
html.ad11y-zoom.ad11y-text-3 body > *:not(.ad11y-btn):not(.ad11y-panel):not(.ad11y-skip):not(script) { zoom: 1.3; }

html.ad11y-contrast body, html.ad11y-contrast body *:not(svg):not(path):not(circle):not(img):not(video):not(.ad11y-btn):not(.ad11y-step):not(.ad11y-opt[aria-pressed="true"]) {
  background-color: #000 !important; color: #fff !important; border-color: #fff !important; background-image: none !important; text-shadow: none !important;
}
html.ad11y-contrast a, html.ad11y-contrast a * { color: #ffe14d !important; text-decoration: underline !important; }
html.ad11y-contrast .ad11y-btn, html.ad11y-contrast button.ad11y-step, html.ad11y-contrast .ad11y-opt[aria-pressed="true"] { background: #ffe14d !important; color: #000 !important; border-color: #ffe14d !important; }
html.ad11y-contrast .ad11y-opt[aria-pressed="true"] small { color: #000 !important; }

html.ad11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px solid var(--ad11y-focus); outline-offset: 2px; }

html.ad11y-font body, html.ad11y-font body * { font-family: Verdana, Arial, Tahoma, "PingFang SC", "Microsoft YaHei", sans-serif !important; }

html.ad11y-stop *, html.ad11y-stop *::before, html.ad11y-stop *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

html.ad11y-cursor, html.ad11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4 L8 38 L16 30 L22 44 L28 41 L22 28 L34 28 Z' fill='%23000' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") 4 2, auto !important;
}
@media print { .ad11y-btn, .ad11y-panel, .ad11y-skip { display: none !important; } }
