/* FREESKIN.PRO — header improvements */

.site-header {
  position: relative;
  overflow: visible;
  isolation: isolate;
  z-index: 10002;
  width: 100%;
  background-color: #141820 !important;
  background-image: linear-gradient(180deg, rgba(14, 17, 24, 0.98) 0%, rgba(18, 21, 28, 0.96) 100%) !important;
  border-bottom: none !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition: box-shadow 0.25s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/wp-content/uploads/freeskinhead.jpg") center center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #161c28;
  box-shadow: 0 1px 0 rgba(0, 117, 255, 0.38);
  z-index: 2;
  pointer-events: none;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.42);
}

/* Theme pulls nav up by 30px — looks like smearing on dark backgrounds */
.site-header + .main-navigation {
  margin-top: 2px !important;
  position: relative;
  z-index: 10001;
}

.site-header-inner {
  position: relative;
  z-index: 1;
  min-height: 68px;
  padding: 10px 18px !important;
}

@media (min-width: 992px) {
  .site-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
  }
}

.site-branding {
  flex-shrink: 0;
}

.site-logotype {
  max-width: 280px !important;
  margin-right: 0 !important;
}

.site-logotype a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logotype img {
  max-height: 50px !important;
  width: auto !important;
  height: auto !important;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.top-menu {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 5;
}

.top-menu > ul > li {
  position: relative;
}

.top-menu > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.top-menu > ul > li > a,
.top-menu > ul > li > span {
  display: inline-block;
  padding: 9px 13px !important;
  border-radius: 9px;
  font-size: 15px !important;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-menu > ul > li > a:hover,
.top-menu > ul > li > span:hover {
  background: rgba(0, 117, 255, 0.18) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.top-menu ul li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  z-index: 10020 !important;
  background: #1d1c20 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
  padding: 6px 0 !important;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

@media (min-width: 992px) {
  .top-menu ul li.menu-item-has-children:hover > .sub-menu {
    display: flex !important;
  }
}

.top-menu ul li .sub-menu li > a {
  padding: 10px 16px !important;
  font-size: 14px !important;
  text-transform: none;
  letter-spacing: 0;
  color: #e9eef5 !important;
}

.top-menu ul li .sub-menu li > a:hover {
  background: rgba(0, 117, 255, 0.18) !important;
  color: #fff !important;
}

.header-search {
  flex-shrink: 0;
  margin-left: auto;
}

.header-search .search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-search .search-icon:hover {
  background: rgba(0, 117, 255, 0.22);
  border-color: rgba(0, 117, 255, 0.45);
  transform: translateY(-1px);
}

.humburger {
  border-radius: 10px;
  padding: 8px;
  transition: background 0.2s ease;
}

.humburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Icon navigation bar */
.main-navigation,
.main-navigation ul li a,
.main-navigation ul li span,
.main-navigation ul li .removed-link,
#header_menu a,
#header_menu a span {
  color: #e9eef5 !important;
}

.main-navigation,
.site-navigation-fixed.main-navigation {
  margin-top: 0 !important;
  background: #161c28 !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.main-navigation-inner {
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 10px 14px !important;
  background: transparent !important;
}

.main-navigation .menu {
  gap: 4px;
}

.main-navigation ul li {
  border-radius: 11px;
  overflow: hidden;
  transition: background 0.2s ease;
}

.main-navigation ul li:hover {
  background: rgba(0, 117, 255, 0.12) !important;
}

.main-navigation ul li a,
.main-navigation ul li span {
  border-radius: 11px;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 11px 12px !important;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li span:hover,
#header_menu a:hover,
#header_menu a:hover span {
  background: transparent !important;
  color: #5eb0ff !important;
}

.main-navigation ul li a img._svg {
  opacity: 0.95;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.main-navigation ul li a:hover img._svg {
  transform: scale(1.08);
  filter: brightness(0) saturate(100%) invert(58%) sepia(86%) saturate(1876%) hue-rotate(196deg) brightness(101%) contrast(101%);
}

@media (max-width: 991px) {
  .site-header {
    width: 100%;
    background-color: #141820 !important;
    background-image: linear-gradient(180deg, #141820 0%, #181d28 100%) !important;
  }

  .site-header::before {
    opacity: 0.24;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .site-header-inner {
    min-height: 60px;
    padding: 8px 12px !important;
  }

  .site-logotype {
    max-width: 210px !important;
  }

  .site-logotype img {
    max-height: 42px !important;
  }

  /* Theme uses absolute burger/search below 768px — keep flex off there */
  .site-header-inner {
    display: block;
    position: relative;
  }

  .humburger {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    z-index: 700;
  }

  .header-search {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    margin-left: 0;
  }

  .site-branding {
    display: flex;
    justify-content: center;
    padding: 0 52px;
  }

  .top-menu {
    display: none !important;
  }
}

@media (max-width: 359px) {
  .site-header-inner {
    min-height: 56px;
    padding: 6px 8px !important;
  }

  .site-logotype {
    max-width: 160px !important;
  }

  .site-logotype img {
    max-height: 36px !important;
  }

  .humburger {
    left: 8px;
  }

  .header-search {
    right: 8px;
  }

  .header-search .search-icon {
    width: 38px;
    height: 38px;
  }

  .site-branding {
    padding: 0 46px;
  }
}

@media (min-width: 992px) {
  .site-header-inner.fixed,
  .main-navigation-inner.fixed {
    max-width: 1130px !important;
  }
}

/* ── Footer ── */
.site-footer-container {
  position: relative;
  z-index: 2;
}

.site-footer.site-footer--style-gray {
  background: linear-gradient(180deg, #12161f 0%, #0b0f16 100%) !important;
  border-top: none !important;
  color: #c8d0dc;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 117, 255, 0.15) 15%,
    #0075ff 50%,
    rgba(0, 117, 255, 0.15) 85%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -20%, rgba(0, 117, 255, 0.12) 0%, transparent 60%),
    url("/wp-content/uploads/freeskinhead.jpg") center top / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.site-footer-inner.fixed {
  position: relative;
  z-index: 1;
  padding: 44px 24px 26px !important;
}

.fs-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fs-footer-top__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.fs-footer-top__brand img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.fs-footer-top__text {
  min-width: 0;
}

.fs-footer-top__name {
  color: #fff;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fs-footer-top__tagline {
  margin-top: 4px;
  color: #8b97a8;
  font-size: 13px;
  line-height: 1.4;
}

.fs-footer-top__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  background: rgba(0, 119, 255, 0.14);
  border: 1px solid rgba(0, 119, 255, 0.28);
  color: #8ec5ff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fs-footer-top__social a::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #0077ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12.785 16.241s.288-.032.436-.194c.136-.148.132-.427.132-.427s-.02-1.304.58-1.496c.592-.19 1.35.956 2.155 1.378.605.318 1.064.248 1.064.248l2.137-.03s1.117-.07.587-.95c-.043-.073-.31-.66-1.588-1.865-1.34-1.26-1.16-1.056.453-3.23.983-1.32 1.376-2.125 1.253-2.47-.117-.332-.84-.244-.84-.244l-2.406.015s-.178-.025-.31.056c-.13.079-.213.262-.213.262s-.382 1.02-.89 1.888c-1.07 1.82-1.499 1.917-1.673 1.804-.407-.262-.305-1.054-.305-1.616 0-1.756.264-2.488-.515-2.676-.26-.063-.45-.104-1.114-.111-.852-.009-1.573.003-1.98.207-.272.133-.482.43-.354.447.158.022.515.097.704.356.244.332.235 1.076.235 1.076s.14 2.06-.326 2.317c-.32.197-.76-.205-1.703-1.82-.483-.84-.848-1.768-.848-1.768s-.07-.174-.196-.268c-.152-.113-.364-.149-.364-.149l-2.287.015s-.343.01-.47.16c-.112.133-.009.408-.009.408s1.796 4.2 3.83 6.316c1.865 1.938 3.987 1.81 3.987 1.81h.958z'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.fs-footer-top__social a:hover {
  background: rgba(0, 119, 255, 0.28);
  border-color: rgba(0, 119, 255, 0.5);
  color: #fff !important;
  transform: translateY(-1px);
}

.footer-widgets.footer-widgets-5 {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 22px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  justify-content: initial !important;
}

.site-footer .footer-widget {
  flex: none !important;
  max-width: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

.footer-widget .widget-header {
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  line-height: 1.25 !important;
  text-transform: none !important;
  white-space: normal;
  word-break: normal;
  hyphens: manual;
  position: relative;
}

@media (min-width: 992px) {
  .footer-widget .widget-header {
    font-size: 14px !important;
    white-space: nowrap;
  }
}

.footer-widget .widget-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: #0075ff;
}

.footer-widget .menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-widget .menu > li {
  margin: 0;
}

.footer-widget .menu a {
  display: block;
  padding: 4px 0;
  color: #a8b4c4 !important;
  font-family: "Onest", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  text-decoration: none;
  text-transform: none !important;
  letter-spacing: 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-widget .menu a:hover {
  color: #5eb0ff !important;
  padding-left: 4px;
  transform: none;
}

.footer-widget .menu > li > a {
  color: #d2dae4 !important;
  font-weight: 500 !important;
}

.footer-widget .sub-menu {
  margin: 4px 0 8px;
  padding-left: 0;
  list-style: none;
}

.footer-widget .sub-menu a {
  font-size: 12px !important;
  color: #8b97a8 !important;
  font-weight: 400 !important;
  line-height: 1.35;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fs-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.fs-footer-bar__copy {
  color: #7f8b9c;
  font-size: 13px;
  line-height: 1.5;
}

.fs-footer-bar__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.fs-footer-bar__links a {
  color: #9eb4cc !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fs-footer-bar__links a:hover {
  color: #5eb0ff !important;
}

@media (max-width: 1199px) {
  .footer-widgets.footer-widgets-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-widget .widget-header {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .site-footer-inner.fixed {
    padding: 32px 16px 22px !important;
  }

  .fs-footer-top {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 26px;
    padding-bottom: 20px;
  }

  .footer-widgets.footer-widgets-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .fs-footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .footer-widgets.footer-widgets-5 {
    grid-template-columns: 1fr;
  }

  .fs-footer-top__social a span {
    display: none;
  }
}

/* Sidebar test CTA — FREESKIN instead of duplicate quiz widget */
.fs-sidebar-test {
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, #12151c 0%, #1a2230 100%);
  border: 1px solid rgba(0, 117, 255, 0.25);
  text-align: center;
}

.fs-sidebar-test__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 117, 255, 0.15);
  color: #66acff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fs-sidebar-test__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.fs-sidebar-test__text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #b8c0cc;
}

.fs-sidebar-test__btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: #0075ff;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fs-sidebar-test__btn:hover {
  background: #005fcc;
  color: #fff !important;
}

.fs-signature {
  margin: 1.5rem 0 0;
  padding: 12px 14px;
  border-left: 3px solid #0075ff;
  background: #f4f8ff;
  font-size: 14px;
  line-height: 1.5;
  color: #3a4455;
}

.fs-signature strong {
  color: #0075ff;
}

/* ── Подвал статьи: подпись, шеринг, комментарии ── */

.fs-post-footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0 8px;
  padding-top: 8px;
}

.fs-post-footer .fs-signature {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid #0075ff;
  border-radius: 0 10px 10px 0;
  background: rgba(0, 117, 255, 0.09);
  color: #b8c4d6;
  font-size: 0.9rem;
  line-height: 1.55;
}

.fs-post-footer .fs-signature strong {
  color: #5eb0ff;
}

.fs-post-footer__share,
.fs-post-footer__comments {
  background: #171c26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.fs-post-footer__heading {
  margin: 0 0 14px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e8edf5;
  letter-spacing: 0.01em;
}

.fs-post-footer__social.social-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.fs-post-footer__social .social-button {
  margin: 0;
  transform: scale(1.05);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.fs-post-footer__social .social-button:hover {
  transform: scale(1.12);
  opacity: 0.92;
}

.fs-post-footer #vk_comments {
  min-height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #12151c;
}

.fs-post-footer #vk_comments iframe {
  border-radius: 8px;
}

.site-main .precomments {
  display: none;
}

/* Footer stays inside the main content column */
#primary.content-area .fs-post-footer,
.content-area .fs-post-footer {
  max-width: 100%;
  clear: both;
}

/* Hero promo: фон фиксированной высоты в шапке, не cover на всю статью */
.entry-image.entry-image--wide {
  background-position: center top !important;
  background-repeat: no-repeat !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex: none !important;
}

@media (min-width: 769px) {
  .entry-image.entry-image--wide {
    background-size: 100% 700px !important;
  }
}

@media (max-width: 768px) {
  .entry-image.entry-image--wide {
    background-size: 100% 300px !important;
  }
}

/* Promo/hero pages: светлый подвал вместо тёмного case-sim */
.site-main:not(.article-card) .fs-post-footer .fs-signature {
  background: #f4f8ff;
  color: #3a4455;
}

.site-main:not(.article-card) .fs-post-footer .fs-signature strong {
  color: #0075ff;
}

.site-main:not(.article-card) .fs-post-footer__share,
.site-main:not(.article-card) .fs-post-footer__comments {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.site-main:not(.article-card) .fs-post-footer__heading {
  color: #1a1d21;
}

.site-main:not(.article-card) .fs-post-footer #vk_comments {
  background: #f8fafc;
}

@media (max-width: 576px) {
  .fs-post-footer__share,
  .fs-post-footer__comments {
    padding: 14px 16px;
  }

  .fs-post-footer__heading {
    font-size: 1rem;
  }
}

/* ── Readable content panel ── */
#content.site-content {
  background: #ffffff !important;
  color: #1a1d21 !important;
}

/* Promo/hero: убрать верхний отступ — заголовок остаётся на баннере */
#content.site-content:has(.entry-image--wide) {
  padding-top: 0 !important;
}

.site-main .entry-content,
.site-main .entry-content[itemprop=articleBody] {
  color: #1a1d21;
}

/* Hero: один белый блок текста под заголовком */
.entry-image--wide .entry-image__body > .entry-content:not([itemprop]) {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.entry-image--wide .entry-content[itemprop=articleBody] {
  background: #ffffff !important;
  color: #1a1d21 !important;
  border-radius: 0 0 8px 8px;
  padding: 28px 30px 36px;
  margin-top: 0;
  position: relative;
  z-index: 12;
}

.entry-image--wide .entry-content[itemprop=articleBody] p,
.entry-image--wide .entry-content[itemprop=articleBody] li,
.entry-image--wide .entry-content[itemprop=articleBody] td,
.entry-image--wide .entry-content[itemprop=articleBody] th,
.entry-image--wide .entry-content[itemprop=articleBody] h2,
.entry-image--wide .entry-content[itemprop=articleBody] h3,
.entry-image--wide .entry-content[itemprop=articleBody] h4 {
  color: inherit;
}

.entry-image--wide .entry-image__body .entry-title {
  color: #ffffff !important;
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.85),
    0 2px 8px rgba(0, 0, 0, 0.9);
}

.entry-image--wide .entry-image__body .breadcrumb,
.entry-image--wide .entry-image__body .breadcrumb a {
  color: #8ec5ff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Promo: баннер на всю ширину колонки */
.entry-image--wide .entry-image__body {
  padding: 24px 30px 0;
}

/* Promo: двухколоночная вёрстка */
.site-content-inner:has(.entry-image--wide) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
}

.site-content-inner:has(.entry-image--wide) #primary.content-area {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  max-width: calc(100% - 320px);
}

.site-content-inner:has(.entry-image--wide) #secondary.widget-area {
  flex: 0 0 300px;
  width: 300px !important;
  max-width: 300px;
}

@media (max-width: 992px) {
  .site-content-inner:has(.entry-image--wide) #primary.content-area,
  .site-content-inner:has(.entry-image--wide) #secondary.widget-area {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100% !important;
  }
}

/* Archive / tag listings */
.site-main .page-title {
  color: #1a1d21 !important;
}

.site-main .post-card__title,
.site-main .post-card__title a {
  color: #1a1d21 !important;
}

.site-main .post-card__title a:hover {
  color: #0075ff !important;
}

.site-main .breadcrumb,
.site-main .breadcrumb a,
.site-main .breadcrumb-item {
  color: #0075ff !important;
}

/* Tag archives: no red maps section banner */
body.tag.custom-background {
  background-image: none !important;
  background-color: #12151c !important;
}

body.tag #content.site-content {
  margin-top: 24px !important;
  margin-bottom: 60px !important;
}

@media (max-width: 1200px) {
  body.tag #content.site-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* Cookie consent */
#fs-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100050;
  max-width: 720px;
  margin: 0 auto;
  background: #1a2130;
  border: 1px solid #2a3548;
  color: #e8eef8;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.45;
}

#fs-cookie-banner a {
  color: #6eb6ff;
}

.fs-cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fs-cookie-banner__inner p {
  margin: 0;
}

.fs-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.fs-cookie-banner__btn {
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: #0075ff;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.fs-cookie-banner__btn--ghost {
  background: transparent;
  border: 1px solid #3a4a63;
  color: #e8eef8;
}

@media (max-width: 640px) {
  #fs-cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .fs-cookie-banner__actions {
    flex-direction: column;
  }

  .fs-cookie-banner__btn {
    width: 100%;
  }
}

/* Mobile: tap targets, overflow, typography */
@media (max-width: 767px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .site-content,
  #content,
  .content-area {
    max-width: 100%;
    box-sizing: border-box;
  }

  .entry-content,
  .site-main {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .entry-content a,
  .nav-links a,
  .pagination a {
    min-height: 44px;
  }

  .entry-content img,
  .wp-block-image img,
  .post-thumbnail img {
    max-width: 100% !important;
    height: auto !important;
  }

  .entry-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .entry-content pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .fs-breadcrumbs,
  .breadcrumbs {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  h1.entry-title,
  .entry-header .entry-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem) !important;
    line-height: 1.22 !important;
  }
}

@media (max-width: 420px) {
  .fs-cookie-banner__text {
    font-size: 0.85rem;
  }
}
