.tl-sav-wrapper {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 0.5rem;
    font-family: inherit;
}

.tl-sav-header h2 {
    margin: 0 0 0.25rem;
    font-size: 2rem;
}

.tl-sav-header p {
    margin: 0 0 1.5rem;
    color: #4b5563;
}

.tl-sav-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .tl-sav-layout {
        grid-template-columns: 1fr;
    }
}

.tl-sav-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

/* Inputs */

.tl-sav-inputs h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.tl-sav-field {
    margin-bottom: 0.9rem;
}

.tl-sav-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.tl-sav-help {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.tl-sav-field input[type="number"] {
    width: 100%;
    max-width: 200px;
    padding: 0.45rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

.tl-sav-input-prefix {
    display: inline-flex;
    align-items: center;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    overflow: hidden;
    max-width: 220px;
}

.tl-sav-prefix {
    padding: 0.45rem 0.6rem;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    font-size: 0.95rem;
    color: #374151;
}

.tl-sav-input-prefix input[type="number"] {
    border: none;
    width: 100%;
    padding: 0.45rem 0.6rem;
    outline: none;
}

/* Features list */

.tl-sav-subtext {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.tl-sav-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0 0.75rem;
}

.tl-sav-feature {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.55rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.tl-sav-feature:hover {
    border-color: #c4d3f8;
    background: #f3f4ff;
}

.tl-sav-feature-input {
    margin-top: 0.2rem;
}

.tl-sav-feature-body {
    display: flex;
    flex-direction: column;
}

.tl-sav-feature-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

.tl-sav-feature-desc {
    font-size: 0.8rem;
    color: #6b7280;
}

.tl-sav-note {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.4rem;
}

/* Results */

.tl-sav-results h3 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 1.15rem;
}

.tl-sav-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.tl-sav-result-row--small {
    margin-bottom: 0;
}

.tl-sav-result-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
}

.tl-sav-result-sub {
    font-size: 0.8rem;
    color: #6b7280;
}

.tl-sav-result-value {
    text-align: right;
    white-space: nowrap;
}

.tl-sav-result-value span:first-child {
    font-size: 1rem;
    font-weight: 600;
}

.tl-sav-result-unit {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.tl-sav-divider {
    border-top: 1px solid #e5e7eb;
    margin: 0.75rem 0 0.75rem;
}

.tl-sav-highlight {
    margin-top: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: #ecf4ff;
    border: 1px solid #c4d3f8;
}

.tl-sav-footnote {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: #6b7280;
}

/* Negative values shown in red */

.tl-sav-negative {
    color: #b91c1c;
}

/* Small spacing tweak for third h3 (Trips section) */
.tl-sav-inputs h3:nth-of-type(3) {
    margin-top: 1.25rem;
}
