/*
 * css/news.css - the public News section (news.php), the post cards press.php reuses, and the newsletter box
 * (includes/newsletter_lib.php, also on subscribe.php). 0.19.0. Built on the tokens and components in css/landing.css
 * (scoped under #ld); every class here starts nw- (news) or nl- (newsletter).
 */

/* ---- list ---- */
#ld .nw-tabs { margin-bottom: 22px; border-bottom: 1px solid var(--line); border-radius: 8px; }
#ld .nw-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#ld .nw-card { min-width: 0; }
#ld .nw-card-link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; color: inherit;
  background: var(--steel); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
#ld .nw-card-link:hover, #ld .nw-card-link:focus-visible { border-color: var(--muted); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
#ld .nw-card-art { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); border-bottom: 1px solid var(--line); }
#ld .nw-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
#ld .nw-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; padding: 16px 18px 18px; }
#ld .nw-card h3 { font: 600 20px/1.2 var(--head); letter-spacing: .4px; color: #fff; }
#ld .nw-sum { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
#ld .nw-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; color: var(--wire); font: 600 13px var(--head); letter-spacing: 1.2px; text-transform: uppercase; }
#ld .nw-more svg { width: 16px; height: 16px; }
/* the newest post on page 1: wide, picture beside the text */
#ld .nw-card-big { grid-column: 1 / -1; }
#ld .nw-card-big .nw-card-link { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
#ld .nw-card-big .nw-card-art { aspect-ratio: auto; min-height: 280px; border-bottom: 0; border-right: 1px solid var(--line); }
#ld .nw-card-big .nw-card-body { justify-content: center; padding: 26px 28px; }
#ld .nw-card-big h3 { font-size: 30px; line-height: 1.1; }
#ld .nw-card-big .nw-sum { font-size: 16px; }

#ld .nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 13px; }
#ld .nw-pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px; font: 600 11px/1.3 var(--head); letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--pc, var(--amber-hi)); background: color-mix(in srgb, var(--pc, var(--amber-hi)) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pc, var(--amber-hi)) 40%, transparent);
}
#ld .nw-pill-update { --pc: var(--teal-hi); }
#ld .nw-pill-event { --pc: #ff7fa8; }
#ld .nw-pill-behind-the-scenes { --pc: #b89cff; }
#ld .nw-pin { color: var(--amber-hi); font: 600 11px var(--head); letter-spacing: 1.3px; text-transform: uppercase; }
#ld .nw-empty { padding: 34px 24px; text-align: center; }
#ld .nw-empty .ld-ico { margin: 0 auto 12px; }
#ld .nw-empty h2 { font: 600 24px var(--head); text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 6px; }
#ld .nw-empty p { color: var(--muted); }
#ld .nw-pages { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; color: var(--muted); font-size: 14px; }
#ld .nw-hero .ld-btn svg { width: 16px; height: 16px; }

/* ---- one post ---- */
#ld .nw-narrow { max-width: 760px; }
#ld .nw-post { padding-top: 34px; }
#ld .nw-crumbs { display: flex; gap: 8px; margin-bottom: 18px; color: var(--dim); font-size: 13px; }
#ld .nw-crumbs a { color: var(--muted); }
#ld .nw-crumbs a:hover { color: #fff; }
#ld .nw-post-head h1 { margin: 12px 0 14px; font: 600 44px/1.06 var(--head); letter-spacing: .4px; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
#ld .nw-post-head .ld-lead { max-width: none; font-size: 18px; }
#ld .nw-byline { margin-top: 12px; color: var(--dim); font-size: 14px; }
#ld .nw-cover { max-width: 1100px; margin: 26px auto 30px; padding: 0 20px; }
#ld .nw-cover img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0,0,0,.5); }
#ld .nw-body { color: var(--text); font-size: 17.5px; line-height: 1.7; }
#ld .nw-body > * + * { margin-top: 1.05em; }
#ld .nw-body h2 { margin-top: 1.7em; font: 600 26px/1.15 var(--head); letter-spacing: .6px; text-transform: uppercase; color: #fff; }
#ld .nw-body h3 { margin-top: 1.4em; font: 600 21px/1.2 var(--head); letter-spacing: .4px; color: #fff; }
#ld .nw-body ul, #ld .nw-body ol { padding-left: 1.3em; }
#ld .nw-body li + li { margin-top: .45em; }
#ld .nw-body li::marker { color: var(--amber-hi); }
#ld .nw-body strong { color: #fff; }
#ld .nw-body a { color: var(--wire); text-decoration: underline; text-underline-offset: 2px; }
#ld .nw-body blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--purple); color: var(--muted); font-style: italic; }
#ld .nw-body hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
#ld .nw-fig { margin: 1.6em 0; }
#ld .nw-fig img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
#ld .nw-fig figcaption { margin-top: 8px; color: var(--dim); font-size: 13.5px; }
#ld .nw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
#ld .nw-share-label { margin-right: 4px; color: var(--muted); font: 600 13px var(--head); letter-spacing: 1.4px; text-transform: uppercase; }
#ld .nw-share .ld-btn { padding: 9px 14px; font-size: 13px; }
#ld .nw-share .ld-btn svg { width: 16px; height: 16px; }
#ld .nw-share .nw-fb svg { fill: currentColor; stroke: none; }
#ld .nw-back { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--wire); font: 600 13px var(--head); letter-spacing: 1.2px; text-transform: uppercase; }

/* ---- newsletter box ---- */
#ld .nl-box {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px 34px; align-items: center; padding: 28px 30px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(47,195,207,.10), transparent 60%), var(--steel); border-radius: 10px;
}
#ld .nl-box::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; border-radius: 10px 10px 0 0; background: linear-gradient(90deg, var(--amber-hi), var(--magenta), var(--purple)); }
#ld .nl-box h2 { margin: 6px 0 8px; font: 600 28px/1.1 var(--head); letter-spacing: 1px; text-transform: uppercase; color: #fff; }
#ld .nl-box .nl-copy p { color: var(--muted); }
#ld .nl-form .ld-field { margin-bottom: 10px; }
#ld .nl-row { display: flex; gap: 8px; }
#ld .nl-row input { flex: 1 1 auto; min-width: 0; }
#ld .nl-row .ld-btn { flex: 0 0 auto; }
#ld .nl-form .ld-hint { font-size: 14px; }
#ld .nl-form .ld-note { margin-top: 6px; font-size: 13px; }
#ld .nl-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#ld .nl-result { padding: 24px 24px 18px; }
#ld .nl-result form { margin: 6px 0 14px; }
#ld .nl-result .ld-hint { font-size: 15px; }
#ld .nl-result .ld-note { margin-top: 10px; }

@media (max-width: 900px) {
  #ld .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ld .nw-card-big .nw-card-link { grid-template-columns: minmax(0, 1fr); }
  #ld .nw-card-big .nw-card-art { aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  #ld .nw-card-big h3 { font-size: 26px; }
  #ld .nl-box { grid-template-columns: minmax(0, 1fr); }
  #ld .nw-post-head h1 { font-size: 38px; }
}
@media (max-width: 600px) {
  #ld .nw-grid { grid-template-columns: minmax(0, 1fr); }
  #ld .nw-card-big .nw-card-body { padding: 18px; }
  #ld .nw-card-big h3 { font-size: 23px; }
  #ld .nw-post-head h1 { font-size: 30px; }
  #ld .nw-body { font-size: 16.5px; }
  #ld .nw-cover { padding: 0; margin: 18px 0 22px; }
  #ld .nw-cover img { border-radius: 0; border-left: 0; border-right: 0; }
  #ld .nl-box { padding: 22px 18px; }
  #ld .nl-row { flex-direction: column; }
  #ld .nl-row .ld-btn { width: 100%; }
  #ld .nw-back { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #ld .nw-card-link { transition: none; }
  #ld .nw-card-link:hover { transform: none; }
}
