/* [CODEX-B] 27.11 — Dental landing only. Keep the existing desktop hero composition. */
#cases .dc-positions.dental-underlined-nav,
#cabinet .crm-tabs {
  display: grid;
  grid-auto-rows: 1fr;
  align-items: stretch;
}
#cases .dc-positions.dental-underlined-nav button,
#cabinet .crm-tabs button {
  display: grid;
  grid-template-rows: 24px 1fr;
  place-items: center;
  min-width: 0;
  min-height: 70px;
  padding: 8px clamp(5px, 1.15vw, 15px);
  gap: 4px;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
  line-height: 1.22;
}
#cases .dc-positions button > svg,
#cabinet .crm-tabs button > svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#cases .dc-positions button:focus-visible,
#cabinet .crm-tabs button:focus-visible {
  outline: 2px solid var(--action-accent);
  outline-offset: -3px;
}
#cases .dc-positions button[aria-current="true"] { background: #213933; }
#cabinet .crm-tabs button[aria-selected="true"] { background: #dbe9e0; color: #1c5144; }
@media (hover: none), (pointer: coarse) {
  #cases .dc-positions button:not([aria-current="true"]):hover,
  #cabinet .crm-tabs button:not([aria-selected="true"]):hover {
    background: transparent;
    color: inherit;
  }
}

/* The dock draws a small tonal pulse, not a shift of the click target. */
@media (max-width: 950px) and (prefers-reduced-motion: no-preference) {
  body.audit-dock-ready .dental-dock:not(.audit-visible) .dental-dock-audit {
    position: relative;
    animation: none;
  }
  body.audit-dock-ready .dental-dock:not(.audit-visible) .dental-dock-audit:not(:hover,:focus-visible)::after {
    content: "";
    position: absolute;
    inset: 2px;
    border: 2px solid #daf8e7;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    animation: dental-dock-accent 24s ease-out 6s 2;
  }
  @keyframes dental-dock-accent { 0%, 9%, 100% {opacity:0} 4% {opacity:.52} }
}

@media (max-width: 819px) {
  #economics .clinic-economics-photo,
  #contact.lo-audit .lo-audit-photo,
  #main :is(.desk-journey__photo, .journal-photo, .editorial-process__photo, .dc-photo, .dteam-photo, .scene) {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  #economics .clinic-economics-photo { margin-bottom: 18px; }
  #economics .clinic-economics-photo img,
  #contact.lo-audit .lo-audit-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  #economics .clinic-economics-photo img {
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center 51%;
  }
}

@media (max-width: 760px) {
  /* The image is decorative so the visual reorder does not change navigation order. */
  #hero .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
    padding-block: 26px 22px;
  }
  #hero .hero-copy { display: contents; }
  #hero .hero-copy > .dp-crumbs { grid-row: 1; }
  #hero .hero-copy > .kicker { grid-row: 2; }
  #hero .hero-copy > h1 { grid-row: 3; }
  #hero .hero-visual {
    grid-row: 4;
    margin: 12px 0 14px;
    width: 100%;
    border-radius: 15px;
  }
  #hero .chair-scene { mask-image: none; }
  #hero.hero .chair-scene img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    mask-image: none;
    transform: none;
    animation: none;
  }
  #hero .hero-copy > .hero-line { grid-row: 5; }
  #hero .hero-copy > .hero-lead { grid-row: 6; }
  #hero .hero-copy > .actions { grid-row: 7; }
  #hero .hero-copy > .hero-note { grid-row: 8; }
  #hero .actions .dental-action { width: 100%; }
}
@media (min-width: 550px) and (max-width: 760px) {
  #hero.hero .chair-scene img {
    max-height: 345px;
    object-fit: cover;
    object-position: center 57%;
  }
}
