/*
 * Alfa Editorial: pages.css
 * Search, 404 and generic pages.
 */

/* ------------------------------------------------------------------ 1. Section index (search, 404) */

/* Phones: a ruled two-column index with full-height touch rows. From 740px: one row of text links. */
.ed-sections__title { margin-bottom: var(--ed-s2); }
.ed-sections__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--ed-s5);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ed-line);
}
.ed-sections__list > li { min-width: 0; border-bottom: 1px solid var(--ed-line); }
.ed-sections__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ed-s2);
  min-height: 44px;
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ed-ink);
  transition: color 0.15s var(--ed-ease);
}
.ed-sections__link:hover { color: var(--ed-ink-3); }
.ed-sections__chev { color: var(--ed-ink-4); }
@media (min-width: 740px) {
  .ed-sections__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--ed-s5);
    padding-top: var(--ed-s1);
  }
  .ed-sections__list > li { border-bottom: 0; }
  .ed-sections__link { min-height: 36px; }
  .ed-sections__link:hover { color: var(--ed-ink); text-decoration: underline; text-underline-offset: 3px; }
  .ed-sections__chev { display: none; }
}

/* ------------------------------------------------------------------ 2. Search form */

.ed-searchform__row {
  display: flex;
  align-items: center;
  gap: var(--ed-s3);
  border-bottom: 2px solid var(--ed-ink);
  transition: border-color 0.15s var(--ed-ease);
}
.ed-searchform__row:focus-within { border-bottom-color: var(--ed-accent); }

/* The field speaks in the headline face. */
.ed-searchform__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 56px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ed-ink);
  font-family: var(--ed-head);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  -webkit-appearance: none;
  appearance: none;
}
.ed-searchform__input::placeholder { color: var(--ed-ink-4); opacity: 1; }
.ed-searchform__input:focus,
.ed-searchform__input:focus-visible { outline: none; }
.ed-searchform__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* A plain ink text button sitting on the field's rule: the one filled button belongs to the header. */
.ed-searchform__submit {
  flex: none;
  min-height: 44px;
  padding: 0 0 0 var(--ed-s2);
  border: 0;
  background: transparent;
  color: var(--ed-ink);
}
.ed-searchform__submit:hover { background: transparent; color: var(--ed-ink-3); }
@media (max-width: 739px) {
  .ed-searchform__submit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ed-searchform__submit { width: 44px; padding: 0; }
}
@media (min-width: 740px) {
  .ed-searchform__input { min-height: 64px; font-size: 2rem; }
}

/* Filter row: section select at the left, period tabs at the right. */
.ed-searchform__filters {
  display: flex;
  flex-direction: column;
  gap: var(--ed-s3);
  margin-top: var(--ed-s4);
}
.ed-searchform__filter,
.ed-searchperiod {
  display: flex;
  align-items: center;
  gap: var(--ed-s3);
  min-width: 0;
}
.ed-searchform__filter-label,
.ed-searchperiod__label {
  flex: none;
  min-width: 4.75rem;
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-label);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-ink-4);
}
.ed-searchform__select {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  padding: 6px 32px 6px 10px;
  font-size: var(--ed-fs-ui);
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
}
.ed-searchform__apply { flex: none; }

/* Period: text tabs, the current one in ink with a rule under it. */
.ed-searchperiod__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--ed-s4);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ed-searchperiod__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-bottom: 2px solid transparent;
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-ui);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ed-ink-3);
  white-space: nowrap;
  transition: color 0.15s var(--ed-ease), border-color 0.15s var(--ed-ease);
}
.ed-searchperiod__link:hover { color: var(--ed-ink); }
.ed-searchperiod__link.is-current { border-bottom-color: var(--ed-ink); font-weight: 700; color: var(--ed-ink); }
/* Phones: each label above its control, so the five period tabs keep one line. */
@media (max-width: 739px) {
  .ed-searchform__filter,
  .ed-searchperiod { flex-direction: column; align-items: flex-start; gap: var(--ed-s1); }
  .ed-searchform__filter-label,
  .ed-searchperiod__label { min-width: 0; }
  .ed-searchperiod__list { gap: 0 var(--ed-s2); }
  /* Every tab at least 40px wide, short words centred in their target. */
  .ed-searchperiod__link { justify-content: center; min-width: 40px; padding-inline: 2px; }
  /* Result thumbs share the 1:1 crop of the lane's other small-thumb lists. */
  .ed-results .ed-river__media { aspect-ratio: 1 / 1; }
}
@media (min-width: 740px) {
  .ed-searchform__filters {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: var(--ed-s6);
  }
  .ed-searchform__filter-label,
  .ed-searchperiod__label { min-width: 0; }
  .ed-searchform__select { min-width: 13rem; min-height: 36px; }
  .ed-searchperiod__link { min-height: 36px; }
}

/* ------------------------------------------------------------------ 3. Search page */

.ed-results { padding-top: var(--ed-block-gap); }
/* Below 1150px the narrow column would sit a few pixels inside the masthead edge: use the full frame. */
@media (max-width: 1149px) {
  .ed-results.ed-wrap--mid { max-width: calc(var(--ed-max) + 2 * var(--ed-gutter)); }
}
.ed-results__title {
  margin-bottom: var(--ed-s4);
  font-size: 2.5rem;
}
@media (min-width: 1024px) {
  .ed-results__title { margin-bottom: var(--ed-s5); font-size: 3rem; }
}

.ed-results__start { margin-top: var(--ed-s6); }
.ed-results__hint {
  margin-bottom: var(--ed-block-gap);
  font-family: var(--ed-serif);
  font-size: var(--ed-fs-dek);
  line-height: 1.5;
  color: var(--ed-ink-3);
}

.ed-results__summary {
  margin-top: var(--ed-block-gap);
  padding-bottom: var(--ed-s3);
  border-bottom: 1px solid var(--ed-ink);
}
.ed-results__count {
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ed-ink-3);
}
.ed-results__term { font-weight: 700; color: var(--ed-ink); }
.ed-results__in { font-weight: 700; color: var(--ed-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.ed-results__in:hover { color: var(--ed-ink-3); }
.ed-results__note {
  margin-top: 4px;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ed-ink-4);
}

.ed-results__results { margin-top: 0; }
.ed-results__results > :first-child > :first-child { border-top: 0; }
.ed-results__results mark,
.ed-results__results .ed-mark {
  padding: 0;
  background: transparent;
  color: inherit;
  box-shadow: inset 0 -0.38em 0 var(--ed-bg-3);
}

/* No results */
.ed-results__empty {
  margin-top: var(--ed-block-gap);
  padding-top: var(--ed-rule-gap);
  border-top: 1px solid var(--ed-ink);
}
.ed-results__empty-title { max-width: 36rem; }
.ed-results__empty .ed-results__note { margin-top: var(--ed-s2); }
.ed-results__advice {
  max-width: 36rem;
  margin: var(--ed-s4) 0 var(--ed-block-gap);
  padding: 0;
  list-style: none;
  font-family: var(--ed-serif);
  font-size: var(--ed-fs-dek);
  line-height: 1.5;
  color: var(--ed-ink-3);
}
.ed-results__advice li { position: relative; padding-left: 1.1em; }
.ed-results__advice li + li { margin-top: 6px; }
.ed-results__advice li::before { content: "–"; position: absolute; left: 0; color: var(--ed-ink-4); }

/* ------------------------------------------------------------------ 4. Story rows and the latest list */

/* A row of small picture stories. Phones: text left, square thumb right. */
.ed-latest .ed-story__headline { font-size: var(--ed-fs-xs); font-weight: 500; line-height: 1.22; }
.ed-latest .ed-kicker { margin-bottom: 4px; }
@media (max-width: 739px) {
  .ed-latest .ed-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    column-gap: var(--ed-s3);
    align-items: start;
  }
  .ed-latest .ed-story__media { grid-column: 2; grid-row: 1; aspect-ratio: 1 / 1; }
  .ed-latest .ed-story__body { grid-column: 1; grid-row: 1; }
}
@media (min-width: 1024px) {
  .ed-latest .ed-story__headline { font-size: var(--ed-fs-sm); line-height: 1.2; }
  .ed-results .ed-latest .ed-story__headline { font-size: var(--ed-fs-xs); line-height: 1.22; }
}

/* "Најново" in a rail: live dot, red times, small headlines. */
.ed-latestlist { padding-top: var(--ed-s3); border-top: 1px solid var(--ed-ink); }
.ed-latestlist .ed-section-head { margin-bottom: var(--ed-s3); }
.ed-latestlist__time {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-label);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ed-latestlist__headline a { transition: color 0.12s var(--ed-ease); }
.ed-latestlist__headline a:hover { color: var(--ed-ink-3); }

/* ------------------------------------------------------------------ 5. 404 */

.ed-notfound { padding-top: var(--ed-block-gap); }
.ed-notfound__label { margin-bottom: var(--ed-s3); }
/* Sized like an article headline: 31/36 on phones, 40/44 on desktops. */
.ed-notfound__title {
  max-width: 40rem;
  font-size: clamp(1.9375rem, 1.6rem + 1.45vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
}
/* One right edge for everything in the main column: title, text, form rule and section index. */
.ed-notfound__main > * { max-width: 40rem; }
.ed-notfound__text {
  margin-top: var(--ed-s4);
  font-family: var(--ed-serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ed-ink-2);
  text-wrap: pretty;
}
.ed-notfound .ed-searchform { margin-top: var(--ed-block-gap); }
.ed-notfound .ed-sections { margin-top: var(--ed-block-gap); }
@media (min-width: 740px) {
  .ed-notfound__text { font-size: 1.1875rem; line-height: 1.5; }
}
@media (min-width: 1024px) {
  .ed-notfound__split { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); }
  .ed-notfound__main { padding-bottom: var(--ed-s4); }
}

/* ------------------------------------------------------------------ 6. Generic page */

.ed-page { padding-top: var(--ed-s6); }
@media (min-width: 1024px) {
  .ed-page { padding-top: var(--ed-s8); }
}
.ed-page__head {
  margin-bottom: var(--ed-s8);
  padding-bottom: var(--ed-s5);
  border-bottom: 1px solid var(--ed-ink);
}
.ed-page__head .ed-breadcrumbs { margin-bottom: var(--ed-s4); }
/* The current crumb is plain text beside 32px links: centre the row so it does not sit high. */
.ed-page__head .ed-breadcrumbs ol { align-items: center; }
/* A page saved with no text yet: a short, helpful note with the sections, never a blank page. */
.ed-page__empty { padding: var(--ed-s6) 0 var(--ed-s4); color: var(--ed-ink-3); }
.ed-page__empty-title { margin: 0 0 var(--ed-s2); font-family: var(--ed-head); font-size: var(--ed-fs-md); font-weight: 500; line-height: 1.3; color: var(--ed-ink); text-wrap: balance; }
.ed-page__empty-text { margin: 0 0 var(--ed-s4); font-family: var(--ed-serif); }
/* Sized like an article headline: 31/36 on phones, 40/44 on desktops. */
.ed-page__title {
  font-size: 1.9375rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
@media (min-width: 740px) {
  .ed-page__title { font-size: 2.5rem; line-height: 1.1; }
}

/* Reading text. Zero specificity: article.css (.ed-prose) wins wherever it speaks. */
:where(.ed-page__body) {
  font-family: var(--ed-serif);
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ed-ink-2);
}
@media (min-width: 740px) {
  :where(.ed-page__body) { font-size: 1.25rem; line-height: 1.5; }
}
:where(.ed-page__body) > * + * { margin-top: 0.8em; }
:where(.ed-page__body) a {
  color: var(--ed-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
:where(.ed-page__body) a:hover { color: var(--ed-accent-2); }
:where(.ed-page__body) strong { font-weight: 700; color: var(--ed-ink); }
/* Bold inside a link keeps the link's blue (article.css paints .ed-prose strong in ink). */
.ed-page__body a :where(strong, b) { color: inherit; }
/* Subheads in the sans face, as in articles. */
:where(.ed-page__body) :where(h2, h3, h4, h5, h6) {
  margin-top: 1.75em;
  font-family: var(--ed-sans);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ed-ink);
  text-wrap: balance;
}
:where(.ed-page__body) :where(h2, h3, h4, h5, h6) + * { margin-top: 0.5em; }
:where(.ed-page__body) h2 { font-size: 1.25rem; }
:where(.ed-page__body) h3 { font-size: 1.125rem; }
:where(.ed-page__body) :where(h4, h5, h6) {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
:where(.ed-page__body) :where(ul, ol) { padding-left: 1.4em; }
:where(.ed-page__body) li + li { margin-top: 0.35em; }
:where(.ed-page__body) li::marker { color: var(--ed-ink-4); }
:where(.ed-page__body) ol li::marker { font-family: var(--ed-sans); font-size: 0.875em; font-weight: 600; }
:where(.ed-page__body) code {
  padding: 0.1em 0.35em;
  background: var(--ed-bg-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
}
:where(.ed-page__body) pre {
  overflow-x: auto;
  padding: var(--ed-s4);
  border-left: 2px solid var(--ed-ink);
  background: var(--ed-bg-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ed-ink);
  white-space: pre;
}
:where(.ed-page__body) del { color: var(--ed-ink-4); }

/* Rules */
:where(.ed-page__body) hr {
  height: 0;
  margin-block: 2em;
  border: 0;
  border-top: 1px solid var(--ed-line-2);
}
.ed-page__body hr.is-style-dots {
  width: auto;
  height: auto;
  border: 0;
  text-align: center;
  line-height: 1;
}
.ed-page__body hr.is-style-dots::before {
  content: "· · ·";
  font-family: var(--ed-serif);
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  color: var(--ed-ink-3);
}

/* Quotes: article.css sets the look; these undo the block library's sizes and add the variants. */
.ed-page__body .wp-block-quote.is-style-large:not(.is-style-plain) {
  padding-left: 0;
  border-left: 0;
}
.ed-page__body .wp-block-quote.is-style-large:not(.is-style-plain) p {
  font-size: 1.15em;
  font-style: italic;
  line-height: 1.42;
}
.ed-page__body cite mark { background: transparent; color: inherit; }

.ed-page__body .wp-block-pullquote {
  margin-inline: 0;
  padding: 1.1em 0;
  font-size: inherit;
  line-height: inherit;
}
.ed-page__body .wp-block-pullquote p { font-size: inherit; line-height: inherit; text-wrap: balance; }
.ed-page__body .wp-block-pullquote cite { margin-top: 0.9em; }
.ed-page__body .wp-block-pullquote.is-style-modern { border-top-width: 3px; border-bottom-color: var(--ed-line-2); }
/* No coloured panels: page.php strips editor backgrounds, and the solid style stays a ruled quote. */
.ed-page__body .wp-block-pullquote.is-style-solid-bg {
  padding: 1.1em 0;
  border-block: 1px solid var(--ed-ink);
  background: none;
  color: var(--ed-ink);
}
.ed-page__body .wp-block-pullquote.alignright { text-align: left; }
.ed-page__body .wp-block-pullquote.alignright blockquote { font-size: 1.1em; }
/* A narrow float: even out the lines without splitting compounds onto two lines. */
.ed-page__body .wp-block-pullquote.alignright p { text-wrap: pretty; }
@media (min-width: 740px) {
  .ed-page__body .wp-block-pullquote.alignright { max-width: 42%; margin: 0.3em 0 0.8em 1.4em; padding: 0.8em 0; }
}
.ed-page__body hr.is-style-wide { width: 100%; border-top-color: var(--ed-line-2); }
.ed-page__body::after { content: ""; display: table; clear: both; }
.ed-page__body h2,
.ed-page__body h3 { clear: both; }

/* Drop cap: exactly three lines. initial-letter sizes and sinks it to the text's own lines;
   the float is the fallback where it is not supported. */
.ed-page__body .has-drop-cap:not(:focus)::first-letter {
  float: left;
  margin: 0.06em 0.08em 0 0;
  font-family: var(--ed-head);
  font-size: 5.3em;
  font-weight: 700;
  line-height: 0.72;
  color: var(--ed-ink);
}
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  .ed-page__body .has-drop-cap:not(:focus)::first-letter {
    float: none;
    margin: 0 0.1em 0 0;
    font-size: inherit;
    line-height: inherit;
    -webkit-initial-letter: 3;
    initial-letter: 3;
  }
}

/* Contact labels ("Адреса:"), marked by page.php: a strong label opening a paragraph or a line. */
.ed-page__body .ed-page__label { font-family: var(--ed-sans); font-size: 0.875em; letter-spacing: 0.01em; }

/* Multi-page navigation */
.ed-page__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: var(--ed-block-gap);
  padding-top: var(--ed-rule-gap);
  border-top: 1px solid var(--ed-ink);
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-ui);
  font-weight: 600;
}
.ed-page__pages .ed-label { margin-right: var(--ed-s2); }
.ed-page__pages a,
.ed-page__pages > span:not(.ed-label) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--ed-line-2);
  border-radius: var(--ed-radius);
  color: var(--ed-ink);
  text-decoration: none;
}
.ed-page__pages a:hover { border-color: var(--ed-ink); color: var(--ed-ink); }
.ed-page__pages > span:not(.ed-label) { border-color: var(--ed-ink); background: var(--ed-ink); color: #fff; }

/* ------------------------------------------------------------------ 7. Washes and motion (platform pass)
   Search, 404 and static pages open on a neutral paper wash that fades to white under the head
   (full width, painted by a border-image outset so it never scrolls sideways). Blocks lower down rise
   once as they enter (data-reveal, core.js). */

.ed-results,
.ed-notfound,
.ed-page {
  --pg-wash: color-mix(in srgb, var(--ed-ink) 3.5%, #fff);
  border-image: linear-gradient(180deg, var(--pg-wash) 0, var(--pg-wash) 90px, rgb(255 255 255 / 0) 360px) fill 0 // 0 100vmax;
}
.ed-notfound__more,
.ed-results__more { min-width: 0; }

.ed-results a,
.ed-notfound a,
.ed-page__body a { transition: color 0.15s var(--ed-ease), text-decoration-color 0.15s var(--ed-ease); }

@media print {
  .ed-results, .ed-notfound, .ed-page { border-image: none; }
}

/* ------------------------------------------------------------------ 8. Final polish (owner, 2026-11-26)
   Search: a large field whose rule draws an accent line in from the left on focus, an instant, readable
   result head in the headline face; result rows answer the pointer (underline that draws in, the
   picture zooms 3 %). The section index takes hover and focus states. The paper wash is built in
   oklch where it can. 180 to 520ms on one easing; off for reduced motion. */

.ed-results,
.ed-notfound,
.ed-page { --pg-ease: cubic-bezier(0.2, 0.7, 0.2, 1); }
@supports (color: oklch(from red l c h)) {
  .ed-results,
  .ed-notfound,
  .ed-page {
    --pg-wash: oklch(0.975 0.004 85);
    border-image: linear-gradient(180deg in oklab, var(--pg-wash) 0, var(--pg-wash) 100px, oklch(1 0 0 / 0) 420px) fill 0 // 0 100vmax;
  }
}

/* The field: its ink rule stays; an accent line draws in over it while the field has the focus. */
.ed-searchform--page .ed-searchform__row { position: relative; }
.ed-searchform--page .ed-searchform__row:focus-within { border-bottom-color: var(--ed-ink); }
.ed-searchform--page .ed-searchform__row::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--ed-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.32s var(--pg-ease, ease);
  pointer-events: none;
}
.ed-searchform--page .ed-searchform__row:focus-within::after { transform: scaleX(1); }
.ed-searchform--page .ed-searchform__submit { min-width: 44px; transition: color 0.18s var(--pg-ease, ease), transform 0.18s var(--pg-ease, ease); }
.ed-searchform--page .ed-searchform__submit:active { transform: scale(0.94); }
.ed-searchform--page .ed-searchform__submit:focus-visible { outline-offset: 2px; }
.ed-searchform--page .ed-searchform__input::placeholder { color: var(--ed-ink-4); }

/* The result head: the count reads as a sentence in the headline face. */
.ed-results__summary { padding-bottom: var(--ed-s4); }
.ed-results__count {
  font-family: var(--ed-head);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ed-ink-2);
  text-wrap: balance;
}
.ed-results__term { font-weight: 700; color: var(--ed-ink); }
.ed-results__in { font-weight: 700; color: var(--ed-ink); transition: color 0.18s var(--pg-ease); }
.ed-results__in:hover { color: var(--ed-accent); }
@media (min-width: 740px) {
  .ed-results__count { font-size: 1.375rem; }
}
.ed-results__results mark,
.ed-results__results .ed-mark { box-shadow: inset 0 -0.38em 0 color-mix(in srgb, var(--ed-accent) 16%, #fff); }

/* Rows of results, the latest blocks: underline that draws in, the picture zooms a little. */
.ed-results .ed-river__headline a,
.ed-results .ed-story__headline a,
.ed-notfound .ed-story__headline a,
.ed-notfound .ed-latestlist__headline a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.18s var(--pg-ease), color 0.18s var(--pg-ease);
}
.ed-results .ed-river__item:hover .ed-river__headline a,
.ed-results .ed-river__headline a:focus-visible,
.ed-results .ed-story:hover .ed-story__headline a,
.ed-notfound .ed-story:hover .ed-story__headline a,
.ed-notfound .ed-latestlist__headline a:hover,
.ed-notfound .ed-latestlist__headline a:focus-visible { background-size: 100% 1px; color: var(--ed-ink); }
.ed-results .ed-river__media,
.ed-results .ed-story__media,
.ed-notfound .ed-story__media { overflow: hidden; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ed-results .ed-river__media img,
  .ed-results .ed-story__media img,
  .ed-notfound .ed-story__media img { transition: transform 0.5s var(--pg-ease), opacity 0.35s var(--pg-ease); }
  .ed-results .ed-river__item:hover .ed-river__media img,
  .ed-results .ed-story:hover .ed-story__media img,
  .ed-notfound .ed-story:hover .ed-story__media img { transform: scale(1.03); }
}

/* The section index: every row a clear target, an underline that draws in, a chevron that moves. */
.ed-sections__link { position: relative; min-height: 44px; }
.ed-sections__chev { transition: transform 0.18s var(--pg-ease, ease), color 0.18s var(--pg-ease, ease); }
.ed-sections__link:hover .ed-sections__chev { color: var(--ed-ink); transform: translateX(3px); }
.ed-sections__link:active { transform: translateY(1px); }
@media (min-width: 740px) {
  .ed-sections__link { min-height: 44px; }
  .ed-sections__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 8px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.18s var(--pg-ease, ease);
  }
  .ed-sections__link:hover { text-decoration: none; }
  .ed-sections__link:hover::after,
  .ed-sections__link:focus-visible::after { transform: scaleX(1); }
}

/* 404: the label in the accent over a short rule; the advice and empty states read as help. */
.ed-notfound__label { color: var(--ed-accent); }
.ed-notfound__title { text-wrap: balance; }
.ed-results__empty { border-top-color: var(--ed-ink); }
.ed-results__advice li::before { color: var(--ed-accent); }

@media (prefers-reduced-motion: reduce) {
  .ed-searchform--page .ed-searchform__row::after,
  .ed-searchform--page .ed-searchform__submit,
  .ed-results .ed-river__headline a,
  .ed-results .ed-story__headline a,
  .ed-notfound .ed-story__headline a,
  .ed-notfound .ed-latestlist__headline a,
  .ed-sections__chev,
  .ed-sections__link::after { transition: none; }
  .ed-searchform--page .ed-searchform__submit:active,
  .ed-sections__link:hover .ed-sections__chev,
  .ed-sections__link:active { transform: none; }
}
@media print {
  .ed-searchform--page .ed-searchform__row::after { display: none; }
}

/* ------------------------------------------------------------------ 9. Round 6 (2026-11-26)
   The section index carries each section's colour dot; «Често барано» is a row of chips under the
   advice (search with no results, 404); the sort tabs sit beside the period tabs. */

.ed-sections__name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ed-sections__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sd-c, var(--ed-ink-4));
}
.ed-popular { margin-top: var(--ed-block-gap); }
.ed-popular__title { margin-bottom: var(--ed-s2); }
.ed-popular__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ed-s2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ed-popular__link { min-height: 40px; }
@media (pointer: coarse) {
  .ed-popular__link { min-height: 44px; }
}
.ed-results__empty .ed-sections { margin-top: var(--ed-block-gap); }
@media (min-width: 740px) {
  .ed-searchform__filters .ed-searchsort { margin-left: auto; }
}
