/* Reader features and the second accent colour (gold). */

:root {
  --ed-gold: #8a6518;      /* the second accent: life sections and reader conveniences */
  --ed-gold-2: #6d4f10;
  --ed-gold-tint: #f6f0e3;
}

/* Kickers of the life sections (Кујна, Забава, Култура, Живот) are gold; news stays red. */
.ed-kicker--life, .ed-kicker--life a:hover { color: var(--ed-gold); }
.ed-kicker--life a:hover { color: var(--ed-gold-2); }

/* 2. Smooth navigation */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* 1. Instant search */
.ed-live { margin-top: 18px; border-top: 1px solid var(--ed-line); }
.ed-live:empty { display: none; }
.ed-live__label { margin: 14px 0 6px; font: 700 0.6875rem/1.2 var(--ed-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ed-gold); }
.ed-live__list { margin: 0; padding: 0; list-style: none; }
.ed-live__list li + li { border-top: 1px solid var(--ed-line); }
.ed-live__list a { display: block; padding: 10px 0; font-family: var(--ed-head); font-size: 1.125rem; font-weight: 500; line-height: 1.25; color: var(--ed-ink); }
.ed-live__list a:hover, .ed-live__list a:focus-visible { color: var(--ed-ink-3); }
.ed-live__list a:focus-visible { outline-offset: 2px; }
.ed-live__title { display: block; }
/* Under each headline: its section in the section's colour, then the date. */
.ed-live__meta { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 4px; font: 500 0.75rem/1.3 var(--ed-sans); color: var(--ed-ink-4); }
.ed-live__sec { font-weight: 700; color: var(--sd-c-text, var(--ed-ink-3)); }
.ed-live__all { display: inline-flex; align-items: center; min-height: 44px; margin: 2px 0 0; font: 600 0.8125rem/1.3 var(--ed-sans); color: var(--ed-accent); text-decoration: underline; text-underline-offset: 3px; }
.ed-live__none { margin: 14px 0 0; font: 400 0.875rem/1.4 var(--ed-sans); color: var(--ed-ink-4); }
.ed-live__none .ed-live__all { min-height: 0; margin: 0; }
.ed-live__busy { margin: 14px 0 0; font: 400 0.875rem/1.4 var(--ed-sans); color: var(--ed-ink-4); }
.ed-live.is-busy .ed-live__list { opacity: 0.55; transition: opacity 0.18s var(--ed-ease); }
/* In the full-screen menu the results take the place of the section list while there is a query. */
.ed-live--menu { margin-top: 0; margin-bottom: var(--ed-s6); }
.ed-drawer__panel.has-live .ed-drawer__nav,
.ed-drawer__panel.has-live .ed-drawer__quick { display: none; }

/* 3. Text size */
.ed-ts { display: inline-flex; border: 1px solid var(--ed-line-2); border-radius: 18px; overflow: hidden; margin-right: 8px; vertical-align: middle; }
.ed-ts button { min-width: 40px; height: 40px; padding: 0 9px; font-family: var(--ed-head); font-weight: 700; color: var(--ed-ink); line-height: 1; }
.ed-ts button + button { border-left: 1px solid var(--ed-line-2); }
.ed-ts button:first-child { font-size: 0.8125rem; }
.ed-ts button:last-child { font-size: 1.125rem; }
.ed-ts button:hover:not([disabled]) { background: var(--ed-gold-tint); }
.ed-ts button[disabled] { color: var(--ed-line-2); cursor: default; }
/* The current size between the two buttons: four ticks rising in height, filled up to the step. */
.ed-ts__now { display: inline-flex; align-items: center; padding: 0 8px; border-inline: 1px solid var(--ed-line-2); }
.ed-ts__ticks { display: inline-flex; align-items: flex-end; gap: 2px; height: 15px; }
.ed-ts__ticks i { display: block; width: 3px; border-radius: 1px; background: var(--ed-line-2); }
.ed-ts__ticks i:nth-child(1) { height: 6px; }
.ed-ts__ticks i:nth-child(2) { height: 9px; }
.ed-ts__ticks i:nth-child(3) { height: 12px; }
.ed-ts__ticks i:nth-child(4) { height: 15px; }
.ed-ts__ticks i.is-on { background: var(--ed-gold); }
/* Touch screens: 44px targets. */
@media (pointer: coarse) {
  .ed-ts { border-radius: 22px; }
  .ed-ts button { min-width: 44px; height: 44px; }
}
html[data-ed-ts="s"] .ed-prose { font-size: 1.0625rem; }
html[data-ed-ts="l"] .ed-prose { font-size: 1.375rem; }
html[data-ed-ts="xl"] .ed-prose { font-size: 1.5rem; }
@media (max-width: 739px) {
  html[data-ed-ts="s"] .ed-prose { font-size: 1rem; }
  html[data-ed-ts="l"] .ed-prose { font-size: 1.25rem; }
  html[data-ed-ts="xl"] .ed-prose { font-size: 1.375rem; }
}

/* 4. New stories notice */
.ed-fresh {
  position: fixed;
  left: 50%; top: calc(var(--ed-top) + 62px);
  z-index: 800;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 8px 16px;
  border-radius: 20px;
  background: var(--ed-ink); color: #fff;
  font: 600 0.8125rem/1.2 var(--ed-sans);
  transform: translate(-50%, -14px); opacity: 0;
  transition: opacity 0.25s var(--ed-ease), transform 0.25s var(--ed-ease);
}
.ed-fresh.is-in { transform: translate(-50%, 0); opacity: 1; }
.ed-fresh:hover { background: #000; }
.ed-fresh:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 2px; }

/* 5. Continue reading */
.ed-resume {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 790;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 6px;
  width: min(360px, calc(100vw - 32px));
  padding: 12px 8px 12px 16px;
  border: 1px solid var(--ed-line-2); border-left: 3px solid var(--ed-gold);
  background: #fff;
  box-shadow: 0 6px 24px rgba(18, 18, 18, 0.12);
  transform: translateY(16px); opacity: 0;
  transition: opacity 0.3s var(--ed-ease), transform 0.3s var(--ed-ease);
}
.ed-resume.is-in { transform: none; opacity: 1; }
/* While the footer's copyright row is on screen the card steps aside (plus.js .is-away). */
.ed-resume.is-in.is-away { transform: translateY(16px); opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ed-ease), transform 0.2s var(--ed-ease), visibility 0s linear 0.2s; }
@media (prefers-reduced-motion: reduce) { .ed-resume, .ed-resume.is-in.is-away { transition: none; } }
.ed-resume__label { display: block; font: 700 0.6875rem/1.2 var(--ed-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ed-gold); }
.ed-resume__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 4px; font-family: var(--ed-head); font-size: 1rem; font-weight: 500; line-height: 1.22; color: var(--ed-ink); }
.ed-resume__link:hover .ed-resume__title { color: var(--ed-ink-3); }
.ed-resume__bar { display: block; height: 2px; margin-top: 9px; background: var(--ed-line); }
.ed-resume__bar i { display: block; height: 100%; background: var(--ed-gold); }
.ed-resume__close { width: 40px; height: 40px; color: var(--ed-ink-4); font: 400 22px/1 var(--ed-sans); }
.ed-resume__close:hover { color: var(--ed-ink); }
@media print { .ed-fresh, .ed-resume, .ed-ts { display: none !important; } }

/* On desktop the search sheet has a fixed height, so results drop down below it as a panel. */
@media (min-width: 1024px) {
  .ed-live:not(.ed-live--menu) {
    position: absolute;
    top: 100%;
    left: max(var(--ed-gutter), calc((100% - var(--ed-max)) / 2));
    z-index: 5;
    width: min(820px, calc(100% - 2 * var(--ed-gutter)));
    margin: 0;
    padding: 2px 20px 14px;
    border: 1px solid var(--ed-line-2);
    border-top: 0;
    background: #fff;
    box-shadow: 0 14px 30px rgba(18, 18, 18, 0.14);
  }
  .ed-live:empty { display: none; }
}

/* Gold in the life blocks of the front page and in Кујна */
.ed-home-recipes .ed-meta, .ed-home-portraits .ed-meta, .ed-kcard__meta { color: var(--ed-gold); }
.ed-kslider__kicker { color: var(--ed-gold); }
.ed-home-recipes .ed-section-head__title .ed-icon, .ed-home-portraits .ed-section-head__title .ed-icon { color: var(--ed-gold); }
/* Saved count on the "Зачувани" buttons */
.ed-savedn { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: var(--ed-gold); color: #fff; font: 700 0.625rem/1 var(--ed-sans); letter-spacing: 0; }
.ed-bar__btn--saved { position: relative; }
.ed-bar__btn--saved .ed-savedn { position: absolute; right: 2px; top: 6px; margin: 0; }

/* Back to top: base.css (one control, added by core.js). Lazy pictures fade in from core.js. */
