/**
 * Enterprise polish + a11y helpers for SDP Accessibility static pages.
 * Pairs with /assets/tailwind.css — keep layout in HTML classes; surface treatment here.
 */

/* ---- Skip link + focus (unchanged behavior) ---- */
.a11y-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.a11y-skip:focus {
  position: fixed;
  z-index: 10000;
  left: 0.5rem;
  top: 0.5rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  overflow: visible;
  clip: auto;
  background: #0e7490;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}
#main-content:focus {
  outline: none;
}

/* ---- Federal acquisition lifecycle positioning strip ---- */
.a11y-lifecycle-banner {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.55) 0%, rgba(15, 23, 42, 0.65) 100%);
}
.a11y-lifecycle-banner__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.85);
  margin: 0 0 0.35rem;
}
.a11y-lifecycle-banner__text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.92);
  margin: 0;
}

/* ---- App shell (enterprise navy) ---- */
body {
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #e8eef7;
  background-color: #0a1628;
  background-image:
    radial-gradient(ellipse 85% 50% at 50% -20%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 10%, rgba(99, 102, 241, 0.08), transparent 50%),
    linear-gradient(180deg, #0c2340 0%, #0a1628 42%, #081420 100%);
  background-attachment: fixed;
}

body.sdp-auth-checking {
  visibility: hidden;
}
body.sdp-auth-ok {
  visibility: visible;
}

/* ---- Cards (shared with inline “card” class in HTML) ---- */
.card {
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.78) 0%, rgba(15, 23, 42, 0.82) 48%, rgba(15, 23, 42, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 40px -18px rgba(0, 0, 0, 0.65);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease;
}

a.card,
.card[href] {
  text-decoration: none;
  color: inherit;
}
a.card:hover {
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 16px 48px -14px rgba(34, 211, 238, 0.14);
  transform: translateY(-2px);
}

/* ---- Product / page chrome ---- */
.a11y-product-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.a11y-product-strip strong {
  color: #22d3ee;
  font-weight: 700;
}

.a11y-page-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #f8fafc;
  line-height: 1.2;
}

.a11y-page-lead {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 40rem;
}

.a11y-breadcrumb {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 1rem;
}
.a11y-breadcrumb a {
  color: #22d3ee;
  text-decoration: none;
  font-weight: 500;
}
.a11y-breadcrumb a:hover {
  text-decoration: underline;
}

/* ---- Executive callouts (left accent + calm interior) ---- */
.a11y-callout {
  position: relative;
  border-left: 3px solid rgba(34, 211, 238, 0.55);
  background: rgba(2, 6, 23, 0.35);
}
.a11y-callout--emerald {
  border-left-color: rgba(52, 211, 153, 0.6);
}
.a11y-callout--amber {
  border-left-color: rgba(251, 191, 36, 0.55);
}
.a11y-callout .a11y-callout-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

/* ---- KPI numerics (dashboard) ---- */
.a11y-kpi-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---- Landing index: tile icons ---- */
.a11y-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.35rem;
  border-radius: 10px;
  font-size: 0.65rem;
  margin-bottom: 0.65rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #a5f3fc;
}

/* ---- Toolbar strip (workflows / filters) ---- */
.a11y-toolbar {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px -12px rgba(0, 0, 0, 0.5);
}

/* ---- Primary actions (subtle glow on hover) ---- */
main button.bg-cyan-600:hover,
main button.bg-cyan-700:hover {
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 8px 28px -8px rgba(34, 211, 238, 0.35);
}

/* ---- Code blocks inside cards ---- */
.card code {
  font-size: 0.8125em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Dashboard scan trend (procurement screenshots) ---- */
.a11y-trend-bar {
  min-height: 4px;
  background: linear-gradient(180deg, #67e8f9 0%, #0891b2 55%, #164e63 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 8px -2px rgba(34, 211, 238, 0.25);
  border: 1px solid rgba(207, 250, 254, 0.18);
}

/* ---- Copilot output (prose vs code) ---- */
.a11y-copilot-text {
  font-size: 0.875rem;
  line-height: 1.55;
}
.a11y-copilot-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.22);
  overflow-x: auto;
  max-height: 16rem;
  margin: 0;
  color: #e2e8f0;
}

/* ---- Enterprise RBAC denial (injected by accessibility-api.js) ---- */
.sdp-a11y-rbac-banner {
  margin: 0 auto 1rem;
  max-width: 64rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #fecaca;
  background: rgba(69, 10, 10, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

/* ---- Guided demo (/accessibility/demo) ---- */
.a11y-demo-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.a11y-demo-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.a11y-demo-step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(8, 145, 178, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.a11y-demo-step-body {
  flex: 1;
  min-width: 0;
}
.a11y-demo-status ul {
  list-style: none;
  padding: 0;
}
.card.a11y-demo-hero {
  border-color: rgba(34, 211, 238, 0.35);
  background: linear-gradient(145deg, rgba(8, 145, 178, 0.12) 0%, rgba(15, 23, 42, 0.88) 55%);
}

/* Pilot use case — top of /accessibility/demo */
.a11y-use-case-panel {
  border: 2px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(160deg, #0f2847 0%, #0c1f3a 45%, #0a1628 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 16px 48px -20px rgba(0, 0, 0, 0.55);
}
.a11y-use-case-panel .a11y-use-case-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #7dd3fc;
  letter-spacing: 0.02em;
}
.a11y-use-case-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}
@media (max-width: 720px) {
  .a11y-use-case-flow { grid-template-columns: 1fr 1fr; }
}
.a11y-use-case-flow span {
  display: block;
  text-align: center;
  padding: 0.5rem 0.35rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e2e8f0;
  background: rgba(15, 40, 71, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.a11y-use-case-flow .arrow {
  display: none;
}
.a11y-use-case-detail {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
}
.a11y-use-case-detail strong { color: #f8fafc; }
.a11y-use-case-note {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.8rem;
  color: #94a3b8;
}
/* ---- Operations deck embed + fullscreen modal (demo page) ---- */
.a11y-deck-embed-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: #081420;
  box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.65);
}
.a11y-deck-embed-iframe {
  display: block;
  width: 100%;
  min-height: min(70vh, 640px);
  height: 70vh;
  border: 0;
}
.a11y-deck-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
}
.a11y-deck-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
}
.a11y-deck-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem 1rem;
}
.a11y-deck-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.a11y-deck-modal__iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 10px;
  background: #0a1628;
}
body.a11y-deck-modal-open {
  overflow: hidden;
}
.a11y-deck-embed-card kbd {
  font-size: 0.7rem;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.a11y-use-case-note code {
  color: #7dd3fc;
}
