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

   File: random-paragraph-generator.css

   Compatible with:
   - random-paragraph-generator.html
   - random-paragraph-generator.js
   - header-and-footer-updated.css

   Desktop layout:
   Generator Options | Generated Paragraphs | 300px Ad Sidebar
   ========================================================= */


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

.rpg-page {
    --rpg-blue: #1a73e8;
    --rpg-blue-dark: #1558aa;
    --rpg-blue-pale: #edf5ff;

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

    --rpg-text: #333;
    --rpg-muted: #666;
    --rpg-soft: #f8fafc;

    --rpg-green: #237a40;
    --rpg-green-pale: #edf8f0;

    --rpg-red: #b42318;

    width: 100%;

    margin: 0;
    padding: 105px 15px 50px;

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

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


/* =========================================================
   BOX SIZING
   ========================================================= */

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


/* =========================================================
   HIDDEN ELEMENTS
   ========================================================= */

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


/* =========================================================
   FORM TYPOGRAPHY
   ========================================================= */

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


/* =========================================================
   BUTTON DEFAULTS
   ========================================================= */

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


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

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

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


/* =========================================================
   KEYBOARD FOCUS
   ========================================================= */

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


/* =========================================================
   ANCHOR OFFSET
   ========================================================= */

.rpg-page [id] {
    scroll-margin-top: 105px;
}


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

.rpg-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
   ========================================================= */

.rpg-layout {
    display: grid;

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

    align-items: stretch;

    gap: 25px;

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

    margin: 0 auto;
    padding: 0;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.rpg-main {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


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

.rpg-sidebar {
    display: block;

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

    align-self: stretch;

    margin: 0;
    padding: 0;
}


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

.rpg-heading {
    width: 100%;

    margin: 0 0 25px;
    padding: 0;

    text-align: center;
}


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

    color: #333;

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

    overflow-wrap: break-word;
}


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

    margin: 0 auto;
    padding: 0;

    color: #555;

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


/* =========================================================
   NOTICES
   ========================================================= */

.rpg-notice {
    margin: 0 0 18px;
    padding: 12px 14px;

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

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


.rpg-notice-warning {
    background: #fff9e9;
    color: #6e531c;
}


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

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

    margin: 0 0 45px;
    padding: 0;
}


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

   Generator Options | Generated Paragraphs

   The advertising sidebar is positioned separately.
   ========================================================= */

.rpg-workspace {
    display: grid;

    grid-template-columns:
        minmax(225px, 0.85fr)
        minmax(0, 1.65fr);

    align-items: start;

    gap: 22px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   WORKSPACE PANELS
   ========================================================= */

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

    margin: 0;
    padding: 0;
}


/* =========================================================
   PANEL HEADINGS
   ========================================================= */

.rpg-panel-title {
    margin: 0 0 14px;
    padding: 0;

    color: #333;

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


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

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

    gap: 20px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 18px;

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

    background: #fff;
}


/* =========================================================
   FORM FIELDS
   ========================================================= */

.rpg-field {
    display: flex;
    flex-direction: column;

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   FIELD LABELS
   ========================================================= */

.rpg-field-label {
    display: block;

    margin: 0;
    padding: 0;

    color: #333;

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


/* =========================================================
   FIELD HELP TEXT
   ========================================================= */

.rpg-field-help {
    margin: 0;
    padding: 0;

    color: var(--rpg-muted);

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


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

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

    flex: 0 0 auto;

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

    gap: 7px;

    min-height: 41px;

    margin: 0;
    padding: 9px 14px;

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

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

    text-align: center;
    text-transform: none;
    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,
        box-shadow 0.15s ease;
}


.rpg-button i {
    flex: 0 0 auto;

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


.rpg-page .rpg-button:disabled {
    opacity: 0.5;

    cursor: not-allowed;
    box-shadow: none;
}


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

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

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


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

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


.rpg-page .rpg-button-primary:active:not(:disabled) {
    background: #124a91;
    border-color: #124a91;
}


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

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

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

    padding: 11px 14px;

    border-radius: 7px;

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

    white-space: normal;
}


.rpg-generate-button i {
    font-size: 20px;
}


/* =========================================================
   SECONDARY BUTTONS
   ========================================================= */

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

    background: #fff;
    color: #444;
}


.rpg-page .rpg-button-secondary:hover:not(:disabled) {
    border-color: #aab7c7;

    background: #f3f6fa;
    color: #222;
}


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


/* =========================================================
   COPIED BUTTON STATE
   ========================================================= */

.rpg-page .rpg-button.is-copied,
.rpg-page .rpg-button.copied {
    border-color: #b4d9be;

    background: var(--rpg-green-pale);
    color: var(--rpg-green);
}


/* =========================================================
   NUMBER INPUTS
   ========================================================= */

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

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

    margin: 0;
    padding: 9px 12px;

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

    background: #fff;
    color: #333;

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

    text-align: left;

    outline: none;
    box-shadow: none;

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


.rpg-page .rpg-number-input:hover:not(:disabled) {
    border-color: #9eaab7;
}


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

    outline: none;

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


.rpg-page .rpg-number-input:disabled {
    background: #f3f4f6;
    color: #999;

    cursor: not-allowed;
}


.rpg-page .rpg-number-input[aria-invalid="true"] {
    border-color: var(--rpg-red);

    box-shadow:
        0 0 0 3px rgba(180, 35, 24, 0.08);
}


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

   1 | 3 | 5 | 10 | 25 | 50
   ========================================================= */

.rpg-presets {
    display: grid;

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

    gap: 5px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   PRESET BUTTONS
   ========================================================= */

.rpg-page .rpg-preset-button {
    display: inline-flex;

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

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

    margin: 0;
    padding: 6px 3px;

    border: 1px solid var(--rpg-border-dark);
    border-radius: 5px;

    background: #fff;
    color: #444;

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

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


.rpg-page .rpg-preset-button:hover:not(.is-active) {
    border-color: #8fb7ea;

    background: #f3f7ff;
    color: var(--rpg-blue-dark);
}


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

    background: var(--rpg-blue-pale);
    color: var(--rpg-blue-dark);

    font-weight: 600;
}


/* =========================================================
   SELECT MENUS
   ========================================================= */

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

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

    margin: 0;
    padding: 10px 35px 10px 12px;

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

    background-color: #fff;

    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='%23555' 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 11px center;
    background-size: 16px 16px;

    color: #333;

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

    text-align: left;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    outline: none;
    box-shadow: none;

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


.rpg-page .rpg-select:hover:not(:disabled) {
    border-color: #9eaab7;
}


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

    outline: none;

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


.rpg-page .rpg-select option {
    background: #fff;
    color: #333;

    font-size: 15px;
}


.rpg-page .rpg-select:disabled {
    background-color: #f3f4f6;
    color: #999;

    cursor: not-allowed;
}


/* =========================================================
   CUSTOM LENGTH FIELD
   ========================================================= */

.rpg-custom-length {
    margin: -5px 0 0;
    padding: 12px;

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

    background: #f7faff;
}


.rpg-custom-length .rpg-field-label {
    font-size: 14px;
}


.rpg-custom-length .rpg-field-help {
    font-size: 12px;
}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.rpg-error {
    display: block;

    width: 100%;

    margin: 0;
    padding: 10px 12px;

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

    background: #fff3f2;
    color: var(--rpg-red);

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

    overflow-wrap: anywhere;
}


/* =========================================================
   GENERATED PARAGRAPHS RESULTS CONTAINER
   ========================================================= */

.rpg-results {
    position: relative;

    display: block;

    width: 100%;
    min-width: 0;

    height: 390px;
    min-height: 220px;
    max-height: 850px;

    margin: 0;
    padding: 0;

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

    background: #fff;
    color: #333;

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

    text-align: left;

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

    scrollbar-gutter: stable;

    resize: vertical;

    overscroll-behavior-y: contain;

    outline: none;

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


.rpg-results:hover {
    border-color: #aeb7c2;
}


.rpg-results:focus-visible {
    border-color: var(--rpg-blue);

    outline: none;

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


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

   Gives the results area a clearly defined scrollbar
   without overlapping the paragraph text.

   Overlay-scrollbar behavior may still depend on
   the operating system's scrollbar preferences.
   ========================================================= */

.rpg-results {
    scrollbar-width: auto;
    scrollbar-color: #b5bdc7 #f1f3f5;
}


.rpg-results::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}


.rpg-results::-webkit-scrollbar-track {
    background: #f1f3f5;

    border-radius: 0 6px 6px 0;
}


.rpg-results::-webkit-scrollbar-thumb {
    border: 3px solid #f1f3f5;
    border-radius: 10px;

    background: #b5bdc7;
}


.rpg-results::-webkit-scrollbar-thumb:hover {
    background: #939eac;
}


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


/* =========================================================
   RESIZE HANDLE
   ========================================================= */

.rpg-results::-webkit-resizer {
    background-color: #f1f3f5;

    background-image:
        linear-gradient(
            135deg,
            transparent 50%,
            #a2adba 50%,
            #a2adba 57%,
            transparent 57%,
            transparent 70%,
            #a2adba 70%,
            #a2adba 77%,
            transparent 77%
        );

    border-radius: 0 0 5px 0;
}


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

.rpg-empty-state {
    display: flex;
    flex-direction: column;

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

    gap: 10px;

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

    margin: 0;
    padding: 30px 20px;

    color: #8a919b;

    text-align: center;
}


.rpg-empty-state i {
    color: #aeb7c2;

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


.rpg-empty-state p {
    max-width: 280px;

    margin: 0;
    padding: 0;

    color: #8a919b;

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


/* =========================================================
   GENERATED PARAGRAPH LIST
   ========================================================= */

.rpg-paragraph-list {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   INDIVIDUAL PARAGRAPH ITEM
   ========================================================= */

.rpg-paragraph-item {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 17px 18px;

    border-bottom: 1px solid #e2e6eb;

    background: #fff;
}


.rpg-paragraph-item:last-child {
    border-bottom: none;
}


/* =========================================================
   SINGLE PARAGRAPH

   No numbering or unnecessary header space.
   ========================================================= */

.rpg-paragraph-list > .rpg-paragraph-item:only-child {
    padding: 17px 18px;

    border-bottom: none;
}


/* =========================================================
   PARAGRAPH HEADER

   Paragraph number | Copy button
   ========================================================= */

.rpg-paragraph-header {
    display: flex;

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

    gap: 10px;

    width: 100%;
    min-width: 0;

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


/* =========================================================
   PARAGRAPH NUMBER
   ========================================================= */

.rpg-paragraph-number {
    display: inline-block;

    margin: 0;
    padding: 0;

    color: #666;

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


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

.rpg-page .rpg-paragraph-copy {
    display: inline-flex;

    flex: 0 0 auto;

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

    gap: 5px;

    min-height: 30px;

    margin: 0 0 0 auto;
    padding: 5px 9px;

    border: 1px solid var(--rpg-border);
    border-radius: 5px;

    background: #fff;
    color: #555;

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

    text-align: center;
    text-transform: none;
    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;
}


.rpg-paragraph-copy i {
    font-size: 14px;
    line-height: 1;
}


.rpg-page .rpg-paragraph-copy:hover:not(:disabled) {
    border-color: #a9bfdc;

    background: #f1f6ff;
    color: var(--rpg-blue-dark);
}


.rpg-page .rpg-paragraph-copy.is-copied,
.rpg-page .rpg-paragraph-copy.copied {
    border-color: #b4d9be;

    background: var(--rpg-green-pale);
    color: var(--rpg-green);
}


.rpg-page .rpg-paragraph-copy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =========================================================
   GENERATED PARAGRAPH TEXT
   ========================================================= */

.rpg-page .rpg-paragraph-text {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    color: #333;

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

    text-align: left;
    text-indent: 0;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
    word-break: normal;

    user-select: text;
    -webkit-user-select: text;
}


.rpg-paragraph-text::selection {
    background: #cce3ff;
    color: #222;
}


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

   Copy All | Download TXT | Clear

   Located below generated paragraphs and
   above the text statistics.
   ========================================================= */

.rpg-results-toolbar {
    display: flex;

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

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin: 10px 0 0;
    padding: 0;
}


/* =========================================================
   TOOLBAR BUTTONS
   ========================================================= */

.rpg-results-toolbar .rpg-button {
    min-height: 39px;

    padding: 8px 12px;

    font-size: 13px;
}


.rpg-results-toolbar .rpg-button i {
    font-size: 16px;
}


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

   Paragraphs | Sentences | Words | Characters
   ========================================================= */

.rpg-statistics {
    display: grid;

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

    gap: 9px;

    width: 100%;
    min-width: 0;

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


/* =========================================================
   STATISTIC CARDS
   ========================================================= */

.rpg-stat-card {
    display: flex;
    flex-direction: column;

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

    gap: 5px;

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

    margin: 0;
    padding: 12px 6px;

    border: 1px solid var(--rpg-border);
    border-radius: 7px;

    background: var(--rpg-soft);

    text-align: center;
}


/* =========================================================
   STATISTIC VALUES
   ========================================================= */

.rpg-stat-value {
    display: block;

    max-width: 100%;

    margin: 0;
    padding: 0;

    color: #333;

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

    font-variant-numeric: tabular-nums;

    overflow-wrap: anywhere;
}


/* =========================================================
   STATISTIC LABELS
   ========================================================= */

.rpg-stat-label {
    display: block;

    max-width: 100%;

    margin: 0;
    padding: 0;

    color: #666;

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

    overflow-wrap: break-word;
}


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

.rpg-content {
    display: block;

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

    margin: 0;
    padding: 0;

    color: #333;

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

    overflow-wrap: break-word;
}


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

.rpg-content > section {
    display: block;

    width: 100%;
    min-width: 0;

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


.rpg-content > section:last-child {
    margin-bottom: 0;
}


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

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

    color: #333;

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

    text-align: left;
}


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

.rpg-content h3 {
    margin: 22px 0 9px;
    padding: 0;

    color: #333;

    font-size: 19px;
    font-weight: 600;
    line-height: 1.45;

    text-align: left;
}


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

.rpg-content p {
    margin: 0 0 15px;
    padding: 0;

    color: #444;

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


.rpg-content p:last-child {
    margin-bottom: 0;
}


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

.rpg-content p a,
.rpg-content li a {
    color: #1155cc;

    text-decoration: none;

    overflow-wrap: break-word;
}


.rpg-content p a:hover,
.rpg-content li a:hover {
    text-decoration: underline;
}


/* =========================================================
   ARTICLE BOLD TEXT
   ========================================================= */

.rpg-content strong,
.rpg-content b {
    color: #333;

    font-weight: 700;
}


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

.rpg-content ul,
.rpg-content ol {
    margin: 12px 0 18px;
    padding: 0 0 0 24px;

    color: #444;

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

    list-style-position: outside;
}


.rpg-content ul {
    list-style-type: disc;
}


.rpg-content ol {
    list-style-type: decimal;
}


.rpg-content li {
    margin: 0 0 9px;
    padding: 0 0 0 3px;

    color: #444;

    line-height: 1.7;
}


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


/* =========================================================
   HOW-TO STEPS
   ========================================================= */

.rpg-content .rpg-steps {
    margin: 14px 0 20px;
    padding-left: 25px;
}


.rpg-steps li {
    margin-bottom: 12px;

    padding-left: 4px;
}


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


/* =========================================================
   INFORMATION LIST
   ========================================================= */

.rpg-content .rpg-information-list {
    margin: 14px 0 18px;
    padding-left: 24px;
}


.rpg-information-list li {
    margin-bottom: 10px;
}


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

.rpg-table-wrapper {
    display: block;

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

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

    border: 1px solid var(--rpg-border);
    border-radius: 7px;

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

    -webkit-overflow-scrolling: touch;
}


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

.rpg-table {
    width: 100%;
    min-width: 480px;

    margin: 0;
    padding: 0;

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

    background: #fff;

    color: #444;

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

    text-align: left;
}


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

.rpg-table thead {
    background: #f1f4f8;
}


.rpg-table th {
    padding: 12px 14px;

    border-right: 1px solid var(--rpg-border);
    border-bottom: 1px solid var(--rpg-border);

    background: #f1f4f8;
    color: #333;

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

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


.rpg-table th:last-child {
    border-right: none;
}


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

.rpg-table td {
    padding: 12px 14px;

    border-right: 1px solid var(--rpg-border);
    border-bottom: 1px solid var(--rpg-border);

    color: #444;

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

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


.rpg-table td:last-child {
    border-right: none;
}


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


/* =========================================================
   ALTERNATING TABLE ROWS
   ========================================================= */

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


.rpg-table tbody tr:hover {
    background: #f5f8fc;
}


/* =========================================================
   RANDOM PARAGRAPH EXAMPLES
   ========================================================= */

.rpg-example-list {
    display: grid;

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

    align-items: stretch;

    gap: 15px;

    width: 100%;
    min-width: 0;

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


/* =========================================================
   EXAMPLE CARDS
   ========================================================= */

.rpg-example-card {
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 17px 18px;

    border: 1px solid var(--rpg-border);
    border-radius: 7px;

    background: #f8fafc;
}


/* =========================================================
   EXAMPLE CARD HEADINGS
   ========================================================= */

.rpg-content .rpg-example-card h3 {
    margin: 0 0 10px;
    padding: 0;

    color: #333;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}


/* =========================================================
   EXAMPLE CARD TEXT
   ========================================================= */

.rpg-content .rpg-example-card p {
    margin: 0;
    padding: 0;

    color: #444;

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


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

.rpg-faq-section {
    width: 100%;
    min-width: 0;
}


.rpg-content .rpg-faq-section > h2 {
    margin-bottom: 18px;
}


/* =========================================================
   FAQ ITEMS
   ========================================================= */

.rpg-faq-item {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 17px 0;

    border-bottom: 1px solid #e4e8ed;
}


.rpg-faq-item:first-of-type {
    padding-top: 0;
}


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

    border-bottom: none;
}


/* =========================================================
   FAQ QUESTIONS
   ========================================================= */

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

    color: #333;

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


/* =========================================================
   FAQ ANSWERS
   ========================================================= */

.rpg-content .rpg-faq-item p {
    margin: 0;
    padding: 0;

    color: #444;

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


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

.rpg-related-section {
    width: 100%;
    min-width: 0;
}


.rpg-content .rpg-related-section > h2 {
    margin-bottom: 18px;
}


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

.rpg-related-grid {
    display: grid;

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

    align-items: stretch;

    gap: 12px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   RELATED TOOL CARDS
   ========================================================= */

.rpg-page .rpg-related-card {
    display: flex;
    flex-direction: column;

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

    gap: 7px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 16px;

    border: 1px solid var(--rpg-border);
    border-radius: 7px;

    background: #fff;

    color: #333;

    text-decoration: none;

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


.rpg-page .rpg-related-card:hover {
    border-color: #a9c6ef;

    background: #f8fbff;

    text-decoration: none;

    box-shadow:
        0 2px 6px rgba(35, 72, 121, 0.06);
}


/* =========================================================
   RELATED TOOL HEADINGS
   ========================================================= */

.rpg-content .rpg-related-card h3 {
    margin: 0;
    padding: 0;

    color: #1155cc;

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


.rpg-page .rpg-related-card:hover h3 {
    text-decoration: underline;
}


/* =========================================================
   RELATED TOOL DESCRIPTIONS
   ========================================================= */

.rpg-content .rpg-related-card p {
    margin: 0;
    padding: 0;

    color: #666;

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


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

   1440px and above
   ========================================================= */

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

    .rpg-page {
        padding-left: 25px;
        padding-right: 25px;
    }


    .rpg-layout {
        gap: 30px;

        max-width: 1440px;
    }


    .rpg-workspace {
        grid-template-columns:
            minmax(260px, 0.8fr)
            minmax(0, 1.7fr);

        gap: 24px;
    }


    .rpg-form {
        padding: 20px;
    }


    .rpg-results {
        height: 405px;
    }


    .rpg-paragraph-item {
        padding: 18px 20px;
    }


    .rpg-paragraph-list > .rpg-paragraph-item:only-child {
        padding: 18px 20px;
    }


    .rpg-stat-card {
        min-height: 85px;
    }


    .rpg-stat-value {
        font-size: 25px;
    }


    .rpg-stat-label {
        font-size: 13px;
    }


    .rpg-content {
        font-size: 16px;
    }

}


/* =========================================================
   STANDARD DESKTOP

   1200px – 1439px
   ========================================================= */

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

    .rpg-workspace {
        grid-template-columns:
            minmax(245px, 0.85fr)
            minmax(0, 1.65fr);

        gap: 20px;
    }


    .rpg-form {
        padding: 17px;
    }


    .rpg-results {
        height: 390px;
    }

}


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

   1024px – 1199px
   ========================================================= */

@media screen and (min-width: 1024px) and (max-width: 1199px) {

    .rpg-page {
        padding-left: 15px;
        padding-right: 15px;
    }


    .rpg-layout {
        gap: 20px;
    }


    .rpg-workspace {
        grid-template-columns:
            minmax(215px, 0.9fr)
            minmax(0, 1.45fr);

        gap: 15px;
    }


    .rpg-panel-title {
        font-size: 19px;
    }


    .rpg-form {
        gap: 17px;

        padding: 13px;
    }


    .rpg-page .rpg-generate-button {
        padding-left: 8px;
        padding-right: 8px;

        font-size: 14px;
    }


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


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


    .rpg-page .rpg-select {
        font-size: 14px;
    }


    .rpg-presets {
        gap: 4px;
    }


    .rpg-page .rpg-preset-button {
        font-size: 12px;
    }


    .rpg-results {
        height: 380px;
    }


    .rpg-paragraph-item {
        padding: 15px;
    }


    .rpg-paragraph-list > .rpg-paragraph-item:only-child {
        padding: 15px;
    }


    .rpg-results-toolbar {
        gap: 6px;
    }


    .rpg-results-toolbar .rpg-button {
        padding: 8px 9px;

        font-size: 12px;
    }


    .rpg-statistics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }


    .rpg-stat-card {
        min-height: 68px;
    }


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


    .rpg-content h2 {
        font-size: 24px;
    }

}


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

   Below 1024px

   Hide the advertising sidebar and retain the
   two-column generator layout.
   ========================================================= */

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

    .rpg-page {
        padding:
            100px
            18px
            40px;
    }


    .rpg-layout {
        display: block;

        width: 100%;
        max-width: 900px;
    }


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


    .rpg-page .rpg-sidebar {
        display: none !important;

        width: 0;
        min-width: 0;
        min-height: 0;

        margin: 0;
        padding: 0;
    }


    .rpg-workspace {
        grid-template-columns:
            minmax(220px, 0.8fr)
            minmax(0, 1.5fr);

        gap: 20px;
    }


    .rpg-form {
        padding: 16px;
    }


    .rpg-results {
        height: 390px;
    }


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

}


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

   701px – 800px
   ========================================================= */

@media screen and (min-width: 701px) and (max-width: 800px) {

    .rpg-workspace {
        grid-template-columns:
            minmax(215px, 0.85fr)
            minmax(0, 1.4fr);

        gap: 16px;
    }


    .rpg-form {
        padding: 14px;
    }


    .rpg-page .rpg-generate-button {
        font-size: 15px;
    }


    .rpg-statistics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .rpg-stat-card {
        min-height: 68px;
    }


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

}


/* =========================================================
   MOBILE AND SMALL TABLET

   700px and below

   Generator options appear above the results.
   ========================================================= */

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

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


    .rpg-layout {
        max-width: 600px;
    }


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


    .rpg-heading h1 {
        margin-bottom: 9px;

        font-size: 28px;
        line-height: 1.25;
    }


    .rpg-intro {
        max-width: 520px;

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


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


    .rpg-workspace {
        display: grid;

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

        gap: 24px;
    }


    .rpg-panel-title {
        margin-bottom: 12px;

        font-size: 20px;
    }


    .rpg-form {
        gap: 18px;

        padding: 16px;

        border-radius: 8px;
    }


    .rpg-field {
        gap: 7px;
    }


    .rpg-field-label {
        font-size: 15px;
    }


    .rpg-field-help {
        font-size: 13px;
    }


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

        font-size: 16px;
    }


    .rpg-page .rpg-number-input,
    .rpg-page .rpg-select {
        min-height: 45px;

        font-size: 16px;
    }


    .rpg-presets {
        gap: 7px;
    }


    .rpg-page .rpg-preset-button {
        min-height: 38px;

        font-size: 14px;
    }


    .rpg-results {
        height: 330px;
        min-height: 220px;
        max-height: 700px;

        border-radius: 7px;

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


    .rpg-paragraph-item {
        padding: 15px 16px;
    }


    .rpg-paragraph-list > .rpg-paragraph-item:only-child {
        padding: 15px 16px;
    }


    .rpg-page .rpg-paragraph-text {
        font-size: 16px;
        line-height: 1.7;
    }


    .rpg-page .rpg-paragraph-copy {
        min-height: 34px;
    }


    .rpg-results-toolbar {
        justify-content: flex-end;

        gap: 8px;

        margin-top: 10px;
    }


    .rpg-results-toolbar .rpg-button {
        min-height: 40px;

        font-size: 13px;
    }


    .rpg-statistics {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 8px;

        margin-top: 13px;
    }


    .rpg-stat-card {
        min-height: 75px;

        padding: 11px 5px;
    }


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


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


    .rpg-content > section {
        margin-bottom: 28px;
    }


    .rpg-content h2 {
        margin-bottom: 12px;

        font-size: 23px;
        line-height: 1.35;
    }


    .rpg-content h3 {
        margin-top: 19px;

        font-size: 18px;
    }


    .rpg-content p,
    .rpg-content li {
        font-size: 15px;
        line-height: 1.75;
    }


    .rpg-content ul,
    .rpg-content ol {
        padding-left: 22px;
    }


    .rpg-example-list {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 12px;
    }


    .rpg-example-card {
        padding: 16px;
    }


    .rpg-content .rpg-example-card h3 {
        font-size: 16px;
    }


    .rpg-content .rpg-example-card p {
        font-size: 15px;
    }


    .rpg-table th,
    .rpg-table td {
        padding: 10px 12px;

        font-size: 14px;
    }


    .rpg-faq-item {
        padding: 15px 0;
    }


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


    .rpg-content .rpg-faq-item p {
        font-size: 15px;
    }


    .rpg-related-grid {
        gap: 10px;
    }


    .rpg-page .rpg-related-card {
        padding: 13px;
    }


    .rpg-content .rpg-related-card h3 {
        font-size: 15px;
    }


    .rpg-content .rpg-related-card p {
        font-size: 13px;
    }

}


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

   480px and below
   ========================================================= */

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

    .rpg-page {
        padding:
            90px
            12px
            30px;
    }


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


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


    .rpg-intro {
        font-size: 14px;
        line-height: 1.6;
    }


    .rpg-panel-title {
        font-size: 19px;
    }


    .rpg-workspace {
        gap: 22px;
    }


    .rpg-form {
        padding: 14px;

        gap: 17px;
    }


    .rpg-page .rpg-generate-button {
        min-height: 46px;

        font-size: 15px;
    }


    .rpg-presets {
        gap: 5px;
    }


    .rpg-page .rpg-preset-button {
        min-height: 37px;
    }


    .rpg-results {
        height: 320px;
        min-height: 200px;

        scrollbar-gutter: stable;
    }


    .rpg-paragraph-item {
        padding: 14px;
    }


    .rpg-paragraph-list > .rpg-paragraph-item:only-child {
        padding: 14px;
    }


    .rpg-results-toolbar {
        display: grid;

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

        gap: 6px;
    }


    .rpg-results-toolbar .rpg-button {
        width: 100%;
        min-width: 0;
        min-height: 40px;

        padding: 8px 5px;

        gap: 5px;

        font-size: 12px;
    }


    .rpg-results-toolbar .rpg-button i {
        font-size: 15px;
    }


    .rpg-statistics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }


    .rpg-stat-card {
        min-height: 69px;

        padding: 10px 7px;
    }


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


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


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


    .rpg-content h3 {
        font-size: 17px;
    }


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

        gap: 9px;
    }


    .rpg-page .rpg-related-card {
        padding: 14px;
    }


    .rpg-content .rpg-related-card h3 {
        font-size: 16px;
    }


    .rpg-content .rpg-related-card p {
        font-size: 14px;
    }

}


/* =========================================================
   EXTRA SMALL MOBILE DEVICES

   360px and below
   ========================================================= */

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

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


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


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


    .rpg-form {
        padding: 12px;
    }


    .rpg-page .rpg-generate-button {
        font-size: 14px;
    }


    .rpg-page .rpg-preset-button {
        font-size: 13px;
    }


    .rpg-paragraph-item {
        padding: 12px;
    }


    .rpg-paragraph-list > .rpg-paragraph-item:only-child {
        padding: 12px;
    }


    .rpg-results-toolbar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .rpg-results-toolbar .rpg-button:last-child {
        grid-column: 1 / -1;
    }


    .rpg-results-toolbar .rpg-button {
        min-height: 39px;

        font-size: 12px;
    }


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

}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .rpg-page .rpg-button,
    .rpg-page .rpg-preset-button,
    .rpg-page .rpg-paragraph-copy {
        -webkit-tap-highlight-color: transparent;
    }


    .rpg-page .rpg-number-input,
    .rpg-page .rpg-select {
        font-size: 16px;
    }


    .rpg-results {
        resize: none;
    }


    .rpg-page .rpg-paragraph-copy {
        min-height: 38px;

        padding: 7px 10px;
    }


    .rpg-page .rpg-preset-button {
        min-height: 40px;
    }

}


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

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

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

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

}


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

@media (forced-colors: active) {

    .rpg-page .rpg-button,
    .rpg-page .rpg-preset-button,
    .rpg-page .rpg-paragraph-copy,
    .rpg-page .rpg-number-input,
    .rpg-page .rpg-select,
    .rpg-results,
    .rpg-stat-card,
    .rpg-example-card,
    .rpg-related-card,
    .rpg-form {
        border-color: ButtonText;
    }


    .rpg-page .rpg-preset-button.is-active,
    .rpg-page .rpg-preset-button[aria-pressed="true"] {
        border: 2px solid Highlight;
    }


    .rpg-page .rpg-select {
        appearance: auto;

        background-image: none;

        padding-right: 12px;
    }


    .rpg-page .rpg-button-primary {
        border: 2px solid ButtonText;
    }

}


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

@media print {

    .header,
    .footer,
    .search-form-container,
    .rpg-sidebar,
    .rpg-options-panel,
    .rpg-results-toolbar,
    .rpg-paragraph-header,
    .rpg-related-section {
        display: none !important;
    }


    .rpg-page {
        width: 100%;

        margin: 0;
        padding: 0;

        background: #fff;
        color: #000;
    }


    .rpg-layout,
    .rpg-main,
    .rpg-workspace,
    .rpg-results-panel {
        display: block;

        width: 100%;
        max-width: none;

        margin: 0;
        padding: 0;
    }


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


    .rpg-heading h1 {
        color: #000;

        font-size: 24px;
    }


    .rpg-intro {
        color: #333;
    }


    .rpg-results {
        display: block;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0;
        padding: 0;

        border: none;

        overflow: visible !important;

        resize: none;

        box-shadow: none;
    }


    .rpg-paragraph-item,
    .rpg-paragraph-list > .rpg-paragraph-item:only-child {
        margin-bottom: 15px;
        padding: 0;

        border: none;

        break-inside: avoid;
        page-break-inside: avoid;
    }


    .rpg-page .rpg-paragraph-text {
        color: #000;

        font-size: 12pt;
        line-height: 1.6;
    }


    .rpg-statistics {
        margin-top: 20px;

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


    .rpg-stat-card {
        border-color: #aaa;

        background: #fff;

        break-inside: avoid;
    }


    .rpg-stat-value,
    .rpg-stat-label {
        color: #000;
    }


    .rpg-content {
        display: none !important;
    }

}


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