/* === Modul Články: varianta "news" (homepage news serveru) ===
   Barvy dědí z theme proměnných (--aav-*), takže modul funguje v každém skinu;
   skin NewsPortal paletu jen přeladí. */

.aav-news {
    --news-ink: var(--aav-news-ink, var(--bs-body-color));
    --news-muted: var(--aav-news-muted, var(--bs-secondary-color));
    --news-accent: var(--aav-news-accent, var(--aav-primary, #1b6ec2));
    --news-rule: var(--aav-news-rule, var(--bs-border-color));
}

.aav-news a {
    color: inherit;
    text-decoration: none;
}

/* Kicker — datum · autor nad titulkem */
.aav-news-kicker {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--news-muted);
    margin-bottom: .35rem;
}

/* Nadpis sekce (Krátce) — akcentová značka + linka */
.aav-news-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--news-ink);
    margin-bottom: .75rem;
}

.aav-news-section-title::before {
    content: "";
    width: .55rem;
    height: .55rem;
    background: var(--news-accent);
    flex-shrink: 0;
}

.aav-news-section-title::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: var(--news-rule);
}

/* --- Hero --- */
.aav-news-hero-link {
    display: block;
}

.aav-news-hero-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: .5rem;
    margin-bottom: 1rem;
    background: var(--news-rule);
}

.aav-news-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.aav-news-hero-link:hover .aav-news-hero-media img {
    transform: scale(1.025);
}

.aav-news-hero-title {
    font-size: clamp(1.5rem, 1.1rem + 2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--news-ink);
    margin-bottom: .5rem;
}

.aav-news-hero-link:hover .aav-news-hero-title {
    text-decoration: underline;
    text-decoration-color: var(--news-accent);
    text-decoration-thickness: 3px;
    text-underline-offset: .2em;
}

.aav-news-hero-perex {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--news-muted);
    margin-bottom: 0;
    max-width: 60ch;
}

/* --- Krátce (sloupec novinek) --- */
.aav-news-shorts ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aav-news-shorts li {
    display: flex;
    gap: .75rem;
    align-items: baseline;
    padding: .55rem 0;
    border-bottom: 1px solid var(--news-rule);
    font-size: .92rem;
    line-height: 1.4;
}

.aav-news-shorts li:first-child {
    padding-top: 0;
}

.aav-news-shorts-date {
    color: var(--news-accent);
    font-weight: 700;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.aav-news-shorts a:hover {
    text-decoration: underline;
    text-decoration-color: var(--news-accent);
    text-underline-offset: .15em;
}

/* --- Karty --- */
.aav-news-grid {
    margin-top: .5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--news-rule);
}

.aav-news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.aav-news-card {
    height: 100%;
}

.aav-news-card-media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: .5rem;
    margin-bottom: .75rem;
    background: var(--news-rule);
}

.aav-news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.aav-news-card-link:hover .aav-news-card-media img {
    transform: scale(1.04);
}

.aav-news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--news-ink);
    margin-bottom: .35rem;
}

.aav-news-card-link:hover .aav-news-card-title {
    text-decoration: underline;
    text-decoration-color: var(--news-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: .18em;
}

.aav-news-card-perex {
    font-size: .9rem;
    line-height: 1.5;
    color: var(--news-muted);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Odkaz na archiv --- */
.aav-news-more {
    margin-top: 1.5rem;
    text-align: right;
}

.aav-news-more a {
    font-weight: 700;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--news-accent);
}

.aav-news-more a:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

/* Přehled článků (ArticlesSidebar) — kompaktní výpis do užšího sloupce.
   Barvy dědí z okolí (currentColor), takže funguje i v containeru invert. */
.aav-artside-heading {
    margin-bottom: .5rem;
}

.aav-artside-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    opacity: .65;
    margin: .9rem 0 .35rem;
}

.aav-artside-title:first-child {
    margin-top: 0;
}

.aav-artside-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aav-artside-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .6rem;
    padding: .35rem 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.aav-artside-list li:last-child {
    border-bottom: 0;
}

.aav-artside-list a {
    color: inherit;
    text-decoration: none;
    font-weight: 550;
    font-size: .88rem;
    line-height: 1.35;
}

.aav-artside-list a:hover {
    text-decoration: underline;
}

.aav-artside-meta {
    font-size: .75rem;
    opacity: .6;
    white-space: nowrap;
}

.aav-artside-empty {
    font-size: .85rem;
    opacity: .65;
    margin: 0;
}
