/* ==========================================================================
   SHARED DOCS & POLICY PAGES STYLESHEET (STEM IoT Shop - LUXAS)
   Thống nhất design tokens, typography & responsive mobile cho 4 trang tài liệu
   ========================================================================== */
:root {
  --docs-bg: var(--bg-page, #f8fafc);
  --docs-card-bg: var(--bg-surface, #ffffff);
  --docs-border: var(--border-subtle, #e2e8f0);
  --docs-primary: var(--primary, #2563eb);
  --docs-primary-dark: var(--primary-hover, #1d4ed8);
  --docs-cyan: var(--cyan, #06b6d4);
  --docs-emerald: var(--emerald, #10b981);
  --docs-amber: var(--warning, #f59e0b);
  --docs-rose: var(--danger, #ef4444);
  --docs-text: var(--text-primary, #0f172a);
  --docs-muted: var(--text-muted, #64748b);
  --code-bg: var(--dark-navy, #090d16);
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--docs-bg);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--docs-text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 992px) {
  .docs-container,
  .docs-layout,
  .docs-main,
  .docs-sidebar,
  .docs-content,
  main,
  aside,
  article,
  section {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  pre,
  code {
    max-width: 100%;
  }

  pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .docs-header-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 14px;
    height: auto;
  }

  .docs-header-actions {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .docs-header-actions a,
  .docs-header-actions button {
    font-size: 12.5px;
    padding: 6px 10px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .docs-header-actions a,
  .docs-header-actions button {
    white-space: normal;
    line-height: 1.3;
  }
}

.code-header {
  flex-wrap: wrap;
  gap: 6px 12px;
}
