.ew-external { font-family: Arial, sans-serif; font-size: .75em; display: inline-block; margin-left: .18em; }
.ew-form-status { margin-top: .75rem; line-height: 1.4; }
.ew-form-status:empty { display: none; }
.ew-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.ew-history-section { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.ew-history-note { margin-top: 1rem; font-weight: 700; }
.g-cms > .g-cms-template { display: block !important; }
.ew-search-results, .ew-new-posts { padding: 1rem 0 2rem; }
.ew-search-result, .ew-new-post { margin: 1rem 0; }
.ew-search-result a, .ew-new-post a { text-decoration: underline; }
.ew-search-result p, .ew-new-post p { margin-top: .35rem; }
.ew-blog-article { width: min(100% - 2rem, 980px); margin: 4rem auto; line-height: 1.6; }
.ew-blog-article h1 { margin-bottom: 1.5rem; }
@media (max-width: 768px) {
  img, iframe, video { max-width: 100%; }
  .g-container { min-width: 0 !important; max-width: 100% !important; }
  .g-text, .g-post-content { overflow-wrap: anywhere; }
  .g-cms, .g-cms > .g-cms-template, .g-cms-template > .childrens, .g-post-content, .g-post-title { min-width: 0 !important; max-width: 100% !important; }
  .g-cms > .g-cms-template { flex-basis: 100% !important; }
  .g-search { width: 100%; max-width: 100%; }
  .g-search .search-input-field { flex: 1 1 auto; min-width: 0; }
  .ew-blog-article { margin: 2rem auto; }
}

/* Keep the captured policy and editorial copy in its intended reading order. */
:where(.container-ql_l7crn0Y, .container-VhV5jA01OF, .container-K3o-iP8VHY,
       .container-Z0vBUWlkoY, .container-eptwCEKm3k, .container-JYi4oCr72J,
       .container-PHmye-NcrJ, .container-hkLJlKZlkc, .container-2SxPD0IZ1G,
       .container-CTKDkaQ9KM, .container-0oMeMgQbuw) > .childrens > .g-text {
  display: block;
  width: 100%;
  max-width: 100%;
}
:where(.container-ql_l7crn0Y, .container-VhV5jA01OF, .container-K3o-iP8VHY) {
  max-width: 980px;
  margin-inline: auto;
}
:where(.container-ql_l7crn0Y, .container-VhV5jA01OF, .container-K3o-iP8VHY) > .childrens > p.g-text {
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
:where(.container-JX7DbYr2Pd, .container-pwQc3ACEy8, .container-4GrpKgLJx2) > .overlay {
  background: rgba(255, 255, 255, .96) !important;
  opacity: 1 !important;
}

/* These original absolute panels extended beyond the viewport and fixed-height
   sections clipped text. Let the sections grow and reserve the logo's own space. */
:where(.container-J_NxFVG5-Q, .container-4PhYjJHSPA, .container-v38GmXcXNq, .container-d3AIGxnmjg) {
  height: auto !important;
  min-height: 420px;
}
:where(.container-J_NxFVG5-Q, .container-4PhYjJHSPA, .container-v38GmXcXNq, .container-d3AIGxnmjg) > .childrens {
  height: auto !important;
}
:where(.position-_ShStHhj9_, .position-HTkeeUm4md) { width: 45% !important; }
.position-a5f4-2auUH { display: none !important; } /* empty decorative layer */
@media (min-width: 769px) {
  :where(.container-ri9acSJcfn, .container-jpeiL7y09R) { width: 48% !important; margin-right: auto; }
}
@media (max-width: 768px) {
  .position-_ShStHhj9_ { display: none !important; } /* empty decorative layer */
  .position-HTkeeUm4md {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: 160px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
  }
  :where(.container-ri9acSJcfn, .container-jpeiL7y09R) { width: 100% !important; }
  :where(.container-dq0Wn0CL8k, .container-hXwcjN6e0d) { padding: 28px !important; }
}

/* A timeline should work with a mouse or keyboard, and its content remains
   readable in document order even if JavaScript is disabled. */
.g-tab:not(.ew-tabs-ready) .tab-title-container { display: none; }
.g-tab:not(.ew-tabs-ready) .tab-content-container .g-inner-tab { display: block !important; }
.g-tab.ew-tabs-ready .tab-content-container .g-inner-tab { display: none !important; }
.g-tab.ew-tabs-ready .tab-content-container .g-inner-tab.ew-tab-active { display: block !important; }
.g-tab .tab-title-container { min-width: 0; white-space: normal; gap: 2px 4px; }
.g-tab .tab-title-container .tab-title { min-height: 44px; padding: 8px 12px !important; flex: 0 0 auto; }
.g-tab .tab-title-container .active { border-bottom-color: #729f18; }

/* The original first article has no hero or thumbnail image. Use the existing
   ElectroWheels logo for the empty card slots and remove the empty hero height. */
:where(.container-b2YL6ieR1w-0, .container-SDOSbPCf5q-0, .container-hp-aHQirYO-0,
       .container-9UKk4Syntl-0, .container-n_bIObgv1t-0, .container-BI43nSyyFT-0) {
  background: #f7f5ef url('/manus-storage/electrowheelslogo1024pxeyv7v6-500_f4b41754.avif') center / contain no-repeat;
}
body:has(.g-post-content > .text-Ppa_A-u_NL) .container-4mCOJKV1OL {
  height: auto !important;
  min-height: 140px;
}
.g-post-content { max-width: 820px; margin-inline: auto !important; }
.g-post-content > p.g-text { font-size: 16px; line-height: 1.6; }
@media (min-width: 769px) {
  .cms-PpU4Iok5vC > .g-cms-template { flex: 0 0 calc(50% - 8px) !important; }
}
@media (max-width: 768px) {
  .container-4mCOJKV1OL { background-size: contain !important; background-repeat: no-repeat !important; }
}

/* Shared contact details and a compact, touch-friendly mobile footer. */
.g-container:has(> .childrens > h6.g-text + p.g-text + h6.g-text) > .childrens > :is(h6, p).g-text {
  display: block;
  width: 100%;
}
.g-container:has(> .childrens > h6.g-text + p.g-text + h6.g-text) > .childrens > h6.g-text:nth-of-type(2) { margin-top: 14px; }
.g-container:has(> .childrens > h6.g-text + p.g-text + h6.g-text) > .childrens > p.g-text a { color: inherit; }
@media (max-width: 768px) {
  .columns-ZIsIgzoPYJ { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px !important; }
  .columns-ZIsIgzoPYJ > .g-column { width: auto !important; min-width: 0; }
  .columns-ZIsIgzoPYJ > .g-column > .childrens > .g-menu-links + .g-menu-links { margin-top: 0 !important; }
  .columns-ZIsIgzoPYJ .menu-link { display: flex; align-items: center; min-height: 44px; padding: 6px 0; }
  .container-gkMmYQdz2U > .childrens { flex-wrap: nowrap !important; }
  .form-text-VfmCtXC0CC { width: auto !important; min-width: 0; flex: 1 1 0; }
  .dealer-model-options > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Feedback is subtle and never required to reveal content. */
:where(a, button, input, select, textarea, .tab-title):focus-visible { outline: 3px solid #729f18; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  :where(.g-button, .g-form button, .dealer-button, .dealer-territory a, .g-cms-template) {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }
  @media (hover: hover) {
    .g-cms-template:hover { transform: translateY(-2px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Match the ride form's short Name field to the other controls. */
form[data-ew-form='ride'] input:not(.ew-honeypot),
form[data-ew-form='newsletter'] input[type='email'] {
  box-sizing: border-box;
  min-height: 44px;
}
form[data-ew-form='ride'] button,
form[data-ew-form='newsletter'] button { min-height: 44px; }

/* Appointment requests use the selected location's local time. */
.ew-appointment-fields { margin: 16px 0; }
.ew-appointment-fields label { display: block; margin: 0 0 6px; font-weight: 600; }
.ew-appointment-fields input,
.ew-appointment-fields select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #a7a7a7;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font: inherit;
}
.ew-appointment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 480px) { .ew-appointment-grid { grid-template-columns: 1fr; } }

/* Keep the contact-page heading and copy together on a calm reading surface. */
.container-f8iGR4jCsL { max-width: 900px; margin-inline: auto; }
.container-f8iGR4jCsL > .childrens > .g-text { display: block; width: 100%; max-width: 100%; }
.container-DjlNOd92SR > .overlay { background: rgba(255, 255, 255, .96) !important; opacity: 1 !important; }

/* Separate the copied introductory paragraphs and align history to the site grid. */
:where(.container-7dczCrS6S_, .container-gg-7mI1TNQ, .container-3dilH1BdLV) > .childrens > .g-text {
  display: block;
  width: 100%;
  max-width: 100%;
}
:where(.container-J_NxFVG5-Q, .container-4PhYjJHSPA) {
  padding-inline: max(20px, calc((100% - 1200px) / 2)) !important;
}

/* The parent link navigates; a separate button opens the submenu. */
.g-menu-links .menu-item.has-children { display: flex; align-items: center; }
.ew-submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.ew-submenu-toggle svg { width: 12px; height: 12px; }
html:not(.ew-nav-ready) .g-menu-links .has-children:focus-within > .dropdown-menu,
html:not(.ew-nav-ready) .g-menu-links .has-children:hover > .dropdown-menu { display: block; }
@media (max-width: 768px) {
  html:not(.ew-nav-ready) .g-menu .g-hamburger { display: none !important; }
  html:not(.ew-nav-ready) .g-menu .menu-mobile-content {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  html:not(.ew-nav-ready) .g-menu .menu-mobile-content .dropdown-menu {
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* The captured blog had a fixed 1100px width on tablets. */
.container-rM5mLTLmQA { width: min(100%, 1100px) !important; max-width: 100%; box-sizing: border-box; }
@media (max-width: 480px) {
  .container-YYJ53Br3gz, .container-fZ8tPt8mwe { padding: 24px !important; }
  .container-fZ8tPt8mwe > .childrens { flex-wrap: nowrap !important; height: auto !important; }
}

:where(.container-n6bMWN7c0X, .container-KDIt7AHp-L, .container-B4qeEzjPp5) {
  width: min(100%, 1100px) !important;
  max-width: 100%;
  box-sizing: border-box;
}

/* Give the featured story space while keeping original and new posts in one list. */
.cms-PpU4Iok5vC { flex-wrap: wrap; align-items: stretch; }
.cms-PpU4Iok5vC > .ew-featured-article { flex: 0 0 100% !important; }
.ew-featured-article .container-w3PzJQD1xD-0 { border: 1px solid #e5e2d9; }
.ew-featured-article .container-w3PzJQD1xD-0 > a > .childrens {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: stretch !important;
}
.ew-featured-article .container-9UKk4Syntl-0 { height: 100%; min-height: 260px; }
.ew-featured-article .container-_OtqI2DnjT-0 { height: 100%; padding: clamp(24px, 4vw, 48px); }
.ew-feature-label { display: block; color: #527813; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ew-featured-article .dynamic-post-title { font-size: clamp(24px, 2.5vw, 34px); font-weight: 700; line-height: 1.15; text-align: left; }
.ew-featured-article .dynamic-post-excerpt { line-height: 1.5; text-align: left; }
.cms-PpU4Iok5vC .ew-read-article { display: block; margin-top: 16px; color: #527813; font-weight: 700; text-align: center; }
.ew-featured-article .ew-read-article { text-align: left; }
.cms-PpU4Iok5vC > .ew-new-post {
  box-sizing: border-box;
  flex: 0 0 calc(50% - 8px);
  margin: 0;
  padding: 24px;
  border: 1px solid #e5e2d9;
  border-radius: 5px;
  background: #fff;
  overflow-wrap: anywhere;
}
@media (max-width: 768px) {
  .ew-featured-article .container-w3PzJQD1xD-0 > a > .childrens { grid-template-columns: 1fr; }
  .ew-featured-article .container-9UKk4Syntl-0 { height: 200px; min-height: 0; }
  .cms-PpU4Iok5vC > .ew-new-post { flex-basis: 100%; }
}

/* Parent guide and its Ride Smarter listing, scoped to the new content. */
.ew-guide-page, .ew-guide-category-page { padding: clamp(32px, 6vw, 72px) 20px; }
.ew-guide-article, .ew-guide-category-inner { width: min(100%, 980px); margin: 0 auto; }
.ew-guide-header, .ew-guide-body, .ew-guide-tags { max-width: 820px; margin-inline: auto; }
.ew-guide-category { color: #527813; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ew-guide-header h1 { margin: 12px 0 16px; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.08; }
.ew-guide-byline { color: #555; font-size: 16px; }
.ew-guide-hero { display: block; width: 100%; height: auto; margin: 28px 0 36px; }
.ew-guide-body { font-size: 18px; line-height: 1.65; }
.ew-guide-body p { margin: 0 0 1.2em; }
.ew-guide-body h2 { margin: 1.4em 0 .55em; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }
.ew-guide-body ul, .ew-guide-body ol { margin: 0 0 1.2em 1.7em; padding: 0; }
.ew-guide-body li { padding-left: .25em; margin-bottom: .45em; }
.ew-guide-body a, .ew-guide-byline a { color: #527813; text-decoration: underline; }
.ew-guide-table-scroll { width: 100%; max-width: 100%; margin: 0 0 1.2em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ew-guide-table-scroll table { min-width: 600px; width: 100%; margin: 0; border-collapse: collapse; }
.ew-guide-table-scroll th, .ew-guide-table-scroll td { padding: 12px 14px; border: 1px solid #d4d8cc; text-align: left; vertical-align: top; }
.ew-guide-table-scroll th { background: #eef3e7; font-weight: 700; }
.ew-guide-body .ew-guide-disclaimer { color: #696969; font-size: 14px; line-height: 1.55; }
.ew-guide-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ew-guide-tags span { padding: 5px 10px; border: 1px solid #d4d8cc; border-radius: 3px; color: #555; font-size: 14px; }
.cms-PpU4Iok5vC > .ew-guide-card { flex: 0 0 100%; }
.ew-guide-card { border: 1px solid #e5e2d9; border-radius: 5px; overflow: hidden; background: #fff; }
.ew-guide-card > a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); color: inherit; text-decoration: none; }
.ew-guide-card img { display: block; width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.ew-guide-card-copy { align-self: center; padding: clamp(24px, 4vw, 48px); }
.ew-guide-card h2 { margin: 10px 0 14px; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.15; }
.ew-guide-card p { margin-bottom: 0; line-height: 1.5; }
.ew-guide-card .ew-read-article { display: block; margin-top: 16px; color: #527813; font-weight: 700; text-align: left; }
.ew-guide-category-inner > h1 { margin-bottom: 24px; }
@media (max-width: 768px) {
  .ew-guide-page, .ew-guide-category-page { padding-inline: 20px; }
  .ew-guide-body { font-size: 17px; }
  .ew-guide-card > a { grid-template-columns: 1fr; }
  .ew-guide-card img { min-height: 0; height: auto; aspect-ratio: 1200 / 630; }
}

/* The category link and footer brand are specific to the new editorial pages. */
.ew-guide-index-category { display: inline-block; margin: 0 0 20px; color: #527813; font-weight: 700; text-decoration: underline; }
body:has(.ew-guide-page) .ew-guide-footer-brand, body:has(.ew-guide-category-page) .ew-guide-footer-brand { display: block; margin-bottom: 1rem; color: #fff; font-size: 25px; font-weight: 400; line-height: 1.2; }

/* Recent-article cards share the captured three/two/one-column grid. */
.cms-G6o6tISf37, .cms--qrFayrr7v, .cms-oroYUYt4Dt { flex-wrap: wrap; }
.ew-recent-card { min-width: 0; overflow-wrap: anywhere; background: #fff; }
.ew-recent-card > a { display: block; height: 100%; color: #000; text-decoration: none; }
.ew-recent-card-image { display: flex; height: 200px; align-items: center; justify-content: center; background: #f7f5ef; }
.ew-recent-card-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ew-recent-card-copy { padding: 20px; }
.ew-recent-card-copy h4 { margin: 0 0 12px; font-size: 20px; font-weight: 400; line-height: 1.2; text-align: center; }
.ew-recent-card-copy p { margin: 0; line-height: 1.5; text-align: center; }

/* Original article covers: preserve captured card grids, but replace logo slots. */
.ew-legacy-thumb { position: relative; overflow: hidden; background: #f7f5ef !important; }
.ew-legacy-thumb .ew-legacy-card-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ew-legacy-feature { width: min(100%, 820px); margin: 28px auto 36px; }
.container-KDIt7AHp-L.is-block > .childrens > .ew-legacy-feature { margin: 28px auto 36px; }
.ew-legacy-feature img { display: block; width: 100%; height: auto; }
body:has(.ew-legacy-feature) .container-4mCOJKV1OL {
  background: none !important;
  height: auto !important;
  min-height: 140px;
}
