/* A11yRemedy Docs. Matches the site: dark background, Outfit headings,
 * Giest body, green accents. Contrast checked against #0D131F. */
.a11yr-docs,
.a11yr-docs-home,
.a11yr-docs-landing,
.a11yr-docs-search-page {
  --d-bg: #0d131f;
  --d-panel: #111827;
  --d-line: #1f2937;
  --d-line-strong: #2a3546;
  --d-text: #e5e7eb;
  --d-muted: #9ca3af;
  --d-head: #f9fafb;
  --d-accent: #34d399;
  --d-accent-strong: #6ee7b7;
  --d-focus: #10b981;
  color: var(--d-text);
  font-family: Giest, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

.a11yr-docs {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 48px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px 96px;
  background: var(--d-bg);
}

.a11yr-docs a { color: var(--d-accent); text-decoration: underline; text-underline-offset: 3px; }
.a11yr-docs a:hover { color: var(--d-accent-strong); text-decoration-thickness: 2px; }
.a11yr-docs a:focus-visible,
.a11yr-docs button:focus-visible,
.a11yr-docs input:focus-visible,
.a11yr-docs-home a:focus-visible {
  outline: 3px solid var(--d-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.a11yr-docs .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Sidebar */
.a11yr-docs__side { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; font-size: 15px; }
.a11yr-docs-search { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 24px; }
.a11yr-docs-search label { grid-column: 1 / -1; font-size: 13px; color: var(--d-muted); }
.a11yr-docs-search input {
  min-width: 0; padding: 8px 10px; border: 1px solid var(--d-line-strong); border-radius: 6px;
  background: var(--d-panel); color: var(--d-head); font: inherit;
}
.a11yr-docs-search button,
.a11yr-docs__menu {
  padding: 8px 12px; border: 1px solid var(--d-line-strong); border-radius: 6px;
  background: var(--d-panel); color: var(--d-head); font: inherit; cursor: pointer;
}
.a11yr-docs-nav ul { list-style: none; margin: 0; padding: 0; }
.a11yr-docs-nav__section { margin-bottom: 6px; }
.a11yr-docs-nav__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a11yr-docs-nav__head > a { font-family: Outfit, sans-serif; font-weight: 600; color: var(--d-head); text-decoration: none; padding: 4px 0; }
.a11yr-docs-nav a { color: var(--d-muted); text-decoration: none; display: block; padding: 4px 0 4px 12px; border-left: 2px solid transparent; }
.a11yr-docs-nav__head > a { padding-left: 0; border-left: 0; }
.a11yr-docs-nav a:hover { color: var(--d-head); text-decoration: underline; }
.a11yr-docs-nav a[aria-current="page"] { color: var(--d-accent); border-left-color: var(--d-accent); font-weight: 600; }
.a11yr-docs-nav__head > a[aria-current="page"] { border-left: 0; }
.a11yr-docs-nav__pages ul ul a { padding-left: 24px; }
.a11yr-docs-nav__toggle {
  width: 32px; height: 32px; flex: none; border: 0; border-radius: 6px;
  background: transparent; color: var(--d-muted); cursor: pointer; position: relative;
}
.a11yr-docs-nav__toggle::before {
  content: ""; position: absolute; left: 12px; top: 10px; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
  transition: transform 0.15s;
}
.a11yr-docs-nav__toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.a11yr-docs-nav__toggle:hover { color: var(--d-head); background: var(--d-panel); }
.a11yr-docs-nav.is-enhanced .a11yr-docs-nav__head:has(.a11yr-docs-nav__toggle[aria-expanded="false"]) + .a11yr-docs-nav__pages { display: none; }
@media (prefers-reduced-motion: reduce) { .a11yr-docs-nav__toggle::before { transition: none; } }

/* Main column */
.a11yr-docs__main { min-width: 0; max-width: 72ch; }
.a11yr-docs-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; font-size: 14px; color: var(--d-muted); }
.a11yr-docs-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.a11yr-docs-crumbs a { color: var(--d-muted); text-decoration: none; }
.a11yr-docs-crumbs a:hover { color: var(--d-head); text-decoration: underline; }
.a11yr-docs h1 { font-family: Outfit, sans-serif; font-weight: 700; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.15; color: var(--d-head); margin: 0 0 12px; }
.a11yr-docs__summary { font-size: 19px; color: var(--d-muted); margin: 0 0 28px; }
.a11yr-docs__content h2,
.a11yr-docs-related h2 { font-family: Outfit, sans-serif; font-weight: 600; font-size: 1.55rem; line-height: 1.25; color: var(--d-head); margin: 48px 0 12px; scroll-margin-top: 96px; }
.a11yr-docs__content h3 { font-family: Outfit, sans-serif; font-weight: 600; font-size: 1.2rem; color: var(--d-head); margin: 32px 0 8px; scroll-margin-top: 96px; }
.a11yr-docs__content p,
.a11yr-docs__content ul,
.a11yr-docs__content ol { margin: 0 0 16px; }
.a11yr-docs__content li { margin-bottom: 6px; }
.a11yr-docs__content strong { color: var(--d-head); }
.a11yr-docs__content code {
  font-family: "Giest Mono", ui-monospace, monospace; font-size: 0.88em;
  background: var(--d-panel); border: 1px solid var(--d-line); border-radius: 4px; padding: 1px 5px; color: var(--d-head);
}
.a11yr-docs__content pre { background: var(--d-panel); border: 1px solid var(--d-line); border-radius: 8px; padding: 16px; overflow-x: auto; }
.a11yr-docs__content pre code { border: 0; padding: 0; background: none; }
.a11yr-docs__content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.a11yr-docs__content th,
.a11yr-docs__content td { border: 1px solid var(--d-line-strong); padding: 10px 12px; text-align: left; vertical-align: top; }
.a11yr-docs__content th { color: var(--d-head); background: var(--d-panel); }
.a11yr-docs__content figure { margin: 24px 0; }
.a11yr-docs__content img { max-width: 100%; height: auto; border: 1px solid var(--d-line-strong); border-radius: 8px; }
.a11yr-docs__content figcaption { font-size: 14px; color: var(--d-muted); margin-top: 8px; }

/* Callouts: a visible label word, not colour alone */
.a11yr-docs .docs-note,
.a11yr-docs .docs-tip,
.a11yr-docs .docs-warning {
  border: 1px solid var(--d-line-strong); border-left-width: 4px; border-radius: 8px;
  background: var(--d-panel); padding: 14px 18px; margin: 24px 0;
}
.a11yr-docs .docs-note { border-left-color: #60a5fa; }
.a11yr-docs .docs-tip { border-left-color: var(--d-accent); }
.a11yr-docs .docs-warning { border-left-color: #f59e0b; }
.a11yr-docs .docs-note > :last-child,
.a11yr-docs .docs-tip > :last-child,
.a11yr-docs .docs-warning > :last-child { margin-bottom: 0; }
.a11yr-docs .docs-callout-label { display: block; font-weight: 700; color: var(--d-head); margin-bottom: 4px; }

/* Video */
.a11yr-docs-video { margin: 0 0 32px; }
.a11yr-docs-video__link { position: relative; display: block; max-width: 640px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; border: 1px solid var(--d-line-strong); background: #000; }
.a11yr-docs-video__link img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.a11yr-docs-video__play {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 6px;
  background: rgba(13, 19, 31, 0.92); color: var(--d-head); font-weight: 600; text-decoration: none;
}
.a11yr-docs-video__frame { width: 100%; max-width: 640px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }

/* Related, pager, updated */
.a11yr-docs-related ul { margin: 0; padding-left: 20px; }
.a11yr-docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0 24px; }
.a11yr-docs-pager a {
  display: block; padding: 14px 16px; border: 1px solid var(--d-line-strong); border-radius: 8px;
  text-decoration: none; background: var(--d-panel);
}
.a11yr-docs-pager a:hover { border-color: var(--d-accent); text-decoration: none; }
.a11yr-docs-pager__next { grid-column: 2; text-align: right; }
.a11yr-docs-pager__label { display: block; font-size: 13px; color: var(--d-muted); }
.a11yr-docs-pager__title { color: var(--d-head); font-weight: 600; }
.a11yr-docs-updated { font-size: 14px; color: var(--d-muted); }

/* On this page */
.a11yr-docs__toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.a11yr-docs-toc__title { font-family: "Giest Mono", monospace; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--d-muted); margin: 0 0 8px; }
.a11yr-docs__toc ul,
.a11yr-docs__toc-inline ul { list-style: none; margin: 0; padding: 0; }
.a11yr-docs__toc ul ul,
.a11yr-docs__toc-inline ul ul { padding-left: 12px; }
.a11yr-docs__toc a,
.a11yr-docs__toc-inline a { display: block; padding: 3px 0; color: var(--d-muted); text-decoration: none; }
.a11yr-docs__toc a:hover,
.a11yr-docs__toc-inline a:hover { color: var(--d-head); text-decoration: underline; }
.a11yr-docs__toc-inline { display: none; border: 1px solid var(--d-line-strong); border-radius: 8px; padding: 12px 16px; margin: 0 0 28px; background: var(--d-panel); }

/* Docs home */
.a11yr-docs-landing { background: var(--d-bg); padding: 56px 24px 96px; }
.a11yr-docs-landing > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.a11yr-docs-landing__hero { text-align: center; margin-bottom: 48px; }
.a11yr-docs-landing__hero h1 { font-family: Outfit, sans-serif; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; color: var(--d-head); margin: 0 0 14px; }
.a11yr-docs-landing__lede { max-width: 60ch; margin: 0 auto 28px; font-size: 19px; color: var(--d-muted); }
.a11yr-docs-landing .a11yr-docs-search { max-width: 560px; margin: 0 auto; text-align: left; }
.a11yr-docs-landing .a11yr-docs-search input,
.a11yr-docs-landing .a11yr-docs-search button { padding: 12px 14px; font-size: 17px; }
.a11yr-docs-landing .a11yr-docs-search input,
.a11yr-docs-landing .a11yr-docs-search button { border: 1px solid var(--d-line-strong); border-radius: 8px; background: var(--d-panel); color: var(--d-head); font-family: inherit; }
.a11yr-docs-landing .a11yr-docs-search label { grid-column: 1 / -1; font-size: 14px; color: var(--d-muted); }
.a11yr-docs-landing a:focus-visible,
.a11yr-docs-landing input:focus-visible,
.a11yr-docs-landing button:focus-visible { outline: 3px solid var(--d-focus); outline-offset: 2px; }

/* Docs home sections */
.a11yr-docs-home { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.a11yr-docs-home__section { border: 1px solid var(--d-line-strong); border-radius: 12px; background: var(--d-panel); padding: 20px 22px; }
.a11yr-docs-home__section h2 { font-family: Outfit, sans-serif; font-size: 1.25rem; margin: 0 0 8px; }
.a11yr-docs-home__section h2 a { color: var(--d-head); text-decoration: none; }
.a11yr-docs-home__section h2 a:hover { text-decoration: underline; }
.a11yr-docs-home__section p { color: var(--d-muted); font-size: 15px; margin: 0 0 12px; }
.a11yr-docs-home__section ul { margin: 0; padding-left: 18px; font-size: 15px; }
.a11yr-docs-home__section a { color: var(--d-accent); }

/* Tablet: TOC moves inline */
@media (max-width: 1199px) {
  .a11yr-docs { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; }
  .a11yr-docs__toc { display: none; }
  .a11yr-docs__toc-inline { display: block; }
}

/* Phone: one column, the sidebar behind a "Docs menu" button */
@media (max-width: 767px) {
  .a11yr-docs { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 16px 64px; }
  .a11yr-docs__side { position: static; max-height: none; overflow: visible; }
  .a11yr-docs__side.has-menu #a11yr-docs-side-nav,
  .a11yr-docs-js .a11yr-docs__side #a11yr-docs-side-nav { display: none; margin-top: 12px; }
  .a11yr-docs__side.has-menu.is-menu-open #a11yr-docs-side-nav,
  .a11yr-docs-js .a11yr-docs__side.is-menu-open #a11yr-docs-side-nav { display: block; }
  .a11yr-docs-pager { grid-template-columns: 1fr; }
  .a11yr-docs-pager__next { grid-column: 1; }
}

/* The site's Elementor kit styles every button and input (green fill,
 * white text: 2.5:1, too low for small text). These rules are more
 * specific than the kit's, hover and focus included. */
body .a11yr-docs .a11yr-docs-search button,
body .a11yr-docs-landing .a11yr-docs-search button,
body .a11yr-docs .a11yr-docs__menu,
body .a11yr-docs .a11yr-docs-search button:is(:hover, :focus, :active),
body .a11yr-docs-landing .a11yr-docs-search button:is(:hover, :focus, :active),
body .a11yr-docs .a11yr-docs__menu:is(:hover, :focus, :active) {
  background: #10b981;
  color: #0d131f;
  border: 1px solid #10b981;
  border-radius: 6px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
}
body .a11yr-docs .a11yr-docs-search button:hover,
body .a11yr-docs-landing .a11yr-docs-search button:hover,
body .a11yr-docs .a11yr-docs__menu:hover { background: #34d399; border-color: #34d399; }
body .a11yr-docs .a11yr-docs__menu,
body .a11yr-docs .a11yr-docs__menu:is(:hover, :focus, :active) {
  background: var(--d-panel);
  color: var(--d-head);
  border-color: var(--d-line-strong);
}
body .a11yr-docs .a11yr-docs-nav .a11yr-docs-nav__toggle,
body .a11yr-docs .a11yr-docs-nav .a11yr-docs-nav__toggle:is(:hover, :focus, :active) {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--d-muted);
  box-shadow: none;
}
body .a11yr-docs .a11yr-docs-nav .a11yr-docs-nav__toggle:hover { background: var(--d-panel); color: var(--d-head); }
body .a11yr-docs .a11yr-docs-search input,
body .a11yr-docs-landing .a11yr-docs-search input,
body .a11yr-docs .a11yr-docs-search input:focus,
body .a11yr-docs-landing .a11yr-docs-search input:focus {
  background: var(--d-panel);
  color: var(--d-head);
  border: 1px solid #4b5563;
  border-radius: 6px;
}
body .a11yr-docs-landing .a11yr-docs-search input,
body .a11yr-docs-landing .a11yr-docs-search button { padding: 12px 14px; font-size: 17px; }

/* The "Docs menu" button only exists on phones. */
body .a11yr-docs .a11yr-docs__menu { display: none; }
@media (max-width: 767px) {
  body .a11yr-docs .a11yr-docs__side.has-menu .a11yr-docs__menu,
  .a11yr-docs-js body .a11yr-docs .a11yr-docs__side .a11yr-docs__menu { display: block; width: 100%; text-align: left; }
}

/* Keep the page dark around the docs (the theme's own page background is
 * white where the docs content is narrower than the window). */
body:has(.a11yr-docs-landing),
body:has(.a11yr-docs) { background-color: #0d131f; }

/* Elementor's ".elementor a { text-decoration: none }" loads after this
 * file: links in text must stay underlined (WCAG 1.4.1). */
body .a11yr-docs .a11yr-docs__content a,
body .a11yr-docs .a11yr-docs-related a,
body .a11yr-docs .a11yr-docs__summary a,
body .a11yr-docs-landing p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
body .a11yr-docs .a11yr-docs__content a:hover,
body .a11yr-docs .a11yr-docs-related a:hover { text-decoration-thickness: 2px; }
