/* Median.Az 2025 — new editorial identity */
:root {
  --m-ink: #0a1d3a;
  --m-ink-soft: #142d52;
  --m-blue: #1554d1;
  --m-blue-deep: #0c3ba8;
  --m-cyan: #22c6eb;
  --m-cyan-soft: #e6f9ff;
  --m-paper: #f4f8fc;
  --m-white: #fff;
  --m-text: #16243a;
  --m-muted: #74849a;
  --m-line: #e1e9f2;
  --m-shadow: 0 16px 40px rgba(10, 29, 58, .10);
  --m-side-top: 174px;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--m-text);
  background: var(--m-paper) !important;
  font-family: "Noto Sans", Arial, sans-serif !important;
  font-size: 15px;
  line-height: 1.6;
}
body, body * { box-sizing: border-box; }
a { transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }

/* Masthead and new Median mark */
.header {
  position: relative;
  z-index: 100;
  min-height: 0;
  margin: 0;
  background: #fff !important;
  box-shadow: 0 8px 26px rgba(9, 30, 63, .075);
  white-space: normal;
}
.mobile-top-banner { display: none !important; }
.main-top {
  clear: both;
  margin: 0;
  padding: 13px 24px;
  background: linear-gradient(110deg, #071a39 0%, #0c2a57 65%, #1241a0 100%);
}
.main-top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1320px, 100%);
  min-height: 66px;
  margin: 0 auto;
}
.main-top .logo.median-logo {
  display: block;
  float: none;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0;
}
.median-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.median-mark {
  display: block;
  width: 48px;
  height: 48px;
  color: #fff;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.16));
}
.median-wordmark { display: flex; flex-direction: column; line-height: 1; }
.median-name {
  color: #fff;
  font-size: clamp(27px, 2.4vw, 36px);
  font-weight: 800;
  letter-spacing: -1.8px;
}
.median-name > span { color: var(--m-cyan); }
.median-tagline {
  margin-top: 6px;
  color: #bdd3f5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: none;
}
.main-top .weather_widget, .main-top .current_date {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  color: #e9f2ff;
}
.main-top .weather_widget { flex: 1 1 auto; text-align: center; }
.main-top .social_menu { float: none; margin: 0; }
.main-top .social_menu li { display: block !important; }
.main-top .social_menu li a { border-radius: 50%; }

/* Category navigation */
.nav-wrap {
  width: 100% !important;
  height: auto;
  min-height: 58px;
  margin: 0;
  padding: 0 max(22px, calc((100% - 1320px) / 2)) !important;
  background: #fff !important;
  border-bottom: 1px solid var(--m-line);
}
.nav { display: flex; align-items: center; min-height: 58px; overflow: visible; }
.nav ul {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav li { flex: 0 0 auto; float: none; margin: 0; }
.nav li a {
  position: relative;
  float: none;
  display: block;
  padding: 0 7px;
  border-radius: 0;
  color: var(--m-ink) !important;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 750;
  line-height: 56px;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav li a::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--m-cyan);
  content: "";
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav li a:hover { background: transparent !important; color: var(--m-blue) !important; }
.nav li a:hover::after { transform: scaleX(1); }
.nav li:first-child a { color: var(--m-blue) !important; font-size: 16px; }
.nav-btn { display: none; }
.category-scroll { display: inline-flex; flex: 0 0 28px; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0 4px; padding: 0; border: 1px solid #dbe7f5; border-radius: 50%; color: var(--m-blue); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.category-scroll:hover { color: #fff; border-color: var(--m-blue); background: var(--m-blue); }
[hidden] { display: none !important; }
.searchblock { flex: 0 0 42px; position: relative; }
.searchblock .search_btn { border-radius: 10px; }
.ticker {
  min-height: 42px;
  margin: 0;
  padding: 0 22px;
  overflow: hidden;
  color: #fff;
  background: var(--m-ink) !important;
}
.ticker__inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  position: relative;
  isolation: isolate;
  align-items: center;
  gap: 14px;
  width: min(1320px, 100%);
  min-width: 0;
  min-height: 42px;
  margin: 0 auto;
}
.ticker-label {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 5px;
  color: var(--m-ink);
  background: var(--m-cyan);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}
.ticker__wrap { position: relative; grid-column: 2; grid-row: 1; width: auto; min-width: 0; overflow: hidden; clip-path: inset(0); white-space: nowrap; }
.ticker-track { display: flex; align-items: center; width: max-content; animation: median-ticker 78s linear infinite; will-change: transform; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-track > a { display: block; flex: 0 0 auto; padding-right: 28px; white-space: nowrap; }
@keyframes median-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.ticker__wrap ul { display: flex; gap: 28px; width: max-content; margin: 0; padding: 0; list-style: none; }
.ticker__wrap li { display: inline-block; float: none; white-space: nowrap; }
.ticker__wrap a { color: #e9f2ff; font-size: 12px; text-decoration: none; }
.ticker__wrap a:hover { color: var(--m-cyan); }

/* Main layout and large, undistorted photo slider */
#mains.container {
  width: min(1320px, calc(100% - 40px)) !important;
  max-width: 1320px !important;
  margin: 0 auto;
  padding: 0 !important;
  overflow: visible;
}
.slider-wrapper { width: 100%; margin: 28px auto 32px; }
.slider-container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  align-items: stretch;
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  gap: 20px;
}
.slider-container .swiper, .slider-inner .swiper, .swiper.mySwiper {
  position: relative;
  width: 100%;
  height: clamp(330px, 28vw, 430px) !important;
  overflow: hidden;
  border-radius: 16px;
  background: #d7e4f5;
  box-shadow: var(--m-shadow);
}
.swiper-slide { position: relative; height: 100%; overflow: hidden; }
.swiper-slide > a { display: block; width: 100%; height: 100%; }
.swiper-slide img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  transform: scale(1.001);
  transition: transform .6s ease;
}
.swiper-slide:hover img { transform: scale(1.025); }
.swiper-slide::after {
  position: absolute;
  inset: 35% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 17, 38, .18) 25%, rgba(4, 17, 38, .88) 100%);
  content: "";
  pointer-events: none;
}
.slide-title {
  position: absolute !important;
  z-index: 2;
  right: 28px !important;
  bottom: 32px !important;
  left: 28px !important;
  width: auto !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  font-size: clamp(24px, 2.25vw, 36px) !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  text-align: left !important;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.swiper-pagination { bottom: 12px !important; z-index: 4; }
.swiper-pagination-bullet { width: 8px; height: 8px; background: #fff; opacity: .65; }
.swiper-pagination-bullet-active { width: 24px; border-radius: 8px; background: var(--m-cyan); opacity: 1; }
.slider-banner { display: block; min-width: 0; }
.slider-ad-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 340px;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #0a2861 0%, #1554d1 58%, #1aaee1 100%);
  box-shadow: var(--m-shadow);
}
.slider-ad-card::before, .slider-ad-card::after {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.slider-ad-card::before { top: -120px; right: -68px; box-shadow: 0 0 0 28px #ffffff09, 0 0 0 58px #ffffff08; }
.slider-ad-card::after { right: -110px; bottom: -190px; width: 310px; height: 310px; }
.slider-ad-card > * { position: relative; z-index: 1; }
.slider-ad-card .ad-eyebrow { color: #bfeeff; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.slider-ad-card .ad-orbit {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 20px 0 14px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: #ffffff14;
}
.slider-ad-card .ad-orbit::after { width: 9px; height: 9px; margin: auto; border-radius: 50%; background: var(--m-cyan); content: ""; }
.slider-ad-card strong { max-width: 340px; font-size: clamp(23px, 2.2vw, 32px); font-weight: 850; line-height: 1.12; }
.slider-ad-card p { max-width: 300px; margin: 14px 0 24px; color: #e2f3ff; font-size: 14px; line-height: 1.6; }
.slider-ad-card a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: fit-content;
  padding: 12px 16px;
  border: 1px solid #9ceaff66;
  border-radius: 9px;
  color: var(--m-ink) !important;
  background: var(--m-cyan);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-decoration: none;
}
.slider-ad-card a:hover { transform: translateY(-2px); background: #6ee4ff; }
.slider-ad-card small { position: absolute; right: 4px; bottom: -12px; color: #ffffff8a; font-size: 9px; letter-spacing: .12em; }

/* Tall Mojo placements follow the desktop viewport until the footer */
.side-banner {
  position: fixed !important;
  top: var(--m-side-top) !important;
  bottom: auto !important;
  z-index: 30 !important;
  display: block;
  width: var(--m-side-width, clamp(145px, 11.5vw, 200px));
  height: calc(100vh - 24px);
  overflow: hidden;
  border: 1px solid rgba(21,84,209,.18);
  border-radius: 12px;
  background: #0d8582;
  box-shadow: 0 10px 28px rgba(4, 24, 54, .18);
  opacity: 1;
  transition: opacity .2s ease, visibility .2s ease;
}
.side-banner.left { left: max(12px, calc(50% - 590px - var(--m-side-width, clamp(145px, 11.5vw, 200px)) - 24px)) !important; right: auto !important; }
.side-banner.right { right: max(12px, calc(50% - 590px - var(--m-side-width, clamp(145px, 11.5vw, 200px)) - 24px)) !important; left: auto !important; }
.side-banner img { display: block; width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: center; border-radius: 11px; }
.side-banner.is-scrolled { top: 12px !important; }
.side-banner.is-footer-stopped { position: absolute !important; top: var(--m-side-stop) !important; }

/* 3-column DLE news feed, 15 items per page from DLE config */
.row.row-offcanvas { margin: 0; }
.row-offcanvas > .col-md-12 { width: 100%; padding: 0; }
#dle-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}
#dle-content > .short, .article-latest-grid > .short, .article-featured > .short {
  display: flex;
  float: none;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  min-height: 0;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(10,29,58,.045);
  transition: transform .2s ease, box-shadow .2s ease;
}
#dle-content > .short:hover, .article-latest-grid > .short:hover, .article-featured > .short:hover {
  transform: translateY(-4px);
  box-shadow: var(--m-shadow);
}
.news-card-main { display: block; color: inherit !important; text-decoration: none !important; }
.img-short {
  position: relative;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1.82 / 1;
  flex: 0 0 auto;
  overflow: hidden;
  background: #e1eaf4;
}
.img-short > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  transition: transform .4s ease;
}
.news-card:hover .img-short > img { transform: scale(1.04); }
.news-category {
  position: absolute;
  bottom: 11px;
  left: 12px;
  z-index: 1;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 5px;
  color: #fff;
  background: rgba(7, 28, 62, .84);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.img-short-title { display: none; }
.short-desc {
  height: auto !important;
  min-height: 66px;
  padding: 11px 13px 10px;
  color: var(--m-text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.42;
}
.short-desc h3, .short-desc p { margin: 0; color: var(--m-text) !important; font: inherit; }
.short-bott {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "date category views";
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 11px 15px;
  border-top: 1px solid #edf1f6;
  color: var(--m-muted);
  background: #fff;
  font-size: 10px;
}
.short-bott time { grid-area: date; justify-self: start; white-space: nowrap; color: #60738d; font-variant-numeric: tabular-nums; }
.short-bott a.news-category-link { grid-area: category; justify-self: center; color: var(--m-blue) !important; font-weight: 800; text-align: center; text-decoration: none; }
.short-bott .news-views { grid-area: views; justify-self: end; white-space: nowrap; color: #71839b; font-variant-numeric: tabular-nums; }
.navigation-holder { grid-column: 1 / -1; height: auto; margin: 10px 0 35px; }
.navigation { display: inline-flex; align-items: center; gap: 5px; }
.navigation span, .navigation a, .navigation b {
  min-width: 38px;
  height: 38px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--m-line);
  border-radius: 9px;
  color: var(--m-ink);
  background: #fff;
  line-height: 36px;
}
.navigation b { border-color: var(--m-blue); color: #fff; background: var(--m-blue); }

/* Mojo API listings are grouped at the bottom of the homepage/article */
.mojo-section {
  width: 100%;
  margin: 38px auto 34px;
  padding: 22px 24px 26px;
  overflow: hidden;
  border: 1px solid #dfeafa;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #edf6ff);
  box-shadow: 0 8px 28px rgba(10, 29, 58, .06);
}
.mojo-section-head { position: relative; display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 18px; margin-bottom: 16px; padding: 0 0 13px; }
.mojo-section-head::before { position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, #dce8f6, #9fc6f7 50%, #dce8f6); content: ""; }
.mojo-kicker { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 9px; color: #fff; background: linear-gradient(120deg, #102950, #1760d9); font-size: 14px; font-weight: 900; letter-spacing: .02em; }
.mojo-kicker { position: relative; z-index: 1; justify-self: center; padding-right: 20px; padding-left: 20px; border: 4px solid #f4f8fd; border-radius: 10px; box-shadow: 0 4px 12px rgba(10,29,58,.14); }
.mojo-section-head h2 { margin: 0; color: var(--m-ink); font-size: 18px; font-weight: 800; }
.mojo-section-head > a { position: absolute; z-index: 2; top: 50%; right: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #d8e6f7; border-radius: 9px; color: var(--m-blue); background: #fff; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; transform: translateY(-50%); }
.mojo-section .mojo-wrapper { margin: 0; }
.mojo-section .mojo-swiper { padding: 4px 2px 18px; overflow: hidden; }
.mojo-section .mojo-swiper .swiper-wrapper { align-items: stretch; }
.mojo-section .mojo-swiper .swiper-slide { height: auto; }
.mojo-section .mojo-card {
  filter: none !important;
  opacity: 1 !important;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--m-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(10,29,58,.075);
}
.mojo-section .mojo-card:hover { transform: translateY(-3px); }
.mojo-section .mojo-img { height: 190px; background-position: center; filter: none !important; opacity: 1 !important; border-radius: 13px 13px 0 0; }
.mojo-section .mojo-price { border-radius: 8px; background: var(--m-blue); box-shadow: 0 4px 12px rgba(10,29,58,.22); }
.mojo-section .mojo-title { display: -webkit-box; flex-shrink: 0; height: auto !important; min-height: 66px; padding: 12px 13px 16px !important; overflow: hidden; border-top: 1px solid #edf2f8; border-radius: 0 0 14px 14px; color: var(--m-ink) !important; background: #fff !important; background-image: none !important; filter: none !important; opacity: 1 !important; font-size: 13px; font-weight: 650; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mojo-section .mojo-prev, .mojo-section .mojo-next { top: 102px; border: 1px solid var(--m-line); }
.mojo-section .mojo-prev::before, .mojo-section .mojo-next::before { border-color: var(--m-blue); }

/* Article page: readable story + topic and latest-news sidebar */
.fullstory-container, .article-after-content {
  width: min(1320px, calc(100% - 40px)) !important;
  max-width: 1320px !important;
  margin: 28px auto 0;
  padding: 0 !important;
}
.fullstory-container > .story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 28px;
  margin: 0;
}
.story-primary, .story-rail {
  float: none !important;
  display: block;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
}
.story-rail { position: sticky; top: 18px; display: grid; gap: 18px; }
.fs-main, .full-article { min-width: 0; }
.full-article {
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(10,29,58,.045);
}
.article-breadcrumb { margin: 0 0 12px; color: var(--m-muted); font-size: 11px; }
.article-breadcrumb a { color: var(--m-blue); text-decoration: none; }
.full-title { margin: 0 0 15px; color: var(--m-ink); font-size: clamp(26px, 2.2vw, 34px); font-weight: 750; line-height: 1.22; letter-spacing: -.025em; }
.full-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; margin: 0 0 22px; color: var(--m-muted); font-size: 13px; }
.full-meta span:nth-child(2) { justify-self: center; }
.full-meta span:nth-child(3) { justify-self: end; }
.full-meta i { margin-right: 5px; color: var(--m-blue); }
.full-image { width: 100%; max-width: 850px; margin: 0; overflow: hidden; border-radius: 12px; background: #edf2f8; }
.full-image img { display: block; width: 100%; max-width: 100%; max-height: 480px; height: auto; object-fit: contain; }
.full-body { color: #26364b; font-size: 17px; line-height: 1.8; }
.full-body p { margin: 0 0 1.25em; }
.full-body img { max-width: 100%; height: auto; border-radius: 10px; }
.full-body iframe { max-width: 100%; }
.full-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0; }
.full-tags a { padding: 5px 10px; border-radius: 20px; color: var(--m-blue) !important; background: #edf5ff; font-size: 11px; text-decoration: none; }
.edit-info { padding: 12px 14px; border-left: 3px solid var(--m-cyan); border-radius: 0 8px 8px 0; color: var(--m-muted); background: #f1f8fc; font-size: 12px; }
.story-sidebar { position: sticky; top: 20px; display: grid; gap: 18px; }
.sidebar-panel { padding: 18px; border: 1px solid var(--m-line); border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(10,29,58,.045); }
.sidebar-panel h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--m-ink); font-family: "Noto Sans", "Segoe UI", Arial, sans-serif; font-size: 18px; font-weight: 800; }
.sidebar-panel h2::before { width: 4px; height: 20px; border-radius: 4px; background: var(--m-cyan); content: ""; }
.topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.topic-list li { min-width: 0; padding: 0; overflow: hidden; border: 1px solid #e7edf5; border-radius: 9px; background: #fff; }
.topic-list a { display: flex; height: 100%; flex-direction: column; gap: 7px; color: #26364b; font-family: "Noto Sans", "Segoe UI", Arial, sans-serif; font-size: 12px; font-weight: 650; line-height: 1.45; text-decoration: none; }
.topic-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #eaf0f7; }
.topic-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.topic-title { display: block; padding: 0 9px 10px; overflow-wrap: anywhere; }
.topic-list a:hover { color: var(--m-blue); }
.scroll-news { max-height: 530px; overflow: auto; }
.scroll-news ul { margin: 0; padding: 0; list-style: none; }
.scroll-news li { padding: 10px 0; border-bottom: 1px solid #edf1f6; }
.scroll-news li:last-child { border-bottom: 0; }
.scroll-news a { color: #26364b; font-size: 12px; font-weight: 650; line-height: 1.45; text-decoration: none; }
.scroll-news a:hover { color: var(--m-blue); }
.article-after-content { margin-top: 34px; }
.article-latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-latest .editorial-section-title, .article-featured .editorial-section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.article-latest .editorial-section-title { justify-content: center; margin: 8px 0 18px; padding: 14px 18px; border: 1px solid #dbe8f6; border-left: 4px solid var(--m-cyan); border-radius: 11px; background: #eaf3fc; }
.article-latest .editorial-section-title h2 { font-family: "Noto Sans", "Segoe UI", Arial, sans-serif; font-size: 20px; font-weight: 800; }
.section-index { color: var(--m-blue); font-size: 13px; font-weight: 900; letter-spacing: .05em; }
.editorial-section-title h2 { margin: 0; color: var(--m-ink); font-size: 21px; font-weight: 850; }
.section-rule { flex: 1; height: 1px; background: var(--m-line); }
.section-caption { color: var(--m-muted); font-size: 11px; font-weight: 750; }
.article-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.article-featured > .editorial-section-title { grid-column: 1 / -1; }
.article-featured .short-desc { min-height: 66px; font-size: 14px; }
.article-featured .img-short { aspect-ratio: 1.7 / 1; }
.story-mojo-section { margin-top: 36px; }

/* Footer, search and scroll-to-top */
.footer {
  position: relative;
  z-index: 40;
  min-height: 0;
  margin: 42px 0 0;
  padding: 0;
  background: linear-gradient(110deg, #071a39, #0b2c60) !important;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1320px, calc(100% - 40px));
  max-width: 1320px;
  padding: 25px 0;
  color: #d6e4f7;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.8;
}
.footer .footer-img { width: auto !important; }
.footer .median-brand { gap: 8px; }
.footer .median-mark { width: 38px; height: 38px; }
.footer .median-name { font-size: 23px; }
.footer .median-tagline { font-size: 8px; }
.footer-text { color: #d6e4f7; }
.footer-text a { color: #fff; }
.scrollup { z-index: 100000 !important; background: var(--m-blue) !important; box-shadow: 0 6px 20px rgba(21,84,209,.25); }
.scrollup:hover { background: var(--m-blue-deep) !important; }

@media (max-width: 1199px) {
  .side-banner { display: none !important; }
  #mains.container, .fullstory-container, .article-after-content { width: min(1320px, calc(100% - 32px)) !important; }
}
@media (min-width: 1200px) {
  .side-banner { display: block !important; }
  #mains.container, .fullstory-container, .article-after-content { width: min(1180px, calc(100vw - 400px)) !important; max-width: 1180px !important; }
}
@media (max-width: 1199px) {
  .main-top { padding: 11px 18px; }
  .main-top .wrap { min-height: 60px; gap: 16px; }
  .median-tagline { display: none; }
  .nav-wrap { padding: 0 14px !important; }
  .nav li a { padding: 0 6px; font-size: 10px; }
  .slider-container { grid-template-columns: minmax(0, 1fr) 285px; gap: 14px; }
  .slider-container .swiper, .swiper.mySwiper { height: 380px !important; }
  #dle-content { gap: 16px; }
  .short-desc { min-height: 82px; padding: 12px; font-size: 14px; }
  .fullstory-container > .story-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
}
@media (max-width: 991px) {
  .main-top .weather_widget { display: none !important; }
  .main-top .wrap { justify-content: space-between; }
  .nav-wrap { min-height: 52px; }
  .nav { min-height: 52px; }
  .nav-btn { display: block; min-height: 52px; padding: 5px 10px; }
  .nav-btn img { width: 30px !important; height: 30px !important; }
  .nav ul {
    position: absolute;
    top: 52px;
    right: 0;
    left: 0;
    z-index: 200;
    display: none;
    max-height: calc(100vh - 170px);
    padding: 8px;
    overflow-y: auto;
    border-radius: 0 0 12px 12px;
    background: var(--m-blue-deep);
    box-shadow: 0 14px 26px rgba(5,25,60,.25);
  }
  .nav ul.active { display: block; }
  .nav li { float: none; }
  .nav li a { padding: 0 14px; color: #fff !important; line-height: 42px; font-size: 13px; }
  .nav li a:hover { color: #fff !important; background: #ffffff16 !important; }
  .nav li a::after { display: none; }
  .searchblock { margin-left: auto; }
  .ticker { padding: 0 14px; }
  #mains.container, .fullstory-container, .article-after-content { width: calc(100% - 28px) !important; }
  .slider-wrapper { margin: 20px auto 24px; }
  .slider-container { grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; }
  .slider-container .swiper, .swiper.mySwiper { height: 330px !important; border-radius: 12px; }
  .slider-ad-card { min-height: 300px; padding: 20px; border-radius: 12px; }
  .slider-ad-card strong { font-size: 22px; }
  #dle-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fullstory-container > .story-layout { grid-template-columns: minmax(0, 1fr); }
  .fullstory-container .story-rail { display: none !important; }
  .article-latest-grid, .article-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .container { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .main-top { padding: 9px 14px; }
  .main-top .wrap { min-height: 52px; }
  .median-mark { width: 38px; height: 38px; }
  .median-name { font-size: 26px; }
  .main-top .social_menu { display: none !important; }
  .nav-wrap { padding: 0 12px !important; }
  .nav-btn { padding-left: 0; }
  .mobile-topbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
  .ticker { min-height: 38px; padding: 0 12px; }
  .ticker__inner { min-height: 38px; gap: 9px; }
  .ticker-label { padding: 4px 7px; font-size: 8px; }
  .ticker__wrap a { font-size: 10px; }
  .slider-wrapper { margin: 14px auto 20px; }
  .slider-container { display: flex !important; flex-direction: column; gap: 12px; }
  .slider-container .swiper, .swiper.mySwiper { height: clamp(280px, 72vw, 390px) !important; }
  .slide-title { right: 16px !important; bottom: 22px !important; left: 16px !important; font-size: clamp(20px, 5vw, 27px) !important; }
  .slider-ad-card { min-height: 150px; padding: 18px; }
  .slider-ad-card .ad-orbit { display: none; }
  .slider-ad-card strong { max-width: 250px; font-size: 20px; }
  .slider-ad-card p { margin: 8px 0 12px; font-size: 12px; }
  .slider-ad-card a { padding: 9px 12px; }
  .slider-ad-card small { right: 14px; bottom: 12px; }
  #dle-content { gap: 12px; }
  .img-short { aspect-ratio: 1.28 / 1; }
  .short-desc { min-height: 74px; padding: 10px; font-size: 13px; }
  .short-bott { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "date category views"; gap: 5px; padding: 9px 8px; font-size: 9px; }
  .short-bott time { width: auto; margin-left: 0; }
  .news-category { bottom: 7px; left: 7px; padding: 4px 6px; font-size: 8px; }
  .mojo-section { margin-top: 24px; padding: 16px 12px 18px; border-radius: 12px; }
  .mojo-section-head { align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; }
  .mojo-kicker { min-height: 30px; padding: 0 10px; font-size: 12px; }
  .mojo-section-head > a { padding: 8px 9px; font-size: 9px; }
  .mojo-section-head { min-height: 78px; padding-bottom: 42px; }
  .mojo-section-head > a { top: auto; right: 0; bottom: 0; transform: none; }
  .mojo-section .mojo-img { height: 150px; }
  .fullstory-container, .article-after-content { width: calc(100% - 12px) !important; margin-top: 16px; }
  .full-article { padding: 16px 9px; border-radius: 12px; }
  .full-title { font-size: 27px; }
  .full-meta { gap: 10px; font-size: 10px; }
  .full-body { font-size: 16px; }
  .article-latest-grid { grid-template-columns: 1fr; gap: 14px; }
  .article-featured { grid-template-columns: 1fr; gap: 12px; }
  .article-latest .editorial-section-title { margin: 8px 0 16px; padding: 12px 16px; border-radius: 10px; }
  .article-latest .editorial-section-title h2 { font-size: 19px; }
  .article-featured .short-desc { min-height: 58px; font-size: 12px; }
  .footer { margin-top: 28px; }
  .footer .container { display: block; width: calc(100% - 28px); padding: 19px 0; text-align: center; }
  .footer .footer-img { display: flex !important; justify-content: center; float: none !important; margin: 0 0 12px; }
}
@media (max-width: 420px) {
  #dle-content { grid-template-columns: 1fr; }
  .article-latest-grid, .article-featured { grid-template-columns: 1fr; }
  .img-short { aspect-ratio: 1.55 / 1; }
  .short-desc { min-height: 60px; }
}

/* Final overrides: keep legacy DLE/Bootstrap rules from shifting the new layout. */
.main-top .wrap > .hidden-xs.hidden-sm {
  position: static !important;
  display: flex !important;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}
.main-top .wrap > .hidden-xs.hidden-sm > div,
.main-top .wrap > .hidden-xs.hidden-sm #langweb {
  position: static !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  left: auto !important;
  top: auto !important;
  z-index: auto !important;
}
.main-top .social_menu { display: none !important; }
.header > .nav-wrap.wrap {
  display: flex !important;
  align-items: center;
  gap: 4px;
  position: relative;
  height: 58px !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 max(22px, calc((100% - 1320px) / 2)) !important;
  overflow: visible;
}
.header > .nav-wrap.wrap > .nav {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  height: 58px !important;
  min-height: 58px !important;
}
.header .nav ul.category-list { flex: 1 1 auto; justify-content: flex-start; width: auto; max-width: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.header .nav ul.category-list::-webkit-scrollbar { display: none; }
.header .nav .category-scroll { position: relative; z-index: 2; }
.header .nav li a {
  padding: 0 5px !important;
  font-size: 11px !important;
  line-height: 58px !important;
}
.header > .nav-wrap.wrap .searchblock {
  position: relative !important;
  flex: 0 0 42px !important;
  float: none !important;
  width: 42px !important;
  height: 58px !important;
  min-height: 58px !important;
  margin: 0 !important;
}
.header .searchblock .search_btn {
  position: relative !important;
  display: block;
  width: 42px !important;
  height: 58px !important;
  border: 0;
  border-radius: 0;
  background: transparent !important;
}
.header .searchblock .search_btn::before {
  top: 20px !important;
  right: 15px !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid var(--m-ink) !important;
  border-radius: 50%;
  background: none !important;
  background-image: none !important;
}
.header .searchblock .search_btn::after {
  position: absolute;
  top: 35px;
  right: 11px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--m-ink);
  content: "";
  transform: rotate(48deg);
  transform-origin: left center;
}
.header .searchblock .search_panel { top: 58px; z-index: 250; }
.feed-shell { clear: both; width: 100%; max-width: 1240px; min-width: 0; margin: 0 auto; }
.feed-column { width: 100%; min-width: 0; padding: 0; }
@media (min-width: 1200px) {
  .feed-shell { width: min(1320px, calc(100vw - 440px)); max-width: 1320px; }
}
#dle-content {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  justify-content: stretch;
  clear: both;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
#dle-content > .short,
.article-latest-grid > .short,
.article-featured > .short {
  grid-column: auto !important;
  justify-self: stretch !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
}
.article-after-content { clear: both; display: block; }
.article-latest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 991px) {
  .header > .nav-wrap.wrap { height: 52px !important; min-height: 52px !important; padding: 0 12px !important; }
  .header > .nav-wrap.wrap > .nav { height: 52px !important; min-height: 52px !important; }
  .header .nav li a { font-size: 13px !important; line-height: 42px !important; padding: 0 14px !important; }
  .header > .nav-wrap.wrap .searchblock { height: 52px !important; min-height: 52px !important; }
  .header .searchblock .search_btn { height: 52px !important; }
  .header .searchblock .search_btn::before { top: 17px !important; }
  .header .searchblock .search_btn::after { top: 32px; }
  .header .nav .category-scroll { display: none !important; }
  #dle-content { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .article-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  #dle-content { grid-template-columns: minmax(0, 1fr) !important; }
}
.header .searchblock.is-open .search_panel { display: block !important; }
.header .searchblock .search_panel { width: min(300px, calc(100vw - 28px)); height: auto; padding: 10px; border: 1px solid var(--m-line); border-top: 2px solid var(--m-cyan); border-radius: 0 0 10px 10px; background: #fff; box-shadow: var(--m-shadow); }
.header .searchblock .searchform { width: 100%; height: 40px; padding: 8px 10px; border: 1px solid var(--m-line); border-radius: 7px; color: var(--m-text); background: #fff; }
.full-body, .full-title { overflow-wrap: anywhere; word-break: normal; }
.full-body table { display: block; max-width: 100%; overflow-x: auto; }
.article-embed { width: 100%; max-width: 820px; margin: 22px auto; overflow: hidden; border-radius: 12px; background: #091d3c; }
.article-embed iframe { display: block; width: 100%; height: auto; min-height: 330px; aspect-ratio: 16 / 9; border: 0; }
.instagram-embed { width: min(680px, 100%); max-width: 680px; margin: 22px auto; padding: 8px; overflow: visible; background: #fff; }
.instagram-embed .instagram-media { width: 100% !important; min-width: 0 !important; max-width: 540px !important; margin: 0 auto !important; }
.instagram-embed iframe { width: 100% !important; max-width: 540px !important; min-height: 0; margin: 0 auto !important; }
.article-poll, .telegram-embed { margin: 20px 0; }
.article-media-row { display: grid; grid-template-columns: 38px minmax(0, 850px); align-items: start; justify-content: center; gap: 14px; max-width: 920px; margin: 0 auto 26px; }
.article-media-row .full-image { max-width: 850px; }
.article-share-side { position: sticky; top: 24px; display: grid; gap: 7px; padding-top: 4px; }
.article-share-side a { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--m-line); border-radius: 50%; color: var(--m-blue); background: #fff; font-size: 17px; text-decoration: none; box-shadow: 0 3px 10px rgba(10,29,58,.06); }
.article-share-side a[aria-label="Facebook"], .article-share a[aria-label="Facebook"] { color: #1877f2; }
.article-share-side a[aria-label="Instagram"], .article-share a[aria-label="Instagram"] { color: #c13584; }
.article-share-side a[aria-label="WhatsApp"], .article-share a[aria-label="WhatsApp"] { color: #1da851; }
.article-share-side a[aria-label="Telegram"], .article-share a[aria-label="Telegram"] { color: #168acd; }
.article-share-side a[aria-label="X"], .article-share a[aria-label="X"] { color: #111; }
.article-share-side a[aria-label="VK"], .article-share a[aria-label="VK"] { color: #0077ff; }
.article-share-side a[aria-label="Odnoklassniki"], .article-share a[aria-label="Odnoklassniki"] { color: #ee8208; }
.article-share-side a[aria-label="Email"], .article-share a[aria-label="Email"] { color: #64748b; }
.article-share-side a[aria-label="VK"], .article-share a[aria-label="VK"] { color: #0077ff; }
.article-share-side a[aria-label="Odnoklassniki"], .article-share a[aria-label="Odnoklassniki"] { color: #ee8208; }
.article-share-side a[aria-label="Email"], .article-share a[aria-label="Email"] { color: #64748b; }
.article-share-side a:hover { color: #fff; border-color: var(--m-blue); background: var(--m-blue); transform: translateY(-2px); }
.article-share { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--m-line); }
.article-share > span { margin-right: auto; color: var(--m-muted); font-size: 12px; font-weight: 700; }
.article-share a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--m-line); border-radius: 50%; color: var(--m-blue); background: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }
.article-share a i { font-size: 17px; }
.article-share a:hover { color: #fff; border-color: var(--m-blue); background: var(--m-blue); }
@media (max-width: 640px) {
  .article-embed iframe { min-height: 210px; }
}

/* Desktop article layout: escape the legacy narrow DLE content wrapper. */
.story-page {
  display: block !important;
  grid-column: 1 / -1 !important;
  width: 100%;
  min-width: 0;
  max-width: none;
}
@media (min-width: 992px) {
  .fullstory-container,
  .article-after-content {
    position: relative;
    left: 50%;
    width: min(1320px, calc(100vw - 48px)) !important;
    max-width: 1320px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(-50%);
  }
  .fullstory-container > .story-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    align-items: start;
    width: 100% !important;
    max-width: none !important;
    gap: 28px;
  }
  .fullstory-container .story-primary {
    display: block !important;
    grid-column: 1;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .fullstory-container .story-rail {
    display: grid !important;
    grid-column: 2;
    width: auto !important;
    min-width: 0 !important;
  }
  .fullstory-container .full-article { width: 100% !important; max-width: none !important; }
  .fullstory-container .full-title { margin-left: 86px; }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .fullstory-container,
  .article-after-content { width: min(1320px, calc(100vw - 280px)) !important; }
}
@media (max-width: 991px) {
  .fullstory-container,
  .article-after-content {
    position: static;
    left: auto;
    width: calc(100% - 28px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none;
  }
}
@media (max-width: 640px) {
  .scrollup { right: 12px !important; bottom: 78px !important; display: flex !important; }
  .fullstory-container, .article-after-content { width: calc(100% - 12px) !important; }
  .full-article { padding-left: 9px; padding-right: 9px; }
  .article-latest-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .article-media-row { display: block; max-width: 100%; }
  .article-share-side { display: none; }
  .article-share { flex-wrap: wrap; gap: 7px; }
  .article-share { margin-bottom: 16px; padding-bottom: 18px; }
  .article-share a { width: 36px; height: 36px; }
  .article-share a[aria-label="Odnoklassniki"] { display: none; }
  .scrollup { opacity: 1 !important; visibility: visible !important; right: 12px !important; bottom: 82px !important; z-index: 100001 !important; }
}
@media (min-width: 1200px) {
  .fullstory-container { width: min(1180px, calc(100vw - 440px)) !important; max-width: 1180px !important; }
  .article-after-content { width: min(1180px, calc(100vw - 440px)) !important; max-width: 1180px !important; }
}

/* Clear, single-row mobile tools and consistent social links */
@media (min-width: 992px) {
  .main-top .wrap > .hidden-xs.hidden-sm > div:nth-child(2) { display: flex !important; align-items: center; gap: 10px; }
  .main-top .wrap > .hidden-xs.hidden-sm > div:nth-child(2) a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.1); transition: transform .18s ease, background .18s ease; }
  .main-top .wrap > .hidden-xs.hidden-sm > div:nth-child(2) a:hover { transform: translateY(-2px); background: rgba(255,255,255,.2); }
  .main-top .wrap > .hidden-xs.hidden-sm > div:nth-child(2) i { font-size: 19px; line-height: 1; }
  .main-top .wrap > .hidden-xs.hidden-sm > div:nth-child(2) a:nth-child(1) i { color: #dce9ff; }
  .main-top .wrap > .hidden-xs.hidden-sm > div:nth-child(2) a:nth-child(2) i { color: #ffb6d5; }
  .main-top .wrap > .hidden-xs.hidden-sm > div:nth-child(2) a:nth-child(3) i { color: #ffb2ad; }
  .main-top .wrap > .hidden-xs.hidden-sm > div:nth-child(2) a:nth-child(4) i { color: #8df0b4; }
  .main-top .wrap > .hidden-xs.hidden-sm > div:last-child a { display: inline-flex; min-width: 48px; height: 38px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; color: #fff; background: linear-gradient(135deg,#1dbce0,#1760d7); box-shadow: 0 5px 14px rgba(0,0,0,.16); font-size: 15px !important; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
  .main-top .wrap > .hidden-xs.hidden-sm > div:last-child a:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(0,0,0,.22); }
}
@media (max-width: 991px) {
  .main-top .wrap > .hidden-xs.hidden-sm { display: none !important; }
  .main-top .wrap { position: relative; justify-content: center !important; min-height: 58px; }
  .main-top .logo.median-logo { position: absolute; left: 50%; margin: 0 !important; transform: translateX(-50%); }
  .median-mark { width: 38px; height: 38px; }
  .median-name { font-size: 27px; }
  .header > .nav-wrap.wrap { justify-content: space-between; gap: 8px; }
  .header > .nav-wrap.wrap > .nav { position: static; flex: 0 0 44px !important; width: 44px !important; order: 1; }
  .header .nav-btn { position: relative; display: inline-flex !important; width: 42px; height: 42px; min-height: 42px !important; align-items: center; justify-content: center; padding: 0 !important; border: 1px solid #dbe7f5; border-radius: 10px; background: #f2f7fc !important; }
  .header .nav-btn img { display: none !important; }
  .header .nav-btn::before { width: 20px; height: 15px; border-top: 2px solid var(--m-ink); border-bottom: 2px solid var(--m-ink); background: linear-gradient(var(--m-ink),var(--m-ink)) center / 20px 2px no-repeat; content: ""; }
  .header .nav ul.category-list { position: absolute; top: 58px; right: 12px; left: 12px; z-index: 250; display: none; width: auto; max-width: 360px; max-height: min(72vh, 560px); margin: 0 auto; padding: 8px; overflow-y: auto; border: 1px solid var(--m-line); border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(10,29,58,.22); }
  .header .nav ul.category-list.active { display: block; }
  .header .nav ul.category-list li { border-bottom: 1px solid #edf2f7; }
  .header .nav ul.category-list li:last-child { border-bottom: 0; }
  .header .nav ul.category-list li a { min-height: 42px; padding: 0 12px !important; border-radius: 8px; color: var(--m-ink) !important; font-size: 13px !important; font-weight: 750; line-height: 42px !important; }
  .header .nav ul.category-list li a:hover { background: #edf7ff !important; color: var(--m-blue) !important; }
  .header > .nav-wrap.wrap > .searchblock { flex: 0 0 42px !important; order: 3; }
  .header > .nav-wrap.wrap > .mobile-tools-wrap { display: flex !important; flex: 1 1 auto; min-width: 0; order: 2; }
  .mobile-topbar { display: flex !important; width: 100%; align-items: center; justify-content: center; gap: 10px; }
  .mobile-social { display: flex; align-items: center; justify-content: center; gap: 6px; }
  .mobile-social a { display: inline-flex; width: 29px; height: 29px; align-items: center; justify-content: center; border: 1px solid #dbe7f5; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(10,29,58,.1); }
  .mobile-social a { width: 31px; height: 31px; border: 0; background: transparent; box-shadow: none; }
  .mobile-social img { display: block; width: 31px !important; height: 31px !important; object-fit: contain; }
  .mobile-lang { display: inline-flex; min-width: 38px; height: 31px; align-items: center; justify-content: center; padding: 0 10px; border: 0; border-radius: 18px; color: #fff !important; background: linear-gradient(135deg,#1dbce0,#1760d7); box-shadow: 0 4px 10px rgba(23,96,215,.25); font-size: 12px; font-weight: 850; letter-spacing: .04em; text-decoration: none; }
  .gsInformer .gsLinks { display: none !important; background: transparent !important; }
}
@media (max-width: 420px) {
  .header > .nav-wrap.wrap { gap: 6px; }
  .mobile-topbar { gap: 5px; }
  .mobile-social { gap: 3px; }
  .mobile-social a, .mobile-social img { width: 27px !important; height: 27px !important; }
  .mobile-lang { min-width: 30px; height: 28px; }
}

/* Remove the provider credit strip that overlaps the weather widget. */
.gsInformer .gsLinks { display: none !important; background: transparent !important; }

/* Desktop navigation: a clean, compact single row with readable category links. */
@media (min-width: 992px) {
  .header > .nav-wrap.wrap { gap: 8px; }
  .header > .nav-wrap.wrap > .nav { display: flex !important; align-items: center; }
  .header .nav ul.category-list { align-items: center; gap: 2px; padding: 0 3px; }
  .header .nav li { flex: 0 0 auto; }
  .header .nav li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 clamp(5px, .58vw, 10px) !important;
    border-radius: 9px;
    color: #17345c !important;
    font-family: "Noto Sans", Arial, sans-serif !important;
    font-size: clamp(10px, .73vw, 12px) !important;
    font-weight: 700 !important;
    letter-spacing: .015em;
    line-height: 1.2 !important;
    white-space: nowrap;
    transition: color .16s ease, background .16s ease;
  }
  .header .nav li a:hover,
  .header .nav li a:focus-visible { color: #145bd7 !important; background: #edf6ff; text-decoration: none; }
  .header .nav li:first-child a { width: 36px; min-width: 36px; color: #1760d7 !important; }
  .header .nav .category-scroll { flex: 0 0 26px; width: 26px; height: 26px; margin: 0 2px; border-color: #d9e6f5; color: #1760d7; background: #fff; font-size: 19px; }
  .header .nav .category-scroll:hover { color: #fff; background: #1760d7; }
}

/* Center the mobile social row against the full toolbar, not its leftover flex space. */
@media (max-width: 991px) {
  .header > .nav-wrap.wrap { position: relative; }
  .header > .nav-wrap.wrap {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 4px;
  }
  .header > .nav-wrap.wrap > .nav { grid-column: 1; grid-row: 1; width: 42px !important; }
  .header > .nav-wrap.wrap > .searchblock { grid-column: 3; grid-row: 1; width: 42px !important; }
  .header > .nav-wrap.wrap > .mobile-tools-wrap {
    position: absolute;
    inset: 0 46px;
    z-index: 3;
    display: block !important;
    width: auto;
    pointer-events: none;
  }
  .mobile-topbar { position: relative; height: 100%; justify-content: center; pointer-events: none; }
  .mobile-social { position: absolute; left: 50%; transform: translateX(-50%); pointer-events: auto; }
  .mobile-lang { position: absolute; right: 0; pointer-events: auto; }
  .header .nav ul.category-list {
    position: fixed !important;
    top: 132px;
    right: auto !important;
    bottom: auto;
    left: 50% !important;
    width: calc(100vw - 24px) !important;
    max-width: 420px !important;
    max-height: calc(100vh - 350px) !important;
    padding: 8px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: translateX(-50%);
    z-index: 10000 !important;
  }
  .header .nav ul.category-list.active { display: block !important; }
  .header .nav ul.category-list li a { display: flex !important; align-items: center; text-align: left; }
  .header > .nav-wrap.wrap > .nav,
  .header > .nav-wrap.wrap > .searchblock { position: relative; z-index: 4; }
}

/* Keep Instagram posts fully visible on narrow screens; the generic video ratio clips them. */
@media (max-width: 640px) {
  .full-article .instagram-embed {
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .full-article .instagram-embed .instagram-media {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .full-article .instagram-embed iframe {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 760px !important;
    min-height: 760px !important;
    aspect-ratio: auto !important;
    margin: 0 auto !important;
  }
}
