/* Alerts (alerts/index.html): the dashboard of the Asana project "Alerts". Site colours: bg #1A1A1A, cards #282828,
   borders #3A3A3A. Light and shadow as on the audience chart on products.html: lit from the top left, a glow in each
   colour, a soft beam from above and a glowing baseline */

.al-grid-wrap { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .al-grid-wrap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .al-grid-wrap { grid-template-columns: repeat(3, 1fr); } }
.al-card { min-width: 0; padding: 22px; background: #282828 radial-gradient(ellipse 80% 70% at 50% 0%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 70%); border: 1px solid #3A3A3A; }
.al-card--wide { grid-column: 1 / -1; }
.al-card__title { margin-bottom: 18px; font-size: 15px; font-weight: 700; }
.al-none { padding: 40px 0; color: rgba(255, 255, 255, 0.45); font-size: 14px; text-align: center; }

/* Rings */
.al-ring { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 28px; }
.al-ring__svg { flex: none; width: 200px; height: 200px; overflow: visible; }
.al-seg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--glow) 55%, transparent)); transition: opacity 150ms, filter 150ms; cursor: default; }
.al-seg:hover { filter: drop-shadow(0 0 12px var(--glow)) brightness(1.12); }
.al-seg.is-dim { opacity: 0.35; }
.al-ring__num { fill: #141414; font-size: 10px; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.al-ring__total { fill: #fff; font-size: 34px; font-weight: 600; text-anchor: middle; dominant-baseline: central; letter-spacing: -0.02em; }

/* Legends */
.al-legend { display: grid; gap: 7px; font-size: 13px; color: rgba(255, 255, 255, 0.85); min-width: 0; }
.al-legend li { display: flex; align-items: center; gap: 9px; transition: opacity 150ms; cursor: default; }
.al-legend li.is-dim { opacity: 0.35; }
.al-legend span { flex: none; width: 13px; height: 13px; border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 10px color-mix(in srgb, var(--glow) 45%, transparent); }

/* Bars */
.al-bars { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-start; }
.al-scroll { flex: 1 1 600px; min-width: 0; overflow-x: auto; padding-top: 20px; }
.al-plot { position: relative; height: 220px; margin: 0 0 56px 34px; min-width: calc(var(--cols) * 30px); background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 70%); }
.al-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.al-grid:first-child { border-top-color: rgba(255, 255, 255, 0.45); box-shadow: 0 0 12px 1px rgba(255, 255, 255, 0.25); }
.al-grid span { position: absolute; right: calc(100% + 8px); top: -7px; font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.al-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.al-col { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.al-stack { position: relative; display: flex; flex-direction: column; width: min(70%, 38px); }
.al-col__sum { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: #fff; }
.al-col__label { position: absolute; top: calc(100% + 10px); right: 50%; transform-origin: right top; transform: rotate(-45deg); font-size: 11px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.al-bar {
    display: flex; align-items: center; justify-content: center; min-height: 2px; color: #141414; font-size: 10px; font-weight: 700;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.08) 28%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.28) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 22%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.30) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 1px 0 0 rgba(255, 255, 255, 0.18), 0 0 22px -4px color-mix(in srgb, var(--glow) 60%, transparent);
    transition: box-shadow 200ms ease, filter 200ms ease;
}
.al-stack { filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.55)); }
.al-col:hover .al-bar { filter: brightness(1.15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 1px 0 0 rgba(255, 255, 255, 0.22), 0 0 34px -2px color-mix(in srgb, var(--glow) 85%, transparent); }
.al-legend--side { flex: 0 1 200px; padding-top: 30px; }
