/* ==========================================================================
   orderdm.ai: guides (/sr/vodic/ and /guides/), editorial layout
   --------------------------------------------------------------------------
   Loaded after style.css on the guide pages only. The site header, footer,
   buttons and container stay in style.css; everything inside <main class="ed">
   is set here. The English pages are built from the Serbian ones, so a class
   used here exists on both.

   Layout   phone: one column (max 680px).
            1024+: sticky contents rail on the left of the text.
            1240+: a third column on the right for source notes; wide figures
            (templates, comparison table) run into it.
   One loud element: the templates are sent-message bubbles whose gradient is
   fixed to the screen, so they shift indigo to pink as you scroll, like a real
   inbox. Everything else is type, hairlines and space. Controls (copy, ticks,
   FAQ marks) sit on the LEFT: the chat button owns the right edge.

    1. Tokens and reading text      10. Source notes (margin, 1240+)
    2. Grid                         11. Templates: pull quote, rules, thread
    3. Breadcrumb                   12. Comparison table
    4. Article head                 13. Mistakes, checklist
    5. Contents rail, progress      14. FAQ
    6. Sections and flow            15. Closing call, read next
    7. Definition rows, gloss       16. Hub (/sr/vodic/, /guides/)
    8. Notes, verdicts              17. Wide figures and adjacency (last)
    9. Steps, lists, menu paths
   ========================================================================== */


/* ----- 1. Tokens and reading text ------------------------------------ */
.ed {
  --ink: #0B0A12;
  --panel: #13111C;
  --head: #ECEAF2;
  --body: #D3CEDB;
  --muted: #A39BB1;             /* 6.9:1 on --ink; the site's #7C7488 fails AA, never for text */
  --rule: rgba(255, 255, 255, 0.09);
  --rule-2: rgba(255, 255, 255, 0.16);
  --pink: #F0659B;
  --pink-2: #FF8DB8;
  --teal: #2DC6B0;
  --dm: linear-gradient(180deg, #4C4FC0 0%, #8E2591 52%, #B8235F 100%);
  --line: linear-gradient(90deg, #6A5BE0, #E5397F);
  --focus: 2px solid #F0659B;

  --rail: 184px;                /* contents rail (1024+) */
  --gap: 56px;                  /* between columns (1240+) */
  --main: 620px;                /* text column (1240+) */
  --note: 188px;                /* source notes (1240+) */
  --hang: 2.6rem;               /* numerals, ticks and FAQ marks hang this far left at 1240+ */

  padding-bottom: var(--space-16);
  color: var(--body);
}

@media (min-width: 1024px) {
  .ed { padding-bottom: var(--space-24); }
}

.ed p,
.ed li,
.ed dd {
  font-size: 1.0625rem;                      /* 17px */
  line-height: 1.7;
  color: var(--body);
}

@media (min-width: 768px) {
  .ed p, .ed li, .ed dd { font-size: 1.125rem; }   /* 18px */
}

.ed strong { font-weight: 600; color: var(--head); }

.ed :focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

/* A soft corner only for elements without a shape of their own: zero
   specificity, so pill buttons and round ticks keep their radius in focus */
:where(.ed :focus-visible) { border-radius: 4px; }

/* style.css gives every focused link a 2px corner; the pill button keeps its shape */
.ed .btn--primary:focus-visible { border-radius: var(--radius-full); }

/* Links in running text: underlined, never colour alone */
.ed p a:not(.btn),
.ed li a,
.ed dd a,
.ed td a {
  color: var(--pink);
  text-decoration: underline;
  text-decoration-color: rgba(240, 101, 155, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.ed p a:not(.btn):hover,
.ed li a:hover,
.ed dd a:hover,
.ed td a:hover {
  color: var(--pink-2);
  text-decoration-color: currentColor;
}

/* Interface words in running text (<strong class="ui">Save</strong>): read as
   text with a faint key tint. No side padding, so punctuation hugs the word. */
.ed .ui {
  font-weight: 500;
  color: var(--head);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Phones: paragraphs with a menu path hold several in a few lines; a fainter
   tint keeps them reading as text, not as a row of keys */
@media (max-width: 767.98px) {
  .ed .ui { background: rgba(255, 255, 255, 0.05); }
}

/* Anchor jumps and keyboard focus land below the sticky site header (73px on
   phones, 81px from 1024px); sections add a little air of their own. */
html { scroll-padding-top: 88px; }

@media (min-width: 1024px) {
  html { scroll-padding-top: 104px; }
}


/* ----- 2. Grid ----------------------------------------------------------- */
.ed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "toc" "body";
  max-width: 680px;
  margin-inline: auto;
}

.ed-head { grid-area: head; }
.ed-toc  { grid-area: toc; }
.ed-body { grid-area: body; min-width: 0; }

/* The reading measure is the same 620px column from tablets up (about 70
   characters a line at 18px); the head may run a little wider, as at 1240+.
   Below 720 the text takes the whole screen width. */
@media (min-width: 720px) {
  .ed-body { max-width: var(--main); }
}

@media (min-width: 1024px) {
  .ed-grid {
    max-width: none;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    grid-template-areas: "toc head" "toc body";
    column-gap: 48px;
  }
  .ed-head { max-width: 680px; }
}

@media (min-width: 1240px) {
  .ed-grid {
    grid-template-columns: var(--rail) var(--main) 1fr;
    grid-template-areas: "toc head head" "toc body .";
    column-gap: var(--gap);
  }
  .ed-head { max-width: none; }
  .ed-body { max-width: var(--main); }
}


/* ----- 3. Breadcrumb ------------------------------------------------------- */
.ed-crumbs { padding-top: var(--space-6); }

@media (min-width: 1024px) { .ed-crumbs { padding-top: var(--space-8); } }

.ed-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted);
}

.ed-crumbs li:not(:last-child)::after {
  content: "/";
  content: "/" / "";
  margin-left: var(--space-2);
  color: rgba(255, 255, 255, 0.22);
}

.ed .ed-crumbs a {
  display: inline-block;
  padding-block: 2px;                        /* 33px tall target */
  color: var(--muted);
  text-decoration: none;
}

/* Phones: a 44px target; the negative margin keeps the line where it was */
@media (max-width: 767.98px) {
  .ed .ed-crumbs a { padding-block: 8px; margin-block: -6px; }
  /* room for the 6px that each target reaches past its line, so a wrapped
     second row or the heading below never covers the bottom of a link */
  .ed-crumbs ol { row-gap: 6px; padding-bottom: 6px; }
}

.ed .ed-crumbs a:hover { color: var(--head); text-decoration: underline; text-underline-offset: 3px; }


/* ----- 4. Article head ------------------------------------------------------- */
.ed-head { padding-top: var(--space-10); }

@media (min-width: 1024px) { .ed-head { padding-top: var(--space-12); } }

/* Kicker: the page keeps its <span class="eyebrow ed-kicker"><span class="eyebrow__dot"></span>…</span>
   (same translation segment as before); here it becomes the teal mono line. */
.ed .ed-kicker {
  display: block;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;                      /* 13px */
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--teal);
}

.ed-kicker .eyebrow__dot { display: none; }

.ed-head h1 {
  margin-top: var(--space-4);
  max-width: 15.5em;
  font-size: clamp(1.875rem, 1.2rem + 3.4vw, 2.875rem);   /* 30px at 320, 33 at 390, 46 max in the 680px head */
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--head);
  text-wrap: pretty;                         /* phones: no word alone on the last line */
}

/* Second tone of the H1: everything after the colon */
.ed-h1b { color: #9F97AE; }

@media (min-width: 720px) { .ed-head h1 { text-wrap: balance; } }

/* 1240+: the head runs over the text and the margin column (864px) */
@media (min-width: 1240px) { .ed-head h1 { font-size: 3.625rem; } }        /* 58px */

.ed .ed-stand {
  margin-top: var(--space-6);
  max-width: 34em;
  font-size: clamp(1.1875rem, 1.06rem + 0.55vw, 1.375rem);  /* 19 -> 22px */
  line-height: 1.52;
  color: #E2DEE9;
}

/* Byline: the brand icon is drawn here, the text stays one sentence */
.ed .ed-byline {
  position: relative;
  min-height: 28px;
  margin-top: var(--space-6);
  max-width: 34em;
  padding-left: 40px;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
}

.ed-byline::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: url("img/orderdm-icon.svg") center / contain no-repeat;
}

.ed .ed-byline strong { font-weight: 500; color: var(--head); }
.ed .ed-byline time { white-space: nowrap; }                /* "24 November 2026" stays on one line */

@media (min-width: 1240px) {
  .ed .ed-stand,
  .ed .ed-byline { max-width: var(--main); }
}


/* ----- 5. Contents rail + reading progress ------------------------------- */
.ed-toc {
  margin-top: var(--space-10);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
}

.ed .ed-toc__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--head);
  margin-bottom: var(--space-1);
}

.ed-toc__list { position: relative; padding-right: 48px; }   /* phones: text stays left of the chat button */

.ed .ed-toc__list li { font-size: 1rem; line-height: 1.35; }

.ed .ed-toc__list a {
  display: block;
  min-height: 44px;                          /* phone tap target */
  padding-block: 11px;
  text-decoration: none;
  color: var(--muted);
  transition: color var(--transition-fast);
}

.ed .ed-toc__list a:hover,
.ed .ed-toc__list a[aria-current] { color: var(--head); }

/* Desktop: a sticky rail with a reading line. It scrolls when the window is
   too short for every entry: guide.js keeps the current entry in view and a
   fade marks the side where more entries are hidden. The 6px of padding on
   the right and at the bottom (taken back by the margin) keep the focus ring
   of a link inside the scroll box, which would clip it. */
@media (min-width: 1024px) {
  .ed-toc {
    align-self: start;
    position: sticky;
    top: 112px;
    margin-top: calc(var(--space-12) + 6px);
    margin-right: -6px;
    padding: 0 6px 6px 0;
    border: 0;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: none;
  }

  .ed-toc::-webkit-scrollbar { display: none; }

  .ed-toc.is-more-below {
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent);
            mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent);
  }

  .ed-toc.is-more-above {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 40px);
            mask-image: linear-gradient(180deg, transparent, #000 40px);
  }

  .ed-toc.is-more-above.is-more-below {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 40px, #000 calc(100% - 56px), transparent);
            mask-image: linear-gradient(180deg, transparent, #000 40px, #000 calc(100% - 56px), transparent);
  }

  .ed .ed-toc__title {
    margin-bottom: var(--space-4);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
  }

  .ed-toc__list { padding-left: 18px; padding-right: 0; }

  .ed-toc__list::before,
  .ed-toc__list::after {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: var(--rule-2);
  }

  .ed-toc__list::after {
    width: 2px;
    left: -0.5px;
    background: linear-gradient(180deg, #6A5BE0, #E5397F);
    transform-origin: top;
    transform: scaleY(var(--p, 0));
  }

  .ed .ed-toc__list li { font-size: 0.875rem; line-height: 1.4; }
  .ed .ed-toc__list a { min-height: 0; padding-block: 6px; }
}

/* Short laptop windows (1366x768 with a browser bar is about 650px): the rail
   starts higher and its rows are tighter, so the longest list still fits */
@media (min-width: 1024px) and (max-height: 760px) {
  .ed-toc { top: 96px; max-height: calc(100vh - 112px); }
  .ed .ed-toc__title { margin-bottom: var(--space-3); }
  .ed .ed-toc__list li { line-height: 1.3; }
  .ed .ed-toc__list a { padding-block: 4px; }
}

/* Phones and tablets: a hairline of reading progress right under the site
   header. guide.js sets --ed-top to the header's real height (73px fallback =
   72px nav + 1px border). */
.ed-progress {
  position: fixed;
  top: var(--ed-top, 73px);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9;
  pointer-events: none;
}

.ed-progress span {
  display: block;
  height: 100%;
  background: var(--line);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

@media (min-width: 1024px) { .ed-progress { display: none; } }
body.nav-open .ed-progress { display: none; }


/* ----- 6. Sections and flow ------------------------------------------------- */
/* scroll-margin adds to the page's scroll-padding (88px, 104px from 1024):
   a section lands 96px (112px) from the top, under the header */
.ed-sec { margin-top: var(--space-16); scroll-margin-top: 8px; }
.ed-body > .ed-sec:first-child { margin-top: var(--space-12); }

@media (min-width: 1024px) {
  .ed-sec { margin-top: 88px; }
}

/* Vertical rhythm between the blocks of a section; components below may set
   their own margin-top (declared later, so they win), headings reset it. */
.ed-sec > * + * { margin-top: var(--space-5); }

.ed-sec > h2 {
  padding-top: var(--space-6);
  margin-bottom: var(--space-5);
  border-top: 1px solid var(--rule);
  font-size: clamp(1.625rem, 1.3rem + 1.35vw, 2.25rem);  /* 26 -> 36px */
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: var(--head);
}

.ed-sec > h3,
.ed-sec > * + h3 {
  margin: var(--space-10) 0 var(--space-3);
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--head);
}

/* Headings never end on one word alone (balanced lines at every width; on
   phones this takes no extra lines) */
.ed-sec > h2,
.ed-sec > h3 { text-wrap: balance; }

.ed-sec > h2 + *,
.ed-sec > h3 + * { margin-top: 0; }

.ed-sec > ol + p,
.ed-sec > ul + p,
.ed-sec > dl + p,
.ed-sec > div + p { margin-top: var(--space-6); }


/* ----- 7. Definition rows + gloss ------------------------------------------- */
/* <dl class="ed-defs"><div><dt><strong>Term</strong> (gloss):</dt><dd>text</dd></div>… */
.ed-defs { border-top: 1px solid var(--rule); }

.ed-defs > div {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--rule);
}

.ed .ed-defs dt {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--muted);                       /* the gloss in brackets; the term is <strong> */
}

.ed .ed-defs dd { margin-top: var(--space-1); }

@media (min-width: 640px) {
  .ed-defs > div {
    display: grid;
    grid-template-columns: 34% minmax(0, 1fr);
    align-items: baseline;
    column-gap: var(--space-6);
  }
  .ed .ed-defs dd { margin-top: 0; }
}

@media (min-width: 768px) {
  .ed .ed-defs dt { font-size: 1.125rem; }
}

/* Gloss inside a note: Serbian (Cyrillic) menu name, then the English one */
.ed-gloss { margin-top: var(--space-3); }

.ed-gloss > div {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: baseline;
  column-gap: var(--space-4);
  padding-block: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ed .ed-gloss dt { font-size: 0.9375rem; line-height: 1.45; color: var(--head); }
.ed .ed-gloss dd { font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }

@media (max-width: 379.98px) {
  .ed-gloss > div { grid-template-columns: minmax(0, 1fr); }
}


/* ----- 8. Notes, verdicts ------------------------------------------------------ */
.ed .ed-note {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-left: 2px solid var(--teal);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(45, 198, 176, 0.07), rgba(45, 198, 176, 0.015));
}

.ed .ed-note,
.ed .ed-note p {
  font-size: 1rem;
  line-height: 1.65;
}

.ed .ed-note p + p { margin-top: var(--space-3); }

/* "Enough when … / Not enough when …": a coloured rule on the left */
.ed .ed-verdict {
  padding-left: var(--space-5);
  border-left: 2px solid var(--teal);
}

.ed .ed-verdict--no { border-left-color: var(--pink); }


/* ----- 9. Steps, plain lists, menu paths -------------------------------------- */
/* Real sequences: hanging light numerals with a fading thread between them.
   (A list without a class straight in a section gets the same look.) */
.ed-steps,
.ed-sec > ol:not([class]) { counter-reset: step; display: grid; gap: var(--space-4); }

.ed-steps > li,
.ed-sec > ol:not([class]) > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
}

.ed-sec > ol:not([class]) > li::before,
.ed-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.08em;
  width: 1.6rem;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
  text-align: right;
}

/* The thread starts just under the numeral and stops just above the next
   one (about 9px of air at each end), so a one-line step still gets a 12px
   line, never a stub */
.ed-sec > ol:not([class]) > li:not(:last-child)::after,
.ed-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.6rem - 0.7rem);
  top: 1.95rem;
  bottom: calc(-1 * var(--space-4) + 2px);
  width: 1px;
  background: linear-gradient(rgba(45, 198, 176, 0.35), rgba(45, 198, 176, 0.05));
}

@media (min-width: 1240px) {
  .ed-steps > li,
  .ed-sec > ol:not([class]) > li { padding-left: 0; }
  .ed-steps > li::before,
  .ed-sec > ol:not([class]) > li::before { left: calc(-1 * var(--hang)); }
  .ed-steps > li:not(:last-child)::after,
  .ed-sec > ol:not([class]) > li:not(:last-child)::after { left: calc(-1 * var(--hang) + 0.9rem); }
}

/* Unordered lists: a short pink dash */
.ed-list,
.ed-sec > ul:not([class]) { display: grid; gap: var(--space-3); }
.ed-list > li,
.ed-sec > ul:not([class]) > li { position: relative; padding-left: 1.4rem; }
.ed-sec > ul:not([class]) > li::before,
.ed-list > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.8em;
  width: 7px;
  height: 2px;                               /* a whole pixel row: 1.5px rendered grey or pink by position */
  background: var(--pink);
}

/* Menu path strip, only above steps that walk through several screens.
   <p class="ed-route" aria-hidden="true" translate="no"><span>Inbox</span>… */
.ed-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
}

.ed .ed-route span {
  position: relative;
  padding: 7px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.8125rem;                      /* 13px */
  line-height: 1;
  color: var(--head);
  white-space: nowrap;
}

/* The chevron hangs after each chip but the last, so a chip that wraps to a
   new row never starts it with a chevron (that would read as a bullet) */
.ed .ed-route span:not(:last-child) { margin-right: 22px; }

.ed-route span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--muted);
  border-right: 1.5px solid var(--muted);
  transform: translateY(-50%) rotate(45deg);
}

/* Small phones: tighter chips, so two short ones share a row */
@media (max-width: 479.98px) {
  .ed .ed-route span { padding: 6px 7px; }
  .ed .ed-route span:not(:last-child) { margin-right: 16px; }
  .ed-route span:not(:last-child)::after { right: -11px; }
}

.ed .ed-route span:last-child {
  border-color: rgba(45, 198, 176, 0.55);
  background: rgba(45, 198, 176, 0.08);
  color: #BFF3EA;
}


/* ----- 10. Source notes in the right margin (1240+) --------------------------- */
/* guide.js builds them from blocks marked data-sn: the host of each official
   link, then the linked words; data-sn="dm" quotes the customer's own words as
   incoming messages. aria-hidden: the inline link stays the accessible one. */
.sn { display: none; }

@media (min-width: 1240px) {
  .ed-body [data-sn] { position: relative; }

  .sn {
    display: block;
    position: absolute;
    top: 0.35em;
    left: calc(100% + var(--gap));
    width: var(--note);
    padding-top: 10px;
    border-top: 1px solid var(--rule-2);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--muted);
    -webkit-user-select: none;
    user-select: none;
  }

  .sn__host {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0;
    overflow-wrap: anywhere;                 /* guide.js also lets it break after each "/" */
    color: var(--muted);
  }

  .sn__host:not(:first-child) { margin-top: 8px; }

  .ed .sn a:not(.btn) {
    display: block;
    min-height: 24px;                        /* pointer target */
    padding-block: 3px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #CFC9D9;
    text-decoration: none;
  }

  .ed .sn a:not(.btn):hover { color: var(--pink-2); }

  .sn--dm {
    display: grid;
    justify-items: start;
    gap: 6px;
    padding-top: 0;
    border-top: 0;
  }

  .sn__in {
    display: block;
    padding: 9px 14px;
    border-radius: 18px 18px 18px 6px;
    background: #24212E;
    font-size: 0.875rem;
    line-height: 1.35;
    color: var(--head);
  }
}


/* ----- 11. Templates: pull quote, rules, thread, copy -------------------------- */
.ed-rules { margin-top: var(--space-6); }

/* Only for the one maxim of a page */
.ed .ed-pull {
  font-size: clamp(1.875rem, 1.35rem + 2.2vw, 2.75rem);   /* 30 -> 44px */
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--head);
  text-wrap: balance;
}

.ed .ed-pull::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: var(--space-5);
  background: var(--line);
}

/* The rules under it: a short list with teal dashes, no table lines */
.ed-rules__list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.ed .ed-rules__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--head);
}

.ed-rules__list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.8em;
  width: 8px;
  height: 2px;
  background: var(--teal);
}

@media (min-width: 768px) {
  .ed-rules__list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-6); }
  .ed .ed-rules__list li { font-size: 1rem; line-height: 1.5; }
  .ed-rules__list li::before { top: 0.72em; }
}

/* The thread: a panel of sent messages (full bleed on phones) */
.ed-thread {
  margin-top: var(--space-8);
  margin-inline: calc(-1 * var(--space-5));
  padding: var(--space-6) var(--space-5) var(--space-8);
  border-block: 1px solid var(--rule);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(81, 91, 212, 0.10), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(229, 57, 127, 0.08), transparent 60%),
    var(--panel);
}

@media (min-width: 720px) {
  .ed-thread {
    margin-inline: 0;
    padding: var(--space-8);
    border: 1px solid var(--rule);
    border-radius: 28px;
  }
}

.ed .ed-thread__hint {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.ed-msg {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "cap" "text" "copy";
  margin-top: var(--space-6);
}

/* A thread without a hint line opens with its first message (phones: no
   extra air on top of the panel padding; 720+ has no margin-top anyway) */
.ed-thread > .ed-msg:first-child { margin-top: 0; }

.ed-msg__cap {
  grid-area: cap;
  margin-bottom: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--head);
}

.ed-msg__cap span {
  font-size: 0.875rem;                       /* 14px, body font: mono stays for labels only */
  font-weight: 400;
  color: var(--muted);
}

/* The sent message. background-attachment: fixed ties the gradient to the
   screen, so a bubble near the top is indigo and one near the bottom pink.
   Where fixed is ignored (iOS Safari) the background falls back to scroll and
   each bubble shows the whole gradient, which is the intended static look.
   White text stays above 5.6:1 on every stop. */
.ed .ed-msg__text {
  grid-area: text;
  justify-self: end;
  max-width: min(100%, 30em);
  margin-left: var(--space-6);
  padding: 12px 16px 13px;
  border-radius: 22px 22px 6px 22px;
  background: var(--dm);
  background-attachment: fixed;
  box-shadow: 0 10px 28px -12px rgba(184, 35, 95, 0.55);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: #fff;
}

/* Bracketed parts: a dashed slot to fill in. The text and brackets are
   unchanged; almost no side padding, so punctuation stays close. */
.ed-msg__text .ph {
  padding: 0 0.08em;
  border: 1px dashed rgba(255, 255, 255, 0.62);
  border-radius: 5px;
  background: rgba(8, 6, 18, 0.24);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ed-msg__copy {
  grid-area: copy;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: var(--space-2);
  padding: 0 16px 0 14px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  color: var(--head);
  visibility: hidden;                        /* space reserved; guide.js shows it */
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.ed-js .ed-msg__copy { visibility: visible; }

@media (scripting: none) { .ed-msg__copy { display: none; } }

.ed-msg__copy::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='5' y='5' width='9' height='9' rx='2'/%3E%3Cpath d='M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='5' y='5' width='9' height='9' rx='2'/%3E%3Cpath d='M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ed-msg__copy:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }

.ed-msg__copy.is-done { color: var(--teal); border-color: rgba(45, 198, 176, 0.6); }

.ed-msg__copy.is-done::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
}

/* Tablet and up: label and copy on the left, the message right next to them,
   like a script. The label column is only as wide as the longest caption
   word and the Copy button, so there is no dead space before the bubble. */
@media (min-width: 720px) {
  .ed-msg {
    grid-template-columns: 140px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "cap text" "copy text";
    column-gap: var(--space-8);
    margin-top: 0;
    padding-block: var(--space-5);
  }
  .ed-msg + .ed-msg { border-top: 1px solid rgba(255, 255, 255, 0.05); }
  .ed-msg__cap { margin-bottom: 0; padding-top: 4px; }
  .ed-msg__cap span { display: block; margin-top: 2px; }
  .ed-msg__copy { align-self: start; margin-top: var(--space-3); }
  .ed .ed-msg__text {
    justify-self: start;
    align-self: start;                       /* as tall as its text, not the row */
    max-width: 36em;
    margin-left: 0;
    font-size: 1.125rem;
  }
}


/* ----- 12. Comparison table ----------------------------------------------------- */
/* Desktop: a real table. Phones: each row becomes a group (its name, then the
   answers, each with its column name from an aria-hidden <div class="ed-tl">),
   no sideways scroll. ARIA roles keep it a table for screen readers. */
.ed-table { margin-top: var(--space-8); }

.ed-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ed-table th,
.ed-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ed-table thead th {
  padding-top: 14px;
  border-bottom-color: var(--rule-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--head);
}

.ed-table tbody th { font-weight: 600; color: var(--head); text-wrap: balance; }   /* "zvaničnog / API-ja", not "API- / ja" */
.ed-table td { color: #C9C4D4; }

.ed-tl { display: none; }                    /* column name repeated in each cell, phones only */

/* Our column: a soft tint and a gradient line on top */
.ed-table .ed-ours {
  padding-left: 16px;
  background: linear-gradient(180deg, rgba(229, 57, 127, 0.07), rgba(81, 91, 212, 0.05));
}

.ed-table td.ed-ours { color: var(--head); }
.ed-table th.ed-ours { color: #fff; }

.ed-table thead th.ed-ours {
  position: relative;
  border-radius: 12px 12px 0 0;
}

.ed-table thead th.ed-ours::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}

.ed-table tbody tr:last-child > * { border-bottom: 0; }
.ed-table tbody tr:last-child td.ed-ours { border-radius: 0 0 12px 12px; }

/* Four columns of short answers (account types): the row name takes 40%, the
   three answers share the rest evenly */
@media (min-width: 768px) {
  .ed-table:not(.ed-wide) table:has(thead th:nth-child(4)) { table-layout: fixed; }
  .ed-table:not(.ed-wide) table:has(thead th:nth-child(4)) thead th:first-child { width: 40%; }
}

/* Phones (every table) and, below 1240px, the wide table too: in the 620px
   column its three answer columns would squeeze short answers into stacks of
   one or two words, so it keeps the grouped rows until it can run wide.
   (The 768-1239 block repeats these rules for .ed-wide.) */
@media (max-width: 767.98px) {
  .ed-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .ed-table table,
  .ed-table tbody,
  .ed-table tr,
  .ed-table th,
  .ed-table td { display: block; width: auto; }

  .ed-table tbody tr {
    padding-block: var(--space-4) var(--space-3);
    border-top: 1px solid var(--rule-2);
  }

  .ed-table tbody tr:last-child { border-bottom: 1px solid var(--rule-2); }

  .ed-table tbody th {
    padding: 0 0 var(--space-2);
    border: 0;
    font-size: 1rem;
  }

  /* The cell is ordinary flowing text (links and punctuation stay inline); the
     column name hangs in the left gutter as a float, and the cell grows to
     contain it when the name runs to two lines. */
  .ed-table td,
  .ed-table td.ed-ours {
    --tl: 7.75rem;
    display: flow-root;
    padding: 6px 0 6px calc(var(--tl) + var(--space-3));
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 0.9375rem;
  }

  .ed .ed-tl {
    display: block;
    float: left;
    width: var(--tl);
    margin-left: calc(-1 * (var(--tl) + var(--space-3)));
    font-size: 0.8125rem;                    /* 13px */
    font-weight: 500;
    line-height: 1.40625rem;                 /* = the 15px x 1.5 line of the answer */
    color: var(--muted);
  }

  .ed .ed-ours .ed-tl { color: #F59AC0; }

  /* A table with one answer column needs no column name: no gutter */
  .ed-table td:not(:has(> .ed-tl)) { padding-left: 0; }

  /* Last block of a section: the next heading's rule closes it */
  .ed-sec:has(+ .ed-sec) > .ed-table:last-child tbody tr:last-child { border-bottom: 0; }
}

@media (min-width: 768px) and (max-width: 1239.98px) {
  .ed-table.ed-wide thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .ed-table.ed-wide table,
  .ed-table.ed-wide tbody,
  .ed-table.ed-wide tr,
  .ed-table.ed-wide th,
  .ed-table.ed-wide td { display: block; width: auto; }

  .ed-table.ed-wide tbody tr {
    padding-block: var(--space-4) var(--space-3);
    border-top: 1px solid var(--rule-2);
  }

  .ed-table.ed-wide tbody tr:last-child { border-bottom: 1px solid var(--rule-2); }

  .ed-table.ed-wide tbody th {
    padding: 0 0 var(--space-2);
    border: 0;
    font-size: 1.0625rem;
  }

  .ed-table.ed-wide td,
  .ed-table.ed-wide td.ed-ours {
    --tl: 11rem;
    display: flow-root;
    padding: 6px 0 6px calc(var(--tl) + var(--space-4));
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 1rem;
  }

  .ed .ed-wide .ed-tl {
    display: block;
    float: left;
    width: var(--tl);
    margin-left: calc(-1 * (var(--tl) + var(--space-4)));
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5rem;                     /* = the 16px x 1.5 line of the answer */
    color: var(--muted);
  }

  .ed .ed-wide .ed-ours .ed-tl { color: #F59AC0; }

  .ed-sec:has(+ .ed-sec) > .ed-table.ed-wide:last-child tbody tr:last-child { border-bottom: 0; }
}

/* Narrow phones: the column name sits above its answer */
@media (max-width: 379.98px) {
  .ed-table td,
  .ed-table td.ed-ours { padding-left: 0; }
  .ed .ed-tl { float: none; width: auto; margin-left: 0; line-height: 1.4; }
}


/* ----- 13. Mistakes, checklist ------------------------------------------------- */
.ed-mistakes { border-top: 1px solid var(--rule); }

.ed-mistakes > li {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--rule);
}

/* The lead sentence. guide.js puts a source note (span.sn) first in an item
   marked data-sn, so the lead may also come right after it. */
.ed-mistakes > li > strong:first-child,
.ed-mistakes > li > .sn:first-child + strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.0625rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .ed-mistakes > li > strong:first-child,
  .ed-mistakes > li > .sn:first-child + strong { font-size: 1.125rem; }
}

/* A lead that ends in a comma is half a sentence: it stays in the line
   (<li class="ed-runin"><strong>Cena se krije,</strong> pa …) */
.ed-mistakes > li.ed-runin > strong:first-child,
.ed-mistakes > li.ed-runin > .sn:first-child + strong {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

/* Tickable checklist: <li><label><input type="checkbox"><strong>Item.</strong> text</label></li>
   No ids needed; the whole row is the target; nothing is stored. */
.ed-check { border-top: 1px solid var(--rule); }

.ed-check > li {
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.ed .ed-check label {
  position: relative;
  display: block;
  padding: var(--space-4) 0 var(--space-4) 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  cursor: pointer;
}

@media (min-width: 768px) { .ed .ed-check label { font-size: 1.125rem; } }

.ed-check input {
  position: absolute;
  left: 0;
  top: calc(var(--space-4) + 0.2em);
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1.5px solid rgba(45, 198, 176, 0.6);
  border-radius: 50%;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.ed-check input:checked {
  border-color: var(--teal);
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230B0A12' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.ed-check input:focus-visible { outline: var(--focus); outline-offset: 3px; }

.ed .ed-check label:has(input:checked) { color: var(--muted); }
.ed .ed-check label:has(input:checked) strong {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(45, 198, 176, 0.7);
}

@media (min-width: 1240px) {
  .ed .ed-check label { padding-left: 0; }
  .ed-check input { left: calc(-1 * var(--hang)); }
}

/* Last block of a section: the next heading's rule closes it (no double
   hairline with an empty band between). The FAQ keeps its rule: the closing
   call follows it. */
.ed-sec:has(+ .ed-sec) > :is(.ed-mistakes, .ed-check, .ed-defs):last-child > :last-child { border-bottom: 0; }


/* ----- 14. FAQ ------------------------------------------------------------------- */
/* Markup contract (check_en.py): <summary class="faq__question">…</summary> right
   before <div class="faq__answer">…</div>, styled through .ed-faq. The chevron
   svg stays in the summary (same translation segment) but is hidden; the
   plus/minus is drawn on the left. */
.ed-faq { border-top: 1px solid var(--rule); }

.ed-faq details { border-bottom: 1px solid var(--rule); }

.ed .ed-faq .faq__question {
  position: relative;
  display: block;
  padding: var(--space-5) 0 var(--space-5) 2.5rem;
  background: none;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--head);
  list-style: none;
  cursor: pointer;
  text-wrap: balance;
}

@media (min-width: 768px) { .ed .ed-faq .faq__question { font-size: 1.1875rem; } }

.ed-faq .faq__question::-webkit-details-marker { display: none; }
.ed-faq .faq__chevron { display: none; }

.ed .ed-faq .faq__question:hover { background: none; color: #fff; }

/* The plus: two 2px bars drawn upright (no rotation at rest), so both snap to
   whole pixels and look the same weight on every row; open, the upright bar
   folds away and a minus is left. */
.ed-faq .faq__question::before,
.ed-faq .faq__question::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(var(--space-5) + 0.7em);
  width: 14px;
  height: 2px;
  background: var(--pink);
}

.ed-faq .faq__question::after {
  left: 11px;
  width: 2px;
  height: 14px;
  margin-top: -6px;
  transition: transform var(--transition-base);
}

.ed-faq details[open] .faq__question::after { transform: scaleY(0); }

/* Windows contrast themes turn backgrounds into Canvas: draw the plus/minus
   in the text colour so it stays visible */
@media (forced-colors: active) {
  .ed-faq .faq__question::before,
  .ed-faq .faq__question::after { background: CanvasText; forced-color-adjust: none; }
}

.ed .ed-faq .faq__answer {
  max-width: 38em;
  padding: 0 0 var(--space-6) 2.5rem;
  font-size: inherit;
  color: #C9C4D4;
}

.ed .ed-faq .faq__answer p { color: #C9C4D4; }

@media (min-width: 1240px) {
  .ed .ed-faq .faq__question { padding-left: 0; }
  .ed-faq .faq__question::before { left: calc(-1 * var(--hang) + 0.45rem); }
  .ed-faq .faq__question::after { left: calc(-1 * var(--hang) + 0.45rem + 6px); }
  .ed .ed-faq .faq__answer { padding-left: 0; }
}

/* Phones: rows you tap keep their text left of the chat button, which sits on
   the right edge halfway up the screen (as the contents list does) */
@media (max-width: 767.98px) {
  .ed .ed-faq .faq__question,
  .ed .ed-check label { padding-right: 48px; }
}


/* ----- 15. Closing call, read next ---------------------------------------------- */
.ed-cta {
  position: relative;
  margin-top: var(--space-16);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--rule-2);
  border-radius: 24px;
  background:
    radial-gradient(110% 130% at 0% 0%, rgba(81, 91, 212, 0.26), transparent 55%),
    radial-gradient(110% 130% at 100% 100%, rgba(221, 42, 123, 0.24), transparent 55%),
    #17141F;
  overflow: hidden;
}

@media (min-width: 768px) { .ed-cta { padding: var(--space-10); } }

/* 320px phones: the button label does not wrap, so the box gives it room */
@media (max-width: 359.98px) { .ed-cta { padding-inline: var(--space-4); } }

.ed-cta > h2 {
  max-width: 16em;
  font-size: clamp(1.625rem, 1.3rem + 1.35vw, 2.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: var(--head);
  text-wrap: balance;
}

.ed .ed-cta p { margin-top: var(--space-3); max-width: 32em; color: #D9D4E2; }
.ed .ed-cta .ed-cta__go { margin-top: var(--space-6); }

.ed-next { margin-top: var(--space-16); }

.ed .ed-next__title {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--muted);
}

.ed-next ul { display: grid; }

.ed-next li {
  position: relative;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .ed-next ul { grid-template-columns: 1fr 1fr; column-gap: var(--space-8); }
}

/* Two columns: title and text share rows, so both descriptions start at the
   same height when one title runs to two lines */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 768px) {
    .ed-next ul { grid-auto-rows: auto; }
    .ed-next li { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
  }
}

/* Phones: the entry's text stays left of the chat button */
@media (max-width: 767.98px) {
  .ed-next li { padding-right: 48px; }
}

.ed-next h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.ed .ed-next h3 a { color: var(--head); text-decoration: none; }
.ed-next h3 a::after { content: ""; position: absolute; inset: 0; }        /* the whole entry is the target */
.ed-next h3 a:focus-visible { outline: none; }
.ed-next li:has(a:focus-visible) { outline: var(--focus); outline-offset: 4px; border-radius: 6px; }
.ed .ed-next li:hover h3 a { color: var(--pink-2); }

.ed .ed-next li p { margin-top: var(--space-2); font-size: 1rem; line-height: 1.6; color: var(--muted); }

.ed .ed-next__all a { display: inline-block; padding-block: 10px; }
.ed .ed-next__all { margin-top: var(--space-3); }


/* ==========================================================================
   16. Hub (/sr/vodic/, /guides/): an index, not a card grid. Each guide gets a
   small cover drawn from plain shapes (no words, no logos); the auto-replies
   cover carries the sent-message gradient fixed to the screen, like the
   templates in the article.
   ========================================================================== */
.ed--hub .ed-grid { grid-template-areas: "head" "body"; max-width: none; }
.ed--hub .ed-head,
.ed--hub .ed-body { max-width: none; }
.ed--hub .ed-head h1 {
  max-width: 11em;
  font-size: clamp(1.875rem, 1.2rem + 3.4vw, 3.625rem);   /* the hub head is not in a column: full size */
  text-wrap: balance;
}
.ed--hub .ed-stand { max-width: 36em; }

@media (min-width: 1024px) {
  .ed--hub .ed-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "body"; }
}

.ed-index { margin-top: var(--space-12); border-top: 1px solid var(--rule-2); }

.ed-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  padding-block: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--rule);
}

.ed-entry__art {
  position: relative;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(81, 91, 212, 0.10), transparent 60%),
    var(--panel);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.ed-entry__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* A gradient pill inside an svg cover (an svg gradient would need an id) */
.ed-art-pill {
  width: 100%;
  height: 100%;
  border-radius: 18px 18px 5px 18px;
  background: var(--dm);
}

/* Auto-replies cover: two real bubbles, the sent one with the fixed gradient */
.ed-entry__art--dm {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12%;
  padding: 0 9%;
}

.ed-art-in,
.ed-art-out {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  height: 30%;
  padding: 0 7%;
}

.ed-art-in { width: 56%; border-radius: 999px 999px 999px 8px; background: #26222F; }

.ed-art-out {
  align-self: flex-end;
  width: 62%;
  height: 38%;
  border-radius: 22px 22px 6px 22px;
  background: var(--dm);
  background-attachment: fixed;
  box-shadow: 0 10px 26px -12px rgba(184, 35, 95, 0.6);
}

.ed-art-in i,
.ed-art-out i { display: block; width: 80%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.38); }
.ed-art-out i { background: rgba(255, 255, 255, 0.85); }
.ed-art-out i.short { width: 52%; }

.ed-entry__title {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);   /* 24 -> 34px */
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ed .ed-entry__title a { color: var(--head); text-decoration: none; transition: color var(--transition-fast); }
.ed-entry__title a::after { content: ""; position: absolute; inset: 0; }    /* the whole entry is the target */
.ed-entry__title a:focus-visible { outline: none; }
.ed-entry:has(a:focus-visible) { outline: var(--focus); outline-offset: 4px; border-radius: 8px; }
.ed .ed-entry:hover .ed-entry__title a { color: var(--pink-2); }
.ed-entry:hover .ed-entry__art { border-color: rgba(240, 101, 155, 0.35); }

.ed .ed-entry p { margin-top: var(--space-3); max-width: 34em; color: var(--muted); }

@media (min-width: 640px) {
  .ed-entry { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: center; column-gap: var(--space-8); }
}

@media (min-width: 1024px) {
  .ed-entry { grid-template-columns: 360px minmax(0, 640px); column-gap: var(--gap); padding-block: var(--space-8); }
}

.ed--hub .ed-cta { margin-top: var(--space-16); }

@media (min-width: 1024px) {
  .ed--hub .ed-cta { max-width: 640px; margin-left: calc(360px + var(--gap)); }
}


/* ----- 17. Wide figures and adjacency (last, so they win) ---------------------- */
@media (min-width: 1240px) {
  .ed .ed-wide { margin-right: calc(-1 * (var(--gap) + var(--note))); }
}

/* A list straight under a section heading: the heading's rule is enough */
.ed-sec > h2 + .ed-check,
.ed-sec > h2 + .ed-mistakes,
.ed-sec > h2 + .ed-faq,
.ed-sec > h2 + .ed-defs { border-top: 0; }

.ed-sec > h2 + .ed-check > li:first-child label,
.ed-sec > h2 + .ed-mistakes > li:first-child,
.ed-sec > h2 + .ed-defs > div:first-child { padding-top: var(--space-2); }

.ed-sec > h2 + .ed-check > li:first-child input { top: calc(var(--space-2) + 0.2em); }

.ed .ed-sec > h2 + .ed-faq details:first-child .faq__question { padding-top: var(--space-3); }

.ed-sec > h2 + .ed-faq details:first-child .faq__question::before,
.ed-sec > h2 + .ed-faq details:first-child .faq__question::after { top: calc(var(--space-3) + 0.7em); }
