.tab-nav li.seo a::before {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "FontAwesome";
    font-weight: 700;

    vertical-align: middle;
    text-transform: none;
    content: "\f201";
    margin-right: 0.7em;
}

a.TooltipEntity .icon.icon-link {
   display: none;
}

a.TooltipEntity span  {
  text-decoration: underline;
}

a.Tooltip__link {
    position: relative;
    margin-inline-end: 2.6875em;
}

a.Tooltip__link::after {
    content: "→";
    display: inline-block;
    font-size: 1.2rem;
    padding-left: 4px;
    vertical-align: middle;
    color: inherit;
    position: absolute;
    top: -4px;
}

.Draftail-block--right_aligned_text_block .public-DraftStyleDefault-ltr {
    text-align: right;
}

.Draftail-block--center_aligned_text_block .public-DraftStyleDefault-ltr {
    text-align: center;
}

.Draftail-block--left_aligned_text_block .public-DraftStyleDefault-ltr {
    text-align: left;
}

.Draftail-block--justify_aligned_text_block .public-DraftStyleDefault-ltr {
    text-align: justify;
}

/* Disable pointer events for content inside the Draft.js editor
   to prevent interaction issues when used in Handsontable merged cells.
   Adding the .handsontable class ensures these styles do not affect Draft.js blocks
   outside of Handsontable.
   This resolves selection bugs that occur in this specific scenario. */
.handsontable .Draftail-Editor__wrapper .public-DraftEditor-content div[data-contents="true"] {
    pointer-events: none;
}

.handsontable table.htCore {
    font-size: 1rem;
}

.Draftail-ToolbarButton--active {
    background-color: #ffffff1a !important;
}
.w-field__input .Draftail-Toolbar,
.w-field__input .Draftail-Editor .Draftail-Toolbar,
.w-field__input .Draftail-Editor.Draftail-Editor--focus .Draftail-Toolbar {
    background-color: var(--w-color-surface-menus);
    color: var(--w-color-text-button);
}

/* Keep Wagtail's pin toggle a white tab with a dark icon over the recolored dark
   toolbar, so it stays legible rather than picking up an off-tint from the surrounding
   overrides. */
.w-field__input .Draftail-Toolbar .Draftail-ToolbarButton--pin {
    background-color: #ffffff;
    color: var(--w-color-surface-menus);
}

/* The datatableblock CSS puts `overflow-x: auto` on every `.Draftail-ToolbarGroup`;
   because the other axis is `visible`, the shorthand rules compute `overflow-y` to
   `auto` too, so the group clips and scrolls the toolbar-button tooltip balloons on all
   rich-text editors. Restore visible overflow on the standard editors, and re-assert the
   scroll only inside handsontable table cells, where the cramped toolbar needs it. */
.w-field__input .Draftail-ToolbarGroup {
    overflow: visible;
}
.handsontable .Draftail-ToolbarGroup {
    overflow-x: auto;
}

.handsontable .htCore th {
    background-color: #f0f0f0 !important;
}

.handsontable table.htCore td p {
    margin: 0;
}

.no-smooth-scroll {
    scroll-behavior: auto;
}

.handsontableInputHolder .Draftail-ToolbarGroup {
    display: contents !important;
}

.custom-dropdown-wrapper--change-case {
    display: none;
}

.handsontableInputHolder .custom-dropdown-wrapper--change-case  {
  display: block;
  margin-inline-end: .625rem;
  order: 1;
}

.handsontableInputHolder .Draftail-Toolbar,
.handsontableInputHolder .Draftail-Toolbar--pin {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
}



/* Draftail puts `name` on the <button> itself (e.g. name="LINK"), not a child <name>. */
.Draftail-ToolbarButton[name="BR"] {
    order: 2;
}

.Draftail-ToolbarButton[name="LINK"] {
    order: 3;
}

.Draftail-CommentControl {
    order: 4;
}

/* Wagtail 7 caps the filter drilldown wrapper at 244px but leaves the control
   itself unconstrained. A <select> sizes to its widest <option>, and the `1fr`
   grid track defaults to min-width:auto, so a long choice ("North Atlantic
   Treaty Organization (NATO)") pushes the field out past the drawer edge. */
.w-drilldown__submenu .w-field__wrapper {
    min-width: 0;
}

.w-drilldown__submenu .w-field__input > select,
.w-drilldown__submenu .w-field__input > input {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

/* Backport of Wagtail 8.0's fix for wagtail/wagtail#14194 (PR #14195): an icon inside
   a button captures the click, so e.g. the "Roles" button on the add-user form does
   nothing when its arrow is clicked. Remove once we're on Wagtail >= 8.0. */
.button .icon {
    pointer-events: none;
}

@media print {
    .w-userbar-trigger {
     display: none !important;
   }
 }