/* Shared accessibility layer: widget, focus styles, skip link, user preferences */

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #ffbf47 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.6) !important;
}

/* Skip link */
.dt-skip-link {
    position: fixed; top: 10px; inset-inline-start: 10px; z-index: 3000;
    background: #ffbf47; color: #000; font-weight: 700; padding: 10px 18px; border-radius: 8px;
    text-decoration: none; transform: translateY(-200%); transition: transform 0.15s;
}
.dt-skip-link:focus { transform: translateY(0); }

.dt-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Floating widget: bottom-left in Hebrew, bottom-right in English */
#dt-acc { position: fixed; bottom: 20px; z-index: 2500; font-family: 'Assistant', Arial, sans-serif; }
html[dir="rtl"] #dt-acc { left: 20px; }
html[dir="ltr"] #dt-acc { right: 20px; }
#dt-acc-toggle {
    width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
    background: #fff; color: #0b3d91; border: 2px solid #00d2ff;
    font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
#dt-acc-panel {
    position: absolute; bottom: 64px; width: 250px; max-width: calc(100vw - 40px);
    background: #fff; color: #111; border-radius: 12px; padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
html[dir="rtl"] #dt-acc-panel { left: 0; }
html[dir="ltr"] #dt-acc-panel { right: 0; }
#dt-acc-panel[hidden] { display: none; }
#dt-acc-panel h2 { font-size: 1.05rem; margin: 0 0 10px; text-align: center; color: #111; }
.dt-acc-opt {
    display: block; width: 100%; margin-bottom: 8px; padding: 10px 12px; cursor: pointer;
    background: #f1f5f9; color: #111; border: 1px solid #94a3b8; border-radius: 8px;
    font-family: inherit; font-size: 0.95rem; font-weight: 600; text-align: start;
}
.dt-acc-opt[aria-pressed="true"] { background: #0b3d91; color: #fff; border-color: #0b3d91; }
.dt-acc-opt[aria-pressed="true"]::after { content: " ✓"; }
.dt-acc-reset { background: #b91c1c; color: #fff; border-color: #b91c1c; }
#dt-acc-panel .dt-acc-statement { display: block; text-align: center; margin-top: 6px; color: #0b3d91; font-weight: 700; text-decoration: underline; }

/* Preferences */
html.dt-large-text { font-size: 125% !important; }
html.dt-large-text body p, html.dt-large-text body li, html.dt-large-text body label,
html.dt-large-text body input, html.dt-large-text body textarea { font-size: 1.15em; }
html.dt-large-text #dt-acc-panel .dt-acc-opt { font-size: 1rem; }

html.dt-high-contrast body, html.dt-high-contrast body *:not(img):not(svg):not(svg *):not(#dt-acc):not(#dt-acc *) {
    background-color: #000 !important; background-image: none !important;
    color: #fff !important; border-color: #fff !important; text-shadow: none !important; box-shadow: none !important;
}
html.dt-high-contrast body a:not(#dt-acc *) { color: #ffff00 !important; }
html.dt-high-contrast input, html.dt-high-contrast textarea { border: 2px solid #fff !important; }

html.dt-highlight-links body a:not(#dt-acc *) {
    text-decoration: underline !important; background: #ffff00 !important; color: #000 !important; font-weight: 700 !important;
}

html.dt-readable-font body, html.dt-readable-font body * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: 0.02em; }

html.dt-no-motion *, html.dt-no-motion *::before, html.dt-no-motion *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Contact form status message */
.dt-form-status { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.dt-form-status:empty { display: none; }
.dt-form-status.ok { background: #dcfce7; color: #14532d; }
.dt-form-status.err { background: #fee2e2; color: #7f1d1d; }
.dt-honeypot { display: none !important; }

@media print { #dt-acc, .dt-skip-link { display: none !important; } }

/* Clickable phone / email links and footer statement link */
a.dt-contact-link, a.dt-footer-a11y { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a.dt-contact-link:hover, a.dt-footer-a11y:hover { color: #00d2ff; }
