
/* =========================================================
   REMOVE EXTRA SPACES — CharacterCounter.com

   DESKTOP LAYOUT:
   1. Page heading
   2. Your Text | Cleaned Text
   3. Cleanup Options
   4. Cleanup Statistics
   5. Additional Actions
   6. SEO Content
   7. 300px Raptive Sidebar

   MOBILE:
   - Input and output stacked vertically
   - Cleanup options below textareas
   - Responsive statistics
   - Sidebar hidden

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


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

.remove-spaces-page {
    width: 100%;
    padding: 105px 15px 40px;

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

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

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

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

.remove-spaces-page button {
    -webkit-tap-highlight-color: transparent;
}

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

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

.remove-spaces-page a:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 3px;
}

.remove-spaces-page button:focus-visible {
    outline: 3px solid rgba(26, 115, 232, 0.35);
    outline-offset: 3px;
}


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

   Main Content | 300px Raptive Sidebar
   ========================================================= */

.remove-spaces-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;

    align-items: stretch;
    gap: 28px;

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

    margin: 0 auto;
}

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

.remove-spaces-sidebar {
    display: block;

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

    align-self: stretch;

    margin: 0;
    padding: 0;
}


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

.remove-spaces-heading {
    width: 100%;
    margin: 0 0 24px;

    text-align: center;
}

.remove-spaces-heading h1 {
    margin: 0 0 10px;
    padding: 0;

    color: #333;

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

    overflow-wrap: break-word;
}

.remove-spaces-intro {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;
    padding: 0;

    color: #555;

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


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

.remove-spaces-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;
}


/* =========================================================
   TOOL CONTAINER
   ========================================================= */

.remove-spaces-tool {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   INPUT AND OUTPUT GRID

   FIRST SECTION OF TOOL

   Both textareas appear ABOVE Cleanup Options.
   ========================================================= */

.remove-spaces-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    align-items: start;
    gap: 20px;

    width: 100%;
    min-width: 0;

    margin: 0 0 26px;
    padding: 0;
}

.remove-spaces-editor {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   EDITOR HEADINGS
   ========================================================= */

.remove-spaces-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;
    gap: 8px 12px;

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

    margin: 0 0 10px;
}

.remove-spaces-editor-heading h2 {
    margin: 0;
    padding: 0;

    color: #333;

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


/* =========================================================
   TRY EXAMPLE BUTTON
   ========================================================= */

.remove-spaces-example-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;
    min-height: 32px;

    margin: 0;
    padding: 6px 10px;

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

    background: #f3f7fc;
    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;
}

.remove-spaces-example-button i {
    font-size: 16px;
    line-height: 1;
}

.remove-spaces-example-button:hover {
    border-color: #9bbce5;
    background: #e5f0ff;
    color: #104b8d;
}

.remove-spaces-example-button:active {
    background: #d8e9ff;
}


/* =========================================================
   TEXTAREA WRAPPER
   ========================================================= */

.remove-spaces-textarea-wrapper {
    position: relative;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   INPUT AND OUTPUT TEXTAREAS
   ========================================================= */

.remove-spaces-page .remove-spaces-textarea {
    display: block;

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

    height: 305px;
    min-height: 110px;
    max-height: 900px;

    margin: 0;
    padding: 16px 17px 65px;

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

    background: #fff;
    color: #222;

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

    outline: none;
    resize: vertical;

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

    overflow-wrap: break-word;
    white-space: pre-wrap;

    tab-size: 4;

    box-shadow: none;

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

.remove-spaces-page .remove-spaces-textarea::placeholder {
    color: #9299a2;
    opacity: 1;
}

.remove-spaces-page .remove-spaces-textarea:hover {
    border-color: #aeb4bd;
}

.remove-spaces-page .remove-spaces-textarea:focus {
    border-color: #1a73e8;

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

.remove-spaces-page .remove-spaces-textarea:disabled {
    background: #f5f6f8;
    color: #888;

    cursor: not-allowed;
}


/* =========================================================
   INPUT TEXTAREA
   ========================================================= */

.remove-spaces-page .remove-spaces-input {
    background: #fff;
}


/* =========================================================
   OUTPUT TEXTAREA
   ========================================================= */

.remove-spaces-page .remove-spaces-output {
    background: #fff;
    color: #222;

    cursor: text;
}

.remove-spaces-page .remove-spaces-output:focus {
    border-color: #5f6368;

    box-shadow:
        0 0 0 3px rgba(95, 99, 104, 0.08);
}


/* =========================================================
   TEXTAREA ACTIONS

   Bottom-right inside textareas.

   Input: Undo / Clear
   Output: Copy
   ========================================================= */

.remove-spaces-textarea-actions {
    position: absolute;

    right: 13px;
    bottom: 13px;

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

    flex-wrap: wrap;
    gap: 7px;

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

    z-index: 2;
}


/* =========================================================
   INLINE ACTION BUTTONS
   ========================================================= */

.remove-spaces-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;
    min-height: 34px;

    margin: 0;
    padding: 7px 10px;

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

    background: #f7f8fa;
    color: #444;

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

    text-align: center;
    white-space: nowrap;

    cursor: pointer;
    user-select: none;

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

.remove-spaces-inline-button i {
    flex: 0 0 auto;

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

.remove-spaces-inline-button:hover {
    border-color: #aeb6bf;
    background: #e9edf2;
    color: #333;
}

.remove-spaces-inline-button:active {
    background: #dfe5ec;
}

.remove-spaces-inline-button:disabled {
    border-color: #e0e4e9;
    background: #f5f6f8;
    color: #969da6;

    opacity: 0.8;
    cursor: not-allowed;
}

.remove-spaces-inline-button:disabled:hover {
    border-color: #e0e4e9;
    background: #f5f6f8;
    color: #969da6;
}


/* =========================================================
   COPY BUTTON

   Briefly changes to "Copied!" through JavaScript.
   ========================================================= */

.remove-spaces-page .remove-spaces-copy-button {
    border-color: #c3d8f3;
    background: #edf5ff;
    color: #145ba8;
}

.remove-spaces-page .remove-spaces-copy-button:hover {
    border-color: #94bae8;
    background: #e1eeff;
    color: #124f94;
}

.remove-spaces-page .remove-spaces-copy-button:active {
    background: #d6e7ff;
}

.remove-spaces-page .remove-spaces-copy-button:disabled {
    border-color: #e0e4e9;
    background: #f5f6f8;
    color: #969da6;
}

.remove-spaces-page .remove-spaces-copy-button:disabled:hover {
    border-color: #e0e4e9;
    background: #f5f6f8;
    color: #969da6;
}


/* =========================================================
   EDITOR STATISTICS

   Characters: 0    Words: 0
   ========================================================= */

.remove-spaces-editor-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex-wrap: wrap;
    gap: 7px 20px;

    width: 100%;

    margin: 10px 0 0;
    padding: 0 2px;

    color: #666;

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

.remove-spaces-editor-stats span {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    white-space: nowrap;
}

.remove-spaces-editor-stats strong {
    color: #333;

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

    font-variant-numeric: tabular-nums;
}


/* =========================================================
   CLEANUP OPTIONS PANEL

   SECOND SECTION OF TOOL

   Appears BELOW both textareas.
   ========================================================= */

.remove-spaces-options {
    display: block;

    width: 100%;
    min-width: 0;

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

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

    background: #fafbfd;
}

.remove-spaces-options-title {
    margin: 0;
    padding: 0 9px;

    color: #333;

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

.remove-spaces-options-description {
    margin: 0 0 17px;
    padding: 0;

    color: #666;

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

    overflow-wrap: break-word;
}


/* =========================================================
   CLEANUP OPTIONS GRID
   ========================================================= */

.remove-spaces-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    align-items: stretch;
    gap: 11px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   INDIVIDUAL CLEANUP OPTION
   ========================================================= */

.remove-spaces-option {
    display: flex;
    align-items: flex-start;

    gap: 11px;

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

    margin: 0;
    padding: 14px 13px;

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

    background: #fff;

    cursor: pointer;
    user-select: none;

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

.remove-spaces-option:hover {
    border-color: #b8cce7;
    background: #f8fbff;
}

.remove-spaces-option:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.10);
}


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

.remove-spaces-option input[type="checkbox"] {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin: 2px 0 0;
    padding: 0;

    accent-color: #1a73e8;

    cursor: pointer;
}

.remove-spaces-option input[type="checkbox"]:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 3px;
}


/* =========================================================
   OPTION TEXT
   ========================================================= */

.remove-spaces-option-content {
    display: flex;
    flex-direction: column;

    gap: 5px;

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

.remove-spaces-option-title {
    display: block;

    color: #333;

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

    overflow-wrap: break-word;
}

.remove-spaces-option-description {
    display: block;

    color: #666;

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

    overflow-wrap: break-word;
}


/* =========================================================
   SELECTED OPTIONS

   Modern browser enhancement.
   Native checkbox styling works without :has().
   ========================================================= */

@supports selector(:has(*)) {

    .remove-spaces-option:has(input:checked) {
        border-color: #b7d3f5;
        background: #f1f7ff;
    }

    .remove-spaces-option:has(input:checked):hover {
        border-color: #94bae8;
        background: #e9f3ff;
    }

    .remove-spaces-option:has(input:checked)
    .remove-spaces-option-title {
        color: #145ba8;
    }

}


/* =========================================================
   CLEANUP SUMMARY

   Original | Cleaned | Removed
   ========================================================= */

.remove-spaces-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    align-items: stretch;
    gap: 12px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.remove-spaces-summary-item {
    display: flex;
    flex-direction: column;

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

    gap: 5px;

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

    padding: 15px 10px;

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

    background: #f8fafc;

    text-align: center;
}

.remove-spaces-summary-number {
    display: block;

    max-width: 100%;

    color: #333;

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

    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.remove-spaces-summary-label {
    display: block;

    color: #666;

    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;

    overflow-wrap: break-word;
}


/* =========================================================
   CHARACTERS REMOVED HIGHLIGHT
   ========================================================= */

.remove-spaces-summary-highlight {
    border-color: #c3d8f3;
    background: #edf5ff;
}

.remove-spaces-summary-highlight .remove-spaces-summary-number {
    color: #145ba8;
}

.remove-spaces-summary-highlight .remove-spaces-summary-label {
    color: #37638f;
}


/* =========================================================
   MAIN ACTION BUTTONS

   BELOW Cleanup Summary.

   Use Cleaned Text as Input | Download TXT
   ========================================================= */

.remove-spaces-main-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;
    gap: 10px;

    width: 100%;

    margin: 23px 0 0;
    padding: 0;
}

.remove-spaces-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
    min-height: 43px;

    margin: 0;
    padding: 10px 16px;

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

    background: #f7f8fa;
    color: #444;

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

    text-align: center;
    text-decoration: none;

    cursor: pointer;
    user-select: none;

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

.remove-spaces-action-button i {
    flex: 0 0 auto;

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

.remove-spaces-action-button:hover {
    border-color: #aeb6bf;
    background: #e9edf2;
    color: #333;
}

.remove-spaces-action-button:active {
    background: #dfe5ec;
}

.remove-spaces-action-button:disabled {
    border-color: #e0e4e9;
    background: #f5f6f8;
    color: #969da6;

    opacity: 0.8;
    cursor: not-allowed;
}

.remove-spaces-action-button:disabled:hover {
    border-color: #e0e4e9;
    background: #f5f6f8;
    color: #969da6;
}


/* =========================================================
   USE CLEANED TEXT AS INPUT
   ========================================================= */

#useResultButton:not(:disabled) {
    border-color: #c3d8f3;
    background: #edf5ff;
    color: #145ba8;
}

#useResultButton:not(:disabled):hover {
    border-color: #94bae8;
    background: #e1eeff;
    color: #124f94;
}


/* =========================================================
   DOWNLOAD BUTTON
   ========================================================= */

#downloadTextButton:not(:disabled) {
    border-color: #ccd3dc;
    background: #f7f8fa;
    color: #444;
}

#downloadTextButton:not(:disabled):hover {
    border-color: #aeb6bf;
    background: #e9edf2;
    color: #333;
}


/* =========================================================
   TOOL STATUS
   ========================================================= */

.remove-spaces-status {
    width: 100%;

    margin: 10px 0 0;
    padding: 0;

    color: #666;

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

    text-align: center;

    overflow-wrap: break-word;
}

.remove-spaces-status:empty {
    display: none;
}

.remove-spaces-status.is-success {
    color: #257447;
}

.remove-spaces-status.is-error {
    color: #bf3030;
}


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

.remove-spaces-privacy {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;
    gap: 6px;

    width: 100%;

    margin: 16px 0 0;
    padding: 0;

    color: #777;

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

    text-align: center;
}

.remove-spaces-privacy i {
    flex: 0 0 auto;

    color: #777;

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


/* =========================================================
   SEO ARTICLE
   ========================================================= */

.remove-spaces-content {
    width: 100%;
    min-width: 0;

    margin: 48px 0 0;
    padding: 0;

    color: #444;

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

.remove-spaces-content section {
    width: 100%;
    min-width: 0;

    margin: 0 0 36px;
    padding: 0;
}

.remove-spaces-content section:last-child {
    margin-bottom: 0;
}


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

.remove-spaces-content h2 {
    margin: 0 0 15px;
    padding: 0;

    color: #333;

    font-size: 23px;
    line-height: 1.35;
    font-weight: 700;

    overflow-wrap: break-word;
}

.remove-spaces-content h3 {
    margin: 25px 0 10px;
    padding: 0;

    color: #333;

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

    overflow-wrap: break-word;
}

.remove-spaces-content h2 + h3 {
    margin-top: 15px;
}


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

.remove-spaces-content p {
    margin: 0 0 16px;
    padding: 0;

    color: #444;

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

    overflow-wrap: break-word;
}

.remove-spaces-content strong {
    color: #333;
    font-weight: 700;
}


/* =========================================================
   ARTICLE LINKS
   ========================================================= */

.remove-spaces-content a {
    color: #1155cc;

    text-decoration: none;
    font-weight: 500;
}

.remove-spaces-content a:hover {
    color: #0d47a1;
    text-decoration: underline;
}


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

.remove-spaces-content ul,
.remove-spaces-content ol {
    margin: 0 0 19px;
    padding: 0 0 0 27px;

    color: #444;

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

.remove-spaces-content li {
    margin: 0 0 10px;
    padding: 0;
}

.remove-spaces-content li:last-child {
    margin-bottom: 0;
}

.remove-spaces-content li::marker {
    color: #777;
}

.remove-spaces-content li strong {
    color: #333;
}


/* =========================================================
   INLINE CODE
   ========================================================= */

.remove-spaces-content code {
    padding: 2px 5px;

    border-radius: 4px;

    background: #f1f3f5;
    color: #333;

    font-family: Consolas, Monaco, monospace;
    font-size: 14px;

    overflow-wrap: anywhere;
}


/* =========================================================
   BEFORE / AFTER EXAMPLE BLOCKS
   ========================================================= */

.remove-spaces-example-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    align-items: stretch;
    gap: 13px;

    width: 100%;
    min-width: 0;

    margin: 15px 0 22px;
    padding: 0;
}

.remove-spaces-example-block > div {
    min-width: 0;

    padding: 14px 15px;

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

    background: #f8fafc;
}

.remove-spaces-example-block strong {
    display: block;

    margin: 0 0 9px;

    color: #444;

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

.remove-spaces-example-block pre {
    display: block;

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

    margin: 0;
    padding: 12px;

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

    background: #fff;
    color: #222;

    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    line-height: 1.65;

    white-space: pre-wrap;
    overflow-wrap: anywhere;

    overflow-x: auto;

    tab-size: 4;
}


/* =========================================================
   EXCEL FORMULA BOXES
   ========================================================= */

.remove-spaces-formula {
    display: block;

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

    margin: 15px 0 21px;
    padding: 15px 17px;

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

    background: #f8fafc;

    overflow-x: auto;
}

.remove-spaces-content .remove-spaces-formula code {
    display: block;

    width: fit-content;
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: #234b7b;

    font-family: Consolas, Monaco, monospace;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;

    white-space: pre;
    overflow-wrap: normal;
}


/* =========================================================
   FAQ SECTION
   ========================================================= */

.remove-spaces-faq {
    width: 100%;
}

.remove-spaces-faq h2 {
    margin-bottom: 20px;
}

.remove-spaces-faq h3 {
    margin: 24px 0 8px;

    color: #333;

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

.remove-spaces-faq h3:first-of-type {
    margin-top: 0;
}

.remove-spaces-faq p {
    margin: 0 0 14px;
}


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

.remove-spaces-related-tools {
    width: 100%;

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

    border-top: 1px solid #e2e6eb;
}

.remove-spaces-related-tools h2 {
    margin-bottom: 10px;
}

.remove-spaces-content .remove-spaces-related-intro {
    margin-bottom: 21px;
    color: #555;
}


/* =========================================================
   RELATED TOOLS LINK GRID
   ========================================================= */

.remove-spaces-content .remove-spaces-related-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;

    width: 100%;
    min-width: 0;

    margin: 0 0 23px;
    padding: 0;

    list-style: none;
}

.remove-spaces-related-links li {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    list-style: none;
}

.remove-spaces-related-links li::marker {
    content: "";
}

.remove-spaces-related-links a {
    display: flex;
    align-items: center;

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

    padding: 10px 13px;

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

    background: #f8fafc;
    color: #145ba8;

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

    text-decoration: none;

    overflow-wrap: anywhere;

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

.remove-spaces-related-links a:hover {
    border-color: #b8d1ef;
    background: #edf5ff;
    color: #0d4fa3;

    text-decoration: none;
}


/* =========================================================
   RELATED TOOL CALLOUTS
   ========================================================= */

.remove-spaces-related-callouts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    align-items: stretch;
    gap: 15px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.remove-spaces-related-callout {
    min-width: 0;

    padding: 17px 18px;

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

    background: #fafbfc;
}

.remove-spaces-content .remove-spaces-related-callout h3 {
    margin: 0 0 9px;

    color: #333;

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

.remove-spaces-content .remove-spaces-related-callout p {
    margin: 0;

    color: #555;

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


/* =========================================================
   RESPONSIVE — SMALLER DESKTOP

   Keep 300px sidebar.
   ========================================================= */

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

    .remove-spaces-layout {
        gap: 22px;
    }

    .remove-spaces-editor-grid {
        gap: 16px;
    }

    .remove-spaces-options-grid {
        gap: 10px;
    }

    .remove-spaces-option {
        padding: 12px;
    }

}


/* =========================================================
   RESPONSIVE — MEDIUM DESKTOP

   Keep sidebar visible.
   Stack textareas to prevent cramped editors.
   ========================================================= */

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

    .remove-spaces-layout {
        gap: 20px;
    }

    .remove-spaces-editor-grid {
        grid-template-columns: minmax(0, 1fr);

        gap: 24px;
        margin-bottom: 25px;
    }

    .remove-spaces-page .remove-spaces-textarea {
        height: 255px;
    }

    .remove-spaces-options {
        padding: 16px;
    }

    .remove-spaces-options-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .remove-spaces-option {
        min-height: 76px;
    }

    .remove-spaces-content h2 {
        font-size: 22px;
    }

    .remove-spaces-summary {
        gap: 9px;
    }

    .remove-spaces-summary-number {
        font-size: 25px;
    }

}


/* =========================================================
   RESPONSIVE — TABLETS

   Hide sidebar below 900px.
   Restore full-width main content.
   ========================================================= */

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

    .remove-spaces-page {
        padding: 95px 18px 35px;
    }

    .remove-spaces-layout {
        display: block;

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

        margin: 0 auto;
    }

    .remove-spaces-main {
        width: 100%;
    }

    .remove-spaces-sidebar {
        display: none !important;
    }

    .remove-spaces-editor-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
        margin-bottom: 26px;
    }

    .remove-spaces-page .remove-spaces-textarea {
        height: 285px;
    }

    .remove-spaces-options-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .remove-spaces-option {
        min-height: 94px;
    }

    .remove-spaces-summary-number {
        font-size: 27px;
    }

}


/* =========================================================
   RESPONSIVE — SMALL TABLETS / LARGE PHONES

   Stack Your Text and Cleaned Text.
   Keep Cleanup Options below both.
   ========================================================= */

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

    .remove-spaces-page {
        padding: 90px 16px 30px;
    }

    .remove-spaces-heading {
        margin-bottom: 21px;
    }

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

    .remove-spaces-intro {
        font-size: 16px;
    }

    .remove-spaces-editor-grid {
        grid-template-columns: minmax(0, 1fr);

        gap: 24px;
        margin-bottom: 25px;
    }

    .remove-spaces-page .remove-spaces-textarea {
        height: 230px;
        min-height: 110px;
    }

    .remove-spaces-options-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .remove-spaces-option {
        min-height: 105px;
    }

    .remove-spaces-content {
        margin-top: 42px;
    }

    .remove-spaces-content h2 {
        font-size: 22px;
    }

    .remove-spaces-content h3 {
        font-size: 18px;
    }

    .remove-spaces-related-callouts {
        grid-template-columns: minmax(0, 1fr);
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

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

    .remove-spaces-page {
        padding: 85px 13px 28px;
    }

    /* PAGE HEADING */

    .remove-spaces-heading {
        margin-bottom: 19px;
    }

    .remove-spaces-heading h1 {
        font-size: 27px;
        line-height: 1.3;
    }

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

    /* TEXT EDITORS FIRST */

    .remove-spaces-editor-grid {
        gap: 23px;
        margin-bottom: 25px;
    }

    .remove-spaces-editor-heading h2 {
        font-size: 18px;
    }

    .remove-spaces-example-button {
        min-height: 31px;

        padding: 6px 9px;

        font-size: 12px;
    }

    .remove-spaces-page .remove-spaces-textarea {
        height: 210px;
        min-height: 110px;

        padding: 13px 13px 62px;

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

        border-radius: 9px;
    }

    .remove-spaces-textarea-actions {
        right: 10px;
        bottom: 10px;

        gap: 6px;
    }

    .remove-spaces-inline-button {
        min-height: 33px;

        padding: 6px 9px;

        font-size: 12px;
    }

    .remove-spaces-editor-stats {
        gap: 7px 16px;
        font-size: 12px;
    }

    .remove-spaces-editor-stats strong {
        font-size: 13px;
    }

    /* CLEANUP OPTIONS */

    .remove-spaces-options {
        margin-bottom: 20px;
        padding: 14px 12px;

        border-radius: 9px;
    }

    .remove-spaces-options-title {
        font-size: 18px;
    }

    .remove-spaces-options-description {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .remove-spaces-options-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    .remove-spaces-option {
        min-height: 0;
        gap: 10px;

        padding: 12px;
        border-radius: 7px;
    }

    .remove-spaces-option input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .remove-spaces-option-title {
        font-size: 14px;
    }

    .remove-spaces-option-description {
        font-size: 12px;
    }

    /* CLEANUP SUMMARY */

    .remove-spaces-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .remove-spaces-summary-item {
        min-height: 87px;
        gap: 6px;

        padding: 12px 5px;
        border-radius: 8px;
    }

    .remove-spaces-summary-number {
        font-size: 23px;
    }

    .remove-spaces-summary-label {
        font-size: 11px;
        line-height: 1.35;
    }

    /* MAIN ACTIONS */

    .remove-spaces-main-actions {
        gap: 8px;
        margin-top: 20px;
    }

    .remove-spaces-action-button {
        min-height: 42px;

        padding: 10px 12px;

        font-size: 13px;
    }

    .remove-spaces-privacy {
        font-size: 12px;
    }

    /* ARTICLE */

    .remove-spaces-content {
        margin-top: 36px;
        font-size: 15px;
    }

    .remove-spaces-content section {
        margin-bottom: 31px;
    }

    .remove-spaces-content h2 {
        margin-bottom: 12px;
        font-size: 21px;
    }

    .remove-spaces-content h3 {
        margin-top: 22px;
        font-size: 17px;
    }

    .remove-spaces-content p,
    .remove-spaces-content ul,
    .remove-spaces-content ol {
        font-size: 15px;
        line-height: 1.75;
    }

    .remove-spaces-content ul,
    .remove-spaces-content ol {
        padding-left: 23px;
    }

    /* EXAMPLES */

    .remove-spaces-example-block {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .remove-spaces-example-block > div {
        padding: 12px;
    }

    .remove-spaces-example-block pre {
        padding: 10px;
        font-size: 13px;
    }

    /* EXCEL FORMULA */

    .remove-spaces-formula {
        padding: 13px 12px;
    }

    .remove-spaces-content .remove-spaces-formula code {
        font-size: 13px;
    }

    /* RELATED TOOLS */

    .remove-spaces-content .remove-spaces-related-links {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    .remove-spaces-related-links a {
        min-height: 43px;
        font-size: 14px;
    }

    .remove-spaces-related-callout {
        padding: 15px;
    }

}


/* =========================================================
   RESPONSIVE — VERY SMALL MOBILE
   ========================================================= */

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

    .remove-spaces-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .remove-spaces-heading h1 {
        font-size: 25px;
    }

    .remove-spaces-options {
        padding: 12px 10px;
    }

    .remove-spaces-option {
        padding: 10px;
    }

    .remove-spaces-option-title {
        font-size: 13px;
    }

    .remove-spaces-option-description {
        font-size: 11px;
    }

    .remove-spaces-summary {
        gap: 6px;
    }

    .remove-spaces-summary-item {
        padding: 10px 4px;
        min-height: 83px;
    }

    .remove-spaces-summary-number {
        font-size: 20px;
    }

    .remove-spaces-summary-label {
        font-size: 10px;
    }

    .remove-spaces-main-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .remove-spaces-action-button {
        width: 100%;
    }

    .remove-spaces-content h2 {
        font-size: 20px;
    }

}


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

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

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

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;
    }

}


/* =========================================================
   PRINT STYLES
   ========================================================= */

@media print {

    .remove-spaces-page {
        padding: 0;
        color: #000;
    }

    .remove-spaces-layout {
        display: block;
        max-width: none;
    }

    .remove-spaces-sidebar,
    .remove-spaces-example-button,
    .remove-spaces-textarea-actions,
    .remove-spaces-main-actions {
        display: none !important;
    }

    .remove-spaces-editor-grid {
        display: block;
    }

    .remove-spaces-editor {
        margin-bottom: 20px;
    }

    .remove-spaces-page .remove-spaces-textarea {
        height: auto;
        min-height: 150px;
        max-height: none;

        padding: 12px;

        border: 1px solid #999;

        box-shadow: none;
        resize: none;
    }

    .remove-spaces-options {
        border: 1px solid #bbb;
        background: #fff;
    }

    .remove-spaces-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .remove-spaces-option {
        border-color: #bbb;
        background: #fff;
    }

    .remove-spaces-summary-item {
        border-color: #bbb;
        background: #fff;
    }

    .remove-spaces-content {
        margin-top: 30px;
    }

    .remove-spaces-content a {
        color: #000;
        text-decoration: underline;
    }

    .remove-spaces-example-block {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .remove-spaces-example-block > div,
    .remove-spaces-example-block pre,
    .remove-spaces-formula {
        border-color: #bbb;
        background: #fff;
    }

    .remove-spaces-related-links a,
    .remove-spaces-related-callout {
        border-color: #bbb;
        background: #fff;
    }

}
