/* Mobile audit fixes (v2.9.11) */
:root{--d3-teal-d:#087a74}
html{scroll-padding-top:84px}

/* Home portal section: the grid track grew to the mock's min-content and the section clipped it */
@media(max-width:860px){.d3-feature{grid-template-columns:minmax(0,1fr)}.d3-feature>*{min-width:0}}

/* Footer store badges: a 220px flex-basis became a 220px height inside the column layout */
.d3-footer .d3-store-row .d3-appstore-badge,.d3-footer .d3-store-row .d3-apk-btn{flex:0 0 auto}

/* Drawer brand: wrap instead of clipping the last word */
#d3-nav .d3-nav__brand a{min-width:0;max-width:100%}
#d3-nav .d3-nav__brand span{min-width:0;max-width:100%!important;white-space:normal;line-height:1.2}

/* Fake login card on /management/ is a picture, not a form */
.d3-login__field{display:block;box-sizing:border-box;width:100%;padding:13px 16px;margin-top:12px;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#9fb3cf;font-size:.95rem;text-align:left}

@media(max-width:640px){
  /* WhatsApp launcher: icon only, below the menu drawer, and room for the footer text it used to hide */
  .qlwapp__container{z-index:900!important}
  .qlwapp__text{display:none!important}
  .qlwapp__button{min-width:52px;min-height:52px;padding:0!important;border-radius:50%!important;justify-content:center}
  .d3-footer{padding-bottom:84px}
  /* Corner promo popup: slimmer, sits above the launcher */
  .d3-dma-pop{bottom:76px;padding:14px 16px 12px}
  .d3-dma-pop small{display:none}
  .d3-dma-pop__x{padding:10px 14px;font-size:28px}
  /* Management mock cards and navigation grid */
  .d3-mgmt-ui-card{overflow-x:auto}
  .d3-mgmt-nav-grid{grid-template-columns:1fr!important}
  /* Tap targets */
  .d3-footer a{padding:11px 0}
  .d3-readmore{display:inline-block;padding:10px 4px}
  .d3-post__cat{padding:10px 12px;font-size:.75rem}
  .d3-bl-chip{padding:11px 16px}
  .d3-bl-chip small{margin-inline-start:6px}
  .d3-toc__toggle{width:100%;min-height:48px;padding:14px 0}
  #d3-og-toggle,.d3-og-nav a{min-height:44px}
  .d3-searchform input[type=search],.d3-searchform button{min-height:44px}
}
@media(max-width:980px){
  .d3-mlang__btn{min-height:44px}
  .d3-mlang__menu{width:224px;gap:8px}
  .d3-mlang__item{width:44px;height:44px}
  .d3-crumbs a{display:inline-block;padding:12px 6px;margin:-12px -6px}
}

/* Contrast */
.d3-tscroll-hint,.d3-logos span{color:#5e6e86}
.d3-portal .d3-mark-list li{color:#b9cbe6}
.d3-bl-chip.is-active{color:#0b1220}
.d3-bl-card__cat{color:var(--d3-teal-d)}

/* Service pages: the in-article icon was stretched to a square */
.d3-guide>img{width:auto!important;height:72px!important;max-width:100%;object-fit:contain}

/* Japanese: break between phrases, not inside words */
html[lang=ja] :is(h1,h2,h3,p,li){word-break:auto-phrase;line-break:strict}
html[lang=ja] :is(h1,h2){text-wrap:balance}

/* Cards without a featured image: show the brand mark instead of a blank gradient */
.d3-bl-card__img,.d3-404-card__img{display:flex;align-items:center;justify-content:center}
.d3-bl-card__img img.d3-ph,.d3-404-card__img img.d3-ph{width:44px;height:44px;opacity:.9;object-fit:contain}

/* Accordion questions are keyboard-reachable now */
.d3-acc__q:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid #087a74;outline-offset:2px}

/* The footer badge collapsed to 0 width, so its lazy image never loaded: give the badge a floor and load the image at once (v2.9.12) */
.d3-store-row .d3-appstore-badge{min-width:110px}

/* Promo banner: several lines render as a list */
.d3-promo-banner__list{margin:0 0 14px;padding-inline-start:18px;font-size:.92rem;line-height:1.5}
.d3-promo-banner__list li{margin:0 0 8px}
