/* Step 7: newspaper edition page and the list of editions. Ported from the approved edition mockup. */
.ai-site .ed-hero { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 40px 56px; }
.ai-site .ed-cover { position: relative; margin: 0; }
.ai-site .ed-cover img { position: relative; z-index: 2; width: 100%; height: auto; display: block; border-radius: 2px; box-shadow: 0 30px 60px rgba(10, 20, 50, .28), 0 0 0 1px rgba(10, 20, 50, .08); transform: rotate(-1.2deg); }
.ai-site .ed-cover .sheet { position: absolute; inset: 0; border-radius: 2px; background: var(--paper-2); box-shadow: 0 10px 24px rgba(10, 20, 50, .12), 0 0 0 1px var(--rule); }
.ai-site .ed-cover .s1 { z-index: 1; transform: rotate(1.6deg) translate(8px, 6px); }
.ai-site .ed-cover .s2 { z-index: 0; transform: rotate(3.4deg) translate(16px, 12px); background: color-mix(in srgb, var(--paper-2) 85%, var(--rule)); }
.ai-site .ed-info { display: grid; gap: 18px; align-content: start; min-width: 0; }
.ai-site .ed-title { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 0; letter-spacing: -0.02em; }
.ai-site .ed-date { margin: -6px 0 0; font-family: var(--display); font-size: 20px; color: var(--muted); }
.ai-site .ed-step { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -4px; }
.ai-site .ed-step-link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; background: var(--paper-2); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; transition: background-color .2s; }
.ai-site .ed-step-link small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.ai-site a.ed-step-link:hover { background: color-mix(in srgb, var(--sky) 22%, var(--paper-2)); }
.ai-site .ed-step-link.is-off { opacity: .55; }
.ai-site .ed-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-site .ed-actions .btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; font-size: 15px; border-radius: 999px; text-decoration: none; }
.ai-site .ed-read { background: var(--ink); color: #ffffff; }
.ai-site .ed-read:hover { background: #1d43a8; color: #ffffff; }
.ai-site .ed-dl { background: var(--paper-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--rule); }
.ai-site .ed-dl:hover { box-shadow: inset 0 0 0 1.5px var(--sky); }
.ai-site .ed-size { font-weight: 600; color: var(--muted); }
.ai-site .ed-facts { display: flex; flex-wrap: wrap; row-gap: 10px; margin: 0; padding-block: 14px; border-block: 1px solid var(--rule); }
.ai-site .ed-facts:empty { display: none; }
.ai-site .ed-facts div { padding: 0 20px; border-left: 1px solid var(--rule); }
.ai-site .ed-facts div:first-child { padding-left: 0; border-left: 0; }
.ai-site .ed-facts dt { font-size: 13px; color: var(--muted); }
.ai-site .ed-facts dd { margin: 2px 0 0; font-weight: 700; }
.ai-site .ed-front h2 { font-family: var(--display); font-size: 22px; margin: 4px 0 10px; }
.ai-site .ed-front ol { list-style: none; margin: 0; padding: 0; }
.ai-site .ed-front li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ai-site .ed-front .pg { font-weight: 700; font-size: 13px; color: var(--link); font-variant-numeric: tabular-nums; }
.ai-site .ed-front .st { font-family: var(--display); font-size: 18px; line-height: 1.35; }

/* Share buttons (same look as on stories) */
.ai-site .ed-share { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-site .share-btn { height: 38px; min-width: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; border: 0; background: var(--paper-2); color: var(--text); font: 600 13px var(--body); text-decoration: none; cursor: pointer; transition: background-color .2s; }
.ai-site .share-btn:hover { background: color-mix(in srgb, var(--sky) 25%, var(--paper-2)); }
.ai-site .share-btn.wa { background: #1f9d55; color: #ffffff; padding: 0 14px; }
.ai-site .share-btn.wa:hover { background: #18864a; }

/* All editions */
.ai-site .ed-all { padding-bottom: 48px; }
.ai-site .ed-list-page .ed-all { padding-top: 8px; }
.ai-site .ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; }
.ai-site .ed-card { display: grid; gap: 12px; align-content: start; color: inherit; text-decoration: none; }
.ai-site .ed-card-img { display: block; aspect-ratio: 760 / 1075; background: var(--paper-2); border-radius: 2px; box-shadow: 0 14px 30px rgba(10, 20, 50, .16); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.ai-site .ed-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ai-site .ed-card:hover .ed-card-img { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(10, 20, 50, .22); }
.ai-site .ed-card-body { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.ai-site .ed-card-body strong { font-family: var(--display); font-size: 22px; color: var(--text); }
.ai-site .ed-card.is-current .ed-card-img { box-shadow: 0 0 0 3px var(--sky), 0 14px 30px rgba(10, 20, 50, .16); }
.ai-site .ed-here { color: var(--link); font-weight: 600; }

/* Band on the list page */
.ai-site .ed-band-p { margin: 4px 0 0; color: #c9d6f1; max-width: 52ch; }

/* Bottom: follow + volunteer reporters */
.ai-site .ed-bottom { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; padding-bottom: 48px; align-items: stretch; }
.ai-site .ed-follow { padding: 26px; border-radius: 8px; color: #ffffff; display: grid; gap: 10px; align-content: start; scroll-margin-top: 120px;
  background: radial-gradient(60% 120% at 100% 0%, rgba(77,178,236,.45), rgba(77,178,236,0) 70%), linear-gradient(155deg, #1d43a8, #103080 55%, #0a1d55); }
.ai-site .ed-follow h2 { font-family: var(--display); font-size: 24px; margin: 0; color: #ffffff; }
.ai-site .ed-follow p { margin: 0; color: #c9d6f1; }
.ai-site .ed-follow-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ai-site .ed-follow-links .btn { background: #ffffff; color: #0b2260; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.ai-site .ed-follow-links .btn:hover { background: var(--sky); }
.ai-site .volunteer { padding: 26px; border-radius: 8px; background: var(--paper-2); border-left: 4px solid var(--sky); display: grid; gap: 8px; align-content: start; }
.ai-site .volunteer h2 { font-family: var(--display); font-size: 22px; margin: 0; }
.ai-site .volunteer p { margin: 0; color: var(--muted); }
.ai-site .vol-contact { display: grid; gap: 4px; font-size: 14px; }
.ai-site .vol-contact a { color: var(--text); text-decoration: none; }
.ai-site .vol-contact a:hover b { color: var(--link); }

@media (prefers-reduced-motion: reduce) { .ai-site .ed-card-img { transition: none; } }
@media (max-width: 960px) {
  .ai-site .ed-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ai-site .ed-cover { max-width: 360px; width: 100%; margin-inline: auto; }
  .ai-site .ed-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ai-site .ed-hero { padding-block: 28px 40px; }
  .ai-site .ed-cover { max-width: 280px; }
  .ai-site .ed-actions .btn { flex: 1 1 100%; justify-content: center; }
  .ai-site .ed-facts { display: grid; gap: 8px; }
  .ai-site .ed-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 0; border-left: 0; }
  .ai-site .ed-facts dd { margin: 0; text-align: right; }
  .ai-site .ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .ai-site .ed-card-body strong { font-size: 18px; }
}
