/* ══════════════════════════════════════════
   CAPTAINS HELP CENTER — Shared Detail Page CSS
   zsoffshore.life/captains/tutorials/*.html

   Ported from shop/tutorials/_tutorial.css, retuned
   for captain portal voice. Teal primary,
   signal-gold reserved for charter-captain callouts
   so that audience reads as a distinct band.
   ══════════════════════════════════════════ */

.tut-breadcrumb {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin: 24px 0 12px;
}
.tut-breadcrumb a {
  color: var(--deep-teal);
  text-decoration: none;
  font-weight: 600;
}
.tut-breadcrumb a:hover { text-decoration: underline; }
.tut-breadcrumb-sep {
  margin: 0 8px;
  color: rgba(255,255,255,0.2);
}

.tut-hero {
  padding: 8px 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 28px;
}
.tut-hero-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--deep-teal);
  font-weight: 700;
  margin-bottom: 8px;
}
.tut-hero-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}
.tut-hero-summary {
  font-size: 14px;
  color: var(--light-gray);
  max-width: 680px;
  line-height: 1.6;
}
.tut-hero-meta {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mid-gray);
  font-weight: 600;
}
.tut-hero-meta .sep {
  margin: 0 10px;
  color: rgba(255,255,255,0.15);
}

.tut-body {
  max-width: 760px;
  padding-bottom: 60px;
}
.tut-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 12px;
  letter-spacing: -0.2px;
}
.tut-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--deep-teal);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 24px 0 8px;
}
.tut-body p {
  font-size: 14px;
  color: var(--light-gray);
  line-height: 1.7;
  margin-bottom: 14px;
}
.tut-body p strong { color: var(--white); }
.tut-body ul, .tut-body ol {
  font-size: 14px;
  color: var(--light-gray);
  line-height: 1.7;
  margin: 0 0 14px 20px;
}
.tut-body li { margin-bottom: 6px; }

/* ── Numbered steps ── */
.tut-step {
  display: flex;
  gap: 18px;
  margin: 20px 0;
  padding: 18px 20px 18px 0;
  position: relative;
}
.tut-step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,123,167,0.15);
  color: var(--deep-teal);
  border: 1px solid rgba(0,123,167,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.tut-step-body { flex: 1; min-width: 0; }
.tut-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.4;
}
.tut-step-body p {
  font-size: 13px;
  color: var(--light-gray);
  margin-bottom: 8px;
}

/* ── Callouts ── */
.tut-callout {
  padding: 14px 18px;
  border-radius: 6px;
  margin: 18px 0;
  font-size: 13px;
  color: var(--light-gray);
  line-height: 1.6;
  border-left: 3px solid var(--deep-teal);
  background: rgba(0,123,167,0.08);
}
.tut-callout strong { color: var(--white); }
.tut-callout.tip {
  border-left-color: var(--success);
  background: rgba(74,222,128,0.07);
}
.tut-callout.warn {
  border-left-color: var(--warning);
  background: rgba(245,158,11,0.08);
}
.tut-callout.coming {
  border-left-color: var(--warning);
  background: rgba(245,158,11,0.08);
}
/* Charter-captain callout — gold, distinct band of content.
   Used on every tutorial to surface the guest-facing / paid-client angle. */
.tut-callout.charter {
  border-left: 3px solid var(--signal-gold);
  background: linear-gradient(90deg, rgba(201,168,76,0.12) 0%, rgba(201,168,76,0.04) 100%);
  padding: 16px 20px;
}
.tut-callout-kicker {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--deep-teal);
  margin-bottom: 4px;
}
.tut-callout.tip .tut-callout-kicker { color: var(--success); }
.tut-callout.warn .tut-callout-kicker { color: var(--warning); }
.tut-callout.coming .tut-callout-kicker { color: var(--warning); }
.tut-callout.charter .tut-callout-kicker { color: var(--signal-gold); }

/* ── UI Mocks ── */
.tut-mock {
  background: var(--dark-navy);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  margin: 20px 0;
  overflow: hidden;
}
.tut-mock-chrome {
  background: #1a1f2e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--mid-gray);
}
.tut-mock-chrome .dots {
  display: flex;
  gap: 5px;
}
.tut-mock-chrome .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.tut-mock-chrome .url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.tut-mock-body {
  padding: 18px 20px;
  min-height: 120px;
}
.tut-mock-caption {
  padding: 8px 14px;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 11px;
  color: var(--mid-gray);
  font-style: italic;
  line-height: 1.5;
}

/* mock form fields */
.tut-mock-field { margin-bottom: 12px; }
.tut-mock-field-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mid-gray);
  font-weight: 600;
  margin-bottom: 4px;
}
.tut-mock-field-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--white);
}
.tut-mock-btn {
  display: inline-block;
  background: var(--deep-teal);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.tut-mock-btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--light-gray);
}

/* ── Comparison table ── */
.tut-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.tut-compare-col {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 16px 18px;
}
.tut-compare-col.primary {
  border-color: rgba(0,123,167,0.4);
  background: rgba(0,123,167,0.05);
}
.tut-compare-col-header {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--mid-gray);
}
.tut-compare-col.primary .tut-compare-col-header { color: var(--deep-teal); }
.tut-compare-col ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--light-gray);
}
.tut-compare-col li { margin-bottom: 4px; }

/* ── Prev / Next nav ── */
.tut-next-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.tut-next-nav a {
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 14px 18px;
  transition: all 0.18s ease;
}
.tut-next-nav a:hover {
  border-color: rgba(0,123,167,0.5);
  background: rgba(0,123,167,0.05);
}
.tut-next-nav .tut-next-nav-dir {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 4px;
}
.tut-next-nav .tut-next-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.tut-next-nav a.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.tut-next-nav .end { text-align: right; }

/* ── Inline brand wordmarks ── */
.at-desk { white-space: nowrap; }
.at-desk span { color: var(--deep-teal); }
.at-dock { white-space: nowrap; }
.at-dock span { color: var(--success); }
.at-helm { white-space: nowrap; }
.at-helm span { color: var(--signal-gold); }

/* ── Chat-style mock (Sedna in chat.html) ── */
.tut-mock-chat {
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--light-gray);
}
.tut-mock-chat.user {
  border-left: 2px solid var(--mid-gray);
}
.tut-mock-chat.sedna {
  border-left: 2px solid var(--deep-teal);
  background: rgba(0,123,167,0.06);
}
.tut-mock-chat .speaker {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--mid-gray);
}
.tut-mock-chat.sedna .speaker { color: var(--deep-teal); }

/* ── Ask Sedna CTA (end of tutorial shortcut to chat.html) ── */
.tut-ask-sedna {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  margin: 24px 0 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,123,167,0.10) 0%, rgba(0,123,167,0.02) 100%);
  border: 1px solid rgba(0,123,167,0.25);
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
}
.tut-ask-sedna:hover {
  border-color: rgba(0,123,167,0.55);
  background: linear-gradient(135deg, rgba(0,123,167,0.18) 0%, rgba(0,123,167,0.05) 100%);
}
.tut-ask-sedna-text {
  flex: 1;
}
.tut-ask-sedna-kicker {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--deep-teal);
  margin-bottom: 4px;
}
.tut-ask-sedna-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.tut-ask-sedna-arrow {
  font-size: 22px;
  color: var(--deep-teal);
  flex-shrink: 0;
}

/* ── Inline prose links ── */
/* Keep visited links the same color as unvisited — browser default purple
   is unreadable on the dark tutorial background. !important is required
   because the user-agent stylesheet for :visited wins on specificity
   ties against normal author rules. */
.tut-wrap a,
.tut-wrap a:link,
.tut-wrap a:visited,
.tut-body a,
.tut-body a:link,
.tut-body a:visited,
.tut-breadcrumb a,
.tut-breadcrumb a:visited,
.tut-callout a,
.tut-callout a:visited {
  color: var(--deep-teal) !important;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.tut-wrap a:hover,
.tut-wrap a:focus,
.tut-body a:hover,
.tut-body a:focus {
  color: #fff !important;
  text-decoration-color: var(--deep-teal);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .tut-hero-title { font-size: 24px; }
  .tut-compare { grid-template-columns: 1fr; }
  .tut-next-nav { grid-template-columns: 1fr; }
  .tut-next-nav .end { text-align: left; }
  .tut-ask-sedna { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════
   Ask Sedna Modal — keeps captain inside the tutorial
   Triggered by .tut-ask-sedna clicks (handled in _tutorial.js)
   ══════════════════════════════════════════ */
.tut-sedna-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.tut-sedna-modal.open { display: flex; }

.tut-sedna-modal-card {
  width: 100%;
  max-width: 920px;
  height: 88vh;
  background: #0b1118;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.tut-sedna-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
}
.tut-sedna-modal-titlewrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.tut-sedna-modal-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.tut-sedna-modal-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tut-sedna-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 24px;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 6px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.tut-sedna-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.tut-sedna-modal-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #0b1118;
}

@media (max-width: 600px) {
  .tut-sedna-modal { padding: 0; }
  .tut-sedna-modal-card { height: 100vh; border-radius: 0; border: none; }
}
