/* =========================================================================
   REBEL CARS // pages/news.css
   News page only. Everything here is prefixed .news-
   01  Hero (compact, giant title)
   02  Feed: launcher NEWS panel, large items
   03  Follow the channels
   ========================================================================= */


/* =========================================================================
   01  HERO
   ========================================================================= */
.news-hero { padding-bottom: clamp(40px, 5vw, 72px); }
/* Anchored below the fixed header: in this short hero a centred outline pushed
   its top stroke up behind the navigation. */
.news-hero > .rc-outline { top: calc(var(--header-h) + 20px); right: -10%; width: max(820px, 64vw); transform: none; }
.news-hero .rc-pagehero__inner {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.news-hero__copy { gap: 18px; }
.news-hero__title {
  font-size: clamp(5rem, 15vw, 13rem);
  line-height: .78;
  letter-spacing: .005em;
}
/* HUD readout bottom right: mono label over a tick ruler */
.news-hero__hud {
  display: grid;
  justify-items: end;
  gap: 12px;
  padding-bottom: 6px;
}
.news-hero__ruler { width: clamp(160px, 18vw, 280px); }
@media (max-width: 720px) {
  .news-hero .rc-pagehero__inner { grid-template-columns: minmax(0, 1fr); }
  .news-hero__hud { display: none; }
}


/* =========================================================================
   02  FEED
   ========================================================================= */
.news-feed { --glow-x: 10%; --glow-y: 420px; padding-top: clamp(64px, 8vw, 120px); }
.news-feed__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(44px, 5vw, 72px);
}

.news-feed__coords {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.news-panel { position: relative; }
.news-panel__cross--tr { top: -18px; right: -18px; }
.news-panel__cross--bl { bottom: -18px; left: -18px; }
.news-panel .rc-panel__head { min-height: 72px; padding-block: 18px; }
.news-panel .rc-panel__title { font-size: 1.05rem; letter-spacing: .3em; }
.news-panel__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3vw, 40px);
}
.news-panel__body > * + * { margin-top: 0; }

.news-list { gap: 18px; }
.news-item { padding: clamp(24px, 3.2vw, 44px) clamp(22px, 3.2vw, 48px); }
.news-item .rc-news__label { margin-bottom: 14px; font-size: .78rem; letter-spacing: .28em; }
.news-item--lead { background: linear-gradient(90deg, var(--red-wash), rgba(255,255,255,.018) 46%); }
.news-item--lead .rc-news__title { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: .92; max-width: 16ch; }
.news-item--lead .rc-news__body { margin-top: 18px; font-size: clamp(1.12rem, 1.4vw, 1.3rem); line-height: 1.5; max-width: 40ch; }
.news-item:not(.news-item--lead) .rc-news__title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }

/* Launcher echo: the REBELCARS.IO wordmark in the panel's bottom-right corner */
.news-panel__foot {
  display: flex;
  justify-content: flex-end;
  padding-top: clamp(24px, 4vw, 56px);
}
.news-panel__wordmark { width: clamp(150px, 17vw, 240px); opacity: .9; }

/* Livery render beside the panel. Desktop: right column above "Follow the
   channels", reaching into the column gap and bleeding off the right page
   edge (the section clips it). Mobile: after the panel, a modest 2:1 crop. */
.news-car {
  --bleed: calc(var(--gutter) - min(0px, (var(--wrap) - 100vw) / 2));
  --fade-l: 20%;
  --fade-r: 0%;
  --fade-t: 16%;
  --fade-b: 24%;
  position: relative;
  margin: 0;
}
/* 2:1 crop of the 16:10 render (rows 12-92 %): the car keeps its splitter
   and the studio credit at the bottom-left stays fully outside the frame. */
.news-car img { aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 60%; }
.news-car__cap {
  position: absolute;
  left: var(--fade-l);
  right: var(--bleed);
  top: 5%; /* in the empty band above the roof: the car fills the bottom */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font: 500 .68rem/1 var(--font-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
}
@media (min-width: 961px) {
  .news-feed__grid { grid-template-rows: minmax(0, 1fr) auto; row-gap: 8px; }
  /* The panel sits on top: the render starts just behind its right edge. */
  .news-feed__main { position: relative; z-index: 1; grid-column: 1; grid-row: 1 / 3; }
  .news-car {
    --fade-l: 6%;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin-left: calc(clamp(40px, 6vw, 96px) * -1 - 12px);
    margin-right: calc(var(--bleed) * -1);
  }
  .news-car__cap { left: calc(clamp(40px, 6vw, 96px) + 12px); }
  .news-follow { grid-column: 2; grid-row: 2; }
}


/* =========================================================================
   03  FOLLOW THE CHANNELS
   ========================================================================= */
.news-follow {
  display: grid;
  justify-items: start;
  gap: 22px;
  padding-bottom: 4px;
}
.news-follow__title { font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: .88; }
.news-follow__line { max-width: 22rem; font-size: 1.15rem; line-height: 1.5; color: var(--text-2); }
.news-channels { position: relative; z-index: 1; }

@media (max-width: 960px) {
  .news-feed__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .news-follow { padding-top: 16px; }
  .news-car { --fade-l: 10%; --fade-r: 10%; --fade-t: 14%; --fade-b: 20%; margin: calc(clamp(40px, 6vw, 96px) * -.4) calc(var(--gutter) * -1); max-width: none; }
  .news-car img { width: 100%; max-height: 300px; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 64%; }
  .news-car__cap { left: var(--gutter); right: var(--gutter); top: 6%; }
}
@media (max-width: 359px) {
  .news-car__cap > :last-child { display: none; }
}
@media (max-width: 480px) {
  .news-panel__cross { display: none; }
  .news-feed__coords .rc-coord:last-child { display: none; }
  .news-item { padding: 22px 18px; }
}
