/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * The family theme (fonts, motion, focus ring, tokens, glass surfaces) is theme.css beside this file,
 * vendored from ~/code/design — edit it there and run design/bin/sync. Only audited-specific rules live here.
 */

/* Turbo progress bar — defined here so CSP doesn't block Turbo's inline style injection */
.turbo-progress-bar {
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 45%, #818cf8 100%);
  z-index: 2147483647;
  transition: width 300ms ease-out, opacity 150ms 150ms ease-in;
  transform: translate3d(0, 0, 0);
}

/* Audit report content */
.report-text {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif !important;
}

.report-text h1, .report-text h2, .report-text h3, .report-text h4, .report-text h5, .report-text h6 {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif !important;
}

.report-text p {
  margin-bottom: 1rem;
}

.report-text p:last-child {
  margin-bottom: 0;
}

/* The technical register: prose that is roughly half identifiers, for a reader
   doing diligence. Unstyled it renders as a wall — default monospace runs larger
   than the body face, so every span shouts and the sentence boundaries vanish.
   The identifiers stay legible and stop competing: optically matched to the
   prose, set on a quiet chip, and given a measure short enough to track across. */
.technical-detail {
  max-width: 72ch;
  line-height: 1.75;
}

.technical-detail p {
  margin-bottom: 1.25rem;
}

.technical-detail code {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  padding: 0.1em 0.32em;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  /* A long constant must not push the card sideways on a phone. */
  overflow-wrap: anywhere;
}

/* A paragraph's opening topic, so the section can be skimmed for the part that
   matters rather than read from the top. */
.technical-detail strong {
  color: #e2e8f0;
  font-weight: 600;
}

/* Smooth scrolling for code blocks on iOS */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Bring common form controls into the shared liquid style (mirrors .glass-input in theme.css) */
input.bg-gray-800,
select.bg-gray-800,
textarea.bg-gray-800 {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.095) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #edf2ff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(7, 11, 20, 0.34);
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
}

input.bg-gray-800::placeholder,
textarea.bg-gray-800::placeholder {
  color: #a7b4c7 !important;
}

input.bg-gray-800:focus,
select.bg-gray-800:focus,
textarea.bg-gray-800:focus {
  border-color: rgba(125, 211, 252, 0.72) !important;
}

/* Ethereum blue for zack.eth branding */
.eth-blue {
  color: #627EEA;
}
