/* Rootkin Help center styles
   Used by public/help.html (hub) and public/help/<topic>.html (topic pages).
   Builds only on the existing brand tokens in style.css — no new colors. */

/* ─── Breadcrumb ─── */
.hc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--rk-muted);
  margin-bottom: 18px;
}
.hc-breadcrumb a {
  color: var(--rk-primary);
  text-decoration: none;
}
.hc-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hc-breadcrumb .sep { color: var(--rk-muted); opacity: 0.6; }
.hc-breadcrumb .here { color: var(--rk-ink); font-weight: 500; }

/* topic-page hero runs a touch smaller than the marketing heroes */
.hc-topic .page-hero { padding: 40px 0 24px; }
.hc-topic .page-hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -1.2px;
}

/* ─── Video block (parameterized — embed or placeholder) ─── */
.hc-video-wrap { margin: 8px 0 40px; }
.hc-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--rk-primary-900);
  border: 1px solid var(--rk-hairline);
}
.hc-video iframe,
.hc-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Placeholder state — shown until the video for this topic is produced. */
.hc-video.is-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 32px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(47, 125, 85, 0.16) 0%, transparent 60%),
    var(--rk-primary-50);
  border: 1px dashed var(--rk-border);
  color: var(--rk-primary-700);
}
.hc-video.is-placeholder .play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--rk-primary);
  color: var(--rk-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -10px rgba(47, 125, 85, 0.6);
}
.hc-video.is-placeholder .label {
  font-family: var(--rk-font-display);
  font-size: 18px;
  font-weight: 600;
}
.hc-video.is-placeholder .sub { font-size: 14px; color: var(--rk-muted); }
.hc-transcript { margin-top: 14px; }
.hc-transcript summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rk-primary);
}
.hc-transcript summary::-webkit-details-marker { display: none; }
.hc-transcript[open] summary .chev { transform: rotate(90deg); }
.hc-transcript .chev { transition: transform 0.2s; }
.hc-transcript .transcript-body {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--rk-muted);
  max-width: var(--max-prose);
}

/* ─── Walkthrough screenshot figure ─── */
.hc-figure {
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rk-hairline);
  background: var(--rk-paper);
}
.hc-figure img { width: 100%; height: auto; display: block; }
/* Portrait phone captures render at natural-ish size, centered, not stretched. */
.hc-figure.phone { max-width: 400px; margin-left: auto; margin-right: auto; }
.hc-figure figcaption {
  font-size: 13.5px;
  color: var(--rk-muted);
  padding: 12px 18px;
  border-top: 1px solid var(--rk-hairline);
}
/* Inline note / tip callout inside a walkthrough */
.hc-note {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--rk-primary);
  background: var(--rk-primary-50);
  border-radius: 0 14px 14px 0;
  font-size: 16px;
  line-height: 1.65;
}
.hc-note strong { color: var(--rk-primary-700); }

/* ─── Related topics ─── */
.hc-related { margin-top: 56px; }
.hc-related h2 {
  font-family: var(--rk-font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}
.hc-related ul { list-style: none; display: grid; gap: 10px; }
.hc-related a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #FFF;
  border: 1px solid var(--rk-hairline);
  border-radius: 14px;
  text-decoration: none;
  color: var(--rk-ink);
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.hc-related a:hover {
  transform: translateX(2px);
  box-shadow: 0 12px 26px -16px rgba(20, 33, 23, 0.2);
  border-color: rgba(47, 125, 85, 0.25);
}
.hc-related a .arr { color: var(--rk-primary); flex-shrink: 0; }

/* ─── "Still stuck?" support card (topic + hub footer) ─── */
.hc-support {
  margin-top: 64px;
  background: var(--rk-mute);
  border-radius: 24px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.hc-support .copy h3 {
  font-family: var(--rk-font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--rk-primary-700);
}
.hc-support .copy p { color: var(--rk-primary-700); opacity: 0.8; margin-top: 6px; font-size: 15px; }
.hc-support a.support-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rk-primary);
  color: var(--rk-paper);
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 22px -8px rgba(47, 125, 85, 0.5);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.hc-support a.support-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(47, 125, 85, 0.6);
}

.hc-updated { font-size: 13.5px; color: var(--rk-muted); margin-top: 40px; }

/* ════════════════════════════════════════════
   HUB (public/help.html)
   ════════════════════════════════════════════ */

/* visual-only search — reserved for a future client-side index (plan D-5) */
.hc-hubsearch {
  position: relative;
  max-width: 560px;
  margin: 28px 0 8px;
}
.hc-hubsearch input {
  width: 100%;
  padding: 18px 22px 18px 54px;
  border-radius: 999px;
  border: 1px solid var(--rk-hairline);
  background: #FFF;
  font-family: inherit;
  font-size: 16px;
  color: var(--rk-muted);
  box-shadow: 0 6px 18px -10px rgba(20, 33, 23, 0.12);
}
.hc-hubsearch input::placeholder { color: var(--rk-muted); }
.hc-hubsearch svg {
  position: absolute;
  top: 50%; left: 22px;
  transform: translateY(-50%);
  color: var(--rk-muted);
}

.hc-section { padding: 56px 0 0; }
.hc-section-label {
  font-family: var(--rk-font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 6px;
}
.hc-section-label em { font-style: normal; color: var(--rk-primary); }
.hc-section-sub { color: var(--rk-muted); margin-bottom: 24px; max-width: 620px; }

/* Lesser-known features cards */
.hc-spotlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.hc-spotlight {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px 22px;
  background: var(--rk-paper);
  border: 1px solid var(--rk-hairline);
  border-radius: 18px;
  text-decoration: none;
  color: var(--rk-ink);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.hc-spotlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -18px rgba(20, 33, 23, 0.22);
  border-color: rgba(47, 125, 85, 0.3);
}
.hc-spotlight .badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rk-primary);
  background: var(--rk-primary-100);
  padding: 4px 10px;
  border-radius: 999px;
}
.hc-spotlight h3 {
  font-family: var(--rk-font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.hc-spotlight p { font-size: 14.5px; color: var(--rk-muted); line-height: 1.55; }
.hc-spotlight .go {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rk-primary);
}

/* Categorized topic lists */
.hc-cat-list { list-style: none; display: grid; gap: 8px; max-width: 760px; }
.hc-cat-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--rk-ink);
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
}
.hc-cat-list a:hover {
  background: #FFF;
  border-color: var(--rk-hairline);
  transform: translateX(2px);
}
.hc-cat-list a .arr { color: var(--rk-primary); flex-shrink: 0; }
.hc-cat-list a .txt strong { display: block; font-weight: 600; font-size: 16px; }
.hc-cat-list a .txt span { font-size: 13.5px; color: var(--rk-muted); }

@media (max-width: 1023px) {
  .hc-spotlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hc-spotlights { grid-template-columns: 1fr; }
  .hc-support { padding: 28px 24px; }
  .hc-support a.support-link { width: 100%; justify-content: center; }
}
