/* V11D.5: targeted accessibility and mobile refinements. */
/* Keyboard-only focus remains visible without adding rings for mouse clicks. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #b07834 !important;
  outline-offset: 3px;
}
/* Visible only when tabbing, and kept clear of the sticky header. */
.lr-skip-link {
  position: fixed; z-index: 99999; top: 10px; left: 12px;
  padding: 12px 18px; border-radius: 9px; background: #1f4c3a;
  color: white !important; font-weight: 700; text-decoration: underline;
  transform: translateY(-180%); transition: transform .15s ease;
}
.lr-skip-link:focus, .lr-skip-link:focus-visible { transform: translateY(0); }
/* Avoid hidden overflow from long usernames and recipe names. */
:where(.container, .member-body, .lr-builder, .recipe-card-copy, .site-account-panel) {min-width: 0;}
:where(.recipe-card-copy h3, .site-account-name, .lr-builder-recipe, .lr-profile-social a) {overflow-wrap: anywhere;}
/* Friendly click/tap areas, while respecting existing design on desktop. */
@media (pointer: coarse) {
  .menu-toggle, .site-account-menu > summary, .lr-share-control > summary,
  .lr-builder-select-actions button, .lr-builder-footer button,
  .lr-builder-footer .btn, .lr-share-panel > a, .lr-share-panel > button {
    min-height: 44px;
  }
  .lr-builder-recipe {min-height: 65px;}
}
@media (max-width: 640px) {
  /* Prevent iOS Safari's zoom-on-focus; enforce comfortable form fields. */
  .member-body input:not([type="checkbox"]):not([type="radio"]),
  .member-body select, .member-body textarea,
  .lr-builder-fields input, .lr-builder-filter select,
  .lr-social-settings input {font-size: 16px;max-width:100%;box-sizing:border-box;}
  .lr-builder-filter {gap: 10px;}
  .lr-builder-filter select {width:100%;min-width:0;}
  .lr-builder-select-actions {flex-wrap:wrap;}
  .lr-builder-select-heading > *, .lr-builder-footer > * {min-width:0;}
  .lr-share-panel {max-width: min(310px, calc(100vw - 32px));}
  .site-account-panel {max-width: calc(100vw - 24px);}
}
@media (prefers-reduced-motion: reduce) {
  .lr-skip-link, .lr-share-chevron svg {transition: none !important;}
}
