/* RS9 layout: mobile first. Do not change source HTML structure. */

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.site-content,
.entry-content,
.elementor {
  overflow-x: hidden;
}

/* Header: logo only, no brand text beside it */
.site-header .ast-site-title-wrap,
#masthead .site-title {
  display: none !important;
}

.site-header .ast-logo-title-inline .site-logo-img,
.ast-logo-title-inline .site-logo-img {
  padding-right: 0 !important;
}

/* Header: undo the 100px identity shift and keep logo + hamburger in one row */
@media (max-width: 921px) {
  .ast-builder-layout-element .ast-site-identity,
  .ast-header-break-point .ast-site-identity {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: calc(100% - 56px);
  }

  #ast-mobile-header .ast-builder-grid-row {
    align-items: center;
    gap: 8px;
  }

  #ast-mobile-header .site-header-primary-section-left {
    min-width: 0;
    flex: 1 1 auto;
  }

  #ast-mobile-header .site-branding {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  #ast-mobile-header .site-logo-img {
    flex: 0 0 auto;
  }

  #ast-mobile-header .site-logo-img,
  #ast-mobile-header .custom-logo-link {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    overflow: hidden;
  }

  #ast-mobile-header .custom-logo-link img,
  #ast-mobile-header .custom-logo {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain;
  }

  #ast-mobile-header .ast-site-title-wrap,
  #ast-mobile-header .site-title {
    min-width: 0;
  }

  #ast-mobile-header .site-title a {
    display: block;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ast-header-break-point #masthead .ast-mobile-header-wrap .ast-primary-header-bar {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .ast-mobile-header-wrap .ast-primary-header-bar,
  .ast-primary-header-bar .site-primary-header-wrap {
    min-height: 56px !important;
  }

  .ast-mobile-header-content {
    padding: 0 12px 12px;
  }

  .ast-mobile-header-content .menu-link {
    display: block;
    padding: 14px 12px !important;
    min-height: 44px;
    box-sizing: border-box;
  }
}

/* Page body */
@media (max-width: 767px) {
  .ast-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .elementor-8 .e-flexbox-base,
  .elementor .e-flexbox-base {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .elementor-heading-title {
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  h1.elementor-heading-title,
  .elementor-widget-heading h1.elementor-heading-title {
    font-size: 1.35rem !important;
    margin: 8px 0 4px !important;
    padding: 0 4px;
    text-align: center;
    box-shadow: none !important;
  }

  h2.elementor-heading-title {
    font-size: 1.15rem !important;
    margin: 18px 0 8px !important;
  }

  h3.elementor-heading-title {
    font-size: 1.05rem !important;
  }

  .elementor-widget-text-editor,
  .elementor-widget-text-editor p,
  .entry-content p {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .elementor-widget-text-editor ul,
  .entry-content ul {
    padding-left: 1.2em;
    margin: 0 0 12px;
  }

  .elementor-widget-text-editor li {
    margin-bottom: 6px;
  }

  /* Center logo: keep source 150 slot, don't let 55% eat the screen */
  .elementor-widget-image {
    text-align: center;
  }

  .elementor-widget-image img.wp-image-14,
  img.wp-image-14 {
    width: 42% !important;
    max-width: 148px !important;
    height: auto !important;
    margin: 8px auto !important;
    display: block !important;
    border-width: 3px !important;
  }

  /* Download / CTA: full-width tap target */
  .elementor-widget-button {
    text-align: center;
  }

  .elementor-widget-button .elementor-button {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    padding: 12px 16px !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    box-sizing: border-box;
    white-space: normal;
  }

  .elementor-button-content-wrapper {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Carousel: one screenshot on narrow phones */
  .elementor-image-carousel-wrapper {
    margin: 8px 0 16px;
  }

  .elementor-8 .elementor-element.elementor-element-c6f5fcc {
    --e-image-carousel-slides-to-show: 1;
  }

  .elementor-image-carousel .swiper-slide-image {
    border-width: 2px !important;
    border-radius: 16px !important;
  }

  .ast-footer-copyright {
    padding: 8px 12px 16px;
  }

  .ast-footer-copyright p {
    font-size: 13px !important;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .ast-footer-copyright p + p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 10px !important;
  }

  #ast-scroll-top {
    right: 12px !important;
    bottom: 12px !important;
  }
}

@media (max-width: 479px) {
  h1.elementor-heading-title,
  .elementor-widget-heading h1.elementor-heading-title {
    font-size: 1.2rem !important;
  }

  .elementor-widget-image img.wp-image-14,
  img.wp-image-14 {
    width: 38% !important;
    max-width: 132px !important;
  }
}

@media (min-width: 768px) {
  .elementor-widget-image img.wp-image-14,
  img.wp-image-14 {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .elementor-widget-button .elementor-button {
    min-height: 48px;
  }
}

/* NEWS list */
.rs9-story-back {
  font-size: 14px !important;
  margin: 0 0 16px !important;
}

.rs9-story-back a {
  text-decoration: none !important;
  font-weight: 600;
}

.rs9-story-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 24px;
  padding: 0;
  list-style: none;
}

.rs9-story-card {
  margin: 0;
  padding: 0;
}

.rs9-story-card-link {
  display: block;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit;
  background: #fff;
  box-sizing: border-box;
}

.rs9-story-card-link:hover,
.rs9-story-card-link:focus {
  border-color: #046bd2;
  outline: none;
}

.rs9-story-kicker {
  font-size: 12px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #046bd2;
  margin: 0 0 6px !important;
  font-weight: 600;
}

.rs9-story-card h2 {
  font-size: 1.2rem !important;
  line-height: 1.3 !important;
  margin: 0 0 6px !important;
}

.rs9-story-meta {
  font-size: 13px !important;
  color: #64748b;
  margin: 0 0 8px !important;
}

.rs9-story-excerpt {
  font-size: 15px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

.rs9-story-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #046bd2;
}

.rs9-story-card-link {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px 14px;
  align-items: start;
}

.rs9-story-card-link > img {
  grid-row: 1 / span 5;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0;
}

.rs9-story-card-link .rs9-story-kicker,
.rs9-story-card-link h2,
.rs9-story-card-link .rs9-story-meta,
.rs9-story-card-link .rs9-story-excerpt,
.rs9-story-card-link .rs9-story-more {
  grid-column: 2;
}

.rs9-story-card:first-child .rs9-story-card-link {
  grid-template-columns: 1fr;
}

.rs9-story-card:first-child .rs9-story-card-link > img {
  display: none;
}

.rs9-story-media {
  margin: 18px 0 22px;
}

.rs9-story-media img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 12px;
  display: block;
}

.rs9-story-video {
  width: 100%;
  max-width: 720px;
  margin: 18px 0 8px;
}

.rs9-story-video iframe {
  display: block;
  width: 100%;
  max-width: 720px;
  height: 405px;
  min-height: 240px;
  border: 0;
  border-radius: 12px;
  background: #111;
}

.rs9-yt-poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.rs9-yt-poster img {
  display: block;
  width: 100%;
  height: 405px;
  object-fit: cover;
}

.rs9-yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border-radius: 12px;
  background: #f00;
  pointer-events: none;
}

.rs9-yt-play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 14px;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}

.rs9-story-video-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 16px;
  font-weight: 600;
  color: #046bd2 !important;
  text-decoration: none !important;
}

@media (max-width: 767px) {
  .rs9-story-video iframe,
  .rs9-yt-poster img {
    height: 210px;
  }
}

.rs9-story-cap {
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #64748b;
  margin: 6px 0 18px !important;
  max-width: 720px;
}

.rs9-story-score {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
}

.rs9-story-score p {
  margin: 0 0 4px !important;
  font-size: 14px !important;
}

@media (max-width: 767px) {
  .rs9-story-card-link {
    grid-template-columns: 72px 1fr;
    gap: 8px 12px;
  }

  .rs9-story-card-link > img {
    width: 72px;
    height: 72px;
  }

  .rs9-story-score {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .rs9-story-card-link {
    padding: 14px;
    min-height: 44px;
  }

  .rs9-story-card h2 {
    font-size: 1.1rem !important;
  }
}

.rs9-report-list .rs9-story-card:first-child .rs9-story-card-link {
  grid-template-columns: 96px 1fr;
}
.rs9-report-list .rs9-story-card:first-child .rs9-story-card-link > img {
  display: block;
  grid-row: 1 / span 5;
}
@media (max-width: 767px) {
  .rs9-report-list .rs9-story-card:first-child .rs9-story-card-link {
    grid-template-columns: 72px 1fr;
  }
}

.rs9-news-list .rs9-story-card:first-child .rs9-story-card-link {
  grid-template-columns: 96px 1fr;
}
.rs9-news-list .rs9-story-card:first-child .rs9-story-card-link > img {
  display: block;
  grid-row: 1 / span 5;
}
@media (max-width: 767px) {
  .rs9-news-list .rs9-story-card:first-child .rs9-story-card-link {
    grid-template-columns: 72px 1fr;
  }
}
