/* Accessibility settings: the floating button, its panel, and what each
   setting does to the page. Shared by the landing page and the legal pages.
   The widget supplements an accessible build; it does not replace it. */

.a11y-btn {
  position: fixed; z-index: 70;
  left: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; padding: 0;
  background: #000; color: #fff; border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18), 0 8px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), bottom 260ms cubic-bezier(0.23, 1, 0.32, 1);
  -webkit-tap-highlight-color: transparent;
}
.a11y-btn:active { transform: scale(0.96); }
.a11y-btn svg { width: 26px; height: 26px; }
html.dock-on .a11y-btn { bottom: calc(84px + env(safe-area-inset-bottom)); }
.a11y-btn:focus-visible, .a11y-panel :focus-visible { outline: 3px solid #b2532a; outline-offset: 3px; }

.a11y-panel {
  position: fixed; z-index: 71;
  left: 16px; bottom: calc(76px + env(safe-area-inset-bottom));
  width: min(340px, calc(100vw - 32px)); max-height: calc(100svh - 110px); overflow: auto;
  background: #fff; color: #000; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 18px 40px rgba(0, 0, 0, 0.16);
  padding: 18px; direction: rtl; text-align: right;
  font: 400 16px/1.45 "Assistant", Arial, "Arial Hebrew", sans-serif;
  transform-origin: bottom left;
  transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
html.dock-on .a11y-panel { bottom: calc(144px + env(safe-area-inset-bottom)); }
.a11y-panel[hidden] { display: none; }
.a11y-panel.is-entering { opacity: 0; transform: scale(0.97) translateY(4px); }
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.a11y-panel h2 { margin: 0; font-size: 19px; font-weight: 700; }
.a11y-x { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: #000; cursor: pointer; border-radius: 4px; padding: 0; }
.a11y-x svg { width: 20px; height: 20px; }
.a11y-size { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 10px; }
.a11y-size output { min-width: 4.2em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.a11y-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.a11y-opt {
  width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border: 1px solid rgba(0, 0, 0, 0.22); border-radius: 4px;
  background: #fff; color: #000; font: inherit; font-weight: 600; text-align: right; cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.a11y-opt:active { transform: scale(0.985); }
.a11y-opt__state { width: 20px; height: 20px; border-radius: 3px; border: 1.5px solid rgba(0, 0, 0, 0.45); flex: none; display: grid; place-items: center; }
.a11y-opt__state svg { width: 14px; height: 14px; opacity: 0; color: #fff; }
.a11y-opt[aria-pressed="true"] { border-color: #b2532a; background: rgba(178, 83, 42, 0.06); }
.a11y-opt[aria-pressed="true"] .a11y-opt__state { background: #b2532a; border-color: #b2532a; }
.a11y-opt[aria-pressed="true"] .a11y-opt__state svg { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .a11y-opt:hover { border-color: #000; } }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, 0.12); }
.a11y-reset { border: 0; background: none; padding: 6px 0; font: inherit; font-weight: 700; color: #b2532a; text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }
.a11y-foot a { color: #000; font-weight: 600; }
.a11y-note { margin: 10px 0 0; font-size: 13px; color: rgba(0, 0, 0, 0.7); }
@media print { .a11y-btn, .a11y-panel { display: none; } }

/* ---------------------------------------------------------- settings --
   Each one is a class on <html>. Filters go on the page regions, never on
   <html> or <body>: a filter there turns every position:fixed element into
   one that scrolls away. */

/* High contrast: pure black on white, no soft greys, solid backings behind
   copy that sits on photographs, stronger rules. */
html.a11y-contrast {
  --sc-ink-soft: #000; --hair: rgba(0, 0, 0, 0.7); --hair-strong: #000;
}
html.a11y-contrast .body, html.a11y-contrast .fine, html.a11y-contrast figcaption,
html.a11y-contrast .spec dt, html.a11y-contrast .dist dd, html.a11y-contrast .unit__tag,
html.a11y-contrast .unit__area small, html.a11y-contrast .floor-btn__meta, html.a11y-contrast .ledger li,
html.a11y-contrast .hero__vat, html.a11y-contrast .hero__sub, html.a11y-contrast .field__opt,
html.a11y-contrast .foot__legal, html.a11y-contrast .bar__level, html.a11y-contrast .legal p, html.a11y-contrast .legal li { color: #000 !important; }
html.a11y-contrast .body--light, html.a11y-contrast .dev__facts li, html.a11y-contrast .dev__arch,
html.a11y-contrast .floor-btn[aria-checked="true"] .floor-btn__meta { color: #fff !important; }
html.a11y-contrast .hero__copy { background: #fff; padding: 1rem 1.25rem; outline: 2px solid #000; }
html.a11y-contrast .roof__scrim { background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.75) 45%, transparent 100%); }
html.a11y-contrast .loc__tag { outline: 2px solid #000; }
html.a11y-contrast .btn--primary { outline: 2px solid #000; outline-offset: 2px; }
html.a11y-contrast .field input, html.a11y-contrast .field select { border: 2px solid #000; }

/* Greyscale */
html.a11y-gray main, html.a11y-gray header, html.a11y-gray footer, html.a11y-gray .dock { filter: grayscale(1); }

/* Highlighted links */
html.a11y-links a:not(.a11y-panel a) {
  text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 0.25em !important;
  outline: 2px solid #b2532a; outline-offset: 2px;
}

/* Readable font: a plain system face, wider spacing, no display serif. */
html.a11y-font {
  --sc-font-display: Arial, "Arial Hebrew", Helvetica, sans-serif;
  --sc-font-text: Arial, "Arial Hebrew", Helvetica, sans-serif;
  --latin: Arial, Helvetica, sans-serif;
}
html.a11y-font body { letter-spacing: 0.01em; word-spacing: 0.06em; }
html.a11y-font .body, html.a11y-font p, html.a11y-font li, html.a11y-font dd { line-height: 1.75; }

/* Stop animation: everything settled and visible, nothing moves. */
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-still [data-sc-cue], html.a11y-still [data-sc-in], html.a11y-still [data-sc-stagger] > *,
html.a11y-still .sc-split__i { opacity: 1 !important; transform: none !important; }
html.a11y-still [data-sc-reveal] { clip-path: none !important; }
html.a11y-still .loc__pin { height: auto !important; }
html.a11y-still .loc__stage { position: static !important; height: auto !important; }
html.a11y-still .loc__map { position: relative !important; left: auto !important; top: auto !important; width: 100% !important; transform: none !important; }
html.a11y-still .roof__media, html.a11y-still .hero__scene, html.a11y-still .hero__copy { transform: none !important; }
html.a11y-still .hero::after { display: none; }
