/* Mobile homepage only. Desktop remains on the original handphone-home.css. */
@media screen and (max-width:767px) {
  html {scroll-padding-bottom:calc(var(--hp-home-dock-height,70px) + 16px)}
  .hp-home #hp-home-main .hp-mobile-home {
    --mobile-ink:#172b43; --mobile-muted:#526377; --mobile-blue:#125ed0;
    --mobile-line:#e6ebf0; --mobile-photo:clamp(80px,24vw,104px);
    margin:0; padding:0 18px 28px; background:#fff; color:var(--mobile-ink);
    line-height:1.5; word-break:keep-all; overflow-wrap:anywhere;
  }
  .hp-home .hp-mobile-home [hidden] {display:none!important}
  .hp-home .hp-mobile-intro {padding:22px 0 16px}
  .hp-home #hp-home-main #hp-mobile-title {
    margin:0; font-size:25px; font-weight:800; letter-spacing:-1px;
    line-height:1.3; color:var(--mobile-ink); text-wrap:wrap;
  }
  .hp-home .hp-mobile-intro p {margin:6px 0 0;font-size:13px;color:var(--mobile-muted);line-height:1.6}
  .hp-home .hp-mobile-tabs {
    position:sticky;top:calc(var(--hp-home-header-height,60px) + var(--hp-install-height,0px));z-index:10;
    display:flex;gap:6px;align-items:center;flex-wrap:wrap;
    margin:0 -18px;padding:8px 18px 12px;background:#fff;
    border-bottom:1px solid var(--mobile-line);
  }
  .hp-home #hp-home-main .hp-mobile-tabs button {
    min-height:44px; padding:10px 13px;border:1px solid #e1e6ec;border-radius:24px;
    background:#f7f8fa;color:#35475b;font:inherit;font-size:13px;font-weight:700;line-height:1.35;
    cursor:pointer;touch-action:manipulation;white-space:nowrap;
  }
  .hp-home #hp-home-main .hp-mobile-tabs button[aria-pressed="true"] {background:var(--mobile-blue);color:#fff;border-color:var(--mobile-blue)}
  .hp-home .hp-mobile-home :is(a,button):focus-visible {outline:3px solid #125ed0;outline-offset:3px}
  .hp-home .hp-mobile-list {margin:0;padding:0;list-style:none}
  .hp-home .hp-feed-item {margin:0;padding:0;border-bottom:1px solid var(--mobile-line)}
  .hp-home #hp-home-main .hp-mobile-home .hp-feed-link {
    display:grid;grid-template-columns:var(--mobile-photo) minmax(0,1fr);gap:14px;
    padding:17px 0;align-items:start;text-decoration:none;color:inherit;
    -webkit-tap-highlight-color:#eaf1fc;
  }
  .hp-home .hp-feed-image {display:block;aspect-ratio:1;overflow:hidden;border:1px solid #e6ebf1;border-radius:12px;background:#f1f4f8}
  .hp-home .hp-feed-image img {display:block;width:100%;height:100%;object-fit:cover;object-position:var(--mobile-image-position,50% 50%)}
  .hp-home #hp-mobile-service-business {--mobile-image-position:65% 50%}
  .hp-home #hp-mobile-service-industrial {--mobile-image-position:78% 50%}
  .hp-home #hp-mobile-service-phone img {object-fit:contain;padding:5px;background:#f7f8fa}
  .hp-home .hp-feed-body {min-width:0}
  .hp-home .hp-feed-kicker {display:block;margin:0 0 3px;font-size:11px;font-weight:650;line-height:1.4;color:var(--mobile-muted)}
  .hp-home #hp-home-main .hp-mobile-home .hp-feed-name {margin:0;font-size:18px;line-height:1.35;font-weight:800;letter-spacing:-.6px;text-wrap:wrap;color:var(--mobile-ink)}
  .hp-home .hp-feed-desc {margin:6px 0 0;font-size:13px;line-height:1.55;letter-spacing:-.2px;color:var(--mobile-muted)}
  .hp-home .hp-feed-action {display:inline-block;margin-top:7px;font-size:12px;font-weight:750;line-height:1.4;color:var(--mobile-blue)}
  .hp-home .hp-feed-action::after {content:'\00a0\2192'}
  .hp-home .hp-feed-arrow {display:none}
  .hp-home .hp-mobile-help {padding:20px;margin-top:24px;border:1px solid #e1e9f4;border-radius:14px;background:#f5f8fd}
  .hp-home #hp-home-main .hp-mobile-help h2 {margin:0;font-size:18px;line-height:1.45;letter-spacing:-.5px;text-wrap:wrap}
  .hp-home .hp-mobile-help p {margin:8px 0 12px;color:var(--mobile-muted);font-size:13px;line-height:1.65}
  .hp-home #hp-home-main .hp-mobile-help a {display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:10px 0;border-top:1px solid #e1e9f4;color:var(--mobile-blue);font-size:13px;font-weight:700}
  .hp-home .hp-faq-section {padding:32px 0 36px;border-top:8px solid #f4f6f8}
  .hp-home .hp-faq-section .hp-kicker {display:none}
  .hp-home #hp-home-main .hp-faq-section h2 {font-size:25px}
  .hp-home .hp-consult-section {padding:30px 0}
  .hp-home .hp-consult-copy {padding-top:0}
  .hp-home .hp-consult-copy .hp-kicker {display:none}
  .hp-home #hp-home-main .hp-consult-copy h2 {font-size:28px}
  .hp-home .hp-consult-copy>p:not(.hp-kicker) {margin-top:10px}
  .hp-home .hp-consult-points,.hp-home .hp-consult-reference {display:none!important}
  .hp-home .hp-consult-grid {gap:20px}
  .hp-home #hp-home-main .hp-contact-number {font-size:30px;margin-top:12px}
  .hp-home .hp-dock {padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px))}
  .hp-home .hp-dock a:is(.hp-dock-call,.hp-dock-apply) {min-height:48px;border-radius:10px;gap:8px;white-space:normal;font-size:14px}
  .hp-home .hp-dock a.hp-dock-apply {background:#125ed0;border-color:#125ed0}
  /* Only the mobile homepage opts out of the shared floating action pair. */
  html body.hp-home #hp-router-tools,
  html body.hp-home #hp-rate-entry,
  html body.hp-home #hpb-launcher {display:none!important}
  /* Native fixed positioning must not also receive the shared visualViewport offset.
     Browser address-bar transitions can otherwise lift the dock by that offset twice. */
  html body.hp-home #hp-mobile-dock[id] {
    position:fixed!important;top:auto!important;bottom:0!important;
    left:0!important;right:0!important;margin-bottom:0!important;transform:none!important;
    display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
  }
  #mobile-services,#mobile-help,#hp-mobile-list {scroll-margin-top:calc(var(--hp-home-header-height,60px) + var(--hp-install-height,0px) + 74px)}
  #consult {scroll-margin-top:calc(var(--hp-home-header-height,60px) + var(--hp-install-height,0px) + 16px)}
}
@media screen and (max-width:350px) {
  .hp-home #hp-home-main .hp-mobile-home {padding-inline:12px;--mobile-photo:78px}
  .hp-home .hp-mobile-tabs {margin-inline:-12px;padding-inline:12px;gap:5px}
  .hp-home #hp-home-main .hp-mobile-tabs button {padding-inline:10px;font-size:12px}
  .hp-home #hp-home-main .hp-mobile-home .hp-feed-link {gap:11px}
  .hp-home #hp-home-main .hp-mobile-home .hp-feed-name {font-size:17px}
}
@media (forced-colors:active) {
  .hp-home #hp-home-main .hp-mobile-tabs button[aria-pressed="true"] {border:2px solid Highlight}
}

/* R3: the category bar is not bounded by the service section. */
@media screen and (max-width:767px) {
  .hp-home .hp-mobile-tabs-slot {display:block;width:100%;overflow-anchor:none}
  .hp-home .hp-mobile-tabs[data-scroll-state] {position:static;transform:none;opacity:1;visibility:visible}
  .hp-home .hp-mobile-tabs:is([data-scroll-state="shown"],[data-scroll-state="hidden"]) {
    position:fixed;top:var(--hp-mobile-tabs-top,52px);left:0;right:0;margin:0;z-index:998;
    box-shadow:0 3px 9px #1734520a;
    transition:transform .18s ease,opacity .18s ease,visibility 0s;
  }
  .hp-home .hp-mobile-tabs[data-scroll-state="hidden"] {
    transform:translateY(-100%);opacity:0;visibility:hidden;pointer-events:none;
    transition:transform .18s ease,opacity .18s ease,visibility 0s .18s;
  }
}
@media (prefers-reduced-motion:reduce) {
  .hp-home .hp-mobile-tabs[data-scroll-state] {transition:none!important}
}
