/*
Theme Name: SugarBye
Theme URI: https://sugarbye.ru
Author: SugarBye Team
Author URI: https://sugarbye.ru
Description: Премиальная доказательная тема для сервиса снижения сахара SugarBye.ru по стандартам ВОЗ 2026.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: sugarbye
*/

@layer base {
  html, body {
    margin: 0;
    padding: 0;
  }
  body {
    overscroll-behavior: none;
  }
  main > :first-child {
    margin-top: 0 !important;
  }
  main > :last-child {
    margin-bottom: 0 !important;
  }
}

::-webkit-scrollbar {
  display: none;
}

/* Post & FAQ rich content */
.sb-prose {
  color: #404946;
}
.sb-prose > * + * {
  margin-top: 1rem;
}
.sb-prose h2,
.sb-prose h3,
.sb-prose h4 {
  color: #00362d;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 1.75rem;
}
.sb-prose h2 {
  font-size: 1.5rem;
}
.sb-prose h3 {
  font-size: 1.25rem;
}
.sb-prose p {
  line-height: 1.75;
}
.sb-prose strong {
  color: #131b2e;
  font-weight: 600;
}
.sb-prose a {
  color: #006a61;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sb-prose a:hover {
  color: #00362d;
}
.sb-prose ul,
.sb-prose ol {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sb-prose ul {
  list-style: disc;
}
.sb-prose ol {
  list-style: decimal;
}
.sb-prose blockquote {
  border-left: 4px solid #6bd8cb;
  background: #f2f3ff;
  border-radius: 0.5rem;
  padding: 0.85rem 1.1rem;
  font-style: italic;
  color: #131b2e;
}
.sb-prose img {
  border-radius: 0.75rem;
  height: auto;
  max-width: 100%;
}
.sb-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.sb-prose th,
.sb-prose td {
  border: 1px solid #dae2fd;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.sb-prose thead th {
  background: #f2f3ff;
  color: #00362d;
}

/* Pagination */
.sb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}
.sb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  background: #eaedff;
  color: #404946;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.sb-pagination .page-numbers:hover {
  background: #e2e7ff;
  color: #131b2e;
}
.sb-pagination .page-numbers.current {
  background: #00362d;
  color: #ffffff;
}
.sb-pagination .page-numbers.dots {
  background: transparent;
  color: #707976;
}

/* Post tags */
.single-post .wp-post-tag,
.sb-prose + nav a[rel="tag"] {
  display: inline-flex;
}
.single article a[rel="tag"] {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  background: #eaedff;
  color: #404946;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.single article a[rel="tag"]:hover {
  background: #e2e7ff;
  color: #131b2e;
}
