/* MBONGO NDE editorial page (S2). Extends the home V1 system (home-minimal.css):
   same dark ground, fonts and colors; measured titles so the photographs lead. */
.editorial-piece main { overflow-x: clip; }
:where(.editorial-piece) figure { margin: 0; }
:where(.editorial-piece) figure img { display: block; width: 100%; height: auto; }

/* 1. Opening */
.ed-opening { display: grid; grid-template-columns: minmax(260px, .75fr) 1.4fr; gap: 6vw; align-items: center; max-width: 1800px; min-height: calc(100svh - 92px); margin: auto; padding: 30px 4vw 50px; }
.ed-opening-copy { min-width: 0; }
.ed-opening-copy h1 { font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1.05; margin: 0 0 14px; }
.ed-piece-number { margin: 0 0 56px; font-size: .88rem; letter-spacing: .04em; }
.ed-quote { margin: 0 0 40px; font-size: .95rem; line-height: 1.7; }
.ed-quote p { margin: 0; }
.ed-quote p:first-child { font-weight: 700; }
.ed-opening-photo { background: #192019; overflow: hidden; }
.ed-opening-photo > img { height: min(calc(100svh - 172px), 980px); min-height: 420px; object-fit: cover; object-position: center 65%; }

/* 2. Gallery */
.ed-gallery { padding: 70px 4vw 150px; scroll-margin-top: 24px; }
.ed-section-label { margin: 0 0 56px; }
.ed-gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 3vw; row-gap: 120px; align-items: start; }
.ed-view { min-width: 0; }
.ed-view-face { grid-column: 1 / span 5; }
.ed-view-back { grid-column: 7 / span 6; margin-top: 160px; }
.ed-view-detail { grid-column: 2 / span 4; }
.ed-view-duo { grid-column: 7 / span 5; margin-top: 120px; }
.ed-view-dusk { grid-column: 4 / span 3; }
.ed-missing { grid-column: 8 / span 4; align-self: end; margin: 0; padding-top: 14px; border-top: 1px solid #ffffff30; font-size: .78rem; line-height: 1.6; opacity: .8; }
.ed-view figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; font-size: .65rem; line-height: 1.6; }
.ed-view figcaption > span:first-child { font-weight: 700; letter-spacing: .1em; }

/* 3. Concept */
.ed-concept { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 3vw; padding: 130px 4vw 150px; background: var(--cream); color: var(--black); }
.ed-concept > .eyebrow, .ed-concept > h2 { grid-column: 1 / -1; }
.ed-concept h2 { font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1.05; margin: 0 0 80px; }
.ed-banknote { grid-column: 1 / span 5; }
.ed-banknote-frame { display: grid; place-items: center; aspect-ratio: 2 / 1; border: 1px solid #12151059; background: #12151008; padding: 24px; text-align: center; font-size: .78rem; letter-spacing: .08em; }
.ed-blocks { grid-column: 7 / -1; }
.ed-blocks > p { margin: 0 0 34px; padding-top: 14px; border-top: 1px solid #12151040; font-size: .95rem; line-height: 1.65; }
.ed-block-index { display: block; margin-bottom: 6px; font-size: .62rem; font-weight: 700; letter-spacing: .14em; color: var(--maroon); }
.ed-blocks > .ed-pending { padding: 14px 16px 16px; border: 1px dashed #12151066; font-size: .82rem; }
.ed-blocks > .ed-source { border-top: 0; padding-top: 0; font-size: .7rem; opacity: .75; }

/* 4. Closing */
.ed-closing { display: grid; grid-template-columns: 1.5fr 1fr; gap: 6vw; align-items: end; max-width: 1800px; margin: auto; padding: 130px 4vw 120px; }
.ed-closing-copy h2 { font-size: clamp(1.15rem, 1.7vw, 1.7rem); line-height: 1.15; margin: 0 0 18px; }
.ed-coming { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .14em; color: var(--coral); }

/* Time dial: a 60 s turn synced to the real seconds (mbongo-nde.js); still when motion is reduced. */
.ed-time { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 40px 0 0; }
.ed-dial { flex: 0 0 auto; width: 108px; height: 108px; }
.ed-dial-ring { fill: none; stroke: #f2eddf33; stroke-width: 1; }
.ed-dial-ticks line { stroke: var(--cream); stroke-width: 1; opacity: .55; }
.ed-dial-hand { transform-origin: 60px 60px; animation: ed-dial-turn 60s linear infinite; animation-delay: var(--dial-delay, 0s); }
.ed-dial-hand line { stroke: var(--coral); stroke-width: 1.5; stroke-linecap: round; }
.ed-dial-hand circle { fill: var(--coral); }
@keyframes ed-dial-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ed-dial-hand { animation: none; } }
.ed-count { display: grid; grid-template-columns: repeat(4, auto); gap: 0 18px; margin: 0; }
.ed-count[hidden] { display: none; }
.ed-count div { display: flex; flex-direction: column-reverse; }
.ed-count dt { font-size: .58rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.ed-count dd { margin: 0 0 4px; font: 1.5rem/1 "Archivo Black", sans-serif; font-variant-numeric: tabular-nums; }
.ed-time-label { flex-basis: 100%; margin: 0; font-size: .72rem; letter-spacing: .08em; opacity: .75; }

/* Registration (no server yet, see the notice) */
/* styles.css hides every form until app.js reveals it and grids it in two columns; this page loads neither behaviour. */
.ed-register { display: block; margin: 48px 0 0; padding-top: 22px; border-top: 1px solid #f2eddf30; opacity: 1; transform: none; }
.ed-register h3 { margin: 0 0 18px; font: 700 .72rem/1.5 "DM Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.ed-register label { display: block; margin: 0 0 8px; font-size: .72rem; opacity: .8; }
.ed-register-row { display: flex; gap: 10px; }
.ed-register input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 12px; border: 0; border-bottom: 1px solid #f2eddf80; background: transparent; color: var(--cream); font: 1rem "DM Sans", sans-serif; }
.ed-register input:focus-visible { outline: 0; border-color: var(--coral); }
.ed-register button { flex: 0 0 auto; min-height: 48px; padding: 0 20px; border: 0; background: var(--coral); color: var(--black); font: 800 .72rem "DM Sans", sans-serif; letter-spacing: .1em; cursor: pointer; }
.ed-register button:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.ed-register-note { margin: 14px 0 0; font-size: .7rem; line-height: 1.6; opacity: .75; }

@media (min-width: 1101px) {
  /* Desktop: the banknote frame sits at mid-height of the text column (white space shared above and below, no empty quarter); blocks reach the right margin. */
  .ed-banknote { align-self: center; }
  .ed-blocks > p { font-size: 1.05rem; }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .ed-opening { grid-template-columns: 1fr 1.2fr; gap: 40px; min-height: 0; padding-bottom: 70px; }
  .ed-piece-number { margin-bottom: 28px; }
  .ed-quote { margin-bottom: 24px; }
  .ed-opening-photo > img { height: max(80svh, 340px); min-height: 0; }
  .ed-gallery-grid { row-gap: 80px; }
  .ed-view-back { margin-top: 90px; }
  .ed-view-duo { margin-top: 70px; }
  .ed-view-dusk { grid-column: 3 / span 4; }
  .ed-concept { padding: 90px 4vw 100px; }
  .ed-concept h2 { margin-bottom: 50px; }
  .ed-banknote { grid-column: 1 / span 6; }
  .ed-blocks { grid-column: 8 / span 5; }
}
@media (max-width: 700px) {
  .ed-opening { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding: 32px 5vw 60px; }
  .ed-opening-copy h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .ed-piece-number { margin-bottom: 26px; font-size: .8rem; }
  .ed-quote { margin-bottom: 18px; font-size: .88rem; }
  .ed-opening-photo > img { height: auto; min-height: 0; aspect-ratio: 3 / 4; }
  .ed-gallery { padding: 50px 5vw 90px; }
  .ed-section-label { margin-bottom: 30px; }
  .ed-gallery-grid { display: block; }
  .ed-view { margin: 0 0 56px; }
  .ed-view-dusk { width: 72%; }
  .ed-view figcaption { display: block; font-size: .6rem; padding-top: 12px; }
  .ed-view figcaption span { display: block; }
  .ed-concept { display: block; padding: 80px 5vw 70px; }
  .ed-concept h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); margin-bottom: 40px; }
  .ed-banknote { margin-bottom: 48px; }
  .ed-blocks > p { font-size: .88rem; margin-bottom: 26px; }
  .ed-closing { display: block; padding: 80px 5vw 70px; }
  .ed-closing-photo { margin-bottom: 36px; }
  .ed-closing-copy h2 { font-size: clamp(1.05rem, 4.6vw, 1.35rem); }
  .ed-time { column-gap: 20px; margin-top: 32px; }
  .ed-dial { width: 88px; height: 88px; }
  .ed-count { gap: 0 12px; }
  .ed-count dd { font-size: 1.25rem; }
}

/* Photographies du billet, sans recadrage. */
.ed-banknote { display: grid; gap: 24px; }
.ed-banknote figure { margin: 0; min-width: 0; }
.ed-banknote img { display: block; width: 100%; height: auto; object-fit: contain; }
.ed-banknote figcaption { margin-top: 10px; font-size: .7rem; line-height: 1.5; }
