/**
 * Maine Paycheck Calculator 2026
 * File: /public_html/tools/maine-paycheck-calculator/style.css
 * All selectors scoped to .usk-tool
 * Mobile-first responsive design
 */

/* ── SCREEN-READER ONLY (H1 SEO) ─────────────────────────────────────────── */
.usajobskit-page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── ROOT / WRAPPER ──────────────────────────────────────────────────────── */
.usk-tool {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #0F172A;
    background: transparent;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 48px;
    box-sizing: border-box;
}

.usk-tool *,
.usk-tool *::before,
.usk-tool *::after {
    box-sizing: inherit;
}

/* ── SECTION TITLE ───────────────────────────────────────────────────────── */
.usk-tool .usk-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1D4ED8;
    display: inline-block;
}

/* ── LINKS ───────────────────────────────────────────────────────────────── */
.usk-tool .usk-link {
    color: #1D4ED8;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.usk-tool .usk-link:hover {
    color: #1E40AF;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1D4ED8 60%, #1E40AF 100%);
    border-radius: 16px;
    padding: 40px 28px 36px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.usk-tool .usk-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.usk-tool .usk-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.usk-tool .usk-hero-inner {
    position: relative;
    z-index: 1;
}

.usk-tool .usk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.usk-tool .usk-badge-dot {
    width: 7px;
    height: 7px;
    background: #10B981;
    border-radius: 50%;
    animation: usk-pulse 2s infinite;
}

@keyframes usk-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.3); }
}

.usk-tool .usk-hero-headline {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 14px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.usk-tool .usk-hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 28px;
    max-width: 620px;
    line-height: 1.7;
}

/* Hero stat pills */
.usk-tool .usk-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.usk-tool .usk-stat-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 130px;
    flex: 1 1 130px;
}

.usk-tool .usk-stat-pill strong {
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.usk-tool .usk-stat-pill span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   KEY FACTS
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-key-facts {
    margin-bottom: 40px;
}

.usk-tool .usk-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.usk-tool .usk-fact-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.usk-tool .usk-fact-card:hover {
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.1);
    transform: translateY(-2px);
}

.usk-tool .usk-fact-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
    line-height: 1;
}

.usk-tool .usk-fact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.usk-tool .usk-fact-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1D4ED8;
    margin-bottom: 2px;
}

.usk-tool .usk-fact-note {
    font-size: 0.72rem;
    color: #9CA3AF;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUDIENCE CARDS
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-audience {
    margin-bottom: 40px;
}

.usk-tool .usk-audience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.usk-tool .usk-audience-card {
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-left: 4px solid #1D4ED8;
    border-radius: 0 10px 10px 0;
    padding: 18px 18px 18px 20px;
}

.usk-tool .usk-audience-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.usk-tool .usk-audience-card strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

.usk-tool .usk-audience-card p {
    font-size: 0.875rem;
    color: #4B5563;
    margin: 0;
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CALCULATOR FORM
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-calculator-section {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 28px 20px;
    margin-bottom: 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.usk-tool .usk-calc-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #F1F5F9;
}

.usk-tool .usk-calc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 4px;
}

.usk-tool .usk-calc-subtitle {
    font-size: 0.85rem;
    color: #6B7280;
    margin: 0;
}

.usk-tool .usk-required-mark {
    color: #DC2626;
    font-weight: 700;
    margin-left: 2px;
}

/* Form sections */
.usk-tool .usk-form-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F1F5F9;
}

.usk-tool .usk-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.usk-tool .usk-form-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1D4ED8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 18px;
}

.usk-tool .usk-form-section-note {
    font-size: 0.82rem;
    color: #6B7280;
    margin: -10px 0 18px;
    line-height: 1.55;
}

.usk-tool .usk-optional-tag {
    font-size: 0.7rem;
    font-weight: 500;
    background: #F1F5F9;
    color: #6B7280;
    border-radius: 4px;
    padding: 2px 7px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
    margin-left: 8px;
}

/* Form rows */
.usk-tool .usk-form-row {
    margin-bottom: 18px;
}

.usk-tool .usk-form-row:last-child {
    margin-bottom: 0;
}

.usk-tool .usk-form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.usk-tool .usk-form-row-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Field group */
.usk-tool .usk-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.usk-tool .usk-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
    display: block;
}

/* Inputs */
.usk-tool .usk-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 1rem;
    font-family: inherit;
    color: #0F172A;
    background: #F8FAFC;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.usk-tool .usk-input:focus {
    border-color: #1D4ED8;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.usk-tool .usk-input:hover:not(:focus) {
    border-color: #CBD5E1;
}

.usk-tool .usk-input.usk-input-error {
    border-color: #DC2626 !important;
    background: #FFF5F5;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Remove number input spinners */
.usk-tool .usk-input[type="number"]::-webkit-inner-spin-button,
.usk-tool .usk-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.usk-tool .usk-input[type="number"] {
    -moz-appearance: textfield;
}

/* Select */
.usk-tool .usk-select {
    width: 100% !important;
    height: 50px !important;
    padding: 0 40px 0 16px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    color: #0F172A !important;
    background: #F8FAFC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 10px !important;
    outline: none !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.usk-tool .usk-select:focus {
    border-color: #1D4ED8 !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12) !important;
}

.usk-tool .usk-select:hover:not(:focus) {
    border-color: #CBD5E1 !important;
}

.usk-tool .usk-select.usk-input-error {
    border-color: #DC2626 !important;
    background-color: #FFF5F5 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Currency input with icon */
.usk-tool .usk-input-with-icon .usk-input-wrap {
    position: relative;
}

.usk-tool .usk-input-icon {
    position: absolute;
    left: 16px !important;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    font-weight: 600;
    color: #6B7280;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

.usk-tool .usk-input-with-icon input {
    padding-left: 36px !important;
}

/* Hints and errors */
.usk-tool .usk-field-hint {
    font-size: 0.775rem;
    color: #9CA3AF;
    line-height: 1.4;
}

.usk-tool .usk-field-error {
    font-size: 0.78rem;
    color: #DC2626;
    font-weight: 500;
    display: none;
    line-height: 1.4;
}

/* Global error */
.usk-tool .usk-global-error,
#maine-global-error {
    background: #FFF5F5;
    border: 1.5px solid #DC2626;
    border-radius: 10px;
    color: #DC2626;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 18px;
    margin-bottom: 20px;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.usk-tool .usk-form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.usk-tool .usk-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    padding: 0 28px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #FFFFFF;
    background: #1D4ED8;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
    letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
}

.usk-tool .usk-btn-primary:hover:not(:disabled) {
    background: #1E40AF;
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
    transform: translateY(-1px);
}

.usk-tool .usk-btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3);
}

.usk-tool .usk-btn-primary:disabled,
.usk-tool .usk-btn-primary.usk-btn-loading {
    background: #93C5FD;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.usk-tool .usk-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0 24px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    color: #374151;
    background: #F1F5F9;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.usk-tool .usk-btn-secondary:hover {
    background: #E5E7EB;
    border-color: #CBD5E1;
}

/* Spinner */
.usk-tool .usk-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: usk-spin 0.7s linear infinite;
}

@keyframes usk-spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESULTS WRAPPER
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-results-wrapper {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.usk-tool .usk-results-wrapper.usk-results-visible {
    opacity: 1;
    transform: translateY(0);
}

.usk-tool .usk-results-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.usk-tool .usk-results-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.usk-tool .usk-results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.usk-tool .usk-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    color: #1D4ED8;
    background: #EFF6FF;
    border: 1.5px solid #BFDBFE;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.usk-tool .usk-action-btn:hover {
    background: #DBEAFE;
    border-color: #93C5FD;
    color: #1E40AF;
}

.usk-tool .usk-action-btn svg {
    flex-shrink: 0;
}

/* ── RESULT HERO ─────────────────────────────────────────────────────────── */
.usk-tool .usk-result-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    border-radius: 16px;
    padding: 28px 22px;
    margin-bottom: 24px;
    color: #FFFFFF;
}

.usk-tool .usk-result-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.usk-tool .usk-result-primary {
    text-align: center;
}

.usk-tool .usk-result-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
}

.usk-tool .usk-result-amount {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
    font-weight: 800;
    color: #10B981;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.usk-tool .usk-result-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.usk-tool .usk-result-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.usk-tool .usk-result-secondary-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.usk-tool .usk-res-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.usk-tool .usk-res-val {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
}

/* ── BREAKDOWN GRID ──────────────────────────────────────────────────────── */
.usk-tool .usk-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.usk-tool .usk-breakdown-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.usk-tool .usk-breakdown-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
}

.usk-tool .usk-breakdown-accent {
    width: 5px;
    flex-shrink: 0;
}

.usk-tool .usk-breakdown-inner {
    flex: 1;
    padding: 14px 16px;
}

.usk-tool .usk-breakdown-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.usk-tool .usk-breakdown-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
    margin-bottom: 4px;
}

.usk-tool .usk-breakdown-net .usk-breakdown-amount {
    color: #10B981;
}

.usk-tool .usk-breakdown-tax .usk-breakdown-amount {
    color: #DC2626;
}

.usk-tool .usk-breakdown-desc {
    font-size: 0.8rem;
    color: #9CA3AF;
    line-height: 1.45;
    margin-bottom: 6px;
}

.usk-tool .usk-breakdown-annual {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6B7280;
    background: #F8FAFC;
    border-radius: 5px;
    padding: 3px 8px;
    display: inline-block;
}

.usk-tool .usk-breakdown-sub {
    margin-top: 10px;
    border-top: 1px dashed #E5E7EB;
    padding-top: 8px;
}

.usk-tool .usk-breakdown-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #6B7280;
    padding: 2px 0;
}

/* ── CHART AREA ──────────────────────────────────────────────────────────── */
.usk-tool .usk-chart-area {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 22px 18px;
    margin-bottom: 28px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.usk-tool .usk-chart-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 18px;
}

.usk-tool .usk-chart-container {
    max-width: 320px;
    margin: 0 auto 20px;
}

.usk-tool .usk-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.usk-tool .usk-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #374151;
}

.usk-tool .usk-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.usk-tool .usk-legend-label {
    flex: 1;
    font-weight: 500;
}

.usk-tool .usk-legend-val {
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
}

/* ── COMPARISON TABLE ────────────────────────────────────────────────────── */
.usk-tool .usk-comparison-table-wrap {
    margin-bottom: 28px;
}

.usk-tool .usk-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.usk-tool .usk-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 420px;
}

.usk-tool .usk-comparison-table th {
    background: #0F172A;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    text-align: right;
    white-space: nowrap;
}

.usk-tool .usk-comparison-table th:first-child {
    text-align: left;
}

.usk-tool .usk-comparison-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #F1F5F9;
    color: #374151;
    text-align: right;
    white-space: nowrap;
}

.usk-tool .usk-comparison-table td:first-child {
    text-align: left;
    color: #0F172A;
    font-weight: 500;
}

.usk-tool .usk-comparison-table tbody tr:nth-child(even) td {
    background: #F8FAFC;
}

.usk-tool .usk-comparison-table tbody tr:hover td {
    background: #EFF6FF;
}

.usk-tool .usk-comparison-table .usk-table-highlight td {
    background: #F0FDF4 !important;
    color: #10B981;
    font-weight: 700;
    font-size: 0.95rem;
}

.usk-tool .usk-comparison-table .usk-table-highlight td:first-child {
    color: #059669;
}

/* Info table (for Key Information section) */
.usk-tool .usk-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 340px;
}

.usk-tool .usk-info-table th {
    background: #1D4ED8;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    text-align: left;
}

.usk-tool .usk-info-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #E5E7EB;
    color: #374151;
    vertical-align: top;
}

.usk-tool .usk-info-table tbody tr:nth-child(even) td {
    background: #F8FAFC;
}

.usk-tool .usk-table-note {
    font-size: 0.78rem;
    color: #9CA3AF;
    margin: 8px 0 0;
    font-style: italic;
    line-height: 1.5;
}

/* ── INSIGHTS ────────────────────────────────────────────────────────────── */
.usk-tool .usk-insights-grid {
    margin-bottom: 28px;
}

.usk-tool .usk-insights-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.usk-tool .usk-insight-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.usk-tool .usk-insight-positive {
    background: #F0FDF4;
    border-color: #A7F3D0;
}

.usk-tool .usk-insight-info {
    background: #EFF6FF;
    border-color: #BFDBFE;
}

.usk-tool .usk-insight-warning {
    background: #FFFBEB;
    border-color: #FDE68A;
}

.usk-tool .usk-insight-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.usk-tool .usk-insight-body strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

.usk-tool .usk-insight-body p {
    font-size: 0.845rem;
    color: #4B5563;
    margin: 0;
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS / STEPS
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-how-it-works {
    margin-bottom: 40px;
}

.usk-tool .usk-how-it-works > p {
    font-size: 0.95rem;
    color: #4B5563;
    margin: 0 0 22px;
    line-height: 1.7;
}

.usk-tool .usk-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.usk-tool .usk-step-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    padding-left: 60px;
}

.usk-tool .usk-step-num {
    position: absolute;
    left: 16px;
    top: 18px;
    width: 30px;
    height: 30px;
    background: #1D4ED8;
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.usk-tool .usk-step-card strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0F172A;
}

.usk-tool .usk-step-card p {
    font-size: 0.845rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   KEY INFORMATION
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-key-info {
    margin-bottom: 40px;
}

.usk-tool .usk-info-blocks {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 22px;
}

.usk-tool .usk-info-block {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.usk-tool .usk-info-block h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 12px;
    border-left: 4px solid #1D4ED8;
    padding-left: 12px;
}

.usk-tool .usk-info-block p {
    font-size: 0.875rem;
    color: #4B5563;
    margin: 0 0 12px;
    line-height: 1.65;
}

.usk-tool .usk-info-block p:last-child {
    margin-bottom: 0;
}

.usk-tool .usk-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usk-tool .usk-info-list li {
    font-size: 0.875rem;
    color: #4B5563;
    padding: 6px 0 6px 22px;
    border-bottom: 1px solid #F1F5F9;
    line-height: 1.55;
    position: relative;
}

.usk-tool .usk-info-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #1D4ED8;
    font-weight: 700;
    font-size: 0.78rem;
    top: 7px;
}

.usk-tool .usk-info-list li:last-child {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXAMPLES
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-examples {
    margin-bottom: 40px;
}

.usk-tool .usk-examples > p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0 0 20px;
    line-height: 1.65;
}

.usk-tool .usk-examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.usk-tool .usk-example-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.usk-tool .usk-example-label {
    background: linear-gradient(90deg, #1D4ED8, #1E40AF);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 12px 18px;
    letter-spacing: 0.02em;
}

.usk-tool .usk-example-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usk-tool .usk-example-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.845rem;
}

.usk-tool .usk-example-list li:last-child {
    border-bottom: none;
}

.usk-tool .usk-example-list li span {
    color: #6B7280;
    font-weight: 500;
    flex: 1;
}

.usk-tool .usk-example-list li strong {
    color: #0F172A;
    font-weight: 700;
    text-align: right;
}

.usk-tool .usk-example-result {
    background: #F0FDF4;
}

.usk-tool .usk-example-result span {
    color: #059669 !important;
    font-weight: 700 !important;
}

.usk-tool .usk-example-result strong {
    color: #10B981 !important;
    font-size: 1rem !important;
}

.usk-tool .usk-examples-note {
    font-size: 0.8rem;
    color: #9CA3AF;
    margin: 0;
    font-style: italic;
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-faq {
    margin-bottom: 40px;
}

.usk-tool .usk-faq-list {
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    overflow: hidden;
}

.usk-tool .usk-faq-item {
    border-bottom: 1px solid #E5E7EB;
}

.usk-tool .usk-faq-item:last-child {
    border-bottom: none;
}

.usk-tool .usk-faq-question {
    width: 100%;
    background: #FFFFFF;
    border: none;
    padding: 18px 48px 18px 20px;
    text-align: left;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0F172A;
    cursor: pointer;
    position: relative;
    line-height: 1.4;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.usk-tool .usk-faq-question:hover {
    background: #F8FAFC;
}

.usk-tool .usk-faq-question::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 300;
    color: #1D4ED8;
    line-height: 1;
    transition: transform 0.25s;
}

.usk-tool .usk-faq-question[aria-expanded="true"] {
    background: #EFF6FF;
    color: #1D4ED8;
}

.usk-tool .usk-faq-question[aria-expanded="true"]::after {
    content: '−';
}

.usk-tool .usk-faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    background: #FAFBFC;
}

.usk-tool .usk-faq-answer p {
    font-size: 0.875rem;
    color: #4B5563;
    line-height: 1.7;
    margin: 0;
    padding: 16px 20px 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DATA SOURCES
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-sources {
    margin-bottom: 32px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 22px 20px;
}

.usk-tool .usk-sources p {
    font-size: 0.875rem;
    color: #4B5563;
    margin: 0 0 14px;
    line-height: 1.65;
}

.usk-tool .usk-sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usk-tool .usk-sources-list li {
    font-size: 0.82rem;
    padding: 7px 0 7px 18px;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
    line-height: 1.5;
}

.usk-tool .usk-sources-list li::before {
    content: '📎';
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 0.75rem;
}

.usk-tool .usk-sources-list li:last-child {
    border-bottom: none;
}

.usk-tool .usk-sources-list a {
    color: #1D4ED8;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.usk-tool .usk-sources-list a:hover {
    color: #1E40AF;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRIVACY
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-privacy {
    margin-bottom: 28px;
}

.usk-tool .usk-privacy-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #F0FDF4;
    border: 1px solid #A7F3D0;
    border-radius: 12px;
    padding: 18px 20px;
}

.usk-tool .usk-privacy-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.usk-tool .usk-privacy-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #065F46;
    margin-bottom: 4px;
}

.usk-tool .usk-privacy-text p {
    font-size: 0.82rem;
    color: #047857;
    margin: 0;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRUST / DEVELOPER SECTION
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-trust {
    margin-bottom: 28px;
}

.usk-tool .usk-trust-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-top: 4px solid #1D4ED8;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.usk-tool .usk-trust-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #BFDBFE;
    flex-shrink: 0;
    background: #EFF6FF;
}

.usk-tool .usk-trust-info {
    flex: 1;
    min-width: 0;
}

.usk-tool .usk-trust-name {
    font-size: 1rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}

.usk-tool .usk-trust-link {
    color: #1D4ED8;
    text-decoration: none;
    border-bottom: 2px solid #BFDBFE;
    transition: border-color 0.2s, color 0.2s;
}

.usk-tool .usk-trust-link:hover {
    color: #1E40AF;
    border-color: #1E40AF;
}

.usk-tool .usk-trust-role {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.usk-tool .usk-trust-statement {
    font-size: 0.865rem;
    color: #4B5563;
    line-height: 1.65;
    margin: 0 0 10px;
}

.usk-tool .usk-trust-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.775rem;
    color: #9CA3AF;
    font-weight: 500;
}

.usk-tool .usk-trust-sep {
    color: #CBD5E1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DISCLAIMER
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-disclaimer {
    margin-bottom: 40px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 16px 18px;
}

.usk-tool .usk-disclaimer p {
    font-size: 0.8rem;
    color: #92400E;
    margin: 0;
    line-height: 1.65;
}

.usk-tool .usk-disclaimer strong {
    color: #78350F;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RELATED TOOLS
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-related {
    margin-bottom: 40px;
}

.usk-tool .usk-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.usk-tool .usk-related-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.usk-tool .usk-related-card:hover {
    border-color: #1D4ED8;
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

.usk-tool .usk-related-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
    line-height: 1;
}

.usk-tool .usk-related-card strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
}

.usk-tool .usk-related-card span {
    font-size: 0.775rem;
    color: #9CA3AF;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING SPINNER (page-level fallback)
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.usk-tool .usk-spinner-lg {
    width: 40px;
    height: 40px;
    border: 4px solid #E5E7EB;
    border-top-color: #1D4ED8;
    border-radius: 50%;
    animation: usk-spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (600px+)
═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 600px) {

    .usk-tool .usk-calculator-section {
        padding: 32px 30px;
    }

    .usk-tool .usk-form-row-2 {
        grid-template-columns: 1fr 1fr;
    }

    .usk-tool .usk-form-row-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .usk-tool .usk-form-actions {
        flex-direction: row;
        align-items: center;
    }

    .usk-tool .usk-btn-primary {
        flex: 1;
    }

    .usk-tool .usk-btn-secondary {
        width: auto;
        min-width: 120px;
    }

    .usk-tool .usk-facts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .usk-tool .usk-audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usk-tool .usk-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usk-tool .usk-examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usk-tool .usk-breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usk-tool .usk-result-hero-inner {
        flex-direction: row;
        align-items: center;
        gap: 28px;
    }

    .usk-tool .usk-result-primary {
        flex: 0 0 auto;
        text-align: left;
        min-width: 200px;
    }

    .usk-tool .usk-result-secondary-grid {
        flex: 1;
        grid-template-columns: repeat(2, 1fr);
    }

    .usk-tool .usk-chart-container {
        max-width: 260px;
    }

    .usk-tool .usk-chart-area {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .usk-tool .usk-chart-legend {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .usk-tool .usk-results-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (900px+)
═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {

    .usk-tool {
        padding: 0 24px 60px;
    }

    .usk-tool .usk-hero {
        padding: 52px 44px 48px;
    }

    .usk-tool .usk-facts-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .usk-tool .usk-audience-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .usk-tool .usk-steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .usk-tool .usk-examples-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .usk-tool .usk-breakdown-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .usk-tool .usk-related-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .usk-tool .usk-calculator-section {
        padding: 36px 40px;
    }

    .usk-tool .usk-chart-area {
        flex-direction: row;
        align-items: flex-start;
        gap: 28px;
    }

    .usk-tool .usk-chart-container {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .usk-tool .usk-chart-legend {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
        grid-template-columns: unset;
    }

    .usk-tool .usk-result-secondary-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
═══════════════════════════════════════════════════════════════════════════ */
@media print {

    .usk-tool .usk-hero {
        background: #0F172A !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .usk-tool .usk-calculator-section,
    .usk-tool .usk-audience,
    .usk-tool .usk-form-actions,
    .usk-tool .usk-results-actions,
    .usk-tool .usk-related,
    .usk-tool .usk-faq {
        display: none !important;
    }

    .usk-tool .usk-results-wrapper {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        page-break-inside: avoid;
    }

    .usk-tool .usk-result-hero {
        background: #0F172A !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .usk-tool .usk-breakdown-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .usk-tool .usk-chart-area {
        display: none !important;
    }

    .usk-tool .usk-comparison-table-wrap {
        page-break-inside: avoid;
    }

    .usk-tool .usk-trust-card,
    .usk-tool .usk-sources,
    .usk-tool .usk-disclaimer {
        page-break-inside: avoid;
    }

    body {
        font-size: 12px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY — FOCUS VISIBLE
═══════════════════════════════════════════════════════════════════════════ */
.usk-tool .usk-btn-primary:focus-visible,
.usk-tool .usk-btn-secondary:focus-visible,
.usk-tool .usk-action-btn:focus-visible,
.usk-tool .usk-faq-question:focus-visible,
.usk-tool .usk-related-card:focus-visible {
    outline: 3px solid #1D4ED8;
    outline-offset: 3px;
}

.usk-tool .usk-input:focus-visible,
.usk-tool .usk-select:focus-visible {
    outline: none;
    border-color: #1D4ED8 !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .usk-tool *,
    .usk-tool *::before,
    .usk-tool *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
