/* page2: overview
   #overview (abstract) and the paper's overview figure right after it read as one block on the paper ground:
   an editorial two-column abstract (heading block left, Newsreader text right) followed by the figure as a
   full-width white plate with a mono caption bar. */

/* ---------- the block frame ---------- */
body.p2 main > #overview.section {
  padding: var(--p2-section-y) 0 64px !important;
  background: var(--p2-paper) !important;
}

body.p2 main > .main-figure-section.section {
  padding: 0 0 var(--p2-section-y) !important;
  border-top: 0 !important;
  background: var(--p2-paper) !important;
}

/* ---------- abstract: heading block 4/12, text 8/12 ---------- */
body.p2 #overview > .container {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: 48px;
  align-items: start;
}

body.p2 #overview .section-heading { margin: 0 !important; }

body.p2 #overview .section-heading > .column { max-width: none; }

body.p2 #overview .section-heading .title.is-2 { margin: 0 !important; }

body.p2 #overview .abstract-copy,
body.p2 #overview .content.abstract-copy {
  width: auto;
  max-width: 68ch !important;
  margin: 0 !important;
  padding: 31px 0 0 !important;
  font: 400 1.15rem/1.62 var(--p2-serif) !important;
  color: var(--p2-ink-2) !important;
  text-align: left;
}

body.p2 #overview .abstract-copy p {
  margin: 0 !important;
  font: inherit !important;
  color: var(--p2-ink-2) !important;
  text-wrap: pretty;
  hanging-punctuation: first;
  font-variant-numeric: lining-nums;
}

body.p2 #overview .abstract-copy strong {
  font-weight: 600;
  color: var(--p2-ink);
}

/* the closing contribution sentence becomes a call-out row under the text */
body.p2 #overview .abstract-copy p > strong:last-child {
  display: block;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--p2-line-strong);
  font: 600 15px/1.5 var(--p2-display);
  letter-spacing: 0;
  color: var(--p2-ink);
}

body.p2 #overview .abstract-copy p > strong:last-child a {
  margin-left: 2px;
  font-weight: 600;
  color: var(--p2-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

body.p2 #overview .abstract-copy p > strong:last-child a:hover { text-decoration-thickness: 2px; }

/* ---------- overview figure: a full-width plate ---------- */
body.p2 .main-figure-section .paper-figure.osci-main-figure {
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--p2-line) !important;
  border-radius: var(--p2-radius) !important;
  background: var(--p2-surface) !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

body.p2 .main-figure-section .paper-figure.osci-main-figure:hover { border-color: var(--p2-line-strong) !important; }

body.p2 .main-figure-section .osci-figure-link {
  display: block;
  padding: 40px 48px 36px;
}

body.p2 .main-figure-section .osci-figure-link:focus-visible { outline-offset: -4px; }

body.p2 .main-figure-section .paper-figure img {
  display: block;
  width: 100%;
  max-width: 1040px;
  height: auto;
  margin: 0 auto;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.p2 .main-figure-section .paper-figure figcaption {
  display: flex;
  gap: 16px;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px 24px 15px !important;
  border-top: 1px solid var(--p2-line);
  background: var(--p2-surface-2);
  font: 400 12.5px/1.55 var(--p2-mono) !important;
  letter-spacing: 0.01em;
  color: var(--p2-muted) !important;
  text-align: left !important;
}

body.p2 .main-figure-section .paper-figure figcaption::before {
  content: "Fig. 1";
  flex: none;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p2-ink);
}

/* ---------- narrower screens: stack the abstract (existing phone rules elsewhere are untouched) ---------- */
@media (max-width: 900px) {
  body.p2 #overview > .container { display: block; }
  body.p2 #overview .section-heading { margin: 0 0 24px !important; }
  body.p2 #overview .abstract-copy,
  body.p2 #overview .content.abstract-copy { padding-top: 0 !important; }
  body.p2 .main-figure-section .osci-figure-link { padding: 20px; }
}
