
/* =========================================================
   READING TIME CALCULATOR — CharacterCounter.com

   DESKTOP:
   - Compact above-the-fold calculator
   - Textarea on the left
   - Reading Time Results on the right
   - Textarea bottom aligned with result boxes
   - Reading speed settings underneath
   - Full-height 300px Raptive sidebar

   TABLET / MOBILE:
   - Results displayed above textarea
   - Compact, resizable textarea
   - Stacked calculator layout
   - Sidebar hidden below 900px

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


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

.reading-time-page {
    width: 100%;
    padding: 105px 15px 40px;

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

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

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

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

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

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

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

.reading-time-page a:focus-visible,
.reading-time-page button:focus-visible,
.reading-time-page textarea:focus-visible,
.reading-time-page input:focus-visible {
    outline: 3px solid rgba(26, 115, 232, 0.3);
    outline-offset: 3px;
}


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

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

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

    align-items: stretch;
    gap: 28px;

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

    margin: 0 auto;
}

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

.reading-time-sidebar {
    display: block;

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

    align-self: stretch;

    margin: 0;
    padding: 0;
}


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

.reading-time-heading {
    width: 100%;

    margin: 0 0 20px;

    text-align: center;
}

.reading-time-heading h1 {
    margin: 0 0 9px;
    padding: 0;

    color: #333;

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

    overflow-wrap: break-word;
}

.reading-time-intro {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;
    padding: 0;

    color: #555;

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


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

.reading-time-notice {
    margin: 0 0 18px;
    padding: 12px 15px;

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

    background: #fff9eb;
    color: #665022;

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


/* =========================================================
   CALCULATOR GRID

   DESKTOP:

   [ Paste Text | Enter Word Count ]

   [ Your Text    | Reading Time Results ]
   [ Textarea     | Reading Time         ]
   [              | Result Boxes         ]

   [         Reading Speed             ]

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

.reading-time-tool {
    display: grid;

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

    grid-template-areas:
        "mode mode"
        "input result"
        "options options"
        "status status";

    align-items: stretch;

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

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   INPUT MODE SELECTOR
   ========================================================= */

.reading-time-input-mode {
    grid-area: mode;

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

    width: 100%;

    margin: 0;
    padding: 5px;

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

    background: #f3f5f8;

    gap: 5px;
}

.reading-time-mode-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 1 1 0;

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

    gap: 8px;

    margin: 0;
    padding: 10px 14px;

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

    background: transparent;
    color: #555;

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

    text-align: center;

    cursor: pointer;

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

.reading-time-mode-button i {
    flex: 0 0 auto;

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

.reading-time-mode-button:hover {
    background: #e7ebf0;
    color: #333;
}

.reading-time-mode-button.is-active,
.reading-time-mode-button[aria-pressed="true"] {
    border-color: #d5dfed;

    background: #fff;
    color: #145ba8;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.reading-time-mode-button.is-active:hover {
    background: #fff;
}


/* =========================================================
   TEXT INPUT COLUMN
   ========================================================= */

.reading-time-editor {
    grid-area: input;

    display: flex;
    flex-direction: column;

    align-self: stretch;

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

    margin: 0;
    padding: 0;
}


/* =========================================================
   EDITOR HEADING
   ========================================================= */

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

    flex: 0 0 auto;

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

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

    margin: 0 0 9px;
}

.reading-time-editor-heading h2 {
    margin: 0;
    padding: 0;

    color: #333;

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


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

.reading-time-example-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

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

    margin: 0;
    padding: 6px 10px;

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

    background: #f3f7fc;
    color: #145ba8;

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

    white-space: nowrap;
    cursor: pointer;

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

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

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

.reading-time-example-button:active {
    background: #d8e9ff;
}


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

   Expands to fill the editor column on desktop.
   ========================================================= */

.reading-time-textarea-wrapper {
    position: relative;

    display: flex;
    flex-direction: column;

    flex: 1 1 auto;

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

    margin: 0;
    padding: 0;
}


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

.reading-time-page .reading-time-textarea {
    display: block;

    flex: 1 1 auto;

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

    height: 100%;
    min-height: 165px;
    max-height: none;

    margin: 0;
    padding: 13px 14px 58px;

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

    background: #fff;
    color: #222;

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

    outline: none;
    resize: none;

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

.reading-time-page .reading-time-textarea::placeholder {
    color: #9299a2;
    opacity: 1;
}

.reading-time-page .reading-time-textarea:hover {
    border-color: #aeb4bd;
}

.reading-time-page .reading-time-textarea:focus {
    border-color: #1a73e8;

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


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

   Undo | Clear
   ========================================================= */

.reading-time-textarea-actions {
    position: absolute;

    right: 11px;
    bottom: 11px;

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

    flex-wrap: wrap;
    gap: 6px;

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

    z-index: 2;
}


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

.reading-time-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

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

    margin: 0;
    padding: 7px 10px;

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

    background: #f7f8fa;
    color: #444;

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

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

    cursor: pointer;
    user-select: none;

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

.reading-time-inline-button i {
    flex: 0 0 auto;

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

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

.reading-time-inline-button:active {
    background: #dfe5ec;
}

.reading-time-inline-button:disabled {
    border-color: #e0e4e9;

    background: #f5f6f8;
    color: #969da6;

    opacity: 0.8;
    cursor: not-allowed;
}

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


/* =========================================================
   INPUT STATISTICS
   ========================================================= */

.reading-time-editor-stats {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

    flex: 0 0 auto;

    flex-wrap: wrap;
    gap: 5px 17px;

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

    margin: 9px 0 0;
    padding: 0 2px;

    color: #666;

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

.reading-time-editor-stats span {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    white-space: nowrap;
}

.reading-time-editor-stats strong {
    color: #333;

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

    font-variant-numeric: tabular-nums;
}


/* =========================================================
   MANUAL WORD COUNT SECTION
   ========================================================= */

.reading-time-manual-section {
    grid-area: input;

    align-self: start;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 17px;

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

    background: #fff;
}

.reading-time-manual-section h2 {
    margin: 0 0 7px;

    color: #333;

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

.reading-time-manual-description {
    margin: 0 0 14px;

    color: #666;

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

.reading-time-manual-field {
    display: flex;
    flex-direction: column;

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

.reading-time-manual-field label {
    display: block;

    margin: 0 0 7px;

    color: #333;

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


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

.reading-time-page .reading-time-number-input {
    display: block;

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

    margin: 0;
    padding: 10px 12px;

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

    background: #fff;
    color: #222;

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

    outline: none;

    font-variant-numeric: tabular-nums;

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

.reading-time-page .reading-time-number-input:hover {
    border-color: #aeb4bd;
}

.reading-time-page .reading-time-number-input:focus {
    border-color: #1a73e8;

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

.reading-time-field-help {
    margin: 8px 0 0;

    color: #777;

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


/* =========================================================
   READING TIME RESULTS
   ========================================================= */

.reading-time-results {
    grid-area: result;

    display: flex;
    flex-direction: column;

    align-self: stretch;

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

    margin: 0;
    padding: 0;
}


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

.reading-time-results-heading {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

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

    margin: 0 0 9px;
    padding: 0;

    color: #333;

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


/* =========================================================
   PRIMARY READING TIME RESULT
   ========================================================= */

.reading-time-primary-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 100%;
    min-width: 0;

    margin: 0 0 10px;
    padding: 17px 13px 15px;

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

    background: #f4f8ff;

    text-align: center;
}


/* =========================================================
   MAIN RESULT LABEL
   ========================================================= */

.reading-time-result-label {
    margin: 0 0 5px;
    padding: 0;

    color: #4e5b6d;

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


/* =========================================================
   MAIN READING TIME VALUE
   ========================================================= */

.reading-time-result-value {
    width: 100%;
    min-width: 0;

    margin: 0 0 5px;
    padding: 0;

    color: #185abc;

    font-size: clamp(27px, 3.2vw, 38px);
    line-height: 1.25;
    font-weight: 700;

    letter-spacing: -0.5px;

    font-variant-numeric: tabular-nums;

    overflow-wrap: anywhere;
}


/* =========================================================
   READING SPEED LABEL
   ========================================================= */

.reading-time-result-speed {
    margin: 0;
    padding: 0;

    color: #607086;

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

.reading-time-result-speed strong {
    color: #40516a;

    font-weight: 700;
    font-variant-numeric: tabular-nums;
}


/* =========================================================
   SECONDARY RESULT BOXES
   ========================================================= */

.reading-time-stat-grid {
    display: grid;

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

    gap: 8px;

    flex: 0 0 auto;

    width: 100%;
    margin: 0;
}

.reading-time-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

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

    gap: 4px;

    margin: 0;
    padding: 10px 8px;

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

    background: #fff;

    text-align: center;
}

.reading-time-stat-label {
    display: block;

    color: #666;

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

.reading-time-stat-value {
    display: block;

    width: 100%;

    color: #333;

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

    font-variant-numeric: tabular-nums;

    overflow-wrap: anywhere;
}

.reading-time-stat-note {
    display: block;

    color: #888;

    font-size: 11px;
    line-height: 1.3;
}


/* READ ALOUD CARD SPANS BOTH COLUMNS */

.reading-time-stat-card:last-child {
    grid-column: 1 / -1;

    min-height: 70px;
}


/* =========================================================
   RESULTS NOTE
   ========================================================= */

.reading-time-results-note {
    flex: 0 0 auto;

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

    margin: 9px 0 0;
    padding: 0 2px;

    color: #777;

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

    text-align: left;
}


/* =========================================================
   READING SPEED SETTINGS
   ========================================================= */

.reading-time-options {
    grid-area: options;

    display: block;

    width: 100%;
    min-width: 0;

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

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

    background: #fff;
}

.reading-time-options-title {
    margin: 0;
    padding: 0 8px;

    color: #333;

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

.reading-time-options-description {
    margin: 0 0 15px;
    padding: 0;

    color: #666;

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


/* =========================================================
   READING SPEED PRESETS

   UPDATED:
   Larger Slow, Average, Fast, Very Fast labels.

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

.reading-time-presets {
    display: grid;

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

    gap: 10px;

    width: 100%;

    margin: 0 0 17px;
}

.reading-time-preset-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

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

    gap: 3px;

    margin: 0;
    padding: 10px 7px;

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

    background: #fff;
    color: #444;

    text-align: center;

    cursor: pointer;
    user-select: none;

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

.reading-time-preset-button:hover {
    border-color: #99bce9;
    background: #f4f8ff;
}

.reading-time-preset-button.is-active,
.reading-time-preset-button[aria-pressed="true"] {
    border-color: #1a73e8;

    background: #eff6ff;
    color: #145ba8;

    box-shadow:
        0 0 0 1px rgba(26, 115, 232, 0.08);
}

.reading-time-preset-button.is-active:hover {
    background: #e7f1ff;
}


/* UPDATED LARGER PRESET LABELS */

.reading-time-preset-name {
    display: block;

    color: inherit;

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

.reading-time-preset-button strong {
    display: block;

    color: #333;

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

    font-variant-numeric: tabular-nums;
}

.reading-time-preset-button.is-active strong {
    color: #145ba8;
}

.reading-time-preset-unit {
    display: block;

    color: #777;

    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
}

.reading-time-preset-button.is-active .reading-time-preset-unit {
    color: #2766a9;
}


/* =========================================================
   CUSTOM READING SPEED
   ========================================================= */

.reading-time-custom-speed {
    width: 100%;

    margin: 0;
    padding: 14px 16px;

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

    background: #fafbfc;
}

.reading-time-speed-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;
    gap: 10px;

    width: 100%;

    margin: 0 0 12px;
}

.reading-time-speed-heading label {
    color: #333;

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

.reading-time-speed-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;

    gap: 7px;

    min-width: 0;
}

.reading-time-speed-value span {
    color: #666;

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


/* =========================================================
   CUSTOM WPM INPUT
   ========================================================= */

.reading-time-page .reading-time-speed-input {
    display: block;

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

    margin: 0;
    padding: 8px 10px;

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

    background: #fff;
    color: #222;

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

    text-align: center;

    font-variant-numeric: tabular-nums;

    outline: none;

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

.reading-time-page .reading-time-speed-input:hover {
    border-color: #aeb4bd;
}

.reading-time-page .reading-time-speed-input:focus {
    border-color: #1a73e8;

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


/* =========================================================
   READING SPEED SLIDER
   ========================================================= */

.reading-time-page .reading-time-speed-range {
    display: block;

    width: 100%;
    height: 7px;

    margin: 11px 0 13px;
    padding: 0;

    border: none;
    border-radius: 100px;

    background: #dce5f1;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    outline: none;

    touch-action: pan-y;
}


/* WEBKIT TRACK */

.reading-time-speed-range::-webkit-slider-runnable-track {
    height: 7px;

    border: none;
    border-radius: 100px;

    background: transparent;
}


/* WEBKIT THUMB */

.reading-time-speed-range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;

    margin-top: -6.5px;

    border: 3px solid #fff;
    border-radius: 50%;

    background: #1a73e8;

    box-shadow:
        0 1px 5px rgba(0, 0, 0, 0.19),
        0 0 0 1px rgba(26, 115, 232, 0.13);

    appearance: none;
    -webkit-appearance: none;

    cursor: grab;
}

.reading-time-speed-range::-webkit-slider-thumb:active {
    cursor: grabbing;
}


/* FIREFOX TRACK */

.reading-time-speed-range::-moz-range-track {
    height: 7px;

    border: none;
    border-radius: 100px;

    background: #dce5f1;
}


/* FIREFOX PROGRESS */

.reading-time-speed-range::-moz-range-progress {
    height: 7px;

    border-radius: 100px;

    background: #1a73e8;
}


/* FIREFOX THUMB */

.reading-time-speed-range::-moz-range-thumb {
    width: 16px;
    height: 16px;

    border: 3px solid #fff;
    border-radius: 50%;

    background: #1a73e8;

    box-shadow:
        0 1px 5px rgba(0, 0, 0, 0.19);

    cursor: grab;
}


/* SLIDER FOCUS */

.reading-time-page .reading-time-speed-range:focus-visible {
    outline: 3px solid rgba(26, 115, 232, 0.3);
    outline-offset: 7px;
}


/* =========================================================
   SLIDER RANGE LABELS
   ========================================================= */

.reading-time-range-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    width: 100%;

    color: #777;

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


/* =========================================================
   READING SPEED NOTE
   ========================================================= */

.reading-time-speed-note {
    margin: 12px 0 0;
    padding: 0;

    color: #777;

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


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

.reading-time-tool-status {
    grid-area: status;

    margin: 0;
    padding: 0;

    color: #666;

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

.reading-time-tool-status:empty {
    display: none;
}

.reading-time-tool-status.is-error {
    padding: 10px 12px;

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

    background: #fff5f5;
    color: #a12622;
}

.reading-time-tool-status.is-success {
    color: #246b38;
}


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

.reading-time-article {
    width: 100%;
    min-width: 0;

    margin: 35px 0 0;
    padding: 0;

    color: #444;

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

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

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

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

    color: #333;

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

    overflow-wrap: break-word;
}

.reading-time-article h3 {
    margin: 22px 0 9px;
    padding: 0;

    color: #333;

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

    overflow-wrap: break-word;
}

.reading-time-article p {
    margin: 0 0 15px;
    padding: 0;

    color: #444;

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

.reading-time-article strong {
    font-weight: 700;
}

.reading-time-article a {
    color: #1155cc;
    text-decoration: none;
}

.reading-time-article a:hover {
    color: #0b43a6;
    text-decoration: underline;
}


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

.reading-time-article-list {
    margin: 0 0 17px;
    padding: 0 0 0 23px;

    color: #444;
}

.reading-time-article-list li {
    margin: 0 0 11px;
    padding: 0 0 0 3px;

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

.reading-time-article-list li::marker {
    color: #555;
}

.reading-time-article-list strong {
    color: #333;
}


/* =========================================================
   READING TIME FORMULA BOX
   ========================================================= */

.reading-time-formula-box {
    width: 100%;

    margin: 19px 0 23px;
    padding: 19px 20px;

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

    background: #f6f9fe;

    text-align: center;
}

.reading-time-formula-box > strong {
    display: block;

    margin: 0 0 10px;

    color: #333;

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

.reading-time-formula {
    color: #185abc;

    font-size: 17px;
    line-height: 1.6;
    font-weight: 700;

    overflow-wrap: anywhere;
}


/* =========================================================
   CALCULATION EXAMPLE
   ========================================================= */

.reading-time-example-box {
    width: 100%;

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

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

    background: #fafbfc;
}

.reading-time-example-box p {
    margin: 0 0 9px;

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

.reading-time-example-box p:last-child {
    margin-bottom: 0;
}

.reading-time-example-box strong {
    color: #333;
}

.reading-time-article .reading-time-example-answer {
    margin: 14px 0 0;
    padding: 11px 13px;

    border-radius: 6px;

    background: #eaf3ff;
    color: #185abc;

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

.reading-time-example-answer strong {
    color: #185abc;
}


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

.reading-time-table-wrapper {
    width: 100%;
    max-width: 100%;

    margin: 19px 0;

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

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

    -webkit-overflow-scrolling: touch;
}


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

.reading-time-table {
    width: 100%;
    min-width: 290px;

    margin: 0;
    padding: 0;

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

    background: #fff;

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

    text-align: left;
}

.reading-time-table thead {
    background: #f2f5f9;
}

.reading-time-table th {
    padding: 12px 16px;

    border-bottom: 1px solid #dce2e9;

    color: #333;

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

    text-align: left;
}

.reading-time-table td {
    padding: 11px 16px;

    border-bottom: 1px solid #e9edf2;

    color: #444;

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

    vertical-align: middle;
}

.reading-time-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

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

.reading-time-table tbody tr:hover {
    background: #f4f8fd;
}

.reading-time-table th:last-child,
.reading-time-table td:last-child {
    text-align: right;

    font-variant-numeric: tabular-nums;
}


/* =========================================================
   SOURCE NOTE
   ========================================================= */

.reading-time-article .reading-time-source-note {
    margin: 11px 0 0;

    color: #777;

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

.reading-time-source-note a {
    overflow-wrap: anywhere;
}


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

.reading-time-faq {
    width: 100%;

    margin: 0;
    padding: 18px 0;

    border-bottom: 1px solid #e4e8ee;
}

.reading-time-faq:first-of-type {
    padding-top: 2px;
}

.reading-time-faq:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reading-time-faq h3 {
    margin: 0 0 9px;

    color: #333;

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

.reading-time-faq p {
    margin: 0;

    color: #555;

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


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

.reading-time-related-tools {
    width: 100%;

    margin: 5px 0 0;
    padding: 24px 0 0;

    border-top: 1px solid #e3e7ec;
}

.reading-time-related-tools h2 {
    margin: 0 0 11px;
}

.reading-time-article .reading-time-related-intro {
    margin: 0 0 17px;

    color: #666;

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


/* =========================================================
   RELATED LINKS GRID
   ========================================================= */

.reading-time-related-links {
    display: grid;

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

    gap: 9px 20px;

    width: 100%;

    margin: 0 0 22px;
    padding: 0;

    list-style: none;
}

.reading-time-related-links li {
    position: relative;

    min-width: 0;

    margin: 0;
    padding: 0 0 0 17px;

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

.reading-time-related-links li::before {
    content: "\2192";

    position: absolute;

    left: 0;
    top: 0;

    color: #7a90ad;
    font-weight: 600;
}

.reading-time-related-links a {
    color: #1155cc;
    text-decoration: none;

    overflow-wrap: anywhere;
}

.reading-time-related-links a:hover {
    text-decoration: underline;
}


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

.reading-time-related-callouts {
    display: grid;

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

    gap: 14px;

    width: 100%;

    margin: 0;
}

.reading-time-related-callout {
    min-width: 0;

    margin: 0;
    padding: 18px;

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

    background: #f8fafc;
}

.reading-time-related-callout h3 {
    margin: 0 0 9px;

    color: #333;

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

.reading-time-related-callout p {
    margin: 0;

    color: #555;

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

.reading-time-related-callout a {
    font-weight: 500;
}


/* =========================================================
   DESKTOP ALIGNMENT REFINEMENT

   Keeps the textarea bottom aligned with the
   bottom of the Reading Time Results boxes.

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

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

    .reading-time-tool {
        align-items: stretch;
    }

    .reading-time-editor {
        align-self: stretch;
        height: 100%;
    }

    .reading-time-results {
        align-self: stretch;
        height: 100%;
    }

    .reading-time-editor-heading,
    .reading-time-results-heading {
        min-height: 36px;
        margin-bottom: 9px;
    }

    .reading-time-textarea-wrapper {
        flex: 1 1 auto;
        min-height: 165px;
    }

    .reading-time-page .reading-time-textarea {
        flex: 1 1 auto;

        height: 100%;
        min-height: 165px;
        max-height: none;

        resize: none;
    }

    .reading-time-editor-stats,
    .reading-time-results-note {
        flex: 0 0 auto;

        min-height: 50px;
        margin-top: 9px;
    }

}


/* =========================================================
   RESPONSIVE LAYOUT: 1160px AND BELOW

   Results move above the text input.
   Textarea returns to compact height.

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

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

    .reading-time-tool {
        grid-template-columns: minmax(0, 1fr);

        grid-template-areas:
            "mode"
            "result"
            "input"
            "options"
            "status";

        align-items: start;

        row-gap: 17px;
    }

    .reading-time-results {
        display: block;
        height: auto;
    }

    .reading-time-results-heading {
        display: block;
        min-height: 0;
        margin-bottom: 10px;
    }

    .reading-time-primary-result {
        padding: 18px 15px 16px;
    }

    .reading-time-stat-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .reading-time-stat-card {
        min-height: 80px;
    }

    .reading-time-stat-card:last-child {
        grid-column: auto;
    }

    .reading-time-results-note {
        min-height: 0;
        margin-top: 9px;
    }

    .reading-time-editor {
        height: auto;
        align-self: start;
    }

    .reading-time-textarea-wrapper {
        display: block;
        flex: none;

        min-height: 0;
    }

    .reading-time-page .reading-time-textarea {
        display: block;

        width: 100%;
        height: 145px;
        min-height: 85px;
        max-height: 700px;

        resize: vertical;
    }

    .reading-time-editor-stats {
        min-height: 0;
        margin-top: 8px;
    }

}


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

   Hide Raptive sidebar below 900px.
   ========================================================= */

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

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

        gap: 0;

        max-width: 760px;
    }

    .reading-time-sidebar {
        display: none !important;
    }

    .reading-time-main {
        width: 100%;
    }

}


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

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

    .reading-time-page {
        padding-left: 14px;
        padding-right: 14px;
    }

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

    .reading-time-intro {
        font-size: 15px;
    }

    .reading-time-result-value {
        font-size: 36px;
    }

    .reading-time-article h2 {
        font-size: 22px;
    }

}


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

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

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


    /* PAGE HEADING */

    .reading-time-heading {
        margin-bottom: 18px;
    }

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

    .reading-time-intro {
        font-size: 14px;
        line-height: 1.55;
    }


    /* CALCULATOR */

    .reading-time-tool {
        row-gap: 15px;
    }


    /* INPUT MODE */

    .reading-time-mode-button {
        min-height: 42px;

        gap: 6px;
        padding: 9px 8px;

        font-size: 13px;
    }

    .reading-time-mode-button i {
        font-size: 16px;
    }


    /* RESULTS */

    .reading-time-results-heading {
        font-size: 18px;
        margin-bottom: 9px;
    }

    .reading-time-primary-result {
        padding: 16px 12px 14px;
    }

    .reading-time-result-label {
        font-size: 13px;
    }

    .reading-time-result-value {
        font-size: 34px;
    }

    .reading-time-result-speed {
        font-size: 12px;
    }


    /* STATISTICS */

    .reading-time-stat-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 7px;
    }

    .reading-time-stat-card {
        min-height: 76px;
        padding: 10px 6px;
    }

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

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

    .reading-time-stat-note {
        font-size: 10px;
    }

    .reading-time-results-note {
        font-size: 11px;
    }


    /* TEXT EDITOR */

    .reading-time-editor-heading h2 {
        font-size: 18px;
    }

    .reading-time-page .reading-time-textarea {
        height: 135px;
        min-height: 85px;

        padding: 12px 13px 55px;

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

    .reading-time-textarea-actions {
        right: 9px;
        bottom: 9px;
    }


    /* MANUAL WORD COUNT */

    .reading-time-manual-section {
        padding: 16px 14px;
    }

    .reading-time-manual-section h2 {
        font-size: 18px;
    }


    /* READING SPEED OPTIONS */

    .reading-time-options {
        padding: 14px 13px 16px;
    }

    .reading-time-options-title {
        font-size: 18px;
    }

    .reading-time-options-description {
        font-size: 13px;
        margin-bottom: 14px;
    }


    /* SPEED PRESETS */

    .reading-time-presets {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
        margin-bottom: 15px;
    }

    .reading-time-preset-button {
        min-height: 76px;
        padding: 9px 6px;
    }

    /* UPDATED MOBILE LABEL SIZE */

    .reading-time-preset-name {
        font-size: 15px;
        line-height: 1.4;
    }

    .reading-time-preset-button strong {
        font-size: 22px;
    }


    /* CUSTOM SPEED */

    .reading-time-custom-speed {
        padding: 13px 12px;
    }


    /* ARTICLE */

    .reading-time-article {
        margin-top: 29px;

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

    .reading-time-article-section {
        margin-bottom: 28px;
    }

    .reading-time-article h2 {
        font-size: 21px;
        margin-bottom: 13px;
    }

    .reading-time-article h3 {
        font-size: 17px;
    }

    .reading-time-article p {
        font-size: 15px;
        line-height: 1.7;
    }

    .reading-time-article-list li {
        font-size: 15px;
    }


    /* FORMULA */

    .reading-time-formula-box {
        padding: 17px 13px;
    }

    .reading-time-formula {
        font-size: 15px;
    }


    /* CALCULATION EXAMPLE */

    .reading-time-example-box {
        padding: 16px;
    }


    /* FAQ */

    .reading-time-faq h3 {
        font-size: 16px;
    }

    .reading-time-faq p {
        font-size: 14px;
    }


    /* RELATED TOOLS */

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

}


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

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

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

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

    .reading-time-intro {
        font-size: 14px;
    }

    .reading-time-mode-button {
        font-size: 12px;

        gap: 5px;
        padding: 9px 5px;
    }

    .reading-time-mode-button i {
        font-size: 15px;
    }

    .reading-time-result-value {
        font-size: 31px;
    }

    .reading-time-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .reading-time-stat-card:last-child {
        grid-column: 1 / -1;
        min-height: 65px;
    }

    .reading-time-stat-value {
        font-size: 21px;
    }

    .reading-time-page .reading-time-textarea {
        height: 125px;
    }

    .reading-time-options {
        padding: 13px 12px 15px;
    }

    .reading-time-preset-button strong {
        font-size: 21px;
    }

    .reading-time-custom-speed {
        padding: 12px 11px;
    }

    .reading-time-table th,
    .reading-time-table td {
        padding: 10px 11px;
        font-size: 13px;
    }

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

        gap: 10px;
    }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

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

    .reading-time-mode-button {
        flex-direction: column;

        gap: 3px;
        min-height: 54px;
    }

    .reading-time-speed-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .reading-time-result-value {
        font-size: 28px;
    }

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

}


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

@media (hover: none) {

    .reading-time-preset-button:hover:not(.is-active) {
        border-color: #d5dce5;
        background: #fff;
        color: #444;
    }

    .reading-time-mode-button:hover:not(.is-active) {
        background: transparent;
        color: #555;
    }

}


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

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

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

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

}
