/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #105289;
    color: #fff;
    padding: 12px 24px;
    z-index: 10000;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 6px 6px;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #f9a825;
    outline-offset: 2px;
}

/* Accessibility Toolbar */
#aioa-toolbar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#aioa-toolbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid #555;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #1a1a2e;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: background 0.2s, transform 0.1s;
}
#aioa-toolbar button:hover,
#aioa-toolbar button:focus {
    background: #16213e;
    transform: translateX(-4px);
    outline: 2px solid #f9a825;
    outline-offset: -2px;
}
#aioa-toolbar button[aria-pressed="true"] {
    background: #105289;
    border-color: #105289;
}
#aioa-toolbar .aioa-icon {
    font-style: normal;
    font-family: FontAwesome;
    font-size: 1.2em;
}

/* Screen reader only text */
.visually-hidden {
    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;
}

/* High Contrast Mode */
body.aioa-high-contrast {
    background: #000 !important;
    color: #fff !important;
}
body.aioa-high-contrast #wrap {
    background: #000 !important;
}
body.aioa-high-contrast #page-body {
    background: #000 !important;
    color: #fff !important;
}
body.aioa-high-contrast .headerbar {
    background: #1a1a1a !important;
    border-bottom: 3px solid #ff0 !important;
}
body.aioa-high-contrast h1,
body.aioa-high-contrast h2,
body.aioa-high-contrast h3 {
    color: #ff0 !important;
}
body.aioa-high-contrast a {
    color: #6cf !important;
    text-decoration: underline !important;
}
body.aioa-high-contrast a:hover,
body.aioa-high-contrast a:focus {
    color: #ff0 !important;
}
body.aioa-high-contrast .forabg {
    background: #1a1a1a !important;
}
body.aioa-high-contrast .forabg .header {
    background: #333 !important;
    border-bottom: 2px solid #ff0 !important;
}
body.aioa-high-contrast .topiclist.forums li {
    border-bottom-color: #555 !important;
}
body.aioa-high-contrast .topiclist.forums li.row dt a {
    color: #6cf !important;
}
body.aioa-high-contrast input,
body.aioa-high-contrast textarea,
body.aioa-high-contrast select {
    background: #222 !important;
    color: #fff !important;
    border-color: #ff0 !important;
}
body.aioa-high-contrast .button1,
body.aioa-high-contrast .button2 {
    background: #333 !important;
    color: #fff !important;
    border: 2px solid #ff0 !important;
}
body.aioa-high-contrast #page-footer {
    background: #1a1a1a !important;
    color: #fff !important;
}

/* Text Size Modes */
body.aioa-large-text {
    font-size: 115% !important;
}
body.aioa-large-text #wrap {
    font-size: 115% !important;
}
body.aioa-extra-large-text {
    font-size: 130% !important;
}
body.aioa-extra-large-text #wrap {
    font-size: 130% !important;
}

/* Live region for announcements */
#aioa-live-region {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
