/* Accessibility Statement & VPAT Pages Styling */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Account for fixed header when scrolling to anchors */
html {
    scroll-padding-top: 100px;
}

.accessibility-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 32px 120px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

/* Main Content Area */
.accessibility-content {
    display: block;
}

/* Section Styling */
.a11y-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #E5E5E5;
}

.a11y-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.a11y-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #002B58;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #FED402;
}

.a11y-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #002B58;
    margin: 32px 0 16px 0;
}

.a11y-section p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.a11y-section ul,
.a11y-section ol {
    margin: 16px 0 16px 0;
    padding-left: 24px;
}

.a11y-section li {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Lists */
.a11y-features-list,
.a11y-limitations-list,
.a11y-standards-list,
.a11y-resources-list,
.a11y-legal-list,
.a11y-testing-list,
.a11y-roadmap-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.a11y-features-list li,
.a11y-limitations-list li,
.a11y-standards-list li,
.a11y-resources-list li,
.a11y-legal-list li,
.a11y-testing-list li,
.a11y-roadmap-list li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(2, 104, 187, 0.04);
    border-left: 3px solid #0268BB;
    padding-left: 16px;
}

.a11y-features-list strong,
.a11y-limitations-list strong,
.a11y-standards-list strong,
.a11y-resources-list strong,
.a11y-legal-list strong,
.a11y-testing-list strong,
.a11y-roadmap-list strong {
    color: #002B58;
}

/* Contact Info */
.contact-info {
    background: rgba(0, 43, 88, 0.04);
    border: 1px solid #E5E5E5;
    padding: 24px;
    margin: 20px 0;
    border-radius: 0;
}

.contact-info dl {
    margin: 0;
}

.contact-info dt {
    font-weight: 600;
    color: #002B58;
    margin-top: 12px;
}

.contact-info dt:first-child {
    margin-top: 0;
}

.contact-info dd {
    margin: 4px 0 0 0;
    color: #555;
}

.contact-info p {
    margin: 12px 0;
}

.contact-info a {
    color: #0268BB;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.response-time {
    font-size: 0.875rem;
    color: #767676;
    margin-top: 16px;
}

/* VPAT Info Box */
.vpat-info {
    background: rgba(254, 212, 2, 0.08);
    border: 1px solid #FED402;
    padding: 32px;
    margin: 20px 0;
    border-radius: 0;
}

.vpat-info dl {
    margin: 0;
}

.vpat-info dt {
    font-weight: 600;
    color: #002B58;
    margin-top: 12px;
    display: inline-block;
    width: 120px;
}

.vpat-info dt:first-child {
    margin-top: 0;
}

.vpat-info dd {
    display: inline;
    margin: 0;
    color: #555;
}

.vpat-info dd::after {
    content: '\A';
    white-space: pre;
}

/* Tables */
.vpat-table,
.vpat-criteria-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.vpat-table thead,
.vpat-criteria-table thead {
    background: #002B58;
    color: white;
}

.vpat-table th,
.vpat-criteria-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #E5E5E5;
}

.vpat-table td,
.vpat-criteria-table td {
    padding: 12px;
    border: 1px solid #E5E5E5;
    color: #555;
}

.vpat-table tbody tr:nth-child(even),
.vpat-criteria-table tbody tr:nth-child(even) {
    background: rgba(0, 43, 88, 0.02);
}

.vpat-table tbody tr:hover,
.vpat-criteria-table tbody tr:hover {
    background: rgba(254, 212, 2, 0.08);
}

/* Status Badges */
.status-supports {
    display: inline-block;
    padding: 4px 12px;
    background: #10B981;
    color: white;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-partial {
    display: inline-block;
    padding: 4px 12px;
    background: #F59E0B;
    color: white;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-not-supports {
    display: inline-block;
    padding: 4px 12px;
    background: #EF4444;
    color: white;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Callout Boxes */
.a11y-callout {
    background: rgba(2, 104, 187, 0.08);
    border: 2px solid #0268BB;
    padding: 32px;
    margin-bottom: 32px;
    border-radius: 0;
}

.a11y-callout h2 {
    border-bottom-color: #0268BB;
}

/* Feedback Section */
.a11y-feedback {
    background: rgba(254, 212, 2, 0.08);
    border: 2px solid #FED402 !important;
    padding: 32px !important;
    margin-bottom: 80px !important;
    border-bottom: 2px solid #FED402 !important;
}

.a11y-feedback h2 {
    border-bottom-color: #FED402;
}

/* Ensure feedback section is not affected by last-child rules */
.a11y-section:has(.a11y-feedback) {
    border-bottom: none;
    margin-bottom: 80px;
    padding-bottom: 0;
}

/* Button Styling */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-primary {
    background: #002B58;
    color: white;
}

.btn-primary:hover {
    background: #001a3a;
}

.btn-primary:focus-visible {
    outline: 2px solid #002B58;
}

/* Sidebar Navigation */
.accessibility-sidebar {
    position: sticky;
    top: 32px;
}

.sidebar-nav {
    background: #fff;
    border: 1px solid #E5E5E5;
    padding: 20px;
    border-radius: 0;
}

.sidebar-nav h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #002B58;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E5E5;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
    padding: 0;
}

.sidebar-nav a {
    display: block;
    padding: 10px 0 10px 8px;
    color: #0268BB;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #F0F0F0;
}

.sidebar-nav a:last-child {
    border-bottom: none;
}

.sidebar-nav a:hover {
    background: #F9F9F9;
    text-decoration: underline;
    padding-left: 8px;
}

.sidebar-nav a:focus-visible {
    outline: 2px solid #0268BB;
    outline-offset: -2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .accessibility-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .accessibility-sidebar {
        position: static;
    }

    .sidebar-nav {
        margin-top: 32px;
    }
}

@media (max-width: 768px) {
    .accessibility-container {
        padding: 20px 16px 48px;
    }

    .a11y-section h2 {
        font-size: 1.5rem;
    }

    .a11y-section h3 {
        font-size: 1.125rem;
    }

    .vpat-table,
    .vpat-criteria-table {
        font-size: 0.875rem;
    }

    .vpat-table th,
    .vpat-table td,
    .vpat-criteria-table th,
    .vpat-criteria-table td {
        padding: 8px;
    }

    .contact-info {
        padding: 16px;
    }

    .vpat-info {
        padding: 16px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Stack definition list on mobile */
    .vpat-info dt {
        display: block;
        margin-top: 12px;
        margin-bottom: 4px;
        width: auto;
    }

    .vpat-info dd {
        display: block;
        margin-bottom: 0;
    }
}

/* Print Styles */
@media print {
    .accessibility-sidebar {
        display: none;
    }

    .accessibility-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .a11y-section {
        page-break-inside: avoid;
    }

    a {
        color: #0268BB;
    }

    .vpat-table,
    .vpat-criteria-table {
        page-break-inside: avoid;
    }
}

/* Focus Management */
:focus-visible {
    outline: 2px solid #002B58;
    outline-offset: 2px;
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .accessibility-content {
        background: transparent;
    }
}
