/* Related-links page only; keep the results column measurable in table layout. */
#page-index-m.page-website-index #websitelist { width:auto; min-width:0; max-width:100%; overflow-x:auto; }
#page-index-m.page-website-index .website-results-layout { width:100%; table-layout:fixed; }
#page-index-m.page-website-index .website-results-layout > tbody > tr > td:first-child { width:180px; }
#page-index-m.page-website-index .website-results-layout .class-box { width:100%; box-sizing:border-box; }
#page-index-m.page-website-index #website-filter-panel .ul-model { margin:4px 0; padding:0; }
#page-index-m.page-website-index #website-filter-panel .ul-model li { display:flex; align-items:flex-start; gap:6px; padding:4px 0; line-height:1.4; }
#page-index-m.page-website-index #website-filter-panel input[type=checkbox] { position:static; flex:0 0 20px; width:20px; height:20px !important; min-height:0 !important; margin:2px 0 0 !important; }
#page-index-m.page-website-index #DT :is(th,td):first-child { white-space:nowrap; overflow-wrap:normal; }
#website-filter-dialog:not([open]), #website-filter-toggle[hidden] { display:none !important; }
#website-filter-dialog { box-sizing:border-box; }
#page-index-m.page-website-index .website-controls { display:flex; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
#page-index-m.page-website-index .website-search-row { display:flex; gap:6px; flex:1; max-width:600px; }
#page-index-m.page-website-index .website-search-row #q { width:100%; min-width:0; flex:1; }
#page-index-m.page-website-index .website-search-actions { display:flex; gap:6px; }
#page-index-m.page-website-index #website-sort-panel { display:flex; justify-content:flex-end; align-items:center; gap:6px; flex-wrap:wrap; margin:8px 0; }
#page-index-m.page-website-index .website-sort-apply { font:inherit; }
@media (max-width:768px) {
 #page-index-m.page-website-index .rwd-layout > tbody > tr > td:first-child { display:none; }
 #page-index-m.page-website-index .rwd-section-title + br { display:none; }
 #page-index-m.page-website-index .rwd-layout > tbody > tr > td { padding:4px 0; }
 #page-index-m.page-website-index .website-controls { display:block; }
 #page-index-m.page-website-index .website-search-actions { margin-top:4px; justify-content:flex-end; }
 #page-index-m.page-website-index .website-controls input { margin:0; padding:4px 10px; font-size:16px; min-height:44px; }
 #page-index-m.page-website-index .website-search-actions input { flex:1; }
 #page-index-m.page-website-index .website-results-layout { margin-top:8px !important; }
 #page-index-m.page-website-index.website-filters-ready .website-results-layout > tbody > tr > td:first-child { padding:0; }
 #page-index-m.page-website-index .website-results-layout > tbody > tr > td:first-child { width:100%; }
 /* Homepage-style grey edge tab: no extra row in the content flow. */
 #page-index-m.page-website-index #website-filter-toggle {
  position:fixed; left:0; top:42%; z-index:30; display:flex; flex-direction:column; align-items:center; gap:4px;
  width:44px; min-height:44px; margin:0; padding:8px 4px; background:#676767; color:#fff;
  border:0; border-radius:0 6px 6px 0; box-shadow:2px 0 6px rgba(0,0,0,.3); cursor:grab;
  touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none;
 }
 #page-index-m.page-website-index #website-filter-toggle.is-dragging { cursor:grabbing; background:#454545; }
 #website-filter-toggle span:last-child { writing-mode:vertical-rl; white-space:nowrap; font-size:15px; line-height:1.2; }
 #page-index-m.page-website-index #website-filter-dialog {
  position:fixed; inset:0 auto 0 0; margin:0; width:min(88vw,360px); max-width:100%;
  height:100%; height:100dvh; max-height:100%; border:0; padding:16px;
  overflow-y:auto; overscroll-behavior:contain; background:#fff; color:#222;
 }
 #website-filter-dialog::backdrop { background:rgba(0,0,0,.45); }
 #website-filter-dialog .website-filter-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
 #website-filter-dialog h2 { font-size:18px; margin:0; }
 #website-filter-close { border:0; border-radius:6px; background:#676767; color:#fff; padding:6px 10px; flex-shrink:0; }
 #page-index-m.page-website-index #website-sort-panel { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin:10px 0; }
 #website-sort-panel .website-sort-label, #website-sort-panel .website-sort-apply { grid-column:1 / -1; }
 #page-index-m.page-website-index #website-sort-panel select { width:100%; min-width:0; }
 #page-index-m.page-website-index #website-filter-dialog .class-box { margin:4px 0; padding:4px 8px; }
 #page-index-m.page-website-index #website-filter-dialog .ul-model { margin:4px 0; padding:0; }
 #page-index-m.page-website-index #website-filter-dialog .ul-model li { min-height:32px; padding-top:4px; padding-bottom:4px; }
 #page-index-m.page-website-index #website-filter-dialog button { min-height:44px; }
 #website-filter-dialog :focus-visible, #website-filter-toggle:focus-visible { outline:3px solid #075fa5; outline-offset:2px; }
}
