.ed-page {
  background:
    radial-gradient(circle at top right, rgba(93, 44, 181, 0.1), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 107, 53, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(250, 248, 255, 0.98), rgba(244, 240, 255, 0.9)),
    var(--paper);
}

.ed-hero {
  padding: clamp(32px, 5vw, 72px) 0 clamp(28px, 4vw, 48px);
}

.ed-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s-5);
  color: var(--muted);
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.ed-back:hover {
  color: var(--terracotta);
}

.ed-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.ed-copy {
  min-width: 0;
}

.ed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: var(--s-4) 0 0;
}

.ed-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(93, 44, 181, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-soft);
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ed-chip--status {
  background: rgba(255, 107, 53, 0.1);
  color: var(--ochre-d);
  border-color: rgba(255, 107, 53, 0.2);
}

.ed-title {
  margin: var(--s-4) 0 0;
  font-size: var(--fs-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
}

.ed-lede {
  margin: var(--s-5) 0 0;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: var(--fs-lede);
  font-weight: var(--fw-light);
  line-height: 1.6;
}

.ed-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--s-6);
}

.ed-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: var(--s-6);
}

.ed-meta-item {
  min-height: 96px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.ed-meta-item span {
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.ed-meta-item strong {
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.35;
  word-break: break-word;
}

.ed-poster-wrap {
  margin: 0;
  min-width: 0;
}

.ed-poster {
  position: sticky;
  top: 112px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-2);
}

.ed-stamp {
  padding: 16px 10px;
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.12), rgba(93, 44, 181, 0.1));
  border-right: 1px dashed var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ed-stamp-day {
  font-family: var(--ff-display);
  font-size: var(--fs-heading);
  line-height: 1;
  color: var(--terracotta);
}

.ed-stamp-month,
.ed-stamp-year {
  font-family: var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--fs-small);
}

.ed-stamp-month {
  color: var(--ink);
}

.ed-stamp-year {
  color: var(--muted);
}

.ed-poster-image {
  width: 100%;
  min-height: 220px;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, rgba(235, 238, 255, 0.7), rgba(250, 248, 255, 0.95));
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ed-poster-image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.ed-poster-caption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ed-body {
  padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 6vw, 88px);
}

.ed-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.ed-section-head {
  display: grid;
  gap: 12px;
  margin-bottom: var(--s-5);
}

.ed-section-head h2 {
  margin: 0;
  font-size: var(--fs-heading);
  line-height: 1.05;
  font-weight: 500;
}

.ed-section-head em {
  color: var(--terracotta);
  font-style: italic;
}

.ed-richtext {
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: 1.8;
}

.ed-richtext p {
  margin: 0 0 18px;
  max-width: 66ch;
}

.ed-richtext p:last-child {
  margin-bottom: 0;
}

.ed-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: var(--s-7);
}

.ed-highlight-card {
  min-height: 100%;
  padding: 22px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 12px;
}

.ed-highlight-no {
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
  color: var(--terracotta);
  text-transform: uppercase;
}

.ed-highlight-card h3,
.ed-related-copy h3 {
  margin: 0;
  font-size: var(--fs-subheading);
  line-height: 1.25;
}

.ed-highlight-card p,
.ed-related-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.ed-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 112px;
}

.ed-panel {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-1);
}

.ed-panel--accent {
  background: linear-gradient(180deg, rgba(255, 240, 232, 0.92), rgba(244, 240, 255, 0.96));
}

.ed-facts {
  display: grid;
  gap: 14px;
  margin-top: var(--s-4);
}

.ed-fact {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ed-fact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ed-fact span {
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.ed-fact strong {
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.4;
  word-break: break-word;
}

.ed-action-stack {
  display: grid;
  gap: 12px;
  margin-top: var(--s-4);
}

.ed-action-link {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(93, 44, 181, 0.12);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}

.ed-action-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: rgba(93, 44, 181, 0.24);
}

.ed-action-link b {
  color: var(--ink);
}

.ed-action-link span {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: var(--fs-small);
}

.ed-related {
  padding: 0 0 clamp(64px, 7vw, 104px);
}

.ed-related-head {
  display: grid;
  gap: 10px;
  margin-bottom: var(--s-5);
}

.ed-related-head h2 {
  margin: 0;
  font-size: var(--fs-heading);
}

.ed-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ed-related-card {
  min-height: 100%;
}

.ed-related-link {
  min-height: 100%;
  display: grid;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.ed-related-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.ed-related-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, rgba(235, 238, 255, 0.7), rgba(250, 248, 255, 0.9));
  padding: 14px;
}

.ed-related-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}

.ed-related-copy {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.ed-related-meta {
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.ed-related-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ed-related-cta {
  color: var(--terracotta);
  font-weight: 700;
  font-size: var(--fs-small);
}

@media (max-width: 1023px) {
  .ed-hero-grid,
  .ed-body-grid,
  .ed-related-grid,
  .ed-highlight-grid {
    grid-template-columns: 1fr;
  }

  .ed-poster {
    position: static;
    max-width: 420px;
    margin-inline: auto;
  }

  .ed-sidebar {
    position: static;
  }

  .ed-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ed-meta-item:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .ed-hero {
    padding-top: 24px;
  }

  .ed-title {
    font-size: var(--fs-heading);
  }

  .ed-poster {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .ed-stamp {
    border-right: 0;
    border-bottom: 1px dashed var(--rule);
    flex-direction: row;
    padding: 14px;
    gap: 12px;
  }

  .ed-poster-image {
    min-height: 180px;
    aspect-ratio: auto;
  }

  .ed-meta {
    grid-template-columns: 1fr;
  }

  .ed-meta-item:last-child {
    grid-column: auto;
  }

  .ed-meta-item,
  .ed-highlight-card,
  .ed-panel,
  .ed-related-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ed-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-action-link,
  .ed-related-link {
    transition: none;
  }

  .ed-action-link:hover,
  .ed-related-link:hover {
    transform: none;
  }
}
