/* Public information and directory templates. Reference: HHP 1440/390 captures, 2026-10-26. */
body.mgs-site #page .mgs-taxonomy-index {
  padding-top: 20px !important;
}
body.mgs-site #page .mgs-taxonomy-index .mgs-directory-heading,
body.mgs-site #page .mgs-taxonomy-index .mgs-directory-content,
body.mgs-site #page .mgs-resources-page .mgs-information-container {
  width: 100%;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}
body.mgs-site #page .mgs-taxonomy-index .mgs-directory-heading {
  padding-right: 15px;
  padding-left: 15px;
}
body.mgs-site #page .mgs-taxonomy-index .mgs-page-title,
body.mgs-site #page .mgs-resources-page .mgs-page-title {
  padding: 0 0 8px !important;
  margin: 0 0 16.2237px !important;
  font: 400 30px/1.214 "Oswald", sans-serif;
  text-align: center !important;
}
body.mgs-site #page .mgs-directory-subtitle {
  text-align: center;
  margin: 15px 0 14.25px;
  font-size: 16px;
  line-height: 1.5;
}
body.mgs-site #page .mgs-taxonomy-index ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 33%) !important;
  gap: 45px 0 !important;
  padding: 0 0 45px !important;
  margin: 0 !important;
}
body.mgs-site #page .mgs-taxonomy-index ul.products::before,
body.mgs-site #page .mgs-taxonomy-index ul.products::after {
  content: none !important;
}
body.mgs-site #page .mgs-taxonomy-index ul.products > li {
  width: 69.6969697% !important;
  margin: 0 auto !important;
  text-align: center !important;
}
body.mgs-site #page .mgs-taxonomy-index ul.products > li > a {
  display: block;
  color: inherit;
  text-decoration: none;
}
body.mgs-site #page .mgs-taxonomy-index ul.products > li img,
body.mgs-site #page .mgs-taxonomy-index .mgs-category-empty-media {
  display: block !important;
  width: 150px !important;
  height: 150px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  object-fit: contain;
  background: #fff;
  border: 2px solid #ccc !important;
  border-radius: 0 !important;
  box-shadow: 0 0 10px #ccc;
}
body.mgs-site #page .mgs-taxonomy-index .woocommerce-loop-category__title {
  width: calc(100% - 20px) !important;
  height: 35px !important;
  min-height: 35px !important;
  margin: 15px 10px 0 !important;
  padding: 4px 15px 5px !important;
  font: 400 16px/28px "Oswald", sans-serif !important;
  outline: 2px solid #ccc;
  outline-offset: 6px;
  background: var(--mgs-blue) !important;
  border-radius: 5px !important;
  color: #fff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.mgs-site #page .mgs-part-directory .woocommerce-loop-category__title {
  font-size: 14px !important;
}
body.mgs-site #page .mgs-directory-content:empty {
  display: none;
}

/* Resource landing follows the reference's search, five topic cards, brand cards and guide text. */
body.mgs-site #page .mgs-resources-page {
  padding: 28px 0 35px;
  margin: 0;
}
body.mgs-site #page .mgs-resources-page .mgs-resource-search {
  display: flex;
  width: 383.125px;
  max-width: calc(100% - 20px);
  min-height: 36px;
  height: 36px;
  margin: 0 auto 18.6875px;
}
body.mgs-site #page .mgs-resources-page .mgs-resource-search input {
  min-width: 0;
  width: 0;
  flex: 1;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid #ccc;
  border-right: 0;
  border-radius: 0 !important;
  box-shadow: none;
  font: 400 14px/14px "Oswald", sans-serif;
}
body.mgs-site #page .mgs-resources-page .mgs-resource-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 0;
  border-radius: 0 !important;
  color: #fff;
  background: var(--mgs-blue);
}
body.mgs-site #page .mgs-resources-page .mgs-resource-search .mgs-icon {
  width: 17px;
  height: 17px;
}
body.mgs-site #page .mgs-info-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 33%);
  gap: 43px 0;
  padding: 0 0 43px;
  margin: 0;
  list-style: none;
}
body.mgs-site #page .mgs-info-tile-grid > li {
  display: block;
  width: 69.6969697%;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  min-width: 0;
}
body.mgs-site #page .mgs-info-tile-grid > li > a {
  display: block;
  color: inherit;
  text-align: center;
  text-decoration: none;
}
body.mgs-site #page .mgs-info-tile-grid img,
body.mgs-site #page .mgs-info-tile-grid .mgs-info-empty-image {
  display: block;
  width: 150px;
  height: 150px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 0;
  box-shadow: 0 0 10px #ccc;
}
body.mgs-site #page .mgs-info-tile-title {
  display: block;
  width: calc(100% - 20px);
  height: 35px;
  min-height: 35px;
  padding: 4px 15px 5px !important;
  margin: 15px 10px 0;
  border: 0;
  outline: 2px solid #ccc;
  outline-offset: 6px;
  border-radius: 5px;
  background: var(--mgs-blue);
  color: #fff !important;
  font: 400 16px/28px "Oswald", sans-serif;
  font-weight: 400 !important;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
body.mgs-site #page .mgs-resource-brand-section {
  padding: 0 15px;
}
body.mgs-site #page .mgs-resource-brand-section > h2 {
  margin: 24px 0 12.979px;
  padding: 0 0 8px !important;
  font: 400 24px/1.214 "Oswald", sans-serif !important;
  text-align: center;
}
body.mgs-site #page .mgs-resource-more-brands {
  text-align: center;
  margin: 0 0 30px;
}
body.mgs-site #page .mgs-resource-introduction {
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  padding: 21px;
}
body.mgs-site #page .mgs-resource-introduction > :last-child {
  margin-bottom: 0;
}
body.mgs-site #page .mgs-resource-introduction h2 {
  font: 400 24px/1.214 "Oswald", sans-serif !important;
  margin: 10px 0 12.979px;
}
body.mgs-site #page .mgs-resource-guide-links {
  margin: 12px 0 20px;
  padding-left: 22px;
}
body.mgs-site #page .mgs-resource-guide-links li {
  padding: 4px 0;
}

/* Search and category views use published articles; empty collections retain useful actions. */
body.mgs-site #page .mgs-resource-results .mgs-resource-search {
  margin-bottom: 25px;
}
body.mgs-site #page .mgs-resource-tabs {
  justify-content: center;
  gap: 8px;
  margin: 20px 0 25px;
}
body.mgs-site #page .mgs-resource-tabs a {
  font-size: 14px;
  line-height: 1.5;
}
body.mgs-site #page .mgs-resource-tabs a[aria-current="page"] {
  color: var(--mgs-blue);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--mgs-blue);
}
body.mgs-site #page .mgs-resource-page-copy {
  margin-bottom: 25px;
}
body.mgs-site #page .mgs-resource-results .mgs-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 25px 0;
}
body.mgs-site #page .mgs-resource-results .mgs-article-card {
  min-width: 0;
  padding: 0 0 25px;
  margin: 0;
  border-bottom: 1px solid #ddd;
}
body.mgs-site #page .mgs-resource-results .mgs-article-card img {
  width: 100%;
  height: auto;
  margin: 0 0 20px;
}
body.mgs-site #page .mgs-resource-results .mgs-article-card h2 {
  font: 400 24px/1.3 "Oswald", sans-serif;
  margin: 0 0 8px;
}
body.mgs-site #page .mgs-resource-results .mgs-article-date {
  margin: 0 0 15px;
  color: #666;
  font-size: 14px;
}
body.mgs-site #page .mgs-resource-results .mgs-empty-state {
  text-align: center;
  padding: 30px 15px 40px;
  margin: 20px 0;
  border: 1px solid #ddd;
}
body.mgs-site #page .mgs-resources-page a:focus-visible,
body.mgs-site #page .mgs-taxonomy-index a:focus-visible {
  outline: 3px solid var(--mgs-blue);
  outline-offset: 8px;
}

@media (min-width: 1500px) {
  body.mgs-site #page .mgs-taxonomy-index ul.products {
    grid-template-columns: repeat(6, 16.6666667%) !important;
  }
  body.mgs-site #page .mgs-taxonomy-index ul.products > li {
    width: 87.6% !important;
  }
  body.mgs-site #page .mgs-info-tile-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 43px 2%;
  }
  body.mgs-site #page .mgs-info-tile-grid > li {
    width: 14.6%;
    margin: 0;
  }
}
@media (min-width: 569px) and (max-width: 1199px) {
  body.mgs-site #page .mgs-taxonomy-index ul.products > li {
    width: 93.9393939% !important;
  }
  body.mgs-site #page .mgs-info-tile-grid > li {
    width: 93.9393939%;
  }
}
@media (max-width: 568px) {
  body.mgs-site #page .mgs-taxonomy-index {
    padding-top: 0 !important;
    margin-top: -4.484375px !important;
  }
  body.mgs-site #page .mgs-directory-subtitle {
    margin-bottom: 12.21875px;
  }
  body.mgs-site #page .mgs-taxonomy-index .mgs-directory-heading {
    padding-right: 0;
    padding-left: 0;
  }
  body.mgs-site #page .mgs-taxonomy-index .mgs-page-title,
  body.mgs-site #page .mgs-resources-page .mgs-page-title {
    margin-bottom: 12.979px !important;
    font-size: 24px;
    line-height: 1.214;
  }
  body.mgs-site #page .mgs-taxonomy-index ul.products {
    grid-template-columns: repeat(2, 50%) !important;
  }
  body.mgs-site #page .mgs-brand-directory ul.products {
    row-gap: 25px !important;
  }
  body.mgs-site #page .mgs-taxonomy-index ul.products > li {
    width: 80% !important;
  }
  body.mgs-site #page .mgs-taxonomy-index ul.products > li img,
  body.mgs-site #page .mgs-taxonomy-index .mgs-category-empty-media {
    width: 144px !important;
    height: 144px !important;
  }
  body.mgs-site #page .mgs-taxonomy-index .woocommerce-loop-category__title {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }
  body.mgs-site #page .mgs-resources-page {
    padding-top: 0;
    margin-top: -4.484375px;
  }
  body.mgs-site #page .mgs-resource-library .mgs-resource-search {
    width: calc(100% - 20px);
    max-width: none;
    margin-top: 61.97px;
    margin-bottom: 54px;
  }
  body.mgs-site #page .mgs-info-tile-grid {
    grid-template-columns: repeat(2, 50%);
    gap: 44px 0;
    padding-bottom: 44px;
  }
  body.mgs-site #page .mgs-info-tile-grid > li {
    width: 80%;
  }
  body.mgs-site #page .mgs-info-tile-title {
    padding-right: 7px !important;
    padding-left: 7px !important;
    font-size: 14px;
  }
  body.mgs-site #page .mgs-resource-brand-section .mgs-info-tile-grid {
    row-gap: 24px;
    padding-bottom: 24px;
  }
  body.mgs-site #page .mgs-resource-brand-section .mgs-info-tile-grid img,
  body.mgs-site #page .mgs-resource-brand-section .mgs-info-empty-image {
    width: 144px;
    height: 144px;
  }
  body.mgs-site #page .mgs-resource-introduction {
    padding: 21px;
  }
  body.mgs-site #page .mgs-resource-results .mgs-article-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}
