/* Preserve core handlers and skins; adapt connected default lists to narrow screens. */
body { min-width: 0; }
.baro-core { padding-block: var(--baro-gap); min-height: 45vh; }
.baro-core #bo_list, .baro-core #bo_gall, .baro-core #bo_v, .baro-core #bo_w,
.baro-core #qa_list, .baro-core #qa_v, .baro-core #qa_w, .baro-core #ctt { width: 100% !important; max-width: 100%; }
.baro-core .tbl_head01 { overflow-x: auto; }
.baro-core img { max-width: 100%; height: auto; }
.baro-core input, .baro-core select, .baro-core textarea { max-width: 100%; }
.baro-core #bo_v_info #bo_v_top { position: static; margin-top: var(--baro-gap); }
.baro-core #bo_v_info #bo_v_top .bo_v_com { float: none; display: flex; justify-content: flex-end; flex-wrap: wrap; }
.baro-core #bo_v_info #bo_v_top .btn { min-width: var(--baro-control); min-height: var(--baro-control); }
.baro-core :is(#bo_list,#bo_gall) .btn_bo_user > li { width: auto; min-width: var(--baro-control); }
.baro-core :is(#bo_list,#bo_gall) .btn_bo_user .btn { display: inline-flex; align-items: center; justify-content: center; min-width: var(--baro-control); min-height: var(--baro-control); }
.baro-core :is(#bo_list,#bo_gall) .bo_sch { left: 50%; transform: translateX(-50%); margin-left: 0; max-width: calc(100% - 2 * var(--baro-gutter)); }
.baro-core :is(#bo_list,#bo_gall) .selec_chk + label { display: inline-flex; align-items: center; min-width: var(--baro-control); min-height: var(--baro-control); }
.baro-core :is(#bo_list,#bo_gall) .selec_chk:focus-visible + label { outline: 3px solid var(--baro-accent); outline-offset: -3px; }
@media (max-width: 900px) {
  .baro-core #bo_gall #gall_ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--baro-board-gap); margin: 0; }
  .baro-core #bo_gall #gall_ul::after { display: none; }
  .baro-core #bo_gall .gall_li { float: none; clear: none; width: auto; min-width: 0; padding: 0; margin: 0; }
  .baro-core #bo_gall .gall_img { height: auto !important; max-height: none !important; aspect-ratio: var(--baro-gallery-ratio); }
  .baro-core #bo_gall .gall_img > a { height: 100%; }
  .baro-core #bo_gall .gall_img picture { display: block; width: 100%; height: 100%; }
  .baro-core #bo_gall .gall_img img { width: 100%; height: 100% !important; object-fit: cover; }
  .baro-core #bo_gall .gall_text_href { overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .baro-core .mbskin, .baro-core #mb_login { width: 100%; max-width: 100%; margin-inline: 0; }
  .baro-core #bo_gall #gall_ul { grid-template-columns: minmax(0,1fr); }
  /* A scrollable native table remains usable if JavaScript is unavailable. */
  .baro-core #bo_list table:not(.baro-board-responsive) { min-width: var(--baro-board-mobile-table); }
  .baro-core #bo_list .baro-board-responsive { display: block; }
  .baro-core #bo_list .baro-board-responsive :is(thead,tbody) { display: block; }
  .baro-core #bo_list .baro-board-responsive thead tr { display: flex; flex-wrap: wrap; gap: var(--baro-board-gap); padding-block: var(--baro-board-gap); }
  .baro-core #bo_list .baro-board-responsive thead th { display: block; width: auto; padding: 0; border: 0; font-size: var(--baro-small); }
  .baro-core #bo_list .baro-board-responsive thead th:not(:has(a,input)) { display: none; }
  .baro-core #bo_list .baro-board-responsive thead a { display: inline-flex; align-items: center; min-height: var(--baro-control); }
  .baro-core #bo_list .baro-board-responsive tbody tr { display: flex; flex-wrap: wrap; gap: var(--baro-board-gap); padding-block: var(--baro-board-gap); border: 0; border-bottom: 1px solid var(--baro-line); }
  .baro-core #bo_list .baro-board-responsive tbody td { display: block; width: auto; min-width: 0; max-width: 100%; height: auto; padding: 0; border: 0; background: transparent; text-align: left; overflow-wrap: anywhere; font-size: var(--baro-small); }
  .baro-core #bo_list .baro-board-responsive .td_subject { flex-basis: 100%; order: -1; font-size: var(--baro-body); }
  .baro-core #bo_list .baro-board-responsive td[data-baro-label]::before { content: attr(data-baro-label) " "; color: var(--baro-muted); font-size: var(--baro-board-label); }
  .baro-core #bo_list .baro-board-responsive .td_chk { min-width: var(--baro-control); min-height: var(--baro-control); }
  .baro-core #bo_list .baro-board-responsive .empty_table { width: 100%; padding-block: var(--baro-gap); }
  .baro-core #bo_list .tbl_head01:focus-visible { outline: 3px solid var(--baro-accent); outline-offset: 3px; }
}
