
:root{
  --mwh-teal:#134558;
  --mwh-teal-deep:#0d3544;
  --mwh-orange:#f29a3f;
  --mwh-cream:#fffaf2;
  --mwh-ink:#223b45;
  --mwh-muted:#64777e;
  --mwh-line:rgba(19,69,88,.18);
}

.mwh-glossary{
  max-width:1060px!important;
  margin:0 auto!important;
  padding:24px clamp(18px,3vw,28px) 72px!important;
  color:var(--mwh-ink)!important;
}
.mwh-glossary__tools{margin:0 0 18px!important}
.mwh-glossary__editor-tools{
  margin:0 0 6px!important;text-align:right!important;
  font-size:11px!important;line-height:1.2!important;font-weight:700!important;color:var(--mwh-muted)!important
}
.mwh-glossary__editor-tools a,.mwh-dictionary-edit{color:var(--mwh-orange)!important;text-decoration:none!important}

.mwh-glossary__search-wrap{position:relative!important;max-width:650px!important;margin:0 auto 11px!important}
.mwh-glossary__search-wrap svg{
  position:absolute!important;left:15px!important;top:50%!important;transform:translateY(-50%)!important;
  fill:var(--mwh-teal)!important;pointer-events:none!important
}
.mwh-glossary__search-wrap input{
  box-sizing:border-box!important;width:100%!important;min-height:46px!important;
  padding:9px 15px 9px 46px!important;border:1px solid var(--mwh-line)!important;
  border-radius:5px!important;background:#fff!important;color:var(--mwh-ink)!important;
  font:inherit!important;font-size:15px!important;outline:none!important;box-shadow:none!important
}
.mwh-glossary__search-wrap input:focus{
  border-color:var(--mwh-orange)!important;box-shadow:0 0 0 2px rgba(242,154,63,.15)!important
}

.mwh-glossary__alphabet{
  display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:1px!important;
  margin:5px 0!important;padding:0!important
}
.mwh-glossary__alphabet button{
  border:0!important;background:transparent!important;color:var(--mwh-teal)!important;
  min-width:25px!important;min-height:27px!important;padding:2px 5px!important;
  font:inherit!important;font-size:12px!important;font-weight:800!important;cursor:pointer!important;border-radius:2px!important
}
.mwh-glossary__alphabet button:hover:not(:disabled),
.mwh-glossary__alphabet button:focus-visible{background:rgba(19,69,88,.07)!important}
.mwh-glossary__alphabet button.is-active{background:var(--mwh-teal)!important;color:#fff!important}
.mwh-glossary__alphabet button:disabled{opacity:.20!important;cursor:not-allowed!important}
.mwh-glossary__count{
  text-align:center!important;min-height:1em!important;margin:5px 0 0!important;
  color:var(--mwh-muted)!important;font-size:11px!important
}

.mwh-dictionary{
  margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important
}
.mwh-dictionary-section{
  display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;gap:12px!important;
  margin:0!important;padding:12px 0 16px!important;background:transparent!important;
  border:0!important;border-top:1px solid var(--mwh-line)!important;border-radius:0!important;box-shadow:none!important
}
.mwh-dictionary-section:first-child{border-top:2px solid var(--mwh-teal)!important}
.mwh-dictionary-section__header{margin:0!important;padding:0!important}
.mwh-dictionary-letter{
  position:sticky!important;top:12px!important;margin:0!important;padding:0!important;color:var(--mwh-teal)!important;
  font-family:Georgia,"Times New Roman",serif!important;font-size:38px!important;font-weight:400!important;
  line-height:.88!important;letter-spacing:-.06em!important
}
.mwh-dictionary-letter::after{
  content:""!important;display:block!important;width:17px!important;height:2px!important;
  margin:5px 0 0 1px!important;background:var(--mwh-orange)!important
}
.mwh-dictionary-list{
  display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important
}
.mwh-dictionary-item{
  display:block!important;margin:0!important;padding:1px 0 2px!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;transform:none!important;
  line-height:1.28!important;min-height:0!important
}
.mwh-dictionary-term,.mwh-dictionary-definition{
  display:inline!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important
}
.mwh-dictionary-term{color:var(--mwh-teal-deep)!important}
.mwh-dictionary-term__name{
  font-family:Georgia,"Times New Roman",serif!important;font-size:15.8px!important;
  font-weight:700!important;line-height:1.28!important;letter-spacing:-.005em!important
}
.mwh-dictionary-term__acronym{
  color:var(--mwh-orange)!important;font-size:10.5px!important;font-weight:850!important;
  letter-spacing:.02em!important;white-space:nowrap!important
}
.mwh-dictionary-term__acronym::before{content:" ("!important}
.mwh-dictionary-term__acronym::after{content:")"!important}
.mwh-dictionary-separator{color:var(--mwh-orange)!important;font-weight:700!important}
.mwh-dictionary-definition{
  color:#304b55!important;font-size:14px!important;line-height:1.28!important
}
.mwh-dictionary-definition__text{display:inline!important}
.mwh-dictionary-topic{display:none!important}
.mwh-dictionary-edit{
  display:inline-block!important;margin-left:6px!important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:9px!important;font-weight:850!important;letter-spacing:.04em!important;text-transform:uppercase!important
}
.mwh-dictionary-edit:hover,.mwh-glossary__editor-tools a:hover{text-decoration:underline!important}
.mwh-glossary__empty{
  margin:20px 0!important;padding:10px 0!important;border-top:2px solid var(--mwh-teal)!important;
  border-bottom:1px solid var(--mwh-line)!important
}
.mwh-glossary__empty strong,.mwh-glossary__empty span{display:block!important}
.mwh-glossary__empty span{margin-top:3px!important;color:var(--mwh-muted)!important}

/* Site-wide glossary hints */
.mwh-term{
  display:inline!important;padding:0!important;margin:0!important;border:0!important;
  border-bottom:2px dotted var(--mwh-orange)!important;background:transparent!important;
  color:inherit!important;font:inherit!important;line-height:inherit!important;cursor:help!important;text-align:inherit!important
}
.mwh-term::after{
  content:"?"!important;display:inline-grid!important;place-items:center!important;width:1.05em!important;height:1.05em!important;
  margin-left:.18em!important;border-radius:50%!important;background:rgba(242,154,63,.18)!important;
  color:var(--mwh-teal)!important;font-size:.64em!important;font-weight:900!important;vertical-align:.18em!important
}
.mwh-term:focus-visible{outline:3px solid rgba(242,154,63,.45)!important;outline-offset:3px!important;border-radius:3px!important}
.mwh-tooltip{
  position:fixed!important;z-index:999999!important;width:min(340px,calc(100vw - 30px))!important;
  padding:18px 19px 17px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:16px!important;
  background:var(--mwh-teal-deep)!important;color:var(--mwh-cream)!important;box-shadow:0 20px 60px rgba(0,0,0,.22)!important;
  opacity:0;transform:translateY(5px);pointer-events:none;transition:opacity .13s ease,transform .13s ease
}
.mwh-tooltip.is-open{opacity:1!important;transform:translateY(0)!important;pointer-events:auto!important}
.mwh-tooltip__term{display:block!important;padding-right:28px!important;color:#fff!important;font-size:17px!important;font-weight:850!important;line-height:1.15!important}
.mwh-tooltip__text{display:block!important;margin-top:8px!important;font-size:14px!important;line-height:1.5!important;color:rgba(255,250,242,.91)!important}
.mwh-tooltip__link{display:inline-block!important;margin-top:11px!important;color:#ffd09d!important;font-size:13px!important;font-weight:800!important;text-underline-offset:3px!important}
.mwh-tooltip__close{position:absolute!important;top:10px!important;right:10px!important;display:grid!important;place-items:center!important;width:28px!important;height:28px!important;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.10)!important;color:#fff!important;font-size:18px!important;cursor:pointer!important}

@media(max-width:780px){
  .mwh-glossary{padding:18px 15px 58px!important}
  .mwh-glossary__editor-tools{text-align:left!important}
  .mwh-dictionary-section{grid-template-columns:32px minmax(0,1fr)!important;gap:9px!important;padding:10px 0 13px!important}
  .mwh-dictionary-letter{font-size:31px!important;top:10px!important}
  .mwh-dictionary-item{padding:1px 0!important;line-height:1.3!important}
  .mwh-dictionary-term__name{font-size:15px!important}
  .mwh-dictionary-definition{font-size:13.5px!important}
  .mwh-tooltip{left:15px!important;right:15px!important;bottom:15px!important;top:auto!important;width:auto!important}
}
@media(prefers-reduced-motion:reduce){.mwh-tooltip{transition:none!important}}


/* v3: printed-dictionary density. These rules intentionally override theme block heading styles. */
body .mwh-glossary{
  max-width:1080px!important;
  padding-top:14px!important;
}
body .mwh-dictionary-section{
  grid-template-columns:36px minmax(0,1fr)!important;
  gap:9px!important;
  padding:8px 0 10px!important;
}
body .mwh-dictionary-section__header,
body .mwh-dictionary-section__header h2,
body h2.mwh-dictionary-letter{
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:30px!important;
  font-weight:400!important;
  line-height:.92!important;
  letter-spacing:-.05em!important;
  text-transform:none!important;
}
body .mwh-dictionary-letter::after{
  width:14px!important;
  height:2px!important;
  margin-top:4px!important;
}
body .mwh-dictionary-list{
  margin:0!important;
  padding:0!important;
}
body .mwh-dictionary-item{
  margin:0!important;
  padding:0 0 1px!important;
  min-height:0!important;
  line-height:1.22!important;
}
body .mwh-dictionary-term,
body .mwh-dictionary-definition{
  margin:0!important;
  padding:0!important;
  line-height:1.22!important;
}
body .mwh-dictionary-term__name{
  font-size:14.5px!important;
  line-height:1.22!important;
}
body .mwh-dictionary-term__acronym{
  font-size:10px!important;
}
body .mwh-dictionary-definition{
  font-size:13.5px!important;
  line-height:1.22!important;
}
body .mwh-glossary__search-wrap{
  margin-bottom:8px!important;
}
body .mwh-glossary__alphabet{
  margin:3px 0!important;
}
body .mwh-glossary__count{
  margin-top:3px!important;
}
@media(max-width:780px){
  body .mwh-dictionary-section{
    grid-template-columns:28px minmax(0,1fr)!important;
    gap:7px!important;
    padding:7px 0 9px!important;
  }
  body .mwh-dictionary-section__header h2,
  body h2.mwh-dictionary-letter{
    font-size:26px!important;
  }
  body .mwh-dictionary-term__name{font-size:14px!important}
  body .mwh-dictionary-definition{font-size:13px!important}
}


/* v3.1 – compact printed-dictionary layout */
body.mwh-glossary-page .mwh-glossary{
  max-width:1040px!important;
  padding:12px clamp(16px,2.5vw,24px) 56px!important;
}
body.mwh-glossary-page .mwh-glossary__tools{
  margin:0 0 10px!important;
}
body.mwh-glossary-page .mwh-glossary__search-wrap{
  max-width:620px!important;
  margin:0 auto 6px!important;
}
body.mwh-glossary-page .mwh-glossary__search-wrap input{
  min-height:42px!important;
  padding-top:7px!important;
  padding-bottom:7px!important;
  font-size:14px!important;
}
body.mwh-glossary-page .mwh-glossary__alphabet{
  margin:2px 0!important;
  gap:0!important;
}
body.mwh-glossary-page .mwh-glossary__alphabet button{
  min-width:23px!important;
  min-height:24px!important;
  padding:1px 4px!important;
  font-size:11px!important;
}
body.mwh-glossary-page .mwh-glossary__count{
  margin:2px 0 0!important;
  font-size:10px!important;
}
body.mwh-glossary-page .mwh-dictionary-section{
  grid-template-columns:30px minmax(0,1fr)!important;
  gap:7px!important;
  padding:6px 0 7px!important;
}
body.mwh-glossary-page h2.mwh-dictionary-letter{
  position:static!important;
  font-size:23px!important;
  line-height:1!important;
}
body.mwh-glossary-page .mwh-dictionary-letter::after{
  width:11px!important;
  margin-top:2px!important;
}
body.mwh-glossary-page .mwh-dictionary-item{
  padding:0!important;
  margin:0!important;
  line-height:1.17!important;
}
body.mwh-glossary-page .mwh-dictionary-term,
body.mwh-glossary-page .mwh-dictionary-definition{
  line-height:1.17!important;
}
body.mwh-glossary-page .mwh-dictionary-term__name{
  font-size:13.7px!important;
  line-height:1.17!important;
}
body.mwh-glossary-page .mwh-dictionary-term__acronym{
  font-size:9.5px!important;
}
body.mwh-glossary-page .mwh-dictionary-definition{
  font-size:13px!important;
  line-height:1.17!important;
}
body.mwh-glossary-page .mwh-dictionary-edit{
  font-size:8px!important;
}
@media(max-width:780px){
  body.mwh-glossary-page .mwh-dictionary-section{
    grid-template-columns:25px minmax(0,1fr)!important;
    gap:6px!important;
    padding:5px 0 6px!important;
  }
  body.mwh-glossary-page h2.mwh-dictionary-letter{
    font-size:21px!important;
  }
  body.mwh-glossary-page .mwh-dictionary-term__name{
    font-size:13.3px!important;
  }
  body.mwh-glossary-page .mwh-dictionary-definition{
    font-size:12.7px!important;
  }
}


/* v3.4 – A–Z dictionary index scrolling */
body.mwh-glossary-page .mwh-dictionary-section{
  scroll-margin-top:96px!important;
}
@media(max-width:780px){
  body.mwh-glossary-page .mwh-dictionary-section{
    scroll-margin-top:76px!important;
  }
}
