*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body.theme-etyeki-forras {
  min-height: 100%;
  margin: 0;
  background: #014282;
  color: #1d2630;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.theme-etyeki-forras a {
  color: #134176;
}

.site-wrapper {
  width: min(1680px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  overflow: hidden;
  width: 100vw;
  margin-top: 0;
  margin-left: calc(50% - 50vw);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}

.site-header__image {
  display: block;
}

.site-header__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 653;
}

.site-nav {
  position: relative;
  z-index: 2;
  margin-top: -75px;
  border-right: 0;
  border-left: 0;
  background: transparent;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 12px 22px;
  border-right: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0,0,0,.45);
}

.site-nav a:hover,
.site-nav a:focus {
  background: transparent;
  color: #ffd16b;
}

.site-main {
  padding: 18px;
  border-right: 2px solid #0b397d;
  border-left: 2px solid #0b397d;
  background: #e8eef7;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.content-panel,
.sidebar-box {
  border: 1px solid rgba(34, 55, 87, .45);
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}

.content-panel {
  min-height: 360px;
  padding: 24px;
  background: #fffdf4;
}

.content-panel h1 {
  margin: 0 0 14px;
  color: #134176;
  font-size: 28px;
  line-height: 1.2;
}

.static-page__content > :first-child,
.news-detail__content > :first-child {
  margin-top: 0;
}

.placeholder {
  margin: 0;
  padding: 14px;
  border: 1px dashed #b48d48;
  border-radius: 6px;
  background: #fff6dc;
  color: #5f4319;
}

.placeholder-featured-issue {
  min-height: 230px;
}

.static-page__content .etyeki-forras-random-issue {
  display: block;
  max-width: 420px;
  margin: 0 auto;
  text-decoration: none;
}

.static-page__content .etyeki-forras-random-issue img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(34, 55, 87, .35);
  background: #f7f8fa;
}

.static-page__content .etyeki-forras-pdf-fallback {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px solid rgba(34, 55, 87, .35);
  background: #f7f8fa;
  color: #5b6675;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
}

.home-sidebar {
  display: grid;
  gap: 10px;
  align-content: start;
}

.sidebar-box {
  overflow: hidden;
  background: #f8efcf;
}

.sidebar-box h2 {
  margin: 0;
  padding: 7px 11px;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

.sidebar-box__body {
  padding: 11px;
  font-size: 14px;
}

.sidebar-box__body p {
  margin: 0;
}

.news-random-embed {
  display: grid;
  gap: 8px;
}

.news-random-embed__item {
  min-width: 0;
}

.news-random-embed__image {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 8px;
}

.news-random-embed__image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(34, 55, 87, .28);
  background: #fff;
}

.news-random-embed__title {
  margin: 0 0 6px;
  color: #134176;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.25;
}

.news-random-embed__title a {
  color: inherit;
  text-decoration: none;
}

.news-random-embed__title a:hover,
.news-random-embed__title a:focus {
  text-decoration: underline;
}

.news-random-embed__lead {
  color: #1d2630;
  line-height: 1.35;
}

.sidebar-box--pictures h2 {
  background: #8a641c;
}

.sidebar-box--pictures .sidebar-box__body {
  background: #fff0b9;
}

.sidebar-box--pictures .mw4-gallery-random {
  margin: 0;
}

.sidebar-box--pictures .mw4-gallery-random a {
  display: block;
}

.sidebar-box--pictures .mw4-gallery-random img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(138, 100, 28, 0.28);
  background: #f8efcf;
}

.sidebar-box--pictures .mw4-gallery-random figcaption {
  margin-top: 6px;
  color: #5f4319;
  font-size: 12px;
  line-height: 1.35;
}

.sidebar-box--fresh h2 {
  background: #8f1f1f;
}

.sidebar-box--fresh .sidebar-box__body {
  background: #ffd0c8;
}

.sidebar-box--archive h2 {
  background: #6c6f76;
}

.sidebar-box--archive .sidebar-box__body {
  background: #eeeeee;
}

.sidebar-box--stats h2 {
  background: #264b79;
}

.sidebar-box--stats .sidebar-box__body {
  background: #e5edf7;
}

.stats-list {
  display: grid;
  gap: 4px;
  margin: 0;
}

.stats-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.stats-list dt,
.stats-list dd {
  margin: 0;
}

.news-meta {
  margin: -6px 0 14px;
  color: #687486;
  font-size: 14px;
}

.news-list__items {
  display: grid;
  gap: 14px;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(120px, 25%) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(34, 55, 87, .18);
  background: transparent;
}

.news-card:first-child {
  padding-top: 0;
}

.news-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-card__image {
  display: block;
  max-width: 100%;
}

.news-card__image img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(34, 55, 87, .22);
  background: #fff;
}

.news-card__body {
  grid-column: 1 / -1;
  min-width: 0;
}

.news-card__image + .news-card__body {
  grid-column: auto;
}

.news-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.news-card h2:first-child,
.news-card__image + h2 {
  margin-top: 0;
}

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

.news-card h2 a:hover,
.news-card h2 a:focus {
  text-decoration: underline;
}

.news-card p {
  margin: 0;
}

.news-detail__back {
  margin: 0 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.news-detail__back a {
  text-decoration: none;
}

.news-detail__figure {
  max-width: 100%;
  margin: 18px 0 22px;
  overflow: hidden;
}

.news-detail__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(34, 55, 87, .25);
  background: #fff;
}

.news-detail__lead {
  max-width: 760px;
  margin: 0 0 20px;
  color: #24384e;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.news-detail__content {
  max-width: 760px;
  margin: 0;
}

.news-detail__content p {
  margin: 0 0 1em;
}

.news-detail__content img {
  max-width: 100%;
  height: auto;
}

.news-detail img,
.news-detail picture,
.news-detail video,
.news-detail iframe,
.news-detail object,
.news-detail embed {
  max-width: 100%;
}

.site-footer {
  padding: 18px 14px 28px;
  border: 2px solid #0b397d;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #05306d;
  color: #e7effc;
  text-align: center;
  font-size: 13px;
}

.site-footer p {
  margin: 4px auto;
  max-width: 1120px;
}

.site-footer a {
  color: #fff2b0;
}

@media (max-width: 1100px) {
  .home-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .site-wrapper {
    width: min(100% - 16px, 1680px);
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    margin-top: -42px;
  }

  .site-nav a {
    min-height: 42px;
    padding: 8px;
    font-size: 17px;
    text-align: center;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

  .site-main {
    padding: 12px;
  }

  .content-panel {
    min-height: 0;
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card__image {
    max-width: 180px;
  }
}

@media (max-width: 460px) {
  .site-nav {
    margin-top: -24px;
  }

  .site-nav ul {
    grid-template-columns: 1fr;
  }

  .site-nav a {
    font-size: 16px;
  }
}
