/* Linen Business docs — custom overrides */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --theme-color: #7a5c3a;           /* лляний теплий */
  --theme-color-secondary: #b89968;
  --text-color-base: #2b2420;
  --text-color-secondary: #5a4a3a;
  --base-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono-font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --base-font-size: 16px;
  --base-line-height: 1.65;
  --content-max-width: 820px;
  --sidebar-width: 300px;
  --sidebar-background: #faf8f4;
  --cover-background: linear-gradient(135deg, #faf8f4 0%, #e8dcc4 100%);
  --code-font-family: var(--mono-font-family);
}

/* Dark mode override */
[data-theme='dark'] {
  --theme-color: #d4b896;
  --text-color-base: #e8dcc4;
  --text-color-secondary: #b89968;
  --sidebar-background: #1e1a16;
  --cover-background: linear-gradient(135deg, #1e1a16 0%, #2b2420 100%);
}

/* Більше повітря у параграфах */
.markdown-section p {
  margin: 1em 0;
}

/* Чеклісти — більші галочки */
.markdown-section ul.task-list {
  list-style: none;
  padding-left: 1.2em;
}
.markdown-section input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.5em;
  vertical-align: middle;
  accent-color: var(--theme-color);
}

/* Таблиці — читабельніше */
.markdown-section table {
  display: table;
  width: 100%;
  margin: 1.2em 0;
  border-collapse: collapse;
}
.markdown-section table th {
  background: var(--sidebar-background);
  font-weight: 600;
  text-align: left;
}
.markdown-section table th,
.markdown-section table td {
  padding: 0.6em 0.9em;
  border: 1px solid rgba(122, 92, 58, 0.15);
}

/* Блок-цитати як "принципи" */
.markdown-section blockquote {
  border-left: 4px solid var(--theme-color);
  background: rgba(232, 220, 196, 0.25);
  padding: 0.8em 1.2em;
  margin: 1.2em 0;
  border-radius: 0 6px 6px 0;
  font-style: normal;
  color: var(--text-color-base);
}

/* Код-блоки */
.markdown-section pre {
  border-radius: 6px;
  font-size: 0.92em;
}

/* Заголовки */
.markdown-section h1 { font-size: 2rem; font-weight: 700; margin-top: 0.5em; }
.markdown-section h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2em; border-bottom: 1px solid rgba(122, 92, 58, 0.2); padding-bottom: 0.3em; }
.markdown-section h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.6em; }
.markdown-section h4 { font-size: 1.05rem; font-weight: 600; margin-top: 1.2em; }

/* Sidebar */
.sidebar { font-size: 0.95rem; }
.sidebar ul li a { font-weight: 400; }
.sidebar ul li.active > a { font-weight: 600; color: var(--theme-color); }

/* Cover */
.cover h1 { font-size: 3rem; font-weight: 700; }
.cover blockquote { border: none; background: transparent; font-size: 1.15rem; }

/* Друк */
@media print {
  .sidebar, .sidebar-toggle, .search, .pagination-nav, .docsify-count { display: none !important; }
  .content { margin-left: 0 !important; }
  .markdown-section { max-width: 100% !important; padding: 0 !important; }
  .markdown-section h2 { page-break-after: avoid; }
  .markdown-section pre, .markdown-section table { page-break-inside: avoid; }
  body { font-size: 11pt; }
}

/* Mobile */
@media (max-width: 600px) {
  .markdown-section h1 { font-size: 1.6rem; }
  .markdown-section h2 { font-size: 1.3rem; }
  .markdown-section { padding: 20px 15px; }
}
