/* =========================================================
   143TOOL - Image Compressor Styles
   Version: 1.0.0
   ========================================================= */

.ic-card {
    padding: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------- DROPZONE ---------- */
.ic-dropzone {
    margin-bottom: 20px;
}

.ic-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--surface-2);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all .2s ease;
    cursor: pointer;
}

.ic-dropzone-inner:hover,
.ic-dropzone-inner.dragover {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 5%, var(--surface-2));
    transform: scale(1.005);
}

.ic-dropzone-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 12px;
    opacity: .8;
}

.ic-dropzone-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.ic-dropzone-sub {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.ic-dropzone-btn {
    display: inline-block;
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all .15s ease;
    box-shadow: 0 6px 20px rgba(233, 30, 99, .25);
}

.ic-dropzone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(233, 30, 99, .35);
}

.ic-dropzone-note {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.ic-dropzone-note strong {
    color: var(--primary);
}

/* ---------- CONTROLS ---------- */
.ic-controls {
    display: grid;
    gap: 18px;
    padding: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.ic-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ic-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ic-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-muted);
}

.ic-quality-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ic-quality-val strong {
    color: var(--primary);
    font-size: 16px;
}

/* Range slider */
.ic-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 999px;
    outline: none;
}

.ic-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    cursor: pointer;
    border: 3px solid var(--surface);
    box-shadow: 0 2px 8px rgba(233, 30, 99, .35);
    transition: transform .15s ease;
}

.ic-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.ic-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    cursor: pointer;
    border: 3px solid var(--surface);
}

.ic-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Format pills */
.ic-format-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.ic-format {
    padding: 10px 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
    text-align: center;
}

.ic-format small {
    display: block;
    font-weight: 500;
    font-size: 10px;
    opacity: .7;
    margin-top: 2px;
}

.ic-format:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 5%, var(--surface));
}

.ic-format.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(233, 30, 99, .22);
}

.ic-format.active small {
    opacity: .9;
}

/* Size lock */
.ic-size-lock {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
}

.ic-size-lock:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ic-size-lock.active {
    background: color-mix(in srgb, var(--success) 12%, transparent);
    border-color: color-mix(in srgb, var(--success) 35%, var(--border));
    color: var(--success);
}

/* Size grid */
.ic-size-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ic-size-field label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.ic-size-input-wrap {
    position: relative;
}

.ic-size-input-wrap input {
    width: 100%;
    padding: 11px 42px 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--body-bg);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ic-size-input-wrap input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

.ic-size-input-wrap input::-webkit-outer-spin-button,
.ic-size-input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ic-size-input-wrap input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.ic-size-unit {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}

/* Size presets */
.ic-size-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ic-size-preset {
    padding: 7px 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
}

.ic-size-preset:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.ic-size-preset.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border-color: transparent;
}

.ic-size-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Actions */
.ic-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.ic-actions .btn {
    flex: 1 1 auto;
    min-width: 130px;
}

.ic-compress-btn {
    min-height: 48px;
    font-weight: 800;
    font-size: 15px;
}

/* Status */
.ic-status {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
    word-break: break-word;
}

.ic-status-success {
    background: color-mix(in srgb, var(--success) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--success) 30%, var(--border));
    color: var(--success);
}

.ic-status-error {
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--border));
    color: var(--danger);
}

.ic-status-info {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
    color: var(--primary);
}

/* ---------- RESULTS ---------- */
.ic-results {
    padding: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.ic-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ic-results-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.ic-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

/* Result card */
.ic-card-item {
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all .18s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ic-card-item:hover {
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

/* Image preview */
.ic-card-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--body-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.ic-card-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.ic-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, .35);
}

.ic-card-badge.ic-badge-neg {
    background: linear-gradient(135deg, var(--warning, #f59e0b), #d97706);
}

/* File info */
.ic-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ic-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ic-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ic-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.ic-card-stats .ic-stat-saved {
    color: var(--success);
    font-weight: 700;
}

.ic-card-stats .ic-stat-saved.ic-stat-neg {
    color: var(--warning, #f59e0b);
}

/* Card actions */
.ic-card-actions {
    display: flex;
    gap: 6px;
}

.ic-card-btn {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
    text-align: center;
}

.ic-card-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.ic-card-btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

.ic-card-btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
}

/* =========================================================
   v1.1.0 — Uploaded images preview
   ========================================================= */

.ic-uploads {
    margin-bottom: 18px;
    padding: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    animation: icFade .3s ease;
}

.ic-uploads-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.ic-uploads-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-muted);
}

.ic-uploads-title span {
    color: var(--primary);
    font-size: 14px;
}

.ic-link-btn {
    padding: 6px 12px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s ease;
}

.ic-link-btn:hover {
    background: var(--primary);
    color: #fff;
}

.ic-uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.ic-upload-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all .15s ease;
    animation: icFade .3s ease;
}

.ic-upload-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(233, 30, 99, .1);
}

.ic-upload-thumb {
    width: 100%;
    aspect-ratio: 1;
    background: var(--body-bg);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ic-upload-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.ic-upload-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ic-upload-size {
    font-size: 10px;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 600;
}

.ic-upload-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    transition: all .15s ease;
    z-index: 2;
    font-family: inherit;
    opacity: 0;
}

.ic-upload-item:hover .ic-upload-remove {
    opacity: 1;
}

.ic-upload-remove:hover {
    background: var(--danger);
    transform: scale(1.1);
}

@keyframes icFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   v1.1.0 — Mode toggle + target size
   ========================================================= */

.ic-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    background: var(--body-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.ic-mode-btn {
    padding: 11px 12px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .18s ease;
    font-family: inherit;
}

.ic-mode-btn:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.ic-mode-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    box-shadow: 0 4px 12px rgba(233, 30, 99, .22);
}

.ic-mode-panel {
    display: none;
}

.ic-mode-panel.active {
    display: block;
    animation: icFade .25s ease;
}

/* Target size grid */
.ic-target-grid {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 8px;
    margin-bottom: 10px;
}

.ic-target-input-wrap input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--body-bg);
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ic-target-input-wrap input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

.ic-target-input-wrap input::-webkit-outer-spin-button,
.ic-target-input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ic-target-input-wrap input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.ic-target-unit {
    padding: 13px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--body-bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
}

.ic-target-unit:focus {
    border-color: var(--primary);
    outline: none;
}

.ic-target-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.ic-target-preset {
    padding: 7px 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
}

.ic-target-preset:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.ic-target-preset.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border-color: transparent;
}

@media (max-width: 620px) {
    .ic-uploads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ic-target-grid {
        grid-template-columns: 1fr 90px;
    }
    .ic-mode-toggle {
        grid-template-columns: 1fr;
    }
    .ic-upload-remove {
        opacity: 1;
    }
}

/* =========================================================
   v1.2.0 — Advanced optimization
   ========================================================= */

.ic-advanced {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 14px;
}

.ic-advanced-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ic-advanced-toggle {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    transition: all .15s ease;
    font-family: inherit;
}

.ic-advanced-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ic-advanced-toggle[data-open="false"] {
    transform: rotate(-90deg);
}

.ic-advanced-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    background: var(--body-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    animation: icFade .25s ease;
}

.ic-advanced-body[hidden] {
    display: none;
}

.ic-adv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ic-adv-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    min-width: 140px;
}

.ic-adv-help {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 15%, transparent);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    cursor: help;
    flex-shrink: 0;
}

.ic-adv-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 150px;
    justify-content: flex-end;
}

.ic-adv-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 50px;
    text-align: right;
}

.ic-adv-value strong {
    color: var(--primary);
    font-size: 14px;
}

.ic-range-sm {
    max-width: 180px;
}

.ic-adv-select {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.ic-adv-select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Toggle switch */
.ic-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

.ic-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ic-switch-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 999px;
    transition: background .2s ease;
}

.ic-switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}

.ic-switch input:checked + .ic-switch-slider {
    background: var(--primary);
}

.ic-switch input:checked + .ic-switch-slider::before {
    transform: translateX(20px);
}

/* Result card: shows quality + downscale info */
.ic-card-stats .ic-stat-quality {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 800;
    font-size: 10px;
}

.ic-card-stats .ic-stat-target {
    font-size: 10px;
    font-weight: 700;
    color: var(--success);
}

@media (max-width: 620px) {
    .ic-adv-row {
        flex-direction: column;
        align-items: stretch;
    }
    .ic-adv-control {
        justify-content: flex-start;
        min-width: 0;
    }
    .ic-range-sm {
        flex: 1;
        max-width: none;
    }
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 620px) {
    .ic-card {
        padding: 16px;
    }
    .ic-dropzone-inner {
        padding: 30px 14px;
    }
    .ic-dropzone-icon {
        font-size: 40px;
    }
    .ic-dropzone-title {
        font-size: 17px;
    }
    .ic-format-pills {
        grid-template-columns: repeat(2, 1fr);
    }
    .ic-size-grid {
        grid-template-columns: 1fr;
    }
    .ic-actions .btn {
        flex-basis: 100%;
        min-width: 0;
    }
    .ic-results-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SEO ARTICLE / ADSENSE CONTENT
   ========================================================= */

.tool-article {
    max-width: 800px;
    margin: 60px auto 40px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
}

.tool-article h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin: 36px 0 14px;
    line-height: 1.3;
    letter-spacing: -.4px;
}

.tool-article h2:first-child {
    margin-top: 0;
}

.tool-article h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 10px;
    line-height: 1.4;
}

.tool-article p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.tool-article ul,
.tool-article ol {
    padding-left: 22px;
    margin: 0 0 18px;
}

.tool-article li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tool-article li ul {
    margin: 8px 0 8px 0;
    padding-left: 20px;
}

.tool-article li li {
    font-size: 15px;
    margin-bottom: 6px;
}

.tool-article strong {
    color: var(--text);
    font-weight: 700;
}

.tool-article a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease;
}

.tool-article a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

@media (max-width: 620px) {
    .tool-article {
        padding: 20px 0;
        margin: 40px auto 20px;
    }
    .tool-article h2 {
        font-size: 20px;
        margin: 28px 0 12px;
    }
    .tool-article h3 {
        font-size: 16px;
        margin: 20px 0 8px;
    }
    .tool-article p,
    .tool-article li {
        font-size: 15px;
        line-height: 1.7;
    }
}