
/* =========================================================
   LOREM IPSUM GENERATOR — CharacterCounter.com

   DESKTOP:
   Generate Button + Settings | Results | 300px Sidebar

   TABLET / MOBILE:
   Generate Button
   Generator Options
   Generation Status
   Generated Text
   Result Statistics

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


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

.lorem-ipsum-page {
    width: 100%;
    padding: 105px 15px 30px;
    color: #333;
    font-family: "Roboto", Arial, sans-serif;
}

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

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

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

.lorem-ipsum-page button {
    -webkit-tap-highlight-color: transparent;
}

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

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

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


/* =========================================================
   OUTER LAYOUT

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

.lorem-ipsum-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 28px;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.lorem-ipsum-tool-section {
    width: 100%;
    min-width: 0;
}


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

.lorem-ipsum-heading {
    width: 100%;
    margin: 0 0 22px;
    text-align: center;
}

.lorem-ipsum-heading h1 {
    margin: 0 0 10px;
    padding: 0;

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

    overflow-wrap: break-word;
}

.lorem-ipsum-intro {
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
    padding: 0;

    color: #555;
    font-size: 17px;
    line-height: 1.55;
}

.lorem-ipsum-notice {
    margin: 0 0 16px;
    padding: 12px 14px;

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

    background: #fff9eb;
    color: #665022;

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


/* =========================================================
   GENERATOR FORM

   ORDER ON ALL SCREEN SIZES:

   1. Generate Lorem Ipsum Button
   2. Generator Options
   3. Generation Status

   The selectors below intentionally have higher
   specificity than the older inline HTML rules.
   ========================================================= */

.lorem-ipsum-page .lorem-ipsum-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

/* Generate button FIRST */

.lorem-ipsum-page
.lorem-ipsum-tool-section
.lorem-ipsum-form
> .lorem-ipsum-generate-actions {
    order: 1 !important;
    margin: 0 0 15px !important;
}

/* Generator Options SECOND */

.lorem-ipsum-page
.lorem-ipsum-tool-section
.lorem-ipsum-form
> .lorem-ipsum-options {
    order: 2 !important;
}

/* Generation message THIRD */

.lorem-ipsum-page
.lorem-ipsum-tool-section
.lorem-ipsum-form
> .lorem-ipsum-status {
    order: 3 !important;
    margin: 10px 0 0 !important;
}


/* =========================================================
   GENERATOR OPTIONS PANEL
   ========================================================= */

.lorem-ipsum-options {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 18px;

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

    background: #fafbfc;
}

.lorem-ipsum-options-heading {
    margin: 0 0 16px;
}

.lorem-ipsum-options-heading h2 {
    margin: 0;
    padding: 0;

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


/* =========================================================
   GENERATOR SETTINGS GRID
   ========================================================= */

.lorem-ipsum-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;

    gap: 15px 16px;

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

.lorem-ipsum-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 7px;

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

.lorem-ipsum-field label {
    display: block;

    margin: 0;
    padding: 0;

    color: #444;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}


/* =========================================================
   INPUTS AND DROPDOWNS
   ========================================================= */

.lorem-ipsum-field input,
.lorem-ipsum-field select {
    display: block;

    width: 100%;
    min-width: 0;

    height: 43px;
    min-height: 43px;

    margin: 0;
    padding: 9px 12px;

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

    background: #fff;
    color: #333;

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

    outline: none;
    box-shadow: none;

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

.lorem-ipsum-field select {
    padding-right: 32px;
    cursor: pointer;
}

.lorem-ipsum-field input:hover,
.lorem-ipsum-field select:hover {
    border-color: #aeb4bd;
}

.lorem-ipsum-field input:focus,
.lorem-ipsum-field select:focus {
    border-color: #1a73e8;

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

.lorem-ipsum-field input:disabled,
.lorem-ipsum-field select:disabled {
    background: #f1f3f5;
    color: #8a9099;
    cursor: not-allowed;
}

.lorem-ipsum-field input::placeholder {
    color: #9299a2;
    opacity: 1;
}

.lorem-ipsum-field input[type="number"] {
    font-variant-numeric: tabular-nums;
}

.lorem-ipsum-field input[aria-invalid="true"] {
    border-color: #c93c3c;
}

.lorem-ipsum-field input[aria-invalid="true"]:focus {
    box-shadow:
        0 0 0 3px rgba(201, 60, 60, 0.12);
}


/* =========================================================
   QUANTITY HELP TEXT
   ========================================================= */

.lorem-ipsum-field-help {
    margin: 11px 0 0;
    padding: 0;

    color: #757d87;
    font-size: 13px;
    line-height: 1.5;

    overflow-wrap: break-word;
}


/* =========================================================
   CLASSIC OPENING CHECKBOX
   ========================================================= */

.lorem-ipsum-checkbox-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    width: 100%;
    margin: 15px 0 0;
}

.lorem-ipsum-checkbox-label {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    max-width: 100%;
    margin: 0;
    padding: 0;

    color: #444;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;

    cursor: pointer;
}

.lorem-ipsum-checkbox-label input[type="checkbox"] {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin: 0;
    padding: 0;

    accent-color: #1a73e8;
    cursor: pointer;
}

.lorem-ipsum-checkbox-label input:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 3px;
}

.lorem-ipsum-checkbox-label span {
    min-width: 0;
    overflow-wrap: break-word;
}


/* =========================================================
   GENERATE BUTTON

   AT TOP OF GENERATOR OPTIONS COLUMN
   ========================================================= */

.lorem-ipsum-generate-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
}

.lorem-ipsum-page .lorem-ipsum-generate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

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

    margin: 0;
    padding: 12px 15px;

    border: 1px solid #1765c1;
    border-radius: 8px;

    background: #1a73e8;
    color: #fff;

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

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

    cursor: pointer;
    user-select: none;

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

.lorem-ipsum-generate-button i {
    flex: 0 0 auto;

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

.lorem-ipsum-page .lorem-ipsum-generate-button:hover {
    border-color: #1458a9;
    background: #155fbd;
    color: #fff;
}

.lorem-ipsum-page .lorem-ipsum-generate-button:active {
    background: #124e9f;
}

.lorem-ipsum-page .lorem-ipsum-generate-button:focus-visible {
    outline: 3px solid rgba(26, 115, 232, 0.25);
    outline-offset: 3px;
}

.lorem-ipsum-page .lorem-ipsum-generate-button:disabled {
    border-color: #a3b9d2;
    background: #b8c9dc;
    color: #fff;
    cursor: not-allowed;
}


/* =========================================================
   GENERATION STATUS

   Appears below Generator Options.

   Example:
   Generated 3 paragraphs.
   ========================================================= */

.lorem-ipsum-status {
    width: 100%;

    margin: 10px 0 0;
    padding: 0;

    color: #666;
    font-size: 13px;
    line-height: 1.5;

    overflow-wrap: break-word;
}

.lorem-ipsum-status.is-error {
    color: #bf3030;
}

.lorem-ipsum-status.is-success {
    color: #257447;
}


/* =========================================================
   GENERATED OUTPUT SECTION
   ========================================================= */

.lorem-ipsum-output-section {
    width: 100%;
    min-width: 0;

    margin: 24px 0 0;
    padding: 0;
}

.lorem-ipsum-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

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

    width: 100%;
    margin: 0 0 9px;
}

.lorem-ipsum-output-header h2 {
    margin: 0;
    padding: 0;

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


/* =========================================================
   RESULT ACTION BUTTONS

   Copy Text | Download | Regenerate

   These stay ABOVE the results textarea.
   ========================================================= */

.lorem-ipsum-output-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;

    gap: 8px;

    width: 100%;
    margin: 0 0 12px;
}

.lorem-ipsum-page .lorem-ipsum-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 1 1 auto;
    gap: 6px;

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

    margin: 0;
    padding: 9px 10px;

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

    background: #f7f8fa;
    color: #444;

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

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

    cursor: pointer;
    user-select: none;

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

.lorem-ipsum-action-button i {
    flex: 0 0 auto;

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

.lorem-ipsum-page .lorem-ipsum-action-button:hover {
    border-color: #aeb6bf;
    background: #e9edf2;
    color: #333;
}

.lorem-ipsum-page .lorem-ipsum-action-button:active {
    background: #dfe5ec;
}

.lorem-ipsum-page .lorem-ipsum-action-button:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 3px;
}

.lorem-ipsum-page .lorem-ipsum-action-button:disabled {
    border-color: #e0e4e9;
    background: #f5f6f8;
    color: #969da6;

    opacity: 0.8;
    cursor: not-allowed;
}

.lorem-ipsum-page .lorem-ipsum-action-button:disabled:hover {
    border-color: #e0e4e9;
    background: #f5f6f8;
    color: #969da6;
}


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

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

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

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

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


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

.lorem-ipsum-output-wrapper {
    position: relative;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}

.lorem-ipsum-page .lorem-ipsum-output-textarea {
    display: block;

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

    height: 380px;
    min-height: 90px;
    max-height: 900px;

    margin: 0;
    padding: 17px 18px;

    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;
}

.lorem-ipsum-page .lorem-ipsum-output-textarea:hover {
    border-color: #aeb4bd;
}

.lorem-ipsum-page .lorem-ipsum-output-textarea:focus {
    border-color: #5f6368;

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

.lorem-ipsum-page .lorem-ipsum-output-textarea::placeholder {
    color: #8a8f98;
    opacity: 1;
}

.lorem-ipsum-page .lorem-ipsum-output-textarea[readonly] {
    background: #fff;
    cursor: text;
}

.lorem-ipsum-page .lorem-ipsum-output-textarea::selection {
    background: #c8ddfa;
    color: #222;
}


/* =========================================================
   OUTPUT STATISTICS

   Characters | Words | Paragraphs

   Positioned BELOW the textarea.
   ========================================================= */

.lorem-ipsum-statistics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 8px;

    width: 100%;
    margin: 14px 0 0;
}

.lorem-ipsum-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    min-width: 0;
    padding: 11px 6px;

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

    background: #f7f8fa;
    text-align: center;
}

.lorem-ipsum-stat-label {
    color: #666;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
}

.lorem-ipsum-stat-value {
    max-width: 100%;

    color: #1a73e8;
    font-size: 23px;
    line-height: 1.15;
    font-weight: 700;

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


/* =========================================================
   OUTPUT FORMAT HELP
   ========================================================= */

.lorem-ipsum-output-help {
    margin: 11px 0 0;
    padding: 0;

    color: #757d87;
    font-size: 13px;
    line-height: 1.5;

    overflow-wrap: break-word;
}


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

.lorem-ipsum-content {
    width: 100%;
    min-width: 0;

    margin-top: 36px;
    padding: 0;

    color: #333;
    font-size: 17px;
    line-height: 1.7;
    text-align: left;

    overflow-wrap: break-word;
}

.lorem-ipsum-content h2 {
    margin: 34px 0 12px;
    padding: 0;

    color: #292929;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
}

.lorem-ipsum-content > h2:first-child {
    margin-top: 0;
}

.lorem-ipsum-content h3 {
    margin: 26px 0 9px;
    padding: 0;

    color: #333;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.lorem-ipsum-content p {
    margin: 0 0 17px;
    padding: 0;

    color: #444;
    font-size: 17px;
    line-height: 1.7;
}

.lorem-ipsum-content strong {
    color: #333;
    font-weight: 700;
}

.lorem-ipsum-content em {
    font-style: italic;
}

.lorem-ipsum-content a {
    color: #1155cc;
    text-decoration: none;
}

.lorem-ipsum-content a:hover {
    color: #0b3d91;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lorem-ipsum-content ol,
.lorem-ipsum-content ul {
    margin: 8px 0 20px 28px;
    padding: 0;

    color: #444;
    list-style-position: outside;
}

.lorem-ipsum-content ol,
.lorem-ipsum-content ol li {
    list-style-type: decimal;
}

.lorem-ipsum-content ul,
.lorem-ipsum-content ul li {
    list-style-type: disc;
}

.lorem-ipsum-content li {
    margin-bottom: 8px;
    padding-left: 3px;

    color: #444;
    font-size: 17px;
    line-height: 1.65;
}

.lorem-ipsum-content code {
    padding: 2px 5px;

    border: 1px solid #e2e5e9;
    border-radius: 4px;

    background: #f3f5f7;
    color: #333;

    font-family:
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;

    font-size: 0.9em;
    overflow-wrap: anywhere;
}


/* =========================================================
   LOREM IPSUM EXAMPLE
   ========================================================= */

.lorem-ipsum-example {
    width: 100%;
    min-width: 0;

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

    border: 1px solid #dce1e7;
    border-left: 4px solid #9bbfea;
    border-radius: 8px;

    background: #f7f9fc;
}

.lorem-ipsum-example p {
    margin: 0;
    padding: 0;

    color: #444;
    font-size: 16px;
    line-height: 1.75;
    font-style: italic;
}


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

.lorem-ipsum-related-tools {
    width: 100%;
    min-width: 0;

    margin: 36px 0 0;
    padding: 22px;

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

    background: #f7f9fc;
}

.lorem-ipsum-content .lorem-ipsum-related-tools h2 {
    margin: 0 0 8px;
    padding: 0;

    color: #292929;
    font-size: 23px;
    line-height: 1.35;
    font-weight: 700;
}

.lorem-ipsum-related-tools-intro,
.lorem-ipsum-content .lorem-ipsum-related-tools-intro {
    margin: 0 0 14px;

    color: #555;
    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   RELATED TOOL LINKS
   ========================================================= */

.lorem-ipsum-related-tool-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px;
    width: 100%;

    margin: 0 0 16px !important;
    padding: 0 !important;

    list-style: none !important;
}

.lorem-ipsum-related-tool-links li {
    min-width: 0;
    margin: 0;
    padding: 0;

    list-style: none !important;
}

.lorem-ipsum-related-tool-links a {
    display: flex;
    align-items: center;
    justify-content: center;

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

    padding: 11px 13px;

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

    background: #fff;
    color: #1155cc;

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

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

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

.lorem-ipsum-related-tool-links a:hover {
    border-color: #a9c5ee;
    background: #eef5ff;
    color: #0b3d91;

    text-decoration: underline;
    text-underline-offset: 2px;
}

.lorem-ipsum-related-tool-links a:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}


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

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

    gap: 12px;
    width: 100%;
}

.lorem-ipsum-related-tool-callout {
    min-width: 0;
    padding: 14px 15px;

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

    background: #fff;
}

.lorem-ipsum-content .lorem-ipsum-related-tool-callout h3 {
    margin: 0 0 5px;
    padding: 0;

    color: #343a40;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.lorem-ipsum-content .lorem-ipsum-related-tool-callout p {
    margin: 0;
    padding: 0;

    color: #555;
    font-size: 14px;
    line-height: 1.55;
}

.lorem-ipsum-related-tool-callout a {
    color: #1155cc;
    text-decoration: none;
}

.lorem-ipsum-related-tool-callout a:hover {
    color: #0b3d91;
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* =========================================================
   RAPTIVE / ADTHRIVE SIDEBAR
   ========================================================= */

.lorem-ipsum-layout > #sidebar {
    width: 300px;
    min-width: 300px;
    min-height: 600px;
}


/* =========================================================
   THREE-COLUMN DESKTOP LAYOUT

   Screens 1100px and wider:

   LEFT:
   Generate Button
   Generator Options
   Generation Status

   MIDDLE:
   Generated Text
   Copy / Download / Regenerate
   Textarea
   Statistics

   RIGHT:
   300px Raptive Sidebar
   ========================================================= */

@media only screen and (min-width: 1100px) {

    /* Two columns within main content area */

    .lorem-ipsum-tool-section {
        display: grid;

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

        column-gap: 20px;
        row-gap: 20px;

        align-items: start;
    }

    /* Heading spans both tool columns */

    .lorem-ipsum-heading {
        grid-column: 1 / -1;
        grid-row: 1;
        margin: 0;
    }

    .lorem-ipsum-notice {
        grid-column: 1 / -1;
    }

    /* LEFT COLUMN */

    .lorem-ipsum-page .lorem-ipsum-form {
        grid-column: 1;
        grid-row: 2;

        min-width: 0;
        align-self: start;
    }

    /* Settings stacked vertically */

    .lorem-ipsum-options-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .lorem-ipsum-options {
        padding: 17px;
    }

    /* Generate button stays on top */

    .lorem-ipsum-page
    .lorem-ipsum-tool-section
    .lorem-ipsum-form
    > .lorem-ipsum-generate-actions {
        order: 1 !important;
        margin: 0 0 15px !important;
    }

    /* Settings below Generate button */

    .lorem-ipsum-page
    .lorem-ipsum-tool-section
    .lorem-ipsum-form
    > .lorem-ipsum-options {
        order: 2 !important;
    }

    /* Generation message below settings */

    .lorem-ipsum-page
    .lorem-ipsum-tool-section
    .lorem-ipsum-form
    > .lorem-ipsum-status {
        order: 3 !important;
        margin: 10px 0 0 !important;
    }

    /* MIDDLE COLUMN */

    .lorem-ipsum-output-section {
        grid-column: 2;
        grid-row: 2;

        min-width: 0;
        margin: 0;
    }

    .lorem-ipsum-output-header {
        margin-bottom: 10px;
    }

    /* Three buttons across */

    .lorem-ipsum-output-actions {
        flex-wrap: nowrap;
        gap: 7px;
        margin: 0 0 12px;
    }

    .lorem-ipsum-page .lorem-ipsum-action-button {
        flex: 1 1 0;
        min-width: 0;

        padding: 9px 6px;
        font-size: 12px;
        gap: 5px;
    }

    .lorem-ipsum-action-button i {
        font-size: 15px;
    }

    /* Results textarea */

    .lorem-ipsum-page .lorem-ipsum-output-textarea {
        height: 430px;
        max-height: 900px;

        padding: 16px;

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

    /* Metrics below results */

    .lorem-ipsum-statistics {
        gap: 7px;
        margin-top: 13px;
    }

    .lorem-ipsum-stat {
        padding: 10px 5px;
    }

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

    .lorem-ipsum-stat-value {
        font-size: 22px;
    }
}


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

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

    .lorem-ipsum-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .lorem-ipsum-layout {
        gap: 24px;
    }

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

    .lorem-ipsum-intro {
        font-size: 16px;
    }

    .lorem-ipsum-options {
        padding: 16px;
    }

    .lorem-ipsum-content p,
    .lorem-ipsum-content li {
        font-size: 16px;
    }

    .lorem-ipsum-content h2 {
        font-size: 23px;
    }

    .lorem-ipsum-content h3 {
        font-size: 19px;
    }
}


/* =========================================================
   SMALLER DESKTOP / TABLET

   Below 1100px, settings and results stack.

   Generate button REMAINS ABOVE settings.
   ========================================================= */

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

    .lorem-ipsum-tool-section {
        display: block;
    }

    .lorem-ipsum-page
    .lorem-ipsum-tool-section
    .lorem-ipsum-form
    > .lorem-ipsum-generate-actions {
        order: 1 !important;
        margin: 0 0 15px !important;
    }

    .lorem-ipsum-page
    .lorem-ipsum-tool-section
    .lorem-ipsum-form
    > .lorem-ipsum-options {
        order: 2 !important;
    }

    .lorem-ipsum-page
    .lorem-ipsum-tool-section
    .lorem-ipsum-form
    > .lorem-ipsum-status {
        order: 3 !important;
        margin: 10px 0 0 !important;
    }

    .lorem-ipsum-options-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 15px 16px;
    }

    .lorem-ipsum-output-section {
        margin-top: 24px;
    }

    .lorem-ipsum-output-actions {
        flex-wrap: wrap;
    }

    .lorem-ipsum-page .lorem-ipsum-action-button {
        flex: 1 1 auto;

        padding: 9px 12px;
        font-size: 14px;
    }

    .lorem-ipsum-page .lorem-ipsum-output-textarea {
        height: 340px;
    }
}


/* =========================================================
   TABLET — HIDE SIDEBAR
   ========================================================= */

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

    .lorem-ipsum-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 900px;
        gap: 0;
    }

    .lorem-ipsum-layout > #sidebar {
        display: none;
    }

    .lorem-ipsum-page {
        padding-top: 102px;
    }

    .lorem-ipsum-options-grid {
        gap: 15px 16px;
    }

    .lorem-ipsum-page .lorem-ipsum-output-textarea {
        height: 330px;
    }
}


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

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

    .lorem-ipsum-heading h1 {
        font-size: 29px;
    }

    .lorem-ipsum-options {
        padding: 16px;
    }

    .lorem-ipsum-options-heading h2 {
        font-size: 18px;
    }

    .lorem-ipsum-options-grid {
        gap: 12px;
    }

    .lorem-ipsum-page .lorem-ipsum-output-textarea {
        height: 300px;
        max-height: 600px;
    }

    .lorem-ipsum-statistics {
        gap: 8px;
    }

    .lorem-ipsum-related-tool-links {
        gap: 8px;
    }
}


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

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

    .lorem-ipsum-page {
        padding: 96px 10px 25px;
    }

    /* Page heading */

    .lorem-ipsum-heading {
        margin-bottom: 18px;
    }

    .lorem-ipsum-heading h1 {
        margin-bottom: 8px;
        font-size: 27px;
    }

    .lorem-ipsum-intro {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Generate button at top */

    .lorem-ipsum-page
    .lorem-ipsum-tool-section
    .lorem-ipsum-form
    > .lorem-ipsum-generate-actions {
        order: 1 !important;
        margin: 0 0 14px !important;
    }

    .lorem-ipsum-page .lorem-ipsum-generate-button {
        min-height: 46px;
        font-size: 15px;
    }

    /* Generator Options */

    .lorem-ipsum-options {
        padding: 15px;
        border-radius: 8px;
    }

    .lorem-ipsum-options-heading {
        margin-bottom: 14px;
    }

    .lorem-ipsum-options-heading h2 {
        font-size: 18px;
    }

    .lorem-ipsum-field label {
        font-size: 14px;
    }

    .lorem-ipsum-field input,
    .lorem-ipsum-field select {
        height: 44px;
        min-height: 44px;
        font-size: 16px;
    }

    .lorem-ipsum-field-help {
        font-size: 12px;
    }

    .lorem-ipsum-checkbox-label {
        font-size: 14px;
    }

    /* Generation status */

    .lorem-ipsum-page
    .lorem-ipsum-tool-section
    .lorem-ipsum-form
    > .lorem-ipsum-status {
        order: 3 !important;
        margin: 9px 0 0 !important;
        font-size: 12px;
    }

    /* Generated Text */

    .lorem-ipsum-output-section {
        margin-top: 22px;
    }

    .lorem-ipsum-output-header h2 {
        font-size: 18px;
    }

    .lorem-ipsum-output-actions {
        gap: 8px;
        margin: 0 0 12px;
    }

    .lorem-ipsum-page .lorem-ipsum-action-button {
        min-height: 40px;

        padding: 9px 11px;
        font-size: 13px;
    }

    .lorem-ipsum-action-button i {
        font-size: 16px;
    }

    .lorem-ipsum-page .lorem-ipsum-output-textarea {
        height: 275px;
        min-height: 90px;
        max-height: 550px;

        padding: 14px;
        border-radius: 8px;

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

    /* Statistics */

    .lorem-ipsum-statistics {
        gap: 7px;
        margin-top: 12px;
    }

    .lorem-ipsum-stat {
        padding: 10px 5px;
    }

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

    .lorem-ipsum-stat-value {
        font-size: 22px;
    }

    .lorem-ipsum-output-help {
        font-size: 12px;
    }

    /* SEO article */

    .lorem-ipsum-content {
        margin-top: 30px;
    }

    .lorem-ipsum-content h2 {
        margin-top: 29px;
        font-size: 22px;
    }

    .lorem-ipsum-content h3 {
        margin-top: 23px;
        font-size: 19px;
    }

    .lorem-ipsum-content p,
    .lorem-ipsum-content li {
        font-size: 16px;
        line-height: 1.65;
    }

    .lorem-ipsum-content ol,
    .lorem-ipsum-content ul {
        margin-left: 24px;
    }

    .lorem-ipsum-example {
        padding: 15px;
    }

    .lorem-ipsum-example p {
        font-size: 15px;
    }

    /* Related tools */

    .lorem-ipsum-related-tools {
        margin-top: 28px;
        padding: 16px;
    }

    .lorem-ipsum-content .lorem-ipsum-related-tools h2 {
        font-size: 21px;
    }

    .lorem-ipsum-related-tool-links {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .lorem-ipsum-related-tool-links a {
        min-height: 44px;
    }

    .lorem-ipsum-related-tool-callouts {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    .lorem-ipsum-related-tool-callout {
        padding: 12px 13px;
    }
}


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

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

    /* Stack generator settings */

    .lorem-ipsum-options-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .lorem-ipsum-field {
        gap: 6px;
    }

    .lorem-ipsum-checkbox-row {
        margin-top: 14px;
    }

    /* Two result buttons on the first row,
       Regenerate on the second row */

    .lorem-ipsum-output-actions {
        display: grid;

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

        gap: 9px;
    }

    .lorem-ipsum-page .lorem-ipsum-action-button {
        width: 100%;
        min-width: 0;

        padding: 10px 8px;
        white-space: normal;
    }

    .lorem-ipsum-output-actions > :last-child {
        grid-column: 1 / -1;
    }
}


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

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

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

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

    .lorem-ipsum-intro {
        font-size: 14px;
    }

    .lorem-ipsum-options {
        padding: 13px;
    }

    .lorem-ipsum-page .lorem-ipsum-output-textarea {
        height: 250px;
        max-height: 450px;
    }

    .lorem-ipsum-statistics {
        gap: 5px;
    }

    .lorem-ipsum-stat {
        padding: 9px 4px;
    }

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

    .lorem-ipsum-stat-value {
        font-size: 20px;
    }

    .lorem-ipsum-content h2 {
        font-size: 21px;
    }

    .lorem-ipsum-content h3 {
        font-size: 18px;
    }

    .lorem-ipsum-related-tools {
        padding: 13px;
    }
}


/* =========================================================
   EXTRA NARROW SCREENS
   ========================================================= */

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

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

    .lorem-ipsum-options {
        padding: 11px;
    }

    .lorem-ipsum-options-heading h2 {
        font-size: 17px;
    }

    /* Stack statistics vertically */

    .lorem-ipsum-statistics {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .lorem-ipsum-stat {
        flex-direction: row;
        justify-content: space-between;

        padding: 10px 12px;
        text-align: left;
    }

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

    .lorem-ipsum-stat-value {
        font-size: 20px;
    }

    /* Stack all output buttons */

    .lorem-ipsum-output-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .lorem-ipsum-output-actions > :last-child {
        grid-column: auto;
    }
}


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

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

    .lorem-ipsum-page .lorem-ipsum-generate-button,
    .lorem-ipsum-page .lorem-ipsum-action-button,
    .lorem-ipsum-page .lorem-ipsum-output-textarea,
    .lorem-ipsum-page .lorem-ipsum-field input,
    .lorem-ipsum-page .lorem-ipsum-field select,
    .lorem-ipsum-related-tool-links a {
        transition: none;
    }
}
