/* =========================
   MOC SEARCH REFINEMENT
   ========================= */

/* ---------- Search block on homepage ---------- */
.wp-block-search {
  margin: 22px 0 34px 0 !important;
}

.wp-block-search__inside-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 !important;
  border: 1px solid #e6e6df !important;
  border-radius: 14px !important;
  background: #f9f8f3 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.wp-block-search__input {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px !important;
  border: 0 !important;
  background: transparent !important;
  color: #5f7f6e !important;
  font-size: 17px !important;
  line-height: 1.4;
  box-shadow: none !important;
  outline: none !important;
}

.wp-block-search__input::placeholder {
  color: #97a493 !important;
  opacity: 1;
}

.wp-block-search__button {
  margin: 0 8px 0 0 !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #dfe7de !important;
  color: #5f7f6e !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.wp-block-search__button:hover {
  background: #d5dfd4 !important;
}

/* Focus state */
.wp-block-search__inside-wrapper:focus-within {
  border-color: #cdd8cb !important;
  background: #fcfcf8 !important;
}

/* ---------- Search results page ---------- */
.search.search-results .site-main,
.search-results .site-main {
  max-width: 760px;
}

.search.search-results .entry-title,
.search-results .entry-title,
.search.search-results h2,
.search-results h2 {
  margin: 0 0 10px 0 !important;
  font-size: 34px !important;
  line-height: 1.15;
  color: #5f7f6e !important;
}

.search.search-results article,
.search-results article {
  margin-bottom: 28px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid #ecece7 !important;
}

.search.search-results article:last-of-type,
.search-results article:last-of-type {
  border-bottom: 0 !important;
}

.search.search-results article a,
.search-results article a {
  color: #5f7f6e !important;
  text-decoration: none !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3;
}

.search.search-results article a:hover,
.search-results article a:hover {
  opacity: 0.85;
}

.search.search-results .entry-summary,
.search-results .entry-summary,
.search.search-results article p,
.search-results article p {
  margin-top: 10px !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #4f4f4f !important;
}

.search.search-results .page-header,
.search-results .page-header {
  margin-bottom: 28px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #ecece7 !important;
}

.search.search-results .page-title,
.search-results .page-title {
  font-size: 24px !important;
  line-height: 1.25;
  color: #5f7f6e !important;
  margin: 0 !important;
}

/* Hide weird extra decorative/menu-looking bits on search if theme outputs them */
.search.search-results .menu-toggle,
.search-results .menu-toggle {
  margin-bottom: 12px;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .wp-block-search {
    margin: 18px 0 28px 0 !important;
  }

  .wp-block-search__inside-wrapper {
    border-radius: 14px !important;
  }

  .wp-block-search__input {
    min-height: 54px;
    font-size: 16px !important;
    padding: 13px 16px !important;
  }

  .wp-block-search__button {
    padding: 9px 12px !important;
    font-size: 14px !important;
  }

  .search.search-results .page-title,
  .search-results .page-title {
    font-size: 20px !important;
  }

  .search.search-results .entry-title,
  .search-results .entry-title,
  .search.search-results h2,
  .search-results h2 {
    font-size: 28px !important;
  }

  .search.search-results article a,
  .search-results article a {
    font-size: 17px !important;
  }

  .search.search-results .entry-summary,
  .search-results .entry-summary,
  .search.search-results article p,
  .search-results article p {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }
/* =========================
   MOC HOMEPAGE LIST POLISH
   ========================= */

/* Main details row */
.moc-details summary {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;

  width: 100%;
  padding: 20px 0 !important;
  border-bottom: 1px solid #ecece7 !important;

  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #5f7f6e !important;

  cursor: pointer;
  background: transparent !important;
  box-sizing: border-box;
}

/* Remove native marker */
.moc-details summary::-webkit-details-marker {
  display: none !important;
}

.moc-details summary::marker {
  display: none !important;
  content: "" !important;
}

/* Arrow pushed to far right */
.moc-details summary::after {
  content: "›";
  margin-left: auto !important;
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

/* Rotate when open */
.moc-details[open] summary::after {
  transform: rotate(90deg);
}

/* Inner opened content */
.moc-details > *:not(summary) {
  padding: 6px 0 16px 0 !important;
  font-size: 16px;
  line-height: 1.6;
  color: #6f8f7e;
}
	/* =========================
   MOC HOMEPAGE LIST POLISH
   ========================= */

/* Main details row */
.moc-details summary {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;

  width: 100%;
  padding: 20px 0 !important;
  border-bottom: 1px solid #ecece7 !important;

  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #5f7f6e !important;

  cursor: pointer;
  background: transparent !important;
  box-sizing: border-box;
}

/* Remove native marker */
.moc-details summary::-webkit-details-marker {
  display: none !important;
}

.moc-details summary::marker {
  display: none !important;
  content: "" !important;
}

/* Arrow pushed to far right */
.moc-details summary::after {
  content: "›";
  margin-left: auto !important;
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

/* Rotate when open */
.moc-details[open] summary::after {
  transform: rotate(90deg);
}

/* Inner opened content */
.moc-details > *:not(summary) {
  padding: 6px 0 16px 0 !important;
  font-size: 16px;
  line-height: 1.6;
  color: #6f8f7e;
}/* Equal vertical rhythm for newsletter section */
.newsletter-section,
.fluentform_wrapper,
.fluentform {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}.newsletter-section h2,
.newsletter-section p,
.fluentform_wrapper p {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.fluentform_wrapper form {
  margin-bottom: 0 !important;
}
	/* SPACE ABOVE FOOTER */
.site-footer {
  margin-top: 40px !important;
}/* Remove duplicate menu on all pages except homepage */

body:not(.home) .main-navigation.toggled,
body:not(.home) .slideout-navigation,
body:not(.home) #mobile-menu {
  display: none !important;
}/* =========================
   MOC UNIFIED NAV + PAGE UI
   ========================= */


/* ---------- Shared page rhythm ---------- */

h1 {
  margin-bottom: 6px;
}

h2 {
  margin-top: 34px !important;
  margin-bottom: 10px !important;
}

.hero-subtitle {
  margin-bottom: 18px;
  opacity: 0.72;
  font-size: 14px;
}


/* ---------- Shared row / menu feel ---------- */
/* Use this for Details rows on homepage and any similar expandable rows */

.moc-details summary {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;

  width: 100%;
  padding: 18px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #ecece7 !important;
  background: transparent !important;
  box-sizing: border-box;

  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #5f7f6e !important;

  cursor: pointer !important;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.moc-details summary:hover {
  background-color: transparent !important;
  opacity: 0.88;
}

.moc-details summary:active {
  opacity: 0.75;
}

/* remove native marker */
.moc-details summary::-webkit-details-marker {
  display: none !important;
}

.moc-details summary::marker {
  display: none !important;
  content: "" !important;
}

/* right-side arrow */
.moc-details summary::after {
  content: "›";
  margin-left: auto !important;
  flex-shrink: 0 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  opacity: 0.58 !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.moc-details[open] summary::after {
  transform: rotate(90deg);
  opacity: 0.78 !important;
}

/* inner opened content */
.moc-details > *:not(summary) {
  padding: 6px 0 14px 0 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #6f8f7e !important;
  box-sizing: border-box;
}

.moc-details ul,
.moc-details ol {
  margin: 0 !important;
  padding-left: 18px !important;
}

.moc-details li {
  margin-bottom: 6px !important;
}


/* ---------- Shared linked rows ---------- */
/* Works for complaint system menu rows and similar linked lists */

.entry-content h2 a,
.entry-content h3 a {
  color: #5f7f6e;
  text-decoration: none !important;
}

.entry-content h2 a:hover,
.entry-content h3 a:hover {
  opacity: 0.86;
}


/* ---------- Complaints page menu feel ---------- */
/* Replace 1229 with your actual Complaints page ID if you want this page-only.
   If you don't know it yet, leave as-is for now and test. */

.page-id-1229 h2,
.page-id-1229 h3 {
  border-bottom: 1px solid #ecece7;
}

.page-id-1229 h2 {
  margin: 0 !important;
  padding: 18px 0 !important;
  font-size: 21px !important;
  line-height: 1.3 !important;
}

.page-id-1229 h2 a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
}

.page-id-1229 h2 a::after {
  content: "›";
  margin-left: 16px;
  flex-shrink: 0;
  opacity: 0.58;
  font-size: 22px;
  line-height: 1;
}

.page-id-1229 h3 {
  margin-top: 30px !important;
  margin-bottom: 0 !important;
  padding-bottom: 10px !important;
  font-size: 17px !important;
  color: #7a8979 !important;
}


/* ---------- Search on homepage only ---------- */

.home .wp-block-search {
  margin: 20px 0 30px 0 !important;
}

.home .wp-block-search__inside-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #e6e6df !important;
  border-radius: 14px !important;
  background: #f9f8f3 !important;
  overflow: hidden;
  box-shadow: none !important;
}

.home .wp-block-search__input {
  min-height: 56px;
  padding: 14px 18px !important;
  border: 0 !important;
  background: transparent !important;
  color: #5f7f6e !important;
  font-size: 17px !important;
  box-shadow: none !important;
}

.home .wp-block-search__input::placeholder {
  color: #97a493 !important;
  opacity: 1;
}

.home .wp-block-search__button {
  margin-right: 8px !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #dfe7de !important;
  color: #5f7f6e !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.home .wp-block-search__button:hover {
  background: #d5dfd4 !important;
}


/* ---------- Newsletter spacing ---------- */

.fluentform_wrapper,
.fluentform {
  margin-bottom: 38px !important;
}

.site-footer {
  margin-top: 18px !important;
}


/* ---------- Hide duplicated menu / off-canvas output ---------- */

body:not(.home) .main-navigation.toggled,
body:not(.home) .slideout-navigation,
body:not(.home) #mobile-menu {
  display: none !important;
}

/* stronger fallback if duplicate nav still appears */
body:not(.home) .main-navigation:not(:first-of-type) {
  display: none !important;
}


/* ---------- Mobile ---------- */

@media (max-width: 768px) {
  h1 {
    font-size: 28px !important;
    margin-bottom: 5px !important;
  }

  h2 {
    margin-top: 28px !important;
    margin-bottom: 8px !important;
  }

  .hero-subtitle {
    font-size: 13px !important;
    margin-bottom: 14px !important;
  }

  .moc-details summary {
    padding: 16px 0 !important;
    font-size: 18px !important;
  }

  .moc-details > *:not(summary) {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .page-id-1229 h2 {
    padding: 16px 0 !important;
    font-size: 19px !important;
  }

  .page-id-1229 h3 {
    margin-top: 24px !important;
    font-size: 16px !important;
  }

  .home .wp-block-search__input {
    min-height: 54px;
    font-size: 16px !important;
    padding: 13px 16px !important;
  }

  .home .wp-block-search__button {
    padding: 9px 12px !important;
    font-size: 14px !important;
  }
}