/* /infographics — page-клей. Ширина = .container сайта. */

.infographics-page .page-wrap {
  min-width: 0;
  padding-bottom: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.infographics-read {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
}

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

.infographics-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font);
  font-size: var(--t-caption);
  letter-spacing: 0.04em;
  color: var(--fg-3);
  margin: 0;
  text-transform: uppercase;
}

.infographics-breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.infographics-breadcrumbs a:hover {
  text-decoration: underline;
}

.infographics-bc-sep {
  opacity: 0.45;
  color: var(--fg-3);
}

.infographics-bc-mid {
  color: var(--fg-2);
}

.infographics-bc-cur {
  color: var(--fg);
}

.infographics-feed {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  min-width: 0;
}

.infographics-entry {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-width: 0;
}

.infographics-entry__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}

.infographics-entry__title {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: var(--d-h2);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: #ea580c; /* оранж цифр на карточках, не роль темы */
  margin: 0;
}

.infographics-entry__sub {
  font-size: var(--t-body);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--fg);
  margin: 0;
}

.infographics-entry__date,
.infographics-entry__use {
  font-size: var(--t-caption);
  color: var(--fg-2);
  margin: 0;
}

.infographics-entry__use a {
  color: var(--accent);
}

.infographics-stack {
  display: grid;
  grid-template-columns: repeat(var(--infographics-n, 1), minmax(0, 1fr));
  gap: var(--s-3);
  min-width: 0;
}
.infographics-stack[data-count="1"] { --infographics-n: 1; }
.infographics-stack[data-count="2"] { --infographics-n: 2; }
.infographics-stack[data-count="3"] { --infographics-n: 3; }
.infographics-stack[data-count="4"] { --infographics-n: 4; }
.infographics-stack[data-count="5"] { --infographics-n: 5; }
.infographics-stack[data-count="6"] { --infographics-n: 6; }

.infographics-zoom {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.infographics-zoom:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: var(--s-1);
}

.infographics-zoom img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  pointer-events: none;
}

.infographics-entry__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.infographics-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: var(--s-5);
  background: var(--overlay);
  touch-action: none;
}

.infographics-lightbox[hidden] {
  display: none;
}

.infographics-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-card);
}

.infographics-lightbox__close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: var(--s-8);
  height: var(--s-8);
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .infographics-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .infographics-stack[data-count="5"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .infographics-stack[data-count="5"] .infographics-zoom:nth-child(-n+3) {
    grid-column: span 2;
  }

  .infographics-stack[data-count="5"] .infographics-zoom:nth-child(n+4) {
    grid-column: span 3;
  }
}
