/* [CODEX-B] V2 local candidate. Desktop uses the identical 1536×1024 hero and geometry. */
@media(max-width:760px){
  /* The mobile WebP is a direct crop of archive E: x=680–1536, y=90–795. */
  #hero.hero .chair-scene img {
    width: 100%;
    max-height: none;
    height: auto;
    aspect-ratio: 856 / 705;
    object-fit: contain;
  }
  .dl-family #hero .dp-hero-art {
    width: 100%;
    margin-inline: 0;
    border-radius: 14px;
  }
}
/* Icon and first text line share an optical baseline; every cell uses the same left gutter. */
#cases .dc-positions.dental-underlined-nav button,
#cabinet .crm-tabs button {
  grid-template: auto / 20px minmax(0,1fr);
  align-content: center;
  align-items: start;
  justify-items: start;
  padding: 10px clamp(8px,1.4vw,18px);
  gap: clamp(6px,1.15vw,12px);
  min-height: 62px;
  text-align: left;
  white-space: normal;
  hyphens: auto;
}
#cases .dc-positions button > svg,
#cabinet .crm-tabs button > svg {
  width: 20px;
  height: 20px;
}
#cases .dc-positions button > span,
#cabinet .crm-tabs button > span {
  min-width: 0;
  max-width: 100%;
  margin-top: 2px;
}
#cabinet .crm-tabs { container-type: inline-size; }
.dl-family #cabinet .crm-tabs {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  overflow:visible;
}
.dl-family #cabinet .crm-tabs button { white-space:normal; }
.dl-family #cabinet .crm-tabs button:nth-child(n+5) { border-top:1px solid var(--crm-line); }
#cabinet .seo-tab-full { display:none; }
#cabinet .seo-tab-short { display:inline; white-space:nowrap; }
#cabinet .crm-tabs .crm-tab-break { hyphens:none; text-wrap:wrap; }
@container (min-width: 880px) {
  #cabinet .seo-tab-full { display:inline; white-space:nowrap; }
  #cabinet .seo-tab-short { display:none; }
}
@media(max-width:540px){
  #cases .dc-positions.dental-underlined-nav,
  #cabinet .crm-tabs,
  .dl-family #cabinet .crm-tabs {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  #cases .dc-positions button:nth-child(n+3) {
    border-top: 1px solid var(--dc-rule);
  }
  .dl-family #cabinet .crm-tabs button:nth-child(n+3) { border-top:1px solid var(--crm-line); }
}
