/* Changed files:
 * - wp-content/plugins/nordlysvarsel-svein/modules/forecast/views/compact.php
 * - wp-content/plugins/nordlysvarsel-svein/modules/forecast/assets/css/forecast-compact.css
 */
.nlsvk-404-timeline {
    --nlsvk-404-text: #e8f0fb;
    --nlsvk-404-muted: #9cb2cb;

    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(7, 13, 23, 0.88), rgba(10, 18, 30, 0.88));
    color: var(--nlsvk-404-text);
}

.nlsvk-404-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    padding: 0 2px 6px;
    border-bottom: 1px solid rgba(153, 176, 202, 0.14);
}

.nlsvk-404-head-main {
    min-width: 0;
}

.nlsvk-404-head-title {
    margin: 0;
    color: inherit;
}

.nlsvk-404-head-subtitle {
    margin: 4px 0 0;
    color: var(--nlsvk-404-muted);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 500;
}

.nlsvk-404-head-meta {
    display: none;
    align-items: center;
    min-height: 22px;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1px solid rgba(153, 176, 202, 0.24);
    background: rgba(14, 23, 36, 0.72);
    color: #c3d5eb;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.nlsvk-404-poster {
    display: grid;
    gap: 6px;
}

.nlsvk-404-timeline .nlsvk-404-list {
    list-style: none;
    margin: 0;
    margin-left: 0;
    margin-inline-start: 0;
    padding: 0;
    padding-left: 0;
    padding-inline-start: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.nlsvk-404-timeline .nlsvk-404-row {
    box-sizing: border-box;
    position: relative;
    margin: 0;
    margin-left: 0;
    margin-inline-start: 0;
    padding: 0;
    border-radius: 9px;
    border: 1px solid rgba(153, 176, 202, 0.14);
    background: rgba(11, 18, 29, 0.62);
    transition: border-color 0.16s ease, transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.nlsvk-404-row.is-hidden {
    display: none !important;
}

.nlsvk-404-node {
    width: 100%;
    display: grid;
    position: relative;
    justify-items: start;
    gap: 0.08rem;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: inherit;
    padding: 7px 8px 6px;
    text-align: left;
    cursor: pointer;
}

.nlsvk-404-active-lamp {
    /* Slight contrast boost for active-time indicator (final polish). */
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(153, 176, 202, 0.28);
    pointer-events: none;
    opacity: 0;
}

.nlsvk-404-time {
    /* Typography source-of-truth: aligned to 402 tile labels (.nlsvk-402-tile-title/.nlsvk-402-metric). */
    color: #cdd8e7;
    font-size: 0.68rem;
    line-height: 1.2;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    margin: 0 0 0.12rem;
}

.nlsvk-404-kp-inline {
    /* Typography source-of-truth: aligned to 402 primary value hierarchy. */
    color: color-mix(in srgb, var(--nlsvk-404-level-color, #9fb0c6) 82%, #eaf3ff);
    font-size: 0.98rem;
    line-height: 1.12;
    font-weight: 630;
    letter-spacing: 0.006em;
    font-variant-numeric: tabular-nums;
}

.nlsvk-404-label-inline {
    /* Typography source-of-truth: aligned to 402 secondary status text (.nlsvk-402-trend). */
    color: #8ea4bf;
    font-size: 0.62rem;
    line-height: 1.15;
    font-weight: 480;
    margin-top: 0.16rem;
}

.nlsvk-404-row.is-active {
    /* Active marker only via lamp indicator to avoid layout shift. */
    background: rgba(11, 18, 29, 0.62);
}

.nlsvk-404-row.is-active .nlsvk-404-active-lamp {
    opacity: 1;
}

.nlsvk-404-row.is-now .nlsvk-404-time {
    color: #edf5ff;
}

.nlsvk-404-row.is-past {
    opacity: 0.58;
}

.nlsvk-404-row.is-next {
    opacity: 0.92;
}

.nlsvk-404-reality-note {
    margin: 2px 0 0;
    color: #90a8c4;
    font-size: 11px;
    line-height: 1.3;
}

.nlsvk-404-kp-praktisk,
.nlsvk-404-meter,
.nlsvk-404-scale,
.nlsvk-404-track,
.nlsvk-404-fill,
.nlsvk-404-marker,
.nlsvk-404-status,
.nlsvk-404-badges,
.nlsvk-404-kp,
.nlsvk-404-meta,
.nlsvk-404-kp-value,
.nlsvk-404-node-dot {
    display: none !important;
}

.nlsvk-404-more {
    display: inline-block;
    margin-top: 8px;
    color: rgba(226, 238, 252, 0.92);
    font-size: 12px;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nlsvk-404-more:hover,
.nlsvk-404-more:focus {
    color: #f4f9ff;
}

.wp-block-nlsvk-hero-frame-410 .nlsvk-404-timeline {
    background: transparent;
}

@media (max-width: 520px) {
    .nlsvk-404-head {
        align-items: flex-start;
    }

    .nlsvk-404-head-subtitle {
        font-size: 11px;
    }

    .nlsvk-404-timeline .nlsvk-404-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 348px) {
    .nlsvk-404-timeline .nlsvk-404-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .nlsvk-404-timeline .nlsvk-404-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
