/* ===========================================================================
   SECTION GUIDE — the manual card that opens the first time you walk into a
   department, and from the GUIDE button after that. Sits above the department
   overlays (z-index 95) and pauses the shift underneath.
   =========================================================================== */

.guide-overlay {
  position: fixed;
  inset: 0;
  /* Above the department overlays, which sit at 200. */
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 4, 10, 0.82);
  backdrop-filter: blur(3px);
}
.guide-overlay.show { display: flex; }

.guide-card {
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(88vh, 760px);
  border-radius: 16px;
  border: 2px solid color-mix(in srgb, var(--guide-accent, #fbbf24), #fff 20%);
  background: linear-gradient(170deg, rgba(24, 20, 16, 0.99) 0%, rgba(10, 9, 12, 0.99) 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 60px color-mix(in srgb, var(--guide-accent, #fbbf24), transparent 78%);
  color: #e7e2d8;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  overflow: hidden;
}

/* ---------- Head ---------- */

.guide-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--guide-accent, #fbbf24), #000 58%) 0%,
    rgba(16, 13, 10, 0.9) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--guide-accent, #fbbf24), transparent 55%);
}
.guide-emoji { font-size: 30px; line-height: 1; }
.guide-headings { flex: 1; min-width: 0; }
.guide-headings h2 {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff8e7;
}
.guide-headings small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 2.2px;
  color: color-mix(in srgb, var(--guide-accent, #fbbf24), #fff 45%);
}
.guide-x {
  flex: none;
  width: 30px;
  height: 30px;
  font-size: 14px;
  color: #e7e2d8;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(231, 226, 216, 0.28);
  background: rgba(0, 0, 0, 0.35);
}
.guide-x:hover { border-color: #fff8e7; color: #fff8e7; }

/* ---------- Body ---------- */

.guide-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px 4px;
}

.guide-goal {
  padding: 11px 13px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #f4efe4;
  border-radius: 10px;
  border-left: 3px solid var(--guide-accent, #fbbf24);
  background: color-mix(in srgb, var(--guide-accent, #fbbf24), transparent 88%);
}
.guide-goal i { color: #fde68a; font-style: italic; }
.guide-goal b { color: #fff8e7; }

/* The pipeline, as chips */
.guide-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}
.guide-flow-step {
  padding: 4px 9px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: #fff8e7;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--guide-accent, #fbbf24), transparent 45%);
  background: color-mix(in srgb, var(--guide-accent, #fbbf24), #000 62%);
  white-space: nowrap;
}
.guide-flow-arrow { color: color-mix(in srgb, var(--guide-accent, #fbbf24), #fff 20%); font-size: 11px; }
.guide-flow-note {
  margin-bottom: 12px;
  font-size: 11px;
  font-style: italic;
  color: #a9a396;
}

.guide-scroll h3 {
  margin: 16px 0 8px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: color-mix(in srgb, var(--guide-accent, #fbbf24), #fff 40%);
  text-transform: uppercase;
}

/* Numbered walkthrough */
.guide-step {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(231, 226, 216, 0.09);
}
.guide-step:first-of-type { border-top: 0; }
.guide-step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #100d0a;
  border-radius: 50%;
  background: var(--guide-accent, #fbbf24);
}
.guide-step-body { display: block; font-size: 12px; line-height: 1.5; }
/* Only the step's own title is a heading — bold inside the body stays inline. */
.guide-step-body > b { display: block; margin-bottom: 2px; color: #fff8e7; font-size: 12.5px; }
.guide-step-body > span { color: #c9c3b6; }
.guide-step-body > span b { color: #fff8e7; }

.guide-bullet {
  position: relative;
  padding: 5px 0 5px 15px;
  font-size: 12px;
  line-height: 1.5;
  color: #c9c3b6;
}
.guide-bullet::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--guide-accent, #fbbf24);
}
.guide-bullet b { color: #fff8e7; }

/* Posts */
.guide-posts { display: grid; gap: 6px; }
.guide-post {
  padding: 7px 10px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #c9c3b6;
  border-radius: 8px;
  border: 1px solid rgba(231, 226, 216, 0.12);
  background: rgba(255, 255, 255, 0.028);
}
.guide-post b {
  display: inline-block;
  margin-right: 6px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: color-mix(in srgb, var(--guide-accent, #fbbf24), #fff 35%);
}

/* Keys */
.guide-keys { display: grid; gap: 5px; }
.guide-key { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: #c9c3b6; }
.guide-key kbd {
  flex: none;
  min-width: 46px;
  padding: 3px 7px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  color: #fff8e7;
  border-radius: 5px;
  border: 1px solid rgba(231, 226, 216, 0.3);
  border-bottom-width: 2px;
  background: rgba(0, 0, 0, 0.4);
}

.guide-tail {
  margin: 16px 0 6px;
  padding: 9px 11px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #a9a396;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- Actions ---------- */

.guide-actions {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 11px 16px 13px;
  border-top: 1px solid rgba(231, 226, 216, 0.1);
  background: rgba(0, 0, 0, 0.28);
}
.guide-btn {
  flex: 1;
  padding: 10px 14px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #100d0a;
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--guide-accent, #fbbf24), #fff 26%),
    var(--guide-accent, #fbbf24));
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}
.guide-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }

/* ---------- The GUIDE button in each department HUD ---------- */

.meat-guide-btn {
  padding: 5px 11px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #fff8e7;
  cursor: pointer;
  border-radius: 7px;
  border: 1px solid rgba(251, 191, 36, 0.65);
  background: linear-gradient(180deg, rgba(120, 82, 12, 0.9), rgba(60, 40, 6, 0.9));
}
.meat-guide-btn:hover { border-color: #fde68a; }

/* ---------- The coach line in the department footer ---------- */

.meat-footer .sect-coach,
.meat-footer .meat-coach {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.coach-tag {
  flex: none;
  padding: 2px 7px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #100d0a;
  border-radius: 999px;
  background: #fbbf24;
}
.coach-tag.urgent { background: #f87171; animation: coachPulse 1.2s ease-in-out infinite; }
.coach-tag.calm { background: #86efac; }
.coach-text b { color: #fde68a; }
@keyframes coachPulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .coach-tag.urgent { animation: none; }
}
