/* Styles for assets/css/page-proizvodstvo.css */

.newspaper-page {
  --container: 1000px;
  --page-header-offset: 56px;
  background: #f3efe6;
  color: #151515;
}

.newspaper-page .container.first {
  padding-bottom: 18px;
}

.newspaper-page .section-breadcrumbs {
  margin-bottom: 28px;
}

.newspaper-masthead {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  padding: 30px 0 28px;
}

.newspaper-masthead__logo {
  width: var(--logo-width);
  max-width: var(--logo-width);
  min-width: var(--logo-width);
  margin: 0 auto 18px;
}

.newspaper-masthead__logo img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.7;
  filter: grayscale(1);
}

.newspaper-head {
  padding-bottom: 36px;
}

.newspaper-masthead__line {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.66);
}

.newspaper-masthead__title {
    margin: 0;
    font-size: clamp(44px, 7vw, 88px);
    line-height: 1.1em;
    letter-spacing: -0.015em;
    color: var(--h1-color);
}

.newspaper-masthead__dek {
  max-width: none;
  margin: 20px auto 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.68);
}

.newspaper-masthead__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 22px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.62);
}

.newspaper-hero-figure,
.newspaper-figure {
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
}

.newspaper-hero-figure__media,
.newspaper-figure__media {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(18, 18, 18, 0.08);
}

.newspaper-hero-figure figcaption,
.newspaper-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.68);
}

.newspaper-timeline-band {
  position: relative;
  z-index: 20;
  margin-bottom: 28px;
}

.newspaper-timeline-shell {
  position: relative;
  z-index: 20;
}

.newspaper-timeline-bar {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, rgb(243 239 230 / 78%) 30%, rgba(243, 239, 230, 0) 100%);
  overflow: visible;
  transition: all 0.25s ease-in-out;
}

.newspaper-timeline-bar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 200%;
  pointer-events: none;
  opacity: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.8) 80%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.8) 80%, rgba(0, 0, 0, 0) 100%);
  transition: opacity 0.25s ease-in-out;
}

.newspaper-timeline-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.newspaper-timeline-container::-webkit-scrollbar {
  display: none;
}

.newspaper-timeline {
  position: relative;
  z-index: 20;
  display: flex;
  width: max-content;
  min-width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0 0;
}

.newspaper-timeline-shell.is-pinned .newspaper-timeline-bar {
  position: fixed;
  top: var(--page-header-offset);
  left: 0;
  width: 100%;
}

.newspaper-timeline-shell.is-pinned .newspaper-timeline-bar::before {
  opacity: 1;
}

.newspaper-timeline__item {
    flex: 1 1 0;
    display: grid;
    gap: 4px;
    min-width: 0;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    color: rgba(0, 0, 0, 0.58);
    text-align: center;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.newspaper-timeline__item:hover, .newspaper-timeline__item:focus-visible, .newspaper-timeline__item.is-active {
    color: var(--text);
    border-color: var(--text);
}

.newspaper-timeline__year {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.newspaper-timeline__label {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.62);
}

.newspaper-article {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-bottom: 70px;
}

.newspaper-opening {
  margin-bottom: 54px;
}

.newspaper-opening__lead {
  margin: 0 0 22px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.34;
  color: #181818;
}

.newspaper-opening__lead::first-letter {
  float: left;
  margin: 8px 10px 0 0;
  font-size: 4.6em;
  line-height: 0.82;
  font-weight: 700;
}

.newspaper-opening p {
    font-size: clamp(18px, 1.9vw, 21px);
    line-height: 1.45em;
    color: #373634;
}

.newspaper-section p,
.newspaper-ending p,
.newspaper-notes li {
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.45em;
    color: #373634;
}

.newspaper-opening p + p,
.newspaper-section p + p {
  margin-top: 18px;
}

.newspaper-section {
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  scroll-margin-top: calc(var(--page-header-offset) + 92px);
}

.newspaper-section.is-active h2 {
  color: #000000;
}

.newspaper-section h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #111111;
}

.newspaper-section__lead {
  margin: 0 0 18px;
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.5;
  color: #1f1f1f;
}

.newspaper-section__aside-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
  margin-bottom: 18px;
}

.newspaper-section__aside-copy > :last-child {
  margin-bottom: 0;
}

.newspaper-figure {
  margin: 28px 0;
}

.newspaper-figure--aside {
  margin: 0;
}

.newspaper-pullquote {
  margin: 30px auto;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--muted);
}

.newspaper-pullquote p {
    margin: 0;
    font-size: clamp(22px, 2.2vw, 24px);
    line-height: 1.35em;
    color: var(--text);
}

.newspaper-pullquote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
}

.newspaper-notes {
  margin: 24px 0 0;
  padding-left: 22px;
}

.newspaper-notes li {
  margin-bottom: 10px;
}

.newspaper-notes li:last-child {
  margin-bottom: 0;
}

.newspaper-ending {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.newspaper-page a:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .newspaper-opening__lead::first-letter {
    font-size: 3.8em;
    margin-top: 6px;
  }
}

@media (max-width: 680px) {
  .newspaper-timeline-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .newspaper-masthead {
    text-align: left;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .newspaper-masthead__dek,
  .newspaper-masthead__meta {
    margin-left: 0;
    margin-right: 0;
  }

  .newspaper-masthead__meta {
    justify-content: flex-start;
  }

  .newspaper-timeline {
    justify-content: flex-start;
    gap: 16px;
    padding-top: 12px;
  }

  .newspaper-timeline__item {
    flex: 0 0 auto;
    min-width: 96px;
  }

  .newspaper-opening__lead::first-letter {
    float: none;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
  }

  .newspaper-pullquote {
    padding-left: 16px;
  }

  .newspaper-section__aside-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
