.edu-rvr-home {
    --rvr-blue: #173b78;
    --rvr-blue-hover: #1955b4;
    --rvr-border: #dce4ef;
    --rvr-muted: #728399;
    --rvr-soft: #f7f9fc;
    --rvr-priority: #d98b00;
    border: 1px solid var(--rvr-border);
    border-radius: 10px;
    background: #fff;
    padding: 20px;
    color: #173257;
}

.edu-rvr-home--embedded {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.edu-rvr-home__heading h2 {
    margin: 0;
    color: var(--rvr-blue);
    font-size: 20px;
    line-height: 1.2;
}

.edu-rvr-home__heading p {
    margin: 4px 0 0;
    color: var(--rvr-muted);
    font-size: 12px;
}

.edu-rvr-home__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 12px;
}

.edu-rvr-home--embedded .edu-rvr-home__tabs {
    margin-top: 10px;
}

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

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

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

.edu-rvr-home__tab:focus-visible,
.edu-rvr-home__nav-button:focus-visible,
.edu-rvr-home__cta:focus-visible {
    outline: 2px solid var(--rvr-blue-hover);
    outline-offset: 2px;
}

.edu-rvr-home__tab:disabled {
    opacity: .38;
    cursor: default;
}

.edu-rvr-home__panel[hidden],
.edu-rvr-home__item[hidden] {
    display: none !important;
}

.edu-rvr-home__list {
    border: 1px solid var(--rvr-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.edu-rvr-home__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 70px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--rvr-border);
    position: relative;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    padding-right: 38px;
    transition: background-color .16s ease;
}

.edu-rvr-home__item::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--rvr-blue-hover);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    transform: translate(-4px, -50%);
    transition: opacity .16s ease, transform .16s ease;
    pointer-events: none;
}

.edu-rvr-home__item:hover {
    background: var(--rvr-soft);
}

.edu-rvr-home__item:hover .edu-rvr-home__title {
    color: var(--rvr-blue-hover);
}

.edu-rvr-home__item:hover::after,
.edu-rvr-home__item:focus-visible::after {
    opacity: .9;
    transform: translate(0, -50%);
}

.edu-rvr-home__item:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid var(--rvr-blue-hover);
    outline-offset: -2px;
    background: var(--rvr-soft);
}

.edu-rvr-home__item:last-child {
    border-bottom: 0;
}

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

@keyframes eduRvrReveal {
    from { opacity: 0; transform: translateY(-7px); }
    to { opacity: 1; transform: translateY(0); }
}

.edu-rvr-home__date {
    width: 40px;
    min-height: 42px;
    border-radius: 5px;
    background: #eef4fc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--rvr-blue);
    text-align: center;
}

.edu-rvr-home__date strong {
    font-size: 11px;
    line-height: 1;
    letter-spacing: .02em;
}

.edu-rvr-home__date span {
    margin-top: 4px;
    font-size: 9px;
    line-height: 1;
    color: var(--rvr-muted);
}

.edu-rvr-home__content {
    min-width: 0;
}

.edu-rvr-home__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 3px;
    color: var(--rvr-priority);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.edu-rvr-home__category {
    color: var(--rvr-muted);
    font-weight: 600;
}

.edu-rvr-home__title {
    color: var(--rvr-blue);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.edu-rvr-home__empty {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--rvr-border);
    border-radius: 6px;
    color: var(--rvr-muted);
    font-size: 12px;
}

.edu-rvr-home__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.edu-rvr-home__cta {
    color: var(--rvr-blue);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 2px;
}

.edu-rvr-home__cta:hover,
.edu-rvr-home__cta:focus-visible {
    color: var(--rvr-blue-hover);
    text-decoration: underline;
}

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

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

.edu-rvr-home__page {
    min-width: 28px;
    text-align: right;
    color: var(--rvr-muted);
    font-size: 9px;
}

.edu-rvr-home__nav-button {
    appearance: none;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--rvr-border);
    border-radius: 50%;
    background: var(--rvr-soft);
    color: var(--rvr-blue);
    font: inherit;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease;
}

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

.edu-rvr-home__nav-button:disabled {
    opacity: .32;
    cursor: default;
}

@media (max-width: 520px) {
    .edu-rvr-home {
        padding: 16px;
    }

    .edu-rvr-home--embedded {
        padding: 0;
    }

    .edu-rvr-home__item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .edu-rvr-home__category {
        display: none;
    }

    .edu-rvr-home__footer {
        align-items: flex-end;
    }
}

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


/* v0.2.4 – EDU.cz readable typography; scoped to Rok v ředitelně widget.
   JVS-inspired blue palette. Preserves layout and existing functionality. */
.edu-rvr-home {
    --rvr-blue: #00469b;
    --rvr-blue-hover: #003776;
    --rvr-border: #cbd5e1;
    --rvr-muted: #45566e;
    --rvr-soft: #f4f7fb;
    --rvr-priority: #8b5100;
    color: #24364d;
    font-family: Roboto, Arial, sans-serif;
}
.edu-rvr-home__title {
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
}
.edu-rvr-home__meta {
    font-size: 13px;
    line-height: 1.4;
}
.edu-rvr-home__date strong,
.edu-rvr-home__date span {
    font-size: 13px;
    line-height: 1.2;
}
.edu-rvr-home__date {
    min-height: 52px;
    width: 44px;
}
.edu-rvr-home__item {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 82px;
}
.edu-rvr-home__tab,
.edu-rvr-home__page {
    font-size: 12px;
    line-height: 1.4;
}
.edu-rvr-home__tab { min-height: 32px; }
.edu-rvr-home__cta,
.edu-rvr-home__empty,
.edu-rvr-home__heading p { font-size: 13px; line-height: 1.5; }
.edu-rvr-home__date { background: #e2eef8; }
.edu-rvr-home__tab:focus-visible,
.edu-rvr-home__nav-button:focus-visible,
.edu-rvr-home__cta:focus-visible,
.edu-rvr-home__item:focus-visible {
    outline: 3px solid #00469b;
    outline-offset: 2px;
}
@media (max-width: 900px) and (orientation: landscape) {
    .edu-rvr-home__title { font-size: 14px; line-height: 1.5; }
}
@media (max-width: 520px) and (orientation: portrait) {
    .edu-rvr-home__title { font-size: 15px; line-height: 1.55; }
    .edu-rvr-home__item { grid-template-columns: 44px minmax(0, 1fr); }
}

/* v0.2.5 – Consistent headings with EDU.cz Aktuality.
   Preserve existing interactions and other semantic colors. */
.edu-rvr-home .edu-rvr-home__title,
.edu-rvr-home .edu-rvr-home__item:hover .edu-rvr-home__title,
.edu-rvr-home .edu-rvr-home__item:focus-visible .edu-rvr-home__title,
.edu-rvr-home .edu-rvr-home__item:focus-within .edu-rvr-home__title {
    color: #173b78;
}

/* v0.2.6 – Visually distinguish obligation status from its category.
   Priority is a compact badge; the category stays plain text. */
.edu-rvr-home .edu-rvr-home__meta {
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
}
.edu-rvr-home .edu-rvr-home__priority,
.edu-rvr-home .edu-rvr-founder__priority {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 4px;
    background: #f2f5fa;
    color: #45566e;
    line-height: 1.4;
    text-transform: uppercase;
}
.edu-rvr-home .edu-rvr-home__priority--zavazne,
.edu-rvr-home .edu-rvr-founder__priority--zavazne {
    background: var(--gov-color-secondary-100, #fff6e1);
    color: #854400;
}
.edu-rvr-home .edu-rvr-home__category {
    display: inline-block;
    min-width: 0;
    color: #596b7d;
}

/* v0.2.7 – Tag background uses gov.cz Secondary 100 with a safe fallback. */

/* v0.2.8 – Explicit status badge, resilient to theme/Breakdance anchor styles.
   Scope: Rok v ředitelně homepage and founder widgets only. */
.edu-rvr-home .edu-rvr-home__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
}
.edu-rvr-home .edu-rvr-home__meta > .edu-rvr-home__priority,
.edu-rvr-home .edu-rvr-home__meta > .edu-rvr-founder__priority {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 !important;
    padding: 2px 7px !important;
    border: 1px solid #e9d2a7 !important;
    border-radius: 4px !important;
    background: #fff6e1 !important; /* gov.cz Secondary 100 */
    background-color: #fff6e1 !important;
    color: #854400 !important;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    box-shadow: none !important;
    text-decoration: none !important;
}
.edu-rvr-home .edu-rvr-home__meta > .edu-rvr-home__category {
    margin: 0 !important;
    color: #596b7d;
}
