/* News group (assets/css/pages/news.css): /news/ (year filter + the list), /news/<slug>/ (one article template), /news/preview/.
   The hero is the inner pages' own (.ihero, inner.css). The card is the home band's card (.card-news, parts.css) ruled into a grid.
   Same tokens, type roles and units as the inner pages: vw on the 2400 canvas above 1100px, min(Xvw, Ypx) at or below it. */

/* ---------------------------------------------------------------- the list: filter + ruled card grid */
.nhero__media { color: var(--quiet); }
.nfeed { padding: 1vw 0 10vw; }
.nfilter { display: flex; justify-content: space-between; align-items: center; gap: 1.667vw; padding: 0 0 2.5vw; }
.nfilter__btns { display: flex; flex-wrap: wrap; gap: .5vw; }
.nbtn { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: max(2.5vw, 36px);
  padding: 0 1.25vw; font-size: 1.25vw; font-weight: 500; letter-spacing: -.01em; line-height: 1;
  color: var(--navy); background: transparent; border: 1px solid rgba(11, 35, 64, .35); border-radius: 0; cursor: pointer;
  transition: background-color .4s var(--p2-out), color .4s var(--p2-out), border-color .4s var(--p2-out); }
.nbtn--yr { font-family: var(--serif); font-size: 1.5vw; font-weight: 400; letter-spacing: 0; }   /* the serif is for numerals only */
.nbtn:hover { border-color: var(--navy); }
.nbtn[aria-pressed="true"] { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.nfilter__count { margin: 0; }

/* the grid: hairline cells, no gap (the Opportunities grid's shape); the cards keep the home band's own type and order */
.nfeed .nlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.nfeed .nlist > .card-news, .nfeed .nlist > .card-news + .card-news { min-height: 16vw; padding: 1.667vw 1.667vw 2.083vw;
  border-left: 0; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); transition: background-color .4s var(--p2-out); }
.nfeed .nlist > .card-news[hidden] { display: none; }
.nfeed .nlist > .card-news { justify-content: flex-start; gap: .75vw; }
.nfeed .nlist > .card-news .display { margin-top: 0; }
.nfeed .nlist > .card-news .date { margin: 0; }
.card-news__pic { display: block; width: 100%; aspect-ratio: 3 / 2; margin: 0 0 .5vw; overflow: hidden; background: var(--stone); }
.card-news__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--expo-out); }
.nfeed .nlist > a.card-news:hover .card-news__pic img, .nfeed .nlist > a.card-news:focus-visible .card-news__pic img { transform: scale(1.04); }
.nfeed .nlist > .card-news .card-news__pic + .date { margin-top: 0; }
.nfeed .nlist > a.card-news:hover, .nfeed .nlist > a.card-news:focus-visible { background: var(--stone); }
@media (max-width: 1100px) {
  .nfeed { padding: min(2vw, 8px) 0 min(20vw, 79px); }
  .nfilter { flex-direction: column; align-items: flex-start; gap: min(5vw, 20px); padding-bottom: min(6vw, 24px); }
  .nfilter__btns { gap: min(2vw, 8px); }
  .nbtn { min-height: 44px; padding: 0 min(4vw, 16px); font-size: min(4.2vw, 16.6px); }
  .nbtn--yr { font-size: min(5.556vw, 22px); }
  .nfeed .nlist { grid-template-columns: 1fr; }
  .nfeed .nlist > .card-news, .nfeed .nlist > .card-news + .card-news { min-height: 0; gap: min(3vw, 12px); padding: min(5vw, 20px); }
  .card-news__pic { margin-bottom: min(2vw, 8px); }
}

/* ---------------------------------------------------------------- one article: title, side label, reading column, newer and older */
.nhead { padding: calc(var(--head-h) + 6vw) 0 4vw; }
.nhead__title { max-width: 80vw; padding-bottom: .06em; line-height: 1; letter-spacing: -.03em; }
.nbody__back { margin-top: 1.5vw; }
.nbody { padding: 0 0 8vw; }
.nbody__grid { display: grid; grid-template-columns: 14vw minmax(0, 1fr); gap: 3vw; align-items: start; }
.nbody__side { display: flex; flex-direction: column; gap: .4vw; padding-top: .5vw; }
.nbody__date { color: var(--quiet); }
.nart { min-width: 0; max-width: 56vw; }
.nart .text { line-height: 1.5; letter-spacing: -.01em; overflow-wrap: break-word; }
.nart__p { margin: 0 0 1.25vw; }
.nart__h { margin: 3.5vw 0 1.25vw; }
.nart__h:first-child { margin-top: 0; }
.nart__h3 { margin: 2.2vw 0 1vw; line-height: 1.3; }
.nart__h3:first-child { margin-top: 0; }
.nart__src { margin-bottom: .5vw; }
.nart__src a.oline { max-width: 100%; min-height: 24px; line-height: 1.5; overflow-wrap: anywhere; }
.nart__ul { list-style: disc; margin: 0 0 1.5vw; padding-left: 1.6vw; }
.nart__ul li { margin-bottom: .5vw; }
.nart__ref { margin-left: .15em; font-size: .7em; line-height: 0; vertical-align: super; color: var(--quiet); }
.nart__fig { margin: 0 0 2.5vw; }
.nart__img { display: block; width: 100%; height: auto; background: var(--stone); }
.nart__fig--chart .nart__img { background: #fff; border: 1px solid var(--hair); }
.nart__fig--portrait .nart__img { width: min(14vw, 377px); }
.nart__fig--logo .nart__img { width: min(9vw, 208px); background: transparent; }
.nart__fig--small .nart__img { width: min(25vw, 353px); }
.nart__fig:first-child { margin-top: 0; }
.nnav { padding: 0 0 10vw; }
.nnav__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.nnav .card-news { min-height: 13vw; }
@media (max-width: 1100px) {
  .nhead { padding: calc(var(--head-h) + min(10vw, 40px)) 0 min(8vw, 32px); }
  .nhead__title { max-width: none; }
  .nbody__back { display: none; }       /* the same link closes the page, under the article */
  .nbody { padding-bottom: min(16vw, 63px); }
  .nbody .container.--small { width: calc(100% - min(10vw, 39.69px)); }
  .nbody__grid { grid-template-columns: 1fr; gap: min(5vw, 20px); }
  .nbody__side { flex-direction: row; flex-wrap: wrap; gap: min(1vw, 4px) min(4vw, 16px); padding-top: 0; }
  .nart { max-width: none; }
  .nart__p { margin-bottom: min(4vw, 16px); }
  .nart__h { margin: min(10vw, 40px) 0 min(4vw, 16px); }
  .nart__h3 { margin: min(7vw, 28px) 0 min(3vw, 12px); }
  .nart__ul { padding-left: min(5.5vw, 22px); margin-bottom: min(5vw, 20px); }
  .nart__ul li { margin-bottom: min(2vw, 8px); }
  .nart__fig { margin-bottom: min(7vw, 28px); }
  .nart__fig--portrait .nart__img { width: min(44vw, 200px); }
  .nart__fig--logo .nart__img { width: min(40vw, 160px); }
  .nart__fig--small .nart__img { width: min(100%, 353px); }
  .nnav { padding-bottom: min(20vw, 79px); }
  .nnav__grid { grid-template-columns: 1fr; }
  .nnav .card-news { min-height: 0; }
}

/* ---------------------------------------------------------------- Decorous (fix wave 1): the text card of /news/ (date and topic, title, their first sentence, a read word) */
.nfeed .nlist > .nc { justify-content: flex-start; gap: 1.1vw; min-height: 21vw; background: var(--stone); }      /* a filled card (the numbered cards are never bare rows) */
.nfeed .nlist > a.nc:hover, .nfeed .nlist > a.nc:focus-visible { background: #fff; }
.nc__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1vw; }
.nc .nc__k { color: var(--quiet); }
.nc .nc__n { color: var(--quiet); }
.nc .date { margin: 0; }
.nc__p { margin: 0; color: var(--quiet); }
.nc__go { margin-top: auto; padding-top: 1.4vw; font-weight: 500; }
@media (max-width: 1100px) {
  .nfeed .nlist > .nc { gap: min(3vw, 12px); min-height: 0; }
  .nc__top { gap: min(3vw, 12px); }
  .nc__go { padding-top: min(3vw, 12px); }
}

/* ---------------------------------------------------------------- Decorous: a vendor logo in place of a photo, a related row under an article */
.card-news__pic--logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 1.5; background: var(--stone); }
.card-news__pic--logo img { width: auto; height: auto; max-width: 56%; max-height: 52%; object-fit: contain; transition: filter .5s var(--p2-out); }
.card-news__pic--logo .logo-text { font-size: 1.25vw; }
.nbody__logo { display: flex; align-items: center; width: min(9vw, 140px); height: 3.6vw; margin-bottom: 1.4vw; }
.nbody__logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: brightness(0); opacity: .8; }
.nbody__logo .logo-text { font-size: 1.25vw; text-align: left; }
.nart__rel { display: flex; flex-wrap: wrap; gap: .8vw 3vw; margin-top: 3vw; padding-top: 1.6vw; border-top: 1px solid var(--hair); }
.nart__rel p { margin: 0; }
/* ---------------------------------------------------------------- Decorous (fix wave 2): two posts, each with its own photo on the card and as the post header */
.nfeed .nlist.nlist--1 { grid-template-columns: minmax(0, 1fr); }      /* round 3 (finding 24): the column count follows the number of posts */
.nfeed .nlist.nlist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nfeed .nlist.nlist--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nfeed .nlist > .nc { min-height: 0; gap: 1.1vw; padding: 1.667vw 1.667vw 2.083vw; }
.nfeed .nlist > .nc .card-news__pic { aspect-ratio: 16 / 9; margin: 0 0 .6vw; }
.nc__t { margin: 0; }
.nc__yr, .nbody__date .nc__yr { font-family: var(--serif); font-size: 1.3em; letter-spacing: 0; line-height: 1; }
.nc__top .date { color: var(--quiet); }
.nhero { padding: 0 0 4vw; }
.nhero__pic { aspect-ratio: 21 / 8; overflow: hidden; background: var(--stone); }
.nhero__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nnav__grid--1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) {
  .nfeed .nlist.nlist { grid-template-columns: 1fr; }
  .nfeed .nlist > .nc { gap: min(3vw, 12px); padding: min(5vw, 20px); }
  .nfeed .nlist > .nc .card-news__pic { margin-bottom: min(2vw, 8px); }
  .nhero { padding-bottom: min(8vw, 31px); }
  .nhero__pic { aspect-ratio: 3 / 2; }
}
@media (max-width: 1100px) {
  .card-news__pic--logo { aspect-ratio: 3 / 1.3; }
  .card-news__pic--logo .logo-text { font-size: min(4.4vw, 17px); }
  .nbody__logo { width: min(30vw, 118px); height: min(11vw, 44px); margin: 0 min(4vw, 16px) 0 0; }
  .nbody__logo .logo-text { font-size: min(4.4vw, 17px); }
  .nart__rel { gap: min(2vw, 8px) min(8vw, 31px); margin-top: min(8vw, 31px); padding-top: min(5vw, 20px); }
}
