.header-inner nav {
  gap: 6px;
  flex-wrap: wrap;
}

.header-inner nav a {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  transition: color .15s, background-color .15s;
}

.header-inner nav a:hover,
.header-inner nav a:focus-visible {
  color: #ffffff;
  background: #181a1b;
  text-decoration: none;
}

.shell > .main-wrap {
  grid-column: 2;
}

.ad-content {
  display: block;
  height: auto;
  padding: 0;
  writing-mode: horizontal-tb;
  background: none;
  border: 0;
  letter-spacing: normal;
  overflow: hidden;
}
.ad-content img {
  display: block;
  width: 100%;
  height: auto;
}

.ad-content iframe {
  display: block;
  width: 100%;
  border: 0;
}

.ad-content.side-ad {
  max-width: 100%;
}

.ad-code {
  width: 100%;
}

.ad-settings {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
}

.ad-settings legend {
  padding: 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.ad-settings textarea {
  min-height: 160px;
  font-family: monospace;
}

.site-footer .footer-bottom {
  flex-wrap: wrap;
}

@media (max-width: 1450px) {
  .shell > .main-wrap {
    grid-column: 1;
  }

  .side-ad-slot {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header-inner nav a {
    transition: none;
  }
}
