/**
 * Dubaisk T4 — chrome only (colors/nav/shell).
 * Typography: T4 style tokens (media/t4/css/{id}.css). Do not re-declare typefaces here.
 * Do not rewrite article copy.
 */


:root {
  --ink: #0e2a32;
  --muted: #4a646c;
  --bg: #eef3f5;
  --surface: #ffffff;
  --accent: #0b6b75;
  --accent-deep: #084f57;
  --line: #cfdce1;

  --color-primary: #0b6b75;
  --color-success: #0b6b75;
  --bs-primary: #0b6b75;
  --bs-link-color: #0b6b75;
  --bs-link-hover-color: #084f57;
  --body-bg-color: #eef3f5;
  --body-text-color: #0e2a32;
  --body-link-color: #0b6b75;
  --body-link-hover-color: #084f57;
  --mainnav-text-color: #0e2a32;
  --mainnav-link-color: #0e2a32;
  --mainnav-link-hover-color: #0b6b75;
  --mainnav-link-active-color: #0b6b75;
}

body.site-default {
  background: var(--bg) !important;
  color: var(--ink);
}

/* Header: no separator strip under menu (blend into page; keep item underline only) */
#t4-header,
.t4-header,
.header-block {
  background: #fff !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
#t4-header .header-wrap,
#t4-header .container-xxl,
#t4-header .t4-navbar,
#t4-header .navbar,
#t4-header .t4-megamenu {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
#t4-main-body,
.t4-main-body {
  border-top: 0 !important;
  box-shadow: none !important;
  /* was 1.2–3rem — that gray band looked like a separator under the menu */
  padding-top: 0.75rem !important;
}

.t4-main-body .t4-section-inner.container {
  padding-top: 0 !important;
}

/* Kill full-width separator under top menu (keep only item underline) */
#t4-header::after,
.t4-header::after {
  content: none !important;
  display: none !important;
  height: 0 !important;
  background: none !important;
  border: 0 !important;
}
.t4-content,
.t4-wrapper,
.t4-content-inner {
  background: var(--bg) !important;
  border-top: 0 !important;
}
#t4-header .t4-palette-mainnav,
#t4-header .bg-white,
.header-block.bg-white {
  background: #fff !important;
}

.navbar-brand,
.navbar-brand span {
  color: var(--accent) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Brand logo: keep menu bar slim; logo scales up without thickening the strip */
#t4-header .header-wrap {
  --header-bar-h: 72px;
  min-height: var(--header-bar-h) !important;
  justify-content: flex-start !important;
  gap: 1.5rem;
  overflow: visible !important;
}
#t4-header,
#t4-header .header-block,
#t4-header .container {
  overflow: visible !important;
}
#t4-header .t4-navbar.mx-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}
#t4-header .navbar-brand.logo-image {
  align-self: center;
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 !important;
  padding-block: 0;
  box-sizing: border-box;
  max-width: none !important;
  width: auto !important;
  z-index: 2;
}
#t4-header .navbar-brand.logo-image > a {
  display: flex !important;
  align-items: center;
  max-width: none !important;
  width: auto !important;
}
#t4-header .navbar-brand .logo-img,
#t4-header .navbar-brand img.logo-img {
  display: block !important;
  height: 68px !important;
  width: auto !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain !important;
  transform: scale(1.22);
  transform-origin: left center;
}
@media (max-width: 991.98px) {
  #t4-header .header-wrap {
    --header-bar-h: 64px;
    gap: 0.75rem;
  }
  #t4-header .navbar-brand .logo-img,
  #t4-header .navbar-brand img.logo-img {
    height: 56px !important;
    transform: scale(1.18);
  }
}

/* Scope to header only — do not paint footnav with top-menu chrome */
#t4-header .t4-megamenu .nav-link,
#t4-header .t4-navbar .nav > li > a,
#t4-header .navbar .nav-link {
  color: var(--ink) !important;
  text-transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border-bottom: 0 !important;
  font-weight: 600;
}

#t4-header .t4-megamenu .nav-link:hover,
#t4-header .t4-megamenu .nav-link:focus,
#t4-header .t4-navbar .nav > li > a:hover,
#t4-header .t4-navbar .nav > li > a:focus,
#t4-header .navbar .nav-link:hover,
#t4-header .navbar .nav-link:focus {
  color: var(--accent) !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

#t4-header .t4-megamenu .nav-item.active > .nav-link,
#t4-header .t4-megamenu .nav-link[aria-current="page"],
#t4-header .t4-navbar .nav > li.active > a,
#t4-header .navbar .nav-item.active > .nav-link {
  color: var(--accent) !important;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 var(--accent) !important;
  filter: none !important;
}

a { color: var(--accent); }
a:hover,
a:focus { color: var(--accent-deep); }

.btn-primary,
a.btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}
.btn-primary:hover,
a.btn-primary:hover {
  background: var(--accent-deep) !important;
  border-color: var(--accent-deep) !important;
}

.item-page .page-header h1,
.com-content-article h1 {
  color: var(--ink) !important;
  text-align: left !important;
}

.article-body,
.news-item.text-page,
.news-item .text,
.com-content-article__body {
  /* fill content column so material aligns with header .container */
  max-width: none;
  color: var(--ink) !important;
}

/* Mute legacy inline junk visually — do not delete content */
.com-content-article__body [style*="times new roman"],
.com-content-article__body [style*="Times New Roman"],
.com-content-article__body [style*="times"],
.com-content-article__body [style*="YS Text"],
.com-content-article__body [style*="Arial"],
.article-body [style*="times new roman"],
.article-body [style*="Times New Roman"],
.news-item [style*="times new roman"],
.news-item [style*="Times New Roman"] {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.com-content-article__body [style*="#008000"],
.com-content-article__body [style*="color: #008000"],
.com-content-article__body [style*="color:#008000"],
.com-content-article__body [style*="#0000ff"],
.com-content-article__body [style*="color: #0000ff"],
.com-content-article__body [style*="color:#0000ff"],
.com-content-article__body [style*="#0000FF"],
.com-content-article__body [style*="#003366"],
.com-content-article__body [style*="color: #003366"],
.com-content-article__body [style*="color:#003366"],
.com-content-article__body [style*="#333333"],
.com-content-article__body [style*="color: #333333"],
.article-body [style*="#008000"],
.news-item [style*="#008000"] {
  color: inherit !important;
  font-size: inherit !important;
}

.com-content-article__body [style*="#ff6600"],
.com-content-article__body [style*="color: #ff6600"],
.com-content-article__body [style*="#ffff00"],
.com-content-article__body [style*="background-color: #ffff00"],
.com-content-article__body [style*="background-color:#ffff00"],
.article-body [style*="#ff6600"],
.news-item [style*="#ff6600"] {
  color: var(--accent) !important;
  background-color: transparent !important;
}

/* Article meta: hide category chrome (dates only on news) */
.com-content-article:not(.is-news) .article-info,
.com-content-article:not(.is-news) .info-block {
  display: none !important;
}

/* No boxed article / sidebar — separators were an unwanted chrome layer */
.com-content-article,
.item-page,
.items-row .item,
.blog .item,
.blog-featured .item,
.com-content-category-blog .item {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.sidebar-r .module,
.t4-col.sidebar-r .t4-module,
.t4-col.sidebar-r .t4-module.module.blog-latest,
.t4-col.sidebar-r .t4-module.module.blog-popular,
.t4-col.sidebar-r .t4-module.module.blog-guide {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
}

.sidebar-r .module-title,
.t4-col.sidebar-r .module-title {
  color: var(--accent) !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  border: 0;
}

.sidebar-r a,
.t4-col.sidebar-r a { color: var(--ink); }
.sidebar-r a:hover,
.t4-col.sidebar-r a:hover { color: var(--accent); }


/* Sidebar Popular: no ordinal counters; FA icons on a:before stay (template.css) */
.t4-col.sidebar-r .module-ct li::marker {
  content: none !important;
  font-size: 0 !important;
}
.t4-col.sidebar-r .t4-module.blog-popular .mostread {
  counter-reset: none !important;
}
.t4-col.sidebar-r .t4-module.blog-popular .mostread > li {
  display: block !important;
  gap: 0 !important;
}
.t4-col.sidebar-r .t4-module.blog-popular .mostread > li::before,
.t4-col.sidebar-r .t4-module.blog-popular .mostread > li:before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

#t4-footer,
.t4-section.t4-footer,
#t4-footnav,
.t4-section.t4-footnav,
footer {
  background: #0e2a32 !important;
  border-top: 0;
  color: rgba(244, 250, 251, 0.72);
}
#t4-footer a,
.t4-section.t4-footer a,
#t4-footnav a,
.t4-section.t4-footnav a,
#t4-footnav .nav-link,
.t4-section.t4-footnav .nav-link {
  color: rgba(244, 250, 251, 0.72) !important;
}
#t4-footer a:hover,
.t4-section.t4-footer a:hover,
#t4-footnav a:hover,
.t4-section.t4-footnav a:hover,
#t4-footnav .nav-link:hover,
.t4-section.t4-footnav .nav-link:hover {
  color: #fff !important;
}

/* Footnav: one horizontal row (Bootstrap navbar-nav is column by default) */
#t4-footnav .t4-row {
  align-items: center;
  justify-content: center;
}
#t4-footnav .footnav-1,
#t4-footnav .t4-col {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}
#t4-footnav .navbar {
  display: block;
  padding: 0;
}
#t4-footnav .navbar .nav,
#t4-footnav .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 1rem;
  margin: 0;
  padding: 0.55rem 0;
  white-space: nowrap;
  overflow-x: auto;
}
#t4-footnav .navbar-nav .nav-item {
  width: auto !important;
  float: none !important;
}
#t4-footnav .navbar-nav .nav-link {
  display: inline-block;
  padding: 0.2rem 0.15rem !important;
  white-space: nowrap;
}

#dub-back-edge {
  background: var(--accent);
  color: #fff;
  border: 0;
}
#dub-back-edge:hover { background: var(--accent-deep); }

/* Blog feed (JS) — style only, never hide */
#dub-feed {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
#dub-feed .dub-feed-head h2 {
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 1rem;
}
.dub-feed-card {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.dub-feed-card__title {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.dub-feed-card__title:hover { color: var(--accent); }

/* Feed pagination */
#dub-feed .dub-feed-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 1.25rem 0 0.5rem;
}
#dub-feed .dub-page-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
}
#dub-feed .dub-page-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
#dub-feed .dub-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
#dub-feed .dub-page-dots { color: var(--muted); padding: 0 0.2rem; }

/* Desktop back-to-top only */
@media (max-width: 991.98px) {
  #dub-back-edge { display: none !important; }
}


/* Habr-like rail safety: no fade-swap; clip via overflow only */
@media (min-width: 992px) {
  .t4-col.sidebar-r:not(.dub-rail) #Mod118,
  .t4-col.sidebar-r:not(.dub-rail) #Mod117 {
    opacity: 1 !important;
  }
  .t4-col.sidebar-r.dub-rail-ready #Mod118,
  .t4-col.sidebar-r.dub-rail-ready #Mod117 {
    opacity: 1 !important;
  }
  .t4-col.sidebar-r.dub-rail .dub-rail-stack {
    transition: none !important;
    will-change: transform;
  }
  .t4-col.sidebar-r.dub-rail .module.blog-guide,
  .t4-col.sidebar-r.dub-rail #Mod88 {
    display: none !important;
  }
}

/* sticky header no strip */
#t4-header.t4-sticky,
.not-at-top #t4-header.t4-sticky {
  background: #fff !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}


/* Composition: tighter main↔sidebar gap; no column rules as dividers */
@media (min-width: 992px) {
  #t4-main-body .t4-section-inner > .t4-row.row {
    --bs-gutter-x: 1rem;
  }
  #t4-main-body .t4-col.col-md {
    padding-right: 0.65rem !important;
  }
  #t4-main-body .t4-col.sidebar-r {
    padding-left: 0.65rem !important;
    border-left: 0 !important;
    box-shadow: none !important;
  }
}

#t4-header,
#t4-header .header-wrap,
#t4-header .container,
#t4-main-body,
#t4-main-body .t4-section-inner,
#t4-main-body .t4-col.col-md,
#t4-main-body .item-page,
#t4-main-body .com-content-article {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Header + main + footnav: one content rail (Bootstrap .container widths, 14px gutters) */
#t4-header .container,
#t4-header .container-xxl,
#t4-main-body > .t4-section-inner.container,
#t4-footnav > .t4-section-inner.container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (min-width: 576px) {
  #t4-header .container,
  #t4-header .container-xxl,
  #t4-main-body > .t4-section-inner.container,
  #t4-footnav > .t4-section-inner.container { max-width: 540px !important; }
}
@media (min-width: 768px) {
  #t4-header .container,
  #t4-header .container-xxl,
  #t4-main-body > .t4-section-inner.container,
  #t4-footnav > .t4-section-inner.container { max-width: 720px !important; }
}
@media (min-width: 992px) {
  #t4-header .container,
  #t4-header .container-xxl,
  #t4-main-body > .t4-section-inner.container,
  #t4-footnav > .t4-section-inner.container { max-width: 960px !important; }
}
@media (min-width: 1200px) {
  #t4-header .container,
  #t4-header .container-xxl,
  #t4-main-body > .t4-section-inner.container,
  #t4-footnav > .t4-section-inner.container { max-width: 1140px !important; }
}
@media (min-width: 1400px) {
  #t4-header .container,
  #t4-header .container-xxl,
  #t4-main-body > .t4-section-inner.container,
  #t4-footnav > .t4-section-inner.container { max-width: 1320px !important; }
}

#t4-main-body .item-page,
#t4-main-body .com-content-article,
#t4-main-body .blog,
#t4-main-body .blog-featured {
  width: 100%;
  max-width: none;
}


/* ===== DubaiSK completeness pack (broad strokes) ===== */

/* Home section doors */
.dub-doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin: 0 0 1.75rem;
}
@media (min-width: 768px) {
  .dub-doors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.dub-door {
  display: block;
  padding: 0.85rem 0.1rem 0.95rem;
  border-bottom: 2px solid var(--line);
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: border-color .15s ease, color .15s ease;
}
.dub-door:hover {
  border-bottom-color: var(--accent);
  color: var(--accent) !important;
}
.dub-door__kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6a7c82);
  margin-bottom: 0.25rem;
}
.dub-door__title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}
.dub-door__text {
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted, #6a7c82);
}

/* Breadcrumbs */
body.item-101 .t4-section[class*="breadcrumb"],
body.home .t4-section[class*="breadcrumb"],
body.item-101 .dub-breadcrumbs-section,
body.home .dub-breadcrumbs-section {
  display: none !important;
}
.mod-breadcrumbs,
.breadcrumb {
  --bs-breadcrumb-divider: "/";
  font-size: 0.85rem;
  margin: 0.35rem 0 0.85rem;
  padding: 0;
  background: transparent;
}
.breadcrumb-item a { color: var(--muted, #6a7c82); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--ink); }
.t4-section[class*="Breadcrumb"] .t4-section-inner,
.t4-section[class*="breadcrumb"] .t4-section-inner {
  padding-top: 0.35rem !important;
  padding-bottom: 0 !important;
}

/* Blog listings — Travelami-inspired (light): media + meta + title + excerpt */
.com-content-category-blog > h1,
.com-content-category-blog .page-header h1 {
  font-size: clamp(1.75rem, 2.6vw, 2.35rem) !important;
  font-weight: 700 !important;
  margin: 0 0 1.25rem !important;
  color: var(--ink) !important;
  letter-spacing: -0.01em;
}
.com-content-category-blog .category-desc {
  max-width: 40rem;
  margin: -0.5rem 0 1.5rem;
  color: var(--muted, #6a7c82);
}

.blog-items .blog-item,
.com-content-category-blog__item {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.dub-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: 1.25rem 1.5rem;
  align-items: center;
  padding: 1.35rem 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.dub-list-card:last-child { border-bottom: 0; }

/* Zigzag like Travelami Blog List */
@media (min-width: 768px) {
  .blog-items .blog-item:nth-child(even) .dub-list-card:not(.dub-list-card--text),
  .com-content-category-blog__item:nth-child(even) .dub-list-card:not(.dub-list-card--text) {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr);
  }
  .blog-items .blog-item:nth-child(even) .dub-list-card__media,
  .com-content-category-blog__item:nth-child(even) .dub-list-card__media {
    order: 2;
  }
  .blog-items .blog-item:nth-child(even) .dub-list-card__body,
  .com-content-category-blog__item:nth-child(even) .dub-list-card__body {
    order: 1;
  }
}

.dub-list-card__media {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  background: #d9e4e8;
}
.dub-list-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.dub-list-card__media:hover img {
  transform: scale(1.04);
}

.dub-list-card__media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(11,107,117,0.16), rgba(14,42,50,0.08)),
    #d7e6ea;
}
.dub-list-card__ph {
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(14,42,50,0.28);
  line-height: 1;
  user-select: none;
}

.dub-list-card__body {
  min-width: 0;
}
.dub-list-card__meta {
  font-size: 0.8rem;
  color: var(--muted, #6a7c82);
  margin: 0 0 0.45rem;
  letter-spacing: 0.01em;
}
.dub-list-card__title {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 0.55rem !important;
  color: var(--ink) !important;
}
.dub-list-card__title a {
  color: inherit !important;
  text-decoration: none !important;
}
.dub-list-card__title a:hover {
  color: var(--accent) !important;
}
.dub-list-card__excerpt {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.88;
  margin: 0 0 0.75rem;
  max-width: 38rem;
}
.dub-list-card__excerpt p {
  margin: 0 0 0.4rem;
}
.dub-list-card__more {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent) !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
}
.dub-list-card__more:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 767.98px) {
  .dub-list-card {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.1rem 0;
  }
  .dub-list-card__media { aspect-ratio: 16 / 10; }
}


/* Guide — topic index (compact list, not blog cards) */
.com-content-category-blog.is-topic-list .blog-items {
  border-top: 1px solid var(--line);
}
.com-content-category-blog.is-topic-list .blog-item,
.com-content-category-blog.is-topic-list .com-content-category-blog__item {
  margin: 0 !important;
  padding: 0 !important;
}
.dub-topic {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.dub-topic__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title go"
    "teaser go";
  column-gap: 1rem;
  align-items: center;
  padding: 0.85rem 0.15rem;
  text-decoration: none !important;
  color: inherit !important;
  transition: background-color .15s ease, padding-left .15s ease;
}
.dub-topic__link:hover {
  background: rgba(11, 107, 117, 0.05);
  padding-left: 0.35rem;
}
.dub-topic__title {
  grid-area: title;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.dub-topic__link:hover .dub-topic__title {
  color: var(--accent);
}
.dub-topic__teaser {
  grid-area: teaser;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dub-topic__go {
  grid-area: go;
  font-size: 1.15rem;
  color: var(--accent);
  opacity: 0.55;
  transition: opacity .15s ease, transform .15s ease;
}
.dub-topic__link:hover .dub-topic__go {
  opacity: 1;
  transform: translateX(3px);
}
.com-content-category-blog.is-topic-list .com-content-category-blog__navigation {
  display: none !important;
}

/* Breadcrumbs bar (Travelami-ish page chrome, light) */
.dub-breadcrumbs-section,
.t4-section.dub-breadcrumbs-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.dub-breadcrumbs-wrap,
.mod-breadcrumbs {
  padding: 0.55rem 0 0.15rem !important;
}

/* Article meta */
.com-content-article .article-info,
.com-content-article .info-block {
  font-size: 0.85rem;
  color: var(--muted, #6a7c82);
  margin: 0 0 1rem;
}
.com-content-article .item-image,
.com-content-article .item-image img {
  margin: 0 0 1.1rem;
  max-width: 100%;
  height: auto;
}

/* Related + CTA */
.dub-related {
  margin: 2.25rem 0 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.dub-related__title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.75rem !important;
  color: var(--ink) !important;
}
.dub-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dub-related__list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}
.dub-related__list li:last-child { border-bottom: 0; }
.dub-related__list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.dub-related__list a:hover { color: var(--accent); }

.dub-cta {
  margin: 1.75rem 0 0.5rem;
  padding: 1.15rem 0 0.25rem;
  border-top: 1px solid var(--line);
}
.dub-cta__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: var(--ink);
}
.dub-cta__text {
  margin: 0 0 0.85rem;
  color: var(--muted, #6a7c82);
  max-width: 36rem;
}
.dub-cta__btn {
  display: inline-block;
  text-decoration: none !important;
  padding: 0.55rem 1rem !important;
}

/* Header search */
#t4-header .dub-search,
#t4-header .mod-search,
#t4-header .mod-finder {
  margin-left: 0.5rem;
}
#t4-header .mod-search .form-control,
#t4-header .mod-finder .form-control,
#t4-header .mod-search input[type="search"],
#t4-header .mod-finder input[type="text"] {
  min-width: 9.5rem;
  max-width: 12rem;
  height: 2.1rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  font-size: 0.88rem;
}
#t4-header .mod-search .btn,
#t4-header .mod-finder .btn {
  height: 2.1rem;
  padding: 0 0.7rem;
  font-size: 0.85rem;
  border-radius: 2px;
}
@media (max-width: 991.98px) {
  #t4-header .mod-search,
  #t4-header .mod-finder { display: none !important; }
}

/* Contacts page — clean stack */
.itemid-119 .com-content-article p,
.item-119 .com-content-article p {
  max-width: 36rem;
}
.dub-contacts {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.5rem;
  max-width: 28rem;
}
.dub-contacts a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.dub-contacts a:hover { color: var(--accent-deep); }
.dub-contacts__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #6a7c82);
  margin-bottom: 0.15rem;
}

/* Masthead hero banner (page_heading_bg_img on menu item) */
#t4-masthead,
.t4-section.t4-masthead {
  display: block !important;
  background: #0e2a32 !important;
  border: 0 !important;
  box-shadow: none !important;
}
#t4-masthead .t4-masthead-inner,
.t4-masthead .t4-masthead-inner {
  position: relative;
  min-height: clamp(160px, 28vw, 280px);
  padding: 2.5rem 1rem !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
#t4-masthead .t4-masthead-inner.has-bg::before,
.t4-masthead .t4-masthead-inner.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,50,0.35) 0%, rgba(14,42,50,0.62) 100%);
  pointer-events: none;
}
#t4-masthead .t4-masthead-detail,
.t4-masthead .t4-masthead-detail {
  position: relative;
  z-index: 1;
  max-width: 48rem !important;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem !important;
  text-align: center;
}
#t4-masthead .t4-masthead-title,
.t4-masthead .t4-masthead-title {
  color: #fff !important;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin: 0 0 0.4rem !important;
  padding: 0 !important;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}
#t4-masthead .t4-masthead-description,
.t4-masthead .t4-masthead-description {
  color: rgba(255,255,255,0.88) !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* After banner: crumbs then list, no extra void */
.com-content-category-blog > h1,
.com-content-category-blog .page-header {
  margin-top: 0.25rem !important;
}
.com-content-category-blog .category-desc {
  display: none;
}
#t4-breadcrumbs.t4-breadcrumbs,
.dub-breadcrumbs-section {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
.dub-breadcrumbs-wrap,
.mod-breadcrumbs {
  margin: 0.45rem 0 0.55rem !important;
  padding: 0 !important;
}
#t4-main-body.t4-main-body {
  padding-top: 0.25rem !important;
}

/* Hide generic info blocks; show news dates only */
.com-content-article .article-info,
.com-content-article .info-block,
.com-content-category-blog .article-info,
.com-content-category-blog .info-block {
  display: none !important;
}
.dub-list-card__meta,
.dub-article-meta {
  display: none;
}
.dub-list-card.is-news .dub-list-card__meta,
.com-content-article.is-news .dub-article-meta {
  display: block !important;
  font-size: 0.85rem;
  color: var(--muted, #6a7c82);
  margin: 0 0 0.55rem;
  letter-spacing: 0.01em;
}
.com-content-article.is-news .dub-article-meta {
  margin-bottom: 1rem;
}

/* Pager only — hide redundant "Страница N из M" */
.com-content-category-blog__counter,
.pagination-results,
.counter.float-md-end {
  display: none !important;
}


/* About page */
.itemid-131 .com-content-article .article-info,
.item-131 .com-content-article .article-info { display: none !important; }
.dub-about {
  max-width: 42rem;
}
.dub-about__lead {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1rem;
}
.dub-about__h {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin: 1.75rem 0 0.75rem !important;
  color: var(--ink) !important;
}
.dub-about__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.dub-about__item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.dub-about__year {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1.45;
}
.dub-about__text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}
.dub-about__text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.dub-about__text a:hover { color: var(--accent-deep); text-decoration: underline; }
.dub-about__list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  max-width: 36rem;
}
.dub-about__list li {
  margin: 0.35rem 0;
  line-height: 1.45;
}
body.item-131 .t4-content-inner {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
}
body.item-131 #t4-main-body { flex: 1 0 auto; }

/* Contacts: no sidebar; pin footnav to bottom on short page */
body.item-119 .t4-col.sidebar-r {
  display: none !important;
}
body.item-119,
body.item-119 .t4-wrapper,
body.item-119 .t4-content,
body.item-119 .t4-content-inner {
  min-height: 100vh;
}
body.item-119 .t4-content-inner {
  display: flex;
  flex-direction: column;
}
body.item-119 #t4-main-body {
  flex: 1 0 auto;
}
body.item-119 #t4-header,
body.item-119 #t4-breadcrumbs,
body.item-119 #t4-footnav,
body.item-119 #t4-footer {
  flex: 0 0 auto;
}
@media (min-width: 992px) {
  body.item-119 .t4-col.col-md {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
}

