:root {
  font-family: Raleway, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4286;
  color: #333;
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: #153b8e; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 5px; z-index: 99; padding: 10px; background: #fff; }
.skip-link:focus { left: 10px; }
.site-container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* Header and the two-item navigation mirror the Legislature's proportions. */
.masthead { height: 87px; background: #132450; color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 87px; }
.brand { display: block; color: #fff; font: 400 27.44px/1.43 Cinzel, Georgia, 'Times New Roman', serif; text-decoration: none; white-space: nowrap; }
.brand:hover { color: #fff; text-decoration: none; }
.header-meta { display: flex; gap: 12px; align-items: center; color: #fff; font-size: 14px; }
.weather-icon { font-size: 26px; line-height: 1; }
.main-nav { height: 44px; background: #eef0f8; border-bottom: 1px solid #e5e7ef; }
.nav-inner { display: flex; align-items: center; justify-content: center; gap: 64px; height: 44px; }
.main-nav a { color: #132450; text-decoration: none; font-size: 18.2px; line-height: 24px; padding: 10px 5px; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #132450; text-decoration: underline; text-underline-offset: 5px; }

/* The State House image uses the same source asset and pale overlay. */
.hero { position: relative; min-height: 105px; background: #d1d9ef; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('/statehouse.jpg') center top / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.75); }
.hero-detail { min-height: 135px; }
.hero-layout { display: grid; grid-template-columns: minmax(0,750px) minmax(0,360px); gap: 30px; position: relative; z-index: 1; padding-top: 15px; padding-bottom: 15px; }
.hero-main h1 { margin: 20px 0 15px; color: #132450; font: 500 36px/1.1 Cinzel, Georgia, 'Times New Roman', serif; }
.breadcrumb { margin: 7px 0 0; font-size: 14px; color: #132450; }
.breadcrumb span { padding: 0 10px; }
.hero-detail .hero-main h1 { margin-top: 20px; }
.search-form { display: flex; width: 100%; margin: 10px 0 20px; }
.search-form input { flex: 1; min-width: 0; height: 34px; border: 1px solid #ccc; border-radius: 4px 0 0 4px; background: #fff; color: #555; padding: 6px 12px; font-size: 14px; }
.search-form button { width: 38px; height: 34px; border: 1px solid #132450; border-radius: 0 4px 4px 0; background: #132450; color: #fff; display: grid; place-items: center; }
.search-form svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.hero-search { align-self: start; margin: 23px 0 0; }

/* Main page: removing the popular panel leaves the original 750px column. */
.page-surface { background: #fff; min-height: 260px; }
.home-grid { display: grid; grid-template-columns: minmax(0,750px) minmax(0,360px); gap: 30px; padding-top: 20px; padding-bottom: 55px; }
.home-main h2, .sidebar h2 { font: 500 23.8px/1.1 Cinzel, Georgia, 'Times New Roman', serif; }
.home-title { margin: 20px 0 20px; }
.home-main h3 { font-size: 19.6px; font-weight: 500; line-height: 1.1; margin: 10px 0; }
.home-main hr { border: 0; border-top: 1px solid #eee; margin: 20px 0 30px; }
.home-main .search-form { margin: 10px 0 20px; }
.direct-section { padding-left: 5px; }
.direct-section h3 { margin: 0 0 10px; }
.direct-form { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 0 0 28px; }
.direct-form label { display: flex; align-items: center; gap: 5px; font-size: 14px; }
.direct-form input { width: 80px; height: 34px; border: 1px solid #ccc; border-radius: 4px; padding: 6px 8px; background: #fff; }
.go-button { height: 34px; padding: 6px 13px; border: 1px solid #132450; border-radius: 4px; background: #132450; color: #fff; }
.go-button:hover, .search-form button:hover { background: #253f7b; }
.error { flex-basis: 100%; margin: -5px 0 0; color: #a82323; }
.part-list, .section-list, .chapter-list { list-style: none; margin: 0; padding: 0; }
.part-list { margin-top: 22px; }
.part-row { display: grid; grid-template-columns: 115px minmax(0,1fr) 154px; min-height: 46px; margin: 1px 0; background: #ebebeb; color: #000; text-decoration: none; }
.part-list li:nth-child(even) .part-row { background: #f7f7f7; }
.part-row:hover, .section-row:hover, .chapter-row:hover { color: inherit; text-decoration: none; }
.part-key { display: flex; align-items: center; padding: 10px 5px; background: #4e5b7c; color: #fff; }
.part-name { display: flex; align-items: center; padding: 10px 0 10px 10px; font-size: 16.8px; line-height: 1.35; }
.part-range { display: flex; justify-content: flex-end; align-items: center; padding: 10px 10px 10px 0; font-style: italic; text-align: right; white-space: nowrap; }
.notice-wrap { grid-column: 1 / -1; margin-top: 8px; padding: 38px 0 0; border-top: 1px solid #e5e5e5; }
.site-notice { width: calc(100% - 48px); margin: 0 auto; padding: 10px 12px 9px; border: 1px solid #d9d9d9; border-radius: 4px; background: #f5f5f5; font-size: 12px; line-height: 1.4; }
.site-notice p { margin: 0; }
.site-notice strong { font-weight: 400; }
.site-notice p + p { margin-top: 28px; }
.empty-content { margin-top: 20px; }

/* Desktop law pages use the original 360px / 750px split. */
.detail-grid { position: relative; display: grid; grid-template-columns: minmax(0,360px) minmax(0,750px); gap: 30px; align-items: start; padding-top: 20px; padding-bottom: 55px; }
.sidebar { position: relative; background: #f3f4f6; padding: 15px; margin-bottom: 15px; min-width: 0; }
.sidebar.sidebar-expanded { grid-column: 1 / -1; grid-row: 1; z-index: 5; width: calc(100% - 60px); }
.sidebar.sidebar-collapsed { grid-column: 1; grid-row: 1; }
.sidebar h2 { line-height: 32px; margin: -3px 0 18px; }
.sidebar .direct-form { flex-wrap: nowrap; gap: 7px; width: 375px; margin: 0 0 24px; }
.sidebar .direct-form label { gap: 5px; white-space: nowrap; }
.sidebar .direct-form input { width: 70px; }
.sidebar .go-button { padding: 6px 12px; flex: none; }
.sidebar .error { position: absolute; top: 100px; left: 15px; right: 15px; padding: 5px; background: #f3f4f6; }
.sidebar-toggle { position: absolute; top: 120px; right: 0; z-index: 2; width: 35px; height: 30px; color: #fff; border: 0; background: #4e5b7c; font-size: 18px; line-height: 1; }
.sidebar-toggle span::before { content: '◀'; font-size: 13px; }
.sidebar-collapsed .sidebar-toggle span::before { content: '▶'; }
.law-tree { margin-top: 14px; }
.tree-root, .tree-children { list-style: none; margin: 0; padding: 0; }
.tree-children { padding-left: 24px; }
.tree-line { display: flex; align-items: flex-start; min-height: 24px; }
.tree-line a { display: block; min-width: 0; font-size: 14px; line-height: 24px; text-decoration: none; }
.tree-line a:hover { text-decoration: none; }
.sidebar-collapsed .tree-name { display: none; }
.tree-title > .tree-line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tree-current > .tree-line a { color: #222; }
.tree-toggle, .tree-spacer { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; padding: 0; }
.tree-toggle { border: 0; background: transparent; color: #999; }
.tree-toggle::before { content: '▸'; font-size: 12px; }
.tree-toggle[aria-expanded="true"]::before { content: '▾'; color: #555; }
.main-pane { grid-column: 2; grid-row: 1; min-width: 0; }
.toolbar { float: right; height: 50px; display: flex; align-items: flex-start; gap: 4px; margin-left: -5px; }
.toolbar button { padding: 6px 9px; background: #f4f4f4; border: 1px solid #ccc; border-radius: 3px; color: #25304b; font-size: 12px; }
.toolbar button:disabled { color: #aaa; cursor: default; }
.content-heading { margin: 10px 0 20px; font-size: 24px; font-weight: 500; line-height: 1.1; }
.content-heading small { font-size: .7em; font-weight: 400; color: #666; }
.law-text { font-size: 14px; line-height: 1.45; white-space: pre-line; margin-bottom: 30px; }
.section-row, .chapter-row { display: grid; grid-template-columns: 115px minmax(0,1fr); min-height: 44px; color: #000; background: #ebebeb; text-decoration: none; margin: 2px 0; }
.section-list li:nth-child(even) .section-row, .chapter-list li:nth-child(even) .chapter-row { background: #f7f7f7; }
.section-key, .chapter-row span:first-child { display: flex; align-items: center; padding: 10px; background: #4e5b7c; color: #fff; }
.section-name, .chapter-row span:last-child { display: flex; align-items: center; padding: 10px 13px; }
.title-card { margin: 5px 0; border: 1px solid #ddd; border-radius: 3px; background: #f5f5f5; }
.title-card > button { display: grid; grid-template-columns: 105px minmax(0,1fr); width: 100%; padding: 12px 15px; border: 0; background: transparent; color: #333; text-align: left; }
.title-card > button:hover { background: transparent; }
.title-card > button:hover .title-name, .title-card > button:focus-visible .title-name { text-decoration: underline; text-underline-offset: 3px; }
.title-no, .title-name { font-size: 16px; font-weight: 500; line-height: 1.2; }
.title-range { grid-column: 1 / -1; margin-top: 5px; font-size: 11px; }
.chapter-list { padding: 0 15px 12px; }
.chapter-row { grid-template-columns: 115px minmax(0,1fr); }

/* Search follows the reference's left refiners and right results table. */
.search-refiners h2, .search-results-main h2 { font-size: 23.8px; font-weight: 500; margin: 10px 0 20px; }
.search-refiners nav { display: flex; flex-direction: column; border-top: 1px solid #ddd; }
.search-refiners nav a { display: block; padding: 10px 12px; border-bottom: 1px solid #ddd; text-decoration: none; }
.search-refiners nav a.selected { background: #4e5b7c; color: #fff; }
.search-results-main > p { margin: 0 0 12px; }
.results-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.results-table th { background: #e6e6e6; border-bottom: 2px solid #ccc; padding: 10px; color: #132450; text-align: left; }
.results-table th:first-child { width: 27%; }
.results-table td { padding: 10px; vertical-align: top; border-top: 1px solid #ddd; }
.results-table tr:nth-child(even) td { background: #f7f7f7; }
.result-law { line-height: 1.6; }
.result-title { font-size: 15px; font-weight: 600; }
.result-summary { margin-top: 5px; color: #444; }
.pagination { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin: 12px 0; }
.pagination span { color: #aaa; }
.not-found { padding-top: 30px; padding-bottom: 80px; }

.footer { min-height: 310px; background: #333; color: #fff; padding: 20px 0 35px; }
.footer-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; text-align: center; }
.footer h2 { font: 400 20px Cinzel, Georgia, serif; margin: 0 0 20px; }
.footer h3 { font-size: 18px; font-weight: 400; margin: 0 0 10px; }
.footer p { margin: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 5px 0; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.copyright { max-width: 1170px; margin: 80px auto 0; padding: 0 15px; text-align: center; font-size: 12px; }

@media (max-width: 1199px) {
  .hero-layout, .home-grid { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
  .detail-grid { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
  .sidebar .direct-form { width: 360px; }
}
@media (max-width: 767px) {
  .masthead, .header-inner { height: 70px; }
  .brand { font-size: 20px; white-space: normal; }
  .header-meta { display: none; }
  .main-nav, .nav-inner { height: 44px; }
  .nav-inner { justify-content: space-around; gap: 10px; }
  .main-nav a { font-size: 15px; padding: 10px 0; }
  .hero-layout, .home-grid, .detail-grid { display: block; }
  .hero-layout { padding-top: 12px; padding-bottom: 12px; }
  .hero-main h1 { font-size: 30px; margin: 12px 0; }
  .hero-detail .hero-main h1 { margin-top: 10px; }
  .hero-search { display: none; }
  .hero { min-height: 90px; }
  .hero-detail { min-height: 110px; }
  .hero::before { background-size: cover; }
  .home-grid, .detail-grid { padding-top: 20px; }
  .home-title { margin-top: 10px; }
  .sidebar, .sidebar.sidebar-expanded, .sidebar.sidebar-collapsed { width: auto; margin-bottom: 26px; }
  .sidebar.sidebar-expanded, .sidebar.sidebar-collapsed { grid-column: auto; grid-row: auto; }
  .main-pane { grid-column: auto; }
  .sidebar .direct-form { width: 100%; flex-wrap: wrap; }
  .sidebar-toggle { top: 15px; right: 15px; }
  .law-tree { display: block; }
  .content-heading { margin-top: 10px; }
  .part-row { grid-template-columns: 95px minmax(0,1fr); }
  .part-range { grid-column: 2; justify-content: flex-start; padding: 0 10px 8px; }
  .part-name { font-size: 15px; padding-top: 8px; padding-bottom: 0; }
  .footer-columns { display: block; }
  .footer-columns > div { margin-bottom: 25px; }
  .copyright { margin-top: 30px; }
}
@media (max-width: 440px) {
  .brand { font-size: 18px; }
  .breadcrumb { font-size: 12px; }
  .breadcrumb span { padding: 0 4px; }
  .direct-form { gap: 8px; }
  .direct-form input { width: 65px; }
  .section-row, .chapter-row { grid-template-columns: 95px minmax(0,1fr); }
  .toolbar button { padding: 5px; }
}
@media print {
  .masthead, .main-nav, .hero, .sidebar, .toolbar, .footer { display: none !important; }
  .site-container, .detail-grid { display: block; max-width: none; padding: 0; }
  .main-pane { width: 100%; }
}
