/* ASLLP Contractor Economic Dashboard — scoped styles.
   Everything lives under .ced so nothing leaks into the theme. Most visual styling is inline
   in the template (to match the approved design); this file holds resets, keyframes, focus
   rings, and responsive rules. */

.ced, .ced * { box-sizing: border-box; }
.ced { font-family: 'Barlow', system-ui, -apple-system, sans-serif; color: #161914; -webkit-font-smoothing: antialiased; }
.ced h1, .ced h2, .ced h3 { font-family: 'Barlow Condensed', 'Barlow', sans-serif; letter-spacing: .01em; text-transform: uppercase; margin: 0; line-height: 1.02; }
.ced p { margin: 0; }
.ced a { color: #3f6212; text-decoration: none; }
.ced a:hover { color: #2c460c; }
.ced button { font-family: 'Barlow', sans-serif; }
.ced img, .ced svg { max-width: 100%; }

.ced .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@keyframes liveDot {
	0%   { box-shadow: 0 0 0 0 rgba(120,190,25,.55); }
	70%  { box-shadow: 0 0 0 8px rgba(120,190,25,0); }
	100% { box-shadow: 0 0 0 0 rgba(120,190,25,0); }
}
@keyframes acdSkel { 0%,100% { opacity: .55; } 50% { opacity: .95; } }

.ced [data-acd-skeleton] { background: #e6e8e2; border-radius: 6px; animation: acdSkel 1.4s ease-in-out infinite; }

/* Visible keyboard focus ring (lime). */
.ced button:focus-visible,
.ced a:focus-visible,
.ced input:focus-visible,
.ced select:focus-visible { outline: 3px solid #8ff01f; outline-offset: 2px; }

/* Chart bits (rendered by JS into [data-acd=chart-canvas]). */
.ced .acd-chart-svg { display: block; width: 100%; touch-action: none; }
.ced .acd-tab { border-radius: 8px; padding: 9px 15px; font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid #d8dcd1; background: #fff; color: #454a41; }
.ced .acd-tab[aria-pressed="true"] { background: #0e100e; color: #fff; border-color: #0e100e; }
.ced .acd-range { border-radius: 7px; padding: 6px 13px; font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; min-width: 44px; border: 1px solid #d8dcd1; background: #fff; color: #454a41; }
.ced .acd-range[aria-pressed="true"] { background: #0e100e; color: #fff; border-color: #0e100e; }

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.ced * { animation: none !important; transition: none !important; }
}

/* Responsive: single-column stacks on small screens. */
@media (max-width: 760px) {
	.ced .ced-calc-grid,
	.ced .ced-email-grid,
	.ced .ced-outlook-grid { grid-template-columns: 1fr !important; }
	.ced .ced-header div[style*="justify-content: space-between"] { row-gap: 8px; }
}
