/* ==========================================================================
   1C:RSV Docs — shared stylesheet for guide.html and tools.html
   Matches the new landing design (cream bg + violet accent, Anthropic-style).
   Covers both naming conventions used by the two files.
   ========================================================================== */

:root {
  /* Surfaces — same warm cream palette as landing */
  --bg-base:     #FAF8F5;
  --bg-surface:  #FFFFFF;
  --bg-elevated: #F1EDE6;
  --bg-sunken:   #F5F1EA;
  --bg-code:     #1B1B1F;

  /* Borders */
  --border:      #E8E3DA;
  --border-hi:   #D4CDC0;

  /* Text */
  --text:        #1A1A1A;
  --text-m:      #3F3B36;
  --text-muted:  #57534E;
  --text-dim:    #8B8680;
  --text-dd:     #8B8680;

  /* Accent — electric violet */
  --accent:       #7C3AED;
  --accent-hi:    #6D28D9;
  --accent-soft:  rgba(124, 58, 237, 0.08);
  --accent-soft2: rgba(124, 58, 237, 0.16);
  --accent-glow:  0 18px 50px -12px rgba(124, 58, 237, 0.25);

  /* Secondary status colors (used in badges/tables — kept but adapted) */
  --green:       #16A34A;
  --green-soft:  rgba(22, 163, 74, 0.10);
  --amber:       #D97706;
  --amber-soft:  rgba(217, 119, 6, 0.10);
  --indigo:      #7C3AED; /* collapsed onto accent for unity */
  --indigo-soft: rgba(124, 58, 237, 0.10);
  --pink:        #DB2777;
  --pink-soft:   rgba(219, 39, 119, 0.10);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Sizing */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --sidebar-w: 280px;
  --header-h:  64px;

  /* Typography scale */
  --fs-xs:    0.75rem;
  --fs-sm:    0.85rem;
  --fs-side:  0.9rem;
  --fs-base:  1rem;
  --fs-body:  1.02rem;
  --fs-md:    1.08rem;
  --fs-lg:    1.14rem;
  --fs-h4:    1.08rem;
  --fs-h3:    1.32rem;
  --fs-h2:    1.65rem;
  --fs-h1:    2.1rem;
  --fs-mono:  0.92rem;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Отступ при переходе по якорю = ровно высота шапки (64px).
     Верхняя граница якорного h2 оказывается точно под шапкой —
     воздух между ними создаётся padding-top самого h2 (48px). */
  scroll-padding-top: 64px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s;
}
a:hover { color: var(--accent-hi); }

strong { color: var(--text); font-weight: 600; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ==========================================================================
   Header (both .header + .header-logo-badge AND .logo-badge conventions)
   ========================================================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(250, 248, 245, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — covers both naming conventions */
.header-logo,
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: var(--fs-md);
}
.header-logo-badge,
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 8px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.header-title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
}
.header-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-left: 4px;
}

.header-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: var(--fs-side);
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
  transition: all .15s;
}
.header-back:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-links a {
  color: var(--text-muted);
  font-size: var(--fs-side);
  font-weight: 500;
}
.header-links a:hover { color: var(--text); }

.version-badge {
  padding: 4px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft2);
  color: var(--accent);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* Hamburger / menu toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.menu-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* ==========================================================================
   Sidebar (both .sidebar-link + .nav-link conventions)
   ========================================================================== */

.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sunken);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 24px 0;
  z-index: 50;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  z-index: 40;
}
.sidebar-overlay.open { display: block; }

/* Section titles — tools.html uses .sidebar-section-title, guide.html uses .nav-section-title */
.sidebar-section {
  padding: 0 16px;
  margin-bottom: 18px;
}
.sidebar-section-title,
.nav-section-title {
  display: block;
  padding: 0 10px 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.nav-section { margin-bottom: 10px; }

/* Links — both .sidebar-link and .nav-link */
.sidebar-link,
.nav-link {
  display: block;
  padding: 7px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--fs-side);
  border-radius: 6px;
  line-height: 1.4;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover,
.nav-link:hover {
  color: var(--text);
  background: var(--accent-soft);
}
.sidebar-link.active,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-link.active {
  border-left-color: var(--accent);
}
.sidebar-link.indent,
.nav-link.sub {
  padding-left: 26px;
  font-size: var(--fs-sm);
}
.sidebar-link.indent2 {
  padding-left: 40px;
  font-size: var(--fs-xs);
}

/* Sidebar badges (count markers) */
.sidebar-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.badge-green  { background: var(--green-soft);  color: var(--green); }
.badge-amber  { background: var(--amber-soft);  color: var(--amber); }
.badge-indigo { background: var(--accent-soft); color: var(--accent); }

/* ==========================================================================
   Main content — LEFT-ALIGNED (key fix for guide.html)
   ========================================================================== */

.main {
  margin-left: var(--sidebar-w);
  margin-top: var(--header-h);
  padding: 48px 56px 120px;
  min-height: calc(100vh - var(--header-h));
  max-width: calc(100% - var(--sidebar-w));
}

/* Both naming conventions use max-width 860, left-aligned */
.main-inner,
.content {
  max-width: 860px;
  margin: 0;           /* NOT 0 auto — left-aligned */
  padding: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.18;
  color: var(--text);
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  letter-spacing: -0.015em;
  /* scroll-margin-top намеренно не задаём — используется только scroll-padding-top
     на html, чтобы избежать суммирования эффектов */
}
/* Якорные h2 (на которые ведут ссылки навигации) — делаем разделом:
   убираем margin, заменяем на padding + граница сверху. Это даёт чистое
   визуальное разделение и правильное позиционирование при переходе по якорю:
   граница оказывается сразу под фиксированной шапкой, заголовок ниже, а
   предыдущий контент полностью уходит за шапку. */
h2[id] {
  margin-top: 0;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
/* Первый h2 (обычно "Что такое плагин") без верхней границы — он идёт
   сразу после title страницы и не требует разделителя. */
main h2[id]:first-of-type {
  border-top: 0;
  padding-top: 0;
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
  /* scroll-margin-top намеренно не задаём — используется только scroll-padding-top
     на html, чтобы избежать суммирования эффектов */
}
h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-m);
  /* scroll-margin-top намеренно не задаём — используется только scroll-padding-top
     на html, чтобы избежать суммирования эффектов */
}
p {
  margin-bottom: 14px;
  color: var(--text-muted);
}
ul, ol {
  margin-bottom: 14px;
  padding-left: 24px;
  color: var(--text-muted);
}
li { margin-bottom: 6px; }
li strong { color: var(--text); }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.subtitle {
  font-size: var(--fs-base);
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}
.subtitle a { color: var(--accent); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: var(--fs-h1);
  margin-bottom: 14px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  margin-bottom: 20px;
}
.hero-meta span { display: flex; align-items: center; gap: 4px; }
.hero p {
  font-size: var(--fs-body);
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.72;
}

/* ==========================================================================
   Inline code and code blocks
   ========================================================================== */

code,
.ic {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-elevated);
  color: var(--accent-hi);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

pre {
  background: var(--bg-code);
  border: 1px solid #2A2A30;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 22px;
  overflow-x: auto;
  line-height: 1.65;
  position: relative;
}
pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--fs-mono);
  color: #E4E4E7;
  white-space: pre;
}
/* Basic syntax highlighting */
pre .kw   { color: #C084FC; }
pre .str  { color: #86EFAC; }
pre .num  { color: #FBBF24; }
pre .cmt  { color: #71717A; font-style: italic; }
pre .prop { color: #7DD3FC; }

pre::before {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #71717A;
  font-family: var(--font-sans);
}

/* ==========================================================================
   Blockquote
   ========================================================================== */

blockquote {
  padding: 16px 22px;
  margin-bottom: 18px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p { color: var(--text); margin-bottom: 6px; }
blockquote p:last-child { margin-bottom: 0; }
blockquote em { color: var(--text); font-style: italic; }
blockquote strong { color: var(--text); }

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
}
table,
.profiles-table,
.modes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
}
thead th,
.profiles-table th,
.modes-table th {
  text-align: left;
  padding: 14px 18px;
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-hi);
  white-space: nowrap;
}
tbody td,
.profiles-table td,
.modes-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
tbody tr:nth-child(odd)  { background: var(--bg-surface); }
tbody tr:nth-child(even) { background: var(--bg-sunken); }
tbody tr:last-child td,
.profiles-table tr:last-child td,
.modes-table tr:last-child td { border-bottom: none; }
tbody td code {
  font-size: 0.84em;
  white-space: nowrap;
}

.profiles-table .profile-name { font-weight: 700; white-space: nowrap; }
.profiles-table .pn-green  { color: var(--green); }
.profiles-table .pn-amber  { color: var(--amber); }
.profiles-table .pn-indigo { color: var(--accent); }

.modes-table td:first-child {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   Profile sections (tools.html)
   ========================================================================== */

.profile-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.profile-header h2 {
  margin: 0;
  padding: 0;
  border: 0;
}
.profile-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green  { background: var(--green);  box-shadow: 0 0 10px var(--green-soft); }
.dot-amber  { background: var(--amber);  box-shadow: 0 0 10px var(--amber-soft); }
.dot-indigo { background: var(--accent); box-shadow: 0 0 10px var(--accent-soft2); }

.profile-desc {
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 720px;
  line-height: 1.7;
}
.profile-note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
  color: var(--text);
}
.profile-note strong { color: var(--text); }
.profile-warning {
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
  color: var(--text);
}
.profile-warning strong { color: var(--amber); }

/* ==========================================================================
   Group header + tool card (tools.html)
   ========================================================================== */

.group-header {
  margin-top: 40px;
  margin-bottom: 22px;
}
.group-header h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.group-desc {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.6;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 16px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tool-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 8px 20px -10px rgba(26, 26, 26, 0.12);
}
.tool-card-name {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.tool-card-title {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.tool-card p {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: 1.72;
}
.tool-card ul {
  margin: 10px 0;
  padding-left: 22px;
}
.tool-card li {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.6;
}

.tool-card.border-green  { border-left: 3px solid var(--green); }
.tool-card.border-amber  { border-left: 3px solid var(--amber); }
.tool-card.border-indigo { border-left: 3px solid var(--accent); }

/* ==========================================================================
   Code trees
   ========================================================================== */

.code-tree,
.tree-block {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 24px 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1.85;
  overflow-x: auto;
  color: var(--text-muted);
  white-space: pre;
}
.code-tree .tree-root,
.tree-block .node {
  color: var(--accent);
  font-weight: 700;
}
.code-tree .tree-branch,
.tree-block .branch {
  color: var(--text-dim);
}
.code-tree .tree-cat,
.tree-block .op {
  font-weight: 600;
}
.code-tree .cat-meta,
.code-tree .cat-spec,
.code-tree .cat-form,
.code-tree .cat-ext,
.code-tree .cat-dcs,
.code-tree .cat-common,
.tree-block .op {
  color: var(--accent-hi);
}
.tree-block .desc { color: var(--text-dim); }
.code-tree .tree-op { color: var(--text-muted); }

/* ==========================================================================
   Operations (tools.html: ops-section, op-item, etc)
   ========================================================================== */

.ops-section {
  margin-top: 32px;
  margin-bottom: 32px;
}
.ops-section h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.op-item { margin-bottom: 16px; }
.op-name {
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  color: var(--accent);
  font-weight: 600;
}
.op-name.sm { font-size: var(--fs-base); }
.op-desc {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.6;
}
.op-subheader {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.op-group {
  padding: 14px 0 14px 18px;
  margin-left: 4px;
}
.op-group.form-green { border-left: 2px solid var(--green); }
.op-group.dcs-pink   { border-left: 2px solid var(--pink); }
.op-group-stack { display: grid; gap: 8px; }
.op-group-stack.tight { gap: 6px; }

/* ==========================================================================
   Help box / limitations
   ========================================================================== */

.help-box,
.limitations {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 24px 0;
}
.help-box h4,
.limitations h4 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.help-box p,
.limitations p {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin-bottom: 14px;
}
.help-box p.sub {
  font-size: var(--fs-base);
  color: var(--text-dim);
  margin-top: 12px;
}
.help-box ul,
.limitations ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.help-box li,
.limitations li {
  padding: 6px 0;
  font-size: var(--fs-body);
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}
.help-box li .hint { color: var(--text-dim); }
.limitations li { color: var(--text-dim); }

/* ==========================================================================
   Back-to-top button
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #FFFFFF;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.5);
  background: var(--accent-hi);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
    width: 280px;
    z-index: 80;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { z-index: 79; }

  .main {
    margin-left: 0;
    max-width: 100%;
    padding: 28px 24px 80px;
  }
  .hamburger,
  .menu-toggle { display: flex; }
  .header-subtitle { display: none; }

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.35rem; }

  .tool-card { padding: 20px 22px; }
  .code-tree,
  .tree-block { padding: 18px 20px; font-size: 0.84rem; }
}

@media (max-width: 600px) {
  .header-back,
  .header-links a.hide-mobile { display: none; }
  .main { padding: 22px 16px 60px; }
  pre { padding: 14px 18px; font-size: 0.84rem; }

  .profiles-table,
  .modes-table,
  table { font-size: 0.82rem; }
  .profiles-table th, .profiles-table td,
  .modes-table th, .modes-table td,
  thead th, tbody td { padding: 9px 12px; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .header,
  .sidebar,
  .sidebar-overlay,
  .hamburger,
  .menu-toggle,
  .back-to-top { display: none !important; }
  .main { margin: 0; max-width: 100%; padding: 0; }
  body { background: #fff; color: #000; }
  h1, h2, h3, h4, strong { color: #000; }
  p, li, td { color: #333; }
  a { color: #6D28D9; }
  pre, code, .ic, .code-tree, .tree-block {
    background: #F3F4F6;
    color: #1E293B;
    border-color: #D1D5DB;
  }
  code, .ic { color: #6D28D9; }
  table, th, td { border: 1px solid #D1D5DB; }
  blockquote { background: #F3F4F6; border-left-color: #6D28D9; }
}
