.education-org-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.education-org-sidebar {
    min-width: 0;
    position: sticky;
    top: calc(var(--total-header-height) + 24px);
}

.education-org-menu {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 24px;
}

.education-org-menu-title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.education-org-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.education-org-menu-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
}

.education-org-menu-list a:hover,
.education-org-menu-list a[aria-current="page"] {
    background: var(--color-bg-alt);
    color: var(--color-accent);
}

.education-org-content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.education-org-intro {
    margin: -12px 0 32px;
    color: var(--color-text-secondary);
}

.education-org-section {
    margin-bottom: 40px;
}

.education-org-section:last-child {
    margin-bottom: 0;
}

.education-org-section h2 {
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 1.25;
}

.education-org-note,
.education-org-empty,
.education-org-status {
    padding: 18px 20px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-bg-alt);
    color: var(--color-text-secondary);
}

.education-org-lead {
    color: var(--color-text-secondary);
}

.education-org-text > * + * {
    margin-top: 14px;
}

.education-org-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
    color: var(--color-text-secondary);
}

.education-org-people {
    display: grid;
    gap: 20px;
}

.education-org-person-card {
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-card-bg);
    padding: 28px;
}

.education-org-person-card__name {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
}

.education-org-person-card__role {
    margin: 0 0 18px;
    color: var(--color-accent);
    font-size: 20px;
    font-weight: 600;
}

.education-org-person-card__meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    color: var(--color-text);
}

.education-org-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-card-bg);
}

.education-org-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    overflow-wrap: normal;
}

.education-org-table-wrap:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

[data-education-page="teachers"] .education-org-table {
    min-width: 1700px;
}

[data-education-page="teachers"] .education-org-table th:nth-child(2),
[data-education-page="teachers"] .education-org-table th:nth-child(3),
[data-education-page="teachers"] .education-org-table th:nth-child(8) {
    min-width: 160px;
}

[data-education-page="teachers"] .education-org-table th:nth-child(4) {
    min-width: 220px;
}

[data-education-page="teachers"] .education-org-table th:nth-child(5),
[data-education-page="teachers"] .education-org-table th:nth-child(6),
[data-education-page="teachers"] .education-org-table th:nth-child(7) {
    min-width: 250px;
}

.document-card__link + .document-card__link {
    margin-left: 20px;
}

.education-org-table caption {
    text-align: left;
    padding: 18px 20px 0;
    color: var(--color-text-secondary);
    caption-side: top;
}

.education-org-table thead th {
    padding: 16px 18px;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    text-align: left;
    vertical-align: top;
}

.education-org-table tbody th,
.education-org-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    font-size: 15px;
}

.education-org-table tbody tr:last-child th,
.education-org-table tbody tr:last-child td {
    border-bottom: 0;
}

/* The client's structure reference is a five-column, fully ruled table. */
[data-education-page="structure"] .education-org-table-wrap {
    border: 0;
    border-radius: 0;
}

[data-education-page="structure"] .education-org-table {
    min-width: 760px;
    table-layout: fixed;
}

[data-education-page="structure"] .education-org-table :is(th, td) {
    padding: 10px 8px;
    border: 1px solid var(--color-border);
    background: var(--color-card-bg);
    text-align: center;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

[data-education-page="structure"] .education-org-table th {
    font-weight: 500;
}

[data-education-page="structure"] .education-org-table tbody tr:last-child td {
    border-bottom: 1px solid var(--color-border);
}

[data-education-page="structure"] .education-org-table th:nth-child(1) { width: 5%; }
[data-education-page="structure"] .education-org-table th:nth-child(2) { width: 17%; }
[data-education-page="structure"] .education-org-table th:nth-child(3) { width: 20%; }
[data-education-page="structure"] .education-org-table th:nth-child(4) { width: 28%; }
[data-education-page="structure"] .education-org-table th:nth-child(5) { width: 30%; }

[data-education-page="structure"] .education-org-table a {
    color: var(--color-accent);
    text-decoration: underline;
}

.document-card-list {
    display: grid;
    gap: 14px;
}

.document-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-card-bg);
}

.document-card svg {
    width: 24px;
    height: 24px;
    margin: 12px;
    color: var(--color-accent);
}

.document-card__title {
    margin: 0 0 8px;
    font-size: 18px;
}

.document-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.document-card__body {
    color: var(--color-text-secondary);
}

.document-card__link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.document-card__link:hover {
    text-decoration: underline;
}

.document-group {
    margin-bottom: 28px;
}

.document-group:last-child {
    margin-bottom: 0;
}

.document-group h3 {
    margin-bottom: 14px;
    font-size: 22px;
}

.education-org-kv {
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-card-bg);
}

.education-org-kv-row {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    border-bottom: 1px solid var(--color-border);
}

.education-org-kv-row:last-child {
    border-bottom: 0;
}

.education-org-kv-key {
    padding: 18px 20px;
    background: var(--color-bg-alt);
    font-weight: 600;
}

.education-org-kv-value {
    padding: 18px 20px;
}

.education-org-kv-value p + p {
    margin-top: 10px;
}

.teacher-profile {
    display: grid;
    gap: 24px;
}

.teacher-profile__summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-card-bg);
}

.teacher-profile__summary h2 {
    margin: 0 0 8px;
}

.teacher-profile__summary p {
    margin: 0;
    color: var(--color-accent);
    font-weight: 600;
}

.teacher-profile__avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-accent);
    font-size: 22px;
    font-weight: 700;
    flex: 0 0 auto;
}

.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;
}

.accessibility-toggle {
    width: auto;
    min-width: 0;
    min-height: 40px;
    height: auto;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.topbar .accessibility-toggle {
    min-height: 28px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    max-width: none;
}

.topbar .accessibility-toggle:hover,
.topbar .accessibility-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.header-actions .accessibility-toggle {
    flex: 0 1 auto;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-header-actions .accessibility-toggle {
    min-width: 44px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
}

.consent-fieldset {
    margin: 20px 0 0;
    padding: 0;
    border: 0;
}

.consent-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-bg-alt);
}

.consent-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.consent-box label {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.consent-box a {
    color: var(--color-accent);
}

.form-status {
    margin-top: 14px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

html[data-accessibility="on"] {
    --color-white: #ffffff;
    --color-bg: #ffffff;
    --color-bg-alt: #f0f0f0;
    --color-card-bg: #ffffff;
    --color-header-bg: #ffffff;
    --color-border: #1b1b1b;
    --color-text: #000000;
    --color-text-secondary: #111111;
    --color-primary: #000000;
    --color-primary-light: #111111;
    --color-accent: #000000;
    --logo-filter: none;
    font-size: 20px;
}

html[data-accessibility="on"] body {
    font-size: 1rem;
    color: #000000;
    background-color: #ffffff;
    line-height: 1.9;
    letter-spacing: 0.04em;
    word-spacing: 0.08em;
    background-image: none !important;
}

html[data-accessibility="on"] * {
    text-shadow: none !important;
    box-shadow: none !important;
    background-image: none !important;
    animation: none !important;
    transition: none !important;
}

/* Explicit pixel sizes in the normal layout must not cancel enlarged text. */
html[data-accessibility="on"] :is(p, li, td, th, label, input, textarea, select,
    .education-org-kv-key, .education-org-kv-value, .document-card__body,
    .info-label, .info-value, .form-status, .hero-stat-label) {
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

/* Removing a gradient alone can leave white text on a transparent white panel. */
html[data-accessibility="on"] body * {
    color: inherit !important;
    background-color: transparent !important;
    border-color: currentColor !important;
}

html[data-accessibility="on"] :is(.header, .dropdown-menu, .mobile-nav,
    button, input, textarea, select) {
    background-color: #ffffff !important;
    color: #000000 !important;
}

html[data-accessibility="on"] .topbar {
    background-color: #000000 !important;
    color: #ffffff !important;
}

html[data-accessibility="on"] .mobile-menu-btn span {
    background-color: currentColor !important;
}

html[data-accessibility="on"] :is(p, li, td, th, label,
    .education-org-kv-value, .info-value) a {
    text-decoration: underline;
}

html[data-accessibility="on"] .breadcrumbs {
    flex-wrap: wrap;
}

html[data-accessibility="on"] .card::before,
html[data-accessibility="on"] .card::after,
html[data-accessibility="on"] .hero::before {
    display: none !important;
}

html[data-accessibility="on"] img {
    filter: none !important;
}

html[data-accessibility="on"] .topbar-logo img {
    filter: brightness(0) invert(1) !important;
}

:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .education-org-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .education-org-sidebar {
        position: static;
    }

    .education-org-menu {
        overflow-x: auto;
    }

    .education-org-menu-list {
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 1fr);
    }
}

@media (max-width: 768px) {
    .education-org-kv-row {
        grid-template-columns: 1fr;
    }

    .education-org-person-card {
        padding: 20px;
    }

    .education-org-person-card__name {
        font-size: 20px;
    }

    .education-org-person-card__role {
        font-size: 18px;
    }

    .education-org-section h2 {
        font-size: 24px;
    }

    .document-card {
        grid-template-columns: 1fr;
    }

    .document-card svg {
        margin: 0;
    }

    .header-actions .accessibility-toggle {
        max-width: none;
    }

    .topbar .accessibility-toggle {
        display: none;
    }
}
