/* ================================================================
   Prázdniny — uses the overview building blocks (ov-cards, ov-panel, ov-button) from prehled.css
   ================================================================ */
.is-holidays .content-controls {
    display: none;
}

#holidays-view {
    gap: 1.875rem;
}

.ph-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ph-value {
    font-size: 1.625rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ph-note {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--color-gray-dark);
}

.ph-note a,
.ov-card-note a,
.ov-locked a:not(.ov-button) {
    color: var(--color-primary);
}

.ph-status {
    font-size: var(--font-size-sm);
    color: var(--color-gray-dark);
    white-space: nowrap;
}

.ph-status.is-now {
    font-weight: bold;
    color: var(--color-primary);
}

/* Same small tag style as the task tags ("Kraj", "Vlastní") */
.ph-tag {
    margin-left: 0.5rem;
    padding: 0.0625rem 0.5rem;
    font-size: var(--font-size-xs);
    font-style: normal;
    font-weight: normal;
    color: var(--color-primary);
    background: var(--color-white);
    border: 1px solid var(--color-primary);
    border-radius: 999px;
}

/* Expandable parts. The content sits in its own list: a <details> element ignores flex gap on its children. */
.ph-details > summary {
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--color-primary);
}

.ph-details[open] > summary {
    margin-bottom: var(--spacing-sm);
}

/* ---------- Dates: one timeline, only the current entry is highlighted ---------- */
.ph-timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 2.25rem;
    list-style: none;
}

.ph-timeline::before {
    content: "";
    position: absolute;
    top: 0.75rem;
    bottom: 0.75rem;
    left: 0.6875rem;
    width: 2px;
    background: var(--color-border);
}

.ph-tl-item {
    position: relative;
    margin-bottom: var(--spacing-xs);
}

.ph-tl-item:last-child {
    margin-bottom: 0;
}

.ph-tl-dot {
    position: absolute;
    top: 50%;
    left: -1.9375rem;
    width: 0.625rem;
    height: 0.625rem;
    margin-top: -0.3125rem;
    box-sizing: content-box;
    background: var(--color-gray-light);
    border: 2px solid var(--color-background);
    border-radius: 50%;
}

.ph-tl-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 8rem;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-left-width: 0.35rem;
    border-radius: 0.375rem;
    font-size: var(--font-size-sm);
}

.ph-tl-name,
.ph-tl-date {
    color: var(--color-gray-dark);
}

.ph-tl-date {
    white-space: nowrap;
}

/* School breaks read stronger than public holidays, without becoming cards */
.ph-tl-item.is-break .ph-tl-name {
    font-weight: bold;
    color: var(--color-secondary);
}

.ph-tl-item.is-break .ph-tl-date {
    color: var(--color-secondary);
}

.ph-tl-body .ph-status {
    text-align: right;
}

.ph-tl-item.is-past {
    opacity: 0.55;
}

/* The one highlighted entry */
.ph-tl-item.is-current .ph-tl-body {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background: var(--color-white);
    border-color: var(--color-border);
    border-left-color: var(--color-primary);
}

.ph-tl-item.is-current .ph-tl-name,
.ph-tl-item.is-current .ph-tl-date {
    font-weight: bold;
    color: var(--color-secondary);
}

.ph-tl-item.is-current .ph-tl-dot {
    width: 0.75rem;
    height: 0.75rem;
    margin-top: -0.375rem;
    background: var(--color-primary);
}

@media (max-width: 75rem) {
    .ph-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 56.25rem) {
    .ph-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .ph-tl-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.25rem;
    }

    .ph-tl-body .ph-status {
        text-align: left;
    }
}
