/* =========================
   NYHETER 2026
   Kun styles som tilhorer nyhetssiden.
   Hoveddesign, navigasjon, body, typografi og footer styres av styles.css.
   ========================= */

.newsShell {
  width: min(calc(100% - 40px), 1180px);
  margin-inline: auto;
}

/* Hero */
.hero {
  position: relative;
  height: clamp(330px, 38vw, 470px);
  overflow: hidden;
  background: var(--brand2, #061f40);
}

.hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.15fr .9fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  background: #fff;
}

.hero-tile {
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-a { grid-column: 1; grid-row: 1; }
.hero-b { grid-column: 2; grid-row: 1; }
.hero-c { grid-column: 3; grid-row: 1; }
.hero-d { grid-column: 4; grid-row: 1 / span 2; }
.hero-e { grid-column: 1 / span 2; grid-row: 2; }
.hero-f { grid-column: 3; grid-row: 2; }

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3,18,37,.68) 0%,
    rgba(3,18,37,.45) 30%,
    rgba(3,18,37,.16) 55%,
    rgba(3,18,37,.03) 78%,
    rgba(3,18,37,0) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}

.hero-copy .eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero-copy h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero-copy > p:last-child {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.35;
}

/* Arsvalg og nyhetsliste */
.archive {
  padding: 28px 0 72px;
}

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.year-nav a {
  min-width: 74px;
  padding: 11px 18px;
  border: 1px solid var(--line, rgba(15,31,51,.12));
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  background: #fff;
}

.year-nav a:last-child {
  min-width: 126px;
}

.year-nav a:hover {
  border-color: #b9c6d6;
  background: #f6f8fb;
}

.year-nav .year-current {
  color: #fff;
  border-color: var(--brand, #002b5f);
  background: var(--brand, #002b5f);
}

.news-list {
  display: grid;
  gap: 20px;
}

.news-row {
  min-height: 158px;
  display: grid;
  grid-template-columns: 295px 1fr 58px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line, rgba(15,31,51,.12));
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(8,43,87,.045);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-row:hover {
  border-color: #cbd5e1;
  background: #fbfcfe;
  box-shadow: 0 9px 24px rgba(8,43,87,.075);
  transform: translateY(-1px);
}

.news-image {
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  min-height: 158px;
  object-fit: cover;
  transition: transform .35s ease;
}

.news-row:hover .news-image img {
  transform: scale(1.025);
}

.news-body {
  padding: 23px 26px 22px;
  align-self: center;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--brand, #002b5f);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.meta time {
  color: #445066;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.meta span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 13px;
  margin: 0 10px 0 2px;
  vertical-align: -2px;
  background: #aeb8c5;
}

.news-body h2 {
  margin: 0 0 7px;
  color: var(--brand, #002b5f);
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.14;
  letter-spacing: -.025em;
}

.news-body h2 a {
  text-decoration: none;
}

.news-body h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.news-body p {
  margin: 0;
  max-width: 760px;
  color: var(--muted, #5b6b7c);
  font-size: 16px;
}

.row-arrow {
  display: grid;
  place-items: center;
  color: var(--brand, #002b5f);
  text-decoration: none;
  font-size: 30px;
  font-weight: 500;
}

.row-arrow:hover {
  background: #f1f5f9;
}

/* Mobil / nettbrett - bare nyhetssiden */
@media (max-width: 900px) {
  .hero {
    height: 390px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hero-d {
    display: none;
  }

  .hero-a { grid-column: 1; }
  .hero-b { grid-column: 2; }
  .hero-c { grid-column: 3; }
  .hero-e { grid-column: 1 / span 2; }
  .hero-f { grid-column: 3; }

  .news-row {
    grid-template-columns: 220px 1fr 48px;
  }
}

@media (max-width: 650px) {
  .newsShell {
    width: min(calc(100% - 24px), 1180px);
  }

  .hero {
    height: 360px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-c,
  .hero-f {
    display: none;
  }

  .hero-a { grid-column: 1; grid-row: 1; }
  .hero-b { grid-column: 2; grid-row: 1; }
  .hero-e { grid-column: 1 / span 2; grid-row: 2; }

  .hero-shade {
    background: linear-gradient(90deg, rgba(3,18,37,.84), rgba(3,18,37,.36));
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .hero-copy > p:last-child {
    max-width: 330px;
    font-size: 18px;
  }

  .archive {
    padding-top: 20px;
  }

  .year-nav {
    gap: 8px;
  }

  .year-nav a {
    min-width: auto;
    flex: 1 0 auto;
    padding: 10px 12px;
  }

  .news-list {
    gap: 14px;
  }

  .news-row {
    grid-template-columns: 118px 1fr 32px;
    min-height: 128px;
    border-radius: 10px;
  }

  .news-image img {
    min-height: 128px;
  }

  .news-body {
    padding: 14px 13px;
  }

  .meta {
    gap: 4px;
    margin-bottom: 4px;
    font-size: 10px;
  }

  .meta span::before {
    margin-left: 3px;
    margin-right: 6px;
  }

  .news-body h2 {
    margin-bottom: 4px;
    font-size: 18px;
  }

  .news-body p {
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .row-arrow {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-row,
  .news-image img {
    transition: none !important;
  }
}
