
/* =========================================================
   Phrase Frequency Counter
   File: phrase-frequency-counter.css
   ========================================================= */


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

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

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.footer {
    width: 100%;
}


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

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


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

.phrase-frequency-main {
    width: 100%;
}

.phrase-frequency-section {
    width: 100%;
    padding: 9.5rem 2rem 6rem;
}


/* =========================================================
   MAIN CONTENT + 300PX SIDEBAR
   ========================================================= */

.phrase-frequency-layout {
    display: grid;
    grid-template-columns: minmax(0, 900px) 300px;
    justify-content: center;
    align-items: start;
    gap: 2.5rem;
    width: 100%;
    max-width: 1230px;
    margin: 0 auto;
}

.phrase-frequency-main-column {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

#sidebar {
    width: 300px;
    min-width: 300px;
    min-height: 600px;
    margin: 0;
    padding: 0;
}


/* =========================================================
   TOOL HEADER
   ========================================================= */

.vc-tool-header {
    width: 100%;
    margin-bottom: 1.7rem;
    text-align: center;
}

.vc-title {
    margin: 0 0 0.7rem;
    color: #222;
    font-size: 3.4rem;
    line-height: 1.2;
    font-weight: 700;
}

.vc-intro {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    color: #555;
    font-size: 1.65rem;
    line-height: 1.5;
    font-weight: 400;
}


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

.vc-text-input-section {
    width: 100%;
    margin-bottom: 0.35rem;
}

.vc-textarea-wrapper {
    position: relative;
    width: 100%;
}


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

.vc-textarea {
    display: block;
    width: 100%;
    height: 290px;
    min-height: 175px;
    padding: 1.5rem 1.5rem 5.4rem;
    border: 2px solid #c7c7c7;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-family: Arial, sans-serif;
    font-size: 1.7rem;
    line-height: 1.6;
    resize: vertical;
    overflow-y: auto;
    outline: none;

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

.vc-textarea:hover {
    border-color: #999;
}

.vc-textarea:focus {
    border-color: #222;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.055);
}

.vc-textarea::placeholder {
    color: #888;
}


/* =========================================================
   COPY / CLEAR / UNDO BUTTONS
   ========================================================= */

.vc-textarea-actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 3;
}

.vc-text-button {
    appearance: none;
    border: none;
    border-radius: 5px;
    padding: 0.72rem 1.15rem;
    background: rgba(0, 0, 0, 0.63);
    color: #fff;
    font-family: inherit;
    font-size: 1.32rem;
    line-height: 1;
    font-weight: 500;
    cursor: pointer;

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

.vc-text-button:hover {
    background: rgba(0, 0, 0, 0.82);
}

.vc-text-button:active {
    transform: translateY(1px);
}

.vc-text-button:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.vc-text-button.undo-active {
    background: rgba(26, 115, 232, 0.84);
}

.vc-text-button.undo-active:hover {
    background: rgba(26, 115, 232, 1);
}


/* =========================================================
   MAX CHARACTER WARNING
   ========================================================= */

.vc-max-char-warning {
    margin: 0.45rem 0 0;
    padding: 0.9rem 1.1rem;
    border-radius: 6px;
    background: #fff3cd;
    color: #725900;
    font-size: 1.4rem;
    line-height: 1.45;
}

.vc-max-char-warning[hidden] {
    display: none !important;
}


/* =========================================================
   RESULTS SECTION
   ========================================================= */

.vc-results-section {
    width: 100%;
}


/* =========================================================
   RESULTS TITLE
   ========================================================= */

.vc-results-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    border: 1px solid #d9e1ea;
    border-left: 4px solid #1a73e8;
    border-radius: 7px;
    background: #f8fafc;
}

.vc-results-title {
    margin: 0;
    color: #252525;
    font-size: 2.15rem;
    line-height: 1.3;
    font-weight: 700;
}


/* =========================================================
   PHRASE SETTINGS
   ========================================================= */

.vc-phrase-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    width: 100%;
    margin-bottom: 1rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid #d7d7d7;
    border-radius: 7px;
    background: #fafafa;
}

.vc-setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.vc-setting-group label {
    color: #444;
    font-size: 1.45rem;
    line-height: 1.3;
    font-weight: 600;
}

.vc-setting-group select {
    appearance: auto;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0.75rem 1rem;
    border: 1px solid #b9b9b9;
    border-radius: 5px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 1.45rem;
    line-height: 1.3;
    cursor: pointer;
    outline: none;
}

.vc-setting-group select:hover {
    border-color: #888;
}

.vc-setting-group select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.12);
}


/* =========================================================
   SORT AND ADDITIONAL OPTIONS
   ========================================================= */

.vc-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
    padding: 1.1rem 1.3rem;
    border: 1px solid #d7d7d7;
    border-radius: 7px;
    background: #fafafa;
}


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

.vc-sort-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 0 0 auto;
}

.vc-sort-control label {
    color: #444;
    font-size: 1.45rem;
    line-height: 1.3;
    font-weight: 600;
    white-space: nowrap;
}

#sortOptions {
    min-width: 190px;
    padding: 0.75rem 3.2rem 0.75rem 1rem;
    border: 1px solid #b9b9b9;
    border-radius: 5px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 1.45rem;
    line-height: 1.3;
    cursor: pointer;
    outline: none;
}

#sortOptions:hover {
    border-color: #888;
}

#sortOptions:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.12);
}


/* =========================================================
   PHRASE OPTIONS
   ========================================================= */

.vc-phrase-options {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
}

.vc-option-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
    width: 100%;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.vc-case-control {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #444;
    font-size: 1.4rem;
    line-height: 1.35;
    cursor: pointer;
}

#caseSensitive {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
    accent-color: #1a73e8;
}

.vc-case-control span {
    min-width: 0;
}


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

.vc-option-help {
    margin-left: 25px;
    max-width: 430px;
    color: #777;
    font-size: 1.22rem;
    line-height: 1.4;
    font-weight: 400;
}


/* =========================================================
   FILTER NOTE
   ========================================================= */

.vc-filter-note {
    width: 100%;
    margin: 0 0 1.2rem;
    padding: 0 0.2rem;
    color: #777;
    font-size: 1.3rem;
    line-height: 1.5;
}


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

.vc-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.035);
}

.vc-table-wrapper:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}


/* =========================================================
   FREQUENCY TABLES
   ========================================================= */

#vc-frequencyTable,
#vc-totalTable {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff;
}

#vc-totalTable {
    border-top: 1px solid #d5d5d5;
}


/* =========================================================
   TABLE HEAD
   ========================================================= */

#vc-frequencyTable thead {
    background: #f7f7f7;
}

#vc-frequencyTable th {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #dedede;
    color: #333;
    font-size: 1.35rem;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
}


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

#vc-frequencyTable td,
#vc-totalTable td,
#vc-totalTable th {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid #ececec;
    color: #333;
    font-size: 1.45rem;
    line-height: 1.45;
    text-align: center;
}

#vc-frequencyTable tbody tr:last-child td {
    border-bottom: none;
}


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

#vc-frequencyTable th:first-child,
#vc-frequencyTable td:first-child,
#vc-totalTable th:first-child,
#vc-totalTable td:first-child {
    width: 43%;
}

#vc-frequencyTable th:nth-child(2),
#vc-frequencyTable td:nth-child(2),
#vc-totalTable th:nth-child(2),
#vc-totalTable td:nth-child(2) {
    width: 20%;
}

#vc-frequencyTable th:nth-child(3),
#vc-frequencyTable td:nth-child(3),
#vc-totalTable th:nth-child(3),
#vc-totalTable td:nth-child(3) {
    width: 37%;
}


/* =========================================================
   FREQUENCY ROWS
   ========================================================= */

#vc-frequencyTable tbody tr:nth-child(even) {
    background: #fafafa;
}

#vc-frequencyTable tbody tr:nth-child(odd) {
    background: #fff;
}

#vc-frequencyTable tbody tr:hover {
    background: #f7f9fc;
}


/* =========================================================
   PHRASE CELLS
   ========================================================= */

.vc-phrase-cell,
.vc-word-cell {
    color: #333;
    font-weight: 600;
    text-align: left !important;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.vc-phrase-cell[title],
.vc-word-cell[title] {
    cursor: default;
}


/* =========================================================
   PERCENTAGE BARS
   ========================================================= */

.vc-percentage-cell {
    position: relative;
}

.vc-percentage-content {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
}

.vc-percentage-number {
    min-width: 55px;
    flex: 0 0 auto;
    text-align: right;
}

.vc-frequency-bar-track {
    display: block;
    position: relative;
    flex: 1 1 auto;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6e6e6;
}

.vc-frequency-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #1a73e8;
    transition: width 0.2s ease;
}


/* =========================================================
   TOTAL ROW
   ========================================================= */

#vc-totalTable tbody tr {
    background: #f3f3f3;
    font-weight: 700;
}

#vc-totalTable td,
#vc-totalTable th {
    border-bottom: none;
}


/* =========================================================
   EMPTY TABLE STATE
   ========================================================= */

.vc-empty-row td {
    padding: 1.6rem 1rem !important;
    color: #777 !important;
    font-weight: 400 !important;
    text-align: center !important;
}


/* =========================================================
   CSV EXPORT
   ========================================================= */

.vc-export-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 1rem 0 0;
}

.vc-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.85rem 1.4rem;
    border: none;
    border-radius: 5px;
    background: #1a73e8;
    color: #fff;
    font-family: inherit;
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease,
        opacity 0.15s ease;
}

.vc-button:hover {
    background: #155fc0;
}

.vc-button:active {
    transform: translateY(1px);
}

.vc-button:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 3px;
}

.vc-button:disabled {
    opacity: 0.65;
    cursor: wait;
}


/* =========================================================
   SUMMARY METRICS
   ========================================================= */

.vc-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    width: 100%;
    margin: 0.9rem 0 1rem;
}

.vc-summary-below-table {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.vc-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 82px;
    padding: 0.7rem 0.8rem;
    border: 1px solid #cfcfcf;
    border-radius: 7px;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.045);
}

.vc-summary-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    margin-bottom: 0.2rem;
    color: #444;
    font-size: 1.4rem;
    line-height: 1.25;
    font-weight: 600;
}

.vc-summary-value {
    color: #1a73e8;
    font-size: 3rem;
    line-height: 1.05;
    font-weight: 600;
    overflow-wrap: anywhere;
}


/* =========================================================
   RELATED TOOL CALLOUT
   ========================================================= */

.phrase-frequency-callout {
    width: 100%;
    margin: 0;
    padding: 1rem 1.25rem;
    border: 1px solid #d9e3f0;
    border-radius: 7px;
    background: #f8fbff;
    color: #444;
    font-size: 1.45rem;
    line-height: 1.5;
    text-align: center;
}

.phrase-frequency-callout strong {
    color: #444;
    font-weight: 700;
}

.phrase-frequency-callout a {
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
}

.phrase-frequency-callout a:hover {
    text-decoration: underline;
}

.phrase-frequency-callout a:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 3px;
    border-radius: 2px;
}


/* =========================================================
   INFORMATIONAL CONTENT
   ========================================================= */

.phrase-frequency-content {
    width: 100%;
    padding-top: 3.5rem;
}

.phrase-frequency-content h2 {
    margin: 3rem 0 1rem;
    color: #222;
    font-size: 2.35rem;
    line-height: 1.35;
    font-weight: 700;
}

.phrase-frequency-content h2:first-child {
    margin-top: 0;
}

.phrase-frequency-content h3 {
    margin: 2rem 0 0.65rem;
    color: #2b2b2b;
    font-size: 1.85rem;
    line-height: 1.4;
    font-weight: 650;
}

.phrase-frequency-content p {
    margin: 0 0 1.5rem;
    color: #444;
    font-size: 1.7rem;
    line-height: 1.72;
    font-weight: 300;
}

.phrase-frequency-content a {
    color: #1a73e8;
    text-decoration: none;
}

.phrase-frequency-content a:hover {
    text-decoration: underline;
}

.phrase-frequency-content a:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 3px;
    border-radius: 2px;
}


/* =========================================================
   INFORMATIONAL CONTENT LISTS
   ========================================================= */

.phrase-frequency-content ul {
    margin: 0 0 2rem 2.4rem;
    padding: 0;
    color: #444;
    list-style-type: disc;
    list-style-position: outside;
}

.phrase-frequency-content ol {
    margin: 0 0 2rem 2.4rem;
    padding: 0;
    color: #444;
    list-style-type: decimal;
    list-style-position: outside;
}

.phrase-frequency-content li {
    display: list-item;
    margin-bottom: 0.65rem;
    padding-left: 0.2rem;
    color: #444;
    font-size: 1.65rem;
    line-height: 1.55;
}


/* =========================================================
   FREQUENCY FORMULA
   ========================================================= */

.frequency-formula {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    margin: 0.9rem 0 2rem;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid #1a73e8;
    border-radius: 6px;
    background: #f8fbff;
    color: #444;
    font-size: 1.6rem;
    line-height: 1.55;
}

.frequency-formula strong {
    color: #333;
    font-weight: 700;
}


/* =========================================================
   PHRASE FREQUENCY EXAMPLE TABLE
   ========================================================= */

.word-example-table-wrapper {
    width: 100%;
    margin: 0.9rem 0 2rem;
    overflow-x: auto;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.035);
}

.word-example-table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    background: #fff;
}

.word-example-table th,
.word-example-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #ececec;
    color: #333;
    font-size: 1.45rem;
    line-height: 1.45;
    text-align: center;
}

.word-example-table th {
    background: #f7f7f7;
    font-size: 1.35rem;
    font-weight: 700;
}

.word-example-table tbody tr:last-child td {
    border-bottom: none;
}

.word-example-table tbody tr:hover {
    background: #fafafa;
}

.word-example-table tfoot {
    background: #f3f3f3;
    font-weight: 700;
}

.word-example-table tfoot th,
.word-example-table tfoot td {
    border-bottom: none;
}


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

.related-tools-list {
    margin: 0 0 2rem 2.4rem !important;
    padding: 0 !important;
    color: #444;
    list-style-type: disc !important;
    list-style-position: outside;
}

.related-tools-list li {
    display: list-item !important;
    margin-bottom: 0.65rem;
    padding-left: 0.2rem;
    font-size: 1.65rem;
    line-height: 1.55;
    list-style-type: disc !important;
}

.related-tools-list a {
    color: #1a73e8;
    text-decoration: none;
}

.related-tools-list a:hover {
    text-decoration: underline;
}


/* =========================================================
   SCROLLBARS
   ========================================================= */

.vc-textarea::-webkit-scrollbar,
.vc-table-wrapper::-webkit-scrollbar,
.word-example-table-wrapper::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.vc-textarea::-webkit-scrollbar-track {
    background: transparent;
}

.vc-table-wrapper::-webkit-scrollbar-track,
.word-example-table-wrapper::-webkit-scrollbar-track {
    background: #f2f2f2;
}

.vc-textarea::-webkit-scrollbar-thumb {
    border: 2px solid #fff;
    border-radius: 10px;
    background: #b5b5b5;
}

.vc-table-wrapper::-webkit-scrollbar-thumb,
.word-example-table-wrapper::-webkit-scrollbar-thumb {
    border: 2px solid #f2f2f2;
    border-radius: 10px;
    background: #b5b5b5;
}

.vc-textarea::-webkit-scrollbar-thumb:hover,
.vc-table-wrapper::-webkit-scrollbar-thumb:hover,
.word-example-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #929292;
}


/* =========================================================
   LARGE SCREENS
   ========================================================= */

@media (min-width: 1400px) {

    .vc-textarea {
        height: 310px;
    }

    .vc-intro {
        max-width: 900px;
        font-size: 1.6rem;
    }

}


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

@media (max-width: 1200px) {

    .phrase-frequency-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        max-width: 1120px;
    }

}


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

@media (max-width: 992px) {

    .phrase-frequency-layout {
        display: block;
        max-width: 900px;
        margin: 0 auto;
    }

    #sidebar {
        display: none;
    }

}


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

@media (max-width: 800px) {

    .phrase-frequency-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .vc-intro {
        font-size: 1.6rem;
    }

    .vc-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .vc-sort-control {
        width: 100%;
        justify-content: space-between;
    }

    .vc-phrase-options {
        width: 100%;
    }

    .vc-option-help {
        max-width: none;
    }

}


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

@media (max-width: 600px) {

    /* MAIN SECTION */

    .phrase-frequency-section {
        padding: 8.5rem 1rem 4rem;
    }


    /* TOOL HEADER */

    .vc-tool-header {
        margin-bottom: 1.4rem;
    }

    .vc-title {
        font-size: 3rem;
    }

    .vc-intro {
        max-width: 100%;
        font-size: 1.55rem;
        line-height: 1.55;
    }


    /* TEXTAREA */

    .vc-text-input-section {
        margin-bottom: 0.3rem;
    }

    .vc-textarea {
        height: 245px;
        min-height: 155px;
        padding: 1.3rem 1.3rem 5.2rem;
        font-size: 1.6rem;
    }

    .vc-textarea-actions {
        right: 9px;
        bottom: 9px;
        gap: 6px;
    }

    .vc-text-button {
        padding: 0.68rem 1rem;
        font-size: 1.25rem;
    }


    /* RESULTS TITLE */

    .vc-results-header {
        padding: 0.9rem 1rem;
        border-left-width: 4px;
    }

    .vc-results-title {
        font-size: 1.95rem;
    }


    /* PHRASE SETTINGS */

    .vc-phrase-settings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
        padding: 1rem;
    }

    .vc-setting-group {
        gap: 0.5rem;
    }

    .vc-setting-group label {
        font-size: 1.3rem;
        line-height: 1.35;
    }

    .vc-setting-group select {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 0.65rem 0.5rem;
        font-size: 1.35rem;
    }


    /* SORT / CONTROLS */

    .vc-controls {
        padding: 1rem;
    }

    .vc-sort-control {
        display: block;
    }

    .vc-sort-control label {
        display: block;
        margin-bottom: 0.55rem;
        font-size: 1.4rem;
    }

    #sortOptions {
        width: 100%;
        min-width: 0;
        font-size: 1.5rem;
    }

    .vc-phrase-options {
        gap: 1rem;
    }

    .vc-case-control {
        align-items: flex-start;
        font-size: 1.35rem;
    }

    #caseSensitive {
        margin-top: 0.1rem;
    }

    .vc-option-help {
        margin-left: 25px;
        font-size: 1.18rem;
        line-height: 1.42;
    }


    /* FILTER NOTE */

    .vc-filter-note {
        font-size: 1.2rem;
        line-height: 1.5;
    }


    /* RESULTS TABLE */

    #vc-frequencyTable th,
    #vc-frequencyTable td,
    #vc-totalTable td,
    #vc-totalTable th {
        padding: 0.85rem 0.55rem;
        font-size: 1.35rem;
    }

    .occurrences-header,
    .percentage-header {
        font-size: 0 !important;
    }

    .occurrences-header::after {
        content: "#";
        font-size: 1.4rem;
    }

    .percentage-header::after {
        content: "%";
        font-size: 1.4rem;
    }

    #vc-frequencyTable th:first-child,
    #vc-frequencyTable td:first-child,
    #vc-totalTable th:first-child,
    #vc-totalTable td:first-child {
        width: 42%;
    }

    #vc-frequencyTable th:nth-child(2),
    #vc-frequencyTable td:nth-child(2),
    #vc-totalTable th:nth-child(2),
    #vc-totalTable td:nth-child(2) {
        width: 18%;
    }

    #vc-frequencyTable th:nth-child(3),
    #vc-frequencyTable td:nth-child(3),
    #vc-totalTable th:nth-child(3),
    #vc-totalTable td:nth-child(3) {
        width: 40%;
    }

    .vc-percentage-content {
        gap: 0.55rem;
    }

    .vc-percentage-number {
        min-width: 43px;
    }

    .vc-frequency-bar-track {
        height: 7px;
    }

    .vc-phrase-cell,
    .vc-word-cell {
        padding-left: 0.7rem !important;
        padding-right: 0.7rem !important;
        overflow-wrap: anywhere;
    }


    /* DOWNLOAD BUTTON */

    .vc-button {
        width: 100%;
    }


    /* SUMMARY */

    .vc-summary {
        gap: 0.55rem;
    }

    .vc-summary-card {
        min-height: 74px;
        padding: 0.55rem 0.45rem;
    }

    .vc-summary-label {
        min-height: 24px;
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .vc-summary-value {
        font-size: 2.5rem;
    }


    /* RELATED TOOL CALLOUT */

    .phrase-frequency-callout {
        padding: 0.95rem 1rem;
        font-size: 1.35rem;
        line-height: 1.55;
    }


    /* INFORMATIONAL CONTENT */

    .phrase-frequency-content {
        padding-top: 3rem;
    }

    .phrase-frequency-content h2 {
        margin-top: 2.5rem;
        font-size: 2.1rem;
    }

    .phrase-frequency-content h3 {
        font-size: 1.75rem;
    }

    .phrase-frequency-content p {
        font-size: 1.6rem;
        line-height: 1.68;
    }

    .phrase-frequency-content li {
        font-size: 1.55rem;
    }


    /* FORMULA */

    .frequency-formula {
        padding: 1.2rem 1.3rem;
        font-size: 1.5rem;
    }


    /* EXAMPLE TABLE */

    .word-example-table {
        min-width: 500px;
    }

    .word-example-table th,
    .word-example-table td {
        padding: 0.9rem 0.8rem;
        font-size: 1.35rem;
    }

    .word-example-table th {
        font-size: 1.25rem;
    }

}


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

@media (max-width: 400px) {

    .phrase-frequency-section {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .vc-title {
        font-size: 2.8rem;
    }

    .vc-textarea {
        height: 215px;
        min-height: 145px;
    }

    .vc-results-header {
        padding: 0.8rem 0.9rem;
    }

    .vc-results-title {
        font-size: 1.85rem;
    }


    /* PHRASE SETTINGS */

    .vc-phrase-settings {
        gap: 0.6rem;
        padding: 0.85rem;
    }

    .vc-setting-group label {
        font-size: 1.2rem;
    }

    .vc-setting-group select {
        padding: 0.65rem 0.35rem;
        font-size: 1.25rem;
    }


    /* OPTIONS */

    .vc-option-help {
        margin-left: 24px;
        font-size: 1.12rem;
    }

    .vc-case-control {
        font-size: 1.28rem;
    }

    #caseSensitive {
        width: 17px;
        height: 17px;
    }


    /* RESULTS TABLE */

    #vc-frequencyTable th,
    #vc-frequencyTable td,
    #vc-totalTable td,
    #vc-totalTable th {
        padding: 0.75rem 0.35rem;
        font-size: 1.25rem;
    }

    #vc-frequencyTable th:first-child,
    #vc-frequencyTable td:first-child,
    #vc-totalTable th:first-child,
    #vc-totalTable td:first-child {
        width: 42%;
    }

    #vc-frequencyTable th:nth-child(2),
    #vc-frequencyTable td:nth-child(2),
    #vc-totalTable th:nth-child(2),
    #vc-totalTable td:nth-child(2) {
        width: 18%;
    }

    #vc-frequencyTable th:nth-child(3),
    #vc-frequencyTable td:nth-child(3),
    #vc-totalTable th:nth-child(3),
    #vc-totalTable td:nth-child(3) {
        width: 40%;
    }

    .vc-percentage-content {
        gap: 0.35rem;
    }

    .vc-percentage-number {
        min-width: 39px;
    }

    .vc-frequency-bar-track {
        height: 6px;
    }


    /* SUMMARY */

    .vc-summary {
        gap: 0.45rem;
    }

    .vc-summary-card {
        min-height: 70px;
        padding: 0.5rem 0.35rem;
    }

    .vc-summary-label {
        min-height: 22px;
        font-size: 1.02rem;
    }

    .vc-summary-value {
        font-size: 2.3rem;
    }


    /* RELATED TOOL CALLOUT */

    .phrase-frequency-callout {
        padding: 0.9rem 0.8rem;
        font-size: 1.28rem;
    }


    /* EXAMPLE TABLE */

    .word-example-table {
        min-width: 460px;
    }

    .word-example-table th,
    .word-example-table td {
        padding: 0.8rem 0.7rem;
        font-size: 1.25rem;
    }

    .word-example-table th {
        font-size: 1.18rem;
    }

}
