/* KEDAICDID R310 — tablet home uses the same composition as desktop.
   The hero title remains in the desktop position, service cards anchor at the
   lower-left, and the action buttons stack on the right. Card/button dimensions
   scale only when a narrower tablet needs the extra room. */
@media (min-width:701px) and (max-width:1100px) {
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda {
    --kcd-r310-home-card-size:clamp(140px,calc((100vw - 280px)/3),184px);
    --kcd-r310-home-card-gap:clamp(10px,1.5vw,14px);
    --kcd-r310-home-action-width:clamp(132px,18.8vw,180px);
    --kcd-r310-home-edge:clamp(30px,4.8vw,46px);
  }

  /* Restore desktop hero framing and title scale. */
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda .kcd-sakura-welcome {
    position:relative !important;
    min-height:100svh !important;
    height:auto !important;
    margin:0 !important;
    padding-top:140px !important;
    box-sizing:border-box !important;
  }

  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda .kcd-welcome-copy h1 {
    font-size:clamp(2.65rem,5.25vw,5.35rem) !important;
    max-width:min(610px,51vw) !important;
  }

  /* Desktop arrangement: three square cards anchored to the lower-left. */
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda #kcd-home-service-links.kcd-home-service-links {
    position:absolute !important;
    z-index:9 !important;
    top:auto !important;
    right:auto !important;
    bottom:48px !important;
    left:var(--kcd-r310-home-edge) !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,var(--kcd-r310-home-card-size))) !important;
    grid-auto-flow:row !important;
    align-items:stretch !important;
    justify-content:start !important;
    gap:var(--kcd-r310-home-card-gap) !important;
    width:max-content !important;
    max-width:calc(100% - var(--kcd-r310-home-edge) - var(--kcd-r310-home-edge)) !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
    box-sizing:border-box !important;
  }

  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda #kcd-home-service-links .kcd-home-service-card {
    display:grid !important;
    grid-template-rows:minmax(0,1fr) !important;
    place-items:stretch !important;
    width:var(--kcd-r310-home-card-size) !important;
    min-width:var(--kcd-r310-home-card-size) !important;
    max-width:var(--kcd-r310-home-card-size) !important;
    height:var(--kcd-r310-home-card-size) !important;
    min-height:var(--kcd-r310-home-card-size) !important;
    aspect-ratio:1 / 1 !important;
    margin:0 !important;
    padding:clamp(7px,1.25vw,12px) !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
  }

  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda #kcd-home-service-links .kcd-home-service-media {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:100% !important;
    min-height:0 !important;
    aspect-ratio:1 / 1 !important;
    margin:0 !important;
    border-radius:inherit !important;
    overflow:hidden !important;
  }

  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda #kcd-home-service-links .kcd-home-service-media img {
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }

  /* Desktop action placement: a vertical pair on the right side of the hero. */
  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda .r226-hero-actions {
    position:absolute !important;
    top:385px !important;
    right:clamp(28px,7vw,66px) !important;
    bottom:auto !important;
    left:auto !important;
    inset:385px clamp(28px,7vw,66px) auto auto !important;
    display:flex !important;
    flex:0 0 auto !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:12px !important;
    width:var(--kcd-r310-home-action-width) !important;
    max-width:var(--kcd-r310-home-action-width) !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
  }

  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda .r226-hero-actions a {
    display:flex !important;
    flex:0 0 auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    min-height:38px !important;
    padding:clamp(9px,1.25vw,12px) clamp(10px,1.4vw,20px) !important;
    font-size:clamp(11px,1.05vw,13px) !important;
    line-height:1.25 !important;
    box-sizing:border-box !important;
    white-space:normal !important;
    text-align:center !important;
  }

  html:root:root:root:root:root:root:root:root [data-kedaicdid-legacy-root] #beranda .r226-hero-actions a:last-child {
    order:0 !important;
  }
}
