/**
 * adal-meteo.kz — Custom overrides for Paper Kit 2 Pro
 * Layered on top of bootstrap.min.css + paper-kit.min.css
 */

/* =====================================================
   1. Brand Palette
   ===================================================== */
:root {
  --primary-color: #0C1417;
  --adal-blue:   #007FCC;
  --adal-green:  #009E69;
  --adal-orange: #FF7200;
  --adal-yellow: #FFBA00;
  --adal-dark:   #0D1B3E;
  --adal-gray:   #000000;
  /* Secondary text — forced to black per site preference */
  --adal-text-muted: #000000;
  --adal-text-muted-softer: #000000;
  /* Text on dark navy footer / sections */
  --adal-on-dark: #eceff1;
  --adal-on-dark-link: #4fc3f7;
  --adal-on-dark-muted: #b0bec5;
}

/* =====================================================
   2. Nucleo icons
   Icon @font-face lives in paper-kit.min.css (../fonts/...).
   templates/Default/.htaccess only allows .css by default — fonts/
   must have its own .htaccess (Allow from all) or icons stay blank.
   ===================================================== */

/* =====================================================
   3. Navbar
   ===================================================== */
.navbar-adal {
  background-color: var(--primary-color) !important;
  background: var(--primary-color) !important;
}
.navbar-adal .navbar-brand,
.navbar-adal .nav-link {
  color: #fff !important;
}
.navbar-adal .nav-link:hover,
.navbar-adal .nav-link:focus {
  color: rgba(255, 255, 255, 0.92) !important;
}
.navbar-adal .navbar-toggler-bar {
  background: #fff;
}
/* Active nav item */
.navbar-adal .nav-item.active > .nav-link {
  color: #fff !important;
  font-weight: 600;
}
/* Dropdown in dark navbar */
.navbar-adal .dropdown-menu {
  background-color: var(--adal-dark);
  border: none;
  border-radius: 4px;
}
.navbar-adal .dropdown-item {
  color: #ffffff;
}
.navbar-adal .dropdown-item:hover,
.navbar-adal .dropdown-item:focus {
  background-color: var(--primary-color);
  color: #fff;
}

/* navbar-expand-lg: below lg — Paper Kit uses a light off-canvas panel (#fffcf5 / .wrapper).
   Global .navbar-adal .nav-link { color:#fff } would make active link white-on-white — fix here. */
@media (max-width: 991.98px) {
  .navbar-adal .navbar-collapse .navbar-nav > .nav-item > .nav-link {
    color: #000000 !important;
  }
  .navbar-adal .navbar-collapse .navbar-nav > .nav-item > .nav-link:hover,
  .navbar-adal .navbar-collapse .navbar-nav > .nav-item > .nav-link:focus {
    color: var(--adal-blue) !important;
  }
  .navbar-adal .navbar-collapse .navbar-nav > .nav-item.active > .nav-link {
    color: #000000 !important;
    background-color: rgba(0, 127, 204, 0.12);
    font-weight: 600;
    border-radius: 4px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  /* Flatten "Ещё" — same list; Paper Kit closed-state + height:400px overrides */
  .navbar-adal .navbar-nav > .nav-item.dropdown > .dropdown-toggle {
    display: none;
  }
  .navbar-adal .navbar-nav > .nav-item.dropdown > .dropdown-menu {
    display: block !important;
    position: static !important;
    float: none;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    min-width: 0;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
    overflow: visible !important;
    pointer-events: auto;
  }
  .navbar-adal .navbar-nav > .nav-item.dropdown > .dropdown-menu::before,
  .navbar-adal .navbar-nav > .nav-item.dropdown > .dropdown-menu::after {
    display: none !important;
  }
  .navbar-adal .navbar-nav > .nav-item.dropdown > .dropdown-menu.dropdown-menu-right {
    right: auto;
    left: auto;
  }
  /* Former "Ещё" links: same look as .navbar-collapse .nav-link (Paper Kit), not desktop dropdown rows */
  .navbar-adal .navbar-nav > .nav-item.dropdown > .dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 15px 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5em;
    text-transform: uppercase;
    color: #000000 !important;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    clear: both;
  }
  /* Icons only in desktop flyout — keep mobile list text-only like other nav links */
  .navbar-adal .navbar-nav > .nav-item.dropdown > .dropdown-menu .dropdown-item i {
    display: none !important;
  }
  .navbar-adal .navbar-nav > .nav-item.dropdown > .dropdown-menu .dropdown-item:hover,
  .navbar-adal .navbar-nav > .nav-item.dropdown > .dropdown-menu .dropdown-item:focus {
    background-color: transparent !important;
    color: var(--adal-blue) !important;
  }
}

/* =====================================================
   4. Page Header / Hero
   ===================================================== */
.page-header[data-parallax="true"],
.page-header.page-header-small {
  background-image: url('../images/paper-kit-bg.jpg');
}
@supports (background-image: image-set(url('../images/paper-kit-bg.webp') type('image/webp'))) {
  .page-header[data-parallax="true"],
  .page-header.page-header-small {
    background-image: image-set(
      url('../images/paper-kit-bg.webp') type('image/webp'),
      url('../images/paper-kit-bg.jpg') type('image/jpeg')
    );
  }
}
.page-header .filter {
  background-color: rgba(13, 27, 62, 0.55);
}
.page-header .title {
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.page-header .description {
  font-size: clamp(1rem, 2vw, 1.4rem);
  opacity: 1;
  color: rgba(255, 255, 255, 0.96);
}
/* Inner page smaller header */
.page-header-small .filter {
  background-color: rgba(21, 101, 192, 0.6);
}

/* Inner pages: compact band vs main hero — in-flow title so it is not clipped (Paper Kit uses absolute + overflow:hidden + grid) */
.page-header.page-header-small {
  display: block !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative;
  padding-top: 7.5rem;
  padding-bottom: 3.5rem;
  background-size: cover;
  background-position: center 50%;
}
.page-header.page-header-small .filter {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
/* Paper Kit sets .filter:after height:750px — clips or stacks wrong in a short header */
.page-header.page-header-small .filter:after {
  height: 100% !important;
}
.page-header.page-header-small .content-center {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 2;
  width: 100%;
}
.page-header.page-header-small .title {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
@media (max-width: 991.98px) {
  .page-header.page-header-small {
    padding-top: 4.75rem;
    padding-bottom: 3.75rem;
  }
}

/* =====================================================
   5. Buttons — map to brand colors
   ===================================================== */
.btn-adal-primary {
  background-color: var(--adal-blue);
  border-color: var(--adal-blue);
  color: #fff;
  border-radius: 30px;
  padding: 10px 22px;
  font-weight: 600;
  transition: background 0.3s;
}
.btn-adal-primary:hover,
.btn-adal-primary:focus {
  background-color: var(--adal-green);
  border-color: var(--adal-green);
  color: #fff;
}

/* =====================================================
   6. Cards
   ===================================================== */
.card {
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: none;
}
.card .card-title a {
  color: #000000;
  text-decoration: none;
}
.card .card-title a:hover {
  color: var(--adal-blue);
}
/* Blog/news card image cap */
.card-blog .card-image img,
.card-blog .card-img-top {
  border-radius: 8px 8px 0 0;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
/* Product card */
.card-product .card-img-top {
  border-radius: 8px 8px 0 0;
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 12px;
  background: #fafafa;
}

/* =====================================================
   7. Features section (AMS purposes — 5 items)
   ===================================================== */
.adal-features .info {
  padding: 16px 0;
}
.adal-features .info .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 auto 12px;
}
.adal-features .icon-blue   { background-color: var(--adal-blue); }
.adal-features .icon-green  { background-color: var(--adal-green); }
.adal-features .icon-orange { background-color: var(--adal-orange); }
.adal-features .icon-yellow { background-color: var(--adal-yellow); color: #000000 !important; }

/* =====================================================
   8. Section tints
   ===================================================== */
.section-adal-light {
  background-color: #F5F7FA;
}
.section-adal-dark {
  background-color: var(--adal-dark);
  color: var(--adal-on-dark);
}
.section-adal-dark h2,
.section-adal-dark h3,
.section-adal-dark h4 {
  color: #fff;
}

/* =====================================================
   9. Footer
   ===================================================== */
.footer-adal {
  background-color: var(--adal-dark) !important;
  color: var(--adal-on-dark);
  padding: 40px 0 24px;
}
.footer-adal .footer-brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}
.footer-adal .footer-phone {
  font-size: 1.5rem;
  font-weight: 300;
  color: #fff;
}
.footer-adal a {
  color: var(--adal-on-dark-link);
  text-decoration: none;
  font-weight: 500;
}
.footer-adal a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-adal .copyright {
  color: var(--adal-on-dark-muted);
  font-size: 0.85rem;
}
.footer-adal__phone-label {
  font-size: 0.9rem;
  display: block;
  color: var(--adal-on-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.footer-adal hr {
  border-color: rgba(255,255,255,0.1);
}
/* ISO logos are full-color on white — do not use brightness/invert (washes out or vanishes on #0D1B3E). */
.footer-adal .iso-badges a {
  display: inline-block;
  margin-right: 8px;
  padding: 4px 6px;
  line-height: 0;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 4px;
  vertical-align: middle;
  transition: background 0.2s, box-shadow 0.2s;
}
.footer-adal .iso-badges a:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}
.footer-adal .iso-badges img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
}

/* =====================================================
   10. Aside / CTA strip
   ===================================================== */
.section-cta {
  background: linear-gradient(135deg, var(--adal-blue) 0%, var(--adal-dark) 100%);
  color: #fff;
  padding: 48px 0;
}
.section-cta h3,
.section-cta p {
  color: #fff;
}
.section-cta .card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  transition: background 0.3s;
}
.section-cta .card:hover {
  background: rgba(255,255,255,0.16);
}
.section-cta .card .card-title,
.section-cta .card .card-title a {
  color: #fff;
}
.section-cta .card p {
  color: rgba(255, 255, 255, 0.95);
}
.section-cta .btn-adal-primary {
  background-color: #fff;
  color: var(--adal-blue);
  border-color: #fff;
}
.section-cta .btn-adal-primary:hover {
  background-color: var(--adal-green);
  border-color: var(--adal-green);
  color: #fff;
}

/* =====================================================
   11. DLE-specific overrides
   ===================================================== */

/* Logo in navbar */
.navbar .adal-logo {
  height: 44px;
  width: auto;
}

/* DLE content area — flex so col-* direct children (product grid) sit in one row.
   News listing uses multiple .article siblings; without full-width they become flex row items and drift left. */
#dle-content {
  min-height: 200px;
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
  width: 100%;
}
#dle-content > .article,
#dle-content > .adal-pagination,
#dle-content > .row,
#dle-content > article {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

/* #dle-content is flex; without this, wide media in a column can block flex shrink
   and overflow under the sidebar (e.g. product full story images). */
#dle-content > .row > [class*="col-"] {
  min-width: 0;
}

/* Speedbar / breadcrumb */
.adal-breadcrumb {
  background: transparent;
  padding: 8px 0;
  font-size: 0.85rem;
}
.adal-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}
.adal-breadcrumb .breadcrumb-item a {
  color: var(--adal-blue);
}

/* Pagination */
.adal-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.adal-pagination .page-link {
  color: var(--adal-blue);
  border-radius: 50px;
  margin: 0 3px;
  border: 2px solid #e0e0e0;
}
.adal-pagination .page-item.active .page-link {
  background-color: var(--adal-blue);
  border-color: var(--adal-blue);
}
/* DLE outputs bare <a> / <span> for {pages}; style as chips */
.adal-pagination .pagination > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.4rem 0.65rem;
  color: var(--adal-blue);
  text-decoration: none;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.adal-pagination .pagination > a:hover {
  border-color: var(--adal-blue);
  color: var(--adal-blue);
  text-decoration: none;
}
.adal-pagination .pagination > span:not(.page-item):not(.nav_ext) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.4rem 0.65rem;
  color: #fff;
  background-color: var(--adal-blue);
  border: 2px solid var(--adal-blue);
  border-radius: 50px;
  line-height: 1.2;
  font-weight: 600;
}
.adal-pagination .pagination > span.nav_ext {
  padding: 0 0.15rem;
  color: var(--adal-text-muted-softer, #9e9e9e);
  border: none;
  background: transparent;
  font-weight: normal;
  min-width: 0;
}

/* Card excerpts: Paper Kit grays out .card-description; keep body text readable */
.card .card-description {
  color: #212529;
}

/* Static gallery: flex-wrap + flatten WYSIWYG wrappers so each <img> tiles (avoids :only-child / whitespace issues) */
.adal-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
  align-items: flex-start;
}
.adal-gallery-grid > div,
.adal-gallery-grid > p,
.adal-gallery-grid > figure,
.adal-gallery-grid > table,
.adal-gallery-grid > tbody,
.adal-gallery-grid > thead,
.adal-gallery-grid > tr,
.adal-gallery-grid > td,
.adal-gallery-grid > th {
  display: contents;
}
.adal-gallery-grid a:has(> img:only-child) {
  display: contents;
}
.adal-gallery-grid p {
  margin: 0;
}
.adal-gallery-grid img {
  display: block;
  flex: 1 1 220px;
  width: auto;
  max-width: 100%;
  min-width: 0;
  max-height: 220px;
  object-fit: contain;
  padding: 0.75rem;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

/* Contact / feedback form */
.adal-contact-form .form-control {
  border-radius: 6px;
  border: 1px solid #cfd8dc;
  padding: 10px 14px;
}
.adal-contact-form .form-control:focus {
  border-color: var(--adal-blue);
  box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.2);
}

/* AMS static page: full-size reference map (not clipped by fixed map height) */
.adal-ams-map-poster {
  margin: 0;
}
.adal-ams-map-poster img {
  display: block;
  width: 100%;
  height: auto;
}

/* AMS map: legend overlays live map */
.adal-ams-map-stage {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.adal-ams-map-legend {
  position: absolute;
  z-index: 2500;
  left: 10px;
  bottom: 10px;
  max-width: min(280px, calc(100% - 20px));
  padding: 10px 12px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #263238;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}
.adal-ams-map-legend-title {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #546e7a;
  margin-bottom: 8px;
}
.adal-ams-map-legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.adal-ams-map-legend li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.adal-ams-map-legend li:last-child {
  margin-bottom: 0;
}
.adal-ams-map-legend-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* Legend: <details> for optional collapse on small screens; desktop summary = static title */
.adal-ams-map-legend .adal-ams-legend-details {
  margin: 0;
  border: 0;
}
.adal-ams-map-legend .adal-ams-legend-summary {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #546e7a;
  list-style: none;
  cursor: default;
  user-select: none;
  margin: 0 0 8px;
  padding: 0;
}
.adal-ams-map-legend .adal-ams-legend-summary::-webkit-details-marker {
  display: none;
}
@media (min-width: 992px) {
  .adal-ams-map-legend .adal-ams-legend-summary {
    pointer-events: none;
    margin-bottom: 8px;
  }
}

/* Same breakpoint as .navbar-expand-lg: legend below map, allow box-shadow past stage */
@media (max-width: 991.98px) {
  .adal-ams-map-stage {
    overflow: visible;
  }
  .adal-ams-map-legend .adal-ams-legend-summary {
    cursor: pointer;
    margin-bottom: 0;
    padding: 2px 0 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  .adal-ams-map-legend .adal-ams-legend-details[open] .adal-ams-legend-summary {
    margin-bottom: 10px;
    border-bottom-color: transparent;
  }
  .adal-ams-map-legend .adal-ams-legend-details ul {
    padding-bottom: 2px;
  }
}

/* Yandex/Google map container */
#map,
#GMapContainer {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

/* Search form */
.adal-search-form .form-control {
  border-radius: 30px 0 0 30px;
}
.adal-search-form .btn {
  border-radius: 0 30px 30px 0;
}

/* Comments */
.adal-comment {
  border-bottom: 1px solid #eceff1;
  padding: 16px 0;
}
.adal-comment:last-child {
  border-bottom: none;
}
.adal-comment .comment-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.adal-comment .comment-meta {
  font-size: 0.8rem;
  color: var(--adal-text-muted-softer);
}

/* Tags cloud */
.adal-tags a {
  display: inline-block;
  margin: 3px;
  padding: 4px 12px;
  border-radius: 30px;
  border: 1px solid #cfd8dc;
  font-size: 0.8rem;
  color: var(--adal-gray);
  text-decoration: none;
  transition: all 0.2s;
}
.adal-tags a:hover {
  background: var(--adal-blue);
  border-color: var(--adal-blue);
  color: #fff;
}

/* Info / error box */
.adal-info-box {
  border-left: 4px solid var(--adal-blue);
  background: #E3F2FD;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}

/* Related news sidebar */
.adal-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.adal-related-list li {
  border-bottom: 1px solid #eceff1;
  padding: 8px 0;
}
.adal-related-list li:last-child { border-bottom: none; }
.adal-related-list a {
  color: #000000;
  font-size: 0.9rem;
  text-decoration: none;
}
.adal-related-list a:hover { color: var(--adal-blue); }

/* Static pages / sitemap: body links readable (Paper Kit default link gray too faint) */
#dle-content .main_cont_left a:not(.btn):not(.badge):not(.dropdown-item),
article .main_cont_left a:not(.btn):not(.badge):not(.dropdown-item) {
  color: var(--adal-blue, #1565c0);
  text-decoration: none;
}
#dle-content .main_cont_left a:not(.btn):not(.badge):not(.dropdown-item):hover,
article .main_cont_left a:not(.btn):not(.badge):not(.dropdown-item):hover {
  color: #0d47a1;
  text-decoration: underline;
}
#dle-content .main_cont_left a:not(.btn):not(.badge):not(.dropdown-item):visited,
article .main_cont_left a:not(.btn):not(.badge):not(.dropdown-item):visited {
  color: #3949ab;
}

/* DLE login panel (small, top-right area handled by engine) */
.adal-login-panel {
  font-size: 0.8rem;
  text-align: right;
  padding: 4px 0;
}

/* Print and media */
@media (max-width: 767px) {
  .page-header .title { font-size: 1.6rem; }
  .footer-adal .footer-phone { font-size: 1.2rem; }
  #map, #GMapContainer { height: 260px; }
}

/* =====================================================
   12. Gray copy → black (#000)
   Overrides Paper Kit body #66615b, Bootstrap .text-muted, #333, etc.
   Loaded after engine.css (see main.tpl).
   ===================================================== */
body {
  color: #000000;
}
.text-muted {
  color: #000000 !important;
}
#dle-content {
  color: #000000;
}
.card .card-text,
.card-contact .card-header .card-title,
.card-image .details-center .author .name,
.card-image .card-body .name,
.register-page .card-register .card-title,
.full-screen.register-page .card-register .division .line,
.full-screen.register-page .demo-card .login p,
.card-pricing .card-title,
.card-pricing ul li {
  color: #000000;
}
.card-pricing ul li b {
  color: #000000;
}
.dropdown-menu .dropdown-item,
.dropdown-sharing .dropup-item,
.dropdown-notification .dropdown-notification-list .notification-item,
.dropdown-actions li a {
  color: #000000;
}
.form-control {
  color: #000000;
}
.popover,
.popover-header {
  color: #000000;
}
.nav-tabs .nav-item,
.nav-tabs .nav-item .nav-link {
  color: #000000;
}
.footer:not(.footer-adal) .links ul a:not(.btn) {
  color: #000000;
}
.navbar-default .navbar-brand,
.navbar-default .brand,
.navbar-default .navbar-nav .nav-item .nav-link:not(.btn) {
  color: #000000;
}
.btn.btn-link {
  color: #000000;
}
.btn-outline-default {
  color: #000000;
}
.btn-neutral:not(.active):not(:active),
.btn-neutral.btn-border:not(.active) {
  color: #000000;
}
.search-page .navbar-transparent .navbar-brand {
  color: #000000;
}
/* Dark navbar dropdown flyout — #fff on navy menu (mobile list uses black in §3 media query) */
.navbar-adal .dropdown-menu .dropdown-item,
.navbar-adal .dropdown-item {
  color: #ffffff;
}
.navbar-adal .dropdown-item:hover,
.navbar-adal .dropdown-item:focus {
  color: #fff;
}
/* Hero / dark strips — Paper Kit already sets #fff on these; reinforce */
.page-header .container,
.page-header .title,
.page-header .description,
.page-header .info-title,
.page-header .motto,
.page-header .content-center {
  color: #fff;
}
.section-adal-dark,
.section-adal-dark a:not(.btn),
.footer-adal {
  color: var(--adal-on-dark);
}
.footer-adal .copyright {
  color: var(--adal-on-dark-muted);
}
.footer-adal a {
  color: var(--adal-on-dark-link);
}
.section-cta,
.section-cta h3,
.section-cta p,
.section-cta .card,
.section-cta .card .card-title,
.section-cta .card .card-title a,
.section-cta .card p {
  color: #fff;
}
.section-cta .btn-adal-primary {
  color: var(--adal-blue);
}
.section-cta .btn-adal-primary:hover {
  color: #fff;
}

/* News listing (/news/) — Paper Kit .section uses 70px padding-top; keep this block visually higher */
.wrapper:has(> .section.adal-blog-section) > .container.mt-3 {
  margin-top: 0.5rem;
}
.adal-blog-section.section {
  padding-top: 0.5rem;
}
.adal-blog-section .adal-blog-article-item {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.adal-blog-section .adal-pagination {
  margin-top: 1rem;
}
/* Single news article — blog-post layout */
.blog-post-page .adal-blog-post-hero {
  max-height: 480px;
  width: 100%;
  object-fit: cover;
}
.blog-post-page .article-content {
  color: #212529;
  font-size: 1rem;
  line-height: 1.65;
}
.blog-post-page .article-content p {
  margin-bottom: 1rem;
}
.blog-post-page .article-content img {
  max-width: 100%;
  height: auto;
}
.blog-post-page .card .card-description {
  color: #212529;
}

/* Single product / sensor (fullstory_product*.tpl) — constrain WYSIWYG images */
.product-post-page article .main_cont_left {
  color: #212529;
  font-size: 1rem;
  line-height: 1.65;
}
.product-post-page article .main_cont_left p {
  margin-bottom: 1rem;
}
.product-post-page article .main_cont_left img {
  max-width: 100%;
  height: auto;
}
/* Lead photo: boxed + max height so it stays in the main column */
.product-post-page article .main_cont_left img:first-of-type {
  display: block;
  margin: 0 auto 1.25rem;
  max-height: 440px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  padding: 14px;
  background: #fafafa;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
