/*
 * Alfa Editorial: article.css
 * The article view (route single) and the shared prose typography (.ed-prose),
 * which generic pages use as well.
 */

/* ------------------------------------------------------------------ 1. Reading progress */

.ed-progress {
  position: fixed;
  top: var(--ed-top);
  left: 0;
  right: 0;
  z-index: 950;
  height: 3px;
  pointer-events: none;
}
/* The bar takes the section's colour (ink outside the nine sections). */
.ed-progress__bar {
  display: block;
  height: 100%;
  background: var(--sd-c);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  /* Round 4: the bar follows the reading line with a short ease instead of jumping per frame. */
  transition: opacity 0.2s var(--ed-ease), transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.ed-progress.is-active .ed-progress__bar { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ed-progress__bar { transition: opacity 0.2s var(--ed-ease); }
}

/* ------------------------------------------------------------------ 2. Frame */

/* The article is a size container so full-bleed figures can use the real page width (no scrollbar overflow). */
.ed-article {
  display: block;
  container-type: inline-size;
  padding-top: var(--ed-s4);
}
@media (min-width: 740px) {
  .ed-article { padding-top: var(--ed-s6); }
}

/* ------------------------------------------------------------------ 3. Header */

.ed-article__head .ed-breadcrumbs { margin-bottom: var(--ed-s3); }
.ed-article__head .ed-breadcrumbs ol { font-size: 0.6875rem; letter-spacing: 0.01em; }
@media (max-width: 739.98px) {
  /* Phones: the trail stops at the section; the headline follows anyway. */
  .ed-article__head .ed-breadcrumbs li[aria-current] { display: none; }
}

.ed-article__kicker { margin-bottom: var(--ed-s3); font-size: 0.75rem; }
.ed-article__kicker a { display: inline-block; padding-block: 4px; margin-block: -4px; }
@media (max-width: 739.98px) {
  /* Phones: 40px hit boxes on the small header links without moving the text. */
  .ed-article__head .ed-breadcrumbs a { padding-block: 13px; }
  .ed-article__kicker a { padding-block: 13px; margin-block: -13px; }
}

/* Headline: 31/36 on phones, 40/44 from 740px; flush left in the 600px column. */
.ed-article__title {
  font-family: var(--ed-head);
  font-size: 1.9375rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.005em;
  color: var(--ed-ink);
  text-wrap: balance;
}
@media (min-width: 740px) {
  .ed-article__title { font-size: 2.5rem; line-height: 1.1; }
}

/* Summary: the headline face at regular weight, 20/26 on phones, 22/30 from 740px. */
.ed-article__dek {
  margin-top: var(--ed-s3);
  font-family: var(--ed-head);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ed-ink-2);
  text-wrap: pretty;
}
@media (min-width: 740px) {
  .ed-article__dek { margin-top: var(--ed-s4); font-size: 1.375rem; line-height: 1.364; }
}

/* Recipe facts: time and difficulty */
.ed-article__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: var(--ed-s5) 0 0;
  border-block: 1px solid var(--ed-line);
}
.ed-article__fact {
  display: flex;
  align-items: center;
  gap: var(--ed-s2);
  padding: 10px var(--ed-s5) 10px 0;
}
.ed-article__fact + .ed-article__fact { padding-left: var(--ed-s5); border-left: 1px solid var(--ed-line); }
.ed-article__fact dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-ink-4);
}
.ed-article__fact dt .ed-icon { margin-top: -1px; }
.ed-article__fact dd {
  margin: 0;
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ed-ink);
}

/* ------------------------------------------------------------------ 4. Lead */

.ed-article__lead { margin-top: var(--ed-s4); }
@media (max-width: 739.98px) {
  /* Phones: lead image edge to edge, caption back on the gutter. */
  .ed-article__lead { padding-inline: 0; }
  .ed-article__caption { padding-inline: var(--ed-gutter); }
}
@media (min-width: 740px) {
  .ed-article__lead { margin-top: var(--ed-s5); }
}
@media (max-width: 1149.98px) {
  /* Until 945px sits well inside the gutters, the lead takes the page's content width and lines up with the grid. */
  .ed-article__lead { max-width: calc(var(--ed-max) + 2 * var(--ed-gutter)); }
}
.ed-article__image { background: var(--ed-bg-3); }
.ed-article__image img { width: 100%; height: auto; }
.ed-article__lead--portrait .ed-article__image,
.ed-article__lead--portrait .ed-article__caption { max-width: 560px; margin-inline: auto; }
@media (max-width: 739.98px) {
  .ed-article__lead--portrait .ed-article__caption { max-width: none; }
}
/* Captions: the text serif 14px grey, the credit after it in the sans 12px. */
.ed-article__caption,
.ed-prose :is(figcaption, .wp-caption-text, .wp-element-caption) {
  margin-top: var(--ed-s2);
  font-family: var(--ed-serif);
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.43;
  color: var(--ed-ink-4);
  text-align: left;
}
.ed-article__caption .ed-caption__credit {
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}
.ed-article__caption .ed-caption__text + .ed-caption__credit::before { content: ""; margin-left: 0.5em; }

.ed-article__embed { position: relative; background: var(--ed-ink); }
.ed-article__embed iframe { display: block; width: 100%; border: 0; }
.ed-article__embed--video { aspect-ratio: 16 / 9; }
.ed-article__embed--video iframe { position: absolute; inset: 0; height: 100%; }
.ed-article__embed:not(.ed-article__embed--video) { background: transparent; }

/* ------------------------------------------------------------------ 5. Byline and tools */

.ed-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ed-s3) var(--ed-s4);
  margin-top: var(--ed-s4);
  padding-block: var(--ed-s3);
  border-top: 1px solid var(--ed-line);
  border-bottom: 1px solid var(--ed-line);
}
@media (min-width: 740px) {
  .ed-byline { margin-top: var(--ed-s5); }
}
.ed-byline__text { min-width: 0; flex: 1 1 260px; }
/* "Од Име": the text serif 15px bold. */
.ed-byline__author {
  font-family: var(--ed-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ed-ink);
}
@media (max-width: 739.98px) {
  .ed-byline__author a { padding-block: 10px; }
}
.ed-byline__author a:hover { color: var(--ed-ink-3); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Date line: sans 13px grey; "Ажурирано" in red. */
/* Items keep together; the dot before an item that starts a new line falls outside the box and is clipped. */
.ed-byline__meta {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  margin-top: 4px;
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ed-ink-4);
}
.ed-byline__meta > * {
  position: relative;
  margin: 0 1.1em 0 -1.1em;
  padding-left: 1.1em;
  white-space: nowrap;
}
.ed-byline__meta > *::before {
  content: "·";
  position: absolute;
  left: 0.4em;
  top: 0;
}
.ed-byline__updated-label { font-weight: 500; color: var(--ed-red); }
.ed-byline__tools { display: flex; align-items: center; gap: var(--ed-s2); flex: none; }
.ed-byline__tools .ed-iconbtn { width: 40px; height: 40px; }
.ed-share__btn { min-height: 40px; padding-inline: 14px 16px; }
.ed-share__btn .ed-icon { margin-top: -1px; }

/* Share popover */
.ed-share { position: relative; }
.ed-share__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 212px;
  padding: 6px 0;
  border: 1px solid var(--ed-ink);
  background: var(--ed-bg);
}
.ed-share__list { margin: 0; padding: 0; list-style: none; }
.ed-share__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-ui);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ed-ink);
  text-align: left;
  white-space: nowrap;
}
.ed-share__item:hover,
.ed-share__item:focus-visible { background: var(--ed-bg-2); }
.ed-share__item:focus-visible { outline-offset: -2px; }
.ed-share__item .ed-icon { color: var(--ed-ink-3); }
.ed-share__list li:first-child { padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--ed-line); }

/* ------------------------------------------------------------------ 6. Body */

.ed-article__body { margin-top: var(--ed-s5); }
@media (min-width: 740px) {
  .ed-article__body { margin-top: var(--ed-s6); }
}

/* ------------------------------------------------------------------ 7. Prose (articles and pages) */

/* Text 18/26 on phones, 20/30 from 740px; paragraphs about 15px apart. */
.ed-prose {
  --ed-prose-gap: 0.85em;
  font-family: var(--ed-serif);
  font-size: 1.125rem;
  line-height: 1.4445;
  color: var(--ed-ink-2);
  text-wrap: pretty;
  overflow-wrap: break-word;
}
@media (min-width: 740px) {
  .ed-prose { --ed-prose-gap: 0.775em; font-size: 1.25rem; line-height: 1.5; }
}
.ed-prose > * + * { margin-top: var(--ed-prose-gap); }
.ed-prose :where(p, li, dd, blockquote, figcaption) { text-wrap: pretty; }
.ed-prose :where(div) > * + * { margin-top: var(--ed-prose-gap); }

.ed-prose strong, .ed-prose b { font-weight: 700; color: var(--ed-ink); }
.ed-prose a strong, .ed-prose a b { color: inherit; }
.ed-prose em, .ed-prose i { font-style: italic; }
.ed-prose small { font-size: 0.8em; }
.ed-prose sub, .ed-prose sup { font-size: 0.7em; line-height: 0; }

.ed-prose a {
  color: var(--ed-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--ed-accent) 45%, transparent);
  transition: color 0.15s var(--ed-ease), text-decoration-color 0.15s var(--ed-ease);
}
.ed-prose a:hover { color: var(--ed-accent-2); text-decoration-color: currentColor; }

/* Subheads: the sans face, bold, about 20px. */
.ed-prose h2 {
  margin-top: 1.75em;
  font-family: var(--ed-sans);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ed-ink);
  text-wrap: balance;
}
.ed-prose h3 {
  margin-top: 1.5em;
  font-family: var(--ed-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ed-ink);
  text-wrap: balance;
}
.ed-prose h4, .ed-prose h5, .ed-prose h6 {
  margin-top: 1.5em;
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-ink);
}
@media (min-width: 740px) {
  .ed-prose h2 { font-size: 1.25rem; }
  .ed-prose h3 { font-size: 1.125rem; }
}
.ed-prose :is(h2, h3, h4, h5, h6) + * { margin-top: 0.5em; }
.ed-prose > :first-child { margin-top: 0; }

/* Lists */
.ed-prose ul, .ed-prose ol { padding-left: 1.4em; }
.ed-prose ul { list-style: disc; }
.ed-prose ol { list-style: decimal; }
.ed-prose li { padding-left: 0.25em; }
.ed-prose li + li { margin-top: 0.45em; }
.ed-prose li::marker { color: var(--ed-ink-4); }
.ed-prose ol > li::marker { font-family: var(--ed-sans); font-size: 0.85em; font-weight: 600; }
.ed-prose li > :is(ul, ol) { margin-top: 0.45em; }
.ed-prose dl dt { font-weight: 700; color: var(--ed-ink); }
.ed-prose dl dd { margin: 0.2em 0 0; }

/* Quotes */
.ed-prose blockquote {
  margin-block: 1.6em;
  padding: 0.1em 0 0.1em 1.1em;
  border-left: 2px solid var(--ed-ink);
  font-size: 1.1em;
  line-height: 1.5;
  color: var(--ed-ink);
}
.ed-prose blockquote > * + * { margin-top: 0.7em; }
.ed-prose blockquote cite,
.ed-prose blockquote footer {
  display: block;
  margin-top: 0.7em;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ed-ink-4);
}
.ed-prose .wp-block-pullquote {
  margin-block: 1.8em;
  padding: 1em 0;
  border-block: 1px solid var(--ed-ink);
  text-align: left;
}
.ed-prose .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--ed-head);
  font-size: 1.35em;
  font-weight: 500;
  line-height: 1.25;
}

/* Media */
.ed-prose figure { margin-block: 1.6em; }
.ed-prose img { height: auto; }
/* Figure captions share the lead caption rule (section 4). */
.ed-prose .wp-caption { max-width: 100%; }
.ed-prose .aligncenter { margin-inline: auto; }
.ed-prose img.aligncenter { display: block; }
@media (min-width: 740px) {
  .ed-prose .alignleft { float: left; max-width: 45%; margin: 0.3em 1.4em 0.8em 0; }
  .ed-prose .alignright { float: right; max-width: 45%; margin: 0.3em 0 0.8em 1.4em; }
}
.ed-prose::after { content: ""; display: table; clear: both; }

/* Wide: up to 945px inside the 640px column. Full: the whole page width. */
@media (min-width: 1000px) {
  .ed-prose .alignwide {
    width: min(945px, 100cqw - 2 * var(--ed-gutter));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
.ed-prose .alignfull {
  width: 100cqw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.ed-prose .alignfull figcaption { padding-inline: var(--ed-gutter); }
.ed-prose :is(.alignwide, .alignfull) img { width: 100%; }

/* Embeds and iframes */
.ed-prose iframe { max-width: 100%; border: 0; }
.ed-prose :is(.wp-block-embed.is-type-video, .wp-has-aspect-ratio) iframe,
.ed-prose iframe:is([src*="youtube"], [src*="youtu.be"], [src*="vimeo"], [src*="dailymotion"], [src*="facebook.com/plugins/video"]) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.ed-prose .wp-block-embed__wrapper { position: relative; }
.ed-prose .ed-prose__video { margin: var(--ed-s5) 0; background: var(--ed-ink); }
.ed-prose video, .ed-prose audio { width: 100%; }

/* Tables */
.ed-prose__table,
.ed-prose .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.ed-prose .wp-block-table .ed-prose__table { overflow: visible; }
.ed-prose table {
  width: 100%;
  min-width: 28rem;
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: var(--ed-ink-2);
}
.ed-prose th, .ed-prose td {
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--ed-line);
  text-align: left;
  vertical-align: top;
}
.ed-prose thead th {
  border-bottom: 1px solid var(--ed-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-ink);
  vertical-align: bottom;
}
.ed-prose table caption { padding-bottom: 8px; font-size: 0.75rem; color: var(--ed-ink-4); text-align: left; }

/* Rules and code */
.ed-prose hr {
  width: 72px;
  height: 0;
  margin: 2.2em auto;
  border: 0;
  border-top: 1px solid var(--ed-ink);
}
.ed-prose code, .ed-prose kbd, .ed-prose samp {
  padding: 0.1em 0.3em;
  background: var(--ed-bg-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  color: var(--ed-ink);
}
.ed-prose pre {
  padding: var(--ed-s4);
  overflow-x: auto;
  background: var(--ed-bg-2);
  font-size: 0.85rem;
  line-height: 1.5;
}
.ed-prose pre code { padding: 0; background: none; font-size: inherit; }
.ed-prose mark { background: var(--ed-bg-3); color: inherit; }
.ed-prose abbr[title] { text-decoration: underline dotted; }

/* Slots inside the text */
.ed-prose .ed-slot { margin-block: 2em; font-size: 1rem; }

/* ------------------------------------------------------------------ 8. Recipes stored in post_content */

/* The opening paragraph (.alfa-recipe-intro) is ordinary text: the summary is the only larger paragraph. */

/* Facts row: format B badges, format A spans. One ink rule opens it, a hairline closes it. */
.ed-prose :is(.alfa-recipe-meta-row, .alfa-recipe-meta) {
  display: flex;
  flex-wrap: wrap;
  margin-block: 1.6em;
  border-top: 1px solid var(--ed-ink);
  border-bottom: 1px solid var(--ed-line);
  font-family: var(--ed-sans);
}
.ed-prose .alfa-meta-badge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 25%;
  min-width: 7.5rem;
  padding: 12px 16px 12px 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ed-ink);
}
.ed-prose .alfa-meta-badge + .alfa-meta-badge { padding-left: 16px; border-left: 1px solid var(--ed-line); }
.ed-prose .alfa-meta-badge b {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ed-ink-4);
}
.ed-prose :is(.alfa-recipe-meta-row, .alfa-recipe-meta) > * { margin-top: 0; }
.ed-prose .alfa-recipe-meta { gap: 0; }
.ed-prose .alfa-recipe-meta span {
  padding: 12px 16px 12px 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ed-ink);
}
.ed-prose .alfa-recipe-meta span + span { padding-left: 16px; border-left: 1px solid var(--ed-line); }
@media (max-width: 479.98px) {
  /* Up to three facts share one row; four or more go two by two. */
  .ed-prose .alfa-recipe-meta-row:not(:has(> :nth-child(4))) > .alfa-meta-badge { flex: 1 1 0; min-width: 0; padding-right: 12px; font-size: 0.875rem; }
  .ed-prose .alfa-recipe-meta-row:not(:has(> :nth-child(4))) > .alfa-meta-badge + .alfa-meta-badge { padding-left: 12px; }
}
@media (max-width: 479.98px) {
  .ed-prose .alfa-recipe-meta-row:has(> :nth-child(4)) > .alfa-meta-badge { flex-basis: 50%; }
  .ed-prose .alfa-recipe-meta-row:has(> :nth-child(4)) > .alfa-meta-badge:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ed-prose .alfa-recipe-meta-row:has(> :nth-child(4)) > .alfa-meta-badge:nth-child(n + 3) { border-top: 1px solid var(--ed-line); }
}

/* Recipe sections: ordinary prose subheads (sans 700, 20px), no rule of their own. */
.ed-prose :is(.alfa-ing, .alfa-steps, .alfa-recipe) > h2 { margin-top: 1.75em; }
.ed-prose :is(.alfa-ing, .alfa-steps, .alfa-recipe) > h2 + * { margin-top: 0; }
.ed-prose .alfa-ing, .ed-prose div.alfa-steps { margin-top: 0; }

/* Ingredients */
.ed-prose :is(.alfa-ing > ul, ul.alfa-ingredients) {
  padding: 0;
  list-style: none;
  font-size: 0.94em;
  line-height: 1.45;
}
/* No rules between ingredients: two columns of plain lines from 740px, so rows never look ragged. */
.ed-prose :is(.alfa-ing > ul, ul.alfa-ingredients) {
  padding: 14px 0 4px;
}
.ed-prose :is(.alfa-ing > ul, ul.alfa-ingredients) > li {
  position: relative;
  margin: 0;
  padding: 0 0 10px 20px;
  break-inside: avoid;
}
.ed-prose :is(.alfa-ing > ul, ul.alfa-ingredients) > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ed-ink-3);
}
@media (min-width: 740px) {
  .ed-prose :is(.alfa-ing > ul, ul.alfa-ingredients) { columns: 2; column-gap: 32px; }
  .ed-prose :is(.alfa-ing > ul, ul.alfa-ingredients) > li { display: inline-block; width: 100%; }
}

/* Steps: large numerals in a hanging column */
.ed-prose :is(div.alfa-steps > ol, ol.alfa-steps) {
  padding: 0;
  list-style: none;
  counter-reset: ed-step;
}
.ed-prose :is(div.alfa-steps > ol, ol.alfa-steps) > li {
  position: relative;
  margin: 0;
  padding: 16px 0 16px 2.4rem;
  border-bottom: 1px solid var(--ed-line);
  counter-increment: ed-step;
}
@media (min-width: 740px) {
  .ed-prose :is(div.alfa-steps > ol, ol.alfa-steps) > li { padding-left: 3rem; }
}
.ed-prose :is(div.alfa-steps > ol, ol.alfa-steps) > li::before {
  content: counter(ed-step);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--ed-head);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ed-ink);
}
.ed-prose :is(div.alfa-steps > ol, ol.alfa-steps) > li:last-child { border-bottom: 0; }

/* Tip from the kitchen: opened by a 1px ink rule and a small sans label, text in the prose face on white. */
.ed-prose .alfa-tip {
  margin-block: 1.8em;
  padding-top: var(--ed-s3);
  border-top: 1px solid var(--ed-ink);
}
.ed-prose .alfa-tip > strong:first-child {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ed-ink);
}

.ed-prose .alfa-recipe-src {
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ed-ink-4);
}

/* Recipe video */
.ed-prose .alfa-recipe-video { margin-block: 0 1.8em; }
.ed-prose .alfa-recipe-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--ed-ink);
}

/* End of the text: the last block's own bottom margin would stay inside the body (the clearfix
   stops it collapsing), so the gap after the text is set only by what follows. After every
   block rule above, so it wins at equal specificity. */
.ed-prose > :last-child,
.ed-prose > :last-child > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ 9. Tags */

.ed-article__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ed-s3) var(--ed-s4);
  margin-top: var(--ed-s6);
  padding-top: var(--ed-s3);
  border-top: 1px solid var(--ed-line);
}
/* Topics: a row of small sans links, no chips. */
.ed-article__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--ed-s4);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-ui);
  font-weight: 500;
  line-height: 1.3;
}
.ed-article__tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ed-ink);
  text-decoration: underline;
  text-decoration-color: var(--ed-line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s var(--ed-ease), text-decoration-color 0.15s var(--ed-ease);
}
.ed-article__tag:hover { color: var(--ed-ink-3); text-decoration-color: currentColor; }
.ed-article__tags-label { flex: none; }
.ed-article__main > .ed-slot--article-end { margin-top: var(--ed-s6); }
/* One rule per break: when the comments follow the ad, their ink rule closes the ad. */
.ed-article__main > .ed-slot--article-end:has(+ .ed-comments) .ed-ad { border-bottom: 0; }
.ed-article__main > .ed-slot--article-end:has(.ed-ad) + .ed-comments { margin-top: var(--ed-s4); }

/* ------------------------------------------------------------------ 10. Comments */

/* Only a top rule: the ink rule of the next block ("Повеќе од …") closes the comments. */
.ed-comments {
  margin-top: var(--ed-s6);
  border-top: 1px solid var(--ed-ink);
}
.ed-comments__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ed-s3);
  min-height: 56px;
  padding: 10px 0;
  font-family: var(--ed-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ed-ink);
  list-style: none;
  cursor: pointer;
}
.ed-comments__summary::-webkit-details-marker { display: none; }
.ed-comments__summary:hover { color: var(--ed-ink-3); }
.ed-comments__summary:focus-visible { outline-offset: -2px; }
.ed-comments__label { display: inline-flex; align-items: center; gap: 10px; }
.ed-comments__chevron { transition: transform 0.2s var(--ed-ease); }
.ed-comments[open] .ed-comments__chevron { transform: rotate(180deg); }
.ed-comments__inner { padding: var(--ed-s2) 0 var(--ed-s8); }

.ed-comments__empty,
.ed-comments__closed {
  font-family: var(--ed-sans);
  font-size: 0.875rem;
  color: var(--ed-ink-3);
}
.ed-comments__list,
.ed-comments__list .children { margin: 0; padding: 0; list-style: none; }
.ed-comments__list .children { margin-left: var(--ed-s5); padding-left: var(--ed-s4); border-left: 1px solid var(--ed-line); }
.ed-comment { padding: var(--ed-s4) 0; border-bottom: 1px solid var(--ed-line); }
.ed-comment .children .ed-comment:last-child { border-bottom: 0; padding-bottom: 0; }
.ed-comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px var(--ed-s3);
  font-family: var(--ed-sans);
}
.ed-comment__author { font-size: 0.875rem; font-weight: 700; color: var(--ed-ink); }
.ed-comment__time { font-size: 0.75rem; color: var(--ed-ink-4); }
.ed-comment__time:hover { color: var(--ed-ink); text-decoration: underline; text-underline-offset: 2px; }
.ed-comment__pending {
  margin-top: 6px;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ed-ink-3);
}
.ed-comment__text {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ed-ink-2);
}
.ed-comment__text > * + * { margin-top: 0.8em; }
.ed-comment__text a { color: var(--ed-accent); text-decoration: underline; text-underline-offset: 2px; }
.ed-comment__reply { margin-top: 8px; font-family: var(--ed-sans); font-size: 0.75rem; font-weight: 700; }
.ed-comment__reply a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ed-ink-3); }
.ed-comment__reply a:hover { color: var(--ed-ink); text-decoration: underline; text-underline-offset: 2px; }

.ed-comments__respond { margin-top: var(--ed-s6); }
.ed-comments__title {
  font-family: var(--ed-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ed-ink);
}
.ed-comments__cancel { margin-left: var(--ed-s2); font-size: 0.75rem; font-weight: 600; }
.ed-comments__cancel a { color: var(--ed-accent); text-decoration: underline; text-underline-offset: 2px; }

.ed-form { display: flex; flex-wrap: wrap; gap: var(--ed-s4); margin-top: var(--ed-s3); }
.ed-form > * { flex: 1 1 100%; min-width: 0; margin: 0; }
.ed-form__note { font-family: var(--ed-sans); font-size: 0.75rem; line-height: 1.45; color: var(--ed-ink-4); }
.ed-form__field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ed-ink);
}
.ed-form__req { color: var(--ed-ink-3); }
.ed-form__textarea { min-height: 132px; resize: vertical; line-height: 1.45; }
@media (min-width: 740px) {
  .ed-form > .ed-form__field--half { flex-basis: calc(50% - var(--ed-s4) / 2); }
}
.ed-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ed-ink-3);
}
.ed-form__check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ed-ink); }
.ed-form__submit { display: flex; align-items: center; }
.ed-form__submit .ed-btn { min-height: 44px; padding-inline: 20px; }

/* ------------------------------------------------------------------ 11. More from the section, most read */

.ed-article-more { margin-top: var(--ed-s6); }
@media (min-width: 1024px) {
  .ed-article-more { margin-top: var(--ed-s8); }
}
.ed-article-more > * + * { margin-top: var(--ed-s6); }
@media (min-width: 1024px) {
  .ed-article-more > * + * { margin-top: var(--ed-s8); }
}
.ed-article-more__section { margin-top: 0; }

/* Phones: small image to the right of the headline, as in every list. */
@media (max-width: 739.98px) {
  .ed-article-more__grid .ed-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    column-gap: var(--ed-s3);
    align-items: start;
  }
  .ed-article-more__grid .ed-story .ed-media { grid-column: 2; grid-row: 1; }
  .ed-article-more__grid .ed-story .ed-story__body { grid-column: 1; grid-row: 1; }
  /* Small list headlines, the same size as the "Најчитано" list under them. */
  .ed-article-more__grid .ed-story__headline { font-size: var(--ed-fs-xs); line-height: 1.22; }
}

/* Most read: one column on phones, two from 740px (3 + 2). */
@media (min-width: 740px) {
  .ed-article-more__read .ed-ranked {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    column-gap: 0;
    position: relative;
  }
  /* One column rule for the full height of the list, even when the right column is shorter. */
  .ed-article-more__read .ed-ranked::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    border-left: 1px solid var(--ed-line-2);
    pointer-events: none;
  }
  .ed-article-more__read .ed-ranked > li { padding-right: var(--ed-col-pad); padding-bottom: 12px; }
  .ed-article-more__read .ed-ranked > li + li { margin-top: 0; }
  .ed-article-more__read .ed-ranked > li:nth-child(n + 4) {
    padding-left: var(--ed-col-pad);
    padding-right: 0;
  }
  .ed-article-more__read .ed-ranked > li:nth-child(4) { margin-top: 0; padding-top: 0; border-top: 0; }
  .ed-article-more__read .ed-ranked > li:nth-child(5) { border-top: 1px solid var(--ed-line); }
  .ed-article-more__read .ed-ranked__headline { font-size: var(--ed-fs-sm); line-height: 1.22; }
}

/* ------------------------------------------------------------------ 12. Print */

@media print {
  .ed-progress, .ed-byline__tools, .ed-comments, .ed-article-more, .ed-article__tags { display: none; }
  .ed-prose { font-size: 11pt; }
}

/* Source line under an article taken from other outlets */
.ed-prose .ed-sources { margin-top: 1.6em; padding-top: 12px; border-top: 1px solid var(--ed-line); font: 400 0.8125rem/1.5 var(--ed-sans); color: var(--ed-ink-4); }
.ed-prose .ed-sources span { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.6875rem; color: var(--ed-ink-3); }
.ed-prose .ed-sources a { color: var(--ed-ink-3); }

/* ------------------------------------------------------------------ 13. СЕДУМ ДЕНА: section identity */

/* Trail: the section (its logo when the identity module is there) › the sub-section, in the
   section's text colour. It is the article's kicker. */
.ed-article__trail { margin-bottom: var(--ed-s3); }
.ed-article__trail ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sd-c-text);
}
.ed-article__trail li { display: inline-flex; align-items: center; min-width: 0; }
.ed-article__trail-sep { padding-inline: 8px; font-weight: 400; color: var(--ed-ink-4); }
.ed-article__trail-link { display: inline-block; padding-block: 4px; margin-block: -4px; color: inherit; }
.ed-article__trail-link:not(.ed-article__trail-link--section) { font-weight: 600; }
.ed-article__trail-link:hover { color: var(--sd-c-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ed-article__trail-logo { display: inline-flex; align-items: center; height: 20px; color: var(--sd-c); }
.ed-article__trail-logo :is(svg, img) { display: block; height: 20px; width: auto; }
@media (max-width: 739.98px) {
  /* 40px hit boxes without moving the text. */
  .ed-article__trail-link { padding-block: 13px; margin-block: -13px; }
  .ed-article__trail-logo { height: 40px; margin-block: -10px; }
}

/* Legacy kicker (a story outside the nine sections keeps the old trail) in the section colour. */
.ed-article[data-sec] .ed-article__kicker { color: var(--sd-c-text); }

/* Breaking label and the newsroom's badge, just above the headline. */
.ed-article__flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: var(--ed-s3);
}
.ed-article__flags .sd-badge { margin: 0; }
.ed-article__breaking {
  display: inline-block;
  padding: 3px 7px 2px;
  font-family: var(--ed-sans);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ed-red);
  border-radius: 2px;
}

/* ------------------------------------------------------------------ 14. Per-section presentation */

/* Политика, Економија: sober, text first. The summary in the text face, quieter. */
.ed-article--sober .ed-article__dek {
  font-family: var(--ed-serif);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ed-ink-3);
}
@media (min-width: 740px) {
  .ed-article--sober .ed-article__dek { font-size: 1.1875rem; line-height: 1.5; }
}

/* Магазин: a friendlier, larger intro and an opening paragraph that reads a step up. */
.ed-article--friendly .ed-article__dek { font-size: 1.375rem; line-height: 1.32; color: var(--ed-ink-2); }
@media (min-width: 740px) {
  .ed-article--friendly .ed-article__dek { font-size: 1.625rem; line-height: 1.3; }
}
.ed-article--friendly .ed-article__body > p:first-child { font-size: 1.1em; line-height: 1.45; color: var(--ed-ink); }

/* Технологија, Култура: the lead takes the page width; landscape pictures settle at 16:9. */
@media (min-width: 740px) {
  .ed-article__lead--wide .ed-article__image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: 50% 40%;
  }
}

/* Score / fact strip (Спорт and any story that carries _sd_facts). */
/* Phones: one row per fact, label left, value right, so long values never break mid-word.
   From 740px: one column per fact, value under its label. */
.ed-article__strip {
  margin: var(--ed-s6) 0 0;
  border-top: 1px solid var(--ed-ink);
  border-bottom: 1px solid var(--ed-line);
}
.ed-article__strip-item {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: var(--ed-s3);
  min-width: 0;
  padding: 10px 0;
}
.ed-article__strip-item + .ed-article__strip-item { border-top: 1px solid var(--ed-line); }
@media (min-width: 740px) {
  .ed-article__strip { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
  .ed-article__strip-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 12px 12px 0;
  }
  .ed-article__strip-item + .ed-article__strip-item { padding-left: 12px; border-top: 0; border-left: 1px solid var(--ed-line); }
}
.ed-article__strip dt {
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-label);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-ink-4);
}
.ed-article__strip dd {
  margin: 0;
  font-family: var(--ed-head);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ed-ink);
  overflow-wrap: break-word;
}
@media (min-width: 740px) {
  .ed-article__strip dd { font-size: 1.5rem; }
}

/* Key points («Факти»): opened by the section's rule, plain lines with a small colour mark. */
.ed-article__points {
  margin-top: var(--ed-s6);
  padding-top: var(--ed-s3);
  border-top: 1px solid var(--ed-ink);
  border-bottom: 1px solid var(--ed-line);
}
.ed-article__points-list li:last-child { border-bottom: 0; }
.ed-article__strip + .ed-article__points { margin-top: var(--ed-s5); }
.ed-article__points-title {
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-label);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-ink);
}
.ed-article__points-list {
  margin: var(--ed-s2) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--ed-serif);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ed-ink);
}
@media (min-width: 740px) {
  .ed-article__points-list { font-size: 1.0625rem; }
}
.ed-article__points-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--ed-line);
  text-wrap: pretty;
}
.ed-article__points-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: calc(10px + 0.75em - 3px);
  width: 5px;
  height: 5px;
  background: var(--ed-ink-3);
}

/* ------------------------------------------------------------------ 15. Sources and the AI note */

.ed-article__trust {
  margin-top: var(--ed-s8);
  padding-top: var(--ed-s3);
  border-top: 1px solid var(--ed-line);
  font-family: var(--ed-sans);
}
.ed-article__trust-title {
  font-size: var(--ed-fs-label);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-ink-3);
}
.ed-article__sources {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ed-ink-4);
}
.ed-article__sources li { padding-block: 5px; }
.ed-article__source-name { font-weight: 700; color: var(--ed-ink-2); }
a.ed-article__source-name {
  text-decoration: underline;
  text-decoration-color: var(--ed-line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a.ed-article__source-name:hover { color: var(--ed-accent); text-decoration-color: currentColor; }
a.ed-article__source-name .ed-icon { display: inline-block; margin-left: 4px; vertical-align: -1px; color: var(--ed-ink-4); }
.ed-article__source-title::before { content: "— "; }
.ed-article__source-title { margin-left: 2px; }
.ed-article__source-date::before { content: "· "; }
.ed-article__source-date { margin-left: 2px; white-space: nowrap; }
.ed-article__attribution { font-size: 0.8125rem; line-height: 1.45; color: var(--ed-ink-4); }
.ed-article__ai {
  margin-top: var(--ed-s3);
  padding: 10px 0;
  border-block: 1px solid var(--ed-line);
  background: none;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ed-ink-2);
}
.ed-article__ai:first-child { margin-top: var(--ed-s1); }
/* Tags right after the sources: one hairline is enough. */
.ed-article__trust + .ed-article__tags { margin-top: var(--ed-s6); }

/* ------------------------------------------------------------------ 16. «Поврзано», more, bridge */

.ed-article__related {
  margin-top: var(--ed-s6);
  padding-top: var(--ed-s3);
  border-top: 1px solid var(--ed-ink);
}
.ed-article__related-title {
  margin-bottom: var(--ed-s3);
  font-family: var(--ed-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ed-ink);
}
.ed-article__related-list .ed-story__headline { font-size: var(--ed-fs-xs); line-height: 1.22; }

/* "Повеќе од <section>": the section's 3px rule opens the block, the title links to the front. */
.ed-article-more__section--sec { border-top: 2px solid var(--sd-c); padding-top: 11px; }
.ed-article-more__section--sec .ed-section-head__title a:hover { color: var(--sd-c-text); }

.ed-article-bridge { margin-top: var(--ed-s6); }
@media (min-width: 1024px) {
  .ed-article-bridge { margin-top: var(--ed-s8); }
}
.ed-article-bridge > .ed-slot { margin: 0; }

@media print {
  .ed-article__related, .ed-article-bridge, .ed-slot--bridge-inline { display: none; }
}

/* ------------------------------------------------------------------ 17. Pictures and the side column (2026-11-26) */

/* «Поврзано»: small pictures at the right of every row. */
.ed-article__related-list .ed-story--thumb { --ed-thumb: 88px; }
@media (min-width: 740px) {
  .ed-article__related-list .ed-story--thumb { --ed-thumb: 96px; }
}

/* Most read below the article: number, headline, a 64px square. */
.ed-article-more__ranked > li { align-items: start; }
.ed-article-more__ranked > li.has-media { grid-template-columns: 1.6rem minmax(0, 1fr) 64px; }
.ed-article-more__ranked > li::before { padding-top: 2px; }
.ed-article-more__ranked-media { width: 64px; }

/* Side column: hidden until 1150px, then sticky at the right of the text. The text column keeps
   its measure and its place in the middle; the byline's own tools step aside for the column's. */
.ed-article__side { display: none; }
@media (min-width: 1150px) {
  .ed-article__frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--ed-measure) + 2 * var(--ed-gutter))) minmax(0, 1fr);
    align-items: start;
  }
  .ed-article__frame > .ed-article__main { grid-column: 2; width: 100%; }
  /* The byline keeps its tools (text size, share, save: right after the byline for the keyboard);
     the column's own copy steps in once the byline has scrolled away (article.js, .is-away). */
  .ed-article__side {
    grid-column: 3;
    display: block;
    position: sticky;
    top: calc(var(--ed-sticky-top, 64px) + 16px);
    box-sizing: border-box;
    width: 100%;
    max-width: 272px;
    max-height: calc(100vh - var(--ed-sticky-top, 64px) - 32px);
    margin-top: var(--ed-s5);
    padding-left: var(--ed-s5);
    overflow: hidden;
  }
  .ed-article__side-tools {
    display: flex;
    align-items: center;
    gap: var(--ed-s2);
    padding-bottom: var(--ed-s3);
    border-bottom: 1px solid var(--ed-line);
  }
  .ed-article__side-tools .ed-share__menu { left: 0; right: auto; }
  .ed-article__side-more { margin-top: var(--ed-s5); padding-top: 10px; border-top: 2px solid var(--sd-c, var(--ed-ink)); }
  .ed-article__side-title { margin-bottom: var(--ed-s3); }
  .ed-article__side-title a { color: var(--ed-ink); }
  .ed-article__side-title a:hover { color: var(--sd-c-text, var(--ed-ink-3)); }
  .ed-article__side-list .ed-story--thumb { --ed-thumb: 56px; }
  .ed-article__side-list .ed-story__headline { font-size: 0.9375rem; line-height: 1.25; }
}
/* Short windows: the tools alone, never a column that has to scroll. */
@media (min-width: 1150px) and (max-height: 760px) {
  .ed-article__side-more { display: none; }
}
@media print {
  .ed-article__side { display: none; }
}

/* ================================================================== Round 4 (owner, 2026-11-26): washes and motion */

.ed-article,
.ed-article-more,
.ed-article-bridge {
  --fx-wash: var(--sd-c-wash, color-mix(in srgb, var(--sd-c) 4.5%, #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);
}

/* Header: a thin band of the section's paper wash behind the trail, headline and summary, full
   page width (border-image outset: it never widens the page), fading into white before the lead.
   It reaches up through the article's top padding to the header's hairline. */
.ed-article[data-sec] > .ed-article__head {
  padding-bottom: var(--ed-s5);
  border-image: linear-gradient(to bottom, var(--fx-wash) 0, var(--fx-wash) 62%, var(--ed-bg) 100%) 0 fill / 0 / var(--ed-s4) 100vmax 0;
}
@media (min-width: 740px) {
  .ed-article[data-sec] > .ed-article__head {
    padding-bottom: var(--ed-s6);
    border-image-outset: var(--ed-s6) 100vmax 0;
  }
}
.ed-article[data-sec] > .ed-article__head + .ed-article__lead { margin-top: 0; }

/* Lead picture with parallax: the frame keeps the picture's proportions, the layer inside fills it
   and is 16px taller at each end only on desktops with motion on (core.js moves it). */
.ed-article__image.has-plx {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ar, 3 / 2);
}
.ed-article__plx { position: absolute; inset: 0; }
.ed-article__image.has-plx img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
@media (min-width: 740px) {
  .ed-article__lead--wide .ed-article__image.has-plx { aspect-ratio: 16 / 9; }
  .ed-article__lead--wide .ed-article__image.has-plx img { aspect-ratio: auto; }
}
/* The overscan is there from the first paint on desktops (not switched on with html.js-motion:
   changing the inset then was a layout shift of 0.003 to 0.006 on every article). Without motion it
   only trims 16px of a cover-fitted picture. Final check 2026-11-26. */
@media (min-width: 1024px) {
  .ed-article__plx { inset: -16px 0; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  html.js-motion .ed-article__plx { will-change: transform; }
}
@media print {
  .ed-article__image.has-plx { aspect-ratio: auto; overflow: visible; }
  .ed-article__plx { position: static; }
  .ed-article__image.has-plx img { height: auto; }
  .ed-article[data-sec] > .ed-article__head { border-image: none; padding-bottom: 0; }
}

/* Key points, sources and the AI note: panels on the section's wash with its 3px left rule;
   the inner hairlines take a hint of the colour. Text size and measure unchanged. */
.ed-article__points,
.ed-article__trust {
  padding: var(--ed-s4) var(--ed-s4) var(--ed-s3) var(--ed-s5);
  background: var(--fx-wash);
  border-top: 0;
  border-bottom: 0;
  border-left: 3px solid var(--sd-c);
  border-radius: 0 3px 3px 0;
}
.ed-article__points-list li { border-bottom-color: var(--fx-rule); }
.ed-article__points-list li::before { background: var(--sd-c); }
.ed-article__trust { padding-bottom: var(--ed-s4); }
.ed-article__trust .ed-article__ai {
  padding: var(--ed-s3) 0 0;
  border-bottom: 0;
  border-top-color: var(--fx-rule);
}
.ed-article__trust .ed-article__ai:first-child { padding-top: 0; border-top: 0; }
@media print {
  .ed-article__points,
  .ed-article__trust { background: none; padding-inline: var(--ed-s3) 0; }
}

/* Links: a quick colour and underline transition. */
.ed-article-more .ed-story__headline a,
.ed-article-more .ed-ranked__headline a,
.ed-article__related .ed-story__headline 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-article-more .ed-story__headline a:hover,
.ed-article-more .ed-ranked__headline a:hover,
.ed-article__related .ed-story__headline a:hover { text-decoration-color: currentColor; }

/* Pictures below the text: a slow 1.03 scale while the story is hovered (desktop pointers). */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ed-article-more .ed-media > img,
  .ed-article__related .ed-media > img { transition: transform 0.5s var(--fx-ease), opacity 0.2s var(--ed-ease); }
  .ed-article-more .ed-story:hover .ed-media > img,
  .ed-article-more .ed-ranked > li:hover .ed-media > img,
  .ed-article__related .ed-story:hover .ed-media > img { transform: scale(1.03); }
}

/* ================================================================== Round 5 (owner, 2026-11-26): final polish
 * The head on the section's page-top gradient with a drifting glow (second depth over the lead's
 * parallax), refined prose, ruled panels in the section colour, share and save with pressed and
 * copied states, a gradient reading bar (scroll-driven where supported, else article.js), the next
 * story at the end, hovers that draw an underline. Off under prefers-reduced-motion and without JS. */

.ed-article,
.ed-article-more,
.ed-article-bridge,
.ed-progress {
  --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) 10%, transparent);
  --fx-panel-end: var(--ed-bg);
}
@supports (color: color-mix(in oklch, red, blue)) {
  .ed-article,
  .ed-article-more,
  .ed-article-bridge,
  .ed-progress {
    --fx-wash: var(--sd-c-wash, color-mix(in oklch, var(--sd-c) 4.5%, #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-glow: color-mix(in oklch, var(--sd-c-2, var(--sd-c)) 7%, transparent);
    --fx-panel-end: color-mix(in oklch, var(--fx-wash) 35%, #fff);
  }
}
.ed-article ::selection,
.ed-article-more ::selection { background: var(--fx-sel); color: var(--ed-ink); }
.ed-article :focus-visible,
.ed-article-more :focus-visible { outline-color: var(--sd-c-text); }

/* ------------------------------------------------------------------ Head band: gradient and glow */

.ed-article[data-sec] > .ed-article__head {
  position: relative;
  isolation: isolate;
  border-image: none;
}
.ed-article__headbg { display: none; }
/* Full page width (the article is a size container: 100cqw is the page without the scrollbar),
   from the header's edge down to the lead. */
.ed-article[data-sec] .ed-article__headbg {
  display: block;
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--ed-s4));
  bottom: 0;
  left: calc(50% - 50cqw);
  width: 100cqw;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--ed-bg);
  background-image: var(--sd-grad-top, linear-gradient(to bottom, var(--fx-wash) 0, var(--fx-wash) 55%, var(--ed-bg) 100%));
}
.ed-article__glow {
  position: absolute;
  top: -48px;
  right: 0;
  width: min(62%, 820px);
  height: calc(100% + 96px);
  /* The glow fades out well above the band's clipped bottom edge (which the drift can move up to
     48px), so no hard line ever shows where the band meets the lead (final check 2026-11-26). */
  background: radial-gradient(100% 50% at 100% 50%, var(--fx-glow), transparent);
  will-change: transform;
}
@media (min-width: 740px) {
  .ed-article[data-sec] .ed-article__headbg { top: calc(-1 * var(--ed-s6)); }
}
/* The header already ends in wash-2 with its own corner glow: the band continues from that wash
   without a second corner peak (it showed as a seam beside the header on wide screens); its own
   glow sits mid-right instead. Final check 2026-11-26. */
@supports (color: color-mix(in oklch, red 50%, blue)) {
  .ed-article[data-sec] .ed-article__headbg {
    background-image: linear-gradient(180deg, var(--sd-c-wash-2, var(--fx-wash)) 0%, var(--fx-wash) 45%, color-mix(in oklch, var(--fx-wash) 40%, var(--ed-bg)) 75%, var(--ed-bg) 100%);
  }
}
@media print {
  .ed-article__headbg { display: none; }
}

/* Trail: section words take the section colour; the separator is a quiet mark. */
.ed-article__trail-link { transition: color 0.18s var(--fx-ease); }

/* ------------------------------------------------------------------ Lead: caption reveal */

.ed-article__caption { position: relative; padding-left: 12px; }
.ed-article__caption::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 2px;
  background: var(--sd-c, var(--ed-ink));
  transform-origin: 50% 0;
}
@media (max-width: 739.98px) {
  .ed-article__lead .ed-article__caption { padding-left: calc(var(--ed-gutter) + 12px); }
  .ed-article__lead .ed-article__caption::before { left: var(--ed-gutter); }
}
@media (prefers-reduced-motion: no-preference) {
  html.js-motion .ed-article__caption[data-reveal]:not(.is-in)::before { transform: scaleY(0); }
  html.js-motion .ed-article__caption[data-reveal]:not(.is-done)::before { transition: transform 0.42s var(--fx-ease) 0.16s; }
}

/* ------------------------------------------------------------------ Reading bar: gradient, timeline */

.ed-progress__bar { background: linear-gradient(90deg, var(--sd-c), var(--sd-c-2, var(--sd-c))); }
/* Where the browser drives animations from the scroll, the bar follows the text by itself
   (article.js then adds .is-timeline and stops its own listener: never both). The range: from the
   text's top at mid-screen to its end at mid-screen, as the script measures it. */
@supports (animation-timeline: view()) {
  html:has(.ed-progress.is-timeline) { timeline-scope: --fx-read; }
  html:has(.ed-progress.is-timeline) [data-aed-progress] { view-timeline: --fx-read block; }
  .ed-progress.is-timeline .ed-progress__bar {
    opacity: 1;
    transition: none;
    animation: fx-read linear both;
    animation-timeline: --fx-read;
    animation-range: cover 50vh cover calc(100% - 50vh);
  }
}
@keyframes fx-read {
  0% { transform: scaleX(0); opacity: 0; }
  0.5% { opacity: 1; }
  99.5% { opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ------------------------------------------------------------------ Prose: refined, drop-cap free */

.ed-article__body { hanging-punctuation: first allow-end last; }
/* The opening paragraph reads a step up (Магазин keeps its own larger one). */
.ed-article:not(.ed-article--friendly) .ed-article__body > p:first-child { font-size: 1.0625em; line-height: 1.48; color: var(--ed-ink); }
.ed-article .ed-prose li::marker { color: var(--sd-c-text, var(--ed-ink-4)); }
.ed-article .ed-prose ul > li::marker { font-size: 0.9em; }
.ed-article .ed-prose ol > li::marker { color: var(--sd-c-text, var(--ed-ink)); }
.ed-article .ed-prose h2 { scroll-margin-top: calc(var(--ed-sticky-top, 64px) + 16px); }

/* Quotes: the headline face, a rule in the section's gradient. */
.ed-article .ed-prose blockquote:not(.wp-block-pullquote blockquote) {
  position: relative;
  margin-block: 1.7em;
  padding: 0.15em 0 0.15em 1.25em;
  border-left: 0;
  font-family: var(--ed-head);
  font-size: 1.12em;
  font-weight: 500;
  line-height: 1.42;
  color: var(--ed-ink);
}
.ed-article .ed-prose blockquote:not(.wp-block-pullquote blockquote)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  bottom: 0.3em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--sd-c, var(--ed-ink)), var(--sd-c-2, var(--sd-c, var(--ed-ink))));
}
.ed-article .ed-prose .wp-block-pullquote { border-top: 2px solid var(--sd-c, var(--ed-ink)); border-bottom-color: var(--fx-rule); }
.ed-article .ed-prose hr { border-top-color: var(--sd-c, var(--ed-ink)); }

/* ------------------------------------------------------------------ Ruled panels: points, sources */

/* An opening rule of the section colour (drawn in on reveal), the wash fading to white, hairlines
   in the section's line. No side bar, no radius: rules, as everywhere else. */
.ed-article__points,
.ed-article__trust {
  position: relative;
  padding: var(--ed-s4) var(--ed-s4) var(--ed-s4);
  border-left: 0;
  border-top: 0;
  border-bottom: 1px solid var(--fx-rule);
  border-radius: 0;
  background: linear-gradient(180deg, var(--fx-wash) 0, var(--fx-panel-end) 100%);
}
.ed-article__points::before,
.ed-article__trust::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sd-c, var(--ed-ink));
  transform-origin: 0 50%;
  pointer-events: none;
}
@media (min-width: 740px) {
  .ed-article__points,
  .ed-article__trust { padding-inline: var(--ed-s5); }
}
@media (prefers-reduced-motion: no-preference) {
  html.js-motion :is(.ed-article__points, .ed-article__trust)[data-reveal]:not(.is-in)::before { transform: scaleX(0); }
  html.js-motion :is(.ed-article__points, .ed-article__trust)[data-reveal]:not(.is-done)::before { transition: transform 0.52s var(--fx-ease) 0.1s; }
}
.ed-article__points-title,
.ed-article__trust-title { color: var(--sd-c-text, var(--ed-ink)); }

/* Key points: numbered 01, 02... in the section's text colour, ruled in its line. */
.ed-article__points-list { counter-reset: fx-pt; }
.ed-article__points-list li {
  padding: 11px 0 11px 34px;
  border-bottom-color: var(--fx-rule);
  counter-increment: fx-pt;
}
.ed-article__points-list li::before {
  content: counter(fx-pt, decimal-leading-zero);
  left: 0;
  top: 13px;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--sd-c-text, var(--ed-ink-3));
}
@media (min-width: 740px) {
  .ed-article__points-list li::before { top: 14px; }
}

/* Sources and the AI note */
.ed-article__sources li + li { border-top: 1px solid var(--fx-rule); }
.ed-article__sources li { padding-block: 7px; }
a.ed-article__source-name { transition: color 0.18s var(--fx-ease), text-decoration-color 0.18s var(--fx-ease); }
a.ed-article__source-name:hover { color: var(--sd-c-text, var(--ed-accent)); }
.ed-article__trust .ed-article__ai { border-top-color: var(--fx-rule); color: var(--ed-ink-2); }

/* Tags: links in the section's colour on hover. */
.ed-article__tag { transition: color 0.18s var(--fx-ease), text-decoration-color 0.18s var(--fx-ease); }
.ed-article__tag:hover { color: var(--sd-c-text, var(--ed-ink-3)); text-decoration-color: currentColor; }

/* ------------------------------------------------------------------ Share and save: states */

.ed-share__btn,
.ed-byline__tools .ed-iconbtn {
  transition: background-color 0.18s var(--fx-ease), border-color 0.18s var(--fx-ease), color 0.18s var(--fx-ease), transform 0.12s var(--fx-ease);
}
.ed-share__btn:hover,
.ed-byline__tools .ed-iconbtn:hover { border-color: var(--sd-c, var(--ed-ink)); color: var(--sd-c-text, var(--ed-ink)); background: var(--fx-wash, var(--ed-bg-2)); }
.ed-share__btn:active,
.ed-byline__tools .ed-iconbtn:active { transform: scale(0.95); }
.ed-share__btn[aria-expanded="true"] { border-color: var(--sd-c, var(--ed-ink)); color: var(--sd-c-text, var(--ed-ink)); background: var(--fx-wash, var(--ed-bg-2)); }
.ed-share__btn.is-copied { border-color: var(--sd-c, var(--ed-ink)); background: var(--sd-c, var(--ed-ink)); color: var(--sd-on, #fff); }
.ed-article .ed-byline__tools .ed-iconbtn:is(.is-on, [aria-pressed="true"]) { border-color: var(--sd-c, var(--ed-ink)); background: var(--sd-c, var(--ed-ink)); color: var(--sd-on, #fff); }
@media (pointer: coarse) {
  .ed-byline__tools .ed-iconbtn { width: 44px; height: 44px; }
  .ed-share__btn { min-height: 44px; }
}
.ed-share__menu {
  border-color: var(--fx-rule);
  border-top: 2px solid var(--sd-c, var(--ed-ink));
  box-shadow: 0 10px 28px -16px rgb(0 0 0 / 0.3);
}
@media (prefers-reduced-motion: no-preference) {
  .ed-share__menu:not([hidden]) { animation: fx-pop 0.2s var(--fx-ease) both; }
}
@keyframes fx-pop {
  from { opacity: 0; transform: translate3d(0, -6px, 0); }
  to { opacity: 1; transform: none; }
}
.ed-share__item { min-height: 44px; transition: background-color 0.18s var(--fx-ease), color 0.18s var(--fx-ease); }
.ed-share__item:hover,
.ed-share__item:focus-visible { background: var(--fx-wash, var(--ed-bg-2)); }
.ed-share__item:hover .ed-icon { color: var(--sd-c-text, var(--ed-ink)); }
.ed-share__item:active { background: var(--fx-rule); }

/* ------------------------------------------------------------------ Next story */

.ed-article__next { margin-top: var(--ed-s8); }
.ed-article__next-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "label" "body";
  column-gap: var(--ed-s4);
  padding: var(--ed-s3) 0 var(--ed-s4);
  border-top: 2px solid var(--sd-c, var(--ed-ink));
  border-bottom: 1px solid var(--fx-rule);
  color: var(--ed-ink);
}
.ed-article__next.has-media .ed-article__next-link {
  grid-template-columns: minmax(0, 1fr) 112px;
  grid-template-areas: "label label" "body media";
}
.ed-article__next-label {
  grid-area: label;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--ed-s3);
  font-family: var(--ed-sans);
  font-size: var(--ed-fs-label);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sd-c-text, var(--ed-ink));
}
.ed-article__next-label .ed-icon { transition: transform 0.18s var(--fx-ease); }
.ed-article__next-body { grid-area: body; min-width: 0; }
.ed-article__next-title {
  display: block;
  font-family: var(--ed-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}
.ed-article__next-line {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.18s var(--fx-ease);
}
.ed-article__next-dek {
  display: block;
  margin-top: 6px;
  font-family: var(--ed-serif);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ed-ink-3);
}
.ed-article__next-meta {
  display: block;
  margin-top: 6px;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  color: var(--ed-ink-4);
}
.ed-article__next-media { grid-area: media; align-self: start; }
.ed-article__next-link:hover .ed-article__next-line,
.ed-article__next-link:focus-visible .ed-article__next-line { background-size: 100% 1px; }
.ed-article__next-link:hover .ed-article__next-label .ed-icon { transform: translateX(3px); }
.ed-article__next-link:active { opacity: 0.85; }
@media (max-width: 739.98px) {
  .ed-article__next-dek { display: none; }
}
@media (min-width: 740px) {
  .ed-article__next.has-media .ed-article__next-link { grid-template-columns: minmax(0, 1fr) 200px; column-gap: var(--ed-s6); }
  .ed-article__next-title { font-size: 1.5rem; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ed-article__next-media > img { transition: transform 0.42s var(--fx-ease), opacity 0.36s var(--fx-ease); }
  .ed-article__next-link:hover .ed-article__next-media > img { transform: scale(1.03); }
}
@media print {
  .ed-article__next { display: none; }
}

/* ------------------------------------------------------------------ Hovers below the text */

/* Headlines: an underline that draws in from the left (replaces the colour-only fade). */
.ed-article-more .ed-story__headline a,
.ed-article-more .ed-ranked__headline a,
.ed-article__related .ed-story__headline a,
.ed-article__side .ed-story__headline 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-article-more .ed-story__headline a:is(:hover, :focus-visible),
.ed-article-more .ed-story:has(.ed-media:hover) .ed-story__headline a,
.ed-article-more .ed-ranked__headline a:is(:hover, :focus-visible),
.ed-article-more .ed-ranked > li:has(.ed-media:hover) .ed-ranked__headline a,
.ed-article__related .ed-story__headline a:is(:hover, :focus-visible),
.ed-article__related .ed-story:has(.ed-media:hover) .ed-story__headline a,
.ed-article__side .ed-story__headline a:is(:hover, :focus-visible),
.ed-article__side .ed-story:has(.ed-media:hover) .ed-story__headline a { background-size: 100% 1px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ed-article__side .ed-media > img { transition: transform 0.42s var(--fx-ease), opacity 0.36s var(--fx-ease); }
  .ed-article__side .ed-story:hover .ed-media > img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .ed-article-more :is(.ed-story__headline, .ed-ranked__headline) a,
  .ed-article__related .ed-story__headline a,
  .ed-article__side .ed-story__headline a,
  .ed-article__next-line { transition: none; }
}
.ed-article-more__section--sec { border-top-width: 2px; }

/* ------------------------------------------------------------------ Pictures: decode fade, reveal wipe */

.ed-article-more .ed-media > img.is-loading,
.ed-article__related .ed-media > img.is-loading,
.ed-article__next .ed-media > img.is-loading,
.ed-prose img.is-loading { opacity: 0; }
.ed-article-more .ed-media > img.is-loaded,
.ed-article__related .ed-media > img.is-loaded,
.ed-article__next .ed-media > img.is-loaded,
.ed-prose img.is-loaded { transition: opacity 0.36s var(--fx-ease), transform 0.42s var(--fx-ease); }

@media (prefers-reduced-motion: no-preference) {
  html.js-motion :is(.ed-article-more, .ed-article__related, .ed-article__next)[data-reveal]:not(.is-in) .ed-media,
  html.js-motion .ed-article-more [data-reveal]:not(.is-in) .ed-media { clip-path: inset(0 100% 0 0); }
  html.js-motion :is(.ed-article-more, .ed-article__related, .ed-article__next)[data-reveal]:not(.is-in) .ed-media > img,
  html.js-motion .ed-article-more [data-reveal]:not(.is-in) .ed-media > img { transform: scale(1.04); }
  html.js-motion :is(.ed-article-more, .ed-article__related, .ed-article__next)[data-reveal]:not(.is-done) .ed-media,
  html.js-motion .ed-article-more [data-reveal]:not(.is-done) .ed-media {
    transition: clip-path 0.52s var(--fx-ease) calc(min(var(--i, 0), 6) * 60ms + 80ms);
  }
  html.js-motion :is(.ed-article-more, .ed-article__related, .ed-article__next)[data-reveal]:not(.is-done) .ed-media > img,
  html.js-motion .ed-article-more [data-reveal]:not(.is-done) .ed-media > img {
    transition: transform 0.52s var(--fx-ease) calc(min(var(--i, 0), 6) * 60ms + 80ms), opacity 0.36s var(--fx-ease);
  }
  /* Ranked numbers slide 6px after their row. */
  html.js-motion .ed-article-more__ranked > li[data-reveal]:not(.is-in)::before { transform: translate3d(-6px, 0, 0); opacity: 0; }
  html.js-motion .ed-article-more__ranked > li[data-reveal]:not(.is-done)::before {
    transition: transform 0.42s var(--fx-ease), opacity 0.42s var(--fx-ease);
    transition-delay: calc(min(var(--i, 0), 6) * 60ms + 120ms);
  }
}

/* Crumbs: the current page (plain text) sits on the same line as the 32px links. */
.ed-article__head .ed-breadcrumbs ol { align-items: center; }

/* ================================================================== Round 6 (UX audit, 2026-11-26) */

/* Tools after the text (share, save): where the reader finishes, on screens without the side
   column. A quiet row ruled above, like the byline. */
.ed-article__end-tools {
  margin-top: var(--ed-s5);
  padding-top: var(--ed-s3);
  border-top: 1px solid var(--ed-line);
}
@media (min-width: 1150px) {
  .ed-article__frame:has(> .ed-article__side) .ed-article__end-tools { display: none; }
}

/* Side column tools: hidden while the byline's own tools are on screen (article.js adds .is-away
   and makes them inert), so the two rows never stand side by side; without JavaScript both show. */
@media (min-width: 1150px) {
  .ed-article__side-tools.is-away { opacity: 0; transform: translate3d(0, -6px, 0); pointer-events: none; }
}
@media (min-width: 1150px) and (prefers-reduced-motion: no-preference) {
  .ed-article__side-tools { transition: opacity 0.24s var(--fx-ease), transform 0.24s var(--fx-ease); }
}

/* Phones: author and date at the left, the tools as icons at the right, on one row, so the text
   starts higher. The share label stays for screen readers. */
@media (max-width: 739.98px) {
  .ed-byline { flex-wrap: nowrap; gap: var(--ed-s2); padding-block: var(--ed-s2); }
  .ed-byline > .ed-byline__text { flex: 1 1 0; }
  .ed-byline > .ed-byline__tools { gap: 6px; }
  .ed-byline > .ed-byline__tools .ed-ts { margin-right: 0; }
  .ed-byline > .ed-byline__tools .ed-share__btn { width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .ed-byline > .ed-byline__tools .ed-share__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .ed-byline__meta > * { white-space: normal; }
  .ed-byline__meta time { white-space: nowrap; }
}

/* Touch: every control in the article tools and every source link is at least 44px tall. */
@media (pointer: coarse) {
  .ed-article .ed-byline__tools .ed-ts button { min-width: 44px; height: 44px; }
  .ed-article__sources li { padding-block: 0; }
  a.ed-article__source-name { display: inline-flex; align-items: center; min-height: 44px; }
  /* Topics, the section trail and the author link: 44px hit boxes (the trail and author keep
     their place, the extra height is padding cancelled by margin). */
  .ed-article__tag { min-height: 44px; }
  .ed-article__trail-link { padding-block: 15px; margin-block: -15px; }
  .ed-byline__author a { padding-block: 12px; }
}

/* «Повеќе од»: the side column's newest stories stand in the grid where that column is hidden
   (parts/article/more.php marks each card .is-narrow and/or .is-wide). */
.ed-article-more__item:not(.is-narrow) { display: none; }
@media (min-width: 1150px) and (min-height: 760.02px) {
  .ed-article-more__item:not(.is-narrow) { display: block; }
  .ed-article-more__item:not(.is-wide) { display: none; }
}

/* A video in the text: its own title under the player, on the page colour. */
.ed-prose .ed-prose__video:has(> figcaption) { background: none; }
.ed-prose .ed-prose__video > iframe { background: var(--ed-ink); }
.ed-prose .ed-prose__video-title {
  margin-top: 8px;
  font-family: var(--ed-sans);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ed-ink-3);
}

/* Screen-reader status of the text size (article.js). */
.ed-article-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ================================================================== Round 7 (owner, 2026-11-26): under the section masthead */

/* A story of a section opens with the section's masthead (parts/header.php, section header mode);
   the head then has no trail (parts/article/header.php adds .ed-article__head--mast). The masthead
   and the head read as one band: the masthead keeps the header's wash-2 settling to the plain wash at
   its rule, the head continues from that wash and fades to white before the lead. The headline sits
   a short step under the masthead's rule. */
.ed-article:has(> .ed-article__head--mast) { --ed-mast-gap: var(--ed-s5); padding-top: var(--ed-mast-gap); }
@media (min-width: 740px) {
  .ed-article:has(> .ed-article__head--mast) { --ed-mast-gap: var(--ed-s8); }
}
.ed-article[data-sec] > .ed-article__head--mast .ed-article__headbg {
  top: calc(-1 * var(--ed-mast-gap, var(--ed-s6)));
  background-image: linear-gradient(180deg, var(--sd-c-wash, var(--fx-wash)) 0%, var(--sd-c-wash, var(--fx-wash)) 40%, var(--ed-bg) 100%);
}
@supports (color: color-mix(in oklch, red 50%, blue)) {
  .ed-article[data-sec] > .ed-article__head--mast .ed-article__headbg {
    background-image: linear-gradient(180deg, var(--sd-c-wash, var(--fx-wash)) 0%, var(--sd-c-wash, var(--fx-wash)) 35%, color-mix(in oklch, var(--sd-c-wash, var(--fx-wash)) 40%, var(--ed-bg)) 72%, var(--ed-bg) 100%);
  }
}
/* The story masthead ends in the plain wash instead of white, so the head continues it (scoped to
   the story pages that load this file; the section fronts keep their own fade). */
body.ed-hmode-section .ed-smast--story {
  background: linear-gradient(180deg, var(--sd-c-wash-2, var(--ed-bg)) 0%, var(--sd-c-wash, var(--ed-bg)) 100%);
}
@supports (color: color-mix(in oklch, red 50%, blue)) {
  body.ed-hmode-section .ed-smast--story {
    background:
      radial-gradient(48% 160% at 100% 0%, color-mix(in oklch, var(--sd-c-2, var(--sd-c)) 7%, transparent) 0%, transparent 72%),
      linear-gradient(180deg, var(--sd-c-wash-2, var(--ed-bg)) 0%, var(--sd-c-wash, var(--ed-bg)) 100%);
  }
}
/* The breaking label and the newsroom badge are the head's first line now: a little less air under them. */
.ed-article__head--mast .ed-article__flags { margin-bottom: var(--ed-s2); }

/* Phones: the headline at 28/33 and a shorter band, so the text starts higher on the first screen. */
@media (max-width: 739.98px) {
  .ed-article__title { font-size: 1.75rem; line-height: 1.18; }
  .ed-article[data-sec] > .ed-article__head { padding-bottom: var(--ed-s4); }
  /* Beside the three text-size steps the date and hour may break onto two lines instead of being cut. */
  .ed-byline > .ed-byline__text { min-width: 0; }
  .ed-byline__meta time { white-space: normal; }
}

/* Save: a visible «Зачувај» / «Зачувано» from 740px in the share button's type (saved.js swaps the
   label); on phones an icon, the label read aloud. */
.ed-byline__tools .ed-iconbtn--save { gap: 6px; }
.ed-iconbtn--save .ed-save__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
@media (min-width: 740px) {
  .ed-byline__tools .ed-iconbtn--save { display: inline-flex; align-items: center; width: auto; min-width: 40px; padding-inline: 14px 16px; border-radius: var(--ed-radius); }
  .ed-iconbtn--save .ed-save__label {
    position: static; width: auto; height: auto; overflow: visible; clip-path: none;
    font-family: var(--ed-sans); font-size: 0.75rem; font-weight: 700; line-height: 1; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  }
}
@media (min-width: 740px) and (pointer: coarse) {
  .ed-byline__tools .ed-iconbtn--save { width: auto; min-width: 44px; }
}

/* ================================================================== Round 8 (owner, 2026-11-26): the head as wide as the picture

   The headline stood in the 600px text column over a 945px picture, on three or four short lines.
   From 1000px the head takes the picture's width and its left edge, and the headline grows with
   the window (42px at 1024px, 50px from 1440px) and breaks into fewer, longer lines; the summary
   keeps a readable line. Технологија and Култура open on a page-wide picture: the head follows it.
   A portrait picture is narrow and centred: there the head stays in the text column. Phones and
   tablets are as they were. */
@media (min-width: 1000px) {
  .ed-article > .ed-article__head.ed-wrap--narrow { max-width: calc(945px + 2 * var(--ed-gutter)); }
  .ed-article:has(> .ed-article__lead--wide) > .ed-article__head.ed-wrap--narrow { max-width: calc(var(--ed-max) + 2 * var(--ed-gutter)); }
  .ed-article > .ed-article__head .ed-article__title {
    font-size: clamp(2.625rem, 1.5rem + 1.8vw, 3.125rem);
    line-height: 1.06;
    letter-spacing: -0.014em;
  }
  .ed-article > .ed-article__head .ed-article__title--long {
    font-size: clamp(2.375rem, 1.45rem + 1.4vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
  }
  .ed-article > .ed-article__head .ed-article__dek { max-width: 46rem; }
  .ed-article > .ed-article__head .ed-recipe__quick { max-width: 46rem; }

  .ed-article:has(> .ed-article__lead--portrait) > .ed-article__head.ed-wrap--narrow { max-width: calc(var(--ed-measure) + 2 * var(--ed-gutter)); }
  .ed-article:has(> .ed-article__lead--portrait) > .ed-article__head .ed-article__title { font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.005em; }
}
