/*
 * Editorial system — shared by the redesigned inner pages
 * (Concerto for Peace, Events, single Event). Same language as About and
 * Biography: warm paper / deep night surfaces, Manrope display type with a
 * gold accent, small tracked labels, thin rules, Cormorant for quotes.
 */

.ed {
  --ed-paper: #f3f0ea;
  --ed-paper-deep: #efe9de;
  --ed-night: #0d0d0d;
  --ed-night-soft: #161412;
  --ed-ink: #111;
  --ed-copy: rgba(17, 17, 17, 0.78);
  --ed-soft: rgba(17, 17, 17, 0.52);
  --ed-rule: rgba(17, 17, 17, 0.14);
  --ed-gold: #b8955a;
  --ed-gold-bright: #c9a96b;
  --ed-gutter: clamp(20px, 3.4vw, 64px);
  --ed-shell: min(100%, 1680px);
  --ed-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--ed-paper);
  color: var(--ed-ink);
  overflow-x: clip;
}

/* Surfaces ------------------------------------------------------------ */

.ed-section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 9rem) var(--ed-gutter);
  background: var(--ed-paper);
  color: var(--ed-ink);
}
.ed-section--deep { background: var(--ed-paper-deep); }
.ed-section--dark { background: var(--ed-night); color: #f4f1ea; }
.ed-section--night-soft { background: var(--ed-night-soft); color: #f4f1ea; }
.ed-section--tight { padding-top: clamp(3rem, 5vw, 5rem); padding-bottom: clamp(3rem, 5vw, 5rem); }
.ed-shell { width: var(--ed-shell); margin: 0 auto; }

.ed-section--dark,
.ed-section--night-soft {
  --ed-copy: rgba(255, 255, 255, 0.74);
  --ed-soft: rgba(255, 255, 255, 0.5);
  --ed-rule: rgba(255, 255, 255, 0.14);
  --ed-ink: #f4f1ea;
}

/* Type ---------------------------------------------------------------- */

.ed-accent { color: var(--ed-gold); }
.ed-section--dark .ed-accent,
.ed-section--night-soft .ed-accent { color: var(--ed-gold-bright); }

.ed-eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ed-soft);
}

.ed-display {
  margin: 0;
  font-size: clamp(2.9rem, 6.6vw, 7rem);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.ed-h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.ed-h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1.9vw, 2rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.ed-lead {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 3rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.ed-body p,
.ed-text {
  margin: 0 0 1.2em;
  font-size: clamp(1rem, 1.02vw, 1.12rem);
  line-height: 1.68;
  color: var(--ed-copy);
}
.ed-body p:last-child { margin-bottom: 0; }
.ed-body--cols { columns: 2; column-gap: clamp(1.6rem, 3vw, 3.6rem); }
.ed-body--cols p { break-inside: avoid; }

.ed-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 9vw, 9rem);
  line-height: 0.8;
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px var(--ed-rule);
}

.ed-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.9rem, 3.8vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.ed-quote-by {
  margin: 1.4rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ed-soft);
}

/* Links & buttons ----------------------------------------------------- */

.ed-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.45em;
  transition: gap 0.4s var(--ed-ease), color 0.3s ease;
}
.ed-link:hover { gap: 1.1em; color: var(--ed-gold); }

.ed-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  padding: 1.05rem 1.7rem;
  border-radius: 999px;
  background: var(--ed-gold-bright);
  color: #111;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.4s var(--ed-ease), background 0.3s ease;
}
.ed-btn:hover { transform: translateY(-2px); background: #d8bb80; }
.ed-btn--ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.ed-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Facts bar (label / value) ------------------------------------------- */

.ed-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(var(--ed-facts-cols, 4), minmax(0, 1fr));
  border-top: 1px solid var(--ed-rule);
}
.ed-facts > div { padding: 1.4rem 1.4rem 0 0; border-right: 1px solid var(--ed-rule); }
.ed-facts > div + div { padding-left: 1.4rem; }
.ed-facts > div:last-child { border-right: 0; }
.ed-facts dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ed-soft);
}
.ed-facts dd { margin: 0.55rem 0 0; font-size: clamp(1rem, 1.15vw, 1.2rem); line-height: 1.35; font-weight: 500; }

/* Rows (schedule, programme, event lists) ------------------------------ */

.ed-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ed-rule); }
.ed-row {
  display: grid;
  grid-template-columns: var(--ed-row-cols, minmax(8rem, 1fr) 3fr);
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ed-rule);
}
.ed-row__meta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ed-soft); }
.ed-row__title { font-size: clamp(1.2rem, 1.8vw, 1.8rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.ed-row__note { font-size: clamp(0.95rem, 1vw, 1.05rem); color: var(--ed-copy); }

a.ed-row { color: inherit; text-decoration: none; transition: padding-left 0.5s var(--ed-ease); }
a.ed-row:hover { padding-left: 0.8rem; }
a.ed-row .ed-row__arrow { justify-self: end; transition: transform 0.4s var(--ed-ease), color 0.3s ease; }
a.ed-row:hover .ed-row__arrow { transform: translateX(6px); color: var(--ed-gold); }

/* Media ---------------------------------------------------------------- */

.ed-figure { margin: 0; overflow: hidden; border-radius: 4px; background: #1a1a1a; }
.ed-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Grid helpers ---------------------------------------------------------- */

.ed-split {
  display: grid;
  grid-template-columns: var(--ed-split, minmax(0, 1fr) minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}
.ed-sticky { position: sticky; top: 120px; }

/* Expandable text -------------------------------------------------------- */

.ed-more summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  gap: 0.6em;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ed-gold);
}
.ed-more summary::-webkit-details-marker { display: none; }
.ed-more summary::after { content: "+"; }
.ed-more[open] summary::after { content: "–"; }
.ed-more[open] summary { margin-bottom: 1.2rem; }

/* Reveal ------------------------------------------------------------------ */

.ed-js .ed-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ed-ease), transform 1.1s var(--ed-ease); }
.ed-js .ed-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ed-js .ed-reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 900px) {
  .ed-split { grid-template-columns: 1fr; }
  .ed-sticky { position: static; }
  .ed-body--cols { columns: 1; }
  .ed-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-facts > div:nth-child(2n) { border-right: 0; }
  .ed-facts > div:nth-child(2n + 1) { padding-left: 0; }
  .ed-facts > div:nth-child(n + 3) { border-top: 1px solid var(--ed-rule); margin-top: 1.4rem; }
  .ed-row { grid-template-columns: 1fr; gap: 0.3rem; }
  a.ed-row .ed-row__arrow { display: none; }
}

/* Floating hover preview (editorial.js) */
.ed-float {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  aspect-ratio: 4 / 5;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 0.3s ease;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}
.ed-float.is-on { opacity: 1; }
.ed-float img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Editorial sections paint their own surface. theme-surface.js makes every
   [data-page-bg] transparent to blend the page colour on scroll, which lags on
   fast scrolls and leaves light text on a light page; keep explicit surfaces. */
body.has-surface-blend .ed .ed-section,
body.has-surface-blend .ed .cfp2-cover { background: var(--ed-paper); }
body.has-surface-blend .ed .ed-section--deep { background: var(--ed-paper-deep); }
body.has-surface-blend .ed .ed-section--dark,
body.has-surface-blend .ed .cfp2-cover { background: var(--ed-night); }
body.has-surface-blend .ed .ed-section--night-soft { background: var(--ed-night-soft); }
