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

   File: speaking-time-calculator.css

   Compatible with:
   - speaking-time-calculator.html
   - speaking-time-calculator.js
   - header-and-footer-updated.css

   Desktop layout:
   Your Speech | Speaking Time Results | 300px Ad Sidebar

   Words and Characters statistics are positioned below
   the textarea and Copy / Clear buttons.
   ========================================================= */


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

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

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

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

    --stc-green: #237a40;

    width: 100%;

    padding: 105px 15px 50px;

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

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


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

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


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

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


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

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


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

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


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

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

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


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

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


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

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


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

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

.stc-layout {
    display: grid;

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

    align-items: stretch;

    gap: 25px;

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

    margin: 0 auto;
}


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

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


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

.stc-sidebar {
    display: block;

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

    align-self: stretch;

    margin: 0;
    padding: 0;
}


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

.stc-heading {
    width: 100%;

    margin: 0 0 25px;
    padding: 0;

    text-align: center;
}


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

    color: #333;

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

    overflow-wrap: break-word;
}


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

    margin: 0 auto;
    padding: 0;

    color: #555;

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


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

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

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

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


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


/* =========================================================
   MAIN CALCULATOR TOOL
   ========================================================= */

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

    margin: 0 0 44px;
    padding: 0;
}


/* =========================================================
   TOP WORKSPACE

   Speech Input | Speaking Time Results

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

.stc-top-workspace {
    display: grid;

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

    align-items: start;

    gap: 20px;

    width: 100%;
    min-width: 0;

    margin: 0 0 28px;
    padding: 0;
}


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

.stc-workspace-input,
.stc-workspace-results,
.stc-input-panel,
.stc-results-panel {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


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

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

    color: #333;

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


/* =========================================================
   INPUT MODE TOGGLE

   Paste Text | Enter Word Count
   ========================================================= */

.stc-mode-toggle {
    display: grid;

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

    gap: 6px;

    width: 100%;

    margin: 0 0 14px;
    padding: 4px;

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

    background: #f5f7fa;
}


.stc-page .stc-mode-button {
    display: inline-flex;

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

    gap: 6px;

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

    margin: 0;
    padding: 8px 10px;

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

    background: transparent;
    color: #555;

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

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


.stc-mode-button i {
    flex: 0 0 auto;

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


.stc-page .stc-mode-button:hover:not(.is-active) {
    background: #e9eef5;
    color: #333;
}


.stc-page .stc-mode-button.is-active,
.stc-page .stc-mode-button[aria-pressed="true"] {
    border-color: #cfd8e3;

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

    box-shadow:
        0 1px 3px rgba(25, 48, 75, 0.09);
}


/* =========================================================
   INPUT MODE CONTAINERS
   ========================================================= */

.stc-text-mode,
.stc-count-mode {
    width: 100%;
    min-width: 0;
}


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

.stc-page .stc-textarea {
    display: block;

    width: 100%;
    min-width: 0;

    height: 430px;
    min-height: 200px;

    margin: 0;
    padding: 15px;

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

    background: #fff;
    color: #333;

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

    text-align: left;

    resize: vertical;

    overflow: auto;
    overflow-wrap: break-word;

    outline: none;
    box-shadow: none;

    appearance: none;
    -webkit-appearance: none;

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


.stc-page .stc-textarea::placeholder {
    color: #8b9098;

    font-size: 16px;
    font-weight: 400;

    opacity: 1;
}


.stc-page .stc-textarea:hover {
    border-color: #aeb7c2;
}


.stc-page .stc-textarea:focus,
.stc-page .stc-textarea:focus-visible {
    border-color: var(--stc-blue);

    outline: none;

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


.stc-page .stc-textarea::selection {
    background: #cce3ff;
    color: #222;
}


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

   Load Sample Speech | Copy | Clear

   All buttons are outside the textarea.
   ========================================================= */

.stc-input-toolbar {
    display: flex;

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

    gap: 10px;

    width: 100%;

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


.stc-input-actions {
    display: flex;

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

    gap: 8px;

    margin-left: auto;
}


/* =========================================================
   LOAD SAMPLE SPEECH BUTTON
   ========================================================= */

.stc-page .stc-sample-button {
    display: inline-flex;

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

    gap: 6px;

    min-height: 39px;

    margin: 0;
    padding: 7px 2px;

    border: none;
    border-radius: 4px;

    background: transparent;
    color: #1155cc;

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

    text-transform: none;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}


.stc-sample-button i {
    font-size: 17px;
    line-height: 1;
}


.stc-page .stc-sample-button:hover:not(:disabled) {
    color: #0b419f;
    text-decoration: underline;
}


.stc-page .stc-sample-button:disabled {
    color: #999;
    cursor: not-allowed;
}


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

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

    flex: 0 0 auto;

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

    gap: 7px;

    min-height: 39px;

    margin: 0;
    padding: 8px 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;
}


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

    flex: 0 0 auto;

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


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


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

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

    background: #fff;
    color: #444;
}


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

    background: var(--stc-blue-pale);
    color: var(--stc-blue-dark);
}


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

.stc-page .stc-button:disabled {
    border-color: #e2e5e9;

    background: #f8f9fa;
    color: #9298a0;

    cursor: not-allowed;

    opacity: 0.85;
}


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

.stc-page .stc-button.is-copied,
.stc-page .stc-button.copied {
    border-color: #77b991;

    background: #eaf7ee;
    color: var(--stc-green);
}


/* =========================================================
   BUTTON PRESSED STATE
   ========================================================= */

.stc-page .stc-button:active:not(:disabled),
.stc-page .stc-mode-button:active,
.stc-page .stc-preset-button:active {
    transform: translateY(1px);
}


/* =========================================================
   WORD AND CHARACTER STATISTICS

   UPDATED:
   Located underneath the textarea and Copy / Clear toolbar.
   ========================================================= */

.stc-stats {
    display: grid;

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

    gap: 10px;

    width: 100%;
    min-width: 0;

    margin: 16px 0 0;
    padding: 0;
}


.stc-stat {
    display: flex;

    flex-direction: column;

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

    gap: 3px;

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

    margin: 0;
    padding: 10px 8px;

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

    background: #fff;

    text-align: center;
}


.stc-stat-label {
    color: #69717b;

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


.stc-stat-value {
    display: block;

    max-width: 100%;

    color: #333;

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

    font-variant-numeric: tabular-nums;

    overflow-wrap: anywhere;
}


/* =========================================================
   FORM LABELS
   ========================================================= */

.stc-field-label {
    display: block;

    margin: 0 0 7px;
    padding: 0;

    color: #333;

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


/* =========================================================
   FORM HELP TEXT
   ========================================================= */

.stc-field-help {
    margin: 7px 0 0;
    padding: 0;

    color: #69717b;

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


/* =========================================================
   NUMBER INPUTS AND SELECTS
   ========================================================= */

.stc-page .stc-number-input,
.stc-page .stc-select {
    display: block;

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

    margin: 0;
    padding: 8px 11px;

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

    background: #fff;
    color: #333;

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

    outline: none;
    box-shadow: none;

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


.stc-page .stc-number-input:hover,
.stc-page .stc-select:hover {
    border-color: #aeb7c2;
}


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

    outline: none;

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


/* =========================================================
   MANUAL WORD COUNT MODE
   ========================================================= */

.stc-count-mode {
    padding: 16px 0 8px;
}


.stc-page .stc-manual-input {
    max-width: 300px;
    min-height: 53px;

    font-size: 20px;
}


.stc-count-mode .stc-field-help {
    max-width: 480px;

    margin-top: 12px;
}


/* =========================================================
   SPEAKING TIME RESULTS PANEL
   ========================================================= */

.stc-results-panel {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   PRIMARY SPEAKING TIME RESULT

   UPDATED:
   Bottom margin separates the main result from the
   Speaking Speed settings now that statistics have moved.
   ========================================================= */

.stc-primary-result {
    display: flex;

    flex-direction: column;

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

    gap: 5px;

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

    margin: 0 0 24px;
    padding: 20px 14px;

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

    background: #f1f7ff;

    text-align: center;
}


.stc-primary-result-label {
    color: #53657b;

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


.stc-primary-time {
    max-width: 100%;

    color: #1f4f8c;

    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: -0.5px;

    font-variant-numeric: tabular-nums;

    overflow-wrap: anywhere;
}


.stc-result-caption {
    margin: 0;
    padding: 0;

    color: #586b80;

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


/* =========================================================
   SPEAKING SPEED SETTINGS
   ========================================================= */

.stc-settings {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


.stc-settings-title {
    margin: 0 0 11px;
    padding: 0;

    color: #333;

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


/* =========================================================
   SPEAKING SPEED PRESET BUTTONS
   ========================================================= */

.stc-speed-presets {
    display: grid;

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

    gap: 8px;

    width: 100%;

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


.stc-page .stc-preset-button {
    display: flex;

    flex-direction: column;

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

    gap: 2px;

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

    margin: 0;
    padding: 9px 5px;

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

    background: #fff;
    color: #444;

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


.stc-preset-button span {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}


.stc-preset-button small {
    color: #757c86;

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


.stc-page .stc-preset-button:hover:not(.is-active) {
    border-color: #9fb7da;

    background: #f5f9ff;
}


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

    background: var(--stc-blue-pale);
    color: var(--stc-blue-dark);
}


.stc-preset-button.is-active small,
.stc-preset-button[aria-pressed="true"] small {
    color: #3768a7;
}


/* =========================================================
   CUSTOM SPEAKING SPEED
   ========================================================= */

.stc-custom-speed-row {
    display: flex;

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

    gap: 10px;

    width: 100%;

    margin: 0 0 10px;
}


.stc-custom-speed-row .stc-field-label {
    margin: 0;
}


.stc-wpm-entry {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #666;

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

    white-space: nowrap;
}


.stc-page .stc-wpm-input {
    width: 80px;
    min-height: 38px;

    padding: 6px 8px;

    font-size: 15px;

    text-align: center;
}


/* =========================================================
   CUSTOM WPM SLIDER
   ========================================================= */

.stc-page .stc-speed-range {
    display: block;

    width: 100%;
    height: 24px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;

    accent-color: var(--stc-blue);

    cursor: pointer;

    touch-action: pan-y;

    appearance: auto;
    -webkit-appearance: auto;
}


/* =========================================================
   SLIDER MINIMUM AND MAXIMUM LABELS
   ========================================================= */

.stc-range-labels {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin: 0;
    padding: 0;

    color: #858b94;

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


/* =========================================================
   ADDITIONAL PAUSE TIME
   ========================================================= */

.stc-pause-setting {
    display: flex;

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

    gap: 10px;

    width: 100%;

    margin: 22px 0 0;
    padding: 0;
}


.stc-pause-setting .stc-field-label {
    margin: 0;
}


.stc-page .stc-pause-setting .stc-select {
    width: auto;
    min-width: 134px;
    max-width: 200px;

    padding-right: 28px;

    font-size: 14px;

    cursor: pointer;
}


/* =========================================================
   SPEAKING SPEED COMPARISON
   ========================================================= */

.stc-speed-comparison {
    width: 100%;
    min-width: 0;

    margin: 24px 0 0;
    padding: 20px 0 0;

    border-top: 1px solid var(--stc-border);
}


.stc-comparison-grid {
    display: grid;

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

    gap: 0;

    width: 100%;

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

    overflow: hidden;
}


.stc-comparison-item {
    display: flex;

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

    gap: 12px;

    min-width: 0;

    padding: 11px 12px;

    background: #fff;

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


.stc-comparison-item + .stc-comparison-item {
    border-top: 1px solid #e9edf1;
}


.stc-comparison-item > span {
    min-width: 0;

    color: #444;
}


.stc-comparison-item small {
    color: #79818b;

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


.stc-comparison-item strong {
    min-width: 0;

    color: #333;

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

    font-variant-numeric: tabular-nums;

    text-align: right;

    overflow-wrap: anywhere;
}


/* =========================================================
   TARGET SPEAKING DURATION CALCULATOR
   ========================================================= */

.stc-target-section {
    width: 100%;
    min-width: 0;

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

    border: 1px solid var(--stc-border);
    border-radius: 10px;

    background: #f9fbfd;
}


/* =========================================================
   TARGET SECTION HEADING
   ========================================================= */

.stc-section-heading {
    margin: 0 0 18px;
    padding: 0;
}


.stc-section-heading h2 {
    margin: 0 0 6px;
    padding: 0;

    color: #333;

    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}


.stc-section-heading p {
    margin: 0;
    padding: 0;

    color: #606974;

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


/* =========================================================
   TARGET CALCULATOR WORKSPACE
   ========================================================= */

.stc-target-content {
    display: grid;

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

    align-items: center;

    gap: 20px;

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


.stc-target-controls {
    display: grid;

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

    gap: 12px;

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


.stc-target-field {
    min-width: 0;
}


.stc-page .stc-target-field .stc-number-input {
    min-height: 48px;

    font-size: 17px;
}


/* =========================================================
   TARGET WORD COUNT RESULT
   ========================================================= */

.stc-target-result {
    display: flex;

    flex-direction: column;

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

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

    margin: 0;
    padding: 12px;

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

    background: #eef5ff;

    text-align: center;
}


.stc-target-result-label {
    color: #53657b;

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


.stc-target-result strong {
    display: block;

    max-width: 100%;

    margin: 3px 0;

    color: #1f4f8c;

    font-size: clamp(23px, 2.5vw, 30px);
    font-weight: 700;
    line-height: 1.3;

    font-variant-numeric: tabular-nums;

    overflow-wrap: anywhere;
}


.stc-target-result p {
    margin: 0;
    padding: 0;

    color: #5d6e83;

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


.stc-target-note {
    margin-top: 13px;
}


/* =========================================================
   PRIVACY NOTE
   ========================================================= */

.stc-privacy-note {
    display: flex;

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

    gap: 6px;

    margin: 16px 0 0;
    padding: 0;

    color: #69717b;

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

    text-align: center;
}


.stc-privacy-note i {
    flex: 0 0 auto;

    margin-top: 1px;

    color: var(--stc-green);

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


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

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

    margin: 0;
    padding: 0;

    color: #444;

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


.stc-article > section {
    margin: 0 0 37px;
    padding: 0;
}


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


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

.stc-article h2 {
    margin: 0 0 13px;
    padding: 0;

    color: #333;

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


.stc-article h3 {
    margin: 20px 0 8px;
    padding: 0;

    color: #333;

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


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

.stc-article p {
    margin: 0 0 15px;
    padding: 0;
}


.stc-article strong {
    font-weight: 700;
}


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

.stc-article ul,
.stc-article ol {
    margin: 0 0 18px;
    padding-left: 25px;
}


.stc-article ul {
    list-style-type: disc;
}


.stc-article ol {
    list-style-type: decimal;
}


.stc-article li {
    margin-bottom: 9px;
    padding-left: 3px;
}


.stc-article li:last-child {
    margin-bottom: 0;
}


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

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


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


/* =========================================================
   FORMULA BOXES
   ========================================================= */

.stc-formula-box {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 5px;

    width: 100%;

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

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

    background: #f3f7fd;
    color: #2f465f;

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

    overflow-wrap: anywhere;
}


.stc-formula-box strong {
    font-weight: 700;
}


.stc-formula-box span {
    color: #67778a;

    font-size: 13px;
}


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

.stc-table-wrapper {
    display: block;

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

    margin: 18px 0 16px;
    padding: 0;

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

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   REFERENCE TABLES
   ========================================================= */

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

    margin: 0;
    padding: 0;

    border: 0;
    border-collapse: collapse;

    background: #fff;
    color: #333;

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


.stc-table th,
.stc-table td {
    padding: 11px 13px;

    border-bottom: 1px solid #e4e8ed;

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


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

    font-weight: 700;

    white-space: normal;
}


.stc-table tbody th {
    font-weight: 600;
}


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


.stc-table tbody tr:last-child th,
.stc-table tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   TWO-COLUMN SPEAKING TIME TABLE

   Allows the simpler table to fit smaller screens without
   unnecessary horizontal scrolling.
   ========================================================= */

#words-to-speaking-time .stc-table {
    min-width: 0;
}


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

.stc-faq-section {
    margin-top: 5px;
}


.stc-faq-item {
    margin: 0;
    padding: 14px 0 12px;

    border-bottom: 1px solid var(--stc-border);
}


.stc-faq-item:first-of-type {
    padding-top: 2px;
}


.stc-faq-item:last-child {
    border-bottom: 0;
}


.stc-article .stc-faq-item h3 {
    margin: 0 0 7px;

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


.stc-faq-item p {
    margin: 0;
}


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

.stc-related-grid {
    display: grid;

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

    gap: 12px;

    width: 100%;

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


.stc-page .stc-related-card {
    display: block;

    min-width: 0;

    margin: 0;
    padding: 17px 18px;

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

    background: #fff;
    color: #444;

    text-decoration: none;

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


.stc-page .stc-related-card:hover {
    border-color: #b5cceb;

    background: #f6faff;

    text-decoration: none;
}


.stc-article .stc-related-card h3 {
    margin: 0 0 5px;
    padding: 0;

    color: #1155cc;

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


.stc-article .stc-related-card p {
    margin: 0;
    padding: 0;

    color: #666;

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


/* =========================================================
   RESPONSIVE — BELOW 1280PX

   Stack the text input and speaking time results.

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

@media (max-width: 1279px) {

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

        gap: 25px;
    }


    .stc-page .stc-textarea {
        height: 310px;
    }


    .stc-stats {
        margin-top: 14px;
    }


    .stc-primary-time {
        font-size: 42px;
    }


    .stc-target-content {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 14px;
    }


    .stc-target-controls {
        max-width: 460px;
    }

}


/* =========================================================
   RESPONSIVE — 900PX AND BELOW

   Hide the advertising sidebar.

   Main content takes up the full available width.
   ========================================================= */

@media (max-width: 900px) {

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

        gap: 0;

        max-width: 850px;
    }


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


    .stc-page .stc-textarea {
        height: 300px;
    }


    .stc-target-content {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

}


/* =========================================================
   RESPONSIVE — 680PX AND BELOW
   ========================================================= */

@media (max-width: 680px) {

    .stc-page {
        padding: 95px 14px 38px;
    }


    .stc-page [id] {
        scroll-margin-top: 95px;
    }


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


    .stc-heading h1 {
        font-size: 28px;
    }


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


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

        font-size: 19px;
    }


    .stc-top-workspace {
        gap: 24px;
    }


    .stc-page .stc-textarea {
        height: 270px;
        min-height: 180px;

        padding: 13px;
    }


    /* WORD AND CHARACTER BOXES */

    .stc-stats {
        gap: 10px;

        margin-top: 14px;
    }


    .stc-stat {
        min-height: 68px;
    }


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


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


    /* MAIN RESULT */

    .stc-primary-result {
        min-height: 145px;

        margin-bottom: 22px;
    }


    .stc-primary-time {
        font-size: 36px;
    }


    /* TARGET CALCULATOR */

    .stc-target-section {
        padding: 19px 16px 17px;
    }


    .stc-section-heading h2 {
        font-size: 21px;
    }


    .stc-target-content {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .stc-target-controls {
        max-width: none;
    }


    /* ARTICLE */

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


    .stc-article h2 {
        font-size: 23px;
    }

}


/* =========================================================
   RESPONSIVE — 480PX AND BELOW
   ========================================================= */

@media (max-width: 480px) {

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


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


    /* INPUT MODE BUTTONS */

    .stc-page .stc-mode-button {
        gap: 4px;

        padding: 8px 5px;

        font-size: 12px;
    }


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


    /* TEXTAREA TOOLBAR */

    .stc-input-toolbar {
        gap: 8px;
    }


    .stc-input-actions {
        gap: 6px;
    }


    .stc-page .stc-button {
        min-height: 37px;

        padding: 7px 10px;

        font-size: 13px;
    }


    .stc-page .stc-sample-button {
        min-height: 37px;

        font-size: 13px;
    }


    /* WORD AND CHARACTER STATISTICS */

    .stc-stats {
        gap: 8px;

        margin-top: 12px;
    }


    .stc-stat {
        min-height: 65px;

        padding: 9px 6px;
    }


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


    /* SPEAKING TIME RESULT */

    .stc-primary-time {
        font-size: 33px;
    }


    /* SPEAKING SPEED PRESETS */

    .stc-speed-presets {
        gap: 6px;
    }


    .stc-page .stc-preset-button {
        padding: 8px 4px;
    }


    .stc-preset-button span {
        font-size: 14px;
    }


    .stc-preset-button small {
        font-size: 11px;
    }


    /* PAUSE SETTINGS */

    .stc-pause-setting {
        align-items: stretch;
    }


    .stc-page .stc-pause-setting .stc-select {
        width: 100%;
        max-width: none;
    }


    /* SPEED COMPARISONS */

    .stc-comparison-item {
        gap: 8px;

        padding: 10px;
    }


    .stc-comparison-item strong {
        font-size: 14px;
    }


    /* TABLES */

    .stc-table th,
    .stc-table td {
        padding: 10px 11px;
    }


    /* RELATED TOOLS */

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

}


/* =========================================================
   RESPONSIVE — VERY SMALL MOBILE SCREENS
   ========================================================= */

@media (max-width: 360px) {

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


    .stc-page .stc-mode-button {
        font-size: 11px;
    }


    .stc-mode-button i {
        font-size: 14px;
    }


    .stc-page .stc-textarea {
        height: 245px;
    }


    .stc-primary-time {
        font-size: 30px;
    }


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


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


    .stc-target-section {
        padding: 16px 12px;
    }


    .stc-target-controls {
        gap: 8px;
    }


    .stc-page .stc-wpm-input {
        width: 72px;
    }


    .stc-comparison-item small {
        font-size: 11px;
    }

}


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

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

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

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}


/* =========================================================
   END OF SPEAKING TIME CALCULATOR CSS
   ========================================================= */
