/* Topline phone layout hotfix.  Loaded after style.css and scoped to phones. */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  padding-left: 18px;
  padding-right: 18px;
}

.site-header .topbar {
  min-width: 0;
  gap: 12px;
}

.site-header nav.main,
.site-header .phone {
  display: none;
}

.site-header .head-right {
  min-width: 0;
  margin-left: auto;
  gap: 8px;
}

.site-header .btn-accent {
  height: 42px;
  min-width: 0;
  padding: 0 14px;
  font-size: 14px;
}

.site-header .burger {
  display: flex;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.hero {
  padding-top: 112px;
  padding-bottom: 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.hero-visual {
  order: -1;
  width: 100%;
  height: 300px;
  min-height: 300px;
  margin: 0;
}

.hero-visual .scene {
  position: absolute;
  inset: 0;
}

h1.hero-title,
.hero-title {
  max-width: 100%;
  font-size: 34px !important;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero-sub {
  max-width: 100%;
  font-size: 16px;
  line-height: 1.5;
}

.hero-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.hero-cta .btn {
  width: 100%;
  min-width: 0;
}

/* One full-width product per row; no fixed desktop width can leak into a
 * phone viewport. */
#catalog .cards {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  max-width: 100%;
  gap: 16px !important;
}

#catalog .fuel {
  display: flex;
  width: 100% !important;
  max-width: 100%;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
}

#catalog .fuel .top {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 2 / 1;
  flex: 0 0 auto;
  overflow: hidden;
}

#catalog .fuel .top::before {
  inset: 0;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  transform: none !important;
}

#catalog .fuel .body {
  width: 100%;
  min-width: 0;
  min-height: 0 !important;
  padding: 20px 18px 18px;
}

#catalog .fuel h3,
#catalog .fuel .desc,
#catalog .fuel .meta,
#catalog .fuel .price {
  min-height: 0 !important;
  overflow-wrap: anywhere;
}

#catalog .fuel .fbtn {
  width: 100%;
  min-height: 46px;
}

/* Keep badges over the artwork but away from the card title. */
#catalog .fuel .top .badge {
  right: 12px !important;
  left: auto !important;
  top: auto !important;
  bottom: 12px !important;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}

#catalog .fuel .top .k5 {
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
}

/* Documents and FAQ keep the same readable card rhythm as desktop. */
.docs-sec,
#faq {
  width: 100%;
  max-width: 100%;
}

.docs-sec .docrow {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.docs-sec .docrow::-webkit-scrollbar {
  display: none;
}

.docs-sec .docrow .doc {
  flex: 0 0 280px !important;
  width: 280px !important;
  max-width: 88vw !important;
  min-width: 0 !important;
}

.docs-sec .doc .sheet.doc-thumb {
  width: 100%;
  height: 190px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#faq .faq {
  width: 100%;
  max-width: 820px;
}

#faq .qa {
  width: 100%;
  box-sizing: border-box;
  padding: 20px 18px;
}

#faq .qa .q {
  align-items: center;
  gap: 12px;
  line-height: 1.45;
}

#faq .qa .q > :first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Order page: reset the desktop grid and every flex child that can create a
 * horizontal overflow on a narrow phone. */
.topline-order-page,
.topline-order-page .page-top,
.topline-order-page .order-grid,
.topline-order-page .order-card,
.topline-order-page .order-step,
.topline-order-page .field,
.topline-order-page .dbox,
.topline-order-page .summary {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.topline-order-page {
  overflow-x: hidden;
}

.topline-order-page .page-top {
  padding-top: 104px;
  padding-bottom: 28px;
}

.topline-order-page .page-top h1 {
  max-width: 100%;
  font-size: clamp(30px, 8.5vw, 40px) !important;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.topline-order-page .order-grid {
  display: block !important;
  padding: 0 18px 72px !important;
}

.topline-order-page .order-card {
  padding: 22px 16px !important;
  border-radius: 18px;
  overflow: hidden;
}

.topline-order-page .stepbar {
  width: 100%;
  gap: 7px;
  margin-bottom: 24px;
}

.topline-order-page .stepbar .st {
  min-width: 0;
}

.topline-order-page .stepbar .lb {
  font-size: 11px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.topline-order-page .seg {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.topline-order-page .seg .opt {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 10px 8px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.topline-order-page .grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.topline-order-page .form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

.topline-order-page .form-actions .btn {
  width: 100%;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
  white-space: normal;
  text-align: center;
}

.topline-order-page .form-actions [data-order-next],
.topline-order-page .form-actions [data-order-submit] {
  grid-column: 1 / -1;
}

.topline-order-page .summary {
  position: static;
  margin-top: 16px;
  padding: 20px 16px;
}

.topline-order-page .summary .sumrow {
  min-width: 0;
  align-items: flex-start;
}

.topline-order-page .summary .sumrow b {
  max-width: 58%;
  overflow-wrap: anywhere;
}

.topline-order-page [data-order-consent] {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mobile-bar {
  display: flex !important;
}

/* Company details: the desktop definition uses a 160px label column.  On a
 * phone that leaves too little room for the address and email, so collapse
 * the definition list to one flexible column and allow long values to wrap.
 */
.page-content dl {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px 0 !important;
}

.page-content dl dt {
  margin-top: 6px;
}

.page-content dl dd {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

@media (max-width: 360px) {
  .site-header .logo {
    gap: 7px;
    font-size: 17px;
  }

  .site-header .logo .mark {
    width: 34px;
    height: 34px;
  }

  .site-header .btn-accent {
    padding: 0 10px;
    font-size: 13px;
  }

  .site-header .burger {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
}

/* Clean, text-free fuel artwork.  Keeping these selectors in the separately
 * enqueued phone stylesheet means a cached desktop style cannot reintroduce
 * the previous captioned illustrations on mobile. */
@media screen and (max-width: 767px) {
  #catalog .fuel:nth-child(1) .top::before { background-image: url("../images/fuel-dt-summer-clean-mobile-v1.svg"); }
  #catalog .fuel:nth-child(2) .top::before { background-image: url("../images/fuel-dt-winter-clean-mobile-v1.svg"); }
  #catalog .fuel:nth-child(3) .top::before { background-image: url("../images/fuel-dt-arctic-clean-mobile-v1.svg"); }
  #catalog .fuel:nth-child(4) .top::before { background-image: url("../images/fuel-ai92-clean-mobile-v1.svg"); }
  #catalog .fuel:nth-child(5) .top::before { background-image: url("../images/fuel-ai95-clean-mobile-v1.svg"); }
  #catalog .fuel:nth-child(6) .top::before { background-image: url("../images/fuel-ai98-clean-mobile-v1.svg"); }
  #catalog .fuel:nth-child(7) .top::before { background-image: url("../images/fuel-generator-clean-mobile-v1.svg"); }
  #catalog .fuel .top::before {
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }
}
