/*
 * GPL Word Frequency Counter — tool-only UI.
 * Shared chrome (.gpl-tool shell, fields, cards, .mt-stat-card, .mt-results-card, .mt-dt-top,
 * .mt-result-table, .gpl-tag, buttons) comes from the GPL theme and is not duplicated here.
 * Result tabs, toolbar and sort headers match the Keyword Density Checker and the Anchor Text
 * Ratio Calculator; checkboxes match the URL Slug Generator.
 */

.gplwfc-tool .hide {
    display: none !important;
}

/* Settings could not be read (script.js): only the message is shown. */
.gplwfc-tool.is-broken > :not(.gplwfc-config-error) {
    display: none !important;
}

/* --- Form --- */

.gplwfc-privacy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gplwfc-privacy i {
    color: var(--gpl-tool-green, #0f9a7b);
}

.gplwfc-tool .gpl-tool__hint {
    margin: 6px 0 0;
    color: var(--gpl-tool-text-soft, #666);
    font-size: 13px;
    line-height: 1.45;
}

.gplwfc-tool .gplwfc-field textarea {
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    line-height: 1.6;
    resize: vertical;
}

/* Classes, not IDs: script.js renames the tool's IDs when other page content uses the same ones. */
.gplwfc-tool .gplwfc-text-input {
    min-height: 260px;
}

.gplwfc-tool .gplwfc-list-input {
    min-height: 90px;
    font-size: 14px;
}

.gplwfc-count {
    font-variant-numeric: tabular-nums;
}

.gplwfc-count.is-over,
.gplwfc-over {
    color: var(--gpl-tool-red, #dc2626);
    font-weight: 600;
}

.gplwfc-input-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1em;
    margin-top: 0.6em;
    color: var(--gpl-tool-text-soft, #6b7280);
    font-size: 0.875rem;
    line-height: 1.45;
}

.gplwfc-input-actions {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 1em;
}

.gplwfc-tool .gplwfc-text-button {
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--gpl-tool-blue, #3e63dd) !important;
    font: inherit;
    font-weight: 600;
    line-height: inherit;
    text-decoration: underline;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}

.gplwfc-tool .gplwfc-text-button:hover {
    text-decoration: none;
}

.gplwfc-tool .gplwfc-text-button:focus-visible {
    outline: 3px solid var(--gpl-tool-focus-ring, rgba(65, 102, 225, .28));
    outline-offset: 2px;
}

.gplwfc-settings {
    margin: 0;
}

.gplwfc-tool .gplwfc-settings .gpl-tool__collapse-body {
    display: grid;
    gap: 16px;
}

.gplwfc-tool .gplwfc-number-row select,
.gplwfc-tool .gplwfc-number-row input {
    width: 100%;
    margin: 0;
}

.gplwfc-tool .motta-alert {
    margin-bottom: 10px;
    text-align: start;
}

/* —— Checkbox options ——
   The theme paints a 20px box (::before) and tick (::after) over every checkbox. Inside the
   tool the input itself is the box and the tick is an SVG background, which also renders in
   Firefox (no pseudo-elements on inputs). Same as the URL Slug Generator. */
.gplwfc-checks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
}

.gplwfc-tool .gplwfc-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--gpl-tool-line, #eaedf2);
    border-radius: var(--gpl-tool-radius, 8px);
    background: var(--gpl-tool-surface, #fff);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.gplwfc-tool .gplwfc-check:hover {
    border-color: var(--gpl-tool-line-hover, #cbd5e1);
}

.gplwfc-tool .gplwfc-check:has(input:checked) {
    border-color: var(--gpl-tool-blue-line, #4166e140);
    background: var(--gpl-tool-blue-tint, #4166e114);
}

.gplwfc-tool .gplwfc-check input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 0;
    margin: 1px 0 0;
    padding: 0;
    border: 1.5px solid var(--gpl-tool-line-hover, #cbd5e1);
    border-radius: 5px;
    background-color: var(--gpl-tool-surface, #fff);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    box-shadow: none;
    vertical-align: middle;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.gplwfc-tool .gplwfc-check input[type="checkbox"]::before,
.gplwfc-tool .gplwfc-check input[type="checkbox"]::after {
    content: none;
    display: none;
}

.gplwfc-tool .gplwfc-check input[type="checkbox"]:hover {
    border-color: var(--gpl-tool-blue, #4166e1);
}

.gplwfc-tool .gplwfc-check input[type="checkbox"]:checked {
    border-color: var(--gpl-tool-blue, #4166e1);
    background-color: var(--gpl-tool-blue, #4166e1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.3 5 8.7l4.5-5.2'/%3E%3C/svg%3E");
}

.gplwfc-tool .gplwfc-check input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--gpl-tool-focus-ring, rgba(65, 102, 225, .28));
}

.gplwfc-tool .gplwfc-check input[type="checkbox"] + .gplwfc-check__text,
.gplwfc-tool .gplwfc-check input[type="checkbox"]:checked + .gplwfc-check__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    color: var(--gpl-tool-ink, #1f2937);
}

.gplwfc-tool .gplwfc-check__text strong {
    color: var(--gpl-tool-ink, #1f2937);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}

.gplwfc-tool .gplwfc-check__text small {
    color: var(--gpl-tool-text-soft, #666);
    font-size: 0.75rem;
    line-height: 1.35;
}

/* —— Stop-word editor (a plain disclosure inside the settings card) —— */
.gplwfc-subcollapse {
    border-top: 1px solid var(--gpl-tool-divider, #ecf0f4);
    padding-top: 12px;
}

.gplwfc-subcollapse > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    color: var(--gpl-tool-ink, #1f2937);
    font-size: 0.9rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.gplwfc-subcollapse > summary::-webkit-details-marker {
    display: none;
}

.gplwfc-subcollapse > summary i {
    width: 12px;
    color: var(--gpl-tool-muted, #6b7280);
    font-size: 12px;
    transition: transform .15s ease;
}

.gplwfc-subcollapse[open] > summary i {
    transform: rotate(90deg);
}

.gplwfc-subcollapse > summary:focus-visible {
    outline: 3px solid var(--gpl-tool-focus-ring, rgba(65, 102, 225, .28));
    outline-offset: 2px;
    border-radius: 4px;
}

.gplwfc-subcollapse > summary .gplwfc-muted {
    font-weight: 400;
}

.gplwfc-subcollapse__body {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.gplwfc-tool .gplwfc-stoplist-title {
    margin: 0;
    font-size: 13px;
}

.gplwfc-tool .gplwfc-stoplist {
    max-height: 120px;
    margin: 0;
    padding: 10px 12px;
    overflow-y: auto;
    border: 1px solid var(--gpl-tool-line, #eaedf2);
    border-radius: var(--gpl-tool-radius, 8px);
    background: var(--gpl-tool-surface-hover, #f9fafb);
    color: var(--gpl-tool-text-soft, #666);
    font-size: 12.5px;
    line-height: 1.6;
}

.gplwfc-stoplist:focus-visible {
    outline: 3px solid var(--gpl-tool-focus-ring, rgba(65, 102, 225, .28));
    outline-offset: 2px;
}

/* --- Results --- */

.gplwfc-results {
    padding: 10px 0;
    color: var(--gpl-tool-ink, #1f2937);
    font-size: 14px;
    scroll-margin-top: 20px;
}

.gplwfc-results:focus {
    outline: none;
}

.gplwfc-results[aria-busy="true"] {
    opacity: .6;
    transition: opacity .15s;
}

/* An export button while a large export is written (kept focusable, so not :disabled). */
.gplwfc-tool button[aria-busy="true"] {
    cursor: progress;
    opacity: .65;
}

.gplwfc-results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 16px;
}

.gplwfc-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.gplwfc-results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gplwfc-tool .gpl-tool__action-btn.is-success i,
.gplwfc-tool .dt-button.is-success i {
    color: var(--gpl-tool-green, #0f9a7b);
}

.gplwfc-note {
    margin: 0 0 12px;
    padding: 10px 16px;
    border: 1px solid #f5c78a;
    border-radius: 8px;
    background: #fff4e5;
    color: var(--gpl-tool-amber-text, #92400e);
    font-size: 13px;
    line-height: 1.45;
}

.gplwfc-table-panel .gplwfc-copy-error {
    margin: 12px 16px 0;
}

.gplwfc-muted {
    color: var(--gpl-tool-muted, #6b7280);
    font-size: 13px;
}

/* Eight statistics: four per row (the theme default is five). */
.gplwfc-tool .gplwfc-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* --- Result tabs: same design as the Keyword Density / Anchor Text Ratio tools --- */

.gplwfc-views {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 28px 36px;
    padding: 16px 16px 0;
    border-bottom: 1px solid #ecf0f4;
    background: #fff;
}

.gplwfc-tool .gplwfc-view {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0 0 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    /* WCAG AA text contrast on white: #6b7280 is 4.8:1 (the earlier #7c818b was 3.9:1). */
    color: #6b7280;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.gplwfc-view-label {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.gplwfc-view-count {
    color: inherit;
    font-size: 12.8px;
    font-weight: 400;
    line-height: 1;
}

.gplwfc-tool .gplwfc-view::after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: -1px;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: #1d2128;
    transition: width .3s;
}

.gplwfc-tool .gplwfc-view:hover,
.gplwfc-tool .gplwfc-view:focus,
.gplwfc-tool .gplwfc-view:active,
.gplwfc-tool .gplwfc-view.is-active {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    /* The brand orange #f97248 is 2.8:1 on white; this darker shade of it is 4.7:1 (AA). */
    color: #c84a1c !important;
}

.gplwfc-tool .gplwfc-view:hover::after,
.gplwfc-tool .gplwfc-view:focus-visible::after,
.gplwfc-tool .gplwfc-view.is-active::after {
    width: 100%;
    background: #c84a1c;
}

.gplwfc-tool .gplwfc-view:focus-visible {
    outline: 2px solid #c84a1c;
    outline-offset: 2px;
}

/* --- Overview --- */

.gplwfc-overview {
    padding: 16px;
}

.gplwfc-overview:focus {
    outline: none;
}

.gplwfc-overview-grid,
.gplwfc-top-grid {
    display: grid;
    gap: 16px;
}

.gplwfc-overview-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    margin-bottom: 16px;
}

.gplwfc-top-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gplwfc-card {
    margin: 0;
    padding: 16px;
}

.gplwfc-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    margin-bottom: 12px;
}

.gplwfc-tool .gplwfc-card-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--gpl-tool-ink, #1f2937);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.gplwfc-card-title i {
    color: var(--gpl-tool-blue, #4166e1);
}

.gplwfc-tool .gplwfc-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
}

.gplwfc-hl {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--gpl-tool-divider, #ecf0f4);
}

.gplwfc-hl:nth-child(odd) {
    padding-inline-end: 12px;
}

.gplwfc-hl:nth-child(even) {
    padding-inline-start: 12px;
}

.gplwfc-tool .gplwfc-hl dt {
    margin: 0;
    color: var(--gpl-tool-muted, #6b7280);
    font-size: 12.5px;
    font-weight: 500;
}

.gplwfc-tool .gplwfc-hl dd {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    min-width: 0;
}

.gplwfc-hl dd strong {
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.gplwfc-hl dd small {
    color: var(--gpl-tool-muted, #6b7280);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.gplwfc-tool .gplwfc-dist,
.gplwfc-tool .gplwfc-top {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gplwfc-tool .gplwfc-dist li {
    display: grid;
    grid-template-columns: minmax(90px, 0.9fr) minmax(60px, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.gplwfc-dist__label {
    font-size: 13px;
}

.gplwfc-dist__num {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: end;
    white-space: nowrap;
}

.gplwfc-tool .gplwfc-top li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) minmax(40px, 70px) auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 13.5px;
}

.gplwfc-top__rank {
    color: var(--gpl-tool-muted, #6b7280);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: end;
}

.gplwfc-top__term {
    font-weight: 500;
    overflow-wrap: anywhere;
}

.gplwfc-top__num {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.gplwfc-top__num small {
    color: var(--gpl-tool-muted, #6b7280);
    font-size: 11.5px;
    font-weight: 400;
}

.gplwfc-tool .gplwfc-empty {
    margin: 0;
}

.gplwfc-minibar {
    position: relative;
    display: block;
    flex: 0 1 90px;
    min-width: 40px;
    height: 6px;
    overflow: hidden;
    border-radius: 4px;
    background: #e6e9f1;
}

.gplwfc-minibar span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--gpl-tool-blue, #4166e1);
}

/* --- Toolbar --- */

.gplwfc-tool .mt-dt-top input,
.gplwfc-tool .mt-dt-top select {
    min-height: 0;
    box-shadow: none;
}

.gplwfc-tool .mt-dt-top .gplwfc-dt-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    order: 0;
    margin-inline-end: auto;
}

.gplwfc-tool .mt-dt-top .dt-buttons {
    order: 1;
}

.gplwfc-tool .mt-dt-top .dt-button {
    white-space: nowrap;
}

.gplwfc-tool .mt-dt-top .mt-dt-top-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    order: 2;
}

/* --- Frequency table --- */

/* The theme left-aligns .col-text with !important; text columns follow the writing direction. */
.gplwfc-tool .mt-result-table th.col-text,
.gplwfc-tool .mt-result-table td.col-text {
    text-align: start !important;
}

.gplwfc-table td,
.gplwfc-table th {
    vertical-align: middle;
}

.gplwfc-table .gplwfc-col-rank {
    width: 64px;
    color: var(--gpl-tool-muted, #6b7280);
    font-variant-numeric: tabular-nums;
}

.gplwfc-tool .gplwfc-table td.gplwfc-term {
    font-weight: 500;
    overflow-wrap: anywhere;
}

.gplwfc-num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gplwfc-table .gplwfc-col-density {
    min-width: 170px;
}

.gplwfc-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gplwfc-table .gplwfc-col-copy {
    width: 56px;
}

.gplwfc-tool .gplwfc-row-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 0;
    height: 32px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--gpl-tool-line, #eaedf2);
    border-radius: 6px;
    background: var(--gpl-tool-surface, #fff);
    box-shadow: none;
    color: var(--gpl-tool-muted, #6b7280);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.gplwfc-tool .gplwfc-row-copy:hover,
.gplwfc-tool .gplwfc-row-copy:focus {
    border-color: var(--gpl-tool-blue-line, #4166e140) !important;
    background: var(--gpl-tool-blue-tint, #4166e114) !important;
    box-shadow: none !important;
    color: var(--gpl-tool-blue, #4166e1) !important;
}

.gplwfc-tool .gplwfc-row-copy:focus-visible {
    outline: 2px solid var(--gpl-tool-blue, #4166e1);
    outline-offset: 2px;
}

.gplwfc-tool .gplwfc-row-copy.is-success {
    color: var(--gpl-tool-green, #0f9a7b) !important;
}

.gplwfc-tool .gplwfc-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.gplwfc-tool .gplwfc-sort:hover,
.gplwfc-tool .gplwfc-sort:focus {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--gpl-tool-blue, #4166e1) !important;
}

.gplwfc-tool .gplwfc-sort:focus-visible {
    outline: 2px solid var(--gpl-tool-blue, #4166e1);
    outline-offset: 2px;
}

.gplwfc-sort i {
    color: #b0b6c0;
    font-size: 11px;
}

.gplwfc-sort.is-active i {
    color: inherit;
}

.gplwfc-no-row td {
    padding: 24px;
    color: var(--gpl-tool-muted, #6b7280);
    text-align: center !important;
}

.gplwfc-tool .gplwfc-method {
    margin: 0;
    padding: 12px 16px 16px;
    color: var(--gpl-tool-muted, #6b7280);
    font-size: 12.5px;
    line-height: 1.5;
}

/* --- Responsive --- */

/* The theme gives every results table min-width: 960px below 1060px (DAPA has many columns).
   This table has six columns, so it only needs room for those. */
@media (max-width: 1060px) {
    .gplwfc-tool .mt-table-scroll .gplwfc-table {
        min-width: 560px;
    }

    .gplwfc-top-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1024px) {
    .gplwfc-tool .gplwfc-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .gplwfc-overview-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gplwfc-checks-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gplwfc-views {
        gap: 14px 22px;
        padding: 12px 12px 0;
    }

    .gplwfc-tool .gplwfc-view {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .gplwfc-input-meta {
        flex-direction: column;
        gap: 0.5em;
    }

    .gplwfc-results-bar,
    .gplwfc-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .gplwfc-overview {
        padding: 12px;
    }

    .gplwfc-tool .gplwfc-highlights {
        grid-template-columns: minmax(0, 1fr);
    }

    .gplwfc-hl:nth-child(odd),
    .gplwfc-hl:nth-child(even) {
        padding-inline: 0;
    }

    .gplwfc-tool .gplwfc-table thead th,
    .gplwfc-tool .gplwfc-table tbody td {
        padding-right: 8px;
        padding-left: 8px;
    }

    .gplwfc-table .gplwfc-col-rank {
        width: 40px;
    }

    .gplwfc-table .gplwfc-col-density {
        min-width: 0;
    }

    .gplwfc-table .gplwfc-minibar {
        display: none;
    }

    .gplwfc-tool .mt-table-scroll .gplwfc-table {
        min-width: 480px;
    }
}

@media (max-width: 480px) {
    .gplwfc-tool .gplwfc-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .gplwfc-tool .gplwfc-top li {
        grid-template-columns: 20px minmax(0, 1fr) auto;
    }

    .gplwfc-top .gplwfc-minibar {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gplwfc-tool .gplwfc-view::after,
    .gplwfc-subcollapse > summary i {
        transition: none;
    }
}

/* The pager arrows ("<" previous, ">" next) need no rule for right-to-left pages: < and > are
   mirrored characters, which the browser already draws the other way round there. */

/* Terms keep their own direction inside a cell (script.js wraps them in <bdi>). */
.gplwfc-tool .gplwfc-term bdi,
.gplwfc-tool .gplwfc-top__term bdi {
    unicode-bidi: isolate;
}
