/* Phone and tablet fixes on top of the imported theme. Loaded on every page after site.css. */

/* Installer pages: the imported text is white, so the cards need a dark red ground (as on the home page). */
.stek-site .stek-installer-card {
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid #e1e4e8;
  background: #fff;
}

.stek-site .stek-installer-card h2 {
  margin: 0;
  padding: 22px 24px 4px;
  font-size: 24px;
  line-height: 1.25;
}

.stek-site .stek-installer-card > p:first-of-type {
  margin: 0;
  padding: 0 24px 20px;
  color: #5c626b;
}

.stek-site .stek-installer-card > p + p {
  margin: 0;
  padding: 22px 24px;
  background: #a51d22;
  color: #fff;
  line-height: 1.8 !important;
}

.stek-site .stek-installer-card a { color: #fff; }

@media (max-width: 991px) {
  /* Side menu: a little wider, and room for the arrow next to long names. */
  .stek-site #main-menu { width: min(330px, 88vw); padding-right: 22px; padding-left: 26px; }
  .stek-site #main-menu.open { margin-left: calc(-1 * min(330px, 88vw)); }
  .stek-site #main-menu > ul > li > a { padding-right: 44px; }
}

@media (max-width: 767px) {
  /* Compact header bar with the logo and the menu button on one line. */
  .stek-site #header .navbar-wrapper { padding-top: 14px; padding-bottom: 14px; }
  .stek-site #header .navbar-header { display: flex; align-items: center; justify-content: space-between; float: none; }
  .stek-site #header .navbar-header::before,
  .stek-site #header .navbar-header::after { display: none; }
  .stek-site #header .navbar-toggle { margin: 0; }

  /* Pages that open with a photo banner: no white strip above it. */
  .stek-site .content-wrapper:has(.entry-content > .vce-row-container:first-child > .vce-row.vce-element--has-background) { padding-top: 0; }

  /* Photo banners at the top of product pages: shorter, text kept readable. */
  .stek-site .entry-content > .vce-row-container:first-child > .vce-row.vce-element--has-background {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  /* Home "benefits" cards: use the full card width for the text. */
  .stek-site .stek-features.vce-row { padding-left: 0 !important; padding-right: 0 !important; }
  .stek-site .stek-features .vce-col-inner { padding-left: 22px; padding-right: 22px; }

  /* YouTube embeds fill the width. */
  .stek-site .vce-yt-video-player-wrapper { width: 100% !important; max-width: 100%; }

  .stek-site .stek-installer-card h2 { font-size: 21px; padding: 18px 18px 2px; }
  .stek-site .stek-installer-card > p:first-of-type { padding: 0 18px 16px; }
  .stek-site .stek-installer-card > p + p { padding: 18px; }
}
