.phone-menu,
.phone-bar,
.phone-category-toggle {
  display: none;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 82px;
    scroll-padding-bottom: 80px;
  }

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

  html:has(.phone-home) {
    scroll-padding-top: 132px;
  }

  .phone-home .utility,
  .phone-home .navline,
  .phone-home .header-contact,
  .learn-header .nav-inner > nav,
  .learn-header .nav-inner > .btn,
  .partner-header .nav-row > nav,
  .partner-header .nav-row > .btn,
  .madu-page .madu-masthead > nav,
  .madu-page .madu-masthead > .button,
  .product-page .detail-nav,
  .order-page .order-nav {
    display: none;
  }

  .header .masthead,
  .header .madu-masthead,
  .learn-header .nav-inner,
  .partner-header .nav-row {
    position: relative;
    min-height: 64px;
    padding-block: 9px;
    gap: 10px;
    justify-content: space-between;
  }

  .header .brand img,
  .learn-header .learn-brand img,
  .partner-header .brand img {
    width: 158px;
  }

  .phone-menu {
    display: block;
    margin-inline-start: auto;
  }

  .phone-menu summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 13px;
    list-style: none;
    border: 1px solid #d4e2f5;
    border-radius: 10px;
    background: #f4f8ff;
    color: #124a9f;
    font-size: .875rem;
    font-weight: 800;
    cursor: pointer;
  }

  .phone-menu summary::-webkit-details-marker {
    display: none;
  }

  .phone-menu summary::before {
    content: "";
    width: 14px;
    height: 10px;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }

  .phone-menu[open] summary {
    background: #e4efff;
    border-color: #adc9f1;
  }

  .phone-menu:not([open]) > nav {
    display: none;
  }

  .phone-menu[open] > nav {
    display: grid;
    position: absolute;
    z-index: 3;
    top: calc(100% + 4px);
    right: 0;
    width: min(100%, 330px);
    max-height: 60dvh;
    overflow: auto;
    padding: 6px;
    border: 1px solid #d4e2f5;
    border-radius: 12px;
    background: white;
    box-shadow: 0 16px 40px #13294a26;
    color: #14243e;
  }

  .phone-menu nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 13px;
    border-radius: 7px;
    font-size: .94rem;
    font-weight: 700;
  }

  .phone-menu nav a:hover,
  .phone-menu nav a:focus-visible {
    background: #eff5ff;
    color: #124a9f;
  }

  .phone-bar {
    position: fixed;
    z-index: 30;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #d8e2f1;
    background: #fff;
    box-shadow: 0 -5px 22px #14243e12;
  }

  .phone-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 51px;
    padding: 4px 2px;
    border-radius: 9px;
    color: #415674;
    font-size: .8125rem;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
  }

  .phone-bar a[aria-current] {
    background: #eaf2ff;
    color: #134eb5;
  }

  .phone-icon {
    position: relative;
    display: block;
    width: 17px;
    height: 17px;
  }

  [data-phone-dest="beranda"] .phone-icon::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 3px;
    width: 11px;
    height: 11px;
    border: solid currentColor;
    border-width: 2px 0 0 2px;
    transform: rotate(45deg);
  }

  [data-phone-dest="beranda"] .phone-icon::after {
    content: "";
    position: absolute;
    inset: 6px 2px 0;
    border: solid currentColor;
    border-width: 0 2px 2px;
    border-radius: 0 0 2px 2px;
  }

  [data-phone-dest="produk"] .phone-icon {
    background:
      linear-gradient(currentColor, currentColor) left top / 7px 7px no-repeat,
      linear-gradient(currentColor, currentColor) right top / 7px 7px no-repeat,
      linear-gradient(currentColor, currentColor) left bottom / 7px 7px no-repeat,
      linear-gradient(currentColor, currentColor) right bottom / 7px 7px no-repeat;
  }

  [data-phone-dest="galeri"] .phone-icon {
    border: 2px solid currentColor;
    border-radius: 3px;
    background: linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  }

  [data-phone-dest="pesan"] .phone-icon::before,
  [data-phone-dest="pesan"] .phone-icon::after {
    content: "";
    position: absolute;
    border: 2px solid currentColor;
  }

  [data-phone-dest="pesan"] .phone-icon::before {
    inset: 0 5px 9px;
    border-radius: 50%;
  }

  [data-phone-dest="pesan"] .phone-icon::after {
    inset: 10px 1px 0;
    border-radius: 7px 7px 2px 2px;
  }

  .phone-home .search {
    order: 3;
    min-height: 44px;
    padding: 3px;
  }

  .phone-home .search input {
    font-size: 1rem;
  }

  .phone-home .storefront {
    display: flex;
    flex-direction: column;
    margin-top: 14px;
    gap: 10px;
  }

  .phone-home .banner-shell {
    order: -1;
    min-height: 0;
    border-radius: 16px;
  }

  .phone-home .banner {
    min-height: 0;
    height: auto;
  }

  .phone-home .banner::before {
    background: linear-gradient(105deg, #0b1e36fa 12%, #102b46df 72%, #102b46ad);
  }

  .phone-home .banner .banner-copy {
    padding: 24px 20px 16px;
  }

  .phone-home .banner .eyebrow {
    font-size: .75rem;
    line-height: 1.6;
    letter-spacing: .06em;
  }

  .phone-home .banner h1,
  .phone-home .banner h2 {
    font-size: clamp(1.85rem, 7.5vw, 2.45rem);
    line-height: 1.12;
    margin-bottom: 14px;
  }

  .phone-home .banner-copy > p:not(.eyebrow) {
    font-size: .9375rem;
    line-height: 1.65;
    margin-bottom: 16px;
  }

  .phone-home .hero-actions {
    gap: 6px 12px;
  }

  .phone-home .hero-actions .button {
    padding-inline: 12px;
    font-size: .875rem;
  }

  .phone-home .hero-secondary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    font-size: .875rem;
  }

  .phone-home .banner-controls {
    position: static;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 0 12px 12px;
  }

  .phone-home .banner-controls button {
    min-height: 44px;
    padding: 4px 2px;
    font-size: .8125rem;
  }

  .phone-category-toggle.phone-category-ready {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 8px 14px;
    border: 1px solid #cfddf0;
    border-radius: 9px;
    background: #f4f8fe;
    color: #194d95;
    font-size: .9375rem;
    font-weight: 800;
  }

  .phone-category-toggle::after {
    content: "+";
    font-size: 1.2rem;
  }

  .phone-category-toggle[aria-expanded="true"]::after {
    content: "−";
  }

  .phone-home .phone-categories-collapsible:not(.phone-categories-open) {
    display: none;
  }

  .phone-home .workshop-picker {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .phone-home .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .phone-home .benefits > div {
    padding: 11px 9px;
  }

  .phone-home .benefits span {
    line-height: 1.45;
  }

  .phone-home .filters {
    gap: 6px;
    margin-block: 16px 18px;
  }

  .phone-home .filters button {
    min-height: 44px;
    padding-inline: 13px;
  }

  .phone-home .card-actions > a {
    min-height: 44px;
    font-size: .875rem;
    padding: 7px 9px;
  }

  .phone-home .card-actions .detail-button,
  .phone-home .card-actions .order-link {
    display: grid;
    place-items: center;
  }

  #pelatihan.training-offer {
    scroll-margin-top: 12px;
  }

  .training-teaser .training-cta,
  .registration-form > .btn,
  .order-page form button[type="submit"] {
    min-height: 48px;
  }

  input:not([type="checkbox"], [type="radio"]),
  select,
  textarea {
    font-size: max(16px, 1rem);
    max-width: 100%;
  }

  body:has(input:not([type="checkbox"], [type="radio"]):focus, select:focus, textarea:focus) .phone-bar {
    visibility: hidden;
  }
}

@media (max-width: 520px) {
  .phone-home .products {
    grid-template-columns: minmax(0, 1fr);
  }

  .phone-home .card {
    display: grid;
    grid-template-columns: minmax(84px, 34%) minmax(0, 1fr);
    align-items: start;
  }

  .phone-home .card-photo-link {
    margin: 9px 0 9px 9px;
    border-radius: 8px;
    aspect-ratio: 1;
  }

  .phone-home .card-photo-link img {
    object-fit: cover;
  }

  .phone-home .madu-card .card-photo-link img,
  .phone-home .card-photo-link img.studio-photo {
    object-fit: contain;
  }

  .phone-home .madu-card-tag {
    top: 5px;
    left: 5px;
    padding: 3px 6px;
  }

  .phone-home .card-body {
    padding: 12px;
  }

  .phone-home .card-body h3 {
    font-size: 1.03rem;
  }

  .phone-home .card-body p {
    font-size: .875rem;
    margin-bottom: 10px;
  }

  .phone-home .card-actions {
    gap: 6px;
  }

  .phone-home .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-offer {
    gap: 18px;
  }

  .training-offer > div:first-child {
    display: contents;
  }

  .training-offer > div:first-child > .training-kicker,
  .training-offer .training-intro,
  .training-offer .training-benefits {
    margin: 0;
  }

  .training-offer h2 {
    font-size: clamp(1.6rem, 6.5vw, 2rem);
  }

  .training-offer .training-price-card {
    grid-row: 3;
  }

  .training-offer .training-price-card {
    padding: clamp(14px, 5vw, 24px);
  }

  .training-offer .training-price {
    font-size: clamp(1.9rem, 8.6vw, 2.5rem);
  }
}
