/* Tax refund calculator — form/ranges/tables aligned with mortgage-calculator (mc-*); result accent colors unchanged */
.trc-widget {
    margin: 20px 0 28px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    color: #0f172a;
}

.trc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 991px) {
    .trc-grid {
        grid-template-columns: 1fr;
    }
}

.trc-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e5ebf3;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.trc-field {
    margin-bottom: 16px;
}

.trc-field-currency .trc-title {
    margin-bottom: 10px;
}

.trc-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.trc-currency-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trc-currency-btn {
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.trc-currency-btn:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.trc-currency-btn.is-active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

.trc-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trc-input-wrap:focus-within {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.trc-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 400;
    color: #0f172a;
    outline: none;
}

.trc-suffix {
    padding-right: 12px;
    font-size: 13px;
    color: #64748b;
    user-select: none;
    flex-shrink: 0;
}

.trc-range {
    width: 100%;
    margin-top: 8px;
    accent-color: #2563eb;
}

.trc-note {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
}

.trc-note-range {
    margin-top: 4px;
}

.trc-hint-tax {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.trc-field-down .trc-down-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.trc-down-grid > div:first-child {
    flex: 1;
    min-width: 0;
}

.trc-down-badge-wrap {
    padding-bottom: 10px;
}

.trc-down-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid #bfdbfe;
}

.trc-quick-picks {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trc-quick-picks button {
    border: 1px solid #dbe2ea;
    background: #f8fafc;
    color: #334155;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trc-quick-picks button:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #1e3a8a;
}

.trc-quick-picks button.is-active {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.trc-result {
    position: sticky;
    top: 16px;
}

@media (max-width: 991px) {
    .trc-result {
        position: static;
    }
}

.trc-result-hero {
    text-align: center;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px dashed #dce4ef;
}

.trc-result-kicker {
    margin: 0 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.trc-result-main {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.02em;
}

.trc-result-sub {
    margin-top: 10px;
    font-size: 14px;
    color: #94a3b8;
}

.trc-strike {
    text-decoration: line-through;
    margin-right: 6px;
}

.trc-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.trc-stat-label {
    margin: 0 0 4px;
    font-size: 13px;
    color: #64748b;
}

.trc-stat-value {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.trc-stat-emerald {
    color: #059669;
}

.trc-stat-orange {
    color: #ea580c;
}

.trc-stat-dark {
    color: #0f172a;
}

.trc-stat-note {
    margin: 6px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.trc-card.trc-result .trc-schedule-toggle {
    margin-top: 16px;
}

.trc-schedule-toggle {
    display: block;
    width: 100%;
    border: 1px solid #dbe2ea;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.trc-schedule-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.trc-schedule-toggle.is-active {
    background: #e0ebff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.trc-chart-panel {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e5ebf3;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.trc-chart-head {
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trc-chart-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.trc-widget .trc-preliminary-note {
    margin: 0;
    padding: 10px 12px 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
    background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
}

.trc-table-wrap {
    overflow-x: auto;
    border-top: none;
}

.trc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background: #fff;
}

.trc-table th,
.trc-table td {
    padding: 10px 9px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    white-space: nowrap;
    vertical-align: middle;
}

.trc-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
    text-align: left;
}

.trc-table th.trc-num,
.trc-table th.trc-th-emerald {
    text-align: right;
}

.trc-table th.trc-num.trc-num-center,
.trc-table td.trc-num.trc-num-center {
    text-align: center;
}

.trc-table th.trc-th-year {
    text-align: left;
}

.trc-table td.trc-num {
    text-align: right;
}

.trc-table td.trc-td-year {
    text-align: left;
    font-weight: 700;
    color: #0f172a;
}

.trc-table tbody tr:hover {
    background: #f8fbff;
}

.trc-th-emerald {
    color: #059669;
}

.trc-blue {
    color: #2563eb;
    font-weight: 600;
}

.trc-orange {
    color: #ea580c;
    font-weight: 600;
}

.trc-emerald {
    color: #059669;
    font-weight: 600;
}

.trc-muted {
    color: #334155;
}
