/* The News page (news.php, mockup 1A 2A 3A 4A, Brent 2026-12-04): the Destiny violet twin of COD's news.css
   (cod.wolfgrounds.com/assets/news.css): the post's picture over a poster in its category colour with a strip
   under it, the Wolf Grounds weeks on the claw poster. Category colours: patch notes blue, This Week in Destiny
   teal, launches solar orange, community pink, news grey, Wolf Grounds violet. Loaded only by news.php ($css). */
.nfr { --k-patch: #5fb8ff; --k-twid: #2dd4bf; --k-launch: #ff9a3c; --k-comm: #f472b6; --k-news: #94a3b8; --k-wg: var(--brand); }
.k-patch { --k: var(--k-patch); } .k-twid { --k: var(--k-twid); } .k-launch { --k: var(--k-launch); }
.k-community { --k: var(--k-comm); } .k-news { --k: var(--k-news); } .k-wg { --k: var(--k-wg); }
.nfr, .nchips, .nhero { --cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, var(--font); }

/* page header: the home band's orbit pattern, title left, the weekly reset box right */
.nhero { background-image: var(--wg-pattern), linear-gradient(180deg, rgba(var(--brand-rgb),.10), transparent); background-size: var(--wg-pattern-size), auto; border-bottom: 1px solid var(--border); }
.nhero .in { max-width: var(--measure); margin: 0 auto; padding: 30px var(--gutter) 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.nhero .ico { width: 64px; height: 64px; border-radius: 14px; border: 1px solid rgba(var(--brand-rgb),.5); background: var(--inset); display: grid; place-items: center; flex: none; }
.nhero .ico img { width: 44px; height: 44px; }
.nhero h1 { font-size: 2.2rem; line-height: 1.05; }
.nhero p { margin: 6px 0 0; color: var(--fg2); max-width: 56ch; }
.nhero .tt { flex: 1 1 300px; }
.rbox { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.rbox > div { border: 1px solid var(--inset-border); background: var(--inset); border-radius: 12px; padding: 10px 14px; min-width: 150px; }
.rbox b { display: block; font-size: 1.25rem; font-weight: 900; line-height: 1.1; margin-top: 3px; }
.rbox small { color: var(--muted); font-size: .74rem; }

/* category chips */
.nchips { display: flex; gap: 6px; flex-wrap: wrap; }
.nchip { font-size: .8rem; font-weight: 700; color: var(--fg2); border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px; text-decoration: none; }
.nchip:hover { color: var(--fg); border-color: rgba(var(--brand-rgb),.45); }
.nchip.on { color: var(--on-brand); border-color: transparent; background: var(--brand-fill); }

/* Bungie's alert (GlobalAlerts) */
.alertbar { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(245,165,36,.45); background: rgba(245,165,36,.08); font-size: .88rem; }
.alertbar b { color: #f5a524; }
.alertbar .dot { width: 10px; height: 10px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 0 4px rgba(245,165,36,.2); flex: none; }
.alertbar a { margin-left: auto; color: var(--fg2); font-size: .8rem; font-weight: 700; white-space: nowrap; }

.np { display: grid; gap: 14px; }
.nph { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.nph h2 { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg2); }
.nph a { color: var(--brand); font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nph > span { color: var(--muted); font-size: .76rem; font-weight: 600; }
.nfr a { text-decoration: none; color: inherit; }

.ntag { display: inline-flex; align-items: center; gap: 5px; font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 5px; padding: 2px 6px; white-space: nowrap; color: var(--k); background: color-mix(in srgb, var(--k) 14%, transparent); }
.ntag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; }
.nsrc { font-size: .74rem; color: var(--muted); }
.ntitle { display: block; font-weight: 800; line-height: 1.3; color: var(--fg); text-wrap: balance; }
.nsum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.ngo { color: var(--brand); font-size: .82rem; font-weight: 800; }

.nmedia { display: block; border-radius: 10px; overflow: hidden; background: #0f0b18; max-width: 100%; }
.nart { position: relative; display: block; aspect-ratio: 16 / 9; container-type: inline-size; }
.nart > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nposter { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .35em; padding: 7% 7% 8%;
  background: repeating-radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--k) 12%, transparent) 0 1px, transparent 1px 22px),
              radial-gradient(120% 90% at 88% 6%, color-mix(in srgb, var(--k) 42%, #0f0b18) 0%, #0f0b18 62%); }
.nposter .pk { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.55rem, 2.6cqi, .95rem); color: var(--k); }
.nposter .pt { font-family: var(--cond); font-weight: 800; text-transform: uppercase; color: #fff; line-height: .95; font-size: clamp(.95rem, 6.2cqi, 2.6rem); text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nstrip { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: var(--k); color: #0b0f14; }
.nstrip img { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; }
.nstrip b { font-family: var(--cond); font-weight: 800; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nstrip i { margin-left: auto; font-style: normal; font-family: var(--cond); font-weight: 700; font-size: .8rem; letter-spacing: .06em; background: #0b0f14; color: var(--k); border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
.k-wg .nstrip { color: #fff; }
.nmedia.lg .nstrip { height: 40px; padding: 0 14px; gap: 10px; }
.nmedia.lg .nstrip img { width: 26px; height: 26px; }
.nmedia.lg .nstrip b { font-size: 1.2rem; }
.nrow2 .nstrip i, .nrow2 .nstrip .wgx, .ncard .nstrip .wgx { display: none; }

.nlead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.nlead .nb { display: grid; gap: 9px; min-width: 0; }
.nlead .ntitle { font-size: 1.5rem; }
.nlead .nsum { -webkit-line-clamp: 4; font-size: .92rem; }
.nlead:hover .ntitle, .ncard:hover .ntitle, .nrow2:hover .ntitle { color: var(--brand-soft); }
.ngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.ncard { display: grid; grid-template-rows: auto auto 1fr; gap: 8px; align-content: start; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 12px; padding: 10px; min-width: 0; }
.ncard:hover, .nrow2:hover { border-color: rgba(var(--brand-rgb),.45); }
.ncard .ntitle { font-size: .95rem; }

.np.nband { border-color: rgba(var(--brand-rgb), .32); background: linear-gradient(135deg, rgba(var(--brand-rgb), .10), rgba(var(--brand-rgb), .02)); }
.wggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wgcard { display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; align-content: start; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 12px; padding: 10px; min-width: 0; }
.wgcard:hover { border-color: rgba(var(--brand-rgb), .45); }
.wggrid .nstrip i { display: none; }
.wgtxt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; line-height: 1.45; color: var(--fg); }
.nextcard { display: flex; flex-direction: column; gap: 10px; justify-content: center; border: 1px dashed rgba(var(--brand-rgb), .4); border-radius: 12px; padding: 18px; min-width: 0; }
.nextcard.wide { grid-column: span 2; }
.nextcard b { font-family: var(--cond); font-weight: 800; font-size: 1.3rem; line-height: 1.1; text-transform: uppercase; color: var(--fg); }
.nextcard p { margin: 0; color: var(--fg2); font-size: .86rem; line-height: 1.5; }
.nextcard .btn { align-self: flex-start; }

/* Wolf Grounds poster: violet, the Destiny wolf whole on the right, the claw raked across the words */
.wgp { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .3em; padding: 7% 44% 8% 7%;
  background: repeating-radial-gradient(circle at 80% 30%, rgba(var(--brand-rgb), .09) 0 1px, transparent 1px 18px),
              radial-gradient(110% 120% at 92% 0%, #3a2368 0%, #170f2a 48%, #0b0f14 100%); }
.wgp .mark { position: absolute; right: 7%; top: 50%; width: 32%; height: auto; transform: translateY(-50%); filter: drop-shadow(0 6px 22px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(var(--brand-rgb), .4)); }
.wgp .wgk { position: relative; z-index: 3; text-shadow: 0 0 4px #0b0f14, 0 0 8px #0b0f14; font-family: var(--cond); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-soft); font-size: clamp(.5rem, 2.8cqi, 1rem); white-space: nowrap; }
.wgp .big { position: relative; display: flex; align-items: baseline; gap: .18em; font-family: var(--cond); font-weight: 800; text-transform: uppercase; color: #fff; line-height: .92; }
.wgp .big b { font-size: clamp(1.6rem, 19cqi, 7rem); }
.wgp .big em { font-style: normal; color: var(--brand); font-size: clamp(.7rem, 6cqi, 2.4rem); }
.wgp .claw { position: absolute; z-index: 2; left: 30%; bottom: 4%; width: 26%; height: 80%; transform: rotate(16deg); opacity: .6; pointer-events: none; overflow: visible; filter: drop-shadow(0 0 6px rgba(var(--brand-rgb), .5)); }
.wgp .claw .rip { fill: var(--brand); } .wgp .claw .gouge { fill: #120a24; opacity: .75; } .wgp .claw .lit { fill: #ece2ff; opacity: .85; }

.t-new { --c: #34d399; } .t-imp { --c: var(--brand); } .t-fix { --c: #f5a524; } .t-upd { --c: #5fb8ff; }
.cnts { display: flex; flex-wrap: wrap; gap: 6px; }
.cnt { font-size: .72rem; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }

.nlist { display: grid; gap: 10px; }
.nrow2 { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 14px; align-items: start; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.nrow2 .nb { display: grid; gap: 5px; min-width: 0; }
.nrow2 .ntitle { font-size: 1rem; }

/* news.php?cat=wg: every week, the newest open, grouped by category */
.wkcard { border: 1px solid rgba(var(--brand-rgb), .3); border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, rgba(var(--brand-rgb), .10), rgba(255,255,255,.015) 45%); }
.wkhead { display: grid; grid-template-columns: 220px minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 18px 20px; cursor: pointer; list-style: none; }
.wkhead::-webkit-details-marker { display: none; }
.wktoggle { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); position: relative; }
.wktoggle::before { content: ""; position: absolute; left: 7px; top: 6px; width: 7px; height: 7px; border: solid var(--fg2); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
details[open] > .wkhead .wktoggle::before { transform: translate(0, 3px) rotate(-135deg); }
.wkgroup h3 small { color: var(--muted); font-weight: 700; }
.wkhead .nstrip i { display: none; }
.wkhead-t { display: grid; gap: 7px; min-width: 0; }
.wkeye { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.wktitle { font-family: var(--cond); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.1; color: var(--fg); text-wrap: balance; }
.wkbody { display: grid; gap: 18px; padding: 4px 20px 20px; }
.wkgroup h3 { margin: 0 0 9px; display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.wkgroup h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.wkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wkitem { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-left: 3px solid var(--c); border-radius: 10px; padding: 12px 14px; font-size: .88rem; line-height: 1.5; color: var(--fg); }

.nband2 { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 1px solid rgba(var(--brand-rgb),.35); border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .1), rgba(var(--brand-rgb), .02)); padding: 18px 22px; }
.nband2 .l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nband2 b { display: block; font-size: 1.02rem; }
.nband2 p { margin: 2px 0 0; color: var(--fg2); font-size: .88rem; }

@media (max-width: 820px) {
  .nlead { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .nlead .ntitle { font-size: 1.18rem; }
  .ngrid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .wggrid { grid-template-columns: minmax(0, 1fr); }
  .nextcard.wide { grid-column: auto; }
  .wkhead { grid-template-columns: minmax(0, 1fr) 24px; padding: 14px; }
  .wkhead > .nmedia { grid-column: 1 / -1; }
  .wkbody { padding: 2px 14px 14px; }
  .wkgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .nhero .in { padding: 20px 14px 16px; gap: 12px; }
  .nhero h1 { font-size: 1.6rem; }
  .nhero .ico { width: 52px; height: 52px; }
  .rbox { margin-left: 0; width: 100%; }
  .rbox > div { flex: 1; min-width: 0; }
  .nchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nchip { white-space: nowrap; flex-shrink: 0; }
  .nrow2 { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 8px; }
  .nrow2 .ntitle { font-size: .9rem; }
  .nrow2 .nsum { display: none; }
  .nrow2 .nposter { padding: 8% 8% 9%; }
  .nrow2 .nposter .pk { display: none; }
  .nrow2 .nposter .pt { font-size: .62rem; line-height: 1; }
  .nrow2 .nstrip { height: 22px; padding: 0 6px; gap: 5px; }
  .nrow2 .nstrip img { width: 14px; height: 14px; }
  .nrow2 .nstrip b { font-size: .72rem; }
  .nlead .wgx { display: none; }
  .alertbar { flex-wrap: wrap; }
  .alertbar a { margin-left: 22px; }
}
