/* =========================================
   Accessibility Default CSS
   Includes: Low Vision, Cognitive, Motor, High Contrast
========================================= */

/* ---------- Base ---------- */
body {
    font-family: "Arial", "Helvetica", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* ---------- Skip-to-content link ---------- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* ---------- Links ---------- */
a {
    color: #0066cc;
    text-decoration: underline;
}
a:hover, a:focus {
    background-color: yellow;
    color: #000;
    outline: none;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: sans-serif;
    font-weight: bold;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

/* ---------- Paragraphs & Lists ---------- */
p, li {
    font-size: 18px;
    line-height: 1.8;
}

/* ---------- Containers ---------- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ---------- Forms & Inputs ---------- */
input, textarea, select, button {
    font-size: 18px;
    padding: 12px 14px;
    margin: 5px 0;
    border-radius: 4px;
    border: 2px solid #000;
    box-sizing: border-box;
}

button, input[type="submit"], input[type="button"] {
    cursor: pointer;
    min-width: 140px;
    min-height: 44px;
    background-color: #007bff;
    color: #fff;
    border: none;
    font-weight: bold;
}

button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #0056b3;
}

/* Focus outline for keyboard navigation (Motor Accessibility) */
button:focus, input:focus, select:focus, textarea:focus, a:focus {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

/* ---------- Tables ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 2px solid #000;
}

th, td {
    padding: 10px;
    border: 1px solid #000;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* ---------- Alerts / Notifications ---------- */
.alert {
    padding: 15px;
    margin: 10px 0;
    background-color: #ffffcc;
    border-left: 5px solid #ff9900;
    color: #000;
}

/* ---------- Accessibility Helpers ---------- */
.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

.large-text {
    font-size: 20px !important;
}

.readable-font {
    font-family: Arial, Helvetica, sans-serif !important;
}

.reduced-motion * {
    animation: none !important;
    transition: none !important;
}

/* ---------- Utility Classes ---------- */
.hidden {
    display: none !important;
}

.center {
    text-align: center;
}

.margin-top {
    margin-top: 20px !important;
}

.margin-bottom {
    margin-bottom: 20px !important;
}
