/* ==========================================================================
   Newsroom listing (lib/website/news-document.ts): the previous newsroom's
   structure in the site style. Title left, one filter bar, a featured card
   with image and text side by side, then a three-column grid.
   ========================================================================== */
.nr { padding-bottom: clamp(72px, 8vw, 128px); }
.nr-head { display: grid; justify-items: start; gap: 18px; padding-top: clamp(48px, 6vw, 104px); padding-bottom: clamp(32px, 3.4vw, 48px); }
.nr-kicker { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.nr-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.nr-head .h1 { max-width: 15ch; font-size: clamp(42px, 5vw, 76px); line-height: 1; text-wrap: balance; }
.nr-head p { max-width: 520px; font-size: 18px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }

.nr-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nr-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.nr-pills { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--soft); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; min-width: 0; }
.nr-pills::-webkit-scrollbar { display: none; }
.nr-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 15px; color: var(--ink); white-space: nowrap; transition: background .2s, box-shadow .2s; }
.nr-pill em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.nr-pill:hover { background: rgba(255, 255, 255, .7); }
.nr-pill[aria-current="page"] { background: #fff; box-shadow: 0 1px 2px rgba(10, 10, 10, .06), 0 0 0 1px rgba(10, 10, 10, .05); }
.nr-search { flex: 0 1 320px; min-width: 0; }
.nr-search label { position: relative; display: flex; align-items: center; }
.nr-search .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.nr-search input { width: 100%; height: 42px; padding: 0 40px 0 40px; border: 0; border-radius: 999px; background: var(--soft); font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: background .2s, box-shadow .2s; }
.nr-search input:focus { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.nr-search kbd { position: absolute; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.nr .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nr-body { padding-top: clamp(32px, 3.4vw, 48px); }
.nr-feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: var(--r-card); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: clamp(56px, 6vw, 88px); transition: box-shadow .25s; }
.nr-feat:hover { box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .18); }
.nr-feat-media { position: relative; aspect-ratio: 16 / 10; background: var(--soft-2); overflow: hidden; }
.nr-feat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.nr-feat:hover .nr-feat-media img { transform: scale(1.02); }
.nr-feat-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(24px, 3vw, 44px); }
.nr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nr .label.ink { background: var(--ink); color: #fff; }
.nr-feat-text b { font-size: clamp(26px, 2.4vw, 36px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.nr-feat-text p { color: var(--muted); text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nr-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.nr-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.nr-more .icon { transition: transform .25s var(--ease); }
.nr-feat:hover .nr-more .icon { transform: translateX(3px); }

.nr-h { margin-bottom: 24px; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.nr-res { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 24px; }
.nr-res p { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.nr-res a { font-size: 14px; color: var(--muted); }
.nr-res a:hover { color: var(--ink); }
.nr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.nr-grid .ncard { display: grid; align-content: start; gap: 14px; }
.nr-grid .media { aspect-ratio: 16 / 10; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .06); }
.nr-grid .ncard-text { display: grid; gap: 8px; }
.nr-grid .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.nr-grid b { font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.nr-grid p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nr-grid .rt { font-size: 12.5px; color: var(--muted); }
.nr .pagenav { margin-top: clamp(48px, 5vw, 72px); padding-top: 32px; border-top: 1px solid var(--line); }
.nr .pagenav .pn { display: inline-flex; gap: 6px; background: none; }
.nr .pagenav .pn[aria-disabled="true"] { color: var(--faint); }
.nr .pagenav .nstat { flex-basis: 100%; text-align: center; background: none; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.nr .pagenav { flex-wrap: wrap; }

@media (max-width: 1100px) { .nr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .nr-feat { grid-template-columns: 1fr; }
  .nr-bar-in { flex-direction: column; align-items: stretch; }
  .nr-search { flex-basis: auto; }
  .nr-pills { align-self: flex-start; max-width: 100%; }
}
@media (max-width: 600px) { .nr-grid { grid-template-columns: 1fr; gap: 36px; } .nr .pagenav .pn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Features: product render under the hero ---------- */
.fshow { padding-top: clamp(32px, 3.4vw, 56px); padding-bottom: clamp(24px, 3vw, 48px); }
.fscene { aspect-ratio: 16 / 9; }
.fscene .slot img { object-fit: cover; object-position: 50% 50%; }
@media (max-width: 760px) { .fscene { aspect-ratio: 4 / 5; } }
/* Previous / Next: plain text with the arrow inside, like the previous newsroom. */
.nr .pagenav .pn { min-width: 0; height: 40px; padding: 0 12px; gap: 6px; background: none; }
.nr .pagenav .pn span { display: inline; min-width: 0; height: auto; padding: 0; background: none; border-radius: 0; }
.nr .pagenav .pn:hover { background: var(--soft); }
.nr .pagenav .gap { background: none; }
