/* Guide Category Mgt*/
ul.main_custom {
  width: 100%;
  margin: 0 auto;
  padding: 0px;
}

ul.main_custom li {
  display: inline-block;
  list-style: outside none none;
  width: 33.333%;
  text-align: center;
}

ul.main_custom li.inner-custom_1 {
  float: left;
}

ul.main_custom li.inner-custom_2 {
  float: left;
}

ul.main_custom li.inner-custom_3 {
  float: left;
}



table.table-inner-custom {
  font-size: 14px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  border-spacing: 0;
  border: 1px solid #f5f5f5;
}

table.table-inner-custom tr:nth-child(even) {
  background: #F5F5F5;
  width: 80%;
}

table.table-inner-custom tr:nth-child(odd) {
  background: #FFFFFF;
  width: 80%;
}

table.table-inner-custom th {
  background: #D1B256;
  font-weight: bold;
}

table.table-inner-custom th {
  color: #FFF !important;
  width: 20%;
  border-bottom: 1px solid #FFF;
}

table.table-inner-custom th a {
  color: #FFF !important;
}

table.table-inner-custom td,
th {
  padding: 1em 1.2em;
  text-align: left;
}

.specification-pdf-links {
  float: left;
  width: 50%;
  padding: 5px 0;
}

.products .inner-class-list {
  min-height: 250px;
}

.inner-class-list .details-img-custom {
  max-height: 220px;
}


/* Main menu */
#header .mod-menu {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Menu items */
#header .mod-menu>li {
  margin: 0;
  padding: 0;
}

/* Links */
#header .mod-menu>li>a,
#header .mod-menu>li>span {
  display: block;
  padding: 16px 14px;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  transition: color 0.2s ease;
}

/* Hover */
#header .mod-menu>li>span:hover,
#header .mod-menu>li>span:focus,
#header .mod-menu>li>a:hover,
#header .mod-menu>li>a:focus {
  color: #0623BF;
  text-decoration: none;
}

/* Active/current item */
#header .mod-menu>li.active>a,
#header .mod-menu>li.active>span,
#header .mod-menu>li>ul>li.active>a,
#header .mod-menu>li.current>a,
#header .mod-menu>li.default.current.active>a,
#header .mod-menu>li>a[aria-current="page"] {
  background: #0623BF;
  color: #fff;
}

/* Keep active item white on hover */
#header .mod-menu>li.active>a:hover,
#header .mod-menu>li.current>a:hover,
#header .mod-menu>li>a[aria-current="page"]:hover {
  color: #fff;
}

/* Parent menu items */
.mod-menu>li {
  position: relative;
}

/* Hide submenus */
.mod-menu__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 0;
  background: #fff;
  list-style: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
  z-index: 1000;
}

/* Show on hover */
.mod-menu>li:hover>.mod-menu__sub {
  display: block;
}

/* Dropdown items */
.mod-menu__sub li {
  margin: 0;
}

.mod-menu__sub a {
  display: block;
  padding: 12px 15px;
  color: #000;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

/* Dropdown hover */
.mod-menu__sub a:hover {
  background: #f5f5f5;
  color: #0623BF;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 32px;
  cursor: pointer;
  color: #0623BF;
}

@media (max-width: 767px) {

  .menu-toggle {
    display: block;
    padding: 10px;
  }

  .menu-container {
    display: none;
    width: 100%;
  }

  .menu-container.open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-top: 1px solid #ddd;
  }

  .mod-menu {
    display: block;
  }

  .mod-menu>li {
    width: 100%;
  }

  .mod-menu>li>a,
  .mod-menu>li>span {
    padding: 15px;
    border-bottom: 1px solid #ddd;
  }

  /* Mobile submenu */
  .mod-menu__sub {
    position: static;
    display: none;
    box-shadow: none;
    min-width: auto;
    background: #f7f7f7;
  }

  .mod-menu>li:hover>.mod-menu__sub {
    display: none;
  }

  .mod-menu>li.open>.mod-menu__sub {
    display: block;
  }

  .mod-menu__sub a {
    padding-left: 30px;
  }

  .mod-menu,
  .mod-menu.nav,
  .mod-menu.nav-pills {
    display: block !important;
    width: 100%;
  }

  .mod-menu>li {
    display: block;
    width: 100%;
  }

  .mod-menu>li>a,
  .mod-menu>li>span {
    display: block;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }

  .mod-menu__sub {
    width: 100%;
  }

  .mod-menu__sub li {
    display: block;
  }

  /* Footer mobile */
  .footer_left {
    width: 100%;
  }

  .footer_right {
    width: 100%;
  }
}

.quicklinks ul li span,
.footermainmenu ul li span {
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
}

#mod-custom117 img {
  width: 100%;
}

/* Modal */
.sp-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.sp-modal.is-open {
  display: flex;
}

.sp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.sp-modal-dialog {
  position: relative;
  z-index: 10000;
  background: #fff;
  border-radius: 4px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
}

.sp-modal-title {
  font-weight: bold;
  font-size: 1.1rem;
}

.sp-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  color: #666;
}

.sp-modal-close:hover {
  color: #000;
}

.sp-modal-body {
  padding: 1rem;
  overflow-y: auto;
}

/* Search form */
.input_main {
  display: flex;
  gap: 0.5rem;
  margin-top: 5px;
}

.data-input {
  border: 1px solid #666 !important;
  padding: 0.4rem 0.6rem;
  flex: 1;
  margin-right: -8px;
}

.search-btn {
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}


/* Results table */
.sp-modal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sp-modal-body th,
.sp-modal-body td {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.sp-modal-body th {
  background: #f5f5f5;
  font-weight: bold;
}

.faq-accordion details {
  border-bottom: 1px solid #ddd;
  padding: 0;
}

.faq-accordion summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: bold;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: '+';
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.faq-accordion details[open] summary::after {
  content: '−';
}

.faq-accordion .faq-answer {
  padding: 0.5rem 1rem 1rem;
}

#sp-modal .inner-class-listprofile div.detail_linestate {
  margin-right: 15px;
  min-height: 150px;
}

#sp-modal .inner-class-listprofile div.detail_linestate img {
  height: auto;
}

#sp-modal .inner-class-listprofile h3 {
  display: none;
}

.details-img-custom {
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-100 {
  height: 100px;
}

.details-img-custom img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

.custom-brand-label {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.custom-brand {
  background: #fff;
  border: 1px solid #ddd;
}

.brand-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  text-decoration: none;
  color: inherit;
}

/* Logo area */
.brand-trigger img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
}

/* Tablet */
@media (max-width: 992px) {
  .custom-brand-label {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 576px) {
  .custom-brand-label {
    grid-template-columns: 1fr;
  }
}


#mainbody .guide-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

#mainbody .guide-container {
  margin: 0;
  width: auto;
  float: none;
  border: 1px solid #e4e4e4;

  display: flex;
  flex-direction: column;
  height: 100%;
}

#mainbody .guide-image {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

#mainbody .guide-image img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
}

#mainbody .guide-title {
  background: #c9c8c8;
}

#mainbody .guide-title p {
  margin: 0;
  padding: 10px;
  color: #000;
  font-weight: 600;
}

#mainbody .guide-description {
  flex-grow: 1;
}

#mainbody .guide-description p {
  margin: 0;
  padding: 10px;
  color: #000;
}

#mainbody .guide-description a {
  display: inline-block;
  margin-top: 8px;
}

/* Tablet */
@media (max-width: 991px) {
  #mainbody .guide-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 575px) {
  #mainbody .guide-main {
    grid-template-columns: 1fr;
  }
}

.industry-link-container {
  column-count: 2;
  column-gap: 3rem;
  margin-top: 3rem;
}

.industry-link-container p {
  margin: 0 0 1rem;
  break-inside: avoid;
}

.industry-link-container a {
  color: inherit;
  text-decoration: none;
  font-size: 1.1rem;
}

.industry-link-container a:hover {
  text-decoration: underline;
}

.industry-link-container a::before {
  content: "› ";
  color: #888;
}

@media (max-width: 768px) {
  .industry-link-container {
    column-count: 1;
  }
}

/* Plumbing glossary */
.plumbing-glossary .page-header>h2 {
  display: none;
}

.gnosis_word_fields {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.gnosis_word {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ddd;
}

.gnosis_definition {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.gnosis_definition .gnosis_label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.gnosis_definition p {
  margin: 0;
}

.gnosis_author,
.gnosis_created,
.gnosis_modified {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.gnosis_author .gnosis_label,
.gnosis_created .gnosis_label,
.gnosis_modified .gnosis_label {
  font-weight: 600;
  color: #333;
}

/* Add extra space for Olark widget */
@media (max-width: 1500px) {
  #footercopyright {
    padding-bottom: 60px;
  }
}