/* =========================================================
   KEYWORD DENSITY CHECKER — CharacterCounter.com

   - Three-column desktop layout
   - Text input and analysis settings
   - Live keyword density results
   - Exact word and phrase searching
   - Target keyword analysis
   - Scrollable results tables
   - 300px Raptive sidebar
   - Responsive mobile layout

   ========================================================= */


/* =========================================================
   PAGE BASE
   ========================================================= */

.kd-page {
    width: 100%;
    padding: 105px 15px 45px;

    color: #333;
    background: #fff;

    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;

    --kd-blue: #1a73e8;
    --kd-blue-dark: #1558aa;
    --kd-blue-light: #edf5ff;
    --kd-border: #dce2e9;
    --kd-text: #333;
    --kd-muted: #666;
}

.kd-page,
.kd-page *,
.kd-page *::before,
.kd-page *::after {
    box-sizing: border-box;
}

.kd-page [hidden] {
    display: none !important;
}

.kd-page button,
.kd-page textarea,
.kd-page input,
.kd-page select {
    font-family: "Roboto", Arial, sans-serif;
}

.kd-page button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.kd-page a {
    color: #1155cc;
    text-decoration: none;
}

.kd-page a:hover {
    text-decoration: underline;
}

.kd-page button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.kd-page a:focus-visible,
.kd-page button:focus-visible,
.kd-page input:focus-visible,
.kd-page textarea:focus-visible,
.kd-page select:focus-visible {
    outline: 3px solid rgba(26, 115, 232, 0.3);
    outline-offset: 3px;
}


/* =========================================================
   MAIN PAGE LAYOUT
   ========================================================= */

.kd-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    align-items: stretch;

    gap: 25px;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}

.kd-main {
    width: 100%;
    min-width: 0;
}

.kd-sidebar {
    display: block;

    width: 300px;
    min-width: 300px;
    min-height: 100%;

    align-self: stretch;

    margin: 0;
    padding: 0;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.kd-heading {
    width: 100%;

    margin: 0 0 24px;

    text-align: center;
}

.kd-heading h1 {
    margin: 0 0 9px;
    padding: 0;

    color: #333;

    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;

    overflow-wrap: break-word;
}

.kd-intro {
    width: 100%;
    max-width: 800px;

    margin: 0 auto;
    padding: 0;

    color: #555;

    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
}


/* =========================================================
   JAVASCRIPT NOTICE
   ========================================================= */

.kd-notice {
    margin: 0 0 18px;
    padding: 12px 15px;

    border: 1px solid #e3cf9b;
    border-radius: 7px;

    background: #fff9eb;
    color: #665022;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   MAIN TOOL
   ========================================================= */

.kd-tool {
    display: flex;
    flex-direction: column;

    gap: 20px;

    width: 100%;
    min-width: 0;

    margin: 0 0 40px;
    padding: 0;
}


/* =========================================================
   WARNINGS AND ERRORS
   ========================================================= */

.kd-warning {
    width: 100%;

    margin: 0;
    padding: 12px 15px;

    border: 1px solid #e3cf9b;
    border-radius: 8px;

    background: #fff9eb;
    color: #74531e;

    font-size: 14px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}

.kd-warning.is-error {
    border-color: #e7b1b1;

    background: #fff1f1;
    color: #a12424;
}

.kd-warning.is-success {
    border-color: #a8d9b5;

    background: #f1fff4;
    color: #246b38;
}


/* =========================================================
   TWO-COLUMN TOOL GRID

   Left column: 45%
   Results column: 55%

   The external 300px Raptive sidebar forms
   the third desktop column.
   ========================================================= */

.kd-tool-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 45fr)
        minmax(0, 55fr);

    align-items: start;

    gap: 20px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   LEFT COLUMN
   ========================================================= */

.kd-input-column {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 17px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   RESULTS COLUMN
   ========================================================= */

.kd-results-column {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 18px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.kd-section-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 8px 12px;

    width: 100%;

    margin: 0;
    padding: 0;
}

.kd-section-heading h2 {
    margin: 0;
    padding: 0;

    color: #333;

    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

.kd-optional {
    margin-left: 3px;

    color: #777;

    font-size: 13px;
    font-weight: 400;
}


/* =========================================================
   TEXT INPUT SECTION
   ========================================================= */

.kd-input-section {
    display: flex;

    flex-direction: column;

    gap: 11px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.kd-input-wrapper {
    position: relative;

    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   MAIN TEXTAREA
   ========================================================= */

.kd-page .kd-input {
    display: block;

    width: 100%;
    max-width: 100%;

    height: 350px;
    min-height: 150px;

    margin: 0;
    padding: 14px 14px 51px;

    border: 2px solid #c9ced6;
    border-radius: 10px;

    background: #fff;
    color: #222;

    font-family: "Roboto", Arial, sans-serif;

    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;

    outline: none;

    resize: vertical;

    overflow-x: hidden;
    overflow-y: auto;

    overflow-wrap: break-word;

    box-shadow: none;

    scrollbar-width: thin;
    scrollbar-color: #c9ced6 transparent;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.kd-page .kd-input::placeholder {
    color: #9299a2;
    opacity: 1;
}

.kd-page .kd-input:hover {
    border-color: #aeb4bd;
}

.kd-page .kd-input:focus {
    border-color: var(--kd-blue);

    box-shadow:
        0 0 0 3px rgba(26, 115, 232, 0.10);
}


/* =========================================================
   INPUT ACTION BUTTONS
   ========================================================= */

.kd-input-actions {
    position: absolute;

    right: 15px;
    bottom: 11px;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 7px;

    max-width: calc(100% - 30px);

    z-index: 2;
}

.kd-inline-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 34px;

    margin: 0;
    padding: 7px 11px;

    border: 1px solid #cbd7e7;
    border-radius: 6px;

    background: #fff;
    color: #145ba8;

    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05);

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.kd-inline-button i {
    font-size: 16px;
    line-height: 1;
}

.kd-inline-button:hover:not(:disabled) {
    border-color: #9bbce5;

    background: #e5f0ff;
    color: #104b8d;
}

.kd-inline-button:active:not(:disabled) {
    background: #d8e9ff;
}

.kd-inline-button:disabled {
    border-color: #d7dce3;

    background: #f5f6f8;
    color: #8a919a;

    box-shadow: none;
}


/* =========================================================
   TARGET KEYWORDS SECTION
   ========================================================= */

.kd-target-section {
    display: flex;

    flex-direction: column;

    gap: 9px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 14px;

    border: 1px solid #dce2e9;
    border-radius: 9px;

    background: #fff;
}

.kd-target-section .kd-section-heading h2 {
    font-size: 18px;
}


/* =========================================================
   TARGET KEYWORD INPUT
   ========================================================= */

.kd-page .kd-target-input {
    display: block;

    width: 100%;
    max-width: 100%;

    height: 78px;
    min-height: 48px;

    margin: 0;
    padding: 10px 12px;

    border: 1px solid #c9ced6;
    border-radius: 7px;

    background: #fff;
    color: #333;

    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;

    outline: none;

    resize: vertical;

    overflow-wrap: break-word;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.kd-page .kd-target-input::placeholder {
    color: #9299a2;
    opacity: 1;
}

.kd-page .kd-target-input:hover {
    border-color: #aeb4bd;
}

.kd-page .kd-target-input:focus {
    border-color: var(--kd-blue);

    box-shadow:
        0 0 0 3px rgba(26, 115, 232, 0.10);
}


/* =========================================================
   FIELD HINTS
   ========================================================= */

.kd-field-hint {
    margin: 0;
    padding: 0;

    color: #777;

    font-size: 13px;
    line-height: 1.5;

    overflow-wrap: break-word;
}


/* =========================================================
   ANALYSIS FILTER SECTION
   ========================================================= */

.kd-filter-section {
    display: flex;

    flex-direction: column;

    gap: 13px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   QUICK FILTERS
   ========================================================= */

.kd-quick-filters {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 10px 12px;

    width: 100%;

    margin: 0;
    padding: 1px 0;
}


/* =========================================================
   CHECKBOXES
   ========================================================= */

.kd-checkbox {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    width: fit-content;
    max-width: 100%;

    margin: 0;
    padding: 0;

    color: #444;

    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;

    cursor: pointer;

    user-select: none;
}

.kd-page .kd-checkbox input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;

    display: inline-block;

    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin: 0;
    padding: 0;

    accent-color: #1a73e8;

    cursor: pointer;
}

.kd-checkbox span {
    overflow-wrap: break-word;
}


/* =========================================================
   MORE OPTIONS BUTTON
   ========================================================= */

.kd-more-options-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 35px;

    margin: 0;
    padding: 6px 9px;

    border: 1px solid #d6dce5;
    border-radius: 6px;

    background: #fff;
    color: #555;

    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;

    white-space: nowrap;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        color 0.15s ease,
        background-color 0.15s ease;
}

.kd-more-options-button > i {
    font-size: 16px;
    line-height: 1;
}

.kd-more-options-button:hover {
    border-color: #aac3e5;

    background: #f3f7fd;
    color: #1558aa;
}

.kd-more-options-button[aria-expanded="true"] {
    border-color: #b3cbed;

    background: #edf5ff;
    color: #1558aa;
}

.kd-options-chevron {
    display: inline-block;

    transition: transform 0.18s ease;
}

.kd-more-options-button[aria-expanded="true"]
.kd-options-chevron {
    transform: rotate(180deg);
}


/* =========================================================
   ADVANCED OPTIONS PANEL
   ========================================================= */

.kd-advanced-options {
    display: flex;

    flex-direction: column;

    gap: 17px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 15px;

    border: 1px solid #dce2e9;
    border-radius: 9px;

    background: #f8fafc;
}

.kd-advanced-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 8px 12px;

    margin: 0;
    padding: 0;
}

.kd-advanced-heading h3 {
    margin: 0;
    padding: 0;

    color: #333;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}


/* =========================================================
   RESET SETTINGS BUTTON
   ========================================================= */

.kd-text-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 4px 0;

    border: none;

    background: transparent;
    color: #1a73e8;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;

    cursor: pointer;
}

.kd-text-button:hover {
    color: #1558aa;
    text-decoration: underline;
}


/* =========================================================
   ADVANCED OPTIONS GRID
   ========================================================= */

.kd-settings-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr);

    align-items: start;

    gap: 18px;

    width: 100%;
    min-width: 0;
}

.kd-option-group {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 0;
}

.kd-option-title {
    display: block;

    max-width: 100%;

    margin: 0;
    padding: 0;

    color: #333;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

fieldset.kd-option-group legend.kd-option-title {
    margin-bottom: 10px;
}

.kd-option-help {
    margin: 0;
    padding: 0;

    color: #777;

    font-size: 12px;
    line-height: 1.5;

    overflow-wrap: break-word;
}


/* =========================================================
   SELECT INPUTS
   ========================================================= */

.kd-page .kd-select {
    appearance: auto;
    -webkit-appearance: menulist;

    display: block;

    width: 100%;
    max-width: 100%;

    min-height: 39px;

    margin: 0;
    padding: 8px 10px;

    border: 1px solid #cbd2dc;
    border-radius: 6px;

    background: #fff;
    color: #333;

    font-size: 14px;
    line-height: 1.4;

    outline: none;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.kd-page .kd-select:hover {
    border-color: #aab7c8;
}

.kd-page .kd-select:focus {
    border-color: #1a73e8;

    box-shadow:
        0 0 0 3px rgba(26, 115, 232, 0.10);
}

.kd-page .kd-select:disabled {
    background: #f5f6f8;
    color: #8a919a;

    cursor: not-allowed;
}


/* =========================================================
   CUSTOM EXCLUSIONS INPUT
   ========================================================= */

.kd-page .kd-exclusions-input {
    display: block;

    width: 100%;
    max-width: 100%;

    height: 75px;
    min-height: 48px;

    margin: 0;
    padding: 9px 11px;

    border: 1px solid #cbd2dc;
    border-radius: 6px;

    background: #fff;
    color: #333;

    font-size: 14px;
    line-height: 1.5;

    outline: none;

    resize: vertical;

    overflow-wrap: break-word;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.kd-page .kd-exclusions-input::placeholder {
    color: #9299a2;
    opacity: 1;
}

.kd-page .kd-exclusions-input:hover {
    border-color: #aab7c8;
}

.kd-page .kd-exclusions-input:focus {
    border-color: #1a73e8;

    box-shadow:
        0 0 0 3px rgba(26, 115, 232, 0.10);
}


/* =========================================================
   SETTINGS EXPLANATION
   ========================================================= */

.kd-settings-note {
    margin: 0;
    padding: 11px 12px;

    border: 1px solid #dce5f2;
    border-radius: 6px;

    background: #eef4fc;
    color: #52677e;

    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   MAIN KEYWORD RESULTS SECTION
   ========================================================= */

.kd-results-section {
    display: flex;

    flex-direction: column;

    gap: 11px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.kd-results-heading {
    margin-bottom: 0;
}

.kd-results-heading h2 {
    font-size: 21px;
}


/* =========================================================
   RESULTS TOOLBAR

   Search words or phrases | Copy | CSV
   ========================================================= */

.kd-results-toolbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   SEARCH FIELD
   ========================================================= */

.kd-search-wrapper {
    position: relative;

    display: flex;

    flex: 1 1 180px;

    align-items: center;

    min-width: 0;
}

.kd-search-icon {
    position: absolute;

    top: 50%;
    left: 10px;

    transform: translateY(-50%);

    color: #7d8999;

    font-size: 17px;
    line-height: 1;

    pointer-events: none;
}

.kd-page .kd-search-input {
    appearance: auto;
    -webkit-appearance: searchfield;

    display: block;

    width: 100%;
    min-width: 0;
    min-height: 39px;

    margin: 0;
    padding: 8px 10px 8px 33px;

    border: 1px solid #cbd2dc;
    border-radius: 6px;

    background: #fff;
    color: #333;

    font-size: 14px;
    line-height: 1.4;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.kd-page .kd-search-input::placeholder {
    color: #9299a2;
    opacity: 1;
}

.kd-page .kd-search-input:hover {
    border-color: #aab7c8;
}

.kd-page .kd-search-input:focus {
    border-color: #1a73e8;

    box-shadow:
        0 0 0 3px rgba(26, 115, 232, 0.10);
}

.kd-search-input::-webkit-search-cancel-button {
    cursor: pointer;
}


/* =========================================================
   RESULTS ACTION BUTTONS
   ========================================================= */

.kd-results-actions {
    display: flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    margin: 0;
    padding: 0;
}

.kd-secondary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    min-height: 39px;

    margin: 0;
    padding: 7px 10px;

    border: 1px solid #cbd7e7;
    border-radius: 6px;

    background: #fff;
    color: #145ba8;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.kd-secondary-button i {
    font-size: 16px;
    line-height: 1;
}

.kd-secondary-button:hover:not(:disabled) {
    border-color: #9bbce5;

    background: #edf5ff;
    color: #104b8d;
}

.kd-secondary-button:active:not(:disabled) {
    background: #dcecff;
}

.kd-secondary-button:disabled {
    border-color: #d7dce3;

    background: #f5f6f8;
    color: #8a919a;
}

.kd-secondary-button.is-copied {
    border-color: #a7d7b4;

    background: #edf9f0;
    color: #287c3e;
}

#kdCopyResultsButton {
    min-width: 85px;
}


/* =========================================================
   RESULTS CONTROLS

   Only the sorting dropdown remains.
   ========================================================= */

.kd-results-controls {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   SORT CONTROL
   ========================================================= */

.kd-sort-wrapper {
    display: flex;

    flex: 0 0 auto;

    align-items: center;

    gap: 7px;

    max-width: 100%;
    min-width: 0;

    margin-left: auto;
}

.kd-sort-label {
    flex: 0 0 auto;

    color: #666;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;

    white-space: nowrap;
}

.kd-page .kd-sort-select {
    width: 145px;
    min-height: 35px;

    padding: 6px 8px;

    font-size: 13px;
}


/* =========================================================
   PROCESSING STATUS
   ========================================================= */

.kd-processing {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    width: 100%;

    margin: 0;
    padding: 10px;

    border: 1px solid #dce5f2;
    border-radius: 7px;

    background: #f4f8fe;
    color: #52677e;

    font-size: 13px;
    line-height: 1.5;
}

.kd-spinner {
    display: inline-block;

    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    border: 2px solid #d6e5f8;
    border-top-color: #1a73e8;
    border-radius: 50%;

    animation: kd-spin 0.7s linear infinite;
}

@keyframes kd-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   RESULTS PANEL
   ========================================================= */

.kd-results-panel {
    display: flex;

    flex-direction: column;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.kd-results-panel[aria-busy="true"] {
    opacity: 0.65;
}


/* =========================================================
   TABLE WRAPPER
   ========================================================= */

.kd-table-wrapper {
    position: relative;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 1px solid #dce2e9;
    border-radius: 8px;

    background: #fff;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: #c9ced6 transparent;
}


/* =========================================================
   SCROLLABLE AUTOMATIC RESULTS TABLE
   ========================================================= */

.kd-results-table-wrapper {
    height: 430px;
    max-height: 430px;

    overflow-x: auto;
    overflow-y: auto;

    scrollbar-gutter: stable;
}


/* =========================================================
   SCROLLABLE TARGET KEYWORD TABLE
   ========================================================= */

.kd-target-table-wrapper {
    max-height: 280px;

    overflow-x: auto;
    overflow-y: auto;

    scrollbar-gutter: stable;
}


/* =========================================================
   CUSTOM TABLE SCROLLBARS
   ========================================================= */

.kd-table-wrapper::-webkit-scrollbar,
.kd-page .kd-input::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.kd-table-wrapper::-webkit-scrollbar-track,
.kd-page .kd-input::-webkit-scrollbar-track {
    background: transparent;
}

.kd-table-wrapper::-webkit-scrollbar-thumb,
.kd-page .kd-input::-webkit-scrollbar-thumb {
    border: 2px solid #fff;
    border-radius: 10px;

    background: #c9ced6;
}

.kd-table-wrapper::-webkit-scrollbar-thumb:hover,
.kd-page .kd-input::-webkit-scrollbar-thumb:hover {
    background: #aab4c2;
}


/* =========================================================
   KEYWORD TABLES
   ========================================================= */

.kd-page .kd-table {
    width: 100%;

    margin: 0;
    padding: 0;

    border: 0;
    border-collapse: separate;
    border-spacing: 0;

    background: #fff;

    table-layout: fixed;

    color: #333;

    font-size: 14px;
    line-height: 1.45;
}

.kd-table thead {
    background: #f2f5f9;
}


/* =========================================================
   STICKY TABLE HEADINGS
   ========================================================= */

.kd-table th {
    position: sticky;

    top: 0;

    z-index: 3;

    margin: 0;
    padding: 11px 9px;

    border: 0;
    border-bottom: 1px solid #dce2e9;

    background: #f2f5f9;
    color: #384352;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;

    text-align: left;
    vertical-align: middle;

    box-shadow:
        0 1px 0 #dce2e9;
}


/* =========================================================
   TABLE CELLS
   ========================================================= */

.kd-table td {
    margin: 0;
    padding: 10px 9px;

    border: 0;
    border-bottom: 1px solid #e8ecf1;

    background: #fff;
    color: #333;

    text-align: left;
    vertical-align: middle;

    overflow-wrap: anywhere;
}

.kd-table tbody tr:last-child td {
    border-bottom: 0;
}

.kd-table tbody tr:nth-child(even):not(.kd-empty-row) td {
    background: #fafbfd;
}

.kd-table tbody tr:hover:not(.kd-empty-row) td {
    background: #f0f6fe;
}


/* =========================================================
   TABLE COLUMN WIDTHS
   ========================================================= */

.kd-table .kd-rank-column {
    width: 36px;

    color: #777;

    text-align: center;
}

.kd-table .kd-keyword-column {
    width: auto;

    text-align: left;
}

.kd-table .kd-count-column {
    width: 79px;

    text-align: right;
}

.kd-table .kd-density-column {
    width: 96px;

    text-align: right;
}


/* =========================================================
   AUTOMATIC RESULT TABLE CELLS
   ========================================================= */

.kd-results-table td:nth-child(1) {
    color: #808894;

    font-size: 12px;

    text-align: center;

    font-variant-numeric: tabular-nums;
}

.kd-results-table td:nth-child(2) {
    color: #333;

    font-size: 14px;
    font-weight: 500;

    overflow-wrap: anywhere;
}

.kd-results-table td:nth-child(3) {
    color: #333;

    text-align: right;

    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.kd-results-table td:nth-child(4) {
    color: #1a73e8;

    text-align: right;

    font-weight: 600;
    font-variant-numeric: tabular-nums;
}


/* =========================================================
   SORTABLE TABLE HEADINGS
   ========================================================= */

.kd-table-sort {
    display: inline-flex;

    align-items: center;

    gap: 4px;

    max-width: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;
    color: inherit;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;

    text-align: inherit;

    cursor: pointer;
}

.kd-table-sort i {
    flex: 0 0 auto;

    color: #8d97a4;

    font-size: 13px;
    line-height: 1;
}

.kd-table-sort:hover {
    color: #1558aa;
}

.kd-table-sort.is-active {
    color: #1558aa;
}

.kd-table-sort.is-active i {
    color: #1a73e8;
}

.kd-table-sort:disabled {
    opacity: 1;

    cursor: default;
}


/* =========================================================
   DYNAMIC ROW CONTENT
   ========================================================= */

.kd-keyword-text {
    display: inline-block;

    max-width: 100%;

    color: #333;

    font-size: inherit;
    line-height: 1.45;
    font-weight: 500;

    overflow-wrap: anywhere;

    user-select: text;
}

.kd-count-value {
    color: #333;

    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.kd-density-value {
    display: block;

    color: #1a73e8;

    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.kd-density-cell {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 5px;

    width: 100%;
}


/* =========================================================
   KEYWORD DENSITY BARS
   ========================================================= */

.kd-density-bar {
    display: block;

    width: 100%;
    max-width: 70px;

    height: 5px;

    margin: 0 0 0 auto;

    border-radius: 3px;

    background: #e7eef7;

    overflow: hidden;
}

.kd-density-bar-fill,
.kd-density-fill {
    display: block;

    width: 0;
    max-width: 100%;

    height: 100%;

    border-radius: 3px;

    background: #1a73e8;
}


/* =========================================================
   ZERO OCCURRENCES
   ========================================================= */

.kd-density-zero,
.kd-zero-density {
    color: #8b929c !important;
}

.kd-table tr.is-zero .kd-keyword-text,
.kd-table tr.is-zero .kd-count-value,
.kd-table tr.is-zero .kd-density-value {
    color: #8b929c;
}


/* =========================================================
   EMPTY RESULTS STATE
   ========================================================= */

.kd-table .kd-empty-row td {
    padding: 0;

    border-bottom: 0;

    background: #fff;

    text-align: center;
}

.kd-empty-state {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 100%;

    min-height: 350px;

    margin: 0;
    padding: 25px 20px;

    text-align: center;
}

.kd-empty-state i {
    color: #a5b4c7;

    font-size: 37px;
    line-height: 1;
}

.kd-empty-state p {
    max-width: 290px;

    margin: 0;
    padding: 0;

    color: #777;

    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}


/* =========================================================
   RESULTS FOOTER
   ========================================================= */

.kd-results-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 10px;

    width: 100%;

    margin: 0;
    padding: 11px 0 0;
}

.kd-results-summary {
    margin: 0;
    padding: 0;

    color: #777;

    font-size: 13px;
    line-height: 1.5;

    font-variant-numeric: tabular-nums;
}


/* =========================================================
   SHOW MORE BUTTON
   ========================================================= */

.kd-show-more-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 35px;

    margin: 0;
    padding: 7px 12px;

    border: 1px solid #bfd1e8;
    border-radius: 6px;

    background: #fff;
    color: #1558aa;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.kd-show-more-button i {
    font-size: 16px;
    line-height: 1;
}

.kd-show-more-button:hover:not(:disabled) {
    border-color: #98b6dc;

    background: #edf5ff;
}

.kd-show-more-button:active:not(:disabled) {
    background: #dcecff;
}


/* =========================================================
   RESULTS FORMULA NOTE
   ========================================================= */

.kd-results-note {
    margin: 0;
    padding: 0;

    color: #777;

    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   TARGET KEYWORD RESULTS
   ========================================================= */

.kd-target-results {
    display: flex;

    flex-direction: column;

    gap: 11px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 15px 0 0;

    border-top: 1px solid #e5e9ef;
}

.kd-target-results-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 10px;

    margin: 0;
    padding: 0;
}

.kd-target-results-heading h2,
.kd-target-results-heading h3 {
    margin: 0;
    padding: 0;

    color: #333;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}


/* =========================================================
   TARGET KEYWORD TABLE CELLS
   ========================================================= */

.kd-target-table td:nth-child(1) {
    font-weight: 500;

    overflow-wrap: anywhere;
}

.kd-target-table td:nth-child(2),
.kd-target-table td:nth-child(3) {
    text-align: right;

    font-variant-numeric: tabular-nums;
}

.kd-target-table td:nth-child(2) {
    font-weight: 500;
}

.kd-target-table td:nth-child(3) {
    color: #1a73e8;

    font-weight: 600;
}

.kd-target-table .kd-count-column {
    width: 80px;
}

.kd-target-table .kd-density-column {
    width: 95px;
}


/* =========================================================
   TEXT STATISTICS

   Positioned below both main tool columns.
   ========================================================= */

.kd-stats {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    width: 100%;
    min-width: 0;

    margin: 3px 0 0;
    padding: 0;
}

.kd-stat {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    min-width: 0;
    min-height: 78px;

    margin: 0;
    padding: 12px 8px;

    border: 1px solid #dce2e9;
    border-radius: 9px;

    background: #f8fafc;

    text-align: center;
}

.kd-stat-value {
    display: block;

    max-width: 100%;

    color: #1a73e8;

    font-size: 27px;
    line-height: 1.15;
    font-weight: 700;

    font-variant-numeric: tabular-nums;

    overflow-wrap: anywhere;
}

.kd-stat-label {
    display: block;

    color: #555;

    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
}


/* =========================================================
   PRIVACY NOTE
   ========================================================= */

.kd-privacy-note {
    display: flex;

    align-items: flex-start;
    justify-content: center;

    gap: 6px;

    width: 100%;

    margin: 0;
    padding: 0;

    color: #777;

    font-size: 12px;
    line-height: 1.55;

    text-align: center;
}

.kd-privacy-note i {
    flex: 0 0 auto;

    margin-top: 1px;

    color: #5f7d9e;

    font-size: 15px;
    line-height: 1.3;
}


/* =========================================================
   INFORMATIONAL ARTICLE
   ========================================================= */

.kd-article {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 32px 0 0;

    border-top: 1px solid #e2e6ec;

    color: #333;

    font-size: 16px;
    line-height: 1.75;

    overflow-wrap: break-word;
}

.kd-article-section {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0 0 32px;
    padding: 0;
}

.kd-article-section:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ARTICLE HEADINGS
   ========================================================= */

.kd-article h2 {
    margin: 0 0 13px;
    padding: 0;

    color: #333;

    font-size: 25px;
    line-height: 1.35;
    font-weight: 700;
}

.kd-article h3 {
    margin: 21px 0 9px;
    padding: 0;

    color: #333;

    font-size: 19px;
    line-height: 1.4;
    font-weight: 600;
}


/* =========================================================
   ARTICLE PARAGRAPHS
   ========================================================= */

.kd-article p {
    margin: 0 0 13px;
    padding: 0;

    color: #444;

    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
}

.kd-article p:last-child {
    margin-bottom: 0;
}

.kd-article strong {
    color: #333;
    font-weight: 600;
}

.kd-article a {
    color: #1155cc;

    text-decoration: none;
}

.kd-article a:hover {
    text-decoration: underline;
}


/* =========================================================
   ARTICLE LISTS
   ========================================================= */

.kd-article .kd-article-list {
    display: block;

    margin: 13px 0 17px;
    padding: 0 0 0 24px;

    color: #444;

    font-size: 16px;
    line-height: 1.75;
}

.kd-article ul.kd-article-list {
    list-style-type: disc;
}

.kd-article ol.kd-article-list {
    list-style-type: decimal;
}

.kd-article .kd-article-list li {
    display: list-item;

    margin: 0 0 9px;
    padding: 0 0 0 3px;
}

.kd-article .kd-article-list li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   KEYWORD DENSITY FORMULA BOX
   ========================================================= */

.kd-formula-box {
    width: 100%;

    margin: 17px 0 20px;
    padding: 20px 17px;

    border: 1px solid #cdddf2;
    border-radius: 9px;

    background: #f3f8ff;

    text-align: center;
}

.kd-article .kd-formula-label {
    margin: 0 0 9px;

    color: #52677e;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.kd-formula {
    color: #1558aa;

    font-size: 18px;
    line-height: 1.65;
    font-weight: 600;

    overflow-wrap: break-word;
}


/* =========================================================
   ARTICLE EXAMPLE BOXES
   ========================================================= */

.kd-example {
    width: 100%;

    margin: 15px 0 18px;
    padding: 16px 18px;

    border: 1px solid #dce2e9;
    border-left: 4px solid #1a73e8;
    border-radius: 7px;

    background: #f8fafc;
}

.kd-article .kd-example p {
    margin: 0 0 7px;

    font-size: 15px;
    line-height: 1.65;
}

.kd-article .kd-example p:last-child {
    margin-bottom: 0;
}

.kd-article .kd-example-result {
    margin-top: 12px;
    padding-top: 9px;

    border-top: 1px solid #dde5ee;

    color: #1558aa;

    font-size: 17px;
}

.kd-example-result strong {
    color: #1558aa;
}

.kd-article .kd-example-label {
    margin: 0 0 8px;

    color: #64748b;

    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.kd-example-text {
    color: #333;

    font-size: 16px;
    line-height: 1.7;

    white-space: normal;

    overflow-wrap: anywhere;
}


/* =========================================================
   INFORMATIONAL ARTICLE TABLES
   ========================================================= */

.kd-article-table-wrapper {
    width: 100%;
    min-width: 0;

    margin: 17px 0 19px;
    padding: 0;

    border: 1px solid #dce2e9;
    border-radius: 8px;

    background: #fff;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

.kd-page .kd-article-table {
    width: 100%;

    margin: 0;
    padding: 0;

    border: 0;
    border-collapse: collapse;

    background: #fff;

    color: #444;

    font-size: 14px;
    line-height: 1.55;
}

.kd-article-table th {
    padding: 11px 14px;

    border: 0;
    border-bottom: 1px solid #dce2e9;

    background: #f2f5f9;
    color: #384352;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;

    text-align: left;
    vertical-align: middle;
}

.kd-article-table td {
    padding: 10px 14px;

    border: 0;
    border-bottom: 1px solid #e8ecf1;

    color: #444;

    text-align: left;
    vertical-align: middle;

    overflow-wrap: break-word;
}

.kd-article-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.kd-article-table tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   NATURAL AND UNNATURAL WRITING EXAMPLES
   ========================================================= */

.kd-writing-examples {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: stretch;

    gap: 14px;

    width: 100%;

    margin: 17px 0 20px;
}

.kd-writing-example {
    min-width: 0;

    margin: 0;
    padding: 15px;

    border: 1px solid #dce2e9;
    border-radius: 8px;

    background: #f8fafc;
}

.kd-writing-example h3 {
    display: flex;

    align-items: flex-start;

    gap: 7px;

    margin: 0 0 10px;
    padding: 0;

    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.kd-writing-example h3 i {
    flex: 0 0 auto;

    margin-top: 1px;

    font-size: 17px;
    line-height: 1.3;
}

.kd-article .kd-writing-example p {
    margin: 0;

    color: #444;

    font-size: 14px;
    line-height: 1.65;
}

.kd-writing-example-unfavorable {
    border-color: #ead4d4;

    background: #fff8f8;
}

.kd-writing-example-unfavorable h3 {
    color: #a94444;
}

.kd-writing-example-favorable {
    border-color: #cee4d3;

    background: #f5fbf6;
}

.kd-writing-example-favorable h3 {
    color: #337847;
}


/* =========================================================
   STOPWORD EXAMPLES
   ========================================================= */

.kd-stopword-examples {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    width: 100%;

    margin: 14px 0 17px;
    padding: 0;
}

.kd-stopword-examples span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 5px 12px;

    border: 1px solid #dce2e9;
    border-radius: 5px;

    background: #f5f7fa;
    color: #555;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}


/* =========================================================
   FREQUENTLY ASKED QUESTIONS
   ========================================================= */

.kd-faq-item {
    width: 100%;

    margin: 0;
    padding: 15px 0;

    border-bottom: 1px solid #e6eaf0;
}

.kd-faq-item:first-of-type {
    padding-top: 5px;
}

.kd-faq-item:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}

.kd-faq-item h3 {
    margin: 0 0 7px;
    padding: 0;

    color: #333;

    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
}

.kd-article .kd-faq-item p {
    margin: 0;

    color: #444;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   RELATED TOOLS
   ========================================================= */

.kd-related {
    width: 100%;

    margin-top: 30px;
    padding-top: 25px;

    border-top: 1px solid #e2e6ec;
}

.kd-article .kd-related-intro {
    margin-bottom: 17px;

    color: #555;
}

.kd-article .kd-related-links {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px 26px;

    width: 100%;

    margin: 0;
    padding: 0 0 0 20px;

    list-style-type: disc;
}

.kd-related-links li {
    display: list-item;

    min-width: 0;

    margin: 0;
    padding: 0;

    color: #555;

    font-size: 15px;
    line-height: 1.55;
}

.kd-related-links a {
    color: #1155cc;

    overflow-wrap: break-word;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.kd-sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: -1px !important;
    padding: 0 !important;

    border: 0 !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;
}


/* =========================================================
   LARGE DESKTOP

   Preserve three columns with slightly tighter controls.
   ========================================================= */

@media screen and (min-width: 1201px) and (max-width: 1320px) {

    .kd-layout {
        gap: 20px;
    }

    .kd-tool-grid {
        gap: 16px;
    }

    .kd-section-heading h2,
    .kd-results-heading h2 {
        font-size: 20px;
    }

    .kd-target-section .kd-section-heading h2 {
        font-size: 17px;
    }

    .kd-secondary-button {
        padding-right: 8px;
        padding-left: 8px;

        font-size: 12px;
    }

    #kdCopyResultsButton {
        min-width: 75px;
    }

    .kd-search-wrapper {
        flex-basis: 150px;
    }

    .kd-page .kd-search-input {
        font-size: 13px;
    }

    .kd-sort-wrapper {
        gap: 5px;
    }

    .kd-sort-label {
        font-size: 12px;
    }

    .kd-page .kd-sort-select {
        width: 135px;

        font-size: 12px;
    }

    .kd-table .kd-rank-column {
        width: 31px;
    }

    .kd-table .kd-count-column {
        width: 68px;
    }

    .kd-table .kd-density-column {
        width: 86px;
    }

    .kd-table th,
    .kd-table td {
        padding-right: 7px;
        padding-left: 7px;
    }

    .kd-table-sort {
        font-size: 12px;
    }

    .kd-table-sort i {
        font-size: 12px;
    }

    .kd-density-bar {
        max-width: 62px;
    }

    .kd-checkbox {
        font-size: 13px;
    }

    .kd-more-options-button {
        font-size: 12px;
    }

}


/* =========================================================
   MEDIUM DESKTOP

   Stack the tool sections while retaining
   the 300px advertising sidebar.
   ========================================================= */

@media screen and (min-width: 901px) and (max-width: 1200px) {

    .kd-layout {
        max-width: 1200px;

        gap: 23px;
    }

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

        gap: 23px;
    }

    .kd-input-column {
        gap: 15px;
    }

    .kd-results-column {
        gap: 18px;
    }

    .kd-page .kd-input {
        height: 210px;
    }

    .kd-page .kd-target-input {
        height: 64px;
    }

    .kd-settings-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 18px;
    }

    .kd-results-table-wrapper {
        height: 380px;
        max-height: 380px;
    }

    .kd-empty-state {
        min-height: 300px;
    }

    .kd-table .kd-rank-column {
        width: 40px;
    }

    .kd-table .kd-count-column {
        width: 90px;
    }

    .kd-table .kd-density-column {
        width: 105px;
    }

    .kd-page .kd-sort-select {
        width: 155px;
    }

    .kd-article .kd-related-links {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

}


/* =========================================================
   TABLET

   Remove the sidebar and restore two tool columns.
   ========================================================= */

@media screen and (max-width: 900px) {

    .kd-page {
        padding-top: 95px;
    }

    .kd-layout {
        grid-template-columns: minmax(0, 1fr);

        gap: 0;
    }

    .kd-sidebar {
        display: none;
    }

    .kd-main {
        width: 100%;
    }

    .kd-heading h1 {
        font-size: 30px;
    }

    .kd-tool-grid {
        grid-template-columns:
            minmax(0, 45fr)
            minmax(0, 55fr);

        gap: 16px;
    }

    .kd-section-heading h2,
    .kd-results-heading h2 {
        font-size: 19px;
    }

    .kd-target-section .kd-section-heading h2 {
        font-size: 17px;
    }

    .kd-page .kd-input {
        height: 325px;
    }

    .kd-secondary-button {
        padding-right: 8px;
        padding-left: 8px;

        font-size: 12px;
    }

    #kdCopyResultsButton {
        min-width: 75px;
    }

    .kd-search-wrapper {
        flex-basis: 140px;
    }

    .kd-page .kd-search-input {
        font-size: 13px;
    }

    .kd-sort-wrapper {
        gap: 5px;
    }

    .kd-sort-label {
        font-size: 12px;
    }

    .kd-page .kd-sort-select {
        width: 135px;

        font-size: 12px;
    }

    .kd-table .kd-rank-column {
        width: 30px;
    }

    .kd-table .kd-count-column {
        width: 68px;
    }

    .kd-table .kd-density-column {
        width: 85px;
    }

    .kd-table th,
    .kd-table td {
        padding-right: 7px;
        padding-left: 7px;
    }

    .kd-table-sort {
        font-size: 12px;
    }

    .kd-table-sort i {
        font-size: 12px;
    }

    .kd-results-table-wrapper {
        height: 400px;
        max-height: 400px;
    }

    .kd-empty-state {
        min-height: 320px;
    }

    .kd-density-bar {
        max-width: 60px;
    }

    .kd-article .kd-related-links {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

}


/* =========================================================
   SMALL TABLET

   Single-column tool layout.
   ========================================================= */

@media screen and (max-width: 700px) {

    .kd-page {
        padding: 90px 12px 35px;
    }

    .kd-heading {
        margin-bottom: 20px;
    }

    .kd-heading h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .kd-intro {
        font-size: 15px;
        line-height: 1.55;
    }

    .kd-tool {
        gap: 17px;

        margin-bottom: 33px;
    }

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

        gap: 21px;
    }

    .kd-input-column {
        gap: 14px;
    }

    .kd-results-column {
        gap: 16px;
    }

    .kd-section-heading h2,
    .kd-results-heading h2 {
        font-size: 21px;
    }

    .kd-page .kd-input {
        height: 200px;
        min-height: 120px;
    }

    .kd-target-section {
        padding: 13px;
    }

    .kd-page .kd-target-input {
        height: 65px;
    }

    .kd-settings-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 17px;
    }

    .kd-advanced-options {
        padding: 14px;
    }

    .kd-results-section {
        gap: 11px;
    }

    .kd-results-toolbar {
        gap: 8px;
    }

    .kd-search-wrapper {
        flex-basis: 160px;
    }

    .kd-page .kd-search-input {
        font-size: 14px;
    }

    .kd-secondary-button {
        padding: 7px 11px;

        font-size: 13px;
    }

    .kd-page .kd-sort-select {
        width: 145px;

        font-size: 13px;
    }

    .kd-results-table-wrapper {
        height: 350px;
        max-height: 350px;
    }

    .kd-table .kd-rank-column {
        width: 35px;
    }

    .kd-table .kd-count-column {
        width: 75px;
    }

    .kd-table .kd-density-column {
        width: 95px;
    }

    .kd-table th,
    .kd-table td {
        padding: 10px 9px;
    }

    .kd-table-sort {
        font-size: 13px;
    }

    .kd-empty-state {
        min-height: 270px;
    }

    .kd-stats {
        gap: 8px;
    }

    .kd-stat {
        min-height: 73px;

        padding: 10px 6px;
    }

    .kd-stat-value {
        font-size: 24px;
    }

    .kd-stat-label {
        font-size: 12px;
    }

    .kd-article {
        padding-top: 26px;
    }

    .kd-article-section {
        margin-bottom: 27px;
    }

    .kd-article h2 {
        font-size: 22px;
    }

    .kd-article h3 {
        font-size: 18px;
    }

    .kd-article p,
    .kd-article .kd-article-list {
        font-size: 15px;
        line-height: 1.75;
    }

    .kd-article .kd-faq-item h3 {
        font-size: 16px;
    }

    .kd-writing-examples {
        grid-template-columns: minmax(0, 1fr);

        gap: 10px;
    }

    .kd-formula {
        font-size: 16px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 480px) {

    .kd-page {
        padding: 85px 10px 30px;
    }

    .kd-heading {
        margin-bottom: 19px;
    }

    .kd-heading h1 {
        font-size: 26px;
    }

    .kd-intro {
        font-size: 14px;
    }

    .kd-tool-grid {
        gap: 21px;
    }

    .kd-section-heading h2,
    .kd-results-heading h2 {
        font-size: 20px;
    }

    .kd-page .kd-input {
        height: 180px;
        min-height: 115px;

        padding: 11px 12px 49px;

        font-size: 16px;
    }

    .kd-input-actions {
        right: 13px;
        bottom: 9px;
    }

    .kd-inline-button {
        min-height: 34px;

        padding: 7px 10px;
    }

    .kd-target-section {
        padding: 12px;

        gap: 9px;
    }

    .kd-page .kd-target-input {
        height: 67px;

        padding: 9px 10px;

        font-size: 16px;
    }

    .kd-optional {
        font-size: 12px;
    }

    .kd-field-hint {
        font-size: 12px;
    }

    .kd-quick-filters {
        gap: 8px 10px;
    }

    .kd-checkbox {
        gap: 7px;

        font-size: 13px;
    }

    .kd-page .kd-checkbox input[type="checkbox"] {
        width: 17px;
        height: 17px;
    }

    .kd-more-options-button {
        gap: 4px;

        padding: 5px 7px;

        font-size: 12px;
    }

    .kd-more-options-button > i {
        font-size: 14px;
    }

    .kd-settings-grid {
        grid-template-columns: minmax(0, 1fr);

        gap: 17px;
    }

    .kd-advanced-options {
        gap: 14px;

        padding: 13px;
    }

    .kd-advanced-heading h3 {
        font-size: 17px;
    }

    .kd-page .kd-select,
    .kd-page .kd-exclusions-input {
        font-size: 16px;
    }

    .kd-results-toolbar {
        flex-wrap: wrap;

        gap: 7px;
    }

    .kd-search-wrapper {
        flex: 1 1 155px;
    }

    .kd-page .kd-search-input {
        min-height: 39px;

        font-size: 16px;
    }

    .kd-results-actions {
        gap: 5px;
    }

    .kd-secondary-button {
        min-height: 39px;

        gap: 4px;

        padding: 6px 8px;

        font-size: 12px;
    }

    .kd-secondary-button i {
        font-size: 14px;
    }

    #kdCopyResultsButton {
        min-width: 72px;
    }

    .kd-results-controls {
        justify-content: flex-end;
    }

    .kd-sort-wrapper {
        gap: 6px;
    }

    .kd-sort-label {
        font-size: 12px;
    }

    .kd-page .kd-sort-select {
        width: 155px;
        min-height: 36px;

        font-size: 16px;
    }

    .kd-results-table-wrapper {
        height: 330px;
        max-height: 330px;
    }

    .kd-table .kd-rank-column {
        width: 28px;
    }

    .kd-table .kd-count-column {
        width: 65px;
    }

    .kd-table .kd-density-column {
        width: 80px;
    }

    .kd-table th,
    .kd-table td {
        padding: 9px 7px;
    }

    .kd-table th {
        font-size: 12px;
    }

    .kd-table-sort {
        gap: 3px;

        font-size: 12px;
    }

    .kd-table-sort i {
        font-size: 12px;
    }

    .kd-page .kd-table {
        font-size: 13px;
    }

    .kd-results-table td:nth-child(1) {
        font-size: 11px;
    }

    .kd-results-table td:nth-child(2) {
        font-size: 13px;
    }

    .kd-density-bar {
        max-width: 53px;

        height: 4px;
    }

    .kd-density-cell {
        gap: 4px;
    }

    .kd-empty-state {
        min-height: 250px;

        padding: 20px 13px;
    }

    .kd-empty-state i {
        font-size: 32px;
    }

    .kd-empty-state p {
        font-size: 13px;
    }

    .kd-results-summary {
        font-size: 12px;
    }

    .kd-show-more-button {
        min-height: 34px;

        padding: 7px 11px;

        font-size: 12px;
    }

    .kd-results-note {
        font-size: 11px;
    }

    .kd-target-results-heading h2,
    .kd-target-results-heading h3 {
        font-size: 17px;
    }

    .kd-target-table .kd-count-column {
        width: 65px;
    }

    .kd-target-table .kd-density-column {
        width: 80px;
    }

    .kd-target-table-wrapper {
        max-height: 250px;
    }

    .kd-stats {
        gap: 6px;
    }

    .kd-stat {
        min-height: 70px;

        padding: 9px 4px;
    }

    .kd-stat-value {
        font-size: 23px;
    }

    .kd-stat-label {
        font-size: 11px;
    }

    .kd-privacy-note {
        font-size: 11px;
    }

    .kd-article h2 {
        font-size: 21px;
    }

    .kd-article h3 {
        font-size: 17px;
    }

    .kd-formula-box {
        padding: 16px 12px;
    }

    .kd-formula {
        font-size: 15px;
    }

    .kd-example {
        padding: 13px 14px;
    }

    .kd-article-table th,
    .kd-article-table td {
        padding: 9px 10px;

        font-size: 13px;
    }

    .kd-article .kd-related-links {
        grid-template-columns: minmax(0, 1fr);

        gap: 8px;
    }

}


/* =========================================================
   NARROW MOBILE

   Give the search field its own row and position
   the export buttons alongside the sorting dropdown.
   ========================================================= */

@media screen and (max-width: 400px) {

    .kd-results-header {
        margin-bottom: 0;
    }

    .kd-search-wrapper {
        flex: 1 1 100%;
    }

    .kd-results-toolbar {
        justify-content: flex-end;
    }

    .kd-results-actions {
        margin-left: auto;
    }

    .kd-results-controls {
        padding: 0;
    }

    .kd-sort-wrapper {
        margin-left: auto;
    }

}


/* =========================================================
   VERY SMALL MOBILE SCREENS
   ========================================================= */

@media screen and (max-width: 360px) {

    .kd-page {
        padding-right: 8px;
        padding-left: 8px;
    }

    .kd-heading h1 {
        font-size: 24px;
    }

    .kd-section-heading h2,
    .kd-results-heading h2 {
        font-size: 19px;
    }

    .kd-stat-value {
        font-size: 21px;
    }

    .kd-stat-label {
        font-size: 10px;
    }

    .kd-quick-filters {
        gap: 8px;
    }

    .kd-more-options-button {
        padding-right: 6px;
        padding-left: 6px;

        font-size: 11px;
    }

    .kd-checkbox {
        font-size: 12px;
    }

    .kd-secondary-button {
        padding-right: 6px;
        padding-left: 6px;
    }

    .kd-table .kd-rank-column {
        width: 25px;
    }

    .kd-table .kd-count-column {
        width: 58px;
    }

    .kd-table .kd-density-column {
        width: 74px;
    }

    .kd-table th,
    .kd-table td {
        padding-right: 5px;
        padding-left: 5px;
    }

    .kd-table-sort {
        font-size: 11px;
    }

    .kd-table-sort i {
        font-size: 11px;
    }

    .kd-density-bar {
        max-width: 48px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .kd-page *,
    .kd-page *::before,
    .kd-page *::after {
        scroll-behavior: auto !important;

        transition: none !important;
    }

    .kd-spinner {
        animation: none;
    }

}


/* =========================================================
   END OF KEYWORD DENSITY CHECKER CSS
   ========================================================= */