/*!
 * kornyezetvedelmiterv.hu – Központi Stíluslap (style.css)
 * Fodor István egyéni vállalkozó – Környezetvédelmi Szakértő (MMK #61591)
 */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
    outline: 3px solid #10b981 !important;
    outline-offset: 2px !important;
    border-radius: 6px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.engineering-grid {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid #cbd5e1;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.authority-link {
    color: #059669;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.authority-link:hover {
    color: #047857;
    text-decoration: underline;
}

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.leaflet-container {
    z-index: 10 !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #10b981 #e2e8f0;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #10b981; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #059669; }

.kv-cc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 980px;
    margin: 0 auto;
    background: #0f172a;
    color: #f8fafc;
    border: 2px solid #10b981;
    border-radius: 20px;
    padding: 20px 24px;
    z-index: 9998;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.55);
}

.kv-cc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.kv-cc-backdrop.open { display: flex; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    #networkCanvas { display: none !important; }
}

@media print {
    @page { margin: 15mm; }
    body { background: #ffffff !important; color: #000000 !important; font-size: 11pt; }
    header, #progress-bar, #networkCanvas, #mobile-menu, .sidebar-toc, .mobile-toc,
    .kv-cc-banner, .kv-cc-backdrop, .kv-cc-revisit,
    a[aria-label*="Ugrás az ajánlatkérő"], a[aria-label*="Azonnali telefonhívás"] {
        display: none !important;
    }
    main section:first-of-type { padding-top: 0 !important; }
    article, .glass-panel, .data-grid-table, details {
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    a { text-decoration: none !important; color: #000000 !important; }
}