/*
 * 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.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 .step-header-panel {
   background-color: var(--color-primary);
 }

.markdown-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.markdown-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.markdown-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.markdown-content p {
  margin-bottom: 1.25rem;
}

.markdown-content ul,
.markdown-content ol {
  list-style: revert;
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.markdown-content li + li {
  margin-top: 0.5rem;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
}

.markdown-content th,
.markdown-content td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  text-align: left;
}

/* ─── Shared utilities ─────────────────────────────────────────────────── */

/* Section kicker — small primary uppercase label above headings. */
.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
}

/* Structural eyebrow utilities — same shape family as .kicker, no color baked in.
   Pair with text-color utilities (text-gray-500, text-white, etc.). */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
}

.eyebrow-wide {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1;
}

.eyebrow-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  line-height: 1;
}

/* Buttons — three variants, all 4px radius. Padding stays at the call site. */
.btn-primary,
.btn-ghost-light,
.btn-dark {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  border-radius: 4px;
  transition: opacity 150ms ease, background-color 150ms ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-ink);
}
.btn-primary:hover { opacity: 0.9; }

.btn-ghost-light {
  border: 1px solid white;
  color: white;
  background-color: transparent;
}
.btn-ghost-light:hover { background-color: rgba(255, 255, 255, 0.1); }

.btn-dark {
  background-color: var(--color-ink);
  color: white;
  font-weight: 700;
}
.btn-dark:hover { opacity: 0.9; }

/* Status panel bg matched to score-good token (used on proposal page status callouts). */
.bg-score-good {
  background-color: var(--color-score-good);
}
.bg-score-danger {
  background-color: var(--color-score-danger);
}

/* Industry roster strip: stacks 1col on mobile (top borders),
   2col on tablet (top + middle borders), goes horizontal on desktop
   with vertical dividers only. Used in homepage tenure section. */
.industry-strip > * {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
@media (min-width: 640px) {
  .industry-strip > *:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, 0.18); }
  .industry-strip > *:nth-child(odd)  { padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .industry-strip > * { border-top: none; padding: 0 1.5rem; }
  .industry-strip > *:first-child { padding-left: 0; }
  .industry-strip > *:last-child  { padding-right: 0; }
  .industry-strip > * + * { border-left: 1px solid rgba(255, 255, 255, 0.18); }
}

/* Glass-style frosted dark panel. Used by hero panels across the site. */
.glass-panel {
  background-color: rgba(40, 40, 40, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(3px);
}

/* Dark gradient overlay for hero / CTA / image-bg sections. */
.bg-overlay-dark {
  background: linear-gradient(140deg, rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0.55));
}

.bg-overlay-dark.is-deeper {
  background: linear-gradient(140deg, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.7));
}

.bg-overlay-dark.is-section {
  background: linear-gradient(120deg, rgba(17, 17, 17, 0.88), rgba(17, 17, 17, 0.65));
}

/* Reveal-on-scroll — controlled by reveal_controller.js. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Splide pagination — dark-panel friendly dots used by testimonials. */
.testimonial-splide .splide__pagination {
  position: static;
  padding: 0;
  margin-top: 1.5rem;
  justify-content: flex-start;
  gap: 0.5rem;
}

.testimonial-splide .splide__pagination__page {
  background: rgba(255, 255, 255, 0.25);
  width: 8px;
  height: 8px;
  opacity: 1;
  margin: 0;
  transition: background 300ms ease;
}

.testimonial-splide .splide__pagination__page.is-active {
  background: var(--color-primary);
  transform: scale(1);
}

.testimonial-splide .splide__pagination__page:hover {
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

/* Visible focus ring for keyboard users — primary on dark, primary on light. */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip-link — visually hidden until focused. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0.5rem;
  z-index: 10000;
  background: var(--color-primary);
  color: var(--color-ink, #161616);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 4px;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ─── Pagy pagination nav ──────────────────────────────────────────────── */
.pagy {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.pagy a,
.pagy .current,
.pagy .gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.pagy a {
  border-color: #e5e7eb;
  color: #374151;
  text-decoration: none;
}

.pagy a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagy .current {
  background-color: var(--color-primary);
  color: var(--color-ink);
  border-color: var(--color-primary);
}

.pagy .gap {
  color: #9ca3af;
  border-color: transparent;
}

/* ─── Reduced motion guards ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-cursor {
    animation: none;
  }

  .bg-rotator-layer {
    transition: none;
  }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}