/*
 * SŠMG – přístupnost stránky Student / I. ročník
 * Samostatný soubor, aby nebylo nutné zasahovat do globálního style.css.
 * WCAG 2.1 AA: klávesnice, focus, kontrast, čitelnost, responzivita.
 */

.student-accessible {
    --student-blue: #0b5f8f;
    --student-blue-main: #187ab6;
    --student-blue-light: #e8f5fc;
    --student-navy: #102a43;
    --student-yellow: #faec15;
    --student-border: #c8d5df;
    --student-muted: #4b5f70;
    --student-surface: #f5f8fa;
    color: var(--student-navy);
}

.student-accessible .skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100000;
    transform: translateY(-160%);
    padding: 12px 18px;
    border: 3px solid #ffffff;
    border-radius: 4px;
    background: var(--student-navy);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 0 3px var(--student-yellow);
}

.student-accessible .skip-link:focus,
.student-accessible .skip-link:focus-visible {
    transform: translateY(0);
}

.student-accessible a {
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.16em;
}

.student-accessible a:focus,
.student-accessible button:focus,
.student-accessible [tabindex]:focus {
    outline: 3px solid var(--student-blue);
    outline-offset: 3px;
}

.student-accessible a:focus-visible,
.student-accessible button:focus-visible,
.student-accessible [tabindex]:focus-visible {
    outline: 3px solid var(--student-blue);
    outline-offset: 3px;
    box-shadow: 0 0 0 2px #ffffff;
}

.student-accessible #main-content:focus {
    outline: none;
    box-shadow: none;
}

.student-accessible .navbar-toggle:focus,
.student-accessible .navbar-toggle:focus-visible {
    outline-color: var(--student-yellow);
    box-shadow: 0 0 0 2px var(--student-navy);
}

.student-accessible .post_1_area {
    line-height: 1.65;
}

.student-accessible .post_1_area p,
.student-accessible .post_1_area li,
.student-accessible .post_1_area dd {
    color: var(--student-navy);
}

/* Přepínač sekcí: skutečné odkazy, ovladatelné klávesnicí. */
.student-accessible .post_1_area .post_left-side .description-content .tag-links-box {
    margin-top: 50px;
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid var(--student-border);
    border-radius: 8px;
    background: #ffffff;
}

.student-accessible .student-section-heading {
    margin: 0 0 14px;
    color: var(--student-navy);
    font-size: 21px;
    line-height: 1.35;
}

.student-accessible .student-section-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.student-accessible .post_1_area .post_left-side .description-content .tag-links-box .student-section-list li {
    display: block;
    margin: 0;
    text-transform: none;
}

.student-accessible .post_1_area .post_left-side .description-content .tag-links-box .student-section-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 14px;
    border: 2px solid var(--student-border);
    border-radius: 5px;
    background: #ffffff;
    color: var(--student-navy);
    font-weight: 700;
    line-height: 1.25;
    text-decoration: underline;
    opacity: 1;
}

.student-accessible .post_1_area .post_left-side .description-content .tag-links-box .student-section-list a:hover {
    border-color: var(--student-blue);
    background: var(--student-blue-light);
    color: var(--student-navy);
}

.student-accessible .post_1_area .post_left-side .description-content .tag-links-box .student-section-list a[aria-current="page"] {
    border-color: var(--student-blue);
    background: var(--student-blue);
    color: #ffffff;
    text-decoration: none;
    box-shadow: inset 0 -4px 0 var(--student-yellow);
}

.student-accessible .post_1_area .post_left-side .description-content .tag-links-box .student-section-list a[aria-current="page"]:focus-visible {
    outline-color: var(--student-yellow);
    box-shadow: inset 0 -4px 0 var(--student-yellow), 0 0 0 2px var(--student-navy);
}

/* Obsah prvního ročníku. */
.student-accessible .freshman-page {
    max-width: 100%;
    text-align: left;
}

.student-accessible .freshman-heading {
    margin: 0 0 24px;
}

.student-accessible .freshman-heading h2 {
    margin: 0;
    color: var(--student-navy);
    font-size: 30px;
    line-height: 1.25;
}

.student-accessible .freshman-documents {
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid var(--student-border);
    border-left: 6px solid var(--student-blue-main);
    border-radius: 8px;
    background: #ffffff;
}

.student-accessible .freshman-documents h3 {
    margin: 0 0 14px;
    color: var(--student-navy);
}

.student-accessible .freshman-documents ul {
    margin: 0;
    padding-left: 24px;
}

.student-accessible .freshman-documents li + li {
    margin-top: 10px;
}

.student-accessible .freshman-documents a,
.student-accessible .course-card a {
    color: #075c8c;
    font-weight: 700;
    text-decoration: underline;
}

.student-accessible .freshman-documents a:hover,
.student-accessible .course-card a:hover {
    color: var(--student-navy);
}

.student-accessible .course-card {
    margin: 0 0 30px;
    padding: 26px;
    border: 1px solid var(--student-border);
    border-top: 6px solid var(--student-blue-main);
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(16, 42, 67, 0.08);
}

.student-accessible .course-card-heading {
    margin-bottom: 20px;
}

.student-accessible .course-card-heading h3 {
    margin: 0;
    color: var(--student-navy);
    font-size: 24px;
    line-height: 1.35;
}

.student-accessible .course-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}

.student-accessible .course-fact {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid #d9e5ed;
    border-radius: 7px;
    background: var(--student-surface);
}

.student-accessible .course-fact dt {
    margin: 0 0 6px;
    color: var(--student-muted);
    font-size: 14px;
    font-weight: 700;
}

.student-accessible .course-fact dd {
    margin: 0;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.student-accessible .course-fact dd a {
    display: inline-block;
    margin-top: 6px;
}

.student-accessible .course-card h4 {
    color: var(--student-navy);
}

.student-accessible .course-includes {
    margin-bottom: 0;
    padding-left: 24px;
}

.student-accessible .course-includes li {
    margin-bottom: 8px;
    text-align: left;
}

/* Platby: informace nejsou rozlišeny jen barvou. */
.student-accessible .payment-overview {
    margin: 30px 0;
}

.student-accessible .payment-intro {
    margin-bottom: 20px;
    padding: 19px 20px;
    border: 1px solid #bfd5e3;
    border-left: 6px solid var(--student-blue-main);
    border-radius: 7px;
    background: var(--student-blue-light);
}

.student-accessible .payment-intro h3 {
    margin: 0 0 8px;
    color: var(--student-navy);
}

.student-accessible .payment-intro p {
    margin: 0;
}

.student-accessible .payment-account-group {
    margin-bottom: 26px;
    border: 2px solid var(--student-border);
    border-radius: 9px;
    overflow: hidden;
    background: #ffffff;
}

.student-accessible .payment-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    color: #ffffff;
}

.student-accessible .payment-account-group-school .payment-account-header {
    background: var(--student-blue);
}

.student-accessible .payment-account-group-friends .payment-account-header {
    background: var(--student-navy);
    box-shadow: inset 8px 0 0 var(--student-yellow);
}

.student-accessible .payment-account-header p {
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    text-align: right;
}

.student-accessible .payment-account-label,
.student-accessible .payment-account-number {
    display: block;
}

.student-accessible .payment-account-label {
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.student-accessible .payment-account-number {
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 23px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    user-select: all;
}

.student-accessible .payment-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
    background: var(--student-surface);
}

.student-accessible .payment-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--student-border);
    border-radius: 7px;
    background: #ffffff;
}

.student-accessible .payment-card-wide {
    grid-column: 1 / -1;
}

.student-accessible .payment-card h4 {
    margin: 0 0 7px;
    color: var(--student-navy);
    font-size: 20px;
    line-height: 1.35;
}

.student-accessible .payment-amount {
    margin: 0 0 16px;
    color: var(--student-blue);
    font-family: "Montserrat", sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.student-accessible .payment-account-group-friends .payment-amount {
    color: var(--student-navy);
}

.student-accessible .payment-amount span {
    display: block;
    margin-top: 5px;
    color: var(--student-navy);
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.student-accessible .payment-details {
    margin: 0;
}

.student-accessible .payment-details dt {
    margin-top: 14px;
    color: var(--student-muted);
    font-size: 14px;
    font-weight: 700;
}

.student-accessible .payment-details dt:first-child {
    margin-top: 0;
}

.student-accessible .payment-details dd {
    margin: 4px 0 0;
    line-height: 1.5;
}

.student-accessible .payment-details dd span {
    color: var(--student-muted);
    font-size: 14px;
}

.student-accessible .payment-details time {
    font-weight: 700;
}

/* Postranní odkazy mají dostatečnou klikací plochu a focus. */
.student-accessible .sidebar-text-post .mainh3class {
    color: var(--student-navy);
}

.student-accessible .sidebar-text-post .categories-item-post a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--student-navy);
    font-weight: 700;
    text-decoration: underline;
}

.student-accessible .sidebar-text-post .categories-item-post a:hover {
    color: var(--student-blue);
}

@media (max-width: 991px) {
    .student-accessible .course-facts,
    .student-accessible .payment-cards {
        grid-template-columns: 1fr;
    }

    .student-accessible .payment-card-wide {
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    .student-accessible .post_1_area .post_left-side .description-content .tag-links-box {
        margin-top: 24px;
        padding: 16px;
    }

    .student-accessible .student-section-list {
        display: grid;
        grid-template-columns: 1fr;
    }

    .student-accessible .post_1_area .post_left-side .description-content .tag-links-box .student-section-list a {
        width: 100%;
    }

    .student-accessible .freshman-heading h2 {
        font-size: 26px;
    }

    .student-accessible .course-card,
    .student-accessible .freshman-documents,
    .student-accessible .payment-card {
        padding: 17px;
    }

    .student-accessible .payment-account-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px;
    }

    .student-accessible .payment-account-header p {
        text-align: left;
    }

    .student-accessible .payment-account-number {
        font-size: 19px;
    }

    .student-accessible .payment-cards {
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .student-accessible *,
    .student-accessible *::before,
    .student-accessible *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (forced-colors: active) {
    .student-accessible .payment-account-header,
    .student-accessible .student-section-list a[aria-current="page"] {
        border: 2px solid CanvasText;
    }
}
