/* UAE Startup Story News page (/news/) - premium news landing.
   BBC / Gulf News style: a lead section reusing the homepage
   .uss-news grid, then category sections in a consistent
   editorial pattern. Scoped to .uss-news-page, so other pages
   are untouched. Uses the design-system tokens. */

.uss-news-page {
  width: 100%;
  background: var(--uss-paper);
  color: var(--uss-ink);
}

/* Full width: the News archive renders inside GeneratePress's
   1200px grid-container, so the page reads narrower than the
   header and the grey body background shows at the sides.
   Break the grid-container out to the full viewport width;
   the inner .uss-container still holds the content to the
   1250px site width, aligned with the header. */
.post-type-archive-news .site.grid-container {
  max-width: 100%;
}

.post-type-archive-news .site-content {
  display: block;
  padding: 0;
}

/* ------------------------------------------------------------------
   Page header: title, intro, category chips.
   ------------------------------------------------------------------ */

.uss-news-page-head {
  padding: 3rem 0 2rem;
  border-bottom: 2px solid var(--uss-line-strong);
}

.uss-news-page-head h1 {
  font-size: var(--uss-h1);
  margin: 0 0 0.75rem;
}

.uss-news-page-intro {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--uss-muted);
  max-width: 45rem;
  margin: 0 0 1.5rem;
}

.uss-news-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.uss-news-chip {
  font-family: var(--uss-font-nav);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--uss-ink);
  border: 1px solid var(--uss-line-strong);
  border-radius: var(--uss-radius);
  padding: 0.5rem 0.875rem;
  white-space: nowrap;
}

/* The chips are anchor links to sections on this same page, not
   category links, and there is no selected state. They all look
   the same; hover inverts them. The base .uss-custom a rule
   (ink) beats a single chip class, so the hover rule is scoped
   to .uss-news-page to win. */
.uss-news-page .uss-news-chip:hover {
  background: var(--uss-ink);
  color: var(--uss-paper);
}

/* Anchor jumps land the section heading below the sticky
   header instead of under it. */
.uss-news-page section[id],
.uss-news-page div[id] {
  scroll-margin-top: 6rem;
}

/* The lead section reuses .uss-news from new-home.css. On this
   page it has no bottom border of its own, so the category
   sections below read as one continuous news flow. */
.uss-news-page .uss-news {
  border-bottom: 1px solid var(--uss-line);
}

/* ------------------------------------------------------------------
   Category feature sections (Funding News, Latest In Tech):
   lead story + 3 cards.
   ------------------------------------------------------------------ */

.uss-cat-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--uss-line);
}

.uss-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--uss-line-strong);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.uss-cat-head h2 {
  font-size: var(--uss-h2);
  margin: 0;
}

.uss-cat-head a {
  font-size: 0.875rem;
  color: var(--uss-muted);
  white-space: nowrap;
}

.uss-cat-head a:hover { color: var(--uss-ink); }

/* Lead on top (image + text side by side), then 3 cards in a
   row below. The earlier two-column layout (lead left, cards
   stacked right) left a large blank area under the lead, because
   one lead story can never fill the height of three stacked
   cards. This layout has no height mismatch. */

.uss-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.uss-cat-lead {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--uss-line);
}

.uss-cat-lead-media {
  display: block;
  position: relative;
  overflow: hidden;
}

/* Images are shown at their natural aspect ratio, never cropped.
   The news images mix 3:2 photos and wider screenshots with
   baked-in headline text; forcing them into a 16:9 frame with
   object-fit: cover cut the text off at the sides. */
.uss-cat-lead-media img {
  display: block;
  width: 100%;
  height: auto;
}

.uss-cat-lead h3 {
  font-size: 1.625rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.uss-cat-lead h3 a:hover { color: var(--uss-accent); }

.uss-cat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.uss-cat-card-media {
  display: block;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.uss-cat-card-media img {
  display: block;
  width: 100%;
  height: auto;
}

.uss-cat-card h4 {
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.uss-cat-card h4 a:hover { color: var(--uss-accent); }

/* ------------------------------------------------------------------
   Across the Emirates: Dubai + Abu Dhabi, two columns.
   ------------------------------------------------------------------ */

.uss-emirates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.uss-emirates-col h3 {
  font-family: var(--uss-font-heading);
  font-size: 1.375rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--uss-line);
}

.uss-emirates-col h3 a:hover { color: var(--uss-accent); }

.uss-emirates-media {
  display: block;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.uss-emirates-media img {
  display: block;
  width: 100%;
  height: auto;
}

.uss-emirates-lead h4 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.uss-emirates-lead h4 a:hover { color: var(--uss-accent); }

.uss-emirates-lead {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--uss-line);
}

/* ------------------------------------------------------------------
   Headline lists (Emirates + More columns).
   ------------------------------------------------------------------ */

.uss-headline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.uss-headline-list li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--uss-line);
}

.uss-headline-list li:last-child {
  border-bottom: 0;
}

.uss-headline-list h4 {
  font-size: 1.0625rem;
  line-height: 1.4;
  margin: 0 0 0.375rem;
}

.uss-headline-list h4 a:hover { color: var(--uss-accent); }

/* ------------------------------------------------------------------
   More from the ecosystem: three headline columns.
   ------------------------------------------------------------------ */

.uss-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.uss-more-col h3 {
  font-family: var(--uss-font-heading);
  font-size: 1.375rem;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--uss-line);
}

.uss-more-col h3 a:hover { color: var(--uss-accent); }

.uss-more-col .uss-news-explore,
.uss-emirates-col .uss-news-explore {
  display: inline-block;
  margin-top: 1rem;
}

/* ------------------------------------------------------------------
   Responsive.
   ------------------------------------------------------------------ */

@media (max-width: 64rem) {
  .uss-cat-lead {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .uss-cat-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .uss-more-grid {
    grid-template-columns: 1fr 1fr;
  }

  .uss-more-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 48rem) {
  .uss-news-page-head {
    padding: 2rem 0 1.5rem;
  }

  .uss-cat-section {
    padding: 2rem 0;
  }

  .uss-cat-cards {
    grid-template-columns: 1fr;
  }

  .uss-emirates-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .uss-more-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .uss-more-col:last-child {
    grid-column: auto;
  }
}
