/* single-hklf_newsletter.php — verbatim from design/css/science-article.css
   (.ar-* shell, shared with other CPT single templates in spirit but not yet
   factored out, so copied here per this build's brief) + design/css/
   newsletter-detail.css (.nd-*) + design/css/past-event.css (.pe-more* "Read
   More" grid). Not a block, so this is its own stylesheet rather than a
   block.json "style" entry — enqueued directly from single-hklf_newsletter.php,
   conditioned on is_singular('hklf_newsletter').

   .sa-grid/.sa-card/.sa-pager/.sa-more (the "Read More" cards) and the
   .cta-arrow/.hklf-lightbox* lightbox chrome are already shared site-wide in
   resources/css/hklf-common.css — not redeclared here, only the .pe-more/
   .nd-page page-specific overrides on top of them. The handoff's own one-off
   gallery lightbox markup/script/CSS (.fh-lb*) is not reproduced — the
   gallery's [data-lightbox-image] triggers bind to the shared
   resources/js/hklf-common.js lightbox instead (see single-hklf_laureate.php
   for the same site-wide-lightbox convention). */

.ar-page { --u: calc(min(100vw, 1920px) / 1920); background: var(--surface); }

.ar-top { width: calc(1560 * var(--u)); margin-inline: auto; padding-top: calc(66 * var(--u)); }
.ar-back { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); font-size: var(--fs-body-md-caps); font-weight: 600; line-height: var(--lh-body); text-transform: uppercase; color: var(--text-accent); transition: gap .2s, color .2s; }
.ar-back:hover, .ar-back:focus-visible { color: var(--text-accent); text-decoration: underline; text-underline-offset: 3px; }

.ar-head { margin-top: calc(22 * var(--u)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.ar-tag { display: inline-flex; align-items: center; height: calc(26 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: 99px; background: var(--surface-brand); color: var(--text-on-dark); font-size: var(--fs-disclaimer); font-weight: 400; line-height: var(--lh-body); text-transform: uppercase; }
.ar-head h1 { margin-top: calc(14 * var(--u)); max-width: none; font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-heading); color: var(--text-heading); }
.nd-date { margin-top: calc(12 * var(--u)); font-size: var(--fs-body-md); font-weight: 600; line-height: var(--lh-body); color: var(--text-body); }

.nd-cover { margin: calc(36 * var(--u)) auto 0; width: calc(886 * var(--u)); aspect-ratio: 886 / 498; overflow: hidden; }
.nd-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ar-body { width: calc(1280 * var(--u)); margin: calc(42 * var(--u)) auto 0; padding-bottom: calc(130 * var(--u)); color: var(--text-body); }
.nd-body { margin-top: calc(48 * var(--u)); padding-bottom: calc(120 * var(--u)); color: var(--text-heading); }
.nd-body h2, .ar-body h2 { margin: calc(44 * var(--u)) 0 0; font-size: var(--fs-h6-medium); font-weight: 700; line-height: var(--lh-heading); color: var(--text-heading); }
.ar-body h2:first-child { margin-top: 0; }
.ar-body h2 + p { margin-top: calc(18 * var(--u)); }
.nd-body p, .ar-body p { margin: calc(24 * var(--u)) 0 0; font-size: var(--fs-body-md); line-height: var(--lh-body); color: var(--text-heading); text-wrap: pretty; }
.ar-body p strong { font-weight: 600; color: var(--text-heading); }
.ar-body a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ar-body a:hover { color: var(--text-accent); }
.nd-list { list-style: disc outside; margin: calc(4 * var(--u)) 0 0; padding-left: calc(24 * var(--u)); font-size: var(--fs-body-sm); line-height: var(--lh-body); }
.nd-list li { padding-left: calc(2 * var(--u)); }

/* R13 #45 / #46: the main image (the first image of the body, marked
   .nd-main by single-hklf_newsletter.php) has one box in every issue: the
   full body width, 16:9, centred. Issues 29-34 hold it in the old eDM's
   nested layout tables, so those tables fill the body with no cell spacing
   (the browser default 2px spacing + 1px padding per level moved the image
   and the text 4px in). Issue 33's inline width (69.2 %) is overridden. */
.nd-body table:not(.nl-science-news) { width: 100%; border-spacing: 0; }
.nd-body table:not(.nl-science-news) > tbody > tr > td { padding: 0; }
.nd-body img.nd-main { display: block; width: 100% !important; max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 auto !important; }
.nd-body p:has(> img.nd-main:only-child) { margin-top: 0; }

/* R13 #44: Science News list (ContentR13 markup: one row per article,
   image cell + title cell). Two equal columns, a brown rule under each row,
   stacked at 760px and below. The image keeps the old table's 380:200 box
   and shows the whole picture (contain, neutral fill), so infographics are
   not cut at the top and bottom (blind check U5). */
.nd-body .nl-science-news { width: 100%; margin-top: calc(32 * var(--u)); border-collapse: collapse; table-layout: fixed; }
.nd-body .nl-science-news td { width: 50%; padding: calc(20 * var(--u)) 0; border-bottom: 1px solid var(--border-brown); vertical-align: middle; }
.nd-body .nl-science-news td:first-child { padding-right: calc(32 * var(--u)); }
.nd-body .nl-science-news img { display: block; width: 100%; height: auto; aspect-ratio: 380 / 200; object-fit: contain; background: var(--surface-muted); }
.nd-body .nl-science-news p { margin: 0; }

.nd-gallery { margin-top: calc(44 * var(--u)); list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(20 * var(--u)); }
.nd-gallery li { margin: 0; }
.nd-gallery a { position: relative; display: block; cursor: zoom-in; box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .08); border-radius: 8px; overflow: hidden; aspect-ratio: 305 / 198; }
.nd-gallery a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-gallery a::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--color-primary-green); border-radius: inherit; opacity: 0; transition: opacity .25s; pointer-events: none; }
.nd-gallery a:hover::after, .nd-gallery a:focus-visible::after { opacity: 1; }

.nd-pdf { margin-top: calc(32 * var(--u)); }
.nd-pdf .sa-more { margin-top: 0; padding-top: 0; display: inline-flex; }

.pe-more { background: var(--surface-muted); padding: calc(110 * var(--u)) 0 calc(120 * var(--u)); }
.pe-more-inner { width: calc(1560 * var(--u)); margin-inline: auto; }
.nd-page .pe-more h2 { font-size: var(--fs-h4); font-weight: 700; line-height: var(--lh-heading); color: var(--text-heading); }
.pe-more .sa-grid { margin-top: calc(40 * var(--u)); }
.nd-page .pe-more .sa-card { min-height: 0; padding-bottom: calc(40 * var(--u)); }
.nd-page .pe-more .sa-card h3 { margin-top: calc(20 * var(--u)); min-height: 0; font-size: var(--fs-h6, var(--fs-body-md)); font-weight: 700; line-height: var(--lh-heading); }
.nd-page .pe-more .sa-more { margin-top: 0; padding-top: 20px; font-size: var(--fs-button); }
.nd-page .pe-more .sa-card h3 a { transition: color .2s; }
.nd-page .pe-more .sa-card:hover h3 a { color: var(--text-accent); }
.nd-page .pe-more .sa-card:hover .sa-more { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

@media (max-width: 1280px) {
  .ar-top { width: min(1560px, 100% - 2 * var(--pad)); padding-top: 32px; }
  .ar-back { gap: 8px; }
  .ar-head { margin-top: 20px; }
  .ar-tag { height: 24px; padding: 0 12px; }
  .ar-head h1 { margin-top: 12px; max-width: 760px; line-height: 1.35; }
  .nd-date { margin-top: 8px; }
  .nd-cover { margin-top: 24px; width: min(886px, 100% - 2 * var(--pad)); }
  .ar-body { width: min(1280px, 100% - 2 * var(--pad)); margin-top: 32px; padding-bottom: 64px; }
  .nd-body { margin-top: 32px; padding-bottom: 64px; }
  .ar-body h2 { margin-top: 32px; }
  .ar-body h2 + p { margin-top: 12px; }
  .nd-body p, .ar-body p { margin-top: 16px; }
  .nd-list { padding-left: 20px; }
  .nd-gallery { margin-top: 28px; gap: 12px; }
  .pe-more { padding: 56px 0 64px; }
  .pe-more-inner { width: min(1560px, 100% - 2 * var(--pad)); }
  .pe-more .sa-grid { margin-top: 24px; gap: 20px; }
}

@media (max-width: 760px) {
  .nd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nd-page .pe-more .sa-grid { grid-template-columns: minmax(0, 1fr); }
  .nd-body .nl-science-news, .nd-body .nl-science-news tbody, .nd-body .nl-science-news tr, .nd-body .nl-science-news td { display: block; width: 100%; }
  .nd-body .nl-science-news tr { padding: 16px 0; border-bottom: 1px solid var(--border-brown); }
  .nd-body .nl-science-news td { padding: 0; border-bottom: 0; }
  .nd-body .nl-science-news td:first-child { padding: 0 0 12px; }
}
