/* MCM family navigation: four headings between the logo and Menu button. */
.mcmenav-header {
  --nav-accent: var(--copper-dark, #8d4d2c);
  --nav-text: var(--ink, #25292c);
  --nav-line: var(--line, #e5ddd3);
  --nav-paper: var(--paper, #fffdfa);
  overflow: visible;
  border-bottom: 1px solid var(--nav-line);
  box-shadow: 0 3px 18px rgba(37, 41, 44, .035);
}
.mcmenav-shell { min-height: 94px; display: flex; align-items: center; gap: 22px; position: relative; }
.mcmenav-brand { display: flex; align-items: center; width: 230px; flex: 0 0 auto; text-decoration: none; }
.mcmenav-brand img { display: block; width: 100%; max-height: 76px; object-fit: contain; object-position: left center; }
.mcmenav-main { flex: 1 1 auto; min-width: 0; }
.mcmenav-header ul { list-style: none; padding: 0; margin: 0; }
.mcmenav-list { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.mcmenav-item { position: relative; }
.mcmenav-group { position: relative; }
.mcmenav-header summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mcmenav-header summary::-webkit-details-marker { display: none; }
.mcmenav-header summary::marker { content: ''; }
.mcmenav-header details:not([open]) > :not(summary) { display: none; }
.mcmenav-group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 48px; padding: 12px 10px; border-radius: 10px;
  color: var(--nav-text); font-size: .94rem; line-height: 1.35;
  font-weight: 750; white-space: nowrap; transition: color .16s ease, background .16s ease;
}
.mcmenav-group > summary:hover, .mcmenav-group[open] > summary { background: #f5ede4; color: var(--nav-accent); }
.mcmenav-item.is-current > .mcmenav-group > summary { color: var(--nav-accent); box-shadow: inset 0 -2px var(--nav-accent); }
.mcmenav-chevron { flex: 0 0 14px; transition: transform .16s ease; }
.mcmenav-group[open] > summary .mcmenav-chevron { transform: rotate(180deg); }
.mcmenav-header a:focus-visible, .mcmenav-header summary:focus-visible { outline: 3px solid var(--nav-accent); outline-offset: 4px; }
.mcmenav-header .mcmenav-submenu {
  position: absolute; left: 0; top: calc(100% + 12px); z-index: 110;
  width: 302px; max-width: calc(100vw - 32px); padding: 9px;
  border: 1px solid var(--nav-line); border-top: 3px solid var(--nav-accent);
  border-radius: 0 0 15px 15px; background: var(--nav-paper);
  box-shadow: 0 20px 40px rgba(37, 41, 44, .13);
}
.mcmenav-main > .mcmenav-list > .mcmenav-item:last-child .mcmenav-submenu { left: auto; right: 0; }
.mcmenav-submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.mcmenav-header .mcmenav-submenu a, .mcmenav-quick-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; padding: 10px 12px; border-radius: 8px;
  font-size: .92rem; font-weight: 600; line-height: 1.4; text-decoration: none;
  color: var(--nav-text); overflow-wrap: anywhere;
}
.mcmenav-header .mcmenav-submenu a:hover, .mcmenav-header .mcmenav-submenu a[aria-current="page"],
.mcmenav-quick-links a:hover { background: #f5ede4; color: var(--nav-accent); }
.mcmenav-header .mcmenav-about { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--nav-line); }
.mcmenav-header .mcmenav-about a { color: var(--nav-accent); font-size: .87rem; }
.mcmenav-more { position: relative; flex: 0 0 auto; margin-left: auto; }
.mcmenav-toggle {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 11px 17px; border: 1px solid var(--nav-accent);
  border-radius: 12px; background: var(--nav-accent); color: #fff;
  font-weight: 750; font-size: .94rem; line-height: 1.3;
  transition: background .16s ease, box-shadow .16s ease;
}
.mcmenav-toggle:hover, .mcmenav-more[open] > .mcmenav-toggle { background: #713a21; box-shadow: 0 5px 14px rgba(141, 77, 44, .17); }
.mcmenav-menu-icon { flex-shrink: 0; }
.mcmenav-extra {
  position: absolute; top: calc(100% + 16px); right: 0; z-index: 120;
  width: 324px; max-width: calc(100vw - 32px); padding: 16px;
  border: 1px solid var(--nav-line); border-top: 3px solid var(--nav-accent);
  border-radius: 0 0 15px 15px; background: var(--nav-paper);
  box-shadow: 0 20px 40px rgba(37, 41, 44, .15);
  max-height: 72vh; max-height: min(620px, 72dvh); overflow-y: auto; overscroll-behavior: contain;
}
.mcmenav-mobile-only { display: none; }
.mcmenav-panel-title { margin: 2px 10px 12px; font-family: Georgia, serif; font-size: 1rem; color: var(--nav-accent); }
.mcmenav-header .mcmenav-quick-links .mcmenav-contact { margin-bottom: 7px; background: var(--nav-accent); color: #fff; padding: 13px 12px; }
.mcmenav-header .mcmenav-quick-links .mcmenav-contact:hover { background: #713a21; color: #fff; }
body.admin-bar .mcmenav-header { top: 32px; }
@media (max-width: 1080px) and (min-width: 1041px) {
  .mcmenav-shell { gap: 14px; }
  .mcmenav-brand { width: 215px; }
  .mcmenav-group > summary { font-size: .9rem; padding-inline: 8px; }
}
@media (max-width: 1040px) {
  .mcmenav-shell { min-height: 82px; gap: 16px; }
  .mcmenav-brand { width: 230px; }
  .mcmenav-main { display: none; }
  .mcmenav-more { position: static; }
  .mcmenav-extra { top: calc(100% + 1px); right: 0; width: 390px; max-width: 100%; padding: 12px; }
  .mcmenav-mobile-only { display: block; }
  .mcmenav-mobile-only .mcmenav-list { display: block; }
  .mcmenav-mobile-only .mcmenav-item { border-bottom: 1px solid var(--nav-line); }
  .mcmenav-mobile-only .mcmenav-group > summary { min-height: 51px; padding: 14px 12px; font-size: 1rem; }
  .mcmenav-mobile-only .mcmenav-submenu { position: static; width: auto; max-width: none; margin: 0 0 8px; padding: 1px 6px 5px 15px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .mcmenav-mobile-only .mcmenav-submenu::before { display: none; }
  .mcmenav-mobile-only .mcmenav-submenu a { min-height: 44px; }
  .mcmenav-extra .mcmenav-panel-title { margin-top: 18px; }
}
@media (max-width: 782px) { body.admin-bar .mcmenav-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .mcmenav-header { top: 0; } }
@media (max-width: 480px) {
  .mcmenav-shell { min-height: 76px; gap: 12px; }
  .mcmenav-brand { width: 200px; max-width: calc(100% - 105px); }
  .mcmenav-toggle { min-height: 44px; gap: 7px; padding: 10px 12px; }
  .mcmenav-extra { width: 100%; max-height: 70vh; max-height: 70dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .mcmenav-header *, .mcmenav-header *::before { transition: none !important; }
}
@media print { .mcmenav-main, .mcmenav-more { display: none; } .mcmenav-header { position: static; box-shadow: none; } }
