/* The status beacon in the footer, planned maintenance notices and the status page's "Report an issue" form
   (owner, 21 October 2026; public/js/status-beacon.js). Colours come from the theme's state tokens only. */

/* Footer: "System status" with a coloured dot */
.foot-status { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 600; }
.foot-status:hover, .foot-status:focus-visible { text-decoration: underline; }
.foot-status[hidden] { display: none; }
.foot-status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--sm-state-neutral-fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-state-neutral-fg) 25%, transparent); }
.foot-status-operational .foot-status-dot { background: var(--sm-state-success-fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-state-success-fg) 25%, transparent); }
.foot-status-degraded .foot-status-dot { background: var(--sm-state-warning-fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-state-warning-fg) 25%, transparent); }
.foot-status-maintenance .foot-status-dot { background: var(--sm-state-info-fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-state-info-fg) 25%, transparent); }
.foot-status-outage .foot-status-dot { background: var(--sm-state-danger-solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sm-state-danger-solid) 30%, transparent); }
.foot-report { color: inherit; }

/* Planned maintenance: a notice before the window, a ticker while it runs */
.mn-bar { border-bottom: 1px solid var(--sm-state-info-line); background: var(--sm-state-info-bg); color: var(--sm-state-info-fg); font-size: 14.5px; }
.mn-bar.mn-active { border-bottom-color: var(--sm-state-warning-line); background: var(--sm-state-warning-bg); color: var(--sm-state-warning-fg); }
.mn-row { display: flex; align-items: center; gap: 8px 16px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.mn-text { margin: 0; flex: 1 1 auto; min-width: 0; line-height: 1.45; }
.mn-text strong { font-weight: 650; }
.mn-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.mn-more { flex: none; font-weight: 600; white-space: nowrap; color: inherit; }
.mn-close { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid transparent; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.mn-close:hover, .mn-close:focus-visible { border-color: currentColor; }
.mn-close .ms { font-size: 20px; }
.mn-pulse { animation: mn-glow 2.8s ease-in-out infinite; }
.mn-pulse .mn-dot { animation: mn-dot 1.4s ease-in-out infinite; }
@keyframes mn-glow {
  0%, 100% { box-shadow: inset 0 0 0 0 transparent; }
  50% { box-shadow: inset 0 -3px 0 0 var(--sm-state-warning-line), 0 0 18px 0 color-mix(in srgb, var(--sm-state-warning-line) 55%, transparent); }
}
@keyframes mn-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* Reduced motion: a steady highlight instead of the glow. */
@media (prefers-reduced-motion: reduce) {
  .mn-pulse, .mn-pulse .mn-dot { animation: none; }
  .mn-pulse { box-shadow: inset 0 -3px 0 0 var(--sm-state-warning-line); }
}

/* Status page: the staff message and "Report an issue" */
.st-message { margin: -14px 0 28px; padding: 12px 16px; border-left: 3px solid var(--sm-state-info-line); background: var(--sm-state-info-bg); color: var(--sm-state-info-fg); border-radius: var(--sm-radius-sm); }
.st-report { margin: 8px 0 32px; }
.st-report-form { display: grid; gap: 14px; padding: 18px 20px; border: 1.5px solid var(--sm-border-strong); border-radius: var(--sm-radius); background: var(--sm-surface-card); }
.st-report-form label { display: grid; gap: 6px; font-weight: 600; }
.st-report-form label small { font-weight: 400; color: var(--sm-text-muted); }
.st-report-form input[type="text"], .st-report-form input[type="email"], .st-report-form input[type="datetime-local"], .st-report-form select, .st-report-form textarea {
  font: inherit; padding: 9px 11px; border: 1px solid var(--sm-border-default); border-radius: var(--sm-radius-sm); background: var(--sm-surface-input); color: var(--sm-text-body); }
.st-choices { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; border: 0; }
.st-choices legend { font-weight: 600; margin-bottom: 6px; }
.st-choices label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.st-report-err { padding: 10px 14px; border-radius: var(--sm-radius-sm); background: var(--sm-state-danger-bg); color: var(--sm-state-danger-fg); border: 1px solid var(--sm-state-danger-line); }
.st-report-err p { margin: 0; }
.st-report-done { padding: 14px 16px; border-radius: var(--sm-radius-sm); background: var(--sm-state-success-bg); color: var(--sm-state-success-fg); border: 1px solid var(--sm-state-success-line); }
