/* Scoped news categories, using the homepage's grey edge-tab presentation. */
#page-index-m.page-website-latestnews .news-category-layout { width:100%; }
#page-index-m.page-website-latestnews .news-category-layout > tbody > tr > td:last-child { width:auto; }
#page-index-m.page-website-latestnews .news-category-home { position:sticky; top:15px; }
#page-index-m.page-website-latestnews .news-category-cell { width:var(--news-category-width) !important; }
#page-index-m.page-website-latestnews .news-category-home #newsClassPanel { width:100%; position:static; }
#page-index-m.page-website-latestnews #newsClassPanel[hidden] { display:none; }
#news-category-collapse, #news-category-close { border:0; border-radius:5px; background:#676767; color:#fff; padding:7px 10px; cursor:pointer; font:15px/1.4 sans-serif; }
#news-category-collapse { width:100%; margin-bottom:4px; min-height:32px; }
#page-index-m.page-website-latestnews .news-category-cell.news-category-collapsed { width:44px !important; }
.news-category-collapsed #news-category-collapse { writing-mode:vertical-rl; width:36px; padding:10px 7px; }
#news-category-toggle[hidden] { display:none !important; }
#news-category-toggle { display:none; }
#news-category-dialog { position:fixed; inset:0 auto 0 0; margin:0; width:min(88vw,320px); box-sizing:border-box; max-width:100%; height:100%; height:100dvh; max-height:100%; padding:16px; border:0; overflow-y:auto; overscroll-behavior:contain; background:#fff; color:#222; }
#news-category-dialog:not([open]) { display:none; }
#news-category-dialog::backdrop { background:rgba(0,0,0,.45); }
.news-category-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
#news-category-title { font-size:18px; margin:0; }
#news-category-close { flex-shrink:0; min-height:44px; }
#news-category-dialog #newsClassPanel { position:static !important; width:100% !important; }
#news-category-dialog #table32 a { display:inline-block; min-height:32px; line-height:32px; }
#news-category-dialog table { width:100%; max-width:100%; box-sizing:border-box; overflow-wrap:anywhere; }
#news-category-toggle:focus-visible, #news-category-collapse:focus-visible, #news-category-dialog :focus-visible { outline:3px solid #075fa5; outline-offset:2px; }
@media (max-width:768px) {
 #page-index-m.news-categories-ready .news-category-cell, #page-index-m.news-categories-ready .news-category-gap { display:none !important; }
 #page-index-m #news-category-toggle {
  position:fixed; left:0; top:8px; z-index:30; display:flex; flex-direction:column; align-items:center; gap:8px;
  width:36px; min-height:44px; padding:10px 5px; box-sizing:border-box; border:0; border-radius:0 6px 6px 0;
  background:#676767; color:#fff; box-shadow:2px 0 6px rgba(0,0,0,.3); font:15px/1.4 sans-serif;
  touch-action:none; user-select:none; -webkit-user-select:none; cursor:grab;
 }
 #news-category-toggle .news-category-label { writing-mode:vertical-rl; white-space:nowrap; }
 #news-category-toggle .news-category-drag { font-size:20px; line-height:1; }
 #page-index-m #news-category-toggle.is-dragging { background:#454545; cursor:grabbing; }
}
