/* ==========================================================================
   General
   ========================================================================== */

.news .headline,
.news .headline h1,
.news .headline h3 {
  text-align: left;
  color: rgb(var(--c-neutral-dark));
}

.news .article__headline h3 {
  font-size: var(--f-size-l-1);
}

.news .article__headline h3 a {
  color: inherit;
  text-decoration: none;
}

.news .article__date {
  display: block;
  font-size: var(--f-size-s-1);
}

.news .article__teaser {
  margin-top: 1em;
}

.news .article__more {
  margin-top: 1em;
}

/* ==========================================================================
   Latest
   ========================================================================== */

.news.-latest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2%;
  margin-top: 3em;
}

.news.-latest .article__headline {
  border-bottom: 1px solid rgb(var(--c-neutral-lighter));
  padding-bottom: 5px;
  margin-bottom: 2px;
}

/* ==========================================================================
   List
   ========================================================================== */

.news.-list .article {
  margin-bottom: 3rem;
}

.news.-list .article__text {
  border: 1px solid rgb(var(--c-neutral-lighter));
  padding: 1em;
}

.news.-list .article__headline {
  border-bottom: 1px solid rgb(var(--c-neutral-lighter));
  padding-bottom: 5px;
  margin-bottom: 2px;
}

.news.-list .article__image {
  position: relative;
  max-height: 45vw;
  overflow: hidden;
}

.news.-list .article__image::after {
  content: '';
  position: absolute;
  inset: 1em;
  border: 1px solid rgb(var(--c-neutral-lightest));
  pointer-events: none;
}

.news.-list .article__image .gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news.-list .article__imagelink {
  position: absolute;
  inset: 0;
}

/* Pagination */
.news.-list .f3-widget-paginator {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.news.-list .f3-widget-paginator li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 5px 1em 0;
  border-radius: 50%;
  background: rgb(var(--c-neutral-dark));
  color: rgb(var(--c-neutral-lightest));
}

.news.-list .f3-widget-paginator li.current {
  background: rgb(var(--c-primary));
}

.news.-list .f3-widget-paginator li.gap {
  background: none;
  color: rgb(var(--c-neutral-dark));
}

.news.-list .f3-widget-paginator li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: rgb(var(--c-neutral-lightest));
  text-decoration: none;
}

.news.-list .f3-widget-paginator li.previous a::after,
.news.-list .f3-widget-paginator li.next a::after {
  font-family: 'FaLight', sans-serif;
  font-weight: var(--f-weight-l);
  content: '\f053';
}

.news.-list .f3-widget-paginator li.next a::after {
  content: '\f054';
}

/* Date menu */
.news-menu-view ul {
  padding-left: 0;

  & li {
    list-style-type: none;
  }
}

.news-menu-view > ul > li {
  font-size: var(--f-size-l-2);
  color: rgb(var(--c-neutral-dark));
}

.news-menu-view > ul > li > ul {
  border-top: 1px solid rgb(var(--c-neutral-lighter));
  padding-top: 8px;
  margin-top: 2px;
}

.news-menu-view ul li.item {
  font-size: 1rem;
}

/* ==========================================================================
   Ticker
   ========================================================================== */

.news.-ticker {
  display: flex;
  border-top: 1px solid rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-neutral-lightest));
}

.ticker__header {
  flex: 0 0 150px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-size: var(--f-size-s-1);
  font-weight: var(--f-weight-b);
  text-transform: uppercase;
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-neutral-dark));
}

.ticker__news {
  flex: 1 1 auto;
  height: 50px;
  line-height: 50px;
  background: rgb(var(--c-neutral-lighter));
  overflow: hidden;
}

.ticker__inner {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0 0 0 100%;
  list-style: none;
  animation: ticker 40s linear infinite;
}

.ticker__item {
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.ticker__title a,
.ticker__text {
  display: block;
  margin-right: 1.5em;
  color: rgb(var(--c-neutral-dark));
  text-decoration: none;
}

.ticker__item:not(:last-child) .ticker__title a::after,
.ticker__item:not(:last-child) .ticker__text::after {
  content: '•';
  padding-left: 1.5em;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* ==========================================================================
   Detail
   ========================================================================== */

.news.-single .article__text {
  max-width: 940px;
}

.media__item {
  margin-bottom: var(--g-gap);
}

.media__item:last-child {
  margin-bottom: 0;
}

.media__image {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(var(--c-neutral-lighter));
}

.article__backlink {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid rgb(var(--c-neutral-lighter));
}

.article__backlink .font__button::before {
  content: '\f104';
  font-family: 'FaLight', sans-serif;
  margin-right: 0.4rem;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (hover: hover) {
  .news .article__headline h3 a:hover,
  .ticker__title a:hover {
    color: rgb(var(--c-primary));
  }

  .news.-list .f3-widget-paginator li:hover {
    background: rgb(var(--c-primary));
  }
}

@media (min-width: 400px) {
  .news.-single .article__media {
    grid-column: span 4;
  }

  .news.-single .article__extra,
  .news.-single .article__text {
    grid-column: span 8;
  }
}

@media (min-width: 801px) {
  /* Latest */
  .news.-latest {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 4%;
  }

  /* List */
  .news.-list .article__image {
    grid-column: span 4;
    max-height: none;
  }

  .news.-list .article.-withimage .article__text {
    grid-column: span 8;
  }
}

@media (min-width: 1401px) {
  /* Latest */
  .news.-latest {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 2.66%;
  }
}

/* Live spacing of the list items (fixed px - live has a 16px root) */

.news .article {
  margin-bottom: 48px;
}
