
:root{--blue:#0000ff;--teal:#68aeb9;--border:#000099;--chapter:#eaf6ef;--article:#cbdde3;--text:#595959;}
*{box-sizing:border-box} body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#333;background:#fff}.topbar{background:#f7f7f7;border-bottom:3px solid #1b2e59}.topnav{max-width:1265px;margin:0 auto;display:flex;gap:0;align-items:stretch}.topnav a,.dropbtn{display:block;padding:14px 18px;color:#1f3f7a;text-decoration:none;font-weight:700;background:transparent;border:0;font:inherit;cursor:pointer}.topnav a:hover,.dropdown:hover .dropbtn{background:#e8eef8}.dropdown{position:relative}.dropdown-content{display:none;position:absolute;z-index:20;min-width:270px;background:white;border:1px solid #b7c1cf;box-shadow:0 6px 16px rgba(0,0,0,.18)}.dropdown:hover .dropdown-content{display:block}.dropdown-content a{font-weight:400;color:#244;white-space:nowrap;padding:10px 14px}.page{max-width:1265px;margin:22px auto;padding:0 14px}.intro{text-align:center;margin-bottom:18px}.intro h1{font-size:26px;margin:0 0 8px;color:#2c5393}.intro p{margin:5px 0}.legend{font-size:14px;color:#555}.viewer-layout{display:grid;grid-template-columns:minmax(420px,1fr);gap:18px}.cid-table{border-left:3px solid var(--border);border-right:3px solid var(--border);border-bottom:1px solid var(--border);font-size:18px;line-height:1.22}.cid-row{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--border);min-height:34px;background:#d9e8eb}.cid-row.item:nth-child(odd){background:#e6f0f2}.cid-cell{padding:3px 14px 4px 0;display:flex;gap:18px;align-items:baseline;min-width:0}.cid-cell.empty{visibility:hidden}.secnum{min-width:54px;color:var(--teal);text-decoration:none;flex:0 0 auto}.secnum:hover{text-decoration:underline}.title{color:var(--text);overflow-wrap:anywhere}.chapter,.article{grid-column:1/-1;text-align:center;font-weight:700;color:#3b86ad;background:var(--chapter);border-top:2px solid var(--border);padding:12px 10px}.article{color:#4d64ce;background:var(--article);border-top:1px solid var(--border);padding:10px}.chapter:first-child{border-top:3px solid var(--border)}.article-panel{display:none;border:3px solid #5f6f82;padding:18px;background:#fff}.article-panel.active{display:block}.article-panel h2{margin-top:0;color:#1f3f7a}.article-actions{display:flex;gap:10px;margin-bottom:12px;flex-wrap:wrap}.button{border:1px solid #9aa6b5;border-radius:4px;padding:7px 10px;text-decoration:none;color:#1f3f7a;background:#f7f9fc}.article-frame{width:100%;height:760px;border:1px solid #b7c1cf;background:white}.note{font-size:14px;color:#666;margin-top:10px}.statute-box{border:3px solid #5f6f82;padding:22px 26px;margin:24px auto;max-width:1250px;font-family:Arial,Helvetica,sans-serif;color:blue;font-size:20px;line-height:1.34}.statute-box h1{font-size:23px;color:blue;margin:0 0 24px}.statute-box p{margin-top:0;margin-bottom:22px}.statute-box a{color:#68aeb9;text-decoration:none}.level-a{margin-left:0}.level-1{margin-left:38px}.level-A{margin-left:68px}.level-i{margin-left:98px}@media (min-width:1100px){.viewer-layout.with-panel{grid-template-columns:minmax(540px,48%) minmax(480px,52%)}.viewer-layout.with-panel .article-panel{display:block;position:sticky;top:10px;height:max-content}.viewer-layout.with-panel .article-frame{height:78vh}}@media (max-width:760px){.topnav{overflow-x:auto}.cid-table{font-size:18px}.cid-row{grid-template-columns:1fr}.cid-cell{padding-left:10px}.chapter,.article{font-size:20px}.secnum{min-width:48px}.page{padding:0 8px}.statute-box{font-size:19px;padding:16px}.level-1{margin-left:24px}.level-A{margin-left:42px}.level-i{margin-left:60px}}

.ds-article-nav{max-width:1250px;margin:20px auto 0;padding:12px 16px;border:1px solid #9aa6b5;background:#f7fbff;color:#294a78;font-size:14px;line-height:1.45}.ds-article-nav a{color:#68aeb9;text-decoration:none;margin:0 4px}.ds-article-nav a.current{color:#0000ff;font-weight:700}.ds-article-nav a:hover{text-decoration:underline}.statute-meta{max-width:1250px;margin:0 auto 24px;color:#555;font-size:16px}.statute-meta p{margin:6px 0}.note-separator{color:#0000ff;margin:22px 0}.topnav .navlink{font-weight:700}.statute-page{padding:1px 14px 30px}


/* v3 site chrome and article controls */
.site-header{background:#fff}.logo-strip{max-width:1265px;margin:0 auto;padding:18px 14px 12px}.top-logo-strip{min-height:96px;display:flex;align-items:center}.site-logo{display:block;max-width:520px;width:100%;height:auto}.logo-link{text-decoration:none;display:inline-block}.topbar{background:#f8f8f8;border-top:1px solid #d5dbe4;border-bottom:4px solid #1b2e59}.topnav{justify-content:center;min-height:54px}.topnav a,.dropbtn{font-weight:500;font-size:16px;color:#142b65;padding:18px 24px}.dropdown-content .mobile-back{display:none}.dropdown-content .menu-label{display:block;padding:10px 14px 5px;color:#5f6f82;font-weight:700}.article-toolbar{max-width:1250px;margin:24px auto 8px;padding:0 14px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.utility-button{display:inline-block;border:1px solid #8ca0b8;border-radius:4px;background:#eef4fb;color:#1f3f7a;text-decoration:none;padding:8px 14px;font-size:16px;line-height:1.2}.utility-button.primary{background:#d9e8eb;border-color:#5f6f82;font-weight:700}.utility-button:hover{text-decoration:underline;background:#fff}.ds-article-nav{margin-top:10px;background:#eef6f8;border:2px solid #5f6f82}.site-footer{border-top:4px solid #1b2e59;margin-top:40px;background:#f8f8f8;color:#31435b;text-align:center}.bottom-logo-strip{padding-top:18px;padding-bottom:6px}.footer-logo{max-width:430px;width:90%;height:auto}.footer-info{font-size:14px;line-height:1.45;padding:6px 14px 22px}.footer-info p{margin:5px 0}.footer-info a{color:#1f3f7a;text-decoration:none}.footer-info a:hover{text-decoration:underline}.statute-box{background:#fff}.statute-meta{border-top:1px solid #c6d0dc;padding-top:16px}.cid-table{box-shadow:0 0 0 1px rgba(0,0,153,.08)}@media (max-width:760px){.top-logo-strip{text-align:center;justify-content:center}.site-logo{max-width:420px}.topnav{justify-content:flex-start}.topnav a,.dropbtn{font-size:15px;padding:14px 16px}.article-toolbar{margin-top:16px}.utility-button{font-size:15px}}


/* v4 refinements */
.cid-table{font-size:18px;line-height:1.22;}
.cid-row{min-height:29px;}
.cid-cell{padding-top:2px;padding-bottom:2px;gap:14px;}
.secnum{min-width:52px;}
.chapter{padding:9px 10px;font-size:20px;}
.article{padding:8px 10px;font-size:20px;}
.intro h1{font-size:25px;}
.statute-page{padding:1px 14px 20px;}
.statute-box{font-size:20px;line-height:1.34;margin:18px auto 12px;padding:20px 26px;}
.statute-box h1{font-size:23px;margin-bottom:22px;}
.statute-box p{margin-bottom:18px;}
.statute-meta{max-width:1250px;margin:12px auto 24px;color:#00506b;font-size:18px;line-height:1.5;border-top:1px solid #c6d0dc;padding-top:12px;}
.statute-meta p{margin:5px 0;}
.statute-meta .referenced{font-style:italic;color:#004c37;background:linear-gradient(90deg,#f5ffff 0%,#e9fbff 100%);padding:2px 0;}
.statute-meta .label{color:#004c37;}
.statute-meta a{color:#68aeb9;text-decoration:none;}
.statute-meta a:hover{text-decoration:underline;}
.site-footer{margin-top:24px;}
.footer-info{font-size:15px;}
.article-panel,.viewer-layout.with-panel{display:none!important;}
@media (max-width:760px){.cid-table{font-size:16px}.chapter,.article{font-size:18px}.statute-box{font-size:18px}.statute-meta{font-size:16px}}

/* v5 folder cleanup + compact footer */
.site-footer.compact-footer{
  margin-top:18px;
  border-top:0;
  background:transparent;
  color:#fff;
  text-align:left;
}
.footer-bar{
  max-width:1265px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  align-items:center;
  gap:10px;
  background:#3d7f9c;
  color:#fff;
  padding:10px 14px;
  font-size:16px;
  font-weight:700;
}
.footer-bar a{color:#fff;text-decoration:none;}
.footer-bar a:hover{text-decoration:underline;}
.footer-copy{text-align:center;}
.footer-top{text-align:right;}
.footer-info.compact{
  max-width:1265px;
  margin:0 auto;
  color:#334;
  background:#f5f8fa;
  padding:7px 14px 9px;
  font-size:13px;
  line-height:1.35;
  text-align:center;
}
.footer-info.compact span{display:inline-block;margin:0 10px 2px;}
.footer-info.compact a{color:#1f3f7a;text-decoration:none;}
.footer-info.compact a:hover{text-decoration:underline;}
@media (max-width:760px){
  .footer-bar{grid-template-columns:1fr;gap:4px;text-align:center;}
  .footer-copy,.footer-top{text-align:center;}
  .footer-info.compact span{display:block;margin:2px 0;}
}

/* v6: functional statute metadata + smaller footer */
.statute-meta{
  margin:12px auto 0;
  max-width:1250px;
  font-size:18px;
  line-height:1.45;
  color:#075568;
}
.statute-meta p{margin:6px 0;}
.statute-meta .referenced{
  background:#eaf8fb;
  font-style:italic;
  color:#064a2f;
  padding:1px 0;
}
.statute-meta .label{font-weight:400;color:inherit;}
.statute-meta a{color:#5dabb8;text-decoration:none;}
.statute-meta a:hover{text-decoration:underline;}
.site-footer.compact-footer{margin-top:14px;border-top:0;}
.footer-bar.no-brand{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  background:#3c7d99;
  color:#fff;
  padding:8px 14px;
  font-size:18px;
  font-weight:700;
}
.footer-bar.no-brand .footer-copy{text-align:center;justify-self:center;}
.footer-bar.no-brand .footer-top{text-align:right;justify-self:end;}
.footer-info.compact{
  padding:6px 14px 8px;
  font-size:14px;
  line-height:1.35;
}
.footer-info.compact span{margin:0 9px 2px;}
@media (max-width:760px){
  .statute-meta{font-size:16px;}
  .footer-bar.no-brand{grid-template-columns:1fr;font-size:16px;gap:3px;}
  .footer-bar.no-brand .footer-copy,.footer-bar.no-brand .footer-top{justify-self:center;text-align:center;}
}

/* v8: fuller multi-level top menu and cleaner logo strip */
.logo-strip.top-logo-strip{
  max-width:1265px;
  min-height:112px;
  padding:22px 24px 14px;
  display:flex;
  align-items:center;
}
.site-logo{max-width:360px;width:360px;height:auto;}
.topbar{display:none;}
.main-menu{background:#3c7d99;border-bottom:3px solid #1b2e59;}
.main-menu-inner{max-width:1265px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;min-height:74px;padding:0 28px;}
.menu-root,.submenu{list-style:none;margin:0;padding:0;}
.menu-root{display:flex;align-items:stretch;gap:0;}
.menu-root>li{position:relative;}
.menu-root a{display:block;color:#fff;text-decoration:none;font-size:16px;line-height:1.18;padding:15px 14px;white-space:normal;}
.menu-root>li>a{font-weight:500;padding:27px 14px 25px;white-space:nowrap;}
.menu-root li:hover>a,.menu-root li:focus-within>a{background:rgba(0,0,0,.12);}
.chev{font-size:18px;color:#d9f2f7;}
.arrow{float:right;color:#fff4a0;font-size:22px;line-height:.7;margin-left:20px;}
.submenu{display:none;position:absolute;top:100%;left:0;z-index:1000;min-width:245px;background:#3c7d99;border:1px solid rgba(255,255,255,.18);box-shadow:0 8px 18px rgba(0,0,0,.25);}
.has-sub:hover>.submenu,.has-sub:focus-within>.submenu{display:block;}
.submenu li{position:relative;border-bottom:1px solid rgba(255,255,255,.16);}
.submenu li:last-child{border-bottom:0;}
.submenu a{padding:12px 14px;color:#fff;background:#3c7d99;}
.submenu a:hover{background:#346f88;}
.submenu.flyout{top:0;left:100%;max-height:76vh;overflow-y:auto;}
.submenu .submenu.flyout{min-width:270px;}
.nav-logo{display:block;margin-left:20px;color:#fff4a0;text-decoration:none;text-transform:uppercase;letter-spacing:1px;font-size:14px;font-weight:700;border:1px solid rgba(255,244,160,.35);padding:8px 12px;white-space:nowrap;}
.nav-logo:hover{background:rgba(0,0,0,.12);}
.nav-logo span{color:#fff4a0;}
@media (max-width:900px){
  .main-menu-inner{align-items:stretch;padding:0;display:block;}
  .menu-root{display:block;}
  .menu-root>li>a{padding:13px 16px;}
  .submenu,.submenu.flyout{position:static;box-shadow:none;border-left:0;border-right:0;max-height:none;}
  .submenu a{padding-left:28px;}
  .submenu.flyout a{padding-left:42px;}
  .nav-logo{display:none;}
}

/* v9: click-to-open multi-level menus */
.main-menu .has-sub.open > .submenu { display:block; }
.main-menu .has-sub.open > a { background:rgba(0,0,0,.14); }
.menu-root a { cursor:pointer; }
.submenu { overflow:visible; }
.submenu.flyout { overflow-y:visible; }
@media (hover:hover) and (pointer:fine){
  .main-menu .has-sub:hover > .submenu { display:block; }
}
@media (max-width:900px){
  .main-menu .has-sub.open > .submenu { display:block; }
  .main-menu .has-sub:not(.open) > .submenu { display:none; }
}


/* v14: statute notes before metadata */
.statute-note{
  max-width:1250px;
  margin:14px auto 8px;
  background:#eefbf3;
  color:#1a3f32;
  font-style:italic;
  font-size:18px;
  line-height:1.28;
  padding:5px 8px;
  border-top:1px solid #d6eadf;
  border-bottom:1px solid #d6eadf;
}
.statute-note p{margin:0;}
@media (max-width:760px){.statute-note{font-size:16px;}}


/* v16: Joomla statute import formatting */
.db-article{max-width:1265px;margin:0 auto;padding:1px 14px 24px;}
.db-article a{color:#68aeb9;text-decoration:none;}
.db-article a:hover{text-decoration:underline;}
.db-article .bordered-container{border:3px solid #5f6f82;padding:20px 26px;margin:20px auto 12px;background:#fff;color:#0000ff;font-size:20px;line-height:1.34;}
.db-article .bordered-container p{margin-top:0;margin-bottom:18px;}
.db-article .stat_heading{font-weight:700;font-size:23px;color:#0000ff;margin-bottom:24px;}
.db-article .statute{color:#0000ff;font-size:20px;line-height:1.35;}
.db-article .stat_indent,.db-article .statute-indent{color:#0000ff;font-size:20px;line-height:1.35;margin-left:38px;}
.db-article .stat_indent2,.db-article .statute-indent2{color:#0000ff;font-size:20px;line-height:1.35;margin-left:68px;}
.db-article .stat_indent3{color:#0000ff;font-size:20px;line-height:1.35;margin-left:98px;}
.db-article .stat_indent-2{color:#0000ff;font-size:20px;line-height:1.35;margin-left:0;}
.db-article .stat_term{font-weight:700;color:#0000ff;}
.db-article hr{border:0;border-top:1px solid #c6d0dc;margin:14px 0;}
.db-article .stat_notes2{max-width:1250px;background:#eefbf3;color:#1a3f32;font-style:italic;font-size:18px;line-height:1.28;padding:5px 8px;margin:8px auto;border-top:1px solid #d6eadf;border-bottom:1px solid #d6eadf;}
.db-article .stat_referenced{background:#eaf8fb;font-style:italic;color:#064a2f;padding:2px 0;margin:6px 0;font-size:18px;line-height:1.4;}
.db-article .stat_notes{color:#075568;font-size:18px;line-height:1.4;margin:6px 0;}
.db-article table{border-collapse:collapse;max-width:100%;}
.db-article td,.db-article th{vertical-align:top;}
.db-article .legacy-index-table{width:100%;}
.db-article .CID_Table{font-size:18px;line-height:1.25;padding:3px 8px;color:#595959;background:#d9e8eb;}
.db-article .CID_Table a{color:#68aeb9;font-weight:400;}
.db-article .chapters{font-size:20px;line-height:1.35;text-align:center;font-weight:700;color:#3b86ad;background:#eaf6ef;border-top:3px solid #000099;border-bottom:2px solid #000099;padding:10px;}
.db-article .articles{font-size:20px;line-height:1.35;text-align:center;font-weight:700;color:#4d64ce;background:#cbdde3;border-top:1px solid #000099;border-bottom:1px solid #000099;padding:8px;}
.db-article .cyan{color:#00a0a0;}
.db-article .red{color:#cc0000;}
.db-article .green{color:#00703c;}
.db-article .blue{color:#0000ff;}
.db-article .orange{color:#cc6600;}
.db-article .brown{color:#7a4c1e;}
.db-article .magenta{color:#cc00cc;}
.db-article del,.db-article .del{text-decoration:line-through;color:#cc0000;}
.db-article ins,.db-article .ins{text-decoration:underline;color:#008000;}
.db-article .paginationFake{margin:18px 0;color:#00506b;}
@media (max-width:760px){.db-article .bordered-container{font-size:18px;padding:16px}.db-article .stat_heading{font-size:20px}.db-article .statute,.db-article .stat_indent,.db-article .stat_indent2,.db-article .stat_indent3,.db-article .stat_notes,.db-article .stat_referenced{font-size:16px}.db-article .stat_indent{margin-left:24px}.db-article .stat_indent2{margin-left:42px}.db-article .stat_indent3{margin-left:60px}.db-article table{font-size:14px}.db-article .CID_Table{font-size:15px}.db-article .chapters,.db-article .articles{font-size:17px}}


/* v17: cleaner statute index pages */
.cid-index-page{
  max-width:1265px;
  margin:18px auto 26px;
  padding:0 14px;
  font-size:15px;
  line-height:1.25;
}
.cid-index-page table.table_border,
.cid-index-page table{
  width:100%;
  border-collapse:collapse;
  margin:0 auto 12px;
  border:2px solid #000099;
  background:#fff;
}
.cid-index-page td,
.cid-index-page th{
  border:1px solid #9bb8c2;
  padding:4px 7px;
  vertical-align:middle;
}
.cid-index-page .chapters{
  font-size:17px;
  line-height:1.25;
  text-align:center;
  font-weight:700;
  color:#275f83;
  background:#eaf6ef;
  border-top:2px solid #000099;
  border-bottom:2px solid #000099;
  padding:8px 10px;
}
.cid-index-page .articles{
  font-size:16px;
  line-height:1.25;
  text-align:center;
  font-weight:700;
  color:#3349a3;
  background:#cbdde3;
  border-top:1px solid #000099;
  border-bottom:1px solid #000099;
  padding:6px 10px;
}
.cid-index-page .CID_Table{
  font-size:15px;
  line-height:1.22;
  color:#595959;
  background:#d9e8eb;
}
.cid-index-page tr:nth-child(even) .CID_Table{background:#e5eff2;}
.cid-index-page td:nth-child(1),
.cid-index-page td:nth-child(3){
  width:70px;
  text-align:center;
  white-space:nowrap;
}
.cid-index-page td:nth-child(2),
.cid-index-page td:nth-child(4){
  width:43%;
}
.cid-index-page a{color:#5b9eaa;text-decoration:none;font-weight:600;}
.cid-index-page a:hover{text-decoration:underline;}
.cid-index-page .red,.cid-index-page .red a,.cid-index-page .red span{color:#cc0000!important;}
.cid-index-page .green,.cid-index-page .green a,.cid-index-page .green span{color:#00703c!important;}
.cid-index-page .blue,.cid-index-page .blue a,.cid-index-page .blue span{color:#0000ff!important;}
.cid-index-page .orange,.cid-index-page .orange a,.cid-index-page .orange span{color:#cc6600!important;}
.cid-index-page .brown,.cid-index-page .brown a,.cid-index-page .brown span{color:#7a4c1e!important;}
.cid-index-page .magenta,.cid-index-page .magenta a,.cid-index-page .magenta span{color:#cc00cc!important;}
.cid-index-page .cyan,.cid-index-page .cyan a,.cid-index-page .cyan span{color:#008c95!important;}
.statute-index-page{max-width:1180px;margin:22px auto 32px;padding:0 18px;}
.statute-index-card{border:2px solid #5f6f82;background:#f8fbfc;padding:18px 22px;margin:0 0 16px;}
.statute-index-card h1{margin:0 0 8px;color:#1f3f7a;font-size:24px;}
.statute-index-card p{margin:6px 0;color:#455;}
.statute-link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px 18px;margin-top:14px;}
.statute-link-grid a{display:block;color:#4d98a6;text-decoration:none;border-bottom:1px dotted #c8d7dd;padding:4px 0;}
.statute-link-grid a:hover{text-decoration:underline;}
@media (max-width:760px){
  .cid-index-page{font-size:13px;padding:0 8px;overflow-x:auto;}
  .cid-index-page .CID_Table{font-size:13px;padding:3px 5px;}
  .cid-index-page .chapters{font-size:15px;}
  .cid-index-page .articles{font-size:14px;}
  .cid-index-page td:nth-child(1),.cid-index-page td:nth-child(3){width:52px;}
}


/* Statute submenu selector used for BPC/Civil/Corp/Gov/Other/Title 7 pages */
.statute-select-nav {
  max-width: 1265px;
  margin: 14px auto 22px auto;
  border: 1px solid #1616ff;
  background: #fff;
  min-height: 82px;
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  padding: 14px 18px;
  box-sizing: border-box;
}
.statute-select-nav .select-back {
  display: inline-block;
  width: 62px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: #3d7f9e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  clip-path: polygon(22% 0,100% 0,100% 100%,22% 100%,0 50%);
}
.statute-select-nav h2 {
  margin: 0 0 14px 0;
  color: #1111ff;
  font-size: 23px;
  line-height: 1.15;
}
.statute-select-nav .select-section-links {
  color: #68aeb9;
  font-size: 15px;
  line-height: 1.55;
}
.statute-select-nav .select-section-links a {
  color: #68aeb9;
  text-decoration: none;
  margin: 0 4px;
}
.statute-select-nav .select-section-links a.current {
  color: #1111ff;
  font-weight: 700;
  font-size: 18px;
}
.statute-select-nav .select-section-links span {
  color: #1111ff;
}


/* v19: resource list pages and raw Joomla article font normalization */
.resource-page{max-width:1265px;margin:24px auto;padding:0 14px 30px;}
.resource-card{border:1px solid #1f3f7a;background:#fff;padding:22px 28px;}
.resource-card h1{color:#0000ff;font-size:24px;margin:0 0 18px;}
.resource-link-list{columns:2;column-gap:42px;margin:0;padding-left:22px;font-size:17px;line-height:1.55;}
.resource-link-list li{break-inside:avoid;margin:0 0 7px;}
.resource-link-list a{color:#1f6f8b;text-decoration:none;}
.resource-link-list a:hover{text-decoration:underline;}
.db-article > p:not([class]){font-size:18px;line-height:1.4;color:#0000ff;}
.db-article > p:not([class]) br{line-height:1.2;}
@media (max-width:760px){.resource-link-list{columns:1}.db-article > p:not([class]){font-size:17px;}}


/* v20: standard site pages, login, private menu */
.standard-page{max-width:1265px;margin:24px auto;padding:0 14px 30px;}
.standard-card{border:1px solid #d6dce3;background:#fff;padding:24px 30px;box-shadow:0 1px 2px rgba(0,0,0,.04);}
.standard-card h1{color:#1f3f7a;font-size:26px;margin:0 0 18px;}
.standard-card p,.standard-card li{font-size:18px;line-height:1.45;color:#063b4d;}
.standard-card a{color:#5cabb8;text-decoration:none;}
.standard-card a:hover{text-decoration:underline;}
.login-form input[type=password]{font-size:18px;padding:7px 9px;margin:6px 0 14px;min-width:280px;}
.login-form button{font-size:17px;padding:7px 15px;cursor:pointer;}
.login-error{color:#9d1b1b!important;font-weight:bold;}
.private-menu>a{color:#fff7a6!important;}


/* Category / compiled article pages */
.category-page { max-width: 1280px; }
.compiled-intro h1 { margin-top: 0; }
.compiled-toc p { line-height: 1.9; }
.compiled-toc a { display: inline-block; margin-right: .55rem; }
.compiled-article { margin: 1.6rem 0 2.4rem; padding-top: .5rem; border-top: 1px solid #cfd8df; }
.compiled-article .article-tools, .compiled-article .statute-nav { display: none; }
.compiled-practice { margin-bottom: 1.4rem; }
.login-form input { font-size: 1rem; padding: .45rem .55rem; max-width: 320px; width: 100%; box-sizing: border-box; }
.login-form label { display: block; margin: .7rem 0; }
.login-form button { padding: .5rem 1rem; font-size: 1rem; cursor: pointer; }
.login-error { color: #b00020; font-weight: 700; }

/* v22 compiled CID page: display each statute much like the old Joomla category listing. */
.cid-all-page { max-width: 1180px; margin: 0 auto; padding: 1.2rem 1rem 2rem; background: #fff; }
.cid-all-intro { margin-bottom: 1rem; }
.cid-all-intro h1 { margin-top: 0; font-size: 1.35rem; }
.cid-all-section { margin: 0 0 2rem 0; padding-bottom: .8rem; }
.cid-all-section .bordered-container { margin-top: .9rem; }
.cid-all-page .article-toolbar { margin-top: 1.4rem; }
.cid-all-page .ds-article-nav { margin-bottom: 1rem; }
.cid-all-page .stat_referenced { margin-top: .65rem; }
.login-card input { width: min(24rem, 95%); padding: .5rem; margin-top: .25rem; }
.login-card button { margin-top: .75rem; padding: .55rem 1.1rem; cursor: pointer; }
.login-error { color: #a00000; font-weight: bold; }


/* Text-only compiled statute pages */
.cid-all-text-only {
  max-width: 1220px;
  margin: 24px auto 48px;
  padding: 0 18px;
}
.cid-all-text-only .cid-all-section {
  margin: 0 0 24px 0;
  padding: 0;
}
.cid-all-text-only .cid-all-section > hr,
.cid-all-text-only .stat_referenced,
.cid-all-text-only .stat_notes,
.cid-all-text-only .stat_notes2 {
  display: none;
}
.cid-all-text-only .bordered-container {
  margin: 0 0 22px 0;
}
@media print {
  .site-header, .top-nav, .article-nav, .site-footer, .footer-bar { display: none !important; }
  .cid-all-text-only { max-width: none; margin: 0; padding: 0; }
}

/* v25 home and policy refinements */
.home-page {
  max-width: 1120px;
  margin: 0 auto;
  background: #fff;
  padding: 34px 42px 46px;
}
.home-hero {
  border: 1px solid #a5c7d4;
  background: #f4fbfd;
  padding: 30px 34px;
  margin-bottom: 26px;
}
.home-hero h1 {
  margin: 0 0 12px;
  color: #14346d;
  font-size: 2rem;
}
.home-hero .lede {
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 900px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.button-link {
  display: inline-block;
  padding: 10px 16px;
  background: #397c9a;
  color: #fff !important;
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
}
.button-link.secondary {
  background: #eef8fb;
  color: #14346d !important;
  border: 1px solid #397c9a;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.home-card, .home-note {
  border-top: 4px solid #397c9a;
  background: #fff;
  box-shadow: 0 0 0 1px #d9e5ea inset;
  padding: 22px 24px;
}
.home-card h2, .home-note h2 {
  margin-top: 0;
  color: #14346d;
}
.home-card p, .home-note p {
  line-height: 1.55;
}
.home-note {
  margin-top: 22px;
}
.privacy-policy h2 {
  color: #14346d;
  margin-top: 1.35em;
  font-size: 1.25rem;
}
.policy-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  border-bottom: 1px solid #d9e5ea;
  margin-bottom: 18px;
}
.policy-header h1 {
  margin-bottom: 10px;
}
@media (max-width: 760px) {
  .home-page { padding: 20px; }
  .home-grid { grid-template-columns: 1fr; }
  .policy-header { display: block; }
}

/* v26 homepage and Title 7 refinements */
.home-page-v2 { max-width: 1180px; margin: 0 auto; padding: 36px 34px 52px; }
.home-hero-v2 { display:grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 28px; align-items: stretch; background: linear-gradient(135deg, #f6fbfd 0%, #ffffff 48%, #e9f5f8 100%); border: 1px solid #bdd7df; padding: 34px; box-shadow: 0 12px 28px rgba(20, 52, 109, .08); }
.home-hero-v2 .eyebrow { color:#397c9a; text-transform:uppercase; letter-spacing:.08em; font-weight:700; font-size:.86rem; margin:0 0 12px; }
.home-hero-v2 h1 { color:#14346d; font-size: clamp(2.1rem, 4vw, 3.8rem); line-height:1.03; margin:0 0 18px; max-width: 850px; }
.home-hero-v2 .lede { font-size:1.22rem; line-height:1.55; color:#334; max-width: 850px; }
.hero-panel { background:#397c9a; color:#fff; padding:24px; display:flex; flex-direction:column; gap:12px; }
.hero-panel h2 { margin:0 0 6px; color:#fff; }
.hero-panel a { display:block; color:#fff; text-decoration:none; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); padding:12px 14px; }
.hero-panel a strong { display:block; font-size:1rem; }
.hero-panel a span { display:block; color:#e7f5f8; font-size:.9rem; margin-top:3px; }
.feature-band { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; margin:26px 0; }
.feature-band article { background:#fff; border:1px solid #d7e7ec; border-top:5px solid #397c9a; padding:22px; }
.feature-number { color:#72aebd; font-weight:800; font-size:1.6rem; }
.feature-band h2 { margin:.25rem 0 .6rem; color:#14346d; }
.home-split { display:grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap:26px; align-items:start; background:#fff; padding:28px; border:1px solid #d7e7ec; }
.home-split h2 { color:#14346d; margin-top:0; }
.home-split p { font-size:1.05rem; line-height:1.6; }
.quick-links-card { background:#f3fafc; border-left:5px solid #397c9a; padding:20px; }
.quick-links-card h3 { margin-top:0; color:#14346d; }
.quick-links-card ul { margin:0; padding-left:1.1rem; }
.quick-links-card li { margin:.55rem 0; }
.title7-analysis-page { font-size: 18px; line-height: 1.62; max-width: 1000px; }
.title7-analysis-page p { margin-bottom: 1.05rem; }
.statute-select-nav .select-section-links { line-height:1.9; }
.statute-select-nav .select-section-links a { display:inline-block; margin: 0 .22rem .18rem 0; }
.title7-act-page { max-width: 1080px; font-size: 18px; line-height:1.55; }
.title7-act-intro { background:#f4fbfd; border:1px solid #bdd7df; padding:24px 28px; margin-bottom:20px; }
.title7-act-intro h1 { color:#14346d; margin-top:0; }
.source-note { color:#0d5366; font-style:italic; }
.title7-jump-list { display:flex; flex-wrap:wrap; gap:8px; background:#fff; border:1px solid #d7e7ec; padding:14px; margin-bottom:20px; }
.title7-jump-list a { background:#eef8fb; border:1px solid #bdd7df; padding:6px 10px; text-decoration:none; color:#17466b; }
.title7-section-box h2 { color:#0000ff; margin-top:0; }
.title7-section-box { margin-bottom:18px; }
.title7-official-list h2 { color:#14346d; }
@media (max-width: 860px) { .home-hero-v2, .feature-band, .home-split { grid-template-columns:1fr; } .home-page-v2 { padding:20px; } }

/* v27 footer layout */
.site-footer.compact-footer { border-top:0; margin-top:40px; background:#f4f7fa; }
.footer-main-row { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; background:#3b7897; color:#fff; padding:14px 18px; font-size:20px; font-weight:700; }
.footer-brand { justify-self:start; color:#fff4a0; }
.footer-copy { justify-self:center; color:#fff; }
.footer-top { justify-self:end; }
.footer-top a { color:#fff; text-decoration:none; }
.footer-contact-row { display:grid; grid-template-columns:1fr 2fr 1fr; align-items:center; gap:18px; padding:11px 18px 16px; font-size:16px; line-height:1.35; }
.footer-contact-row a { color:#16366d; text-decoration:none; }
.footer-contact-row a:hover { text-decoration:underline; }
.footer-email { justify-self:center; }
.footer-address { justify-self:center; text-align:center; }
.footer-phone { justify-self:end; font-weight:700; }
@media (max-width:760px){
  .footer-main-row,.footer-contact-row{grid-template-columns:1fr;text-align:center;gap:6px;}
  .footer-brand,.footer-copy,.footer-top,.footer-email,.footer-address,.footer-phone{justify-self:center;}
}

/* v27 Title 7 analysis and statute readability */
.joomla-article.db-article ul,
.joomla-article.db-article ol,
.joomla-article.db-article li { font-size:18px; line-height:1.55; color:#222; }
.joomla-article.db-article li span,
.joomla-article.db-article p span { font-size:inherit !important; }
.title7-analysis-page, .joomla-article.db-article { max-width:1100px; }
.statute-select-nav .select-section-links a { font-size:18px; }
.t7-article-nav { max-width:1250px; margin:16px auto 22px; border:1px solid #0000ff; background:#fff; padding:14px 18px; display:grid; grid-template-columns:92px 1fr 92px; gap:18px; align-items:center; }
.t7-back, .t7-index { display:flex; align-items:center; justify-content:center; min-height:58px; background:#4e86a3; color:#fff !important; font-weight:700; text-decoration:none; clip-path:polygon(25% 0,100% 0,100% 100%,25% 100%,0 50%); }
.t7-index { clip-path:polygon(0 0,75% 0,100% 50%,75% 100%,0 100%); }
.t7-nav-title { text-align:center; color:#0000ff; font-size:24px; font-weight:700; margin-bottom:4px; }
.t7-nav-subtitle { text-align:center; color:#0000ff; font-size:18px; font-weight:700; margin-bottom:10px; }
.t7-chapter-row { color:#0000ff; font-size:15px; line-height:1.7; }
.t7-chapter-row strong { display:inline-block; min-width:245px; color:#1f3f7a; }
.t7-links a { color:#68aeb9; text-decoration:none; margin:0 4px; }
.t7-links a.current { color:#0000ff; font-weight:800; }
.t7-law-box { font-size:20px; line-height:1.36; }
.t7-law-box h1 { font-size:24px; }
.title7-index-card { max-width:1250px; margin:24px auto; background:#fff; border:1px solid #c7d7df; padding:24px 28px; }
.title7-index-card p { font-size:18px; line-height:1.55; }
@media (max-width:760px){
  .t7-article-nav{grid-template-columns:1fr;padding:12px;}
  .t7-back,.t7-index{clip-path:none;min-height:auto;padding:10px;}
  .t7-chapter-row strong{display:block;min-width:0;}
}

/* v28 refinements */
.standard-page .standard-card p,
.standard-page .standard-card li,
.title7-analysis-page p,
.title7-analysis-page li,
.material-changes-page p,
.material-changes-page li {
  font-size: 18px;
  line-height: 1.55;
}
.db-article span[style*="font-size: 8pt"],
.db-article span[style*="font-size: 9pt"],
.db-article span[style*="font-size: 10pt"],
.db-article span[style*="font-size: 11pt"] {
  font-size: inherit !important;
}
.material-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(360px, 1.8fr);
  gap: 34px;
  align-items: start;
  margin-top: 28px;
}
.material-grid h3 { color:#111; font-size:22px; margin-top:0; }
.material-regulation { border-right:1px solid #d0d7de; padding-right:28px; }
.material-examples { padding-left:4px; }
.material-grid p { color:#000; }
@media (max-width: 850px) {
  .material-grid { grid-template-columns: 1fr; }
  .material-regulation { border-right:0; padding-right:0; }
}
.t7-article-nav { grid-template-columns: 92px minmax(0,1fr) 92px; }
.t7-chapter-row {
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
  column-gap: 14px;
  align-items: baseline;
  color:#0000ff;
  font-size:16px;
  line-height:1.75;
}
.t7-chapter-row strong { min-width:0; display:block; }
.t7-links { display:block; }
.t7-links a { display:inline-block; }
.title7-statute-page .statute-index-card p { font-size:20px; line-height:1.55; }
@media (max-width: 850px) {
  .t7-chapter-row { grid-template-columns:1fr; }
}

/* v29 corrections */
/* Keep hover/click menus from leaving unrelated flyouts open. JS controls open state. */
.main-menu .has-sub:not(.open) > .submenu { display: none !important; }
.main-menu .has-sub.open > .submenu { display: block !important; }

/* footer: lower line aligns to brand and To Top positions */
.footer-main-row,
.footer-contact-row {
  max-width: 1265px;
  margin-left: auto;
  margin-right: auto;
}
.footer-contact-row {
  grid-template-columns: 1fr auto 1fr;
}
.footer-email { justify-self: start; }
.footer-phone { justify-self: end; }

/* imported article inline font-size cleanup */
.standard-page .standard-card span,
.standard-page .standard-card p span,
.standard-page .standard-card li span,
.material-changes-page span,
.material-changes-page p span,
.material-changes-page li span,
.title7-analysis-page span,
.joomla-article.db-article span {
  font-size: inherit !important;
}
.standard-page .standard-card p,
.standard-page .standard-card li { font-size: 18px; line-height: 1.55; }

/* T7 statute nav is the index; no separate right-side button */
.t7-article-nav { grid-template-columns: 92px minmax(0,1fr); }
.t7-links a { margin-right: 12px; }

/* Correct Title 7 statute indentation and avoid over-indenting wrapped text */
.title7-law-box p { margin-bottom: 18px; }
.title7-law-box .level-a { margin-left: 0; }
.title7-law-box .level-1 { margin-left: 40px; }
.title7-law-box .level-A { margin-left: 78px; }
.title7-law-box .level-i { margin-left: 116px; }

/* Material changes: readable regulation and aligned two-column material */
.material-changes-page .standard-card { overflow: visible; }
.material-changes-page .material-grid { align-items: start; }
.material-changes-page .material-regulation,
.material-changes-page .material-examples { font-size: 18px; line-height: 1.55; color:#000; }
.material-changes-page .material-regulation p,
.material-changes-page .material-examples p { font-size: 18px; line-height: 1.55; color:#000; margin: 0 0 16px; }
.material-changes-page .material-regulation .reg-sub { margin-left: 2em; }
.material-changes-page .material-row { display:grid; grid-template-columns:minmax(260px,.95fr) minmax(360px,1.8fr); gap:34px; border-top:1px solid #d0d7de; padding-top:22px; margin-top:18px; align-items:start; }
.material-changes-page .material-row:first-of-type { border-top:0; padding-top:0; }
@media (max-width: 850px) {
  .material-changes-page .material-row { grid-template-columns: 1fr; }
}
