/*
 * Alfa Editorial: archive.css
 * Section, tag, date and author pages, and the river (.ed-river) shared with search.
 */

/* ------------------------------------------------------------------ River: the dated stream */

.ed-river { border-top: 1px solid var(--ed-line); }

.ed-river__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "date" "body";
  column-gap: var(--ed-s3);
  align-items: start;
  padding-block: 14px;
  border-bottom: 1px solid var(--ed-line);
}
.ed-river__item.has-media {
  grid-template-columns: minmax(0, 1fr) 96px;
  grid-template-areas: "date date" "body media";
}

.ed-river__date {
  grid-area: date;
  margin-bottom: var(--ed-s2);
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ed-ink-4);
}
.ed-river__body { grid-area: body; min-width: 0; }
.ed-river__media { grid-area: media; }

.ed-river__kicker { margin-bottom: 5px; }
/* Kickers in the river take the colour of the story's section, as on stories elsewhere. */
.ed-river__item[data-sec] .ed-river__kicker:not(.ed-kicker--live) { color: var(--sd-c-text); }

.ed-river__headline {
  font-family: var(--ed-head);
  font-size: var(--ed-fs-sm);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--ed-ink);
  text-wrap: balance;
}
.ed-river__headline a { transition: color 0.12s var(--ed-ease); }
.ed-river__headline a:hover,
.ed-river__item:has(.ed-river__media:hover) .ed-river__headline a { color: var(--ed-ink-3); }
.ed-river__item:has(.ed-river__headline a:hover) .ed-river__media img,
.ed-river__media:hover img { opacity: 0.9; }

.ed-river__dek {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: var(--ed-serif);
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--ed-ink-3);
  text-wrap: pretty;
}
.ed-river__meta { margin-top: var(--ed-s2); }

.ed-river mark {
  padding: 0 1px;
  background: #fbf0b8;
  color: inherit;
}

@media (min-width: 740px) {
  .ed-river__item {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas: "date body";
    column-gap: var(--ed-s5);
    padding-block: var(--ed-s4);
  }
  .ed-river__item.has-media {
    grid-template-columns: 96px minmax(0, 1fr) 176px;
    grid-template-areas: "date body media";
  }
  .ed-river__date { margin-bottom: 0; padding-top: 4px; }
  .ed-river__headline { font-size: var(--ed-fs-md); line-height: 1.17; }
  .ed-river__dek { display: block; overflow: visible; font-size: var(--ed-fs-dek); line-height: 1.33; }
}
@media (min-width: 1150px) {
  .ed-river__item { grid-template-columns: 120px minmax(0, 1fr); column-gap: var(--ed-s6); }
  .ed-river__item.has-media { grid-template-columns: 120px minmax(0, 1fr) 210px; }
}

/* ------------------------------------------------------------------ Page head */

.ed-archive__head {
  padding-top: var(--ed-s5);
  border-bottom: 1px solid var(--ed-ink);
}
.ed-archive__head > :last-child { margin-bottom: var(--ed-s5); }
.ed-archive__head > .ed-archive__subnav:last-child { margin-bottom: 0; }
.ed-archive__head .ed-breadcrumbs { margin-bottom: var(--ed-s5); }

.ed-archive__label { margin-bottom: var(--ed-s2); }

/* The section name: the condensed heavy serif of .ed-display, 40 to 48px. */
.ed-archive__title {
  font-size: clamp(2.5rem, 2.1rem + 1.1vw, 3rem);
  text-wrap: balance;
}

.ed-archive__page { margin-top: var(--ed-s3); }

.ed-archive__dek {
  max-width: var(--ed-measure);
  margin-top: var(--ed-s3);
  font-family: var(--ed-serif);
  font-size: var(--ed-fs-dek);
  line-height: 1.5;
  color: var(--ed-ink-3);
  text-wrap: pretty;
}

/* Sub-sections: a row of small sans links under a hairline. Wraps rather than scrolls, so no
   name is ever cut; every link keeps a 40px touch target. */
.ed-archive__subnav {
  margin-top: var(--ed-s5);
  border-top: 1px solid var(--ed-line);
}
.ed-archive__subnav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--ed-s5);
  margin: 0;
  padding: 2px 0;
  list-style: none;
}
.ed-archive__sublink {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-ui);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ed-ink);
  white-space: nowrap;
  transition: color 0.12s var(--ed-ease);
}
.ed-archive__sublink:hover { color: var(--ed-ink-3); }
.ed-archive__sublink[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.ed-archive__sublink--up { color: var(--ed-ink-4); }
.ed-archive__sublink--up .ed-icon { color: var(--ed-line-2); }
.ed-archive__sublink--up:hover .ed-icon { color: currentColor; }
@media (min-width: 1024px) {
  .ed-archive__subnav ul { column-gap: var(--ed-s6); }
}

.ed-archive .ed-slot--archive-top { margin-top: var(--ed-s6); }
/* A section module after the lead package (the results table on Спорт): the river's own ink rule
   follows it, so the slot closes without a rule of its own (no doubled line). */
.ed-front__module > .ed-slot--archive-top { padding-bottom: 0; border-bottom: 0; }
.ed-front__module .ed-scores { margin-bottom: 0; }

/* ------------------------------------------------------------------ Highlights package */

.ed-archive__top { padding-top: var(--ed-s5); }

/* Lead: text in a narrow column at the left (40%), the picture over the right 60%. */
.ed-archive__lead {
  display: flex;
  flex-direction: column;
  gap: var(--ed-s3);
  padding-bottom: var(--ed-s5);
  border-bottom: 1px solid var(--ed-line);
}
.ed-archive__lead-media { order: -1; }
.ed-archive__lead-story .ed-story__headline { font-size: var(--ed-fs-lg); }
.ed-archive__lead-story .ed-story__dek { font-size: var(--ed-fs-dek); line-height: 1.4; }

.ed-archive__related {
  --ed-list-gap: var(--ed-s3);
  margin-top: var(--ed-s4);
  padding-top: var(--ed-s3);
  border-top: 1px solid var(--ed-line);
}
.ed-archive__related .ed-meta { margin-top: 6px; }

@media (min-width: 740px) {
  .ed-archive__lead.has-media {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: var(--ed-s6);
    align-items: start;
  }
  .ed-archive__lead-media { order: 0; }
}
@media (min-width: 1024px) {
  .ed-archive__lead.has-media { column-gap: var(--ed-s8); }
}

/* A row of four picture stories (two by two on tablets, stacked thumbs on phones). */
.ed-archive__four { margin-top: var(--ed-s4); }
.ed-archive__four .ed-story { gap: var(--ed-s3); }
@media (max-width: 739.98px) {
  .ed-archive__four .ed-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    grid-template-areas: "body media";
    column-gap: var(--ed-s3);
    align-items: start;
  }
  .ed-archive__four .ed-story:not(.has-media) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body"; }
  .ed-archive__four .ed-story__media { grid-area: media; }
  .ed-archive__four .ed-story__body { grid-area: body; }
  .ed-archive__four .ed-story__headline { font-size: var(--ed-fs-xs); }
}
@media (min-width: 740px) {
  .ed-archive__four { margin-top: var(--ed-s5); }
}
/* Four columns of about 210px: 19px headlines break into four or five short lines. */
@media (min-width: 1024px) and (max-width: 1149.98px) {
  .ed-archive__four .ed-story__headline { font-size: var(--ed-fs-xs); line-height: 1.22; }
}

/* ------------------------------------------------------------------ Body: river + rail */

.ed-archive__body { margin-top: var(--ed-s6); }
.ed-archive__top + .ed-archive__body { padding-top: var(--ed-s3); border-top: 1px solid var(--ed-ink); }
.ed-archive__head + .ed-archive__body { margin-top: var(--ed-s4); }
@media (min-width: 1024px) {
  .ed-archive__body { margin-top: var(--ed-s8); }
  .ed-archive__head + .ed-archive__body { margin-top: var(--ed-s5); }
}

/* Sticky on scroll (desktop only): archive.js marks the shorter column of a [data-aed-balance]
   pair .is-stuck when it fits under the sticky header; it then stays in view while the longer
   column scrolls, so no column ends in a hole. The column rule is drawn by the pair itself, so it
   runs the full height whichever column is stuck. */
@media (min-width: 1024px) {
  [data-aed-balance].is-balanced { align-items: start; }
  [data-aed-balance] > .is-stuck {
    position: sticky;
    top: calc(var(--ed-sticky-top, 64px) + 16px);
    align-self: start;
  }
  .ed-archive__body.ed-split { position: relative; }
  .ed-archive__body.ed-split > :first-child { border-right: 0; }
  .ed-archive__body.ed-split::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(100% * 2.9 / 3.9);
    border-left: 1px solid var(--ed-line-2);
    pointer-events: none;
  }
  .ed-archive__body.ed-split.has-top::after { top: var(--ed-s3); }
}

.ed-archive__latest { margin-bottom: var(--ed-s3); }
/* A short page continues with its parent section's newest stories, under their own head. */
.ed-river + .ed-archive__also { margin-top: var(--ed-s5, 2rem); }
/* Both columns open the same way: black rule, label, first item (no extra hairline). */
.ed-archive__latest + .ed-river { border-top: 0; }
.ed-archive__latest + .ed-river > .ed-river__item:first-child { padding-top: var(--ed-s1); }

/* Without a section head the river opens straight under the page rule. */
.ed-archive__head + .ed-archive__body .ed-archive__main > .ed-river:first-child { border-top: 0; }
.ed-archive__head + .ed-archive__body .ed-archive__main > .ed-river:first-child > .ed-river__item:first-child { padding-top: var(--ed-s1); }

.ed-archive__rail { min-width: 0; }
.ed-archive__rail > * + * { margin-top: var(--ed-s6); }
.ed-archive__ranked { padding-top: var(--ed-s3); border-top: 1px solid var(--ed-ink); }
@media (min-width: 1024px) {
  .ed-archive__ranked { padding-top: 0; border-top: 0; }
}

/* Most read with pictures: number, headline, a 64px square at the right. */
.ed-archive__ranked-list > li { align-items: start; }
.ed-archive__ranked-list > li.has-media { grid-template-columns: 1.6rem minmax(0, 1fr) 64px; }
.ed-archive__ranked-list > li::before { padding-top: 2px; }
.ed-archive__ranked-media { width: 64px; }

/* Load more */
.ed-archive__more { display: flex; justify-content: center; margin-top: var(--ed-s6); }
.ed-archive__more-btn { width: 100%; min-height: 44px; }
.ed-archive__more-btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.ed-archive__more + .ed-pagination { margin-top: var(--ed-s6); }
@media (min-width: 740px) {
  .ed-archive__more-btn { width: auto; min-width: 220px; }
}

/* Pagination: every target at least 40px; the label span inside prev/next is text, not a box. */
.ed-archive .ed-pagination a,
.ed-archive .ed-pagination ul > li > span {
  min-width: 40px;
  min-height: 40px;
}
.ed-archive .ed-pagination a > span { display: inline; min-width: 0; min-height: 0; padding: 0; border: 0; }
.ed-archive .ed-pagination .dots { min-width: 0; }
/* Phones: arrows only, so the row never wraps and leaves "Постаро" alone on a line. */
@media (max-width: 739.98px) {
  .ed-archive .ed-pagination ul { flex-wrap: nowrap; gap: 4px; }
  .ed-archive .ed-pagination a,
  .ed-archive .ed-pagination ul > li > span { min-height: 44px; padding: 0 8px; }
  .ed-archive .ed-pagination .prev,
  .ed-archive .ed-pagination .next { position: relative; min-width: 44px; padding: 0; }
  .ed-archive .ed-pagination .dots { padding: 0 2px; }
  .ed-archive .ed-pagination a > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.ed-river__item.is-new { animation: ed-river-in 0.36s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes ed-river-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ed-river__item.is-new { animation: none; }
}

.ed-archive .ed-empty { margin-top: var(--ed-s6); }

/* ================================================================== Section fronts (СЕДУМ ДЕНА) */

/* Section washes and rules for the fronts and archives (hex fallbacks; oklch versions below). */
.ed-front,
.ed-archive {
  --fx-wash: var(--sd-c-wash, color-mix(in srgb, var(--sd-c) 4.5%, #fff));
  --fx-wash-2: var(--sd-c-wash-2, color-mix(in srgb, var(--sd-c) 9%, #fff));
  --fx-rule: color-mix(in srgb, var(--sd-c) 16%, var(--ed-line));
  --fx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* ------------------------------------------------------------------ Shared parts */

.ed-front__top { padding-top: var(--ed-s4); }

/* Group heading: the section colour's 3px rule, a small sans name linked to the sub-section. */
.ed-front__head {
  margin-bottom: var(--ed-s3);
  padding-top: 10px;
  border-top: 1px solid var(--ed-ink);
  font-family: var(--ed-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ed-ink);
}
.ed-front__head a { display: inline-flex; align-items: center; gap: 3px; min-height: 32px; }
.ed-front__head a:hover { color: var(--sd-c-text); }
.ed-front__head .ed-icon { transition: transform 0.15s var(--ed-ease); }
.ed-front__head a:hover .ed-icon { transform: translateX(2px); }

.ed-front__block { margin-top: var(--ed-s6); }
/* The lead package already closes with the ink rule: the first group head after it does not repeat it. */
.ed-front__lead + .ed-front__block > .ed-front__head { border-top: 0; padding-top: 0; }
@media (min-width: 1024px) {
  .ed-front__block { margin-top: var(--ed-s8); }
}

/* Lists under a first story */
.ed-front__group > .ed-story + .ed-front__more,
.ed-front__group > .ed-story + .ed-list { margin-top: var(--ed-s3); padding-top: var(--ed-s3); border-top: 1px solid var(--ed-line); }
.ed-front__more .ed-meta { margin-top: 6px; }

/* Picture cards become small-thumb rows on phones (headline left, picture right). */
@media (max-width: 739.98px) {
  .ed-front__grid .ed-story,
  .ed-front__card.ed-story,
  .ed-front__subs--strip .ed-story.has-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    grid-template-areas: "body media";
    column-gap: var(--ed-s3);
    align-items: start;
  }
  .ed-front__grid .ed-story:not(.has-media),
  .ed-front__card.ed-story:not(.has-media) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body"; }
  .ed-front__grid .ed-story__media,
  .ed-front__card .ed-story__media,
  .ed-front__subs--strip .ed-story__media { grid-area: media; aspect-ratio: 3 / 2; }
  .ed-front__grid .ed-story__body,
  .ed-front__card .ed-story__body,
  .ed-front__subs--strip .ed-story__body { grid-area: body; }
  .ed-front__grid .ed-story__headline,
  .ed-front__card .ed-story__headline { font-size: var(--ed-fs-xs); line-height: 1.22; }
  .ed-front__card .ed-story__dek { display: none; }
}

/* ------------------------------------------------------------------ Lead packages */

.ed-front__lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--ed-s5);
  padding-bottom: var(--ed-s6);
  border-bottom: 1px solid var(--ed-ink);
}
.ed-front__lead-main, .ed-front__lead-side { min-width: 0; }
.ed-front__lead-story .ed-story__dek { font-size: 1rem; line-height: 1.45; }
.ed-front__lead-side { padding-top: var(--ed-s3); border-top: 1px solid var(--ed-line); }

@media (min-width: 1024px) {
  .ed-front__lead.has-side:not(.ed-front__lead--feature) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: calc(2 * var(--ed-col-pad)); }
  .ed-front__lead.has-side:not(.ed-front__lead--feature) > .ed-front__lead-side {
    position: relative;
    padding-top: 0;
    border-top: 0;
  }
  /* The column rule belongs to the package, so it runs full height when a column is stuck. */
  .ed-front__lead.has-side:not(.ed-front__lead--feature) { position: relative; }
  .ed-front__lead.has-side:not(.ed-front__lead--feature)::after {
    content: "";
    position: absolute;
    top: 0; bottom: var(--ed-s6);
    left: calc((100% - 2 * var(--ed-col-pad)) * 2 / 3 + var(--ed-col-pad));
    border-left: 1px solid var(--ed-line-2);
    pointer-events: none;
  }
}

/* Политика: lead text first, the chronology beside it (time-led, ruled, dense). */
.ed-front__lead--brief .ed-front__lead-story { --ed-side-text: 1fr; --ed-side-media: 1.15fr; }
.ed-front__lead--brief .ed-front__lead-story .ed-story__headline { font-size: clamp(1.625rem, 1.4rem + 0.6vw, 2rem); line-height: 1.12; }
.ed-front__side-label {
  margin-bottom: var(--ed-s2);
  padding-top: var(--ed-s2);
  border-top: 1px solid var(--ed-ink);
}
.ed-front__extra { margin-top: var(--ed-s4); padding-top: var(--ed-s3); border-top: 1px solid var(--ed-line); }
.ed-front__chrono-list { margin: 0; padding: 0; list-style: none; }
.ed-front__chrono-item { padding-block: var(--ed-s3); }
.ed-front__chrono-item + .ed-front__chrono-item { border-top: 1px solid var(--ed-line); }
.ed-front__chrono-item .ed-kicker { margin-bottom: 4px; }
/* The chronology's times use the one meta style of every list (.ed-meta), above the headline. */
.ed-front__time { margin-top: 0; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.ed-front__chrono-head {
  font-family: var(--ed-head);
  font-size: var(--ed-fs-xs);
  font-weight: 500;
  line-height: 1.24;
  color: var(--ed-ink);
  text-wrap: balance;
}
.ed-front__chrono-head a:hover { color: var(--ed-ink-3); }
@media (min-width: 1024px) {
  .ed-front__chrono-item:first-child { padding-top: var(--ed-s1); }
}

/* Економија: picture left, text right; a list with short summaries beside. */
.ed-front__lead--split .ed-front__lead-story { --ed-side-text: 1fr; --ed-side-media: 1.1fr; }
.ed-front__side-list { --ed-list-gap: var(--ed-s3); }

/* Технологија: one large card and two smaller ones. */
.ed-front__lead--cards .ed-front__side-list { --ed-list-gap: var(--ed-s4); }
.ed-front__lead--cards .ed-front__lead-story .ed-story__headline { font-size: clamp(1.625rem, 1.4rem + 0.6vw, 2rem); line-height: 1.12; }
@media (min-width: 1024px) {
  .ed-front__lead--cards .ed-front__side-list > li + li { border-top: 0; padding-top: 0; margin-top: var(--ed-s6); }
}

/* Спорт: picture first, a heavy headline opened by a bar of the section colour. */
.ed-front__lead--hero .ed-front__lead-story .ed-story__body {
  padding-left: 0;
  border-left: 0;
}
.ed-front__lead--hero .ed-front__lead-story .ed-story__headline {
  font-size: clamp(1.625rem, 1.4rem + 0.6vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
}
.ed-front__lead--hero .ed-front__side-list { --ed-list-gap: var(--ed-s4); }

/* Култура and Магазин: a wide picture with a large headline, a row of three below. */
.ed-front__lead--feature .ed-front__lead-story { --ed-side-media: 1.45fr; --ed-side-text: 1fr; }
.ed-front__lead--feature .ed-front__lead-story .ed-story__headline { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.25rem); }
.ed-front__lead--feature .ed-front__lead-story.ed-story--light .ed-story__headline { font-weight: 400; line-height: 1.12; }
@media (min-width: 740px) {
  .ed-front__lead--feature .ed-front__lead-story { align-items: center; column-gap: var(--ed-s8); }
  .ed-front__lead--feature .ed-front__side-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: calc(2 * var(--ed-col-pad));
  }
  .ed-front__lead--feature .ed-front__side-list > li { position: relative; }
  .ed-front__lead--feature .ed-front__side-list > li + li { margin-top: 0; padding-top: 0; border-top: 0; }
  .ed-front__lead--feature .ed-front__side-list > li + li::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-line-2);
  }
  .ed-front__lead--feature .ed-front__side-list .ed-story--thumb { --ed-thumb: 96px; }
}

/* ------------------------------------------------------------------ Sub-section blocks */

/* Columns (Политика text-only, Спорт and Економија with a picture on top). */
.ed-front__subs--columns .ed-story--text .ed-story__headline { font-size: var(--ed-fs-sm); }

/* Rows of large cards (Технологија). */
.ed-front__row + .ed-front__row { margin-top: var(--ed-s6); }

/* Date-led notices (Јавни набавки, Огласи за вработување). */
.ed-front__dated { margin: 0; padding: 0; list-style: none; }
.ed-front__dated > li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: var(--ed-s3);
  align-items: baseline;
  padding-block: var(--ed-s3);
}
.ed-front__dated > li + li { border-top: 1px solid var(--ed-line); }
.ed-front__dated > li:first-child { padding-top: 0; }
.ed-front__date { display: flex; flex-direction: column; font-family: var(--ed-sans); line-height: 1; }
.ed-front__day {
  font-family: var(--ed-head);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--sd-c-text);
}
.ed-front__mon {
  margin-top: 3px;
  font-size: var(--ed-fs-label);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ed-ink-4);
}
.ed-front__dated-head {
  font-family: var(--ed-head);
  font-size: var(--ed-fs-xs);
  font-weight: 500;
  line-height: 1.24;
  text-wrap: balance;
}
.ed-front__dated-head a:hover { color: var(--ed-ink-3); }

/* Browsable tiles (Магазин): two a row on phones, three, then four. */
.ed-front__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ed-s6) var(--ed-s4);
}
.ed-front__tiles .ed-front__group { min-width: 0; }
.ed-front__tiles .ed-story__headline { font-size: var(--ed-fs-xs); line-height: 1.22; }
.ed-front__tiles .ed-front__more .ed-story__headline { font-size: 0.9375rem; }
@media (min-width: 740px) {
  .ed-front__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--ed-s6); }
  .ed-front__tiles .ed-story__headline { font-size: var(--ed-fs-sm); line-height: 1.2; }
}
@media (min-width: 1024px) {
  .ed-front__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The five disciplines (Култура): portrait pictures, italic heads. */
.ed-front__subs--strip .ed-story--light .ed-story__headline { font-size: var(--ed-fs-sm); }

/* A single group spans the width as a two-column list from tablets on. */
@media (min-width: 740px) {
  .ed-front__single .ed-front__more { columns: 2; column-gap: calc(2 * var(--ed-col-pad)); }
  .ed-front__single .ed-front__more > li { break-inside: avoid; }
}

/* Quiet panel (Хороскоп): the section wash, compact headlines in two columns. */
.ed-front__compact {
  padding: var(--ed-s5) var(--ed-s4) var(--ed-s4);
  background: var(--fx-wash);
  border-top: 1px solid var(--ed-ink);
}
.ed-front__compact .ed-front__compact-list > li + li { border-top-color: var(--fx-rule); }
.ed-front__compact .ed-front__head { border-top: 0; padding-top: 0; color: var(--ed-ink); }
.ed-front__compact-list { margin: 0; padding: 0; list-style: none; }
.ed-front__compact-list > li { padding-block: var(--ed-s3); break-inside: avoid; }
.ed-front__compact-list > li + li { border-top: 1px solid var(--ed-line); }
.ed-front__compact-list > li:first-child { padding-top: 0; }
.ed-front__compact-head {
  font-family: var(--ed-head);
  font-size: var(--ed-fs-xs);
  font-weight: 500;
  line-height: 1.24;
  text-wrap: balance;
}
.ed-front__compact-head a:hover { color: var(--sd-c-text); }
.ed-front__compact .ed-meta { margin-top: 4px; }
@media (min-width: 740px) {
  .ed-front__compact { padding: var(--ed-s6); }
  .ed-front__compact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--ed-s8); }
  .ed-front__compact-list > li:nth-child(2) { padding-top: 0; border-top: 0; }
}
@media (min-width: 1024px) {
  .ed-front__compact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-front__compact-list > li:nth-child(3) { padding-top: 0; border-top: 0; }
}

/* ------------------------------------------------------------------ Sub-section pages, river, end */

.ed-front__subhead {
  padding-block: var(--ed-s4) var(--ed-s3);
  border-bottom: 1px solid var(--ed-ink);
}
.ed-front__title {
  font-family: var(--ed-head);
  font-size: clamp(1.75rem, 1.45rem + 1.2vw, 2.375rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ed-ink);
}
.ed-front__subhead .ed-archive__dek { margin-top: var(--ed-s2); }
.ed-front__subhead + .ed-archive__body { margin-top: var(--ed-s4); }
.ed-front__subhead + .ed-archive__body .ed-archive__main > .ed-river:first-child { border-top: 0; }
.ed-front__subhead + .ed-archive__body .ed-archive__main > .ed-river:first-child > .ed-river__item:first-child { padding-top: var(--ed-s1); }

/* After a front's top, the river opens like the other blocks: ink rule, label. */
.ed-archive__body.has-top { margin-top: var(--ed-s6); padding-top: var(--ed-s3); border-top: 1px solid var(--ed-ink); }
@media (min-width: 1024px) {
  .ed-archive__body.has-top { margin-top: var(--ed-s8); }
  /* The body's ink rule already opens the rail: no second rule 13px under it. */
  .ed-archive__body.has-top .ed-archive__rail > .ed-slot--bridge-rail:first-child .sd-bridge--rail { padding-top: 0; border-top: 0; }
}
/* Later pages of a front: the river starts right under the masthead. */
.ed-front > .ed-archive__body:first-child { margin-top: var(--ed-s4); }
.ed-front > .ed-archive__body:first-child .ed-archive__main > .ed-river:first-child { border-top: 1px solid var(--ed-ink); }

.ed-front .ed-archive__rail > .ed-slot--bridge-rail + .ed-archive__ranked { padding-top: var(--ed-s3); border-top: 1px solid var(--ed-ink); }

.ed-front__end { margin-top: var(--ed-s6); }
@media (min-width: 1024px) {
  .ed-front__end { margin-top: var(--ed-s8); }
}

/* ------------------------------------------------------------------ Pictures everywhere (2026-11-26) */

/* Small-thumb rows: headline left, a plain picture at the right (72 to 96px). */
/* base.css sets --ed-thumb on the story itself (104px, 120px from 740px), so set it there too. */
.ed-front__more .ed-story--thumb,
.ed-archive__related .ed-story--thumb { --ed-thumb: 72px; }
.ed-story--thumb.ed-front__first,
.ed-story--thumb.ed-front__extra-story,
.ed-front__lead--split .ed-front__side-list .ed-story--thumb { --ed-thumb: 96px; }
@media (min-width: 740px) {
  .ed-front__more .ed-story--thumb { --ed-thumb: 72px; }
  .ed-archive__related .ed-story--thumb { --ed-thumb: 88px; }
  .ed-story--thumb.ed-front__first,
  .ed-story--thumb.ed-front__extra-story,
  .ed-front__lead--split .ed-front__side-list .ed-story--thumb { --ed-thumb: 96px; }
}
.ed-front__more .ed-story__headline { font-size: 0.9375rem; line-height: 1.25; }

/* Chronology and the quiet panel: text column, then a square picture. */
.ed-front__chrono-item.has-media,
.ed-front__compact-list > li.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  column-gap: var(--ed-s3);
  align-items: start;
}
.ed-front__chrono-text,
.ed-front__compact-text { min-width: 0; }
.ed-front__chrono-media,
.ed-front__compact-media { width: 72px; }
.ed-front__chrono-item.has-media .ed-front__chrono-media { margin-top: 2px; }

/* Empty sub-section: a compact notice on the section's wash, then the section's latest as cards. */
.ed-front__empty {
  margin-top: var(--ed-s4);
  padding: var(--ed-s4) var(--ed-s5);
  background: var(--fx-wash);
  border-left: 3px solid var(--sd-c);
  border-radius: 0 3px 3px 0;
}
.ed-front .ed-empty {
  padding: var(--ed-s5);
  background: var(--fx-wash);
  border-left: 3px solid var(--sd-c);
  border-radius: 0 3px 3px 0;
}
.ed-front__empty-title {
  margin-top: var(--ed-s2);
  font-family: var(--ed-head);
  font-size: var(--ed-fs-sm);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ed-ink);
  text-wrap: balance;
}
.ed-front__empty-text {
  margin-top: var(--ed-s1);
  font-family: var(--ed-serif);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--ed-ink-3);
}
.ed-front__fill .ed-cols { row-gap: var(--ed-s6); }

/* ------------------------------------------------------------------ Author */

/* Label, name, bio and count flush left, like a section front: no avatar badge. */
.ed-profile__count { margin-top: var(--ed-s3); }

/* Phones: summaries in thumb rows stop at three lines. */
@media (max-width: 739.98px) {
  .ed-story--thumb.ed-front__extra-story .ed-story__dek,
  .ed-story--thumb.ed-front__first .ed-story__dek {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

/* Технологија rows with two stories (or one): text beside a smaller picture, so the row stays full
   without the pictures growing past the three-card rows. */
.ed-front__subs--rows .ed-cols--2 .ed-story--side { --ed-side-text: 1.15fr; --ed-side-media: 1fr; }
.ed-front__subs--rows .ed-front__single .ed-story--side { --ed-side-text: 1fr; --ed-side-media: 1fr; }

/* ================================================================== Round 4: bands and motion */

/* One block per front stands on a full-width band of the section's wash, hairlines at its edges.
   The band is painted by border-image outset, which never widens the page (no horizontal scroll),
   and the block keeps its place in the column. */
.ed-front__block--band {
  position: relative;
  padding-block: var(--ed-s5) var(--ed-s6);
  border-image: linear-gradient(to bottom, var(--fx-rule) 0 1px, var(--fx-wash) 1px calc(100% - 1px), var(--fx-rule) calc(100% - 1px)) 0 fill / 0 / 0 100vmax;
}
.ed-front__block--band.ed-front__compact { padding-inline: 0; background: transparent; border-top: 0; }
.ed-front__block--band > .ed-front__head:first-child,
.ed-front__block--band .ed-front__group > .ed-front__head,
.ed-front__block--band .ed-front__row > .ed-front__head { border-top-color: var(--ed-ink); }
/* After the lead the first group head drops its rule; on a band it keeps none either. */
.ed-front__lead + .ed-front__block--band { margin-top: var(--ed-s6); }
.ed-front__block--band + .ed-front__block { margin-top: var(--ed-s6); }
.ed-front__block--band .ed-media--empty { background: var(--fx-wash-2); }
@media (min-width: 740px) {
  .ed-front__block--band { padding-block: var(--ed-s6) var(--ed-s8); }
}
@media (min-width: 1024px) {
  .ed-front__lead + .ed-front__block--band,
  .ed-front__block--band + .ed-front__block { margin-top: var(--ed-s8); }
}
@media print {
  .ed-front__block--band { border-image: none; padding-block: 0; }
}

/* Links and heads: a quick colour and underline transition (no movement). */
.ed-front .ed-story__headline a,
.ed-archive .ed-river__headline a,
.ed-front__compact-head a,
.ed-front__chrono-head a,
.ed-front__dated-head a {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--fx-ease), text-decoration-color 0.2s var(--fx-ease);
}
.ed-front .ed-story__headline a:hover,
.ed-archive .ed-river__headline a:hover,
.ed-front__compact-head a:hover,
.ed-front__chrono-head a:hover,
.ed-front__dated-head a:hover { text-decoration-color: currentColor; }

/* Pictures: a slow 1.03 scale while the story is hovered (desktop pointers only). The story
   images come from aed_story_html, so they are reached through the story here; the media this
   lane prints itself also carry .ed-zoom for the shared rule in base.css. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ed-front .ed-story .ed-media > img,
  .ed-archive .ed-story .ed-media > img,
  .ed-archive .ed-river__media > img,
  .ed-front__compact-media > img,
  .ed-front__chrono-media > img {
    transition: transform 0.5s var(--fx-ease), opacity 0.2s var(--ed-ease);
  }
  .ed-front .ed-story:hover .ed-media > img,
  .ed-archive .ed-story:hover .ed-media > img,
  .ed-archive .ed-river__item:hover .ed-river__media > img,
  .ed-front__compact-list > li:hover .ed-front__compact-media > img,
  .ed-front__chrono-item:hover .ed-front__chrono-media > img { transform: scale(1.03); }
}

/* ================================================================== Round 5 (owner, 2026-11-26): final polish
 * Gradients in oklch (hex washes stay the fallback), image wipes and rule draw-ins on reveal, headline underlines that draw
 * in, pictures that fade in when decoded. Motion: transform, opacity and clip-path only, 180 to
 * 520ms on one easing, never on the first screen (core.js marks it revealed at once), all of it
 * off under prefers-reduced-motion and without JS (html.js-motion). */

.ed-front,
.ed-archive {
  --fx-ease: var(--ed-motion, cubic-bezier(0.2, 0.7, 0.2, 1));
  --fx-rule: var(--sd-line, color-mix(in srgb, var(--sd-c) 20%, #fff));
  --fx-sel: color-mix(in srgb, var(--sd-c) 20%, #fff);
  --fx-glow: color-mix(in srgb, var(--sd-c) 12%, transparent);
  --fx-band-end: var(--fx-wash);
}
@supports (color: color-mix(in oklch, red, blue)) {
  .ed-front,
  .ed-archive {
    --fx-wash: var(--sd-c-wash, color-mix(in oklch, var(--sd-c) 4.5%, #fff));
    --fx-wash-2: var(--sd-c-wash-2, color-mix(in oklch, var(--sd-c) 9%, #fff));
    --fx-rule: var(--sd-line, color-mix(in oklch, var(--sd-c) 22%, #fff));
    --fx-sel: color-mix(in oklch, var(--sd-c) 20%, #fff);
    --fx-band-end: color-mix(in oklch, var(--fx-wash) 60%, #fff);
  }
}
/* The second hue (--sd-c-2: the section colour turned 25 degrees), faint, for the corner glow that
   drifts at its own depth over the page-top gradient (which carries a still glow of its own). */
@supports (color: color-mix(in oklch, red, blue)) {
  .ed-front,
  .ed-archive {
    --fx-glow: color-mix(in oklch, var(--sd-c-2, var(--sd-c)) 8%, transparent);
  }
}

/* Section colour for selection and focus rings inside a front. */
.ed-front ::selection { background: var(--fx-sel); color: var(--ed-ink); }
.ed-front :focus-visible { outline-color: var(--sd-c-text); }

/* ------------------------------------------------------------------ Bands: a horizontal fade */

/* The band's hairlines stay on the element (section line, full bleed); the wash moves to a layer
   behind it that fades across the page, so a band never reads as a flat stripe. */
.ed-front__block--band {
  isolation: isolate;
  border-image: linear-gradient(to bottom, var(--fx-rule) 0 1px, transparent 1px calc(100% - 1px), var(--fx-rule) calc(100% - 1px)) 0 fill / 0 / 0 100vmax;
}
.ed-front__block--band::before {
  content: "";
  position: absolute;
  inset: 1px 0;
  z-index: -1;
  pointer-events: none;
  /* The stops of --sd-grad-band (wash-2 at the left, wash past the middle, paler at the right),
     placed on the viewport: the painted box is far wider than the page (border-image outset). */
  border-image: linear-gradient(90deg, var(--fx-wash-2) calc(50% - 50vw), var(--fx-wash) calc(50% + 5vw), var(--fx-band-end) calc(50% + 50vw)) 0 fill / 0 / 0 100vmax;
}
@media print {
  .ed-front__block--band::before { display: none; }
}

/* Quiet panels on the wash: hairlines in the section's line. */
.ed-front__compact-list > li + li,
.ed-front__block--band .ed-list > li + li,
.ed-front__block--band .ed-front__dated > li + li { border-top-color: var(--fx-rule); }

/* ------------------------------------------------------------------ Hovers: physical, 180ms */

/* Headlines: an underline that draws in from the left (it follows the lines of a long headline). */
.ed-front .ed-story__headline a,
.ed-archive .ed-river__headline a,
.ed-archive .ed-story__headline a,
.ed-archive .ed-ranked__headline a,
.ed-front__compact-head a,
.ed-front__chrono-head a,
.ed-front__dated-head a {
  text-decoration-line: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: color 0.18s var(--fx-ease), background-size 0.18s var(--fx-ease);
}
.ed-front .ed-story__headline a:is(:hover, :focus-visible),
.ed-front .ed-story:has(.ed-media:hover) .ed-story__headline a,
.ed-archive .ed-river__headline a:is(:hover, :focus-visible),
.ed-archive .ed-river__item:has(.ed-river__media:hover) .ed-river__headline a,
.ed-archive .ed-story__headline a:is(:hover, :focus-visible),
.ed-archive .ed-ranked__headline a:is(:hover, :focus-visible),
.ed-archive .ed-ranked > li:has(.ed-media:hover) .ed-ranked__headline a,
.ed-front__compact-head a:is(:hover, :focus-visible),
.ed-front__compact-list > li:has(.ed-media:hover) .ed-front__compact-head a,
.ed-front__chrono-head a:is(:hover, :focus-visible),
.ed-front__chrono-item:has(.ed-media:hover) .ed-front__chrono-head a,
.ed-front__dated-head a:is(:hover, :focus-visible) { background-size: 100% 1px; }
@media (prefers-reduced-motion: reduce) {
  .ed-front .ed-story__headline a,
  .ed-archive :is(.ed-river__headline, .ed-story__headline, .ed-ranked__headline) a,
  .ed-front__compact-head a,
  .ed-front__chrono-head a,
  .ed-front__dated-head a { transition: color 0.18s var(--fx-ease); }
}

/* Pictures: 1.03 while the story is hovered; the ranked list joins the others. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ed-archive .ed-ranked .ed-media > img { transition: transform 0.42s var(--fx-ease), opacity 0.32s var(--fx-ease); }
  .ed-archive .ed-ranked > li:hover .ed-media > img { transform: scale(1.03); }
}

/* Group heads: the arrow steps forward on hover, the name takes the section colour. */
.ed-front__head a { transition: color 0.18s var(--fx-ease); }
.ed-front__head .ed-icon { transition: transform 0.18s var(--fx-ease); }

/* ------------------------------------------------------------------ Pictures fade in when decoded */

/* archive.js marks a lazy picture that is still loading; it fades in once decoded (never the
   priority picture, never without JS: the class is only ever set by the script). */
.ed-front .ed-media > img.is-loading,
.ed-archive .ed-media > img.is-loading { opacity: 0; }
.ed-front .ed-media > img.is-loaded,
.ed-archive .ed-media > img.is-loaded { transition: opacity 0.36s var(--fx-ease), transform 0.42s var(--fx-ease); }

/* ------------------------------------------------------------------ Reveals with character */

@media (prefers-reduced-motion: no-preference) {
  /* Pictures open with a short wipe from the left and settle from 1.04, in reading order. */
  html.js-motion :is(.ed-front, .ed-archive) [data-reveal]:not(.is-in) .ed-media { clip-path: inset(0 100% 0 0); }
  html.js-motion :is(.ed-front, .ed-archive) [data-reveal]:not(.is-in) .ed-media > img { transform: scale(1.04); }
  html.js-motion :is(.ed-front, .ed-archive) [data-reveal]:not(.is-done) .ed-media {
    transition: clip-path 0.52s var(--fx-ease) var(--fx-d, 80ms);
  }
  html.js-motion :is(.ed-front, .ed-archive) [data-reveal]:not(.is-done) .ed-media > img {
    transition: transform 0.52s var(--fx-ease) var(--fx-d, 80ms), opacity 0.36s var(--fx-ease);
  }
  :is(.ed-front, .ed-archive) .ed-cols > :nth-child(2),
  :is(.ed-front, .ed-archive) .ed-front__tiles > :nth-child(2) { --fx-d: 140ms; }
  :is(.ed-front, .ed-archive) .ed-cols > :nth-child(3),
  :is(.ed-front, .ed-archive) .ed-front__tiles > :nth-child(3) { --fx-d: 200ms; }
  :is(.ed-front, .ed-archive) .ed-cols > :nth-child(n + 4),
  :is(.ed-front, .ed-archive) .ed-front__tiles > :nth-child(n + 4) { --fx-d: 260ms; }

  /* Group heads: the ink rule draws in from the left ... */
  html.js-motion .ed-front [data-reveal] .ed-front__head { position: relative; border-top-color: transparent; }
  html.js-motion .ed-front [data-reveal] .ed-front__head::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ed-ink);
    transform-origin: 0 50%;
    pointer-events: none;
  }
  html.js-motion .ed-front .ed-front__lead + .ed-front__block > .ed-front__head::before,
  html.js-motion .ed-front .ed-front__compact > .ed-front__head::before { content: none; }
  html.js-motion .ed-front [data-reveal]:not(.is-in) .ed-front__head::before { transform: scaleX(0); }
  html.js-motion .ed-front [data-reveal]:not(.is-done) .ed-front__head::before { transition: transform 0.52s var(--fx-ease) 60ms; }
  /* ... and its name slides 6px into place. */
  html.js-motion .ed-front [data-reveal]:not(.is-in) .ed-front__head > a { transform: translate3d(-6px, 0, 0); }
  html.js-motion .ed-front [data-reveal]:not(.is-done) .ed-front__head > a { transition: transform 0.42s var(--fx-ease) 120ms; }

  /* Ranked numbers slide 6px after their row. */
  html.js-motion .ed-archive__ranked-list[data-reveal]:not(.is-in) > li::before { transform: translate3d(-6px, 0, 0); opacity: 0; }
  html.js-motion .ed-archive__ranked-list[data-reveal]:not(.is-done) > li::before {
    transition: transform 0.42s var(--fx-ease), opacity 0.42s var(--fx-ease);
    transition-delay: calc(min(var(--i, 0), 6) * 60ms + 120ms);
  }

  /* Rows added by "Вчитај повеќе" come in one after another. */
  .ed-river__item.is-new { animation-delay: calc(min(var(--i, 0), 8) * 50ms); }
}

/* ------------------------------------------------------------------ Load more */

.ed-archive__more { flex-direction: column; align-items: center; }
.ed-archive__more-btn {
  min-height: 48px;
  border-color: var(--sd-c, var(--ed-ink));
  color: var(--sd-c-text, var(--ed-ink));
  transition: background-color 0.18s var(--fx-ease), color 0.18s var(--fx-ease), border-color 0.18s var(--fx-ease), transform 0.12s var(--fx-ease);
}
.ed-archive__more-btn:hover { background: var(--sd-c, var(--ed-ink)); border-color: var(--sd-c, var(--ed-ink)); color: var(--sd-on, #fff); }
.ed-archive__more-btn:active { transform: scale(0.98); }
.ed-archive__more-btn[aria-busy="true"] { opacity: 0.7; }
@media (max-width: 739.98px) {
  .ed-archive__more { align-items: stretch; }
}

/* ------------------------------------------------------------------ Empty sub-section */

.ed-front__empty {
  padding: var(--ed-s4) var(--ed-s5);
  background: linear-gradient(100deg, var(--fx-wash-2), var(--fx-wash) 55%, var(--fx-band-end));
}
/* The way back to the section's front: one link under the latest stories (no second list of
   sub-sections: the masthead above lists them). */
.ed-front__fill > .ed-front__empty-text { margin-top: var(--ed-s4); font-style: normal; }
.ed-front__empty-front {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-ui);
  font-weight: 600;
  color: var(--sd-c-text);
}
.ed-front__empty-front:hover { text-decoration: underline; text-underline-offset: 3px; }
.ed-front__empty-front .ed-icon { transition: transform 0.18s var(--fx-ease); }
.ed-front__empty-front:hover .ed-icon { transform: translateX(2px); }

/* Crumbs: the current page (plain text) sits on the same line as the 32px links. */
.ed-archive__head .ed-breadcrumbs ol { align-items: center; }

/* ================================================================== Round 6 (UX audit, 2026-11-26) */

/* River: the age of a story opens its meta line (the one timestamp style of every list); the text
   takes the width the old date column held. Phones: one picture size on every row. */
.ed-river--meta > .ed-river__item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body"; }
.ed-river--meta > .ed-river__item.has-media { grid-template-columns: minmax(0, 1fr) 104px; grid-template-areas: "body media"; }
@media (min-width: 740px) {
  .ed-river--meta > .ed-river__item { grid-template-columns: minmax(0, 1fr); }
  .ed-river--meta > .ed-river__item.has-media { grid-template-columns: minmax(0, 1fr) 200px; grid-template-areas: "body media"; }
}
@media (min-width: 1150px) {
  .ed-river--meta > .ed-river__item { grid-template-columns: minmax(0, 1fr); }
  .ed-river--meta > .ed-river__item.has-media { grid-template-columns: minmax(0, 1fr) 210px; }
}
@media (max-width: 739.98px) {
  .ed-archive__four .ed-story { grid-template-columns: minmax(0, 1fr) 104px; }
  /* One meta line: the age and the byline (the reading time would wrap beside a thumb). */
  .ed-river--meta .ed-river__read { display: none; }
  /* The lead's two related headlines sit in the same column of thumbs as the rows under them. */
  .ed-archive__related .ed-story--thumb { --ed-thumb: 104px; }
}

/* A list that leaves the page's topic (tag and date pages): quieter, under its own rule. */
.ed-river + .ed-archive__also--off { margin-top: var(--ed-s8); padding-top: var(--ed-s3); border-top: 1px solid var(--ed-ink); }
.ed-river--quiet .ed-river__headline { font-size: var(--ed-fs-xs); line-height: 1.22; }
.ed-river--quiet .ed-river__meta { margin-top: 6px; }
@media (min-width: 740px) {
  .ed-river--quiet > .ed-river__item.has-media { grid-template-columns: minmax(0, 1fr) 120px; }
}

/* Tag pages: how many stories the topic holds. */
.ed-archive__count { margin-top: var(--ed-s2); }

/* Date archives: the month before and after (only when it has stories). */
.ed-archive__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--ed-s2) var(--ed-s5);
  margin-top: var(--ed-s3);
}
.ed-archive__step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-ui);
  font-weight: 600;
  color: var(--ed-ink-2);
}
.ed-archive__step:hover { color: var(--ed-accent, var(--ed-ink)); }
.ed-archive__step--next { margin-left: auto; }

/* A daily piece that did not appear today (Хороскоп): one quiet line above the page's lead. */
.ed-front__note {
  margin-top: var(--ed-s4);
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-ui);
  color: var(--ed-ink-3);
}
.ed-front__note a { color: var(--sd-c-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ed-front__note + .ed-archive__top { padding-top: var(--ed-s3); }

/* Kicker links: a 25px hit area around the 13px label, with no change to the layout. */
.ed-front .ed-kicker a,
.ed-archive .ed-kicker a {
  display: inline-block;
  padding-block: 6px;
  margin-block: -6px;
}

/* A row of cards where only some carry a kicker: the others keep its line, so headlines align. */
@media (min-width: 740px) {
  .ed-front .ed-cols:has(.ed-kicker) > .ed-story:not(:has(.ed-kicker)) .ed-story__body::before,
  .ed-front .ed-front__tiles:has(.ed-kicker) > .ed-front__group > .ed-story:first-of-type:not(:has(.ed-kicker)) .ed-story__body::before,
  .ed-front__lead--feature .ed-front__side-list:has(.ed-kicker) > li > .ed-story:not(:has(.ed-kicker)) .ed-story__body::before {
    content: "";
    display: block;
    height: calc(var(--ed-fs-label, 0.6875rem) * 1.2 + 6px);
  }
}

/* "Вчитај повеќе" keeps the address (archive.js); the numbered pages stay only for readers without JS. */
.ed-archive__main.has-more-js .ed-pagination { display: none; }
