/* Shared accessibility layer for the /onewebmedia tools (15.11.2026, Modern Web Guidance accessibility.md).
   Loaded after each tool's own styles. */

/* Visible focus ring for keyboard users: #8E6738 reaches 4.7:1 on white/cream (WCAG 2.4.11 needs 3:1). */
:focus-visible { outline: 3px solid #8E6738 !important; outline-offset: 2px !important; box-shadow: 0 0 0 2px #fff !important; }
/* The white band between element and ring keeps 3:1 on dark tool areas too (e.g. CRR tab bar #4a3f35). */
input[type="range"]:focus-visible { outline-offset: 4px !important; }
/* A radio inside a styled option card: show the ring on the whole card */
.option:has(input:focus-visible) { outline: 3px solid #8E6738; outline-offset: 2px; }

/* Visually hidden, still read by screen readers */
.gk-vh { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Former div/span controls that are now real buttons: keep their look */
button.tab { font: inherit; background: transparent; border-width: 0 0 3px; border-style: solid; border-color: transparent; }
button.upload-area { display: block; width: 100%; font: inherit; color: inherit; }
button.close { background: none; border: 0; padding: 0; }

/* Former div questions that are now fieldset + legend */
fieldset.question { min-width: 0; margin-inline: 0; padding-inline: 0; padding-top: 0; border-width: 0 0 1px; border-style: solid; border-color: #e9ecef; }
legend.question-title { display: block; width: 100%; padding: 0; float: left; }
legend.question-title + * { clear: both; }

/* Native dialog (OFAC info) keeps the old full-screen overlay look */
dialog.gk-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; overflow: auto; }
dialog.gk-dialog::backdrop { background: rgba(0, 0, 0, .6); }

/* Gap-Check: hint when questions are still open */
.quiz-hint { margin: 12px 0 0; color: #9b2c1f; font-weight: 600; }
.quiz-hint:empty { display: none; }

/* Text contrast 4.5:1 (3:1 for large text), WCAG 1.4.3. Smallest change from the old colour, per tool (15.11.2026, axe-core). */
legend.question-title { color: #5a6fce; }
[data-tool="Alert_Estimator"] #timeValue, [data-tool="Alert_Estimator"] #rateValue { color: #2977ab; }
[data-tool="Alert_Estimator"] .footer a { color: #61afe3; }
[data-tool="AMLR_Gap_Check"] #auswerten { background: #956e3f; border-color: #956e3f; }
[data-tool="AMLR_Gap_Check"] .check-disclaimer a { text-decoration: underline; }
[data-tool="CRR"] .tab.active { color: #d2a579; }
[data-tool="False_Positive_Trend_Analyzer"] .no-data { color: #747474; }
[data-tool="goAML_XML_Generator"] .warning, [data-tool="goAML_XML_Generator"] .warning strong { color: #c44500; }
[data-tool="goAML_XML_Generator"] .footer, [data-tool="goAML_XML_Generator"] .footer p { color: #717171; }
[data-tool="MAR_Impact_Analysis"] .btn:not(.btn-success):not(.btn-danger) { background: #2a7bb1; }
[data-tool="OFAC_Screening_Demo"] #searchBtn:not(:disabled) { background: #5a6fce; }
[data-tool="OFAC_Screening_Demo"] .footer a { color: #5a6fce; }
[data-tool="UBO_Visualizer"] #thresholdValue { color: #00a3a5; }
[data-tool="UBO_Visualizer"] .btn-success { background: #208738; }
[data-tool="UBO_Visualizer"] .ubo-card h4, [data-tool="UBO_Visualizer"] .examples-section h4 { color: #006adb; }
[data-tool="UBO_Visualizer"] .example-btn { background: #0071eb; }
