@import url("../../sections/two/two-story.css");

.artikler-wrapper {
  position: fixed;
  inset: 0;
  z-index: 994;
  pointer-events: none;
}

.artikler-shell {
  position: absolute;
  inset: 0;
}

.artikler-panel {
  position: absolute;
  inset: 20vh 0 0 0;
  height: 80vh;
  background: #f8f3e3;
  color: #292929;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 260ms ease, transform 520ms cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
  overflow: hidden;
}

.artikler-panel > * {
  position: relative;
  z-index: 1;
}

.artikler-close {
  position: fixed;
  top: 1.4rem;
  right: 1.6rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #292929;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
}

.artikler-full-toggle {
  position: fixed;
  top: 1.4rem;
  right: 4.6rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #292929;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
}

.artikler-full-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  box-sizing: border-box;
}

.artikler-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: clamp(2.4rem, 5vw, 3.8rem) clamp(2rem, 6vw, 6rem) 3.4rem;
  box-sizing: border-box;
}

.artikler-header {
  display: grid;
  gap: 0.4rem;
}

.artikler-eyebrow {
  font-family: var(--font-anton);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.02em;
}

.artikler-intro {
  font-family: var(--font-dm-sans);
  font-size: 1rem;
  margin: 0;
  color: #3b3b3b;
}

.artikler-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.4rem;
  display: grid;
  gap: 2.4rem;
}

.artikler-feed::-webkit-scrollbar {
  width: 8px;
}

.artikler-feed::-webkit-scrollbar-thumb {
  background: rgba(41, 41, 41, 0.2);
  border-radius: 999px;
}

.artikler-section {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.6rem);
}

.artikler-section--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.artikler-section--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.artikler-section--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.artikler-section--one {
  grid-template-columns: minmax(0, 1fr);
}

.artikler-section + .artikler-section {
  padding-top: 2rem;
  border-top: 1px solid rgba(41, 41, 41, 0.12);
}

.artikler-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(41, 41, 41, 0.12);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto 1fr;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.artikler-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(41, 41, 41, 0.2);
}

.artikler-media {
  aspect-ratio: 1 / 1;
  background: #e6e4dc;
  position: relative;
  overflow: hidden;
}

.artikler-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artikler-meta {
  padding: 1rem 1.1rem 1.3rem;
  display: grid;
  gap: 0.6rem;
}

.artikler-topic {
  font-family: var(--font-anton);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1f3ff7;
}

.artikler-title {
  font-family: var(--font-dm-sans);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
  color: #292929;
  margin: 0;
}

.artikler-subtitle {
  font-family: var(--font-dm-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4a4a4a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artikler-loading {
  font-family: var(--font-dm-sans);
  color: #6a6a6a;
  padding: 1rem;
}

.artikler-section--two .artikler-media,
.artikler-section--one .artikler-media {
  aspect-ratio: 16 / 9;
}

.artikler-section--featured .artikler-card {
  background: #ffffff;
  border-color: rgba(41, 41, 41, 0.18);
}

.artikler-section--featured .artikler-meta {
  padding: 1.2rem 1.3rem 1.5rem;
}

.artikler-section--two .artikler-title,
.artikler-section--one .artikler-title {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.artikler-section--four .artikler-title {
  font-size: 0.95rem;
}

.artikler-section--four .artikler-meta {
  padding: 0.8rem 0.9rem 1.1rem;
}

.artikler-modal:not(.story-modal) {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  align-items: start;
  justify-items: center;
  padding-top: 4vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.artikler-modal:not(.story-modal).is-open {
  opacity: 1;
  pointer-events: auto;
}

.artikler-modal:not(.story-modal).is-full {
  padding-top: 0;
  align-items: stretch;
  justify-items: stretch;
}

.artikler-modal:not(.story-modal) .artikler-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.artikler-modal:not(.story-modal) .artikler-modal-window {
  position: relative;
  width: min(960px, 100vw);
  max-height: 92vh;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  background: #e8ebe6;
}

.artikler-modal:not(.story-modal) .artikler-modal-window::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.artikler-modal:not(.story-modal).is-full .artikler-modal-window {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
}

.artikler-modal:not(.story-modal) .artikler-modal-window::after {
  opacity: 0;
}

.artikler-modal:not(.story-modal) .artikler-modal-full {
  position: fixed;
  top: 1.4rem;
  right: max(1.6rem, calc(50% - 480px - 16px));
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #e75b29;
  color: #fff;
  cursor: pointer;
  z-index: 1002;
  display: grid;
  place-items: center;
}

.artikler-modal-full .artikler-full-icon {
  width: 14px;
  height: 14px;
}

.artikler-modal:not(.story-modal) .artikler-modal-close {
  position: fixed;
  top: 1.4rem;
  right: max(1.6rem, calc(50% - 480px - 16px));
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #e75b29;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 1002;
}

.artikler-modal:not(.story-modal) .artikler-modal-full {
  top: 4.2rem;
}

.artikler-modal:not(.story-modal).is-full .artikler-modal-close,
.artikler-modal:not(.story-modal).is-full .artikler-modal-full {
  right: 1.6rem;
}

.artikler-modal:not(.story-modal) .artikler-modal-content {
  padding: 0;
}

.artikler-modal.story-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 0 3vh;
  z-index: 3000;
}

.artikler-modal.story-modal.is-open {
  display: flex;
}

.artikler-modal.story-modal.is-full {
  padding-top: 0;
  align-items: stretch;
}

.artikler-modal.story-modal .fact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.artikler-modal.story-modal .fact-modal-window {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 960px;
  max-height: 92vh;
  background: #e7ebe6;
  color: #151515;
  border-radius: 0;
  padding: 0;
  overflow-y: auto;
  box-shadow: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.artikler-modal.story-modal .fact-modal-window::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.artikler-modal.story-modal .fact-modal-close {
  position: fixed;
  top: 1.4rem;
  right: max(1.6rem, calc(50% - 480px - 16px));
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #e75b29;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 3002;
}

.artikler-modal.story-modal .story-modal-full {
  position: fixed;
  top: 4.2rem;
  right: max(1.6rem, calc(50% - 480px - 16px));
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #e75b29;
  color: #fff;
  cursor: pointer;
  z-index: 3002;
  display: grid;
  place-items: center;
}

.artikler-modal.story-modal .story-modal-full .story-full-icon {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  box-sizing: border-box;
}

.artikler-modal.story-modal.is-full .fact-modal-close,
.artikler-modal.story-modal.is-full .story-modal-full {
  right: 1.6rem;
}

.article-view {
  --article-bg: #e7ebe6;
  --article-ink: #2f2f2f;
  --article-muted: #6d6d6d;
  --article-accent: #e75b29;
  --article-rule: rgba(47, 47, 47, 0.32);
  background: var(--article-bg);
  color: var(--article-ink);
  font-family: var(--font-pt-serif);
  min-height: 100%;
  width: 100%;
  padding: clamp(2.4rem, 4vw, 3rem) clamp(3rem, 10vw, 5.2rem)
    clamp(3rem, 6vw, 4rem);
  box-sizing: border-box;
}

.article-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--article-bg);
  padding: 0.6rem 0 1rem;
  margin-bottom: 1.6rem;
}

.article-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.article-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(47, 47, 47, 0.18);
  overflow: hidden;
}

.article-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--article-accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.article-brand {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  --logo-color: var(--article-ink);
}

.article-logo {
  width: 120px;
  color: var(--article-ink);
  --logo-color: currentColor;
}

.article-logo .vd-logo {
  width: 100%;
  height: auto;
  display: block;
}

.article-view.is-logo-compact .article-brand {
  gap: 0.6rem;
}

.article-nav {
  position: relative;
  font-family: var(--font-anton);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--article-ink);
}

.article-nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 3.1rem;
  height: 2px;
  background: var(--article-accent);
  transition: width 0.2s ease, opacity 0.2s ease;
}

.article-nav:hover,
.article-nav:focus-visible {
  color: var(--article-accent);
}

.article-nav:hover::after,
.article-nav:focus-visible::after {
  width: 3.6rem;
}

.article-nav:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--article-accent) 70%, transparent);
  outline-offset: 4px;
}

.article-cta {
  border: none;
  background: var(--article-accent);
  color: #fff;
  font-family: var(--font-anton);
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  cursor: pointer;
}

.article-meta {
  margin-bottom: 1.4rem;
}

.article-meta-date {
  font-family: var(--font-inter);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.article-meta-label {
  font-family: var(--font-archivo);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0.25rem;
}

.article-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
  align-items: start;
}

.article-hero-text {
  max-width: none;
}

.article-title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
}

.article-hero-media {
  width: 100%;
  align-self: start;
}

.article-hero-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.article-kicker,
.article-subhead,
.article-body,
.article-related,
.article-footnotes {
  max-width: none;
  width: 100%;
}

.article-kicker {
  font-family: var(--font-inter);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 1.6rem 0 0.4rem;
}

.article-subhead {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.7;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.article-related {
  margin-top: 1.6rem;
  border: none;
  border-top: 1px solid var(--article-rule);
  border-bottom: 1px solid var(--article-rule);
  padding: 0.7rem 0;
  background: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: block;
  font: inherit;
  color: inherit;
}

.article-related-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.article-related-media {
  width: 36px;
  height: 36px;
  border: 1px solid var(--article-rule);
  overflow: hidden;
  flex: none;
}

.article-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-related-label {
  font-family: var(--font-pt-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--article-accent);
  display: block;
}

.article-related-title {
  display: block;
  font-size: 0.95rem;
  color: var(--article-ink);
  margin-top: 0.15rem;
}

.article-footnotes {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--article-muted);
}

.article-footnotes .story-footnotes {
  margin: 0;
}

.article-footnotes .story-footnotes h3 {
  font-family: var(--font-anton);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  color: var(--article-ink);
}

.article-footnotes .story-footnotes-list {
  padding-left: 1.2rem;
  margin: 0;
}

.article-footnotes .story-footnotes-list li {
  margin-bottom: 0.7rem;
}

.article-footnotes .story-footnotes-list a {
  word-break: break-word;
}

.article-view a {
  color: var(--article-accent);
  text-decoration: none;
}

.article-view a:hover {
  text-decoration: underline;
}

html.is-artikler-modal-open,
body.is-artikler-modal-open {
  overflow: hidden;
}

html.is-artikler-open,
body.is-artikler-open {
  overflow: hidden;
}

html.is-artikler-open .artikler-wrapper {
  pointer-events: auto;
}

html.is-artikler-open .artikler-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

html.is-artikler-open .artikler-wrapper.is-full .artikler-panel {
  inset: 0;
  height: 100vh;
}

@media (max-width: 900px) {
  .artikler-section--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artikler-section--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .artikler-panel {
    inset: 0;
    height: 100vh;
  }

  .artikler-close,
  .artikler-full-toggle {
    top: 1rem;
  }

  .artikler-content {
    padding: 2.2rem 1.6rem 3rem;
  }

  .artikler-section--two,
  .artikler-section--three,
  .artikler-section--four {
    grid-template-columns: minmax(0, 1fr);
  }

  .artikler-feed {
    padding-right: 0;
  }

  .artikler-modal-window {
    width: 100vw;
    max-height: 88vh;
  }

  .artikler-modal.is-full .artikler-modal-window {
    height: 100vh;
    max-height: 100vh;
  }

  .article-view {
    padding: 2.2rem 1.6rem 3rem;
  }

  .article-topbar {
    padding: 0.6rem 0 1rem;
  }

  .article-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .article-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-hero-media {
    width: 100%;
  }
}
