/* r24-supercharge.css — R24 Alexandria AI/MCP Hub, Command Palette (Cmd+K),
   X-Ray Sniper, Live Dual-Lang ATS Resume Studio (with A4 Vector Print),
   Open Cover Letter Studio, and 90-Day Guarantee Sprint Engine.
   Respects r21-tokens.css (--r21-ink, --r21-paper, --r21-blue, --r21-fit). */

/* ── Header Command Trigger ─────────────────────────────────────────── */
.r24-cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(246, 243, 236, 0.22);
  background: rgba(246, 243, 236, 0.08);
  color: var(--r21-paper, #f6f3ec);
  font-family: var(--r21-font-body);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.r24-cmd-trigger:hover {
  background: rgba(246, 243, 236, 0.15);
  border-color: rgba(200, 245, 66, 0.55);
}
.r24-cmd-kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(13, 13, 15, 0.55);
  border: 1px solid rgba(246, 243, 236, 0.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1;
  color: var(--r21-fit, #c8f542);
}
@media (max-width: 900px) {
  .r24-cmd-trigger-text,
  .r24-cmd-kbd {
    display: none;
  }
  .r24-cmd-trigger {
    padding: 0 10px;
  }
}

/* ── Global Cmd+K Command Palette (Stripe / Luma Pattern) ──────────── */
.r24-cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(13, 13, 15, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 24px;
}
.r24-cmd-backdrop[hidden] {
  display: none !important;
}
.r24-cmd-modal {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  color: var(--r21-ink, #0d0d0f);
  border-radius: 18px;
  border: 1px solid var(--r21-border, #e6e2d8);
  box-shadow: 0 28px 70px rgba(13, 13, 15, 0.32);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}
.r24-cmd-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--r21-border, #e6e2d8);
}
.r24-cmd-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: var(--r21-font-body);
  font-size: 15px;
  color: var(--r21-ink, #0d0d0f);
  background: transparent;
}
.r24-cmd-close {
  border: 1px solid var(--r21-border, #e6e2d8);
  background: var(--r21-paper, #f6f3ec);
  color: var(--r21-ink, #0d0d0f);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.r24-cmd-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: #faf9f6;
  border-bottom: 1px solid var(--r21-border, #e6e2d8);
  overflow-x: auto;
}
.r24-cmd-tab {
  border: 1px solid var(--r21-border, #e6e2d8);
  background: #ffffff;
  color: var(--r21-body, #4a4a48);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.r24-cmd-tab.is-active {
  background: var(--r21-blue, #0053ff);
  border-color: var(--r21-blue, #0053ff);
  color: #ffffff;
}
.r24-cmd-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.r24-cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--r21-ink, #0d0d0f);
  transition: background 0.12s ease;
}
.r24-cmd-item:hover,
.r24-cmd-item.is-selected {
  background: rgba(0, 83, 255, 0.08);
}
.r24-cmd-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.r24-cmd-item-title {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.r24-cmd-item-sub {
  font-size: 12px;
  color: var(--r21-body, #4a4a48);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.r24-cmd-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--r21-paper, #f6f3ec);
  color: var(--r21-blue, #0053ff);
}

/* ── /go Alexandria-Style Centered Launcher Hub ────────────────────── */
.r24-go-wrap {
  background:
    radial-gradient(ellipse 68% 36% at 50% 0%, rgba(0, 83, 255, 0.11), rgba(200, 245, 66, 0.08) 48%, transparent 80%),
    var(--r21-paper, #f6f3ec);
  padding: 52px 16px 80px;
}
.r24-go-shell {
  max-width: 580px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.r24-go-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--r21-ink, #0d0d0f);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(13, 13, 15, 0.14);
}
.r24-go-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--r21-blue, #0053ff);
  margin: 0;
}
.r24-go-h1 {
  font-family: var(--r21-font-display);
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.18;
  color: var(--r21-ink, #0d0d0f);
  margin: 0;
  text-wrap: balance;
}
.r24-go-sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--r21-body, #4a4a48);
  margin: 0;
}
.r24-go-launchers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.r24-go-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--r21-border, #e6e2d8);
  text-decoration: none;
  color: var(--r21-ink, #0d0d0f);
  box-shadow: 0 4px 14px rgba(13, 13, 15, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.r24-go-card:hover {
  transform: translateY(-2px);
  border-color: var(--r21-blue, #0053ff);
  box-shadow: 0 12px 26px rgba(0, 83, 255, 0.1);
}
.r24-go-card-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.r24-go-card-title {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.r24-go-card-sub {
  font-size: 13px;
  color: var(--r21-body, #4a4a48);
}
.r24-go-arrow {
  font-size: 18px;
  color: var(--r21-blue, #0053ff);
  flex-shrink: 0;
}
.r24-go-divider {
  border: 0;
  border-top: 1px solid var(--r21-border, #e6e2d8);
  margin: 6px 0;
}
.r24-go-h2 {
  font-family: var(--r21-font-display);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--r21-ink, #0d0d0f);
}
.r24-agent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.r24-agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--r21-border, #e6e2d8);
  background: #ffffff;
  color: var(--r21-ink, #0d0d0f);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.r24-agent-pill[aria-pressed="true"] {
  border-color: var(--r21-blue, #0053ff);
  background: rgba(0, 83, 255, 0.08);
  color: var(--r21-blue, #0053ff);
}
.r24-agent-panel {
  background: #ffffff;
  border: 1px solid var(--r21-border, #e6e2d8);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.r24-code-box {
  position: relative;
  background: #0d0d0f;
  color: #f6f3ec;
  border-radius: 12px;
  padding: 14px;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}
.r24-code-box pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.r24-prompt-box {
  background: #faf9f6;
  border: 1px solid var(--r21-border, #e6e2d8);
  border-radius: 12px;
  padding: 14px;
}
.r24-prompt-box pre {
  margin: 0;
  font-family: var(--r21-font-body);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--r21-ink, #0d0d0f);
}
.r24-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── /hacks X-Ray & Outreach Grid ──────────────────────────────────── */
.r24-xray-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.r24-xray-card {
  background: #ffffff;
  border: 1px solid var(--r21-border, #e6e2d8);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.r24-query-mono {
  background: #0d0d0f;
  color: #c8f542;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: 10px;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
  word-break: break-word;
}
.r24-script-box {
  background: #faf9f6;
  border: 1px solid var(--r21-border, #e6e2d8);
  border-radius: 12px;
  padding: 14px;
  font-size: 13.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── /resume-builder Split-Pane Studio + Crisp A4 Print ────────────── */
.r24-rb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}
.r24-skill-Adder {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.r24-skill-tag-btn {
  border: 1px dashed var(--r21-blue, #0053ff);
  background: rgba(0, 83, 255, 0.05);
  color: var(--r21-blue, #0053ff);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
}
.r24-skill-tag-btn:hover {
  background: var(--r21-blue, #0053ff);
  color: #ffffff;
}
.r24-a4-sheet {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 16px 40px rgba(13, 13, 15, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.r24-a4-sheet[dir="ltr"] {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: left;
}
.r24-a4-head {
  border-bottom: 2px solid #0d0d0f;
  padding-bottom: 12px;
}
.r24-a4-name {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #0d0d0f;
}
.r24-a4-role {
  font-size: 15px;
  font-weight: 700;
  color: #0053ff;
  margin: 0 0 6px;
}
.r24-a4-contact {
  font-size: 12.5px;
  color: #4b5563;
  margin: 0;
  word-break: break-word;
}
.r24-a4-sec-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0d0d0f;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 4px;
  margin: 0 0 8px;
}
.r24-a4-body {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  color: #1f2937;
  white-space: pre-wrap;
}
.r24-a4-bullets {
  margin: 0;
  padding-inline-start: 18px;
  font-size: 13px;
  line-height: 1.75;
  color: #1f2937;
}
.r24-xyz-card {
  border: 1px solid var(--r21-border, #e6e2d8);
  border-radius: 12px;
  padding: 12px 14px;
  background: #faf9f6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── /guarantee 5-Pillar Sprint Bar (Mercor Pattern) ───────────────── */
.r24-sprint-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.r24-sprint-step {
  background: #ffffff;
  border: 1px solid var(--r21-border, #e6e2d8);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--r21-ink, #0d0d0f);
}
.r24-sprint-step.is-done {
  border-color: #067647;
  background: rgba(16, 185, 129, 0.06);
}
.r24-diag-banner {
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--r21-border, #e6e2d8);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.r24-diag-banner[data-severity="red"] {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(254, 242, 242, 0.85);
}
.r24-diag-banner[data-severity="amber"] {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(255, 251, 235, 0.9);
}
.r24-diag-banner[data-severity="green"] {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(236, 253, 245, 0.9);
}

/* ── /interview-prep 90s STAR Timer ────────────────────────────────── */
.r24-timer-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.r24-timer-clock {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--r21-paper, #f6f3ec);
  color: var(--r21-ink, #0d0d0f);
}

/* ── Responsive <= 960px & Mobile 390px Guards ─────────────────────── */
@media (max-width: 960px) {
  .r24-xray-grid,
  .r24-rb-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .r24-sprint-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .r24-a4-sheet {
    padding: 20px 16px;
  }
}

/* ── Vector Print-to-PDF Rules (@media print) ──────────────────────── */
@media print {
  .r21-header,
  .r21-footer,
  .r21-tabbar,
  .r22-sal-hero,
  .r24-no-print,
  .r24-cmd-backdrop {
    display: none !important;
  }
  body,
  main,
  .r21-container,
  .r23-main,
  .r24-rb-layout {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    display: block !important;
    background: #ffffff !important;
  }
  .r24-a4-sheet {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}
