/* T2.8 — editorial pages: /captur-renault-.../, /austral-renault-.../, /incentivi-statali-2022-.../
   Article column + sticky quote form on desktop. Uses tokens and components of site.css. */

/* ---------- head */
.ed-head { padding-block: clamp(28px, 5vw, 64px) clamp(32px, 5vw, 64px); }
.ed-head__grid { display: grid; gap: 28px; align-items: center; }
.ed-head__text { display: grid; gap: 16px; }
.ed-head__text h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); max-width: 17ch; }
.ed-head__media { margin: 0; border-radius: var(--radius-lg); }
.ed-head__media img { object-position: 50% 60%; }
.ed-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ed-price .price { font-size: 1.75rem; }
.ed-price small { color: var(--muted); font-size: var(--fs-small); }
.ed-head .actions { margin-top: 4px; }
@media (min-width: 1024px) {
  .ed-head__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
}

/* ---------- body: article + aside */
.ed-body { padding-block: clamp(40px, 6vw, 88px); background: var(--surface); }
.ed-body__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .ed-body__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); gap: 72px; align-items: start; }
  .ed-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.ed-aside .lead-box { background: var(--paper); }

.ed-article { display: grid; gap: clamp(40px, 5vw, 64px); min-width: 0; }
.ed-sec { display: grid; gap: 16px; }
.ed-sec > h2 { max-width: 22ch; }
.ed-sec > p, .ed-sec > ul, .ed-sec > ol { max-width: 68ch; }
.ed-sec h3 { font-size: 1.125rem; }

.ed-list { display: grid; gap: 10px; }
.ed-list li { position: relative; padding-left: 22px; line-height: 1.5; }
.ed-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--accent); }

/* definition-style list: bold term + text */
.ed-defs { display: grid; gap: 0; }
.ed-defs > div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.ed-defs > div:last-child { border-bottom: 1px solid var(--line); }
.ed-defs dt { font-weight: 700; font-stretch: 105%; }
.ed-defs dd { color: var(--muted); }
@media (min-width: 768px) { .ed-defs > div { grid-template-columns: 13rem 1fr; gap: 24px; } }

/* versions table-like list */
.ed-versions { display: grid; gap: 16px; }
@media (min-width: 640px) { .ed-versions { grid-template-columns: 1fr 1fr; } }
.ed-versions > div { padding: 20px; background: var(--paper); border-radius: var(--radius-lg); }
.ed-versions h3 { margin-bottom: 10px; }
.ed-versions ul { display: grid; gap: 6px; font-size: .9375rem; list-style: none; margin: 0; padding: 0; }
.ed-versions li { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ed-versions li:last-child { border-bottom: 0; padding-bottom: 0; }
.ed-note { font-size: var(--fs-small); color: var(--muted); }

/* numbered steps */
.ed-steps { display: grid; gap: 12px; counter-reset: s; }
.ed-steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 60px; background: var(--paper); border-radius: var(--radius); }
.ed-steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 14px; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .875rem;
}
.ed-steps strong { display: block; }

.ed-figure { margin: 0; display: grid; gap: 8px; }
.ed-figure figcaption { font-size: var(--fs-small); color: var(--muted); }

.ed-callout {
  display: grid; gap: 12px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg);
  background: var(--ink); color: var(--paper);
}
.ed-callout p { color: var(--muted-on-ink); }
.ed-callout .actions { margin-top: 4px; }

.ed-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }

@media (max-width: 767px) {
  .ed-body { padding-block: 40px; }
}
