/* Community 5.7.7 — route-title + standard editor toolbar refinement. */

/* WordPress Quicktags inherits broad Community button rules. Re-establish it as
   a compact wrapping toolbar instead of one full-width button per command. */
html body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar {
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:6px !important;
  padding:8px 10px !important;
  min-height:48px !important;
  background:#f7faf8 !important;
  border-bottom:1px solid #b7c5be !important;
}
html body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar input.ed_button,
html body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar input.button {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
  width:auto !important;
  min-width:34px !important;
  max-width:none !important;
  min-height:30px !important;
  height:30px !important;
  margin:0 !important;
  padding:4px 9px !important;
  border:1px solid #71867c !important;
  border-radius:999px !important;
  background:#ffffff !important;
  color:#10231c !important;
  -webkit-text-fill-color:#10231c !important;
  font:700 .76rem/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif !important;
  box-shadow:none !important;
  text-transform:none !important;
  letter-spacing:0 !important;
  opacity:1 !important;
}
html body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar input.ed_button:hover,
html body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar input.ed_button:focus-visible,
html body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar input.button:hover,
html body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar input.button:focus-visible {
  background:#e6f5ec !important;
  border-color:#07583a !important;
  color:#053b28 !important;
  -webkit-text-fill-color:#053b28 !important;
  outline:2px solid #1769aa !important;
  outline-offset:1px !important;
}

/* Keep the editor tabs compact and visually connected to the toolbar. */
html body.nsc5-document .nsc5-response-editor-field .wp-editor-tabs {
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:flex-end !important;
  gap:5px !important;
  padding:0 !important;
}
html body.nsc5-document .nsc5-response-editor-field .wp-switch-editor {
  width:auto !important;
  min-width:62px !important;
  max-width:none !important;
}

html[data-theme="dark"] body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar {
  background:#10271e !important;
  border-color:#6d8d7d !important;
}
html[data-theme="dark"] body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar input.ed_button,
html[data-theme="dark"] body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar input.button {
  background:#173329 !important;
  border-color:#8eae9e !important;
  color:#f4fff9 !important;
  -webkit-text-fill-color:#f4fff9 !important;
}
html[data-theme="dark"] body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar input.ed_button:hover,
html[data-theme="dark"] body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar input.ed_button:focus-visible,
html[data-theme="dark"] body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar input.button:hover,
html[data-theme="dark"] body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar input.button:focus-visible {
  background:#d9fbe8 !important;
  border-color:#d9fbe8 !important;
  color:#053b28 !important;
  -webkit-text-fill-color:#053b28 !important;
}

@media(max-width:680px){
  html body.nsc5-document .nsc5-response-editor-field .wp-editor-tabs{justify-content:flex-start !important}
  html body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar{gap:5px !important;padding:8px !important}
}
@media(forced-colors:active){
  html body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar,
  html body.nsc5-document .nsc5-response-editor-field .quicktags-toolbar *{forced-color-adjust:auto !important}
}
