/*
  Styling for page-help.js's "?" button + right-hand sidebar. Uses the
  host page's own design tokens so it looks native wherever it's
  included.
*/
.ph-button {
  position: fixed; top: 20px; right: 24px; z-index: 47;
  width: 34px; height: 34px; border-radius: 100px; border: 1px solid var(--rule);
  background: var(--card); color: var(--ink-soft); box-shadow: var(--shadow-sm);
  font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 15px;
  display: none; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease);
}
.ph-button:hover { color: var(--ink); border-color: var(--ink-faint); box-shadow: var(--shadow-md); transform: scale(1.05); }
.ph-button:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.ph-overlay {
  display: none; position: fixed; inset: 0; background: var(--overlay-bg); z-index: 46;
}
.ph-overlay.active { display: block; }

.ph-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100vw;
  background: var(--card); border-left: 1px solid var(--rule); box-shadow: var(--shadow-lg);
  z-index: 48; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s var(--ease);
  overflow: hidden;
}
.ph-panel.active { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .ph-panel { transition: none; }
}
.ph-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 20px 16px; border-bottom: 1px solid var(--rule); flex: none;
}
.ph-title {
  font-family: 'Geist', system-ui, sans-serif; font-weight: 650; letter-spacing: -0.01em;
  font-size: 18px; color: var(--ink); margin: 0;
}
.ph-close {
  background: none; border: none; font-size: 19px; color: var(--ink-soft); line-height: 1;
  width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease);
}
.ph-close:hover { background: var(--paper-2); color: var(--ink); }
.ph-close:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.ph-body { flex: 1; overflow-y: auto; padding: 20px; }
.ph-section-title {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
  margin: 22px 0 8px;
}
.ph-section-title:first-child { margin-top: 0; }
.ph-section-body { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.ph-rule { margin: 24px 0 16px; border-top: 1px solid var(--rule); }
.ph-restart-tour {
  background: var(--card); color: var(--ink); border: 1.5px solid var(--rule);
  padding: 8px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.ph-restart-tour:hover { background: var(--paper-2); }
.ph-restart-tour:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  .ph-panel { width: 100vw; }
}
