/* Nightfall News (v2.06) - page-only styles. Linked only from news.html.
   Breakpoints: see the "Version 2 foundation" header in ../site.css. */

/* ---------- Page banner (v2 inner-page header: title + line + framed real screenshot) ----------
   Same block in news.css, devlog.css and faq.css (each page links only its own file). */
.pb {
  background:
    radial-gradient(60% 80% at 75% 40%, rgba(138, 110, 60, 0.18) 0%, rgba(12, 11, 10, 0) 70%),
    linear-gradient(180deg, #12100D 0%, #0C0B0A 100%);
}

.pb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 360px;
  padding-top: 84px; /* clears the crest that hangs below the desk nav */
}

.pb-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 640px;
}

.pb-crumbs {
  margin: 0;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 22px;
}

.pb-crumbs a {
  display: inline-block;
  margin-block: -11px;
  padding-block: 11px;
  color: var(--v2-dim);
}

.pb-crumbs [aria-current] {
  color: var(--v2-muted);
}

.pb-title {
  margin: 0;
  color: var(--v2-text-hero);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 700;
  line-height: 62px;
}

.pb-line {
  margin: 0;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 23px;
  line-height: 28px;
}

.pb-pic {
  position: relative;
  flex: 0 0 auto;
  width: 460px;
  height: 240px;
  margin: 0 6px 0 0;
  border: 1px solid var(--v2-line-strong);
  background: #050506;
  box-shadow: 0 0 0 5px #0A0908, 0 0 0 6px #4A3B22;
}

.pb-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) {
  .pb-crumbs a:hover {
    color: var(--v2-gold-light);
  }
}

@media (max-width: 1279px) {
  .pb-copy {
    max-width: 520px;
  }

  .pb-pic {
    width: 420px;
    height: 220px;
  }
}

/* iPad portrait: slim bar, banner sits right under it */
@media (max-width: 1023px) {
  .pb-inner {
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .pb-pic {
    width: 330px;
    height: 186px;
  }

  /* Devlog + FAQ: title block, then the picture full width */
  .pb-stack .pb-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding-bottom: 40px;
  }

  .pb-stack .pb-pic {
    width: auto;
    height: 330px;
    margin: 0 6px;
  }
}

/* iPhone portrait */
@media (max-width: 767px) {
  .pb-inner,
  .pb-stack .pb-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .pb-copy {
    gap: 12px;
  }

  .pb-title {
    font-size: 44px;
    line-height: 52px;
  }

  .pb-pic,
  .pb-stack .pb-pic {
    width: auto;
    height: 200px;
    margin: 0 6px 6px;
  }
}

/* Short landscape phone: compact row so real content shows on the first screen */
@media (max-height: 500px) and (orientation: landscape) {
  .pb-inner,
  .pb-stack .pb-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .pb-copy {
    gap: 6px;
  }

  .pb-title {
    font-size: 40px;
    line-height: 46px;
  }

  .pb-line {
    font-size: 21px;
    line-height: 26px;
  }

  .pb-pic,
  .pb-stack .pb-pic {
    width: 280px;
    height: 136px;
    margin: 6px;
  }
}

/* ---------- Title rule with the gold end diamond (reuses .title-rule from site.css) ---------- */
.title-rule.has-diamond {
  gap: 18px;
}

.title-rule.has-diamond::after {
  height: 16px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Crect x='4' y='4' width='8' height='8' transform='rotate(45 8 8)' fill='%23C9A55C'/%3E%3C/svg%3E") right center / 16px 16px no-repeat,
    linear-gradient(90deg, var(--v2-line-strong), rgba(138, 110, 60, 0)) left center / calc(100% - 34px) 1px no-repeat;
}

@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .title-rule.has-diamond {
    gap: 14px;
    font-size: 30px;
    line-height: 38px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .title-rule.has-diamond {
    font-size: 32px;
    line-height: 40px;
  }
}

/* Filtered-out posts and empty sections stay hidden even when a class sets display. */
.page-content [hidden] {
  display: none !important;
}

/* ---------- News: intro + filter chips ---------- */
.nw-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 40px;
}

.nw-top {
  background: linear-gradient(180deg, #0C0B0A 0%, rgba(12, 11, 10, 0) 100%);
}

.nw-line {
  margin: 0;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 26px;
}

.nw-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 26px 0 0;
}

.nw-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  margin: 0;
  padding: 0 22px;
  border: 1px solid var(--v2-line);
  background: rgba(10, 10, 14, 0.88);
  color: var(--v2-gold-pale);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 18px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nw-filter img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.nw-filter.is-active {
  border-color: var(--v2-gold-light);
  background: var(--v2-gold);
  box-shadow: 0 0 0 3px rgba(10, 10, 14, 0.9);
  color: #1A1408;
  font-weight: 800;
}

@media (hover: hover) {
  .nw-filter:not(.is-active):hover {
    border-color: var(--v2-gold);
    color: #FFF1C9;
  }
}

/* ---------- Shared label chips on news pictures ---------- */
.nw-cat {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--v2-line-strong);
  background: rgba(10, 10, 14, 0.92);
  color: var(--v2-gold-light);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 18px;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.nw-cat img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.nw-cat-gold {
  top: 14px;
  left: 14px;
  border-color: var(--v2-gold-light);
  background: var(--v2-gold);
  color: #1A1408;
}

.nw-tag {
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  background: rgba(7, 7, 10, 0.78);
  font-size: 14px;
  line-height: 18px;
}

/* ---------- Featured post ---------- */
.nw-featured-section {
  padding-top: 40px;
}

.nw-featured {
  display: flex;
  border: 1px solid var(--v2-line-strong);
  background: rgba(10, 10, 14, 0.88);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--v2-line-dark);
}

.nw-featured-pic {
  position: relative;
  flex: 0 0 61%;
  height: 440px;
  margin: 0;
  overflow: hidden;
  background: #050506;
}

.nw-featured-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nw-featured-pic .nw-tag {
  top: 14px;
  right: 14px;
}

.nw-featured-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  padding: 48px;
}

.nw-meta {
  margin: 0;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 22px;
}

.nw-featured-title {
  margin: 0;
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
}

.nw-featured-sum {
  margin: 0;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 28px;
}

.nw-read {
  width: 300px;
  height: 64px;
  margin-top: 8px;
  padding-inline: 40px;
  color: #2A1E0C;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 22px;
  text-transform: uppercase;
}

/* ---------- More news grid ---------- */
.nw-more {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 72px;
}

.nw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
}

.nw-card {
  min-width: 0;
}

.nw-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--v2-line);
  background: rgba(10, 10, 14, 0.88);
}

.nw-card-pic {
  position: relative;
  flex: 0 0 auto;
  height: 228px;
  overflow: hidden;
  background: #050506;
}

.nw-card-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nw-card-pic .nw-cat {
  left: 12px;
  bottom: 12px;
}

.nw-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px 26px;
}

.nw-date {
  margin: 0;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 22px;
}

.nw-card-title {
  margin: 0;
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 31px;
}

@media (hover: hover) {
  .nw-card-link:hover {
    border-color: var(--v2-gold);
  }

  .nw-card-link:hover .nw-card-title {
    color: var(--v2-gold-pale);
  }
}

/* ---------- Discord box ---------- */
.nw-discord-section {
  display: flex;
  justify-content: center;
  padding-top: 88px;
  padding-bottom: 104px;
}

.nw-discord {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 1000px;
  max-width: calc(100% - 10px);
  padding: 40px 48px;
  border: 1px solid var(--v2-line-strong);
  background: rgba(10, 10, 14, 0.88);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--v2-line-dark);
}

.nw-discord-icon {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.nw-discord-text {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.nw-discord-title {
  margin: 0;
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 42px;
}

.nw-discord-line {
  margin: 0;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 28px;
}

.nw-join {
  flex: 0 0 auto;
  width: 400px;
  height: 72px;
  padding-inline: 44px;
  color: #F6E7C4;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 22px;
  text-transform: uppercase;
}

/* ---------- iPad landscape (1024–1279) ---------- */
@media (max-width: 1279px) {
  .nw-featured-pic {
    flex-basis: 59%;
    height: 380px;
  }

  .nw-featured-text {
    padding: 36px;
  }

  .nw-featured-title {
    font-size: 34px;
    line-height: 42px;
  }

  .nw-card-pic {
    height: 190px;
  }

  .nw-discord {
    gap: 32px;
    padding: 40px;
  }

  .nw-join {
    width: 380px;
  }
}

/* ---------- iPad portrait (768–1023) ---------- */
@media (max-width: 1023px) {
  .nw-featured {
    flex-direction: column;
  }

  .nw-featured-pic {
    flex: 0 0 auto;
    height: 400px;
  }

  .nw-featured-text {
    gap: 18px;
    padding: 32px;
  }

  .nw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .nw-card-pic {
    height: 200px;
  }

  .nw-discord-section {
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .nw-discord {
    flex-direction: column;
    gap: 20px;
    padding: 40px;
    text-align: center;
  }

  .nw-discord-text {
    align-items: center;
  }
}

/* ---------- Phones (portrait + short landscape) ---------- */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .nw-intro {
    padding-top: 24px;
  }

  .nw-line {
    font-size: 19px;
    line-height: 24px;
  }

  .nw-filters {
    gap: 10px;
    padding-top: 20px;
  }

  .nw-featured-section {
    padding-top: 28px;
  }

  .nw-featured-text {
    gap: 12px;
    padding: 22px;
  }

  .nw-featured-title {
    font-size: 28px;
    line-height: 34px;
  }

  .nw-read {
    width: 280px;
    height: 60px;
  }

  .nw-more {
    padding-top: 56px;
  }

  .nw-discord-section {
    padding-top: 56px;
    padding-bottom: 64px;
  }
}

/* iPhone portrait */
@media (max-width: 767px) {
  .nw-featured-pic {
    height: 220px;
  }

  .nw-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 16px;
  }

  .nw-card-link {
    flex-direction: row;
  }

  .nw-card-pic {
    flex: 0 0 150px;
    height: auto;
    min-height: 128px;
  }

  .nw-card-pic .nw-cat {
    left: 8px;
    bottom: 8px;
    gap: 6px;
    padding: 6px 8px;
  }

  .nw-card-pic .nw-tag {
    top: 6px;
    right: 6px;
    padding: 3px 5px;
    font-size: 15px;
  }

  .nw-card-body {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding: 14px 18px 14px 22px;
  }

  .nw-card-title {
    font-size: 19px;
    line-height: 25px;
  }

  .nw-discord {
    gap: 16px;
    max-width: calc(100% - 10px);
    padding: 28px 12px;
  }

  .nw-discord-icon {
    width: 72px;
    height: 72px;
  }

  .nw-discord-title {
    font-size: 28px;
    line-height: 34px;
  }

  .nw-join {
    width: 330px;
    height: 64px;
    padding-inline: 34px;
    font-size: 15px;
    line-height: 18px;
    letter-spacing: 0;
  }
}

/* Short landscape phone (844×390): 2 columns, featured side by side */
@media (max-height: 500px) and (orientation: landscape) {
  .nw-filters {
    padding-top: 16px;
  }

  .nw-filter {
    height: 48px;
    padding-inline: 18px;
  }

  .nw-featured {
    flex-direction: row;
  }

  .nw-featured-pic {
    flex: 0 0 56%;
    height: 270px;
  }

  .nw-featured-text {
    padding: 26px;
  }

  .nw-read {
    width: 260px;
    height: 58px;
    max-width: 100%;
  }

  .nw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .nw-card-pic {
    height: 190px;
  }

  .nw-discord {
    flex-direction: column;
    gap: 20px;
    padding: 40px;
    text-align: center;
  }

  .nw-discord-text {
    align-items: center;
  }
}

/* ==========================================================================
   Version 3 "native to every screen" (lane site-v3-d). Mac (>= 1280) keeps
   the approved look; new there only: the banner picture opens the lightbox.
   Queries copied from the "Version 3" header in ../site.css:
     IPAD PORTRAIT  (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait)
     PHONE PORTRAIT (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait)
     SHORT landscape (max-height: 500px) and (orientation: landscape)  (last, wins)
   ========================================================================== */

/* ---------- Page banner: status slot + lightbox link (same in news/devlog/faq.css) ---------- */
/* The slot box disappears, so the injected .hero-status is a plain flex item of .pb-copy
   (and adds no gap on screens where it is hidden). */
.pb-status {
  display: contents;
}

.pb-pic-link {
  display: block;
  width: 100%;
  height: 100%;
}

.pb .hero-status {
  color: var(--v2-muted);
}

/* iPad portrait: one compact row under the 64px bar — words left, 16:9 picture right */
@media (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .pb-inner,
  .pb-stack .pb-inner {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .pb-copy {
    flex: 1 1 0;
    gap: 10px;
  }

  .pb-title {
    font-size: 48px;
    line-height: 56px;
  }

  .pb-line {
    font-size: 21px;
    line-height: 27px;
  }

  .pb-pic,
  .pb-stack .pb-pic {
    flex: 0 0 auto;
    width: min(380px, 46%);
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 6px;
  }
}

/* iPhone portrait: status line, title, one line, then a full-width 16:9 picture */
@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  .pb-inner,
  .pb-stack .pb-inner {
    gap: 18px;
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .pb-copy {
    gap: 8px;
  }

  .pb-crumbs {
    font-size: 16px;
    line-height: 20px;
  }

  .pb-title {
    font-size: 40px;
    line-height: 46px;
  }

  .pb-line {
    font-size: 19px;
    line-height: 25px;
  }

  .pb-pic,
  .pb-stack .pb-pic {
    width: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 5px 5px;
  }
}

/* iPhone landscape: words left, picture right, all inside 390 − 44px */
@media (max-height: 500px) and (orientation: landscape) {
  .pb-inner,
  .pb-stack .pb-inner {
    gap: 28px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .pb-copy {
    flex: 1 1 0;
  }

  .pb-title {
    font-size: 36px;
    line-height: 42px;
  }

  .pb-line {
    font-size: 19px;
    line-height: 25px;
  }

  .pb-pic,
  .pb-stack .pb-pic {
    width: 320px;
    height: 180px;
  }
}

/* ---------- News v3 ---------- */
/* Category word in the compact phone list (Mac shows it as a chip on the picture instead). */
.nw-kind {
  display: none;
}

/* iPad landscape (1024–1279): grid of 3 stays; the featured post fits next to its picture. */

/* iPad portrait: featured post side by side, 2-column cards */
@media (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .nw-intro {
    padding-top: 32px;
  }

  .nw-featured-section {
    padding-top: 32px;
  }

  .nw-featured {
    flex-direction: row;
  }

  .nw-featured-pic {
    flex: 0 0 54%;
    height: 330px;
  }

  .nw-featured-text {
    gap: 14px;
    padding: 28px;
  }

  .nw-featured-title {
    font-size: 30px;
    line-height: 38px;
  }

  .nw-featured-sum {
    font-size: 19px;
    line-height: 26px;
  }

  .nw-read {
    width: 100%;
    max-width: 280px;
    height: 58px;
    padding-inline: 24px;
    font-size: 16px;
  }

  .nw-more {
    padding-top: 56px;
  }

  .nw-card-pic {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* Phones (portrait + landscape): sticky swipe row of filter chips and a compact list */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  /* The banner already says "News", so the second intro is cut. The wrappers dissolve so
     the chip row's sticky range is the whole <main>. */
  .nw-top,
  .nw-top > .wrap {
    display: contents;
  }

  .nw-intro {
    display: none;
  }

  .nw-filters {
    position: sticky;
    z-index: 40;
    top: var(--bar-h);
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px var(--pad-r) 8px var(--pad-l);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-padding-inline: var(--pad-l) var(--pad-r);
    border-top: 1px solid var(--v2-line-dark);
    border-bottom: 1px solid var(--v2-line-dark);
    background: rgba(7, 7, 10, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .nw-filters::-webkit-scrollbar {
    display: none;
  }

  .nw-filter {
    flex: 0 0 auto;
    gap: 7px;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    letter-spacing: 0.03em;
  }

  .nw-filter img {
    width: 22px;
    height: 22px;
  }

  .nw-filter.is-active {
    box-shadow: none;
  }

  .nw-filter:focus-visible {
    outline: 2px solid var(--v2-gold-light);
    outline-offset: -4px;
  }

  .nw-featured-section {
    padding-top: 20px;
  }

  .nw-more {
    gap: 6px;
    padding-top: 40px;
  }

  .nw-more .nw-line {
    color: var(--v2-muted);
    font-size: 17px;
    line-height: 22px;
  }

  /* Compact list: thumb left, title + date right */
  .nw-grid {
    gap: 0 28px;
    padding-top: 8px;
  }

  .nw-card {
    border-bottom: 1px solid var(--v2-rule);
  }

  .nw-card-link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    height: 100%;
    min-height: 44px;
    padding: 12px 0;
    border: 0;
    background: none;
  }

  .nw-card-pic {
    flex: 0 0 120px;
    width: 120px;
    height: 76px;
    min-height: 0;
    border: 1px solid var(--v2-line-dark);
  }

  .nw-card-pic .nw-cat {
    display: none;
  }

  .nw-card-pic .nw-tag {
    top: 4px;
    right: 4px;
    padding: 1px 4px;
    font-size: 13px;
    line-height: 14px;
  }

  .nw-card-body {
    flex: 1 1 0;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 0;
  }

  .nw-card-title {
    order: -1;
    font-size: 18px;
    line-height: 23px;
  }

  .nw-date {
    font-size: 15px;
    line-height: 19px;
  }

  .nw-kind {
    display: inline;
    color: var(--v2-gold-light);
  }

  .nw-card-link::after {
    content: "›";
    flex: 0 0 auto;
    padding-right: 2px;
    color: var(--v2-gold);
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1;
  }
}

/* iPhone portrait: featured post runs edge to edge like an app's top story */
@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  .pb-crumbs,
  .pb-pic {
    display: none;
  }

  .nw-featured {
    margin-left: calc(-1 * var(--pad-l));
    margin-right: calc(-1 * var(--pad-r));
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  .nw-featured-pic {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .nw-featured-text {
    gap: 10px;
    padding: 18px var(--pad-r) 22px var(--pad-l);
  }

  .nw-featured-title {
    font-size: 26px;
    line-height: 32px;
  }

  .nw-featured-sum {
    font-size: 18px;
    line-height: 24px;
  }

  .nw-read {
    width: 100%;
    max-width: none;
    height: 56px;
    margin-top: 6px;
  }

  .nw-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nw-discord-section {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .nw-discord {
    max-width: none;
    padding: 24px 16px;
  }

  .nw-discord-icon {
    width: 56px;
    height: 56px;
  }

  .nw-discord-title {
    font-size: 24px;
    line-height: 30px;
  }

  .nw-discord-line {
    font-size: 18px;
    line-height: 24px;
  }

  .nw-join {
    width: 100%;
    height: 58px;
    padding-inline: 20px;
  }
}

/* iPhone landscape: featured side by side, compact list in 2 columns */
@media (max-height: 500px) and (orientation: landscape) {
  .nw-filters {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .nw-featured-section {
    padding-top: 16px;
  }

  .nw-featured-pic {
    flex: 0 0 52%;
    height: 250px;
  }

  .nw-featured-text {
    gap: 10px;
    padding: 20px 22px;
  }

  .nw-featured-title {
    font-size: 26px;
    line-height: 32px;
  }

  .nw-featured-sum {
    font-size: 18px;
    line-height: 24px;
  }

  .nw-read {
    width: 100%;
    max-width: 250px;
    height: 54px;
    padding-inline: 20px;
    font-size: 15px;
  }

  .nw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nw-card-pic {
    flex-basis: 112px;
    width: 112px;
    height: 70px;
  }

  .nw-discord-section {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .nw-discord {
    flex-direction: row;
    gap: 20px;
    padding: 22px 24px;
    text-align: left;
  }

  .nw-discord-text {
    align-items: flex-start;
  }

  .nw-discord-icon {
    width: 56px;
    height: 56px;
  }

  .nw-discord-title {
    font-size: 24px;
    line-height: 30px;
  }

  .nw-discord-line {
    font-size: 17px;
    line-height: 22px;
  }

  .nw-join {
    width: 300px;
    height: 56px;
    padding-inline: 24px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nw-filters {
    scroll-behavior: auto;
  }
}

/* Lead fix: the featured picture's img rule also hit the small category icon (it grew to 64px+). */
.nw-featured-pic .nw-cat img,
.nw-card-pic .nw-cat img {
  position: static;
  width: 20px !important;
  height: 20px !important;
  min-height: 0;
  object-fit: contain;
}

/* ==========================================================================
   Fix pass 2026-11-27 (lane d): only Devlog #1 is a real post. The rest are
   non-link "Post coming soon" cards. Tags are at least 13px everywhere.
   ========================================================================== */
.pb-pic .tag,
.nw-tag {
  font-size: 13px;
  line-height: 17px;
}

.nw-featured-pic .nw-tag {
  font-size: 14px;
  line-height: 18px;
}

/* Build label as text: only used in the compact phone list (see below). */
.nw-build {
  display: none;
}

/* A coming-soon card is not a link: no hover lift, no pointer. */
.nw-soon {
  cursor: default;
}

@media (hover: hover) {
  .nw-card-link.nw-soon:hover {
    border-color: var(--v2-line);
  }

  .nw-card-link.nw-soon:hover .nw-card-title {
    color: var(--v2-text);
  }
}

.nw-soon .nw-date {
  color: var(--v2-muted);
  font-style: italic;
}

.nw-soon .nw-kind {
  font-style: normal;
}

.nw-card-pic picture {
  display: contents;
}

/* Phones: the thumbnail keeps only a small gold corner dot; the build label moves
   under the title as 13px text, so the tag no longer covers a 120px picture. */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .nw-card-pic .nw-tag {
    display: none;
  }

  .nw-card-pic::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(7, 7, 10, 0.9);
    border-radius: 50%;
    background: var(--v2-gold-light);
    pointer-events: none;
  }

  .nw-build {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--v2-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 17px;
  }

  .nw-build::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--v2-gold-light);
  }

  /* No chevron: the card does not open anything yet. */
  .nw-card-link.nw-soon::after {
    content: none;
  }

  .nw-card-link.nw-soon {
    padding-right: 2px;
  }
}
