/*
 * Alfa Editorial: home.css — the front page of СЕДУМ ДЕНА, a classic broadsheet front.
 * Mobile first; breakpoints 740 / 1024 / 1150.
 *
 * Rhythm: the top package under the header (three zones divided by vertical hairlines, closed by a
 * thin double rule); then one ruled band per section: a 1px ink rule, a small sans label in the
 * section's colour, one row of four or five columns divided by hairlines. White, ink and hairlines;
 * colour only in kickers, the live red, and each section's label (--sd-c / --sd-c-text in scope).
 * Pictures are plain rectangles. Headlines weight 500, the lead alone 700.
 */

/* ------------------------------------------------------------------ shared */

.ed-home { padding-bottom: var(--ed-s8); }

.ed-home .ed-story__headline { font-family: var(--ed-head); font-weight: 500; }
.ed-home .ed-story { gap: 8px; }

.ed-home .ed-story__dek {
  margin-top: 5px;
  font-size: var(--ed-fs-dek);
  line-height: 1.45;
}
.ed-home .ed-story--xs .ed-story__dek { font-size: 0.875rem; line-height: 1.45; }
/* Dates and meta: 12px, a little tracking (same grey, 5.3:1 on white). */
.ed-home .ed-meta { margin-top: 8px; font-size: 0.75rem; letter-spacing: 0.04em; }
.ed-home .ed-media,
.ed-home .ed-media img { border-radius: 0; }

/* Kicker parts: breaking label, the newsroom's badge, the category. */
.ed-home .ed-kicker { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 4px; margin-bottom: 5px; }
.ed-home .ed-kicker .sd-badge { margin: 0; }
.ed-home-live { color: var(--ed-red); font-weight: 700; }
.ed-home-live .ed-dot { margin-right: 5px; vertical-align: 0.05em; }

/* Small label over a column (Најново, Од редакцијата, Најчитано) */
.ed-home-label {
  margin-bottom: var(--ed-s3);
  font-family: var(--ed-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ed-ink);
}
.ed-home-label .ed-dot { margin-right: 6px; vertical-align: 0.1em; }

/* Headline with the time above it */
.ed-home-timed__time {
  margin-bottom: 3px;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ed-ink-4);
}
.ed-home-timed__time.ed-time--live { color: var(--ed-red); }
.ed-home-timed .ed-story__headline { font-size: 0.9375rem; line-height: 1.27; }

/* Phones: secondary picture stories become small-thumb rows (headline left, picture right). */
@media (max-width: 739.98px) {
  .ed-home-mthumb.has-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    column-gap: var(--ed-s3);
    align-items: start;
  }
  .ed-home-mthumb.has-media > .ed-story__media { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 3; }
  .ed-home-mthumb.has-media > .ed-story__body { grid-column: 1; grid-row: 1; }
  .ed-home-mthumb .ed-story__headline { font-size: var(--ed-fs-xs); line-height: 1.24; }
  .ed-home-mthumb .ed-story__dek { display: none; }
}

/* Small-thumb rows: 88px 4x3 in lists, 64px square in the rail (72px on phones). */
.ed-home .ed-story--thumb { --ed-thumb: 88px; column-gap: var(--ed-s3); }
.ed-home .ed-home-rthumb { --ed-thumb: 64px; }
.ed-home .ed-story--thumb .ed-meta { margin-top: 5px; }
@media (max-width: 739.98px) {
  .ed-home .ed-home-rthumb { --ed-thumb: 72px; }
}

/* Sticky companions (desktop only): the shorter side travels with the page. A side that is the
   taller one fills its grid area and so does not move. Never on phones; no animation involved. */
@media (min-width: 1024px) and (min-height: 700px) {
  .ed-home-lead > .ed-home-lead__akt,
  .ed-home-lead > .ed-home-lead__latest,
  .ed-home-band--tall > .ed-home-band__first,
  .ed-home-band--tall > .ed-home-band__list {
    position: sticky;
    top: calc(var(--ed-sticky-top, 64px) + 16px);
    align-self: start;
  }
}

/* ------------------------------------------------------------------ top package */

.ed-home-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--ed-s4);
  padding-bottom: var(--ed-s6);
  border-bottom: 3px double var(--ed-ink);
}
.ed-home-lead > * { position: relative; min-width: 0; }
.ed-home-lead > * + * {
  margin-top: var(--ed-s6);
  padding-top: var(--ed-s3);
  border-top: 1px solid var(--ed-ink);
}

/* The lead: picture across the column, the headline under it. The one bold headline. */
.ed-home-lead__story { gap: var(--ed-s3); }
.ed-home .ed-home-lead__story .ed-story__headline {
  font-size: var(--ed-fs-xl);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.ed-home-lead__story .ed-story__dek { max-width: 40em; font-size: var(--ed-fs-dek); line-height: 1.4; color: var(--ed-ink-3); }
@media (max-width: 739.98px) {
  .ed-home-lead__main { margin-inline: calc(-1 * var(--ed-gutter)); }
  .ed-home-lead__story > .ed-story__body { padding-inline: var(--ed-gutter); }
}

/* Related headlines: a short bulleted, ruled list under the lead. */
.ed-home-lead__related {
  --ed-list-gap: 8px;
  margin-top: var(--ed-s3);
  padding-top: var(--ed-s3);
  border-top: 1px solid var(--ed-home-hair);
}
.ed-home-lead__related .ed-story__headline { padding-left: 14px; font-size: 0.9375rem; line-height: 1.3; }
.ed-home-lead__related .ed-story__headline a::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: -14px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--ed-ink);
  vertical-align: 0.2em;
}
@media (max-width: 739.98px) {
  .ed-home-lead__related,
  .ed-home-lead__more { margin-inline: var(--ed-gutter); }
}

/* A row of three picture stories under the lead, inside its column. */
.ed-home-lead__more {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--ed-s3);
  padding-top: var(--ed-s3);
  border-top: 1px solid var(--ed-ink);
}
.ed-home-lead__more > * { position: relative; min-width: 0; }
.ed-home-lead__more > * + * { margin-top: var(--ed-s3); padding-top: var(--ed-s3); border-top: 1px solid var(--ed-home-hair); }
.ed-home-lead__morestory .ed-story__headline { font-size: var(--ed-fs-xs); line-height: 1.24; }
@media (min-width: 740px) {
  .ed-home-lead__more { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: calc(2 * var(--ed-col-pad)); }
  .ed-home-lead__more > * + * { margin-top: 0; padding-top: 0; border-top: 0; }
  .ed-home-lead__more > * + *::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-home-col);
  }
  /* Two rows of three: the second row opens on a hairline, each row's first story has no left rule. */
  .ed-home-lead__more { row-gap: var(--ed-s4); }
  .ed-home-lead__more > :nth-child(3n + 1)::before { content: none; }
  .ed-home-lead__more > :nth-child(n + 4) { padding-top: var(--ed-s4); border-top: 1px solid var(--ed-home-hair); }
}

/* «Актуелно»: one story per section. Head: a small sans label over the nine-colour strip; rows
   divided by hairlines; the kicker (dot + name) in the section's colour, an 80px square at the right. */
.ed-home-akt__label { margin-bottom: 6px; }
.ed-home-akt__strip { margin-bottom: var(--ed-s2); }
.ed-home-akt { --ed-list-gap: 0; }
.ed-home-akt__row { position: relative; padding-block: 11px; }
/* .ed-list > li + li (base) sets the top padding from --ed-list-gap, which is 0 here: restore the row's own air above the kicker. */
.ed-home-akt > .ed-home-akt__row + .ed-home-akt__row { border-top: 1px solid var(--ed-home-hair); margin-top: 0; padding-top: 11px; }
.ed-home-akt__row:first-child { padding-top: 4px; }
.ed-home .ed-home-akt__item { --ed-thumb: 80px; align-items: start; }
.ed-home-akt__kicker {
  margin-bottom: 4px;
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ed-home-akt__kicker a { display: inline-flex; align-items: center; color: var(--sd-c-text, var(--ed-ink)); text-decoration: none; }
.ed-home-akt__kicker a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ed-home-akt__dot {
  flex: none;
  width: 7px; height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--sd-c, var(--ed-ink));
}
.ed-home .ed-home-akt__item .ed-story__headline { font-size: 0.9375rem; line-height: 1.27; }
.ed-home-akt__time {
  margin-top: 4px;
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ed-ink-4);
}
@media (max-width: 739.98px) {
  .ed-home .ed-home-akt__item { --ed-thumb: 72px; }
}
/* Narrow desktop: the left column is about 220px, so a smaller square keeps the headlines readable. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .ed-home .ed-home-akt__item { --ed-thumb: 72px; column-gap: 10px; }
}

/* Rail: Најново, then the newsroom's own work. */
.ed-home-latest { --ed-list-gap: 10px; }
.ed-home-ownwrap {
  margin-top: var(--ed-s5);
  padding-top: var(--ed-s3);
  border-top: 1px solid var(--ed-ink);
}
.ed-home-ownlist { --ed-list-gap: 10px; }
.ed-home-own__by {
  display: flex;
  flex-wrap: wrap;
  column-gap: 6px;
  margin-bottom: 3px;
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ed-ink-4);
}
.ed-home-own__format { font-weight: 700; color: var(--ed-ink); }
.ed-home .ed-home-own .ed-story__headline { font-size: 1rem; font-style: italic; font-weight: 400; line-height: 1.27; }
.ed-home-lead__latest > .ed-slot { margin-top: var(--ed-s5); }

@media (min-width: 740px) {
  .ed-home-lead {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: calc(2 * var(--ed-col-pad));
    margin-top: var(--ed-s5);
  }
  .ed-home-lead__main { grid-column: 1 / -1; }
  .ed-home-lead__story.has-media {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: var(--ed-s5);
    align-items: start;
  }
  .ed-home-lead__story.has-media > .ed-story__media { grid-column: 2; grid-row: 1; }
  .ed-home-lead__story.has-media > .ed-story__body { grid-column: 1; grid-row: 1; }
  .ed-home-lead > .ed-home-lead__akt,
  .ed-home-lead > .ed-home-lead__latest { margin-top: var(--ed-s6); }
  .ed-home-lead > .ed-home-lead__akt + .ed-home-lead__latest::before {
    content: "";
    position: absolute;
    top: var(--ed-s3); bottom: 0;
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-home-col);
  }
  .ed-home-lead__main + .ed-home-lead__latest { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  /* Columns «Актуелно» 0.95 : lead 2.1 : Најново 0.9 (the left column about 24 %). The hairlines
     between them are drawn by the package itself (two 1px backgrounds at the centres of the gaps),
     so they run full height while the side columns stick. Source order stays lead first. */
  .ed-home-lead {
    --ed-lg: calc(2 * var(--ed-col-pad));
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 2.1fr) minmax(0, 0.9fr);
    column-gap: var(--ed-lg);
    margin-top: var(--ed-s5);
    padding-bottom: var(--ed-s8);
    background-image: linear-gradient(var(--ed-home-col), var(--ed-home-col)), linear-gradient(var(--ed-home-col), var(--ed-home-col));
    background-repeat: no-repeat;
    background-size: 1px calc(100% - var(--ed-s8));
    background-position:
      calc((100% - 2 * var(--ed-lg)) * 0.2405 + 0.5 * var(--ed-lg)) 0,
      calc((100% - 2 * var(--ed-lg)) * 0.7722 + 1.5 * var(--ed-lg)) 0;
  }
  .ed-home-lead > .ed-home-lead__akt { grid-column: 1; grid-row: 1; }
  .ed-home-lead:has(> .ed-home-lead__akt) > .ed-home-lead__main { grid-column: 2; grid-row: 1; }
  .ed-home-lead:has(> .ed-home-lead__akt) > .ed-home-lead__latest { grid-column: 3; grid-row: 1; }
  .ed-home-lead:not(:has(> .ed-home-lead__akt)) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    background-image: linear-gradient(var(--ed-home-col), var(--ed-home-col));
    background-position: calc((100% - var(--ed-lg)) * 0.75 + 0.5 * var(--ed-lg)) 0;
  }
  .ed-home-lead__main,
  .ed-home-lead__main + .ed-home-lead__latest { grid-column: auto; }
  .ed-home-lead > * + *,
  .ed-home-lead > .ed-home-lead__akt,
  .ed-home-lead > .ed-home-lead__latest { margin-top: 0; padding-top: 0; border-top: 0; }
  .ed-home-lead > .ed-home-lead__akt + .ed-home-lead__latest::before { content: none; }
  /* The lead: picture across the column, headline (three lines at most at 1440) under it. */
  .ed-home-lead__story.has-media { display: flex; flex-direction: column; }
  .ed-home-lead__story.has-media > .ed-story__media.ed-media { aspect-ratio: 3 / 2; }
  /* The story is a flex column with align-items: start; the picture must still span the column
     (without this it collapsed to 0 x 0 and the lead showed no picture). */
  .ed-home-lead__story.has-media > .ed-story__media { align-self: stretch; width: 100%; }
  .ed-home .ed-home-lead__story .ed-story__headline { font-size: clamp(1.75rem, 1.05rem + 1.15vw, 2.25rem); line-height: 1.1; }
}

/* ------------------------------------------------------------------ section band */

.ed-home-sec {
  margin-top: var(--ed-s6);
}
/* The band's opening rule: its own element (inc/home.php), 1px ink; on a wash 2px in the section's
   colour. It draws in from the left when the band arrives (section "motion" at the end). */
.ed-home-sec__rule {
  display: block;
  height: 1px;
  margin-bottom: var(--ed-s1);
  background: var(--ed-ink);
  transform-origin: 0 50%;
}
@media (min-width: 1024px) {
  .ed-home-sec { margin-top: var(--ed-s8); }
}

/* Head: the section's name at the left, «Сите» at the right; the sub-sections under them on phones,
   between them from 740px. */
.ed-home-sec__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--ed-s4);
  margin-bottom: var(--ed-s2);
}
.ed-home-sec__title { grid-column: 1; grid-row: 1; min-width: 0; }
.ed-home-sec__all { grid-column: 2; grid-row: 1; }
.ed-home-sec__subs { grid-column: 1 / -1; grid-row: 2; margin-top: calc(-1 * var(--ed-s1)); }
@media (min-width: 740px) {
  /* Two columns since «Сите» left the head (the name and «Повеќе од …» lead to the section). */
  .ed-home-sec__head { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--ed-s6); }
  .ed-home-sec__subs { grid-column: 2; grid-row: 1; margin-top: 0; }
  .ed-home-sec__all { grid-column: 3; }
}
/* Phones: the sub-sections stay one line that scrolls sideways (no second row), its end fading out. */
@media (max-width: 739.98px) {
  .ed-home-sec .ed-home-sec__subs ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    white-space: nowrap;
    padding-right: 28px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .ed-home-sec__subs ul::-webkit-scrollbar { display: none; }
  .ed-home-sec__subs li { flex: none; }
}

/* «Сите»: small sans capitals in the section's colour, the arrow nudges on hover. */
.ed-home-sec__all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  font-family: var(--ed-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--sd-c-text, var(--ed-ink));
}
.ed-home-sec__allicon { flex: none; }
.ed-home-sec__all:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .ed-home-sec__allicon,
  .ed-home-sec__arrow { transition: transform 260ms cubic-bezier(.2, .7, .2, 1); }
  .ed-home-sec__all:hover .ed-home-sec__allicon,
  .ed-home-sec__title a:hover .ed-home-sec__arrow { transform: translateX(3px); }
  .ed-home-sec__subs a { transition: color 200ms cubic-bezier(.2, .7, .2, 1); }
}
.ed-home-sec__title a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 36px;
  font-family: var(--ed-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--sd-c-text, var(--ed-ink));
}
.ed-home-sec__name { font: inherit; }
.ed-home-sec__arrow { position: relative; top: 1px; opacity: 0.7; }
.ed-home-sec__title a:hover .ed-home-sec__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.ed-home-sec__subs { min-width: 0; }
.ed-home-sec__subs ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  column-gap: var(--ed-s4);
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ed-ink-3);
}
.ed-home-sec__subs a { display: inline-flex; align-items: center; min-height: 32px; }
.ed-home-sec__subs a:hover { color: var(--ed-ink); text-decoration: underline; text-underline-offset: 3px; }
.ed-home-sec__line { margin: calc(-1 * var(--ed-s1)) 0 var(--ed-s4); font-size: var(--ed-fs-dek); color: var(--ed-ink-3); }

@media (min-width: 740px) {
  .ed-home-sec__subs ul { justify-content: flex-end; }
}

/* A colour chapter: every other section band sits on a full-bleed wash of its own colour (a
   barely-there paper tint), opened by a 2px rule in the section's colour instead of the ink rule.
   The full bleed is painted by border-image outset, which never adds horizontal scroll. Text,
   hairlines and contrast are unchanged. */
.ed-home-sec--wash {
  --ed-home-fill: var(--sd-c-wash, color-mix(in srgb, var(--sd-c, #fff) 4.5%, #fff));
  padding: var(--ed-s6) 0 var(--ed-s8);
  border-top: 0;
  border-image: conic-gradient(var(--ed-home-fill) 0 0) fill 0 / 0 / 0 100vmax;
}
.ed-home-sec--wash > .ed-home-sec__rule {
  height: 2px;
  background: var(--sd-c, var(--ed-ink));
}
@media (min-width: 1024px) {
  .ed-home-sec--wash { padding: var(--ed-s8) 0 calc(var(--ed-s8) + var(--ed-s2)); }
}

/* The band: phones one ruled column (first picture full width, the rest thumbnail rows). */
.ed-home-band { display: grid; grid-template-columns: minmax(0, 1fr); }
.ed-home-band > * { position: relative; min-width: 0; }
.ed-home-band > * + *,
.ed-home-band__list > * + * {
  margin-top: var(--ed-s3);
  padding-top: var(--ed-s3);
  border-top: 1px solid var(--ed-home-hair);
}
.ed-home-band__first .ed-story__headline { font-size: var(--ed-fs-sm); line-height: 1.2; }
.ed-home-band__text .ed-story__headline,
.ed-home-band__pic:not(.ed-home-band__first) .ed-story__headline { font-size: 1rem; line-height: 1.26; }
@media (max-width: 739.98px) {
  .ed-home-band__first { margin-inline: calc(-1 * var(--ed-gutter)); }
  .ed-home-band__first > .ed-story__body { padding-inline: var(--ed-gutter); }
  .ed-home-band__text .ed-story__headline,
  .ed-home-band__pic:not(.ed-home-band__first) .ed-story__headline { font-size: var(--ed-fs-xs); line-height: 1.24; }
}

@media (min-width: 740px) and (max-width: 1023.98px) {
  .ed-home-band--row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(2 * var(--ed-col-pad)); row-gap: var(--ed-s4); }
  .ed-home-band--row > * + * { margin-top: 0; padding-top: 0; border-top: 0; }
  .ed-home-band--row > :nth-child(even)::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-home-col);
  }
  /* Odd count: the first story runs across, picture at the right. */
  .ed-home-band--odd > .ed-home-band__first { grid-column: 1 / -1; }
  .ed-home-band--odd > .ed-home-band__first.has-media {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: var(--ed-s5);
  }
  .ed-home-band--odd > .ed-home-band__first.has-media > .ed-story__media { grid-column: 2; grid-row: 1; }
  .ed-home-band--odd > .ed-home-band__first.has-media > .ed-story__body { grid-column: 1; grid-row: 1; }
  .ed-home-band--odd > :nth-child(even)::before { content: none; }
  .ed-home-band--odd > :nth-child(odd):not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-home-col);
  }
}

/* Tall band (tablet and up): the list in two columns of thumbnail rows. */
@media (min-width: 740px) {
  .ed-home-band__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: calc(2 * var(--ed-col-pad));
    align-content: start;
  }
  .ed-home-band__list > * { position: relative; min-width: 0; }
  .ed-home-band__list > :nth-child(2) { margin-top: 0; padding-top: 0; border-top: 0; }
  .ed-home-band__list > :nth-child(even)::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-home-col);
  }
  .ed-home-band__list > :nth-child(even):not(:nth-child(2))::before { top: var(--ed-s3); }
}

@media (min-width: 1024px) {
  .ed-home-band--row {
    grid-template-columns: repeat(var(--ed-band-cols, 4), minmax(0, 1fr));
    column-gap: calc(2 * var(--ed-col-pad));
  }
  .ed-home-band--row > * + * { margin-top: 0; padding-top: 0; border-top: 0; }
  .ed-home-band--row > * + *::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-home-col);
  }
  /* Tall: the picture story (5 parts) beside the two-column list (7 parts); the hairline between
     them is the band's own background so it runs full height while either side sticks. */
  .ed-home-band--tall {
    --ed-bg: calc(2 * var(--ed-col-pad));
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--ed-bg);
    background: linear-gradient(var(--ed-home-col), var(--ed-home-col)) no-repeat calc((100% - var(--ed-bg)) * 5 / 12 + 0.5 * var(--ed-bg)) 0 / 1px 100%;
  }
  .ed-home-band--tall > * + * { margin-top: 0; padding-top: 0; border-top: 0; }
  .ed-home-band--tall .ed-home-band__first .ed-story__headline { font-size: var(--ed-fs-md); line-height: 1.16; }
}

/* Кујна: time and level under each recipe. */
.ed-home-recipe .ed-meta { color: var(--ed-ink-3); }

/* ------------------------------------------------------------------ Игри (fallback tiles) */

.ed-home-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(2 * var(--ed-col-pad));
  row-gap: var(--ed-s5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ed-home-games > li { position: relative; min-width: 0; }
.ed-home-games > li:nth-child(even)::before,
.ed-home-games > li + li::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(-1 * var(--ed-col-pad));
  border-left: 1px solid var(--ed-home-col);
}
.ed-home-games > li:nth-child(odd)::before { display: none; }
@media (min-width: 740px) {
  .ed-home-games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ed-home-games > li:nth-child(odd):not(:first-child)::before { display: block; }
}
.ed-home-game {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 2px 0;
}
.ed-home-game__n { font: 700 0.6875rem/1 var(--ed-sans); letter-spacing: 0.08em; color: var(--sd-c-text, var(--ed-ink-4)); }
.ed-home-game__name { font-family: var(--ed-head); font-size: 1.25rem; font-weight: 500; line-height: 1.15; color: var(--ed-ink); }
.ed-home-game:hover .ed-home-game__name { color: var(--ed-ink-3); }
.ed-home-game__desc { font-family: var(--ed-serif); font-size: 0.875rem; line-height: 1.36; color: var(--ed-ink-3); }
.ed-home-game__cta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: auto;
  padding-top: var(--ed-s2);
  font: 700 0.6875rem/1 var(--ed-sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ed-ink);
}

/* ------------------------------------------------------------------ PLAY (fallback band, toned down) */

.ed-home-sec--play {
  padding: var(--ed-s5) 0 var(--ed-s8);
  border-top: 0;
  border-image: var(--ed-home-night) fill 0 / 0 / 0 100vmax;
  color: #fff;
}
.ed-home-sec--play .ed-home-sec__title a { color: #fff; }
.ed-home-sec--play .ed-home-sec__subs ul { color: rgb(255 255 255 / 0.7); }
.ed-home-sec--play .ed-home-sec__subs a:hover { color: #fff; }
.ed-home-play {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ed-s5) var(--ed-s4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ed-home-play > li { min-width: 0; }
/* Two rows of two on phones, four across on tablets, five from 1024px. */
.ed-home-play > li:nth-child(n + 5) { display: none; }
@media (min-width: 740px) {
  .ed-home-play { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ed-home-play { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ed-home-play > li:nth-child(5) { display: block; }
}
/* PLAY's formats complete the row: a plain tile of the poster's size. */
.ed-home-format {
  display: flex;
  flex-direction: column;
  gap: var(--ed-s2);
  aspect-ratio: 9 / 16;
  padding: var(--ed-s4);
  border: 1px solid rgb(255 255 255 / 0.22);
  background: #1f1f1f;
  color: #fff;
}
.ed-home-format:hover { border-color: rgb(255 255 255 / 0.5); }
.ed-home-format__n { font: 700 0.6875rem/1 var(--ed-sans); letter-spacing: 0.08em; color: rgb(255 255 255 / 0.7); }
.ed-home-format__name { font-family: var(--ed-head); font-size: 1.25rem; font-weight: 500; line-height: 1.15; text-wrap: balance; }
.ed-home-format__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font: 700 0.6875rem/1 var(--ed-sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ed-home-poster { position: relative; display: flex; flex-direction: column; gap: 8px; }
.ed-home-poster__media.ed-media { aspect-ratio: 9 / 16; border-radius: 0; background: #2a2a2a; }
.ed-home-poster__play {
  position: absolute;
  left: 8px; top: 8px;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgb(18 18 18 / 0.72);
  color: #fff;
  pointer-events: none;
}
.ed-home-poster__play .ed-icon { margin-left: 2px; }
.ed-home-poster__title {
  font-family: var(--ed-head);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}
.ed-home-poster__title a:hover { color: rgb(255 255 255 / 0.7); }

/* ------------------------------------------------------------------ most read */

/* A neutral panel (--ed-bg-2): the one block that belongs to no section. Full width on phones. */
.ed-home-ranked {
  margin-top: var(--ed-s6);
  margin-inline: calc(-1 * var(--ed-gutter));
  padding: var(--ed-s4) var(--ed-gutter) var(--ed-s5);
  border-top: 1px solid var(--ed-ink);
  background: var(--ed-bg-2);
}
@media (min-width: 740px) {
  .ed-home-ranked { margin-inline: 0; padding: var(--ed-s4) var(--ed-s6) var(--ed-s6); }
}
@media (min-width: 1024px) {
  .ed-home-ranked { margin-top: var(--ed-s8); }
}
.ed-home-ranked .ed-ranked .ed-ranked__headline,
.ed-home-ranked .ed-ranked h3 { font-weight: 500; }
@media (min-width: 740px) {
  .ed-home-ranked .ed-ranked {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: calc(2 * var(--ed-col-pad));
  }
  .ed-home-ranked .ed-ranked > li { position: relative; grid-template-columns: 1.4rem minmax(0, 1fr); }
  .ed-home-ranked .ed-ranked > li + li { margin-top: 0; padding-top: 0; border-top: 0; }
  .ed-home-ranked .ed-ranked > li:nth-child(n + 3) {
    margin-top: var(--ed-s3);
    padding-top: var(--ed-s3);
    border-top: 1px solid var(--ed-home-hair);
  }
  .ed-home-ranked .ed-ranked > li:nth-child(2n)::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-home-col);
  }
}
@media (min-width: 1150px) {
  .ed-home-ranked .ed-ranked { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ed-home-ranked .ed-ranked > li:nth-child(n + 3) { margin-top: 0; padding-top: 0; border-top: 0; }
  .ed-home-ranked .ed-ranked > li + li::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(-1 * var(--ed-col-pad));
    border-left: 1px solid var(--ed-home-col);
  }
}

/* ------------------------------------------------------------------ the two richer moments */

/* PLAY's ground: near-black with a subtle magenta glow from the top right (one image, so it can be
   painted full bleed through border-image). */
.ed-home {
  --ed-home-night: radial-gradient(120% 140% at 88% -10%, color-mix(in srgb, #C02C83 30%, #0d0b0e) 0%, color-mix(in srgb, #C02C83 9%, #0d0b0e) 38%, #0d0b0e 72%);
}

/* Игри: the section's blue at wash-2 strength, full bleed; the module's tiles sit crisp on it. */
.ed-home-slotsec--igri {
  --ed-home-fill: var(--sd-c-wash-2, color-mix(in srgb, var(--sd-c, #fff) 9%, #fff));
  margin-top: var(--ed-s6);
  padding: var(--ed-s6) 0 var(--ed-s8);
  border-image: conic-gradient(var(--ed-home-fill) 0 0) fill 0 / 0 / 0 100vmax;
}
.ed-home-slotsec--igri > .ed-slot > .ed-block,
.ed-home-slotsec--igri > .ed-slot > section {
  margin-top: 0;
  border-top: 2px solid var(--sd-c, var(--ed-ink));
}
.ed-home-slotsec--igri .ed-section-head__title a { color: var(--sd-c-text, var(--ed-ink)); }

/* PLAY (the module's band): the dark ground runs full bleed, the module's own panel dissolves into it. */
.ed-home-slotsec--play {
  margin-top: var(--ed-s6);
  padding: var(--ed-s6) 0 var(--ed-s8);
  border-image: var(--ed-home-night) fill 0 / 0 / 0 100vmax;
  color: #f7f3f6;
}
.ed-home-slotsec--play > .ed-slot { margin-top: 0; }
.ed-home-slotsec--play .sd-pl-band {
  margin: 0;
  padding-inline: 0;
  border-radius: 0;
  background: transparent;
}
@media (min-width: 1024px) {
  .ed-home-slotsec--igri,
  .ed-home-slotsec--play { margin-top: var(--ed-s8); padding: var(--ed-s8) 0 calc(var(--ed-s8) + var(--ed-s4)); }
}

/* The block after a full-bleed surface keeps its own top rule; nothing touches the surface edge. */
.ed-home-slotsec + .ed-home-sec,
.ed-home-sec--wash + .ed-home-sec,
.ed-home-sec--play + .ed-home-sec { margin-top: var(--ed-s8); }

/* ================================================================== polish: colour, motion, affordances
 * Hairlines of the front page are two local tokens (a section may hand its own --sd-line); bands on
 * a wash fade horizontally and take section-coloured hairlines; Игри and PLAY get two glow layers that
 * drift at two rates (CSS scroll-driven, desktop, motion allowed). Without JS, without support and
 * under reduced motion everything is static and visible. Motion: transform / opacity (plus a short
 * clip-path wipe on pictures), 180 to 520ms on --ed-motion, nothing loops, the first screen never moves.
 */

.ed-home,
.ed-home-sec,
.ed-home-slotsec {
  --ed-home-hair: var(--sd-line, var(--ed-line));
  --ed-home-col: var(--sd-line-2, var(--ed-line-2));
  /* Exact full bleed for gradient surfaces: the distance from the content edge to the window edge. */
  --ed-home-bleed: max(var(--ed-gutter), calc((100vw - var(--ed-max)) / 2));
}

/* ---- colour: wash bands fade horizontally (hex fallback first, oklch where supported) */
.ed-home-sec--wash {
  --ed-home-band: linear-gradient(100deg, var(--sd-c-wash-2, #f4f4f2) 0%, var(--sd-c-wash, #fafaf8) 42%, var(--sd-c-wash, #fafaf8) 100%);
  /* Not --sd-grad-band: from oklch support on it is a list of three layers, and border-image-source
     takes one image, so the whole declaration fell to none (the bands painted white). */
  border-image: var(--ed-home-band) fill 0 / 0 / 0 var(--ed-home-bleed);
}
@supports (color: color-mix(in oklch, red, blue)) {
  .ed-home-sec--wash {
    --ed-home-band: linear-gradient(100deg,
      color-mix(in oklch, var(--sd-c) 9%, #fff) 0%,
      color-mix(in oklch, var(--sd-c) 4.5%, #fff) 42%,
      color-mix(in oklch, var(--sd-c) 2.5%, #fff) 100%);
    --ed-home-hair: var(--sd-line, color-mix(in oklch, var(--sd-c) 18%, #fff));
    --ed-home-col: var(--sd-line, color-mix(in oklch, var(--sd-c) 25%, #fff));
  }
  .ed-home [data-sec] ::selection { background: color-mix(in oklch, var(--sd-c) 22%, #fff); color: var(--ed-ink); }
}
@supports (color: oklch(from red l c h)) {
  /* The far end of a band leans 25 degrees round the wheel: a second, barely-there hue. */
  .ed-home-sec--wash {
    --ed-home-band: linear-gradient(100deg,
      color-mix(in oklch, var(--sd-c) 9%, #fff) 0%,
      color-mix(in oklch, var(--sd-c) 4.5%, #fff) 44%,
      color-mix(in oklch, oklch(from var(--sd-c) l c calc(h + 25)) 5%, #fff) 100%);
  }
}

/* ---- Игри and PLAY: a ground, then two glows (layers) that can drift at two rates */
.ed-home-slotsec--igri,
.ed-home-slotsec--play {
  position: relative;
  isolation: isolate;
  /* Clip the drifting glows to the band's height; sideways the bleed stays visible. */
  clip-path: inset(0 calc(-1 * var(--ed-home-bleed)));
}
.ed-home-slotsec--igri::before,
.ed-home-slotsec--igri::after,
.ed-home-slotsec--play::before,
.ed-home-slotsec--play::after {
  content: "";
  position: absolute;
  inset: -40px 0;
  z-index: -1;
  pointer-events: none;
  border-image: var(--ed-home-glow) fill 0 / 0 / 0 var(--ed-home-bleed);
}
.ed-home-slotsec--igri {
  border-image: linear-gradient(100deg, var(--sd-c-wash-2, #ebf2fb) 0%, var(--sd-c-wash, #f5f9fd) 100%) fill 0 / 0 / 0 var(--ed-home-bleed);
}
.ed-home-slotsec--igri::before { --ed-home-glow: radial-gradient(34% 70% at 90% 0%, rgb(36 113 210 / 0.12) 0%, rgb(36 113 210 / 0) 100%); }
.ed-home-slotsec--igri::after { --ed-home-glow: radial-gradient(30% 60% at 6% 100%, rgb(90 80 210 / 0.08) 0%, rgb(90 80 210 / 0) 100%); }

.ed-home {
  /* PLAY's ground: a deep, slightly magenta near-black (never #000); the glows are separate layers. */
  --ed-home-night: linear-gradient(160deg, #1b1119 0%, #130d15 55%, #100c18 100%);
}
.ed-home-slotsec--play::before { --ed-home-glow: radial-gradient(42% 80% at 88% 0%, rgb(192 44 131 / 0.42) 0%, rgb(192 44 131 / 0) 100%); }
.ed-home-slotsec--play::after { --ed-home-glow: radial-gradient(36% 70% at 8% 100%, rgb(112 64 214 / 0.3) 0%, rgb(112 64 214 / 0) 100%); }
.ed-home-slotsec--play { border-image: var(--ed-home-night) fill 0 / 0 / 0 var(--ed-home-bleed); }

@supports (color: oklch(from red l c h)) {
  .ed-home-slotsec--igri {
    border-image: linear-gradient(100deg,
      color-mix(in oklch, var(--sd-c) 11%, #fff) 0%,
      color-mix(in oklch, var(--sd-c) 6%, #fff) 50%,
      color-mix(in oklch, oklch(from var(--sd-c) l c calc(h + 25)) 6%, #fff) 100%) fill 0 / 0 / 0 var(--ed-home-bleed);
  }
  .ed-home-slotsec--igri::before { --ed-home-glow: radial-gradient(34% 70% at 90% 0%, oklch(from var(--sd-c) l c calc(h + 28) / 0.14) 0%, oklch(from var(--sd-c) l c calc(h + 28) / 0) 100%); }
  .ed-home {
    --ed-home-night: linear-gradient(160deg, oklch(0.19 0.03 340) 0%, oklch(0.165 0.025 330) 55%, oklch(0.16 0.03 300) 100%);
  }
}

/* Two depths, scroll-linked in CSS only (no JS parallax on these layers, so never both at once). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
    .ed-home-slotsec--igri::before,
    .ed-home-slotsec--play::before { animation: ed-home-depth-a linear both; animation-timeline: view(); }
    .ed-home-slotsec--igri::after,
    .ed-home-slotsec--play::after { animation: ed-home-depth-b linear both; animation-timeline: view(); }
  }
}
@keyframes ed-home-depth-a { from { transform: translate3d(0, -28px, 0); } to { transform: translate3d(0, 28px, 0); } }
@keyframes ed-home-depth-b { from { transform: translate3d(0, 16px, 0); } to { transform: translate3d(0, -16px, 0); } }

/* ---- affordances */
/* Section labels: a clear link (44px target), the arrow travels 3px. */
.ed-home-sec__title a { min-height: 44px; font-size: 1rem; }
.ed-home-sec__arrow { opacity: 0.85; }
.ed-home-sec__all { min-height: 44px; }
@media (pointer: coarse) {
  .ed-home-sec__subs a { min-height: 44px; }
}

/* "More from the section" at the end of each band. */
.ed-home-sec__more {
  display: flex;
  justify-content: flex-end;
  margin: var(--ed-s4) 0 0;
  padding-top: var(--ed-s1);
  border-top: 1px solid var(--ed-home-hair);
}
.ed-home-sec__more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font: 700 0.6875rem/1 var(--ed-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-c-text, var(--ed-ink));
}
.ed-home-sec__more a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 739.98px) {
  .ed-home-sec__more { padding-top: var(--ed-s3); }
  .ed-home-sec__more a {
    flex: 1;
    justify-content: center;
    border: 1px solid var(--ed-home-col);
    border-radius: 3px;
    background: rgb(255 255 255 / 0.6);
  }
}

/* Focus: one visible ring in the section's colour (text colour, contrast-safe). */
.ed-home a:focus-visible {
  outline: 2px solid var(--sd-c-text, var(--ed-ink));
  outline-offset: 2px;
  border-radius: 2px;
}
.ed-home-slotsec--play a:focus-visible,
.ed-home-sec--play a:focus-visible { outline-color: #fff; }

/* Stories: the headline keeps its ink and an underline draws in (section colour) on hover / focus. */
.ed-home .ed-story__headline a {
  background-image: linear-gradient(var(--sd-c-text, currentColor), var(--sd-c-text, currentColor));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
}
.ed-home .ed-story:hover .ed-story__headline a,
.ed-home .ed-story__headline a:hover,
.ed-home .ed-story__headline a:focus-visible { background-size: 100% 1px; }
.ed-home .ed-story__headline a:hover,
.ed-home .ed-story:has(.ed-media:hover) .ed-story__headline a { color: var(--ed-ink); }

/* Rows of a band: every headline starts on one line, whether or not a kicker sits above it. */
.ed-home-band--row:has(.ed-kicker) > .ed-story > .ed-story__body > .ed-story__headline:first-child::before {
  content: "\200b";
  display: block;
  margin-bottom: 5px;
  font: 700 var(--ed-fs-label)/1.2 var(--ed-sans);
}
@media (max-width: 739.98px) {
  .ed-home-band--row:has(.ed-kicker) > .ed-story > .ed-story__body > .ed-story__headline:first-child::before { content: none; }
}

/* Pressed states. */
.ed-home-sec__more a:active,
.ed-home-sec__all:active,
.ed-home-game:active,
.ed-home-format:active { transform: translateY(1px); }

/* ---- motion */
@media (prefers-reduced-motion: no-preference) {
  .ed-home .ed-story__headline a { transition: color 0.12s var(--ed-ease), background-size 180ms var(--ed-motion); }
  .ed-home-sec__moreicon { transition: transform 180ms var(--ed-motion); }
  .ed-home-sec__more a:hover .ed-home-sec__moreicon { transform: translateX(3px); }
  .ed-home-sec__more a,
  .ed-home-sec__all { transition: transform 120ms var(--ed-motion); }

  /* Band rule: draws in from the left; the label then slides in 6px. */
  html.js-motion .ed-home .ed-home-sec__rule[data-reveal]:not(.is-in) { opacity: 1; transform: scaleX(0); }
  html.js-motion .ed-home .ed-home-sec__rule[data-reveal]:not(.is-done) { transition: transform 520ms var(--ed-motion); transition-delay: 0ms; }
  html.js-motion .ed-home .ed-home-sec__head[data-reveal]:not(.is-in) { transform: translate3d(-6px, 0, 0); }
  html.js-motion .ed-home .ed-home-sec__head[data-reveal]:not(.is-done) { transition-delay: 120ms; }

  /* Pictures of stories below the first screen: a short wipe from the top and a 1.04 -> 1 settle. */
  html.js-motion .ed-home article[data-reveal]:not(.is-in) .ed-media:not([data-parallax]) { clip-path: inset(0 0 100% 0); }
  html.js-motion .ed-home article[data-reveal]:not(.is-in) .ed-media:not([data-parallax]) img { transform: scale(1.04); }
  html.js-motion .ed-home article[data-reveal]:not(.is-done) .ed-media:not([data-parallax]) {
    transition: clip-path 520ms var(--ed-motion);
    transition-delay: calc(min(var(--i, 0), 6) * 60ms);
  }
  html.js-motion .ed-home article[data-reveal]:not(.is-done) .ed-media:not([data-parallax]) img {
    transition: transform 520ms var(--ed-motion), opacity 0.2s var(--ed-ease);
    transition-delay: calc(min(var(--i, 0), 6) * 60ms);
  }

  /* Ranked numerals slide in 6px behind their rows. */
  html.js-motion .ed-home-ranked .ed-ranked[data-reveal]:not(.is-in) > li::before { transform: translate3d(-6px, 0, 0); }
  html.js-motion .ed-home-ranked .ed-ranked[data-reveal]:not(.is-done) > li::before {
    transition: transform 460ms var(--ed-motion);
    transition-delay: calc(min(var(--i, 0), 6) * 60ms + 80ms);
  }
}
.ed-home-sec--play > .ed-home-sec__rule { background: rgb(255 255 255 / 0.35); }

/* ================================================================== round 6: friction
 * Shorter bands on phones, kicker taps that cannot steal the headline's, a section-tinted ground
 * for pictures still loading, most-read rows that name their section, and the page's closing strip.
 */

/* Phones: a dense band shows its lead and four headlines, a trio band its lead and three; the rest
   stays one tap away under «Повеќе од …». (Desktop and tablet keep the full two-column list.) */
@media (max-width: 739.98px) {
  .ed-home-sec--dense .ed-home-band__list > :nth-child(n + 5),
  .ed-home-sec--trio .ed-home-band__list > :nth-child(n + 4) { display: none; }
}

/* Touch: a kicker sits 5px above its headline at 13px tall, so a thumb meant for the story landed on
   the sub-section. On touch screens the kicker reads as a label; the sub-section row in the band's
   head (and the band's name) carry those links. */
@media (pointer: coarse) {
  .ed-home-band .ed-kicker a,
  .ed-home-akt__kicker a { pointer-events: none; }
}

/* Pictures still loading: a faint ground of the band's own colour instead of flat grey. */
.ed-home-sec .ed-media,
.ed-home-akt .ed-media { background-color: var(--sd-c-wash-2, var(--ed-bg-3)); }

/* Most read: the section in its colour above each headline; the numeral sits by the headline. */
.ed-home-ranked .ed-ranked > li::before { grid-column: 1; grid-row: 2; }
.ed-home-ranked .ed-ranked > li > * { grid-column: 2; }
.ed-home-ranked__sec {
  grid-row: 1;
  margin-bottom: 4px;
  font: 700 var(--ed-fs-label)/1.2 var(--ed-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sd-c-text, var(--ed-ink-3));
}
.ed-home-ranked .ed-ranked__headline { grid-row: 2; }

/* The end of the front page: the newest day's stories, the month's archive, the nine sections. */
.ed-home-end {
  margin-top: var(--ed-s8);
  padding-top: var(--ed-s4);
  border-top: 1px solid var(--ed-ink);
}
.ed-home-end__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ed-s2) var(--ed-s5);
  margin: 0 0 var(--ed-s4);
}
.ed-home-end__day {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 var(--ed-s4);
  border: 1px solid var(--ed-ink);
  border-radius: 3px;
  font: 700 0.9375rem/1.2 var(--ed-sans);
  color: var(--ed-ink);
}
.ed-home-end__day:hover span { text-decoration: underline; text-underline-offset: 3px; }
.ed-home-end__month {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 0.875rem/1.2 var(--ed-sans);
  color: var(--ed-ink-3);
  /* A grey link must still look like a link on touch screens, where there is no hover. */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}
.ed-home-end__month:hover { color: var(--ed-ink); text-decoration-thickness: 2px; }
.ed-home-end__secs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ed-s2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ed-home-end__secs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 var(--ed-s3);
  border: 1px solid var(--sd-line, var(--ed-line));
  border-radius: 999px;
  background: var(--sd-c-wash, transparent);
  font: 600 0.875rem/1.2 var(--ed-sans);
  color: var(--sd-c-text, var(--ed-ink));
}
.ed-home-end__secs a:hover { border-color: var(--sd-c, var(--ed-ink)); }
/* Phones: the footer right under it lists the same nine sections as 44px rows; keep only that one. */
@media (max-width: 739px) {
  .ed-home-end__secs { display: none; }
  .ed-home-end__links { margin-bottom: 0; }
}
.ed-home-end__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sd-c, var(--ed-ink)); }
.ed-home-end__day:active,
.ed-home-end__secs a:active { transform: translateY(1px); }
@media (prefers-reduced-motion: no-preference) {
  .ed-home-end__icon { transition: transform 180ms var(--ed-motion); }
  .ed-home-end__day:hover .ed-home-end__icon { transform: translateX(3px); }
  .ed-home-end__day,
  .ed-home-end__secs a { transition: transform 120ms var(--ed-motion), border-color 180ms var(--ed-motion); }
}
