/* Branch view only. Loaded after public-components.css and legacy inline styles.
   Uses tenant theme variables; no dashboard impact. */
#page-branches .branch-language-switch {
  width:36px;height:36px;min-width:36px;min-height:36px;padding:0;
  line-height:1;z-index:5;
}
#page-branches .branch-language-switch svg {display:block;width:18px;height:18px;flex:none;}
#page-branches .branch-language-switch:focus-visible {outline:2px solid var(--brand-primary);outline-offset:3px;}
/* The page already includes inline legacy rules; selectors below intentionally
   carry higher specificity than those rules without global !important. */
@media (max-width:600px) {
  #page-branches {padding-bottom:calc(9rem + env(safe-area-inset-bottom));}
  #page-branches > header {padding-inline:20px;}
  #page-branches .branch-section-frame {
    padding:16px 12px 18px;border-radius:22px;
  }
  #page-branches .branches-title {font-size:22px;line-height:1.4;margin-bottom:16px;}
  #page-branches .branch-grid {gap:12px;}
  #page-branches .public-branch-card {border-radius:18px;}
  #page-branches .public-branch-summary {padding:13px 13px;min-height:59px;gap:8px;}
  #page-branches .branch-summary-title {font-size:15px;line-height:1.5;}
  #page-branches .public-branch-badge {font-size:9px;padding:5px 7px;white-space:nowrap;}
  #page-branches .branch-expand-icon {width:29px;height:29px;}
  #page-branches .public-branch-image,
  #page-branches .public-branch-placeholder {height:clamp(145px,42vw,185px);}
  #page-branches .public-branch-body {padding:14px 14px 16px;}
  #page-branches .public-branch-address {font-size:12px;line-height:1.65;margin-bottom:9px;gap:8px;overflow-wrap:anywhere;}
  #page-branches .public-branch-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px;}
  #page-branches .public-branch-actions a {width:100%;min-width:0;min-height:42px;padding:9px 8px;font-size:11px;gap:6px;text-align:center;}
  #page-branches .public-branch-actions svg {width:16px;height:16px;}
  #page-branches .public-branch-actions a:last-child:nth-child(odd) {grid-column:1/-1;}
}
@media (max-width:360px) {
  #page-branches .branch-section-frame {padding:12px 9px 14px;}
  #page-branches .public-branch-summary {padding-inline:10px;}
  #page-branches .public-branch-badge {font-size:8px;padding-inline:6px;}
  #page-branches .public-branch-body {padding:12px;}
}

/* Each available action shares the complete row; wrapped rows fill the card too. */
#page-branches .public-branch-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
#page-branches .public-branch-actions>a{flex:1 1 120px;min-width:0;justify-content:center;text-align:center}
@media(max-width:600px){#page-branches .public-branch-actions>a{width:auto;flex-basis:110px;min-height:42px}}
