
/* =========================================================
   RANDOM SENTENCE GENERATOR — CharacterCounter.com

   File: random-sentence-generator.css

   Compatible with:
   - random-sentence-generator.html
   - random-sentence-generator.js
   - header-and-footer-updated.css
   ========================================================= */


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

.rsg-page {
    --rsg-blue: #1a73e8;
    --rsg-blue-dark: #1558aa;
    --rsg-blue-light: #edf5ff;

    --rsg-border: #dce2e9;
    --rsg-border-dark: #c9ced6;

    --rsg-text: #333;
    --rsg-muted: #666;
    --rsg-light-text: #858b94;

    --rsg-background: #fff;
    --rsg-soft-background: #f8fafc;

    --rsg-green: #237a40;
    --rsg-error: #bf3535;

    width: 100%;

    padding: 105px 15px 45px;

    background: #fff;
    color: var(--rsg-text);

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


/* BOX SIZING */

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


/* HIDDEN ELEMENTS */

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


/* FORM TYPOGRAPHY */

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


/* BUTTON DEFAULTS */

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

.rsg-page button:disabled {
    cursor: not-allowed;
}


/* LINKS */

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

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


/* KEYBOARD FOCUS */

.rsg-page a:focus-visible,
.rsg-page button:focus-visible,
.rsg-page input:focus-visible,
.rsg-page select:focus-visible {
    outline: 3px solid var(--rsg-blue);
    outline-offset: 3px;
}


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

.rsg-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 LAYOUT

   Main content | 300px advertising sidebar
   ========================================================= */

.rsg-layout {
    display: grid;

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

    align-items: stretch;

    gap: 25px;

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

    margin: 0 auto;
}


/* MAIN CONTENT */

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


/* =========================================================
   RAPTIVE ADVERTISING SIDEBAR
   ========================================================= */

.rsg-sidebar {
    display: block;

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

    align-self: stretch;

    margin: 0;
    padding: 0;
}


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

.rsg-heading {
    width: 100%;

    margin: 0 0 25px;
    padding: 0;

    text-align: center;
}


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

    color: #333;

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

    overflow-wrap: break-word;
}


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

    margin: 0 auto;
    padding: 0;

    color: #555;

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


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

.rsg-notice {
    width: 100%;

    margin: 0 0 20px;
    padding: 12px 15px;

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

    background: #fff9eb;
    color: #665022;

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


/* =========================================================
   MAIN GENERATOR
   ========================================================= */

.rsg-tool {
    width: 100%;
    min-width: 0;

    margin: 0 0 42px;
    padding: 0;
}


/* =========================================================
   GENERATOR WORKSPACE

   Options | Generated Sentences
   ========================================================= */

.rsg-workspace {
    display: grid;

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

    align-items: start;

    gap: 20px;

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


/* =========================================================
   SHARED PANEL STYLING
   ========================================================= */

.rsg-options-panel,
.rsg-results-panel {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 20px;

    border: 1px solid var(--rsg-border);
    border-radius: 9px;

    background: #fff;
}


.rsg-panel-heading {
    margin: 0 0 18px;
    padding: 0;

    color: #333;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}


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

.rsg-options-panel {
    display: flex;
    flex-direction: column;
}


.rsg-form {
    display: flex;
    flex-direction: column;

    gap: 21px;

    width: 100%;

    margin: 0;
    padding: 0;
}


/* =========================================================
   OPTION GROUPS
   ========================================================= */

.rsg-option-group {
    display: flex;
    flex-direction: column;

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


.rsg-option-label {
    display: block;

    margin: 0;
    padding: 0;

    color: #333;

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


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

    color: var(--rsg-muted);

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


/* =========================================================
   NUMBER INPUT
   ========================================================= */

.rsg-page .rsg-number-input {
    display: block;

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

    margin: 0;
    padding: 9px 12px;

    border: 2px solid var(--rsg-border-dark);
    border-radius: 7px;

    background: #fff;
    color: #333;

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

    outline: none;

    appearance: auto;

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


.rsg-page .rsg-number-input:hover {
    border-color: #aeb7c2;
}


.rsg-page .rsg-number-input:focus,
.rsg-page .rsg-number-input:focus-visible {
    border-color: var(--rsg-blue);

    outline: none;

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


.rsg-page .rsg-number-input:invalid {
    border-color: var(--rsg-error);
}


/* =========================================================
   QUICK PRESETS
   ========================================================= */

.rsg-presets {
    display: flex;

    align-items: stretch;
    flex-wrap: wrap;

    gap: 7px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


.rsg-page .rsg-preset {
    display: inline-flex;

    flex: 1 1 38px;

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

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

    margin: 0;
    padding: 8px 9px;

    border: 1px solid var(--rsg-border-dark);
    border-radius: 6px;

    background: #fff;
    color: #444;

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

    text-align: center;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

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


.rsg-page .rsg-preset:hover {
    border-color: var(--rsg-blue);

    background: var(--rsg-blue-light);
    color: var(--rsg-blue-dark);
}


.rsg-page .rsg-preset.is-active,
.rsg-page .rsg-preset[aria-pressed="true"] {
    border-color: var(--rsg-blue);

    background: var(--rsg-blue);
    color: #fff;

    font-weight: 600;
}


.rsg-page .rsg-preset.is-active:hover,
.rsg-page .rsg-preset[aria-pressed="true"]:hover {
    border-color: var(--rsg-blue-dark);

    background: var(--rsg-blue-dark);
    color: #fff;
}


/* =========================================================
   SELECT DROPDOWNS
   ========================================================= */

.rsg-page .rsg-select {
    display: block;

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

    margin: 0;
    padding: 9px 36px 9px 12px;

    border: 2px solid var(--rsg-border-dark);
    border-radius: 7px;

    background-color: #fff;
    color: #333;

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

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;

    outline: none;

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


.rsg-page .rsg-select:hover {
    border-color: #aeb7c2;
}


.rsg-page .rsg-select:focus,
.rsg-page .rsg-select:focus-visible {
    border-color: var(--rsg-blue);

    outline: none;

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


/* =========================================================
   SHARED BUTTON STYLES
   ========================================================= */

.rsg-page .rsg-button {
    display: inline-flex;

    flex: 0 0 auto;

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

    gap: 8px;

    min-height: 42px;

    margin: 0;
    padding: 10px 15px;

    border: 1px solid transparent;
    border-radius: 7px;

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

    text-align: center;
    text-transform: none;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

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


.rsg-page .rsg-button i {
    display: inline-block;

    flex: 0 0 auto;

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


.rsg-page .rsg-button span {
    display: inline-block;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.rsg-page .rsg-button-primary {
    border-color: var(--rsg-blue);

    background: var(--rsg-blue);
    color: #fff;

    font-weight: 600;
}


.rsg-page .rsg-button-primary:hover:not(:disabled) {
    border-color: var(--rsg-blue-dark);

    background: var(--rsg-blue-dark);
    color: #fff;
}


.rsg-page .rsg-button-primary:active:not(:disabled) {
    background: #104a90;
}


/* =========================================================
   SECONDARY BUTTON
   ========================================================= */

.rsg-page .rsg-button-secondary {
    border-color: var(--rsg-border-dark);

    background: #fff;
    color: #444;
}


.rsg-page .rsg-button-secondary:hover:not(:disabled) {
    border-color: var(--rsg-blue);

    background: var(--rsg-blue-light);
    color: var(--rsg-blue-dark);
}


.rsg-page .rsg-button-secondary:active:not(:disabled) {
    background: #e1edfc;
}


/* =========================================================
   DISABLED BUTTONS
   ========================================================= */

.rsg-page .rsg-button:disabled {
    border-color: #d9dee5;

    background: #f1f3f5;
    color: #939aa4;

    box-shadow: none;

    cursor: not-allowed;

    opacity: 1;
}


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

   Positioned at the top of the Options panel.
   ========================================================= */

.rsg-page .rsg-generate-button {
    display: flex;

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

    margin: 0;
    padding: 12px 15px;

    font-size: 15px;
    font-weight: 600;
}


.rsg-page .rsg-generate-button i {
    font-size: 19px;
}


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

.rsg-results-panel {
    display: flex;
    flex-direction: column;

    gap: 0;
}


/* =========================================================
   RESULTS HEADING
   ========================================================= */

.rsg-results-heading {
    display: flex;

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

    flex-wrap: wrap;

    gap: 10px;

    width: 100%;

    margin: 0 0 18px;
    padding: 0;
}


.rsg-results-heading .rsg-panel-heading {
    margin: 0;
}


/* =========================================================
   RESULTS BOX

   Automatically scrolls when generated sentences exceed
   the maximum height of the results box.
   ========================================================= */

.rsg-results-box {
    display: block;

    width: 100%;
    min-width: 0;

    min-height: 250px;
    max-height: 560px;

    margin: 0;
    padding: 0;

    border: 2px solid var(--rsg-border-dark);
    border-radius: 8px;

    background: #fff;
    color: #333;

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

    overscroll-behavior: contain;

    scrollbar-width: auto;
    scrollbar-color: #9aa5b1 #f1f3f5;
}


/* =========================================================
   RESULTS BOX SCROLLBAR

   Custom scrollbar styling for Chrome, Safari and Edge.

   The scrollbar appears when content overflows,
   subject to browser and operating system behavior.
   ========================================================= */

@supports selector(::-webkit-scrollbar) {

    .rsg-results-box {
        scrollbar-width: auto;
        scrollbar-color: auto;
    }

    .rsg-results-box::-webkit-scrollbar {
        width: 12px;
    }

    .rsg-results-box::-webkit-scrollbar-track {
        background: #f1f3f5;
        border-radius: 6px;
    }

    .rsg-results-box::-webkit-scrollbar-thumb {
        background: #9aa5b1;

        border: 2px solid #f1f3f5;
        border-radius: 6px;
    }

    .rsg-results-box::-webkit-scrollbar-thumb:hover {
        background: #7d8996;
    }

    .rsg-results-box::-webkit-scrollbar-thumb:active {
        background: #697583;
    }

    .rsg-results-box::-webkit-scrollbar-corner {
        background: #f1f3f5;
    }

}


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

.rsg-empty-state {
    display: flex;

    flex-direction: column;

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

    gap: 9px;

    min-height: 246px;

    padding: 25px 20px;

    text-align: center;
}


.rsg-empty-state i {
    display: block;

    margin: 0 0 4px;

    color: #9aa5b1;

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


.rsg-empty-state p {
    margin: 0;
    padding: 0;

    color: #555;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}


.rsg-empty-state span {
    display: block;

    max-width: 270px;

    color: #777;

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


/* =========================================================
   GENERATED SENTENCE LIST
   ========================================================= */

.rsg-results-list {
    display: flex;

    flex-direction: column;

    gap: 0;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    list-style: none;
    counter-reset: none;
}


/* =========================================================
   INDIVIDUAL SENTENCE RESULT
   ========================================================= */

.rsg-result-item {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 16px;

    border-bottom: 1px solid #e8ebef;

    background: #fff;

    transition: background-color 0.15s ease;
}


.rsg-result-item:last-child {
    border-bottom: none;
}


.rsg-result-item:hover {
    background: #fbfcfe;
}


/* =========================================================
   RESULT CONTENT
   ========================================================= */

.rsg-result-content {
    display: flex;

    flex: 1 1 auto;

    align-items: flex-start;

    gap: 10px;

    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   SENTENCE NUMBER

   Visible when multiple sentences are generated.
   ========================================================= */

.rsg-result-number {
    display: inline-block;

    flex: 0 0 auto;

    min-width: 19px;

    margin: 0;
    padding: 0;

    color: #858b94;

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

    text-align: right;
    white-space: nowrap;
}


/* =========================================================
   SENTENCE TEXT
   ========================================================= */

.rsg-result-text {
    flex: 1 1 auto;

    min-width: 0;

    margin: 0;
    padding: 0;

    color: #333;

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

    text-align: left;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}


/* =========================================================
   SINGLE SENTENCE RESULT

   Hide numbering when only one sentence is generated.
   ========================================================= */

.rsg-results-list > .rsg-result-item:only-child {
    padding: 20px 16px;
}


.rsg-results-list > .rsg-result-item:only-child
.rsg-result-number {
    display: none;
}


.rsg-results-list > .rsg-result-item:only-child
.rsg-result-content {
    gap: 0;
}


.rsg-results-list > .rsg-result-item:only-child
.rsg-result-text {
    font-size: 19px;
    line-height: 1.7;
}


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

.rsg-page .rsg-copy-single {
    display: inline-flex;

    flex: 0 0 auto;

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

    gap: 6px;

    min-width: 63px;
    min-height: 34px;

    margin: 0;
    padding: 7px 10px;

    border: 1px solid var(--rsg-border-dark);
    border-radius: 6px;

    background: #fff;
    color: #444;

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

    text-align: center;

    white-space: nowrap;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

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


.rsg-page .rsg-copy-single i {
    font-size: 15px;
    line-height: 1;
}


.rsg-page .rsg-copy-single:hover:not(:disabled) {
    border-color: var(--rsg-blue);

    background: var(--rsg-blue-light);
    color: var(--rsg-blue-dark);
}


.rsg-page .rsg-copy-single:active:not(:disabled) {
    background: #e1edfc;
}


/* =========================================================
   INDIVIDUAL COPY SUCCESS STATE
   ========================================================= */

.rsg-page .rsg-copy-single.is-copied {
    border-color: #9bc7a5;

    background: #edf9f0;
    color: var(--rsg-green);
}


.rsg-page .rsg-copy-single.is-copied:hover {
    border-color: #9bc7a5;

    background: #edf9f0;
    color: var(--rsg-green);
}


/* =========================================================
   RESULTS HELP TEXT
   ========================================================= */

.rsg-results-help {
    width: 100%;

    margin: 9px 0 0;
    padding: 0;

    color: var(--rsg-muted);

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


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

   Copy All | Download TXT | Clear

   Positioned below the results box and help text,
   above the statistics.
   ========================================================= */

.rsg-results-actions {
    display: flex;

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

    flex-wrap: wrap;

    gap: 9px;

    width: 100%;
    min-width: 0;

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


.rsg-results-actions .rsg-button {
    min-height: 41px;

    padding: 9px 13px;
}


/* =========================================================
   COPY ALL SUCCESS STATE
   ========================================================= */

.rsg-page #rsgCopyAll.is-copied {
    border-color: var(--rsg-green);

    background: var(--rsg-green);
    color: #fff;
}


.rsg-page #rsgCopyAll.is-copied:hover:not(:disabled) {
    border-color: var(--rsg-green);

    background: var(--rsg-green);
    color: #fff;
}


/* =========================================================
   RESULTS STATISTICS

   Sentences | Words | Characters

   Positioned underneath the result action buttons.
   ========================================================= */

.rsg-statistics {
    display: grid;

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

    gap: 10px;

    width: 100%;
    min-width: 0;

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


/* INDIVIDUAL STAT */

.rsg-stat {
    display: flex;

    flex-direction: column;

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

    gap: 3px;

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

    margin: 0;
    padding: 11px 6px;

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

    background: #f8fafc;

    text-align: center;
}


/* STAT NUMBER */

.rsg-stat-value {
    display: block;

    max-width: 100%;

    margin: 0;
    padding: 0;

    color: #333;

    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;

    overflow-wrap: anywhere;

    font-variant-numeric: tabular-nums;
}


/* STAT LABEL */

.rsg-stat-label {
    display: block;

    margin: 0;
    padding: 0;

    color: #666;

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


/* =========================================================
   ERROR MESSAGES
   ========================================================= */

.rsg-message {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    width: 100%;

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

    border-radius: 7px;

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


.rsg-error {
    border: 1px solid #e6bbbb;

    background: #fff2f2;
    color: #a32d2d;
}


.rsg-message i {
    flex: 0 0 auto;

    margin-top: 2px;

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


.rsg-message span {
    flex: 1 1 auto;
    min-width: 0;
}


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

.rsg-article {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    color: #333;

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


/* =========================================================
   ARTICLE SECTIONS
   ========================================================= */

.rsg-article-section {
    width: 100%;
    min-width: 0;

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


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


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

.rsg-article h2 {
    margin: 0 0 15px;
    padding: 0;

    color: #333;

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


.rsg-article h3 {
    margin: 24px 0 10px;
    padding: 0;

    color: #333;

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


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

.rsg-article p {
    margin: 0 0 17px;
    padding: 0;

    color: #444;

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


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


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

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

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


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


/* =========================================================
   ORDERED INSTRUCTION STEPS
   ========================================================= */

.rsg-steps {
    margin: 17px 0 20px;
    padding: 0 0 0 25px;

    list-style-type: decimal;
}


.rsg-steps li {
    margin: 0 0 12px;
    padding: 0 0 0 3px;

    color: #444;

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


.rsg-steps li:last-child {
    margin-bottom: 0;
}


.rsg-steps li::marker {
    color: var(--rsg-blue);
    font-weight: 600;
}


.rsg-steps strong {
    color: #333;
    font-weight: 600;
}


/* =========================================================
   SENTENCE EXAMPLE CALLOUTS
   ========================================================= */

.rsg-article p.rsg-example {
    display: block;

    width: 100%;

    margin: 12px 0 22px;
    padding: 13px 16px;

    border-left: 4px solid var(--rsg-blue);
    border-radius: 0 7px 7px 0;

    background: #f5f9ff;
    color: #444;

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


/* =========================================================
   EXAMPLE SENTENCE LIST
   ========================================================= */

.rsg-example-list {
    margin: 17px 0 20px;
    padding: 0 0 0 25px;

    list-style-type: decimal;
}


.rsg-example-list li {
    margin: 0 0 11px;
    padding: 0 0 0 3px;

    color: #444;

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


.rsg-example-list li:last-child {
    margin-bottom: 0;
}


.rsg-example-list li::marker {
    color: var(--rsg-blue);
    font-weight: 600;
}


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

.rsg-table-wrap {
    width: 100%;
    max-width: 100%;

    margin: 20px 0;
    padding: 0;

    border: 1px solid var(--rsg-border);
    border-radius: 8px;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   ARTICLE TABLE
   ========================================================= */

.rsg-table {
    width: 100%;
    min-width: 450px;

    margin: 0;
    padding: 0;

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

    background: #fff;

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


.rsg-table th,
.rsg-table td {
    padding: 12px 14px;

    border-bottom: 1px solid #e5e9ef;

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


.rsg-table th {
    background: #f3f6fa;
    color: #333;

    font-size: 14px;
    font-weight: 600;
}


.rsg-table td {
    color: #444;

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


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


.rsg-table tbody tr:nth-child(even) {
    background: #fbfcfe;
}


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

.rsg-faq {
    width: 100%;
}


.rsg-faq-item {
    margin: 0 0 24px;
    padding: 0;
}


.rsg-faq-item:last-child {
    margin-bottom: 0;
}


.rsg-faq-item h3 {
    margin: 0 0 8px;
    padding: 0;

    color: #333;

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


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

    color: #444;

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


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

.rsg-related {
    width: 100%;

    margin: 0;
    padding: 0;
}


.rsg-related h2 {
    margin: 0 0 17px;
    padding: 0;

    color: #333;

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


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

.rsg-related-list {
    display: grid;

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

    gap: 12px;

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;
}


.rsg-related-list li {
    display: flex;

    flex-direction: column;

    gap: 5px;

    min-width: 0;

    margin: 0;
    padding: 15px 16px;

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

    background: #fff;

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


.rsg-related-list li:hover {
    border-color: #b7cdee;
    background: #fafdff;
}


.rsg-related-list a {
    display: inline-block;

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

    color: #1155cc;

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

    overflow-wrap: break-word;
    text-decoration: none;
}


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


.rsg-related-list span {
    display: block;

    color: #666;

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


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

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

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

    .rsg-layout {
        gap: 20px;
    }

    .rsg-workspace {
        grid-template-columns:
            minmax(200px, 245px)
            minmax(0, 1fr);

        gap: 15px;
    }

    .rsg-options-panel,
    .rsg-results-panel {
        padding: 16px;
    }

    .rsg-results-actions {
        justify-content: flex-start;

        gap: 8px;
    }

    .rsg-results-actions .rsg-button {
        padding: 9px 11px;

        font-size: 13px;
    }

    .rsg-result-item {
        gap: 10px;
        padding: 14px 12px;
    }

    .rsg-results-list > .rsg-result-item:only-child {
        padding: 18px 12px;
    }

}


/* =========================================================
   TABLETS

   Hide the Raptive sidebar.
   ========================================================= */

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

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

        gap: 0;

        max-width: 850px;
    }

    .rsg-sidebar {
        display: none !important;
    }

    .rsg-page {
        padding: 95px 15px 35px;
    }

    .rsg-workspace {
        grid-template-columns:
            minmax(235px, 290px)
            minmax(0, 1fr);

        gap: 17px;
    }

    .rsg-options-panel,
    .rsg-results-panel {
        padding: 18px;
    }

}


/* =========================================================
   SMALL TABLETS / LARGE PHONES

   Stack Options above Generated Sentences.
   ========================================================= */

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

    .rsg-page {
        padding: 90px 15px 35px;
    }

    .rsg-heading {
        margin-bottom: 22px;
    }

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

    .rsg-intro {
        font-size: 15px;
    }

    .rsg-workspace {
        grid-template-columns: minmax(0, 1fr);

        gap: 18px;
    }

    .rsg-options-panel,
    .rsg-results-panel {
        padding: 19px;
    }

    .rsg-form {
        gap: 18px;
    }

    .rsg-results-box {
        min-height: 210px;
        max-height: 520px;
    }

    .rsg-empty-state {
        min-height: 206px;
    }

    .rsg-article h2,
    .rsg-related h2 {
        font-size: 23px;
    }

    .rsg-related-list {
        gap: 10px;
    }

}


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

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

    .rsg-page {
        padding: 85px 12px 30px;
    }

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

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

    .rsg-intro {
        font-size: 15px;
        line-height: 1.6;
    }

    .rsg-tool {
        margin-bottom: 35px;
    }

    .rsg-workspace {
        gap: 16px;
    }

    .rsg-options-panel,
    .rsg-results-panel {
        padding: 15px;

        border-radius: 8px;
    }

    .rsg-panel-heading {
        margin-bottom: 16px;

        font-size: 19px;
    }

    .rsg-form {
        gap: 19px;
    }

    .rsg-option-label {
        font-size: 14px;
    }

    .rsg-page .rsg-number-input,
    .rsg-page .rsg-select {
        height: 44px;

        font-size: 16px;
    }

    .rsg-page .rsg-preset {
        min-width: 38px;
        min-height: 40px;

        padding: 8px;
    }

    .rsg-page .rsg-generate-button {
        min-height: 48px;

        margin: 0;

        font-size: 15px;
    }

    .rsg-results-box {
        min-height: 190px;
        max-height: 470px;
    }

    .rsg-empty-state {
        min-height: 186px;
        padding: 20px 13px;
    }

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

    .rsg-empty-state p {
        font-size: 15px;
    }

    .rsg-empty-state span {
        font-size: 12px;
    }

    .rsg-result-item {
        gap: 10px;
        padding: 13px 11px;
    }

    .rsg-result-content {
        gap: 8px;
    }

    .rsg-result-number {
        min-width: 16px;
        font-size: 13px;
    }

    .rsg-result-text {
        font-size: 16px;
        line-height: 1.65;
    }


    /* SINGLE SENTENCE ON MOBILE */

    .rsg-results-list > .rsg-result-item:only-child {
        padding: 16px 12px;
    }

    .rsg-results-list > .rsg-result-item:only-child
    .rsg-result-number {
        display: none;
    }

    .rsg-results-list > .rsg-result-item:only-child
    .rsg-result-content {
        gap: 0;
    }

    .rsg-results-list > .rsg-result-item:only-child
    .rsg-result-text {
        font-size: 17px;
        line-height: 1.7;
    }


    /* INDIVIDUAL COPY BUTTON */

    .rsg-page .rsg-copy-single {
        min-width: 55px;
        min-height: 33px;

        padding: 7px 9px;

        font-size: 12px;
    }


    /* RESULT ACTIONS */

    .rsg-results-actions {
        justify-content: flex-start;

        gap: 8px;

        margin-top: 12px;
    }

    .rsg-results-actions .rsg-button {
        min-height: 40px;

        padding: 8px 11px;

        font-size: 13px;
    }


    /* STATISTICS */

    .rsg-statistics {
        gap: 7px;

        margin-top: 18px;
    }

    .rsg-stat {
        min-height: 68px;

        padding: 9px 4px;
    }

    .rsg-stat-value {
        font-size: 19px;
    }

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


    /* ARTICLE */

    .rsg-article {
        font-size: 15px;
    }

    .rsg-article h2,
    .rsg-related h2 {
        margin-bottom: 14px;

        font-size: 22px;
    }

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

    .rsg-article p,
    .rsg-steps li,
    .rsg-example-list li,
    .rsg-article .rsg-faq-item p {
        font-size: 15px;
        line-height: 1.75;
    }

    .rsg-article-section {
        margin-bottom: 31px;
    }

    .rsg-article p.rsg-example {
        padding: 12px 13px;

        font-size: 14px;
    }

    .rsg-faq-item h3 {
        font-size: 17px;
    }

    .rsg-related-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .rsg-related-list li {
        padding: 13px 14px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

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

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

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

    .rsg-options-panel,
    .rsg-results-panel {
        padding: 12px;
    }

    .rsg-presets {
        gap: 5px;
    }

    .rsg-page .rsg-preset {
        flex-basis: 34px;

        min-width: 34px;

        padding: 7px 5px;

        font-size: 13px;
    }

    .rsg-result-item {
        flex-wrap: wrap;

        gap: 9px;
    }

    .rsg-result-content {
        flex-basis: 100%;
    }

    .rsg-page .rsg-copy-single {
        margin-left: auto;
    }

    .rsg-results-actions {
        gap: 7px;
    }

    .rsg-results-actions .rsg-button {
        padding: 8px 9px;

        font-size: 12px;
    }

    .rsg-results-actions .rsg-button i {
        font-size: 15px;
    }

    .rsg-statistics {
        gap: 5px;

        margin-top: 16px;
    }

    .rsg-stat-value {
        font-size: 18px;
    }

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

}


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

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

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

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   HIGH CONTRAST / FORCED COLORS
   ========================================================= */

@media (forced-colors: active) {

    .rsg-page .rsg-button,
    .rsg-page .rsg-preset,
    .rsg-page .rsg-copy-single {
        border: 1px solid ButtonText;
    }

    .rsg-page .rsg-button:disabled {
        border-color: GrayText;
        color: GrayText;
    }

    .rsg-page .rsg-preset.is-active,
    .rsg-page .rsg-preset[aria-pressed="true"] {
        outline: 2px solid Highlight;
        outline-offset: 1px;
    }

    .rsg-page .rsg-copy-single.is-copied {
        outline: 2px solid Highlight;
        outline-offset: 1px;
    }

    .rsg-results-box {
        scrollbar-color: auto;
    }

    .rsg-results-box::-webkit-scrollbar-track {
        background: Canvas;
    }

    .rsg-results-box::-webkit-scrollbar-thumb {
        background: ButtonText;
        border-color: Canvas;
    }

}


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

@media print {

    .rsg-page {
        padding: 0;

        background: #fff;
        color: #000;
    }

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

    .rsg-sidebar,
    .rsg-options-panel,
    .rsg-results-actions,
    .rsg-copy-single,
    .rsg-results-help,
    .rsg-message {
        display: none !important;
    }

    .rsg-workspace {
        display: block;
    }

    .rsg-results-panel {
        padding: 0;

        border: 0;
    }

    .rsg-results-box {
        max-height: none;

        border: 0;

        overflow: visible;
    }

    .rsg-result-item {
        break-inside: avoid;

        padding: 10px 0;
    }

    .rsg-results-list > .rsg-result-item:only-child
    .rsg-result-number {
        display: none;
    }

    .rsg-article-section,
    .rsg-related {
        break-inside: auto;
    }

    .rsg-faq-item,
    .rsg-related-list li {
        break-inside: avoid;
    }

}


/* =========================================================
   END OF RANDOM SENTENCE GENERATOR CSS
   ========================================================= */
