/* =====================================================================
   Eclesiar — Landing Page 07 news theme.
   Shared by:
     - the "Latest Game News" section on landing page 7 (gameNews.phtml)
     - the standalone, logged-out newspaper-0 listing + article pages
       (index/landingpage/news/list.phtml + article.phtml)
   Depends on the /3/ style.css bundle for the Wargate font, the --yellow
   accent and the dark page background (#060808).

   Selectors that share an element with landing page 7's inline
   `.information_section` styles are scoped under `.np_news` so they win on
   specificity over page-7's `.information_section h3 / p` rules.
   ===================================================================== */

:root {
  --np-line: rgba(255, 255, 255, 0.12);
  --np-text: #e9edf5;
  --np-muted: #aeb6c6;
  --np-panel: rgba(8, 14, 32, 0.55);
}

/* ---------------------------------------------------------------------
   1) Centered news section (landing page 7) + shared newsfeed
   ------------------------------------------------------------------- */

/* The section reuses `.information_section` for the map reveal + overlay,
   but its inner column is centered (page-7 info sections are left-padded
   by `.left_gap`, which reads as off-centre). */
.np_news .np_news_inner {
  position: relative;
  z-index: 2;
  max-width: 86rem;
  margin: 0 auto;
  text-align: center;
}
.np_news .np_news_lead {
  max-width: 64rem;
  margin: 0 auto;
}

/* Newsfeed: a vertical list of editorial entries, deliberately different
   from the bordered "pillar" cards used elsewhere on the page. */
.np_news .np_feed {
  margin: 4.5rem auto 0;
  max-width: 82rem;
  text-align: left;
}
.np_news .np_entry {
  display: flex;
  gap: 2.6rem;
  align-items: flex-start;
  padding: 2.8rem 0.5rem;
  border-top: 1px solid var(--np-line);
  transition: background 0.2s ease;
}
.np_news .np_feed .np_entry:last-child {
  border-bottom: 1px solid var(--np-line);
}
.np_news .np_entry:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Date stamp */
.np_news .np_date {
  flex: 0 0 8.5rem;
  text-align: center;
  border-right: 2px solid var(--yellow, #fde23c);
  padding-right: 2rem;
}
.np_news .np_date .np_day {
  display: block;
  font-family: "Wargate", sans-serif;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--yellow, #fde23c);
}
.np_news .np_date .np_my {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--np-muted);
}

/* Entry body */
.np_news .np_body {
  flex: 1 1 auto;
  min-width: 0;
}
.np_cat {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #10131c;
  background: var(--yellow, #fde23c);
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}
.np_news .np_entry h3 {
  margin: 0 0 1rem;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.22;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}
.np_news .np_entry h3 a {
  color: #fff;
  text-decoration: none;
}
.np_news .np_entry h3 a:hover {
  color: var(--yellow, #fde23c);
}
.np_news .np_excerpt {
  margin: 0 0 1.4rem;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--np-text);
}
.np_more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--yellow, #fde23c);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}
.np_more:hover {
  color: #fff;
}
.np_news .np_news_cta {
  margin-top: 4.5rem;
  text-align: center;
}

/* ---------------------------------------------------------------------
   2) Standalone, logged-out newspaper-0 pages (listing + article)
   ------------------------------------------------------------------- */
.np_page {
  position: relative;
  min-height: 100vh;
  color: var(--np-text);
  padding-bottom: 8rem;
  overflow: hidden;
}
/* Page-7 ambience without the heavy live-map iframe: dark base + faded map. */
.np_page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #060808;
}
.np_page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/assets/landingpages/3/map.png?v=20260609") center center / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.np_container {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Top bar: logo + back + register */
.np_topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 120rem;
  margin: 0 auto;
  padding: 2.4rem 3rem;
}
.np_topbar .np_brand img {
  height: 4.4rem;
  width: auto;
}
.np_topbar .np_topbar_actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.np_back {
  color: var(--np-text);
  font-weight: 600;
  font-size: 1.5rem;
  text-decoration: none;
  white-space: nowrap;
}
.np_back:hover {
  color: var(--yellow, #fde23c);
}
.np_btn {
  display: inline-block;
  padding: 1.1rem 2.6rem;
  border-radius: 0.7rem;
  background: var(--yellow, #fde23c);
  color: #111 !important;
  font-family: "Wargate", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.7rem;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s ease;
}
.np_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(253, 226, 60, 0.6);
  color: #111 !important;
}

/* Listing header */
.np_page_head {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 0 1rem;
}
.np_page_head h1 {
  font-family: "Wargate", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 5.6rem;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 1.4rem;
  text-shadow: 2px 3px black;
}
.np_page_head p {
  max-width: 60rem;
  margin: 0 auto;
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--np-text);
}

/* Listing newsfeed sits on a subtle panel so it reads over the map */
.np_listing {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  padding: 1rem 3rem 2rem;
  border-radius: 1rem;
  background: var(--np-panel);
  backdrop-filter: blur(2px);
  border-top: 3px solid var(--yellow, #fde23c);
}

/* Pagination */
.np_pagination {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 3.5rem;
}
.np_pagination a,
.np_pagination span {
  min-width: 4rem;
  padding: 0.9rem 1.4rem;
  text-align: center;
  border-radius: 0.6rem;
  border: 1px solid var(--np-line);
  color: var(--np-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
}
.np_pagination a:hover {
  border-color: var(--yellow, #fde23c);
  color: var(--yellow, #fde23c);
}
.np_pagination .np_page_current {
  background: var(--yellow, #fde23c);
  border-color: var(--yellow, #fde23c);
  color: #111;
}

/* Empty state */
.np_empty {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 0;
  font-size: 1.8rem;
  color: var(--np-muted);
}

/* ---------------------------------------------------------------------
   3) Standalone article page
   ------------------------------------------------------------------- */
.np_article {
  position: relative;
  z-index: 2;
  margin: 3rem auto 0;
  padding: 0 0 4rem;            /* the hero header image runs full-bleed to the card edges */
  border-radius: 1rem;
  overflow: hidden;            /* clip the cover image to the rounded corners */
  background: var(--np-panel);
  backdrop-filter: blur(2px);
  border-top: 3px solid var(--yellow, #fde23c);
}
/* Body and below-header sections keep the inner gutter the header image breaks out of. */
.np_article_inner {
  padding: 0 3.5rem;
}
/* Full-cover hero header: the article image fills the whole header, with the
   category/title/meta overlaid at the bottom over a dark scrim for legibility. */
.np_article_head {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 32rem;
  margin-bottom: 3rem;
  background-color: #0b1020;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.np_article_head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 8, 0.94) 0%, rgba(6, 8, 8, 0.55) 55%, rgba(6, 8, 8, 0.2) 100%);
}
.np_article_head_content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3.5rem;
}
.np_article_title {
  font-family: "Wargate", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 4.4rem;
  line-height: 1.1;
  color: #fff;
  margin: 1.2rem 0 1.6rem;
  text-shadow: 2px 3px black;
}
.np_article_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.4rem;
  align-items: center;
  font-size: 1.4rem;
  color: var(--np-muted);
}
.np_article_meta .np_meta_pub {
  color: var(--yellow, #fde23c);
  font-weight: 700;
}

/* User-authored article body — light typography over the dark theme. */
.np_article_body {
  font-size: 1.7rem;
  line-height: 1.85;
  color: var(--np-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.np_article_body p { margin: 0 0 1.7rem; }
.np_article_body h1,
.np_article_body h2,
.np_article_body h3,
.np_article_body h4,
.np_article_body h5,
.np_article_body h6 {
  color: #fff;
  margin: 2.6rem 0 1.2rem;
  line-height: 1.25;
}
.np_article_body a {
  color: var(--yellow, #fde23c);
  text-decoration: underline;
}
.np_article_body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.6rem;
  margin: 1.8rem 0;
}
.np_article_body ul,
.np_article_body ol { margin: 0 0 1.7rem 2rem; }
.np_article_body li { margin-bottom: 0.6rem; }
.np_article_body blockquote {
  margin: 0 0 1.7rem;
  padding: 0.6rem 0 0.6rem 2rem;
  border-left: 3px solid var(--yellow, #fde23c);
  color: var(--np-text);
  font-style: italic;
}
.np_article_body iframe {
  max-width: 100%;
  margin: 1.8rem 0;
  border: 0;
  border-radius: 0.6rem;
}
.np_article_body table {
  width: 100%;
  margin-bottom: 1.7rem;
  border-collapse: collapse;
}
.np_article_body td,
.np_article_body th {
  padding: 0.8rem 1rem;
  border: 1px solid var(--np-line);
}

/* Paywall notice (logged-out variant) */
.np_paywall {
  margin-top: 2.5rem;
  padding: 2.6rem;
  text-align: center;
  border: 2px dashed var(--yellow, #fde23c);
  border-radius: 1rem;
  background: rgba(253, 226, 60, 0.06);
}
.np_paywall h4 {
  color: var(--yellow, #fde23c);
  font-weight: 700;
  margin: 0 0 1rem;
}
.np_paywall p { margin: 0 0 1.6rem; color: var(--np-text); }

/* Prev / next */
.np_article_nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.np_article_nav a {
  color: var(--np-text);
  font-weight: 600;
  font-size: 1.5rem;
  text-decoration: none;
}
.np_article_nav a:hover { color: var(--yellow, #fde23c); }
.np_article_nav .np_next { margin-left: auto; }

/* Conversion box at the foot of the standalone pages */
.np_join {
  position: relative;
  z-index: 2;
  margin: 4rem auto 0;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 1rem;
  background: rgba(8, 14, 32, 0.65);
  border: 1px solid var(--np-line);
}
.np_join h3 {
  font-family: "Wargate", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 3.2rem;
  color: #fff;
  margin: 0 0 1.2rem;
}
.np_join p { color: var(--np-text); font-size: 1.6rem; margin: 0 0 2.2rem; }
.np_join .np_join_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
}
.np_join .np_btn_secondary {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.np_join .np_btn_secondary:hover {
  border-color: var(--yellow, #fde23c);
  color: var(--yellow, #fde23c) !important;
  box-shadow: none;
}

/* ---------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .np_news .np_entry { flex-direction: column; gap: 1.2rem; }
  .np_news .np_date {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    flex: 0 0 auto;
    border-right: 0;
    border-bottom: 2px solid var(--yellow, #fde23c);
    padding: 0 0 0.8rem 0;
    text-align: left;
  }
  .np_news .np_date .np_day { font-size: 2.8rem; }
  .np_news .np_date .np_my { margin-top: 0; }
  .np_news .np_entry h3 { font-size: 2.2rem; }

  .np_topbar { flex-wrap: wrap; padding: 1.6rem; gap: 1.2rem; }
  .np_page_head h1 { font-size: 4rem; }
  .np_article { padding: 0 0 3rem; }
  .np_article_inner { padding: 0 1.6rem; }
  .np_article_head { min-height: 20rem; margin-bottom: 2rem; }
  .np_article_head_content { padding: 2rem 1.6rem; }
  .np_article_title { font-size: 3.2rem; }
  .np_listing { padding: 0.5rem 1.4rem 1.4rem; }
}
