.edu-rvr-founder {
    --rvr-founder-zavazne: #d98b00;
    --rvr-founder-zavdop: #8a9600;
    --rvr-founder-doporucene: #2f7d4a;
    --rvr-founder-informativni: #2f67a8;
}

.edu-rvr-founder__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: nowrap;
    margin: 16px 0 10px;
}

.edu-rvr-home--embedded.edu-rvr-founder .edu-rvr-founder__controls {
    margin-top: 0;
}

.edu-rvr-founder__filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.edu-rvr-founder__filter {
    appearance: none;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid var(--rvr-border);
    border-radius: 5px;
    background: #fff;
    color: var(--rvr-blue);
    font: inherit;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.1;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease;
}

.edu-rvr-founder__filter:hover:not(:disabled) {
    border-color: var(--rvr-blue-hover);
    color: var(--rvr-blue-hover);
}

.edu-rvr-founder__filter.is-active,
.edu-rvr-founder__filter[aria-pressed="true"] {
    border-color: var(--rvr-blue) !important;
    background: var(--rvr-blue) !important;
    color: #fff !important;
}

.edu-rvr-founder__filter[hidden] {
    display: none !important;
}

.edu-rvr-founder__filter:focus-visible,
.edu-rvr-founder__month-button:focus-visible,
.edu-rvr-founder__month-select:focus-visible {
    outline: 2px solid var(--rvr-blue-hover);
    outline-offset: 2px;
}

.edu-rvr-founder__month-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.edu-rvr-founder__month-button {
    appearance: none;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--rvr-border);
    border-radius: 5px;
    background: var(--rvr-soft);
    color: var(--rvr-blue);
    font: inherit;
    font-size: 17px;
    line-height: 24px;
    cursor: pointer;
}

.edu-rvr-founder__month-button:hover:not(:disabled) {
    background: #fff;
    border-color: var(--rvr-blue-hover);
    color: var(--rvr-blue-hover);
}

.edu-rvr-founder__month-button:disabled {
    opacity: .34;
    cursor: default;
}

.edu-rvr-founder__month-select {
    height: 28px;
    max-width: 190px;
    padding: 0 26px 0 9px;
    border: 1px solid var(--rvr-border);
    border-radius: 5px;
    background-color: #fff;
    color: var(--rvr-blue);
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.edu-rvr-founder__sr-only {
    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;
}

.edu-rvr-founder__panel[hidden],
.edu-rvr-founder__item[hidden],
.edu-rvr-founder__empty[hidden] {
    display: none !important;
}

.edu-rvr-founder__priority--zavazne {
    color: var(--rvr-founder-zavazne);
}

.edu-rvr-founder__priority--zavazne_doporucene {
    color: var(--rvr-founder-zavdop);
}

.edu-rvr-founder__priority--doporucene {
    color: var(--rvr-founder-doporucene);
}

.edu-rvr-founder__priority--informativni {
    color: var(--rvr-founder-informativni);
}

.edu-rvr-founder__item.is-revealed {
    animation: eduRvrReveal .28s ease-out both;
    animation-delay: var(--rvr-delay, 0ms);
}

@media (max-width: 860px) {
    .edu-rvr-founder__controls {
        align-items: flex-start;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .edu-rvr-founder__filters {
        flex-wrap: wrap;
        width: 100%;
    }

    .edu-rvr-founder__month-nav {
        width: 100%;
    }

    .edu-rvr-founder__month-select {
        flex: 1 1 auto;
        max-width: none;
    }
}

@media (max-width: 520px) {
    .edu-rvr-founder__filter {
        padding-inline: 8px;
        font-size: 9px;
    }

    .edu-rvr-founder__filters {
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .edu-rvr-founder__item.is-revealed {
        animation: none;
    }
}


/* v0.2.2 – Founder final visual polish */
.edu-rvr-founder .edu-rvr-home__footer {
    margin-top: 8px;
}

.edu-rvr-founder .edu-rvr-home__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.edu-rvr-founder .edu-rvr-home__cta > span[aria-hidden="true"] {
    display: inline-block;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    transition: transform .16s ease;
}

.edu-rvr-founder .edu-rvr-home__cta:hover > span[aria-hidden="true"],
.edu-rvr-founder .edu-rvr-home__cta:focus-visible > span[aria-hidden="true"] {
    transform: translateX(2px);
}

/* Explicitly preserve the homepage pager geometry on Founder Surface. */
.edu-rvr-founder .edu-rvr-home__nav {
    gap: 5px;
}

.edu-rvr-founder .edu-rvr-home__page {
    min-width: 28px;
    font-size: 9px;
}

.edu-rvr-founder .edu-rvr-home__nav-button {
    width: 26px;
    height: 26px;
    font-size: 18px;
    line-height: 22px;
}

@media (prefers-reduced-motion: reduce) {
    .edu-rvr-founder .edu-rvr-home__cta > span[aria-hidden="true"] {
        transition: none;
    }
}


/* ==========================================================
   v0.2.3 – Founder typography polish
   Čitelnější typografie pouze na ploše Pro zřizovatele.
   Homepage widget se nemění.
   ========================================================== */

/* Filtry */
.edu-rvr-founder__filter {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 11px;
    line-height: 1.15;
}

/* Výběr měsíce */
.edu-rvr-founder__month-select {
    height: 30px;
    font-size: 11px;
    line-height: 1.2;
}

/* Šipky měsíce držíme proporčně k vyššímu selectu */
.edu-rvr-founder__month-button {
    width: 30px;
    height: 30px;
    line-height: 26px;
}

/* Datum u položky */
.edu-rvr-founder .edu-rvr-home__date strong {
    font-size: 11px;
}

.edu-rvr-founder .edu-rvr-home__date span {
    font-size: 10px;
}

/* Typ povinnosti + kategorie */
.edu-rvr-founder .edu-rvr-home__meta {
    font-size: 10px;
    line-height: 1.25;
}

/* Hlavní text povinnosti */
.edu-rvr-founder .edu-rvr-home__title {
    font-size: 13px;
    line-height: 1.4;
}

/* Pager */
.edu-rvr-founder .edu-rvr-home__page {
    font-size: 10px;
}

/* Prázdný stav */
.edu-rvr-founder .edu-rvr-home__empty {
    font-size: 13px;
    line-height: 1.45;
}

/* Na úzkém mobilu už filtry nezmenšujeme na 9 px. */
@media (max-width: 520px) {
    .edu-rvr-founder__filter {
        padding-inline: 8px;
        font-size: 11px;
    }

    .edu-rvr-founder__month-select {
        font-size: 11px;
    }

    .edu-rvr-founder .edu-rvr-home__title {
        font-size: 13px;
    }

    .edu-rvr-founder .edu-rvr-home__meta {
        font-size: 10px;
    }
}


/* v0.2.4 – Founder Surface inherits homepage color and type scale. */
.edu-rvr-founder .edu-rvr-home__title {
    font-size: 15px;
    line-height: 1.55;
}
.edu-rvr-founder .edu-rvr-home__meta {
    font-size: 13px;
    line-height: 1.4;
}
.edu-rvr-founder .edu-rvr-home__date strong,
.edu-rvr-founder .edu-rvr-home__date span {
    font-size: 13px;
}
.edu-rvr-founder__filter,
.edu-rvr-founder__month-select,
.edu-rvr-founder .edu-rvr-home__page {
    font-size: 12px;
    line-height: 1.4;
}
.edu-rvr-founder__filter,
.edu-rvr-founder__month-select,
.edu-rvr-founder__month-button { min-height: 34px; }
.edu-rvr-founder .edu-rvr-home__empty,
.edu-rvr-founder .edu-rvr-home__cta { font-size: 13px; line-height: 1.5; }
.edu-rvr-founder__filter:focus-visible,
.edu-rvr-founder__month-button:focus-visible,
.edu-rvr-founder__month-select:focus-visible {
    outline: 3px solid #00469b;
    outline-offset: 2px;
}
@media (max-width: 900px) and (orientation: landscape) {
    .edu-rvr-founder .edu-rvr-home__title { font-size: 14px; line-height: 1.5; }
}
@media (max-width: 520px) and (orientation: portrait) {
    .edu-rvr-founder .edu-rvr-home__title { font-size: 15px; line-height: 1.55; }
    .edu-rvr-founder__filter,
    .edu-rvr-founder__month-select { font-size: 12px; }
}

/* v0.2.5 – Explicit founder variant color consistency. */
.edu-rvr-founder .edu-rvr-home__title,
.edu-rvr-founder .edu-rvr-home__item:hover .edu-rvr-home__title,
.edu-rvr-founder .edu-rvr-home__item:focus-visible .edu-rvr-home__title,
.edu-rvr-founder .edu-rvr-home__item:focus-within .edu-rvr-home__title {
    color: #173b78;
}
