/* ============================================================
   Passive Edge — Newsroom stylesheet
   Builds on styles.css tokens. Listing + article detail.
   ============================================================ */

/* ---------- Page hero ---------- */
.np-hero {
  padding: clamp(52px, 7vw, 92px) 0 clamp(36px, 4vw, 56px);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-1) 100%);
  border-bottom: 1px solid var(--rule);
}
.breadcrumb {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-2);
  text-transform: uppercase; margin-bottom: 26px;
}
.breadcrumb a { color: var(--ink-1); }
.breadcrumb a:hover { color: var(--brand-deep); }
.breadcrumb .sep { margin: 0 8px; color: var(--ink-3); }
.np-hero h1 {
  font-size: clamp(34px, 4.4vw, 58px); font-weight: 400;
  letter-spacing: -0.025em; line-height: 1.08; max-width: 16ch;
  margin-bottom: 20px;
}
.np-hero .lead { margin-bottom: 0; }
.np-hero .hero-foot {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--rule);
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
}
.np-hero .hero-foot b { color: var(--ink-0); font-weight: 500; }

/* ---------- Filter chips ---------- */
.news-filter {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: clamp(36px, 4vw, 52px);
}
.chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--rule-strong); background: var(--bg-0);
  border-radius: var(--r-chip); padding: 8px 16px; transition: all .16s;
}
.chip:hover { color: var(--ink-0); border-color: var(--ink-0); }
.chip.active { background: var(--ink-0); color: #fff; border-color: var(--ink-0); }
.chip .c-n { color: inherit; opacity: 0.5; margin-left: 6px; }

/* ---------- Featured ---------- */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: stretch;
  border: 1px solid var(--rule); border-radius: var(--r-card); overflow: hidden;
  background: var(--bg-0); margin-bottom: clamp(40px, 5vw, 64px);
  transition: border-color .2s;
}
.feature:hover { border-color: var(--ink-0); }
.feature .f-media { position: relative; min-height: 320px; background: var(--bg-2); }
.feature .f-media img { width: 100%; height: 100%; object-fit: cover; }
.feature .f-flag {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; background: var(--ink-0); color: #fff;
  padding: 6px 12px; border-radius: var(--r-chip);
}
.feature .f-body { padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; }
.feature .f-meta {
  display: flex; gap: 14px; align-items: center; margin-bottom: 22px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-2);
}
.feature .f-cat { color: var(--brand-deep); }
.feature h2 {
  font-size: clamp(24px, 2.6vw, 36px); font-weight: 400; letter-spacing: -0.02em;
  line-height: 1.14; margin-bottom: 18px;
}
.feature:hover h2 { color: var(--brand-deep); }
.feature p { color: var(--ink-1); font-size: 16px; line-height: 1.62; margin-bottom: 26px; }
.feature .f-cta {
  margin-top: auto; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.feature .f-cta .arrow { transition: transform .2s; }
.feature:hover .f-cta .arrow { transform: translateX(4px); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature .f-media { min-height: 240px; } }

/* ---------- Card grid ---------- */
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }
.ncard {
  background: var(--bg-0); display: flex; flex-direction: column;
  transition: background .2s; min-height: 100%;
}
.ncard:hover { background: var(--bg-1); }
.ncard .n-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.ncard .n-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ncard:hover .n-media img { transform: scale(1.035); }
.ncard .n-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.ncard .n-meta {
  display: flex; gap: 12px; align-items: center; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-2);
}
.ncard .n-cat { color: var(--brand-deep); text-transform: uppercase; letter-spacing: 0.12em; }
.ncard .n-dot { color: var(--ink-3); }
.ncard h3 {
  font-size: 18.5px; font-weight: 500; letter-spacing: -0.015em;
  line-height: 1.24; margin-bottom: 12px; color: var(--ink-0);
}
.ncard:hover h3 { color: var(--brand-deep); }
.ncard p { color: var(--ink-1); font-size: 13.5px; line-height: 1.58; margin: 0; }
.ncard .n-foot {
  margin-top: 18px; padding-top: 0;
  font-family: var(--font-mono); font-size: 16px; color: var(--ink-3);
  display: flex; justify-content: flex-end;
}
.ncard:hover .n-foot { color: var(--brand-deep); }
.ncard.is-hidden { display: none; }

/* ---------- Article detail ---------- */
.article-hero { padding: clamp(48px, 6vw, 84px) 0 clamp(28px, 3vw, 40px); }
.article-hero .a-meta {
  display: flex; gap: 14px; align-items: center; margin-bottom: 22px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-2);
}
.article-hero .a-cat {
  color: var(--brand-deep); background: var(--brand-soft);
  border: 1px solid rgba(22,137,224,0.18); border-radius: var(--r-chip);
  padding: 4px 12px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
}
.article-hero h1 {
  font-size: clamp(30px, 3.6vw, 50px); font-weight: 400;
  letter-spacing: -0.025em; line-height: 1.1; max-width: 22ch; margin-bottom: 22px;
}
.article-hero .a-lead {
  font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-1);
  line-height: 1.55; max-width: 60ch;
}
.a-cover {
  margin: clamp(8px, 2vw, 20px) 0 clamp(36px, 5vw, 64px);
  background: var(--bg-1); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.a-cover .a-cover-inner { max-width: var(--container-max); margin: 0 auto; padding: clamp(20px,3vw,40px) var(--pad-page-x); }
.a-cover img {
  width: 100%; max-height: 560px; object-fit: contain;
  margin: 0 auto; display: block;
}

/* article body */
.a-body { max-width: 720px; margin: 0 auto; padding: 0 var(--pad-page-x) clamp(40px, 5vw, 72px); }
.a-body p { font-size: 17px; line-height: 1.72; color: var(--ink-1); margin-bottom: 22px; }
.a-body p strong { color: var(--ink-0); font-weight: 600; }
.a-body h2 {
  font-size: clamp(21px, 2vw, 27px); font-weight: 500; letter-spacing: -0.015em;
  color: var(--ink-0); margin: 44px 0 16px;
}
.a-body h3 {
  font-size: 18px; font-weight: 600; color: var(--ink-0); margin: 32px 0 12px;
}
.a-body ul { margin: 0 0 24px; padding: 0; list-style: none; }
.a-body ul li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font-size: 16.5px; line-height: 1.6; color: var(--ink-1);
}
.a-body ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; background: var(--brand); border-radius: 1px;
}
.a-body ul li strong { color: var(--ink-0); font-weight: 600; }
.a-body .pullbox {
  border-left: 2px solid var(--brand); background: var(--bg-1);
  padding: 22px 26px; margin: 32px 0; border-radius: 0 var(--r-card) var(--r-card) 0;
}
.a-body .pullbox .pb-k {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand-deep); margin-bottom: 10px;
}
.a-body .pullbox p { font-size: 15px; line-height: 1.65; margin: 0; color: var(--ink-1); }
.a-body .pullbox p + p { margin-top: 12px; }
.a-source {
  margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--rule);
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-2);
}
.a-source a { color: var(--brand-deep); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.a-source a:hover { color: var(--ink-0); }

/* gallery */
.a-gallery { max-width: 1080px; margin: 0 auto clamp(40px, 5vw, 64px); padding: 0 var(--pad-page-x); }
.a-gallery .g-head {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.a-gallery .g-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.a-gallery .g-grid.one { grid-template-columns: 1fr; }
.a-gallery figure { margin: 0; }
.a-gallery figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--bg-2);
}
.a-gallery figcaption {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink-2); margin-top: 8px;
}
@media (max-width: 640px) { .a-gallery .g-grid { grid-template-columns: 1fr; } }

/* prev / next */
.a-nav {
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr 1fr;
}
.a-nav a {
  padding: clamp(28px, 4vw, 48px) var(--pad-page-x); transition: background .2s;
  display: flex; flex-direction: column; gap: 10px;
}
.a-nav a:hover { background: var(--bg-1); }
.a-nav a.next { text-align: right; border-left: 1px solid var(--rule); align-items: flex-end; }
.a-nav .an-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.a-nav .an-t { font-size: 17px; font-weight: 500; color: var(--ink-0); max-width: 30ch; line-height: 1.3; }
.a-nav a:hover .an-t { color: var(--brand-deep); }
.a-nav a.disabled { opacity: 0.35; pointer-events: none; }
@media (max-width: 600px) { .a-nav { grid-template-columns: 1fr; } .a-nav a.next { border-left: 0; border-top: 1px solid var(--rule); text-align: left; align-items: flex-start; } }
