/*
 * Pregled dana / Pregled tjedna: hero, tabs, the timeline (alternating along a centre line on wide screens, one
 * column along a left line on phones), the text sections and the side panels. Square corners and strong rules, like
 * the rest of the site.
 */

.digest-page {
    --digest-emergency: #d92d20;
    --digest-crime: #7a271a;
    --digest-politics: #175cd3;
    --digest-economy: #067647;
    --digest-world: #6941c6;
    --digest-sport: #0e9384;
    --digest-society: #b54708;
    --digest-culture: #c11574;
}

.digest-shell {
    padding-top: 1.25rem;
}

.is-emergency { --digest-color: var(--digest-emergency); }
.is-crime { --digest-color: var(--digest-crime); }
.is-politics { --digest-color: var(--digest-politics); }
.is-economy { --digest-color: var(--digest-economy); }
.is-world { --digest-color: var(--digest-world); }
.is-sport { --digest-color: var(--digest-sport); }
.is-society { --digest-color: var(--digest-society); }
.is-culture { --digest-color: var(--digest-culture); }

/* Tabs */

.digest-tabs {
    display: flex;
    gap: 0;
    margin: 0 0 1.25rem;
    overflow-x: auto;
    border-bottom: 3px solid var(--ink);
    scrollbar-width: none;
}

.digest-tabs::-webkit-scrollbar {
    display: none;
}

.digest-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    padding: 0.6rem 1rem;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 4px solid transparent;
    margin-bottom: -3px;
}

.digest-tab:hover,
.digest-tab:focus-visible {
    color: var(--accent);
}

.digest-tab.is-active {
    color: #fff;
    background: var(--ink);
    border-bottom-color: var(--accent);
}

/* Hero */

.digest-hero {
    position: relative;
    padding: 1.4rem 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 6px solid var(--accent);
}

.digest-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin-bottom: 0.75rem;
}

.digest-kicker {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    color: #fff;
    background: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.digest-period {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 800;
}

.digest-live,
.digest-closed {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 800;
}

.digest-live {
    color: var(--accent);
}

.digest-closed {
    color: var(--muted);
}

.digest-live.is-small {
    margin-left: 0.4rem;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.digest-live-dot {
    width: 0.6rem;
    height: 0.6rem;
    background: var(--accent);
    border-radius: 50%;
    animation: digest-pulse 1.6s ease-out infinite;
}

@keyframes digest-pulse {
    0% { box-shadow: 0 0 0 0 rgba(180, 35, 24, 0.55); }
    70% { box-shadow: 0 0 0 0.55rem rgba(180, 35, 24, 0); }
    100% { box-shadow: 0 0 0 0 rgba(180, 35, 24, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .digest-live-dot {
        animation: none;
    }
}

.digest-hero h1 {
    margin: 0 0 0.6rem;
    color: var(--ink);
    font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

/* "Pregled dana:" before the day's headline: the page's purpose first, the news after it. */
.digest-h1-kind {
    color: var(--accent);
}

.digest-lead {
    max-width: 52rem;
    margin: 0;
    color: #344054;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    font-weight: 500;
    line-height: 1.55;
}

.digest-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 1rem 0 0;
}

.digest-stats > div {
    padding: 0.2rem 1.1rem 0.2rem 0;
    margin-right: 1.1rem;
    border-right: 1px solid var(--line);
}

.digest-stats > div:last-child {
    border-right: 0;
}

.digest-stats dt {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.digest-stats dd {
    margin: 0;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.1;
}

.digest-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.digest-pager-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.8rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.digest-pager-link:hover,
.digest-pager-link:focus-visible {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.digest-pager-link.is-week {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.digest-pager-link.is-next {
    margin-left: auto;
}

/* Blocks */

.digest-block {
    margin-bottom: 1.75rem;
}

.digest-block-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding-bottom: 0.45rem;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 3px solid var(--ink);
}

.digest-block-title i {
    color: var(--accent);
}

/* Timeline: time | dot | card on the left, card | dot | time on the right. */

.digest-timeline {
    position: relative;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
}

.digest-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--ink);
    transform: translateX(-50%);
}

.digest-timeline-day {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 0.9rem;
}

.digest-timeline-day span {
    position: relative;
    padding: 0.25rem 0.75rem;
    color: #fff;
    background: var(--ink);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.digest-event {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.25rem minmax(0, 1fr);
    align-items: start;
    margin-bottom: 0.9rem;
}

.digest-event-dot {
    grid-row: 1;
    grid-column: 2;
    justify-self: center;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    color: #fff;
    background: var(--digest-color, var(--ink));
    border: 3px solid var(--surface);
    font-size: 0.85rem;
}

.digest-event.is-major .digest-event-dot {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.05rem;
    margin-top: -0.25rem;
}

.digest-event-time {
    grid-row: 1;
    padding-top: 0.3rem;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.digest-event-card {
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.8rem 0.65rem;
    background: var(--panel);
    border: 1px solid var(--line);
}

.digest-event.is-left .digest-event-card {
    grid-column: 1;
    text-align: right;
    border-right: 4px solid var(--digest-color, var(--ink));
}

.digest-event.is-left .digest-event-time {
    grid-column: 3;
}

.digest-event.is-right .digest-event-card {
    grid-column: 3;
    border-left: 4px solid var(--digest-color, var(--ink));
}

.digest-event.is-right .digest-event-time {
    grid-column: 1;
    text-align: right;
}

.digest-event.is-major .digest-event-card {
    background: color-mix(in srgb, var(--digest-color, var(--ink)) 6%, var(--panel));
}

.digest-event-section {
    color: var(--digest-color, var(--muted));
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.digest-event-title {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.digest-event.is-major .digest-event-title {
    font-size: 1.08rem;
}

.digest-event-title:hover,
.digest-event-title:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.digest-event-source {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Text and side panels */

.digest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 2rem;
    align-items: start;
}

.digest-body {
    min-width: 0;
}

.digest-section {
    margin-bottom: 1.6rem;
    padding-left: 1rem;
    border-left: 4px solid var(--digest-color, var(--ink));
}

.digest-section-tag {
    margin: 0 0 0.2rem;
    color: var(--digest-color, var(--accent));
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.digest-section h2 {
    margin: 0 0 0.55rem;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.2;
}

.digest-section p {
    margin: 0 0 0.75rem;
    color: #1d2939;
    font-size: 1.04rem;
    line-height: 1.68;
}

.digest-link {
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--digest-color, var(--accent));
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.digest-link:hover,
.digest-link:focus-visible {
    color: #fff;
    background: var(--digest-color, var(--accent));
    text-decoration: none;
}

.digest-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.digest-panel {
    padding: 0.9rem 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 4px solid var(--ink);
}

.digest-panel-title {
    margin: 0 0 0.6rem;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.digest-most-read {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: digest-read;
}

.digest-most-read li {
    position: relative;
    padding: 0.45rem 0 0.45rem 2rem;
    border-top: 1px solid var(--line);
    counter-increment: digest-read;
}

.digest-most-read li:first-child {
    border-top: 0;
}

.digest-most-read li::before {
    content: counter(digest-read);
    position: absolute;
    top: 0.35rem;
    left: 0;
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
}

.digest-most-read a,
.digest-days a,
.digest-all-list a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.digest-most-read a {
    display: block;
    font-size: 0.88rem;
    line-height: 1.35;
}

.digest-most-read span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.digest-most-read a:hover,
.digest-days a:hover,
.digest-all-list a:hover {
    color: var(--accent);
}

.digest-days {
    margin: 0;
    padding: 0;
    list-style: none;
}

.digest-days li + li {
    border-top: 1px solid var(--line);
}

.digest-days a {
    display: grid;
    grid-template-columns: 4.6rem minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.45rem 0;
    font-size: 0.85rem;
    line-height: 1.3;
}

.digest-day-date {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.digest-all summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.digest-all summary::-webkit-details-marker {
    display: none;
}

.digest-all summary::after {
    content: "+";
    margin-left: 0.5rem;
    color: var(--accent);
    font-size: 1.1rem;
}

.digest-all[open] summary::after {
    content: "\2212";
}

.digest-all-count {
    margin-left: auto;
    padding: 0 0.4rem;
    color: #fff;
    background: var(--ink);
    font-size: 0.72rem;
}

.digest-all-heading {
    margin: 0.85rem 0 0.3rem;
    color: var(--digest-color, var(--ink));
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.digest-all-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.digest-all-list li {
    padding: 0.25rem 0;
    font-size: 0.8rem;
    line-height: 1.35;
}

.digest-follow {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.digest-follow a {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.digest-follow a i {
    width: 1.1rem;
    color: var(--accent);
}

.digest-follow a:hover {
    color: var(--accent);
}

/* Hub (/pregled-dana, /pregled-tjedna): what it is, the latest summary in short, the ones before it. */

.digest-hub-hero {
    margin-bottom: 1.25rem;
}

.digest-hub-today {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.4rem 1.3rem;
    background: var(--surface, #fff);
    border: 1px solid var(--line);
    border-top: 4px solid var(--ink);
}

.digest-hub-today.is-live {
    border-top-color: var(--accent);
}

.digest-hub-title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.3rem, 1rem + 1.3vw, 1.85rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.digest-hub-title a {
    color: var(--ink);
    text-decoration: none;
}

.digest-hub-title a:hover,
.digest-hub-title a:focus-visible {
    color: var(--accent);
}

.digest-hub-lead {
    max-width: 52rem;
    margin: 0 0 1.1rem;
    color: #344054;
    font-size: 1.02rem;
    line-height: 1.55;
}

.digest-hub-subtitle {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.digest-hub-highlights {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.digest-hub-highlight {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 0.15rem 0.9rem;
    align-items: baseline;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
}

.digest-hub-highlight-section {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--digest-color, var(--ink));
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.digest-hub-highlight-title {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.digest-hub-highlight-title:hover,
.digest-hub-highlight-title:focus-visible {
    color: var(--accent);
}

.digest-hub-highlight-source {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.digest-hub-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

.digest-hub-cta {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.45rem 1.1rem;
    color: #fff;
    background: var(--accent);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

.digest-hub-cta:hover,
.digest-hub-cta:focus-visible {
    color: #fff;
    background: var(--ink);
}

.digest-hub-cta-note {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
}

.digest-hub-archive {
    margin: 0 0 1.5rem;
}

.digest-hub-archive a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
}

.digest-hub-archive a:hover,
.digest-hub-archive a:focus-visible {
    color: var(--accent);
}

@media (max-width: 575.98px) {
    .digest-hub-today {
        padding: 1rem 0.9rem 1.05rem;
    }

    .digest-hub-highlight {
        grid-template-columns: minmax(0, 1fr);
    }

    .digest-hub-highlight-section {
        grid-row: auto;
    }

    .digest-hub-cta {
        flex: 1 1 100%;
    }
}

/* Archive */

.digest-archive-hero {
    margin-bottom: 1.25rem;
}

.digest-archive-month {
    margin-bottom: 1.5rem;
}

.digest-archive-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.digest-archive-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    height: 100%;
    padding: 0.8rem 0.9rem;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    text-decoration: none;
}

.digest-archive-item:hover,
.digest-archive-item:focus-visible {
    border-color: var(--ink);
    border-left-color: var(--accent);
}

.digest-archive-date {
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.digest-archive-title {
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.25;
}

.digest-archive-lead {
    display: -webkit-box;
    overflow: hidden;
    color: #475467;
    font-size: 0.85rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.digest-archive-count {
    margin-top: auto;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.digest-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 1rem;
    color: var(--muted);
    text-align: center;
    background: var(--panel);
    border: 1px dashed var(--line);
}

.digest-empty i {
    color: var(--accent);
    font-size: 1.8rem;
}

.digest-empty h1 {
    margin: 0;
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 900;
}

/* Admin */

.digest-admin-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
}

.digest-admin-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.digest-admin-form select,
.digest-admin-form input {
    min-height: 2.4rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 0;
    font: inherit;
    font-weight: 600;
}

.digest-admin-links {
    display: flex;
    gap: 0.9rem;
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 800;
}

.digest-admin-warning {
    margin: 0.75rem 0 0;
    color: var(--accent);
    font-weight: 800;
}

.digest-admin-table-wrap {
    overflow-x: auto;
    background: var(--panel);
    border: 1px solid var(--line);
}

.digest-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.digest-admin-table th,
.digest-admin-table td {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.digest-admin-table th {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.digest-admin-table a {
    color: var(--ink);
    font-weight: 700;
}

.digest-admin-error {
    display: block;
    margin-top: 0.25rem;
    color: var(--accent);
}

/* Tablets: the side panels go under the text. */
@media (max-width: 991.98px) {
    .digest-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Phones: one column along a line on the left, the time above each card. */
@media (max-width: 719.98px) {
    .digest-shell {
        width: calc(100% - 24px);
        padding-top: 0.75rem;
    }

    .digest-hero {
        padding: 1rem 1rem 0.9rem;
    }

    .digest-pager-link.is-next {
        margin-left: 0;
    }

    .digest-timeline::before {
        left: calc(1.2rem - 1.5px);
        transform: none;
    }

    .digest-timeline-day {
        justify-content: flex-start;
    }

    .digest-event {
        grid-template-columns: 2.4rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .digest-event-dot,
    .digest-event.is-major .digest-event-dot {
        grid-row: 1 / span 2;
        grid-column: 1;
        width: 2.1rem;
        height: 2.1rem;
        margin-top: 0;
        font-size: 0.85rem;
    }

    .digest-event.is-left .digest-event-time,
    .digest-event.is-right .digest-event-time {
        grid-row: 1;
        grid-column: 2;
        padding-top: 0.15rem;
        font-size: 0.9rem;
        text-align: left;
    }

    .digest-event.is-left .digest-event-card,
    .digest-event.is-right .digest-event-card {
        grid-row: 2;
        grid-column: 2;
        margin-top: 0.15rem;
        text-align: left;
        border-right: 1px solid var(--line);
        border-left: 4px solid var(--digest-color, var(--ink));
    }

    .digest-event.is-major .digest-event-title {
        font-size: 1rem;
    }

    .digest-section {
        padding-left: 0.75rem;
    }

    .digest-section p {
        font-size: 1rem;
    }

    .digest-admin-links {
        margin-left: 0;
    }
}

/* The stories a paragraph tells, linked under it: small chips with their short headlines. */
.digest-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: -0.35rem 0 0.95rem;
}

.digest-ref {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.15rem 0.5rem;
    color: var(--ink);
    background: color-mix(in srgb, var(--digest-color, var(--accent)) 8%, var(--panel));
    border: 1px solid color-mix(in srgb, var(--digest-color, var(--accent)) 30%, var(--panel));
    border-left: 3px solid var(--digest-color, var(--accent));
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}

.digest-ref::after {
    content: "\00a0\2197";
    color: var(--digest-color, var(--accent));
}

.digest-ref:hover,
.digest-ref:focus-visible {
    color: #fff;
    background: var(--digest-color, var(--accent));
    border-color: var(--digest-color, var(--accent));
}

.digest-ref:hover::after,
.digest-ref:focus-visible::after {
    color: #fff;
}

/* "Sve vijesti dana": the day's reports in the feed. */
.digest-pager-link.is-feed {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.digest-pager-link.is-feed:hover,
.digest-pager-link.is-feed:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
}

/* More reports of a timeline moment, opened on demand. */
.digest-event-more {
    margin-top: 0.15rem;
    font-size: 0.75rem;
}

.digest-event-more summary {
    display: inline-block;
    color: var(--digest-color, var(--accent));
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.digest-event-more summary::-webkit-details-marker {
    display: none;
}

.digest-event-more summary::after {
    content: " \25BE";
}

.digest-event-more[open] summary::after {
    content: " \25B4";
}

.digest-event-more ul {
    display: grid;
    gap: 0.35rem;
    margin: 0.45rem 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

/* Each report: its portal as a small label, the headline under it. */
.digest-event-more li {
    display: grid;
    gap: 0.12rem;
    padding: 0.4rem 0.5rem;
    background: var(--surface);
    border-left: 3px solid var(--digest-color, var(--accent));
}

.digest-event-more-source {
    color: var(--digest-color, var(--accent));
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.digest-event-more a {
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.digest-event-more a:hover,
.digest-event-more a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

/* All news or Croatia only. */
.digest-scope {
    display: inline-flex;
    margin: -0.5rem 0 1.25rem;
    border: 1px solid var(--ink);
}

.digest-scope-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.3rem;
    padding: 0 0.85rem;
    color: var(--ink);
    background: var(--panel);
    border: 0;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.digest-scope-option + .digest-scope-option {
    border-left: 1px solid var(--ink);
}

.digest-scope-option.is-active {
    color: #fff;
    background: var(--ink);
}

.digest-scope-option.is-active i {
    color: #ff6b5e;
}

.digest-local-only [data-local="false"],
.digest-local-only [data-section="world"] {
    display: none !important;
}

/* "Članaka": every report of the day or week, in the feed. */
.digest-stat-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 3px solid var(--accent);
}

.digest-stat-link i {
    color: var(--accent);
    font-size: 0.8rem;
}

.digest-stat-link:hover,
.digest-stat-link:focus-visible {
    color: var(--accent);
}
