/* Bounded overrides for shared layouts; theme colors and published customizations survive. */
.commission-policy-form { display: grid; gap: 1rem; }
.commission-project-name { font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; }
.commission-policy-history { margin-block-start: 1.5rem; }
.commission-policy-history p { padding-block: .75rem; border-block-end: 1px solid var(--border, #ccd3dd); overflow-wrap: anywhere; }
.commission-policy-history summary { cursor: pointer; padding-block: .65rem; font-weight: 700; }
:where(button, a, input, select, textarea):focus-visible { outline: 3px solid var(--primary, #315eb8); outline-offset: 3px; }
/* Keep the existing language control reachable when the compact header is used. */
@media (max-width: 900px) {
  body[data-page="store"] .lux-topline { display: flex; gap: .75rem; }
  body[data-page="store"] .lux-topline > span:first-child { min-width: 0; overflow: hidden; }
  body[data-page="store"] .lux-topline > span:nth-child(2) { display: none; }
  body[data-page="store"] .lux-topline [data-language] { flex-shrink: 0; min-height: 44px; padding-inline: .75rem; font-size: 12px; }
}
@media (max-width: 600px) {
  body[data-page="store"] .v6-site-nav { display: none; }
  body[data-page="store"] .x-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .x-contact-line { overflow-wrap: anywhere; }
  .v7-public-header { flex-wrap: wrap; gap: 1rem; }
  .v7-public-tools { flex-wrap: wrap; gap: .5rem; }
  .v7-public-brand { min-width: 0; max-width: 100%; }
  .v7-public-brand strong { overflow-wrap: anywhere; }
  .v7-person-card, .v7-service-card, .v7-food-body { min-width: 0; }
  .v7-person-card h3, .v7-service-card h3, .v7-food-body h3 { overflow-wrap: anywhere; line-height: 1.6; }
  .modal-overlay { padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
  .modal { width: 100%; min-width: 0; max-width: 100%; max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain; }
  .modal-head { gap: .5rem; }
  .modal-head h2 { min-width: 0; overflow-wrap: anywhere; }
  .modal-body { min-width: 0; }
  .modal :where(input, select, textarea) { max-width: 100%; min-width: 0; font-size: 16px; }
  .button-row, .form-actions, .hub-project-links, .c9-project footer { flex-wrap: wrap; gap: .5rem; }
  .button-row > .btn, .form-actions > .btn { flex: 1 1 auto; white-space: normal; min-height: 44px; }
  .commission-policy-form .form-actions { display: flex; }
  .commission-policy-form .check-label { align-items: flex-start; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal, .store-product, .v7-menu-card { animation: none !important; transition: none !important; }
}
