/* The member shell starts with one menu button. Its desktop links mount on wide screens. */
#discovery-desktop-links[hidden],#member-filter-toggle {display:none}
#discovery-desktop-links:not([hidden]) {display:contents}
@media (max-width:760px), (max-width:940px) and (max-height:500px) and (orientation:landscape) {
  body[data-customer],body.account-page {box-sizing:border-box;min-inline-size:0;max-inline-size:100%}
  body[data-customer] :where(#main-content,#board-content,#board-results-layout,.results-panel,.board-list,#board-sidebar,.field-grid,.field,.actions,.result-header,.board-search,.sidebar form,.sitemap-content,.settings-body,.community-body,.discovery-intro,.opening-heading,.opening-term,fieldset),.account-shell .field {min-inline-size:0;max-inline-size:100%;box-sizing:border-box}
  body[data-customer] :where(.views,.community-nav,.result-display,.active-filters,.quick-dates,.header-actions,.card-actions,.actions) {flex-wrap:wrap;white-space:normal;overflow-x:visible}
  body[data-customer] :where(dialog,.card,.operator-card,.sidebar,.settings-body,.board-list,.profile-panel,.member-panel,.sitemap-link) {overflow-wrap:anywhere}
  body[data-customer] :where(.board-list,.results-panel,.opening-heading) > * {min-inline-size:0}
  body[data-customer] :is(#board-mobile-nav,#board-primary-nav,#discovery-desktop-links) {display:none!important}
  body[data-customer] :is(.field select,.field input,.field textarea,.discovery-input input),
  body.account-page :is(input,select,textarea) {font-size:16px;min-inline-size:0;max-inline-size:100%;box-sizing:border-box}
  body[data-customer] .discovery-intro #discovery-search {
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,9rem);gap:8px;align-items:stretch;margin-bottom:0;
  }
  #discovery-search .discovery-input {grid-column:1;min-width:0;width:100%;box-sizing:border-box}
  #discovery-search .discovery-locate {grid-column:2;min-width:0;max-width:100%;white-space:normal;line-height:1.18}
  body[data-customer] #discovery-search :is(.discovery-select,.discovery-sort,.discovery-submit) {grid-column:1/-1;min-width:0;max-width:100%}
  body[data-customer] #discovery-search .discovery-select select {width:100%;min-width:0;max-width:100%}
  body[data-customer]:has(#board-sidebar:not([hidden])) #discovery-search :is(.discovery-select,.discovery-sort,.discovery-submit),
  body[data-customer]:has(#board-sidebar:not([hidden])) #discovery-filter-done {display:none}
  body[data-customer] #member-filter-toggle {
    display:block;width:fit-content;min-height:40px;margin:2px 0 2px auto;padding:5px 4px 5px 12px;border:0;
    background:transparent;color:#9b3b06;cursor:pointer;font:700 .9rem/1.2 "DM Sans",system-ui,sans-serif;
  }
  #member-filter-toggle::after {content:"";display:inline-block;width:.44em;height:.44em;margin-left:.6em;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-.18em) rotate(45deg)}
  #member-filter-toggle[aria-expanded="true"]::after {transform:translateY(.12em) rotate(225deg)}
  #board-sidebar .field-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
  #board-sidebar .field :is(select,input,textarea) {width:100%}
  #board-sidebar .filter-toggle {white-space:normal}
  body[data-customer]:not([data-board-tool]) #results:not(.compared-results) {grid-template-columns:minmax(0,1fr);grid-auto-flow:row;max-width:100%}
  .member-workspace .operator-card :is(.event-name,.opening-city,dd) {overflow-wrap:anywhere}
  body.account-page .top .bar {display:flex;flex-wrap:wrap;gap:6px 12px;justify-content:space-between}
  body.account-page .account-shell,.account-shell .account-card,.account-shell .account-panel {min-width:0;max-width:100%;box-sizing:border-box}
}
