/* =========================================================
   MARYLAND MANUAL SHARED STYLES
   Shared standards used across Maryland Manual sections
   ========================================================= */


/* ---------------------------------------------------------
   SPACING UTILITIES
   --------------------------------------------------------- */

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-small {
  margin-top: 0.35rem !important;
}

.mb-small {
  margin-bottom: 0.35rem !important;
}

.mt-med {
  margin-top: 0.95rem !important;
}

.mb-med {
  margin-bottom: 0.95rem !important;
}
/* ---------------------------------------------------------
   VISUALLY HIDDEN ACCESSIBLE TEXT
   --------------------------------------------------------- */

.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;
}
/* ---------------------------------------------------------
   SECTION DIVIDERS
   --------------------------------------------------------- */

.section-divider {
  border-top: 1px solid #999;
  margin: 1.25rem 0;
}
/* ---------------------------------------------------------
   BREADCRUMBS
   --------------------------------------------------------- */

.breadcrumb-nav {
  border-left: 4px solid #5a4747;
  padding-left: 12px;
  margin-bottom: 1rem;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.breadcrumb-level {
  margin-bottom: 10px;
}

.breadcrumb-list .level-1 > a,
.breadcrumb-list .level-1 > span {
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 600;
}

.breadcrumb-list .level-2 > a,
.breadcrumb-list .level-2 > span {
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 600;
}

.breadcrumb-list .level-3 > a,
.breadcrumb-list .level-3 > span {
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 500;
}

.breadcrumb-list .level-4 > a,
.breadcrumb-list .level-4 > span {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 400;
}

.breadcrumb-list [aria-current="page"] {
  color: #1b1919;
}
/* ---------------------------------------------------------
   QUICK LINKS
   --------------------------------------------------------- */

.mm-secondary-nav {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
}

.mm-secondary-nav h2 {
  font-size: 1rem !important;
  line-height: 1.3;
  margin: 0 0 0.4rem !important;
}

.mm-secondary-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mm-secondary-nav li {
  margin: 0 0 0.2rem;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.mm-secondary-nav a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.mm-secondary-nav a:hover {
  text-decoration-thickness: 2px;
}

.mm-secondary-nav a:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   IMAGE AND TEXT LAYOUT
   --------------------------------------------------------- */

.mm-image-text-layout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 100%;
}

.mm-image-sm {
  flex: 0 0 180px;
  max-width: 100%;
  margin: 0;
}

.mm-image-md {
  flex: 0 0 280px;
  max-width: 100%;
  margin: 0;
}

.mm-image-lg {
  flex: 0 0 420px;
  max-width: 100%;
  margin: 0;
}

.mm-image-sm img,
.mm-image-md img,
.mm-image-lg img,
.mm-image-person img {
  display: block;
  max-width: 100%;
  height: auto;
}

.mm-image-text-content {
  flex: 1 1 auto;
  min-width: 0;
}

.mm-image-text-content > :first-child {
  margin-top: 0;
}

.mm-image-caption,
figcaption {
  margin-top: 0.35rem;
  font-style: italic;
  line-height: 1.4;
  color: #333;
}

@media (max-width: 600px) {
  .mm-image-text-layout {
    flex-direction: column;
  }

  .mm-image-sm,
  .mm-image-md,
  .mm-image-lg {
    flex: 1 1 auto;
    max-width: 100%;
  }
}
/* ---------------------------------------------------------
   ACCESSIBLE DATA TABLES
   Keeps table headers visible despite legacy global styles
   --------------------------------------------------------- */
   .mm-data-table th,
   .election-results th {
     display: table-cell;
   }
  .mm-data-table {
    border-collapse: collapse;
  }
  
  .mm-data-table th,
  .mm-data-table td {
    padding: 4px;
    border: 1px solid #343e41;
  }
  /* ---------------------------------------------------------
   SECTION NAVIGATION
   --------------------------------------------------------- */

.mm-section-nav {
  width: 100%;
  margin: 1rem auto;
}

.mm-section-nav-list {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 180px), 1fr)
  );
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mm-section-nav-list li {
  min-width: 0;
}

.mm-section-nav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  text-align: center;
}
.mm-section-nav-list {
  border: 1px solid #666;
  align-items: stretch;
}

.mm-section-nav-list li {
  display: flex;
  border-right: 1px solid #666;
}

.mm-section-nav-list li:last-child {
  border-right: 0;
}

.mm-section-nav-list a {
  width: 100%;
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

.mm-section-nav-list a:hover,
.mm-section-nav-list a:focus {
  background-color: #e6e6e6;
  text-decoration: underline;
}

.mm-section-nav-list a:focus-visible {
  outline: 3px solid #000;
  outline-offset: -3px;
}

@media (max-width: 700px) {
  .mm-section-nav-list {
    grid-template-columns: 1fr;
  }
  .mm-section-nav-list li {
    border-right: 0;
    border-bottom: 1px solid #666;
  }
  
  .mm-section-nav-list li:last-child {
    border-bottom: 0;
  }
}
/* ---------------------------------------------------------
   CONTACT AND ADDRESS INFORMATION
   --------------------------------------------------------- */

.address {
  margin: 0 0 0.75rem;
  padding-left: 0;
  line-height: 1.45;
}
/* ---------------------------------------------------------
   ORGANIZATIONAL DETAILS
   --------------------------------------------------------- */

#main-content .org-details {
  font-size: 1rem;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0.2rem;
}
#main-content .org-title {
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 700;
}
#main-content .org-heading {
  font-size: 0.9rem;
  line-height: 1.15;
  font-weight: 400;
  margin: 0.75rem 0 0.1rem;
  padding: 0;
}

#main-content .org-details + .org-heading {
  margin-top: 0.8rem;
}

#main-content .org-title + .org-heading {
  margin-top: 0.7rem;
}
#main-content .org-title a {
  font-weight: inherit;
}
/* ---------------------------------------------------------
   ORGANIZATIONAL INDENTATION
   --------------------------------------------------------- */

#main-content .mm-indent,
#main-content .mm-indent-2,
#main-content .mm-indent-3,
#main-content .mm-indent-4 {
  box-sizing: border-box;
}

#main-content .mm-indent {
  margin-left: 3.2rem !important;
}

#main-content .mm-indent-2 {
  margin-left: 5.4rem !important;
}

#main-content .mm-indent-3 {
  margin-left: 7.6rem !important;
}

#main-content .mm-indent-4 {
  margin-left: 9.8rem !important;
}
@media (max-width: 700px) {
  #main-content .mm-indent {
    margin-left: 2rem !important;
  }

  #main-content .mm-indent-2 {
    margin-left: 2.7rem !important;
  }

  #main-content .mm-indent-3 {
    margin-left: 3.5rem !important;
  }

  #main-content .mm-indent-4 {
    margin-left: 4.5rem !important;
  }
}