/* Stowe News page (news.html). Sits on top of enterprise.css, the home page's stylesheet, and
   reuses its tokens and parts: .sec, .sec-head, .eyebrow, .h2, .lead, .link and the .news-g / .news-c
   cards. Only what the home page doesn't have is defined here. */
[hidden] { display: none !important; }

/* the first section sits under the header, so it doesn't need the full top padding */
.nw-list, .nw-story { padding-top: clamp(48px, 6vw, 104px); }
.nw-story { outline: none; }

/* ---------- filters: mono chips on hairlines, like the home page's tabs ---------- */
.nw-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(24px, 2.4vw, 40px); }
.nw-filter {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 16px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate); background: #fff; border: 1px solid var(--line); cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.nw-filter span { color: var(--mute); }
.nw-filter:hover { border-color: var(--ink); color: var(--ink); }
.nw-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.nw-filter[aria-pressed="true"] span { color: var(--gold); }

/* ---------- the grid: the home page's news grid, with summaries on every card ---------- */
.nw-grid .news-c:not(:first-child) p { display: block; color: var(--mute); }
.nw-grid .news-c p:not(.news-meta) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nw-grid .news-c:first-child p:not(.news-meta) { -webkit-line-clamp: 6; }
.nw-grid .news-c p.news-meta { display: flex; }
.nw-grid .news-c .link { align-self: flex-start; color: var(--accent); }
.nw-pdfs { margin-left: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.nw-noimg { display: grid; place-items: center; background: var(--ink); }
.nw-noimg span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.nw-status { grid-column: 1 / -1; padding: 32px 24px; background: #fff; color: var(--mute); }
.nw-status a { color: var(--accent); }
.nw-gone { padding: 0 0 20px; background: none; }

/* three equal cards (related stories): no featured first card */
.nw-three .news-c, .nw-three .news-c:first-child { grid-column: span 4; grid-row: auto; }
.nw-three .news-c:first-child figure { aspect-ratio: 16 / 10; }
.nw-three .news-c:first-child h3 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.nw-three .news-c:first-child p:not(.news-meta) { -webkit-line-clamp: 3; }

/* the page you're on, in the header menu */
.nav a[aria-current="page"] { color: var(--accent); }

/* ---------- one story: the home page's 12-column section grid ---------- */
.nw-read { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); align-items: start; }
.nw-read > * { grid-column: 4 / span 7; }
.nw-read > .nw-figure { grid-column: 4 / span 9; }
.nw-aside {
  grid-column: 1 / span 3; grid-row: 1 / span 4;
  position: sticky; top: calc(var(--head) + 32px);
  display: grid; gap: 18px; justify-items: start; padding-top: 0.9em;
}
.nw-aside .news-meta { flex-direction: column; gap: 6px; }
.nw-back { display: inline-flex; flex-direction: row-reverse; gap: 8px; margin-bottom: 10px; color: var(--accent); }
.nw-back .arr { transform: scaleX(-1); }
.nw-head { padding-bottom: clamp(28px, 3vw, 44px); }
.nw-head .h2 { font-size: clamp(32px, 3.2vw, 56px); line-height: 1.08; }
.nw-figure { margin: 0 0 clamp(28px, 3vw, 48px); border: 1px solid var(--line); background: var(--mist); }
.nw-figure img { width: 100%; height: auto; max-height: 640px; object-fit: contain; }
.nw-body { font-size: clamp(17px, 1.1vw, 19px); line-height: 1.7; color: var(--slate); }
.nw-body p, .nw-body ul { margin: 0 0 1.1em; }
.nw-body h2 {
  margin: 1.8em 0 0.6em; font-size: clamp(22px, 1.6vw, 28px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2;
}
.nw-body ul { padding-left: 0; }
.nw-body li { position: relative; padding-left: 26px; margin-bottom: 0.5em; }
.nw-body li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 12px; height: 2px; background: var(--grad); }
.nw-body strong { color: var(--ink); font-weight: 600; }
.nw-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* downloads: hairline rows, like the home page's compliance list */
.nw-files { margin-top: clamp(32px, 3vw, 48px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.nw-files ul { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.nw-files a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #fff; text-decoration: none; color: var(--ink); }
.nw-files a:hover { background: var(--mist); }
.nw-files a:hover b { color: var(--accent); }
.nw-files .arr { margin-left: auto; color: var(--mute); }
.nw-pdf { flex: none; padding: 7px 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: #fff; background: var(--ink); }
.nw-file-t { display: grid; gap: 2px; min-width: 0; }
.nw-file-t b { font-weight: 600; overflow-wrap: anywhere; }
.nw-file-t small { color: var(--mute); font-size: 13px; }

/* related stories */
.nw-related { margin-top: clamp(64px, 7vw, 120px); }
.nw-related-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }

@media (max-width: 1100px) {
  .nw-three .news-c, .nw-three .news-c:first-child { grid-column: span 6; }
  /* one column: the label block sits above the title */
  .nw-read > *, .nw-read > .nw-figure, .nw-aside { grid-column: 1 / -1; grid-row: auto; }
  .nw-aside { position: static; padding: 0 0 24px; }
  .nw-aside .news-meta { flex-direction: row; gap: 14px; }
  .nw-read { max-width: 820px; }
}
@media (max-width: 720px) {
  .nw-three .news-c, .nw-three .news-c:first-child { grid-column: span 12; }
  .nw-filter { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-filter { transition: none; }
}
