/* Custom styles for CheapEVCharger */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Prose styling overrides */
.prose h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.prose a {
    color: #16885c;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose a:hover {
    color: #126d4b;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.prose thead th {
    background-color: #f9fafb;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}
.prose tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.prose tbody tr:hover {
    background-color: #f9fafb;
}

/* FAQ details animation */
details summary {
    list-style: none;
}
details summary::-webkit-details-marker {
    display: none;
}

/* Calculator input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #16885c;
    cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #16885c;
    cursor: pointer;
    border: none;
}

/* Scroll margin for anchors (account for sticky header) */
[id] {
    scroll-margin-top: 5rem;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Print styles */
@media print {
    header, footer, nav, .no-print {
        display: none !important;
    }
    .prose a::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        color: #6b7280;
    }
}
