/* css/polish.css
   A light finishing layer loaded after the existing stylesheets.
   It adds feel and accessibility only: no layout changes, no colour changes
   to anything a company customizes. Delete the <link> in
   includes/heads/sub-head.php to switch it off. */

html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* Buttons and links respond smoothly */
button, .btn, a.cta-button, .dashboard-item, input[type=submit], input[type=button] {
    transition: background-color .15s ease, box-shadow .15s ease, filter .15s ease, transform .06s ease;
}
button:not(:disabled):active, .btn:active, input[type=submit]:active, input[type=button]:active { transform: translateY(1px); }
button:disabled, input[type=submit]:disabled { cursor: not-allowed; }

/* Clear keyboard focus (only when navigating with the keyboard) */
:focus-visible { outline: 3px solid rgba(52, 120, 245, .55); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }

/* Settings tiles lift slightly on hover */
.dashboard-item:hover { box-shadow: 0 6px 18px rgba(20, 40, 70, .12); }

/* Data tables: easier to follow a row; status colours are kept (brightness only) */
table tbody tr { transition: filter .12s ease; }
table tbody tr:hover { filter: brightness(.96); }

/* Map marker info pop-up and modals: softer depth */
.modal-content, .marker-info { box-shadow: 0 12px 32px rgba(15, 30, 55, .22); }

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
