/* The archive is a reading workspace: only its own panes scroll. */
body[data-view="regulations"]{display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden}
body[data-view="regulations"] .topbar{flex:0 0 var(--site-header-height)}
body[data-view="regulations"] .primary-nav{overflow-x:auto;overflow-y:hidden}
body[data-view="regulations"] .brand-product{min-width:0}
body[data-view="regulations"] .brand-product strong{overflow:hidden;text-overflow:ellipsis}
body[data-view="regulations"]{--archive-sidebar-width:190px}
body[data-view="regulations"] .shell{position:relative;flex:1;min-height:0;height:0;overflow:hidden;grid-template-columns:var(--archive-sidebar-width) minmax(0,1fr)}
body[data-view="regulations"] main{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:14px 18px 0}
body[data-view="regulations"] .sidebar{position:static;align-self:stretch;height:100%;min-height:0;overflow:hidden;padding:20px 10px 0}
body[data-view="regulations"] .sidebar-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:18px}
body[data-view="regulations"] .sidebar-label{margin:0 10px 16px}
body[data-view="regulations"] .category{padding:11px 10px}
body[data-view="regulations"] .sidebar-foot{margin:24px 10px 0;padding-top:16px}
body[data-view="regulations"] .sidebar-admin{position:static;bottom:auto;flex:none;z-index:auto;background:transparent;margin:0;padding:10px 8px;border-top:1px solid var(--line)}
body[data-view="regulations"] .sidebar-admin .admin-link{font-size:.875rem}
body[data-view="regulations"] .search-area{flex:none;margin:0 0 12px}
.reader-toolbar{display:flex;align-items:center;gap:10px;min-width:0}
.reader-actions{display:flex;align-items:center;gap:10px;flex:none}
.reader-toolbar .search-box{flex:1;min-width:0;padding:4px 5px 4px 12px;gap:8px}
.reader-toolbar .search-box input{padding:9px 0;font-size:1rem}
.reader-toolbar .search-box button{padding:9px 18px;min-height:40px}
.reader-button{flex:none;min-height:48px;padding:9px 13px;border:1px solid #d5d5e1;border-radius:4px;background:#fff;color:var(--hnu-indigo);font-size:.875rem;white-space:nowrap}
.reader-button:hover{background:#f7f7fb;border-color:var(--hnu-indigo)}
.reader-button[aria-pressed="true"],.reader-button[aria-expanded="true"]{background:#f7edf1;color:var(--hnu-wine);border-color:#d7b9c5}
#search-options{padding:2px 4px 0;max-height:35vh;overflow:auto;overscroll-behavior:contain}
#search-options .filters{margin-top:10px;gap:10px 18px}
#search-options .data-summary{margin:8px 0 2px}
body[data-view="regulations"] .workspace{flex:1;min-height:0;height:0;max-height:none;grid-template-columns:280px minmax(0,1fr);overflow:hidden}
body[data-view="regulations"] .results-pane{display:flex;flex-direction:column;min-height:0;overflow:hidden}
body[data-view="regulations"] .results-header{flex:none;padding:14px 16px}
body[data-view="regulations"] #results{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
body[data-view="regulations"] .result{padding:15px 14px}
body[data-view="regulations"] .detail-pane{position:relative;height:100%;min-height:0;max-height:none;padding:20px 28px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
body[data-view="regulations"] .detail-empty{height:100%;min-height:0}
body[data-view="regulations"] .detail-heading{margin:8px 0 10px}
body[data-view="regulations"] .tabs{margin-top:16px}
body[data-view="regulations"] .version-picker.article-jump{padding:10px 12px;margin:16px 0 20px}
body[data-view="regulations"] .site-footer{flex:none;margin:0;padding:7px 0;font-size:.75rem;line-height:1.5}
body[data-view="regulations"].reader-wide .shell{grid-template-columns:minmax(0,1fr)}
body[data-view="regulations"].reader-sidebar-closed .shell{grid-template-columns:minmax(0,1fr)}
body[data-view="regulations"].reader-sidebar-closed .sidebar{display:none}
body[data-view="regulations"].reader-wide .sidebar,body[data-view="regulations"].reader-wide .results-pane{display:none}
body[data-view="regulations"].reader-wide .workspace{grid-template-columns:minmax(0,1fr)}
@media(min-width:1600px){body[data-view="regulations"] .workspace{grid-template-columns:300px minmax(0,1fr)}body[data-view="regulations"] .detail-pane{padding:22px 36px}}
@media(min-width:851px) and (max-width:1100px){body[data-view="regulations"]{--archive-sidebar-width:174px}body[data-view="regulations"] .workspace{grid-template-columns:240px minmax(0,1fr)}body[data-view="regulations"] .detail-pane{padding:18px 20px}}
@media(max-width:850px){
  body[data-view="regulations"]{--archive-sidebar-width:0px}
  body[data-view="regulations"] .shell{display:flex;flex-direction:column}
  body[data-view="regulations"] .sidebar{flex:none;flex-direction:row;align-items:center;height:auto;padding:8px 12px;border-bottom:1px solid var(--line)}
  body[data-view="regulations"] .sidebar-content{overflow:hidden;padding:0}
  body[data-view="regulations"] #categories{overscroll-behavior:contain}
  body[data-view="regulations"] .sidebar-admin{margin:0 0 0 10px;padding:0 0 0 10px;border-top:0;border-left:1px solid var(--line)}
  body[data-view="regulations"] .admin-link{padding:8px 4px;white-space:nowrap}
  body[data-view="regulations"] main{flex:1;padding:10px 12px 0}
  body[data-view="regulations"] .workspace{grid-template-columns:230px minmax(0,1fr)}
  body[data-view="regulations"] .detail-pane{padding:18px}
  body[data-view="regulations"] .site-footer>span:first-child{display:none}
}
@media(max-width:650px){
  .reader-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
  .reader-toolbar .search-box{grid-column:1;grid-row:1}
  .reader-actions{grid-column:1/-1;grid-row:2;flex-wrap:wrap;gap:8px}
  .reader-toolbar .search-box input{font-size:1rem}
  .reader-button{min-height:40px;padding:7px 12px}
  body[data-view="regulations"] .search-area{margin-bottom:10px}
  body[data-view="regulations"] .workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,180px) minmax(0,1fr)}
  body[data-view="regulations"] .results-pane{border-right:0;border-bottom:1px solid var(--line)}
  body[data-view="regulations"] .results-header{padding:10px 14px}
  body[data-view="regulations"] .detail-pane{padding:16px}
  body[data-view="regulations"].reader-wide .workspace{grid-template-rows:minmax(0,1fr)}
  body[data-view="regulations"] .sidebar{padding:6px 10px}
  body[data-view="regulations"] .sidebar-admin .admin-link{font-size:.8125rem}
  body[data-view="regulations"] .site-footer{padding:5px 0}
  body[data-view="regulations"] .version-picker.article-jump select{min-height:40px}
}
@media print{
  body[data-view="regulations"]{display:block;height:auto;overflow:visible}
  body[data-view="regulations"] .shell,body[data-view="regulations"] main,body[data-view="regulations"] .workspace{display:block;height:auto;min-height:0;overflow:visible;border:0;padding:0}
  body[data-view="regulations"] .sidebar,body[data-view="regulations"] .results-pane,body[data-view="regulations"] .search-area{display:none}
  body[data-view="regulations"] .detail-pane{height:auto;max-height:none;overflow:visible;padding:0;scrollbar-gutter:auto}
}
