/* Herald · News — app tweaks. Base in glass-core.css.
   Bespoke layout: an immersive full-bleed photo story (not a list). */

.nw-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  --nw-tint: #ff7a4d;
}
.nw-photo {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}
/* no-image fallback: a rich tinted ambient, never an empty black box */
.nw-photo.nw-empty {
  background-image:
    radial-gradient(120% 90% at 50% 0%, var(--nw-tint), transparent 60%),
    linear-gradient(180deg, #11151f, #070910) !important;
  opacity: 0.85;
}
.nw-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 11, 0.55) 0%, transparent 26%),
    linear-gradient(0deg, rgba(3, 5, 9, 0.93) 4%, rgba(3, 5, 9, 0.6) 34%, transparent 62%);
}
.nw-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.nw-src, .nw-count {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.nw-count { color: var(--nw-tint); font-variant-numeric: tabular-nums; }
.nw-cap {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 56px;
  z-index: 2;
}
.nw-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nw-tint);
  margin-bottom: 9px;
}
.nw-head {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.nw-dek {
  margin-top: 11px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(233, 240, 250, 0.84);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.nw-hint {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: rgba(233, 240, 250, 0.6);
}

/* Headline card — full-width, text-first, premium. */
.nw-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  padding: 16px 18px;
  min-height: 0;
}
.nw-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.nw-meta {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ffd166;
}
.nw-card:focus {
  outline: none;
  border-color: var(--focus-ring) !important;
  box-shadow: 0 0 0 2px var(--focus-ring), 0 0 20px var(--aa-glow, rgba(82, 217, 255, 0.3));
  transform: translateY(-1px);
}
.nw-card:focus .nw-title { color: var(--brand); }

/* Image-forward card: publisher thumbnail + text column. */
.nw-card.has-img {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.nw-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nw-thumb {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--s-2);
}
.nw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Detail hero image */
.nw-d-img {
  width: 100%;
  height: 150px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--s-2);
  margin-bottom: 12px;
}
.nw-d-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section picker tiles. */
.nw-sec {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 92px;
  padding: 16px 12px;
}
.nw-bg {
  position: absolute;
  right: -14px;
  bottom: -16px;
  width: 96px;
  height: 96px;
  opacity: 0.12;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nw-bg svg { width: 100%; height: 100%; }
.nw-sec:focus .nw-bg { opacity: 0.22; }
.nw-sec-nm {
  position: relative;
  z-index: 1;
  font-size: var(--fs-base);
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--text-primary);
}
.nw-sec:focus {
  outline: none;
  border-color: var(--focus-ring) !important;
  box-shadow: 0 0 0 2px var(--focus-ring), 0 0 20px var(--aa-glow, rgba(82, 217, 255, 0.3));
  transform: translateY(-1px);
}
.nw-sec:focus .nw-sec-nm { color: var(--brand); }

/* Detail — the full headline. */
.nw-detail {
  flex-shrink: 0;
  padding: 20px 18px;
  border-radius: var(--r-md);
  background: var(--iri), var(--frost-1);
  border: 1px solid var(--frost-border);
}
.nw-d-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
}
.nw-d-meta {
  margin-top: 12px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ffd166;
}
.nw-d-body {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.nw-d-hint {
  margin-top: 14px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.4;
}
/* "Open full article" action below the summary card. */
.nw-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 16px 18px;
  margin-top: 12px;
}
.nw-open-t {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}
.nw-open-s {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.nw-open:focus {
  outline: none;
  border-color: var(--focus-ring) !important;
  box-shadow: 0 0 0 2px var(--focus-ring), 0 0 20px var(--aa-glow, rgba(82, 217, 255, 0.3));
  transform: translateY(-1px);
}
.nw-open:focus .nw-open-t { color: var(--brand); }
