/* Plain-language retellings of the Physical Review Letters papers. The page
   borrows every token and shared component from styles.css and only adds the
   bilingual machinery and the explainer layout. */

.explained-intro { padding: clamp(3.5rem, 7vw, 6rem) max(2rem, calc((100% - 1280px) / 2)) clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.explained-intro h1 { max-width: 16ch; margin: 0 0 1.4rem; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; }
.explained-intro__lede { max-width: 46rem; margin: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.65; }

/* The list carries its own surface so the engraved wallpaper stops behind it.
   Long-form reading needs a quiet background, and the intro above still
   lets the plate show through. It is plain white so the drawings, which are
   drawn on white, sit on the same paper as the text. */
.explained-list { padding: clamp(2rem, 4vw, 3rem) max(2rem, calc((100% - 1280px) / 2)) clamp(5rem, 9vw, 8rem); background: #fff; }

.explainer { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2.2rem, 4vw, 3.2rem) 0; border-top: 1px solid var(--line); }
.explainer:last-child { border-bottom: 1px solid var(--line); }

.explainer__index { display: block; margin-bottom: 1rem; color: var(--muted); font-family: var(--mono); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.08em; }
.explainer__journal { margin: 0 0 1.1rem; color: var(--muted); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; }
.explainer h2 { max-width: 20ch; margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.04; }

/* The drawing sits under the title, in the column the title leaves empty. */
.explainer__figure { margin: 1.7rem 0 0; }
.explainer__figure img { display: block; width: 100%; max-width: 27rem; background: #fff; }

.explainer__body p { max-width: 42rem; margin: 0 0 1rem; font-size: 1rem; line-height: 1.68; }
.explainer__body p:last-child { margin-bottom: 0; }

.explainer__source { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.explainer__source cite { display: block; max-width: 42rem; margin-bottom: 0.7rem; color: var(--muted); font-size: 0.82rem; font-style: normal; line-height: 1.5; }
/* A card can cover more than one paper, and each gets its own line and link. */
.explainer__paper + .explainer__paper { margin-top: 1.05rem; }
.explainer__press { max-width: 42rem; margin: 0 0 0.9rem; color: var(--ink); font-size: 0.86rem; line-height: 1.55; }
.explainer__links { display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem; }
.explainer__badge { display: inline-block; margin-left: 0.4rem; padding: 0.22rem 0.45rem; background: var(--yellow); color: var(--ink); font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 900px) {
  .explainer { grid-template-columns: 1fr; gap: 1.2rem; }
  .explainer h2 { max-width: 24ch; }
}

/* ---- outreach, grouped by kind ----------------------------------------- */
.outreach-group + .outreach-group { margin-top: 3.6rem; }
.outreach-group__title { margin: 0 0 1.3rem; color: var(--aqua); font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.outreach-grid--three .outreach-card,
.outreach-grid--three .outreach-card:nth-last-child(-n + 2) { grid-column: span 2; }
/* one card only, so the panel shrinks to it instead of trailing empty space */
.outreach-grid--one { width: fit-content; max-width: 100%; grid-template-columns: minmax(0, 26rem); }
.outreach-grid--one .outreach-card,
.outreach-grid--one .outreach-card:nth-last-child(-n + 2) { grid-column: span 1; }
.outreach--tail { padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.outreach--tail .outreach-archive { margin-top: 0; padding-top: 0; border-top: 0; }

/* the Articles band carries the section heading above the explainers */
.explained-list .section-heading { margin-bottom: 3rem; }
.explained-list .section-heading .explained-intro__lede { grid-column: 2; margin: 0.9rem 0 0; }

@media (max-width: 1050px) {
  .outreach-grid--three .outreach-card,
  .outreach-grid--three .outreach-card:nth-last-child(-n + 2) { grid-column: span 3; }
  .outreach-grid--three .outreach-card:last-child { grid-column: span 6; }
}
@media (max-width: 720px) {
  .outreach-grid--three .outreach-card,
  .outreach-grid--three .outreach-card:nth-last-child(-n + 2),
  .outreach-grid--three .outreach-card:last-child { grid-column: span 6; }
  .outreach-grid--one { grid-template-columns: minmax(0, 1fr); }
}
