/* ============================================================
   LCO Styles
   ============================================================ */


/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  /* Brand colors */
  --color-maroon:         #730E02;
  --color-maroon-hover:   #740d04;
  --color-maroon-footer:  #78170c;
  --color-navy:           #364D6C;
  --color-navy-light:     #4a6894;
  --color-blue-mid:       #8099AD;
  --color-blue-muted:     #657dad;

  /* Structural / backgrounds */
  --color-body-bg:        #B3B4AD;
  --color-navbar-bg:      #5B5848;
/*  --color-navbar-bg:      #B7B4A4; */
  --color-dropdown-bg:    #E7E5D3;
  --color-section-bg:     #DAE3E5;
  --color-section-bg-light: #E6EFF1;
  --color-home-col-bg:    #E0E0E0;
  --color-home-col-bg-alt:#E8E8E8;
  --color-white:          #fff;
  --color-black:          #000;

  /* Text */
  --color-text:           #333;
  --color-text-mid:       #5c5c5c;
  --color-text-gray:      #4b4d54;
  --color-text-brown:     #42413C;

  /* Neutral tones */
  --color-border:         #ccc;
  --color-border-light:   #ddd;
  --color-bg-light:       #f0f0f0;
  --color-bg-faint:       #f9f9f9;

  /* Typography */
  --font-base:     Arial, Helvetica, sans-serif;
  --font-serif:    Georgia, "Book Antiqua", Times, serif;
  --font-palatino: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-ui:       Verdana, Arial, sans-serif;

  /* Font sizes */
  --font-size-base: 14px;
  --font-size-sm:   13px;
  --font-size-md:   15px;

  /* Focus ring */
  --focus-ring:        3px solid var(--color-navy);
  --focus-ring-offset: 2px;
}


/* ============================================================
   Base
   ============================================================ */
body {
  background: url(../img/background_ceiling.gif) repeat top left var(--color-body-bg);
  font-family: var(--font-base);
  color: var(--color-text);
  font-size: var(--font-size-base);
  text-align: center;
  padding: 0;
  margin: 0;
  counter-reset: list;
}

a {
  padding: 0;
  margin: 0;
  text-decoration: none;
  font-size: 100%;
  color: var(--color-text);
}

a:hover {
  text-decoration: underline;
  color: var(--color-maroon);
}

a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}


/* ============================================================
   Headings
   ============================================================ */
h1 {
  padding: 10px 10px 0 15px;
  font-size: 26px;
  color: var(--color-maroon);
  font-family: var(--font-serif);
  font-weight: normal;
}

h2 {
  font-family: var(--font-serif);
  color: var(--color-maroon);
  font-weight: normal;
}

/* h2 used as h5-styled (section headings) */
h2.h5-styled {
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 18px;
  color: var(--color-maroon);
  margin-top: 0;
}

h3.h6-styled {
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 16px;
  color: var(--color-maroon);
  margin-top: 0;
}

/* h3 - used for breadcrumbs in legacy pages */
h3 {
  color: var(--color-maroon);
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 1.8em;
}

h3 a {
  color: var(--color-text-mid);
  text-decoration: none;
}

h3 a:hover {
  color: var(--color-maroon-hover);
  text-decoration: underline;
}

h3 a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

h4 {
  font-family: var(--font-palatino);
  color: var(--color-navy);
  margin-top: 0;
  padding-right: 15px;
  padding-left: 15px;
  font-variant: small-caps;
  font-size: 100%;
  line-height: 1.4;
}

h5 {
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 16px;
  color: var(--color-maroon);
  margin-top: 0;
  margin-bottom: 15px;
}

h6 {
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 15px;
  color: var(--color-maroon);
  font-style: italic;
  margin-top: 0;
  margin-bottom: 0;
}

p {
  font-size: var(--font-size-base);
  line-height: 150%;
}


/* ============================================================
   Layout
   ============================================================ */
#container {
  max-width: 980px;
  padding: 0;
  background: var(--color-white);
  list-style: none;
  text-align: left;
  margin: 0 auto;
  height: auto;
}

#contenthome {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--color-text);
}

#contenthome ul,
#contenthome dl {
  font-family: var(--font-palatino);
  font-size: var(--font-size-sm);
  padding: 0 0 0 10px;
  margin: 20px;
  line-height: 19px;
  list-style: square;
  list-style-position: outside;
  text-decoration: none !important;
  color: var(--color-text);
}

#contenthome a:link {
  color: var(--color-navy);
  text-decoration: none;
}

#contenthome a:visited {
  color: var(--color-navy) !important;
  text-decoration: none;
}

#contenthome a:hover {
  color: var(--color-maroon) !important;
  text-decoration: underline;
}

#right {
  margin: 0;
  padding: 0;
  width: 280px;
  float: right;
}

.center {
  margin: 0 auto;
  padding: 0;
  width: 280px;
}


/* ============================================================
   Nav
   ============================================================ */
#nav {
  width: 100%;
  height: 33px;
  padding: 0;
  margin: 0;
}

#main-nav {
  width: 100%;
  padding: 0;
  margin: 0;
}


/* ============================================================
   Header
   ============================================================ */
#site-header {
  background: var(--color-white);
}

#header {
  background: var(--color-white);
  height: 178px;
  margin-bottom: 0;
  background-image: url(../img/header_bg1.webp);
  background-repeat: no-repeat;
  background-position: bottom !important;
  position: relative;
}

#header a:link {
  color: var(--color-text-brown);
  text-decoration: none;
}

#header a:visited {
  color: var(--color-text-brown);
  text-decoration: none;
}

#header a:hover,
#header a:active {
  text-decoration: underline;
}

#header a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.header-search {
  text-align: right;
  font-size: var(--font-size-base);
  font-variant: small-caps;
  border: 0;
  margin-top: -95px;
  margin-right: 20px;
  margin-left: 700px;
}

.header-search input[type="text"] {
  height: 22px;
}

.header-search input[type="image"] {
  border-style: none;
  vertical-align: top;
  margin-left: -24px;
}

.statutes-search {
  text-align: right;
  font-size: var(--font-size-md);
  text-decoration: none;
  margin: 14px 0;
}

.statutes-search span {
  background-color: #EFEFEF;
  padding-left: 13px;
}


/* ============================================================
   Footer
   ============================================================ */
#footer {
  width: 100%;
  margin: 0;
  padding: 10px 0;
  font-family: var(--font-base);
  color: var(--color-maroon);
  text-align: center;
}

#footer p {
  margin: 0 25px 20px 0;
  color: var(--color-maroon);
}

#footer a {
  color: var(--color-maroon-footer);
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

#footer a:visited {
  text-decoration: none;
}

#footer a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* Site footer ARIA landmark */
#site-footer {
  margin-top: 0;
}

.ctgovlink {
  margin: 5px;
  border-radius: 4px;
  background: var(--color-blue-muted);
  padding: 2px 4px;
}


/* ============================================================
   Breadcrumb
   ============================================================ */
nav[aria-label="Breadcrumb"] {
  margin: 20px 0;
  padding: 0 26px;
}

ol.lco-breadcrumb:first-child {
  border-left: 4px solid var(--color-blue-mid);
  padding-left: 10px;
}

ol.lco-breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
}

ol.lco-breadcrumb .breadcrumb-item {
  font-size: 16px;
  color: var(--color-text-gray);
  font-family: var(--font-serif);
  font-weight: normal;
}

ol.lco-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: " > ";
  color: var(--color-text-gray);
  padding: 0 4px;
}

ol.lco-breadcrumb .breadcrumb-item a {
  color: var(--color-text-mid);
  text-decoration: none;
}

ol.lco-breadcrumb .breadcrumb-item a:hover {
  color: var(--color-maroon-hover);
  text-decoration: underline;
}

ol.lco-breadcrumb .breadcrumb-item.active {
  color: var(--color-text-gray);
}


/* ============================================================
   Section head boxes
   ============================================================ */
.bluehead {
  margin: 20px 0 0 0;
  background-color: var(--color-section-bg-light);
}

.blueheadhome {
  background-color: var(--color-section-bg);
  line-height: 100%;
}

.blueheadlong {
  background-color: var(--color-section-bg);
  line-height: 100%;
  margin-top: 3rem !important;
  margin-bottom: 1.5rem !important;
}

.descriptiontext {
  color: var(--color-text);
  font-weight: 500;
  text-transform: uppercase;
  padding-bottom: 5px;
  padding-left: 15px;
}

.descriptiontext p {
  font-size: var(--font-size-base);
}


/* ============================================================
   Home page columns
   ============================================================ */
.home-col-links {
  background-color: var(--color-home-col-bg);
  padding: 8px 0;
  border-left: 1px solid #D4D0C8;
}

.home-col-links:first-child {
  border-left: none;
}

.home-col-links:nth-child(even) {
  background-color: var(--color-home-col-bg-alt);
}

.home-col-links ul li {
  font-family: var(--font-palatino);
}


/* ============================================================
   Image borders
   ============================================================ */
.blueborderimg {
  border-left: 14px solid var(--color-blue-mid);
}


/* ============================================================
   Utilities
   ============================================================ */
.clearfloat {
  clear: both;
  height: 0;
  font-size: 1px;
  line-height: 0;
}

/* Visually hidden (Bootstrap utility, kept for safety) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* ============================================================
   Background texture areas
   ============================================================ */
.primetxtarea {
  margin: 0 12px;
  padding-left: 0;
  color: var(--color-text);
  background: url('../img/bg4.webp') repeat;
  padding-bottom: 20px;
}


/* ============================================================
   Staff
   ============================================================ */
.stafflist {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.stafflist li {
  margin: 10px 0;
}

.staffinline li {
  display: inline-block;
  margin-right: 16px;
}

.staffdetails {
  background: url('../img/2ndbg.jpg') repeat;
  border: double medium var(--color-black);
  padding: 20px 10px;
}

.commissionertable,
.commissionertable td {
  border: solid 1px var(--color-black);
  margin: 4px;
}


/* ============================================================
   Sidebar DL
   ============================================================ */
dl.two {
  font-family: var(--font-ui);
  font-size: var(--font-size-md);
  padding: 16px 0 0 8px;
  background-image: url(../img/2ndbg.jpg);
  background-repeat: repeat;
  list-style: none;
  line-height: 160%;
}

dl.two dt {
  margin: 0;
  padding: 0 0 0 15px;
  color: var(--color-text-mid);
  font-weight: bold;
  background-image: url(../img/smallbluebar.gif);
  background-repeat: no-repeat;
  background-position: left center;
}

dl.two ul li {
  padding: 0;
  color: var(--color-text-mid);
  list-style: none;
  margin: 0 0 0 -15px;
}

dl.two a {
  color: var(--color-text-mid);
  text-decoration: none;
  display: inline;
  list-style-type: none;
}

dl.two a:hover {
  color: var(--color-maroon-hover);
  text-decoration: none;
  display: inline;
  list-style-type: none;
}

dl.two a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

dd {
  color: var(--color-text-mid);
  font-family: var(--font-base);
  font-size: var(--font-size-sm);
  margin: 0;
  padding: 2px 0 12px 0;
}

dt {
  margin: 0;
}


/* ============================================================
   Subsection Menu
   ============================================================ */
.sub {
  font-family: var(--font-ui);
  margin: 0 50px 0 0;
  padding: 16px 0 0 8px;
}

.sub ul li {
  padding: 0;
  color: var(--color-text);
  list-style: square;
  margin: 0 0 0 20px;
  line-height: 30px;
}

.sub a {
  color: var(--color-text);
  text-decoration: none;
  display: inline;
}

.sub a:hover {
  color: var(--color-maroon-hover);
  text-decoration: underline;
  display: inline;
}

.sub a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}


/* ============================================================
   Expand / collapse
   ============================================================ */
.expand {
  color: var(--color-text);
  text-decoration: none;
  text-align: left;
  font-size: var(--font-size-base);
}

.expand a {
  color: var(--color-text);
  text-decoration: none;
  text-align: left;
}

.expand a:hover {
  color: var(--color-maroon);
  text-decoration: underline;
  text-align: left;
}

.expand a:visited {
  color: var(--color-text);
  text-decoration: none;
  text-align: left;
}

.expand ul li {
  font-size: var(--font-size-sm);
}

.style2 {
  line-height: 25px;
}


/* ============================================================
   Tables
   ============================================================ */
td:nth-child(3) {
  min-width: 60px;
}

/* Special Acts Table */
.table-specialacts td {
  padding: 5px;
  margin: 5px;
  border: 1px solid var(--color-black);
}

.table-specialacts td:nth-child(3) {
  min-width: 60px;
  font-weight: bold;
}

.table-specialacts td:nth-child(3):hover {
  background-color: #dcdcdc;
  font-weight: bold;
}

/* Session Assignments */
.session-assigns {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-base);
}

.session-assigns caption {
  /* visually hidden but still read by screen readers */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.session-assigns th,
.session-assigns td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--color-border);
}

.session-assigns thead th {
  background-color: var(--color-bg-light);
  font-weight: bold;
  color: var(--color-text);
  font-size: var(--font-size-md);
}

.session-assigns tbody th {
  font-weight: normal;
  width: 45%;
}

.session-assigns tbody th a {
  color: var(--color-maroon);
}

.session-assigns tbody th a:focus,
.session-assigns tbody th a:hover {
  text-decoration: underline;
  outline: 2px solid var(--color-maroon);
  outline-offset: 2px;
}

.session-assigns tbody tr:nth-child(odd) {
  background-color: var(--color-white);
}

.session-assigns tbody tr:nth-child(even) {
  background-color: var(--color-bg-faint);
}

.attorneys {
  list-style: none;
  margin: 0;
  padding: 0;
}

.attorneys li + li {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dotted var(--color-border-light);
}

@media (max-width: 600px) {
  .session-assigns thead {
    /* hide visually but keep for screen readers — do NOT use display:none */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .session-assigns tbody tr {
    display: block;
    border: 1px solid var(--color-border);
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
  }

  .session-assigns tbody th,
  .session-assigns tbody td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #e8e8e8;
  }

  .session-assigns tbody td:last-child {
    border-bottom: none;
  }

  .session-assigns tbody th::before,
  .session-assigns tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72em;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
  }

  .session-assigns tbody th {
    width: 100%;
    background-color: #f5f0ef;
  }

  .attorneys li + li {
    border-top-color: #e8e8e8;
  }
}


/* ============================================================
   Statutes
   ============================================================ */
.pnote {
  color: var(--color-maroon);
}

.sindex {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.sindex li {
  font-size: 18px;
  padding: 5px 0;
}

.sindex li span {
  font-weight: 600;
  display: inline-block;
  width: 60px;
  text-align: center;
}

/* "Top ^" link */
a.top-link {
  color: #767676 !important;
}

a.top-link:hover {
  color: var(--color-maroon) !important;
}


/* ============================================================
   Bootstrap 5 Navbar Override
   ============================================================ */
.lco-navbar {
  background-color: var(--color-navbar-bg);
  padding: 0;
  min-height: 40px;
  border-radius: 0;
}

.lco-navbar .container-fluid {
  padding: 0;
  align-items: stretch;
}

.lco-navbar .navbar-nav {
  flex-direction: row;
  flex-wrap: wrap;
}

.lco-navbar .nav-item {
  position: relative;
  border-right: 1px solid var(--color-black);
}

.lco-navbar .nav-item:last-child {
  border-right: none;
}

.lco-navbar .nav-link {
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: var(--font-size-base);
  font-variant: small-caps;
  padding: 6px 18px !important;
  white-space: nowrap;
  line-height: 21px;
  height: 40px;
  display: flex;
  align-items: center;
}

.lco-navbar .nav-link:hover,
.lco-navbar .nav-link:focus {
  background-color: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
}

.lco-navbar .nav-link:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: -3px;
}

.lco-navbar .dropdown-menu {
  background-color: var(--color-dropdown-bg);
  border: 1px solid #999;
  border-radius: 0;
  padding: 0;
  min-width: 200px;
  margin-top: 0;
}

.lco-navbar .dropdown-item {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--color-text);
  padding: 6px 12px;
  white-space: normal;
}

.lco-navbar .dropdown-item:hover,
.lco-navbar .dropdown-item:focus {
  background-color: var(--color-blue-mid);
  color: var(--color-white);
  text-decoration: none;
}

.lco-navbar .dropdown-item:focus-visible {
  outline: var(--focus-ring);
  outline-offset: -2px;
}

.navbar-toggler {
  border-color: var(--color-white);
  margin: 4px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px var(--color-navy);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Collapsed navbar - mobile */
@media (max-width: 991px) {
  .lco-navbar .navbar-nav {
    flex-direction: column;
  }
  .lco-navbar {
    min-height: auto;
  }
  .lco-navbar .nav-link {
    height: auto;
  }
  #container {
    max-width: 100%;
  }
  #right {
    float: none;
    width: 100%;
  }
  .header-search {
    margin-left: 340px;
  }
  dl.two {
    width: auto;
    margin: 0 0 20px 0;
  }
}

@media (max-width: 600px) {
  .header-search {
    margin-left: 0;
    margin-top: 0;
    text-align: right;
    position: absolute;
    right: 5px;
    top: 10px;
  }
  #header {
    height: auto;
    min-height: 100px;
  }
}


/* ============================================================
   Bootstrap Carousel customizations for home page
   ============================================================ */
.lco-carousel-section {
  text-align: center;
  padding: 0;
  max-height: 180px;
  overflow: hidden;
}

.carousel-item {
  transition: transform 2s ease-in-out;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  transition: opacity 0s 2s;
}

.lco-carousel-section h3 {
  background-image: none;
  height: auto;
  width: auto;
  max-width: 100%;
  padding: 8px 0 4px;
  font-size: var(--font-size-sm);
  font-family: var(--font-ui);
  font-variant: small-caps;
  color: var(--color-text);
}

.lco-carousel-section a {
  color: var(--color-text);
  text-decoration: none;
}

.lco-carousel-section a:hover {
  color: var(--color-maroon);
  text-decoration: underline;
}

/* Home page bottom columns */
.bottom-col-head {
  font-family: var(--font-palatino);
  color: var(--color-navy);
  margin-top: 0;
  padding: 12px 15px;
  font-variant: small-caps;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  line-height: 24px;
  margin-bottom: 0;
}
