/* =========================================================
   GEOSCI — EDITORIAL NEWS news_news_article
   Designed to complement the sandstone / warm-paper news hub.
========================================================= */

:root {
  --news_article-paper: #f3f1eb;
  --news_article-card: #faf9f5;
  --news_article-ink: #0b0f0e;
  --news_article-muted: #65665f;
  --news_article-gold: #b8a06a;
  --news_article-line: rgba(11, 15, 14, 0.16);
  --news_article-soft: #e8e5dc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body.geosci-news_article-page {
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 15%, rgba(184, 160, 106, 0.08), transparent 32%),
    var(--news_article-paper);
  color: var(--news_article-ink);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.geosci-news_article-page a {
  color: inherit;
}


/* Page frame */
.news_article-page {
  padding: 34px 0 100px;
}

.news_article-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.news_article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #77776f;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.news_article-breadcrumb a {
  color: #4d5049;
  text-decoration: none;
  transition: color 180ms ease;
}

.news_article-breadcrumb a:hover {
  color: #8d7748;
}

.news_article-breadcrumb span:nth-child(2) {
  color: var(--news_article-gold);
}

/* news_article heading */
.news_article-header {
  max-width: 970px;
  margin: 48px auto 38px;
  text-align: center;
  background-color: #f3f1eb;
}

.news_article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 23px;
  color: #8d7748;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.news_article-kicker-line {
  display: inline-block;
  width: 27px;
  height: 1px;
  background: var(--news_article-gold);
}

.news_article-header h1 {
  max-width: 960px;
  margin: 0 auto;
  color: var(--news_article-ink);
  font-size: clamp(2.7rem, 6.1vw, 5.7rem);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.news_article-deck {
  max-width: 720px;
  margin: 26px auto 0;
  color: #55574f;
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.8;
  text-wrap: pretty;
}

.news_article-byline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--news_article-line);
}

.news_article-author {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
}

.author-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(184, 160, 106, 0.65);
  border-radius: 50%;
  color: #8d7748;
  font-size: 15px;
  font-weight: 800;
}

.author-name,
.author-role {
  display: block;
}

.author-name {
  color: #242620;
  font-size: 11px;
  font-weight: 700;
}

.author-role {
  margin-top: 4px;
  color: #77776f;
  font-size: 10px;
}

.news_article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6d6e66;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--news_article-gold);
}

/* Hero image */
.news_article-hero {
  margin: 0;
}

.news_article-hero img {
  display: block;
  width: 100%;
  height: clamp(300px, 54vw, 650px);
  object-fit: cover;
  object-position: center 48%;
  background: var(--news_article-soft);
}

.news_article-hero figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0 16px;
  border-bottom: 1px solid var(--news_article-line);
  color: #77776f;
  font-size: 10px;
  line-height: 1.6;
}

.news_article-hero figcaption span {
  flex: 0 0 auto;
  color: #8d7748;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Reading layout: slim index rail + comfortable text measure */
.news_article-layout {
  display: grid;
  grid-template-columns: 175px minmax(0, 700px);
  justify-content: center;
  gap: clamp(42px, 7vw, 105px);
  padding: 66px 0 78px;
}

.news_article-rail {
  align-self: start;
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding-top: 7px;
}

.rail-label {
  color: #8d7748;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.news_article-rail > a {
  color: #5d5e57;
  font-size: 11px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 180ms ease;
}

.news_article-rail > a:hover {
  color: #8d7748;
}

.rail-rule {
  width: 100%;
  height: 1px;
  margin: 7px 0 2px;
  background: var(--news_article-line);
}

.news_article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4f5149;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.news_article-share span {
  color: #8d7748;
  font-size: 15px;
  transition: transform 180ms ease;
}

.news_article-share:hover span {
  transform: translate(3px, -3px);
}

.share-status {
  min-height: 12px;
  color: #77776f;
  font-size: 10px;
  line-height: 1.5;
}

.news_article-body {
  min-width: 0;
  color: #343630;
  font-size: 15px;
  line-height: 1.95;
}

.news_article-body p {
  margin: 0 0 25px;
}

.news_article-body .news_article-lead {
  margin-bottom: 28px;
  color: #22251f;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
  letter-spacing: -0.025em;
}

.news_article-body h2 {
  margin: 48px 0 17px;
  color: var(--news_article-ink);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.055em;
  scroll-margin-top: 30px;
}

.news_article-quote {
  position: relative;
  margin: 42px 0;
  padding: 27px 30px 27px 32px;
  border-left: 2px solid var(--news_article-gold);
  background: rgba(232, 229, 220, 0.64);
}

.quote-mark {
  display: block;
  height: 31px;
  color: var(--news_article-gold);
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 1;
}

.news_article-quote p {
  margin: 8px 0 15px;
  color: #22251f;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55;
  letter-spacing: -0.035em;
}

.news_article-quote cite {
  color: #77776f;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news_article-data-note {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  margin: 35px 0;
  padding: 22px 0;
  border-top: 1px solid var(--news_article-line);
  border-bottom: 1px solid var(--news_article-line);
}

.data-note-index {
  padding-top: 4px;
  color: #8d7748;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.news_article-data-note h3 {
  margin: 0 0 7px;
  color: var(--news_article-ink);
  font-size: 15px;
  font-weight: 600;
}

.news_article-data-note p {
  margin: 0;
  color: #5b5d55;
  font-size: 12px;
  line-height: 1.8;
}

.news_article-body .news_article-ending {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--news_article-line);
  color: #22251f;
  font-weight: 500;
}

.news_article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--news_article-line);
}

.news_article-tags > span {
  margin-right: 5px;
  color: #8d7748;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.news_article-tags a {
  padding: 7px 10px;
  border: 1px solid rgba(11, 15, 14, 0.14);
  border-radius: 2px;
  color: #55574f;
  font-size: 10px;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.news_article-tags a:hover {
  border-color: var(--news_article-gold);
  background: rgba(184, 160, 106, 0.08);
  color: #806b40;
}

/* Related stories */
.news_article-related {
  padding-top: 45px;
  border-top: 1px solid var(--news_article-line);
}

.related-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.related-heading .news_article-kicker {
  margin-bottom: 12px;
}

.related-heading h2 {
  margin: 0;
  color: var(--news_article-ink);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.065em;
}

.related-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5px;
  color: #55574f;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.related-all span {
  color: #8d7748;
  font-size: 17px;
  transition: transform 180ms ease;
}

.related-all:hover span {
  transform: translateX(4px);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  min-width: 0;
  border: 1px solid rgba(11, 15, 14, 0.10);
  background: var(--news_article-card);
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 160, 106, 0.6);
  box-shadow: 0 16px 35px rgba(11, 15, 14, 0.07);
}

.related-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.55;
  background: var(--news_article-soft);
}

.related-image::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(11, 15, 14, 0.42));
  pointer-events: none;
}

.related-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(.2, .7, .2, 1);
}

.related-card:hover .related-image img {
  transform: scale(1.045);
}

.related-image > span {
  position: absolute;
  z-index: 1;
  bottom: 13px;
  left: 15px;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.related-card-copy {
  padding: 18px 18px 19px;
}

.related-card-copy time {
  color: #85857c;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.related-card-copy h3 {
  min-height: 66px;
  margin: 12px 0 19px;
  color: var(--news_article-ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.035em;
  transition: color 180ms ease;
}

.related-card:hover h3 {
  color: #8d7748;
}

.related-read {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid var(--news_article-line);
  color: #5d5e57;
  font-size: 10px;
  font-weight: 600;
}

.related-read span {
  color: #8d7748;
  font-size: 15px;
}

/* Footer */
.news_article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px max(24px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--news_article-line);
  background: rgba(232, 229, 220, 0.55);
}

.footer-brand {
  color: #3f403c;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.footer-brand span {
  color: var(--news_article-gold);
}

.news_article-footer p,
.news_article-footer > span {
  margin: 0;
  color: #77776f;
  font-size: 10px;
}

.news_article-footer > span {
  letter-spacing: 0.08em;
}

/* Responsive */
@media (max-width: 900px) {
  .geosci-news_article-page .nav-container {
    width: calc(100% - 28px);
    padding: 13px 20px;
  }

  .news_article-header {
    margin-top: 38px;
  }

  .news_article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 42px;
  }

  .news_article-rail {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 13px 0;
    border-top: 1px solid var(--news_article-line);
    border-bottom: 1px solid var(--news_article-line);
  }

  .news_article-rail .rail-rule {
    display: none;
  }

  .news_article-rail .rail-label:first-child {
    width: 100%;
  }

  .news_article-rail .share-status {
    flex-basis: 100%;
  }

  .news_article-body {
    width: min(100%, 720px);
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .geosci-news_article-page .navbar {
    padding-top: 12px;
  }

  .geosci-news_article-page .nav-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    border-radius: 24px;
  }

  .geosci-news_article-page .nav-container nav {
    width: 100%;
    overflow-x: auto;
  }

  .geosci-news_article-page .nav-container nav ul {
    justify-content: space-between;
    gap: 17px;
    min-width: max-content;
  }

  .geosci-news_article-page .nav-container nav a {
    font-size: 11px;
  }

  .news_article-page {
    padding-top: 25px;
    padding-bottom: 65px;
  }

  .news_article-shell {
    width: calc(100% - 34px);
  }

  .news_article-header {
    margin: 34px auto 27px;
    text-align: left;
  }

  .news_article-header h1 {
    font-size: clamp(2.55rem, 12vw, 4.2rem);
    line-height: 0.99;
  }

  .news_article-deck {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.75;
  }

  .news_article-byline-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-top: 24px;
  }

  .news_article-hero img {
    height: 310px;
  }

  .news_article-hero figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .news_article-layout {
    padding: 32px 0 55px;
  }

  .news_article-body {
    font-size: 14px;
    line-height: 1.9;
  }

  .news_article-body .news_article-lead {
    font-size: 18px;
  }

  .news_article-body h2 {
    margin-top: 38px;
  }

  .news_article-quote {
    margin: 32px 0;
    padding: 22px 20px;
  }

  .news_article-data-note {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .related-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .related-card {
    display: grid;
    grid-template-columns: 39% minmax(0, 1fr);
  }

  .related-image {
    min-height: 100%;
    aspect-ratio: auto;
  }

  .related-image > span {
    right: 8px;
    bottom: 8px;
    left: 9px;
    font-size: 7px;
    line-height: 1.4;
  }

  .related-card-copy {
    padding: 14px 13px;
  }

  .related-card-copy h3 {
    min-height: 0;
    margin: 9px 0 13px;
    font-size: 15px;
  }

  .news_article-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 24px 20px;
  }
}

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

  .geosci-news_article-page *,
  .geosci-news_article-page *::before,
  .geosci-news_article-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}





/* =========================
   GEOSCI LIGHT NAVBAR
   Match existing site layout
========================= */

.navbar {
    position: fixed !important;
    top: 25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: min(90%, 1200px) !important;
    max-width: 1200px !important;
    margin-left: 0 !important;

    z-index: 100;
    background: transparent !important;
    box-shadow: none !important;
}

/* Keep the original scroll behaviour */

.navbar.scrolled {
    top: 8px !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    height: 85px;
    box-sizing: border-box;
    padding: 18px 30px !important;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(184, 160, 106, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(120, 145, 155, 0.10),
            transparent 35%
        ),
        #f3f1eb !important;

    border: double 3px #887b5f35 !important;
    border-radius: 55px;

    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    transition:
        padding 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

/* Keep the light appearance when scrolled */

.navbar.scrolled .nav-container {
    padding: 18px 30px !important;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(184, 160, 106, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(120, 145, 155, 0.10),
            transparent 35%
        ),
        #f3f1eb !important;

    box-shadow: none !important;
}

/* Logo */

.logo-text {
    color: #3f403c !important;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-container a {
    color: #0b0f0e !important;
    text-decoration: none;
}

.nav-container a:hover,
.logo a:hover .logo-text {
    color: #8d7748 !important;
}



/* =========================
   NAVBAR TYPOGRAPHY
   Match styles.css
========================= */

/* GEOSCI logo text */
.logo-text {
    font-family: inherit;
    font-weight: 750 !important;
    font-size: 1.8rem !important;
    letter-spacing: 0.1px !important;
    color: #3f403c !important;
    line-height: 4 !important;
}

/* Navigation text size and vertical alignment */

.nav-container ul {
    display: flex !important;
    align-items: center !important;
    gap: 30px;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-container ul li {
    display: flex;
    align-items: center;
}

.nav-container ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;

    color: #0b0f0e !important;
    text-decoration: none;
}

.nav-container ul li a:hover {
    color: #8d7748 !important;
}


/* Logo hover */
.logo a:hover .logo-text {
    color: #8d7748 !important;
}



/* Header adapts the existing GEOSCI navbar classes */
.geosci-news_article-page .navbar {
   position: relative !important;

    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;

    display: flex;
    justify-content: center;
    align-items: center;

    background: transparent !important;


    box-shadow: none !important;
}

.geosci-news_article-page .nav-container{
    
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;

    padding: 18px 28px;


    height: 75px;
   background-color: #f3f1eb;
   border: double 3px #887b5f35;
   border-radius: 55px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(184, 160, 106, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(120, 145, 155, 0.10),
            transparent 35%
        ),
        #f3f1eb;
}

.geosci-news_article-page .logo {
  margin: 0;
  flex: 0 0 auto;
}

.geosci-news_article-page .logo > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.geosci-news_article-page .logo-mark {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.geosci-news_article-page .logo-text {
  display: flex;
  margin: 0;
  color: #3f403c;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.geosci-news_article-page .nav-container nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.geosci-news_article-page .nav-container nav a {
  position: relative;
  padding: 8px 0;
  color: var(--news_article-ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.geosci-news_article-page .nav-container nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--news_article-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.geosci-news_article-page .nav-container nav a:hover,
.geosci-news_article-page .nav-container nav a[aria-current="page"] {
  color: #8d7748;
}

.geosci-news_article-page .nav-container nav a:hover::after,
.geosci-news_article-page .nav-container nav a[aria-current="page"]::after {
  transform: scaleX(1);
}