/* PNGCORE — Newsletters (/newsletter/, page-newsletter.php). The latest-issue feature is in home.css.
   Owner: media. */

/* Latest issue */
.pc-newsletter-latest .pc-issue-feature{max-width:960px;padding:clamp(24px,3vw,48px);background:var(--pc-surface);border-radius:var(--pc-r-xl)}
.pc-newsletter-latest .pc-issue-feature-cover{width:min(100%,200px)}
@media (min-width:600px){.pc-newsletter-latest .pc-issue-feature-cover{width:min(100%,260px)}}
@media (min-width:600px){.pc-newsletter-latest .pc-issue-feature{grid-template-columns:minmax(160px,260px) minmax(0,1fr);gap:var(--pc-s7)}}

/* Archive: one block per year */
.pc-newsletter-year + .pc-newsletter-year{padding-top:0}
.pc-newsletter-year + .pc-newsletter-year .pc-newsletter-year-grid{padding-top:var(--pc-section-sm);border-top:1px solid var(--pc-line)}
.pc-newsletter-year:not(.is-last){padding-bottom:var(--pc-section-sm)}
.pc-newsletter-year-grid{display:grid;gap:var(--pc-s5) var(--pc-s7)}
.pc-newsletter-year-head{display:flex;align-items:baseline;gap:var(--pc-s4)}
.pc-newsletter-year-title{margin:0;font-size:var(--pc-fs-h2);line-height:1}
.pc-newsletter-year-head .pc-meta{margin:0}
.pc-newsletter-year-body > .pc-prose{margin-bottom:var(--pc-s5)}
@media (min-width:960px){
  .pc-newsletter-year-grid{grid-template-columns:200px minmax(0,1fr)}
  .pc-newsletter-year-head{flex-direction:column;gap:var(--pc-s2);position:sticky;top:calc(var(--pc-header-h) + var(--pc-s5));align-self:start}
  .pc-newsletter-year-title{font-size:var(--pc-fs-h2);text-wrap:balance}
}

/* Issue cards: cover (or a branded cover tile), series and month, title, file size */
.pc-issues{display:grid;gap:var(--pc-s6) var(--pc-gap);grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;margin:0;padding:0}
/* Columns stop at 212 px: the width of the library's "medium" cover files (no oversized downloads). */
@media (min-width:600px){.pc-issues{grid-template-columns:repeat(auto-fill,minmax(160px,212px));justify-content:start}}
.pc-issue{position:relative;display:flex;flex-direction:column;gap:var(--pc-s3);height:100%}
.pc-issue-cover{overflow:hidden;border-radius:var(--pc-r);box-shadow:var(--pc-shadow);background:#fff;transition:transform var(--pc-dur-2) var(--pc-ease),box-shadow var(--pc-dur-2) var(--pc-ease)}
.pc-issue-img{display:block;width:100%;height:auto;aspect-ratio:1/1.414;object-fit:cover;object-position:top}
.pc-issue-tile{display:flex;flex-direction:column;justify-content:space-between;padding:clamp(14px,1.6vw,22px);background:linear-gradient(160deg,var(--pc-navy-800) 0%,var(--pc-navy) 55%,var(--pc-navy-900) 100%);color:#fff;border-top:6px solid var(--pc-accent)}
.pc-issue-tile-logo{display:block;width:62%;height:auto}
.pc-issue-tile-series{font-size:clamp(1.0625rem,.9rem + .6vw,1.375rem);font-weight:800;line-height:1.15;letter-spacing:var(--pc-track-heading)}
.pc-issue-tile-date{font-size:var(--pc-fs-meta);font-weight:600;color:var(--pc-on-dark-muted)}
.pc-issue-body{display:flex;flex-direction:column;gap:var(--pc-s1)}
.pc-issue-meta{margin:0;font-size:var(--pc-fs-meta);font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--pc-brand-800)}
.pc-issue-title{margin:0;font-size:var(--pc-fs-small);line-height:1.4;font-weight:700}
.pc-issue-title a{color:var(--pc-ink);text-decoration:none}
.pc-issue-title a::after{content:"";position:absolute;inset:0;z-index:1}
.pc-issue-title a:focus-visible{outline:none}
.pc-issue:has(.pc-issue-title a:focus-visible){outline:2px solid var(--pc-focus);outline-offset:4px;border-radius:var(--pc-r)}
.pc-issue-file{display:inline-flex;align-items:center;gap:6px;margin:var(--pc-s1) 0 0;font-size:var(--pc-fs-meta);color:var(--pc-muted)}
.pc-issue-file .pc-icon{width:16px;height:16px;color:var(--pc-brand-700)}
.pc-issue:hover .pc-issue-cover{transform:translateY(-3px);box-shadow:var(--pc-shadow-lg)}
.pc-issue:hover .pc-issue-title a{color:var(--pc-brand-800);text-decoration:underline}

/* QA round 1 BR1-25: the latest issue sits beside a "Stay informed" card (subscribe + jump links by year) instead of
   a 2/3-width panel with an empty right third */
.pc-newsletter-latest-grid{display:grid;gap:var(--pc-gap)}
.pc-newsletter-latest .pc-newsletter-latest-grid .pc-issue-feature{max-width:none;margin:0}
.pc-newsletter-aside{display:flex;flex-direction:column;gap:var(--pc-s3);padding:clamp(24px,3vw,40px);border:1px solid var(--pc-line);border-radius:var(--pc-r-xl);background:#fff}
.pc-newsletter-aside > *{margin:0}
.pc-newsletter-aside .pc-chip-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:var(--pc-r);background:var(--pc-brand-50);color:var(--pc-brand-700)}
.pc-newsletter-aside .pc-chip-icon .pc-icon{width:22px;height:22px}
.pc-newsletter-aside-title{font-size:var(--pc-fs-h4);line-height:1.25}
.pc-newsletter-aside p{color:var(--pc-text)}
.pc-newsletter-aside-action{margin-top:var(--pc-s2)}
.pc-newsletter-aside-years{margin-top:var(--pc-s4);padding-top:var(--pc-s4);border-top:1px solid var(--pc-line)}
.pc-newsletter-aside-years .pc-eyebrow{margin:0 0 var(--pc-s2)}
.pc-newsletter-aside-years ul{display:grid;margin:0;padding:0;list-style:none}
.pc-newsletter-aside-years li + li{border-top:1px solid var(--pc-line)}
.pc-newsletter-aside-years a{display:flex;align-items:center;justify-content:space-between;gap:var(--pc-s3);min-height:44px;font-weight:700;color:var(--pc-ink);text-decoration:none}
.pc-newsletter-aside-years a .pc-meta{margin:0;font-weight:500}
.pc-newsletter-aside-years a:hover span:first-child{color:var(--pc-brand-800);text-decoration:underline;text-underline-offset:3px}
@media (min-width:600px) and (max-width:1099px){
  .pc-newsletter-aside-years ul{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--pc-s6)}
  .pc-newsletter-aside-years li:nth-child(2){border-top:0}
}
@media (min-width:1100px){.pc-newsletter-latest-grid.has-archive{grid-template-columns:minmax(0,1fr) minmax(300px,360px);align-items:stretch}}
.pc-newsletter-latest .pc-issue-feature-title{text-wrap:pretty}

/* Keep download actions above the cover/title link and usable on touch screens. */
.pc-issue-download{position:relative;z-index:2;display:inline-flex;align-items:center;align-self:flex-start;min-height:44px;font-size:var(--pc-fs-small);font-weight:700;text-underline-offset:3px}

.pc-issue[id^="newsletter-"],.pc-issue-feature[id^="newsletter-"]{scroll-margin-top:calc(var(--pc-header-h,80px) + 24px)}
