/* Справочник продавца Ozon (spravka.php). Поверх css/blog.css и css/blog_post.css: токены и
   каркас страницы общие с блогом, здесь только элементы справочника. */

.sp-hero h1 { max-width: 760px; }

/* Оглавление раздела */
.sp-hub { padding-top: 8px; padding-bottom: 56px; }
.sp-group { margin-top: 36px; }
.sp-group h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin: 0 0 14px;
  color: var(--text);
}
.sp-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.sp-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.sp-item:hover { border-color: var(--primary); box-shadow: var(--sh-lg); }
.sp-item strong { font-family: var(--font-heading); font-size: 17px; line-height: 1.3; }
.sp-item span { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.sp-item em { font-style: normal; font-size: 12px; color: var(--text-muted); margin-top: auto; }
.sp-hub-note {
  margin-top: 36px;
  font-size: 14px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.sp-hub-note a { color: var(--primary); }
@media (max-width: 700px) {
  .sp-list { grid-template-columns: 1fr; }
}

/* Страница ответа */
.sp-header .blog-wrap { display: block; }
.sp-header h1 { max-width: 860px; }
.sp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.sp-meta a { color: var(--primary); }

.sp-answer {
  margin: 0 0 28px;
  padding: 18px 22px;
  background: var(--primary-light);
  border: 1px solid rgba(94, 43, 154, .18);
  border-radius: var(--r);
}
.sp-answer-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.sp-answer p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }
.sp-answer code { font-size: 15px; }

.sp-formula {
  margin: 16px 0;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  font-family: 'Consolas', 'SF Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
}
.sp-note {
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--r-xs);
  font-size: 14px;
  color: var(--text-secondary);
}

.sp-table-wrap {
  margin: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sp-table-wrap table { margin: 0; min-width: 100%; }
.sp-table-wrap caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 6px;
}
.sp-table-wrap td, .sp-table-wrap th { white-space: normal; }

/* Словарь */
.sp-terms { margin: 0; }
.sp-term {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.sp-term:target { background: var(--primary-glass); }
.sp-term dt { font-family: var(--font-heading); font-weight: 700; font-size: 17px; }
.sp-term dt a { color: var(--text); text-decoration: none; }
.sp-term dd { margin: 4px 0 0; line-height: 1.6; color: var(--text-secondary); }
.sp-term-more { color: var(--primary); white-space: nowrap; }

/* Хронология */
.sp-timeline { list-style: none; margin: 0; padding: 0; }
.sp-timeline li {
  position: relative;
  padding: 0 0 22px 22px;
  border-left: 2px solid var(--border);
}
.sp-timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}
.sp-timeline time { font-size: 13px; font-weight: 700; color: var(--primary); }
.post-body .sp-timeline h2 { margin: 2px 0 6px; font-size: 18px; }
.sp-timeline p { margin: 0; }

.sp-sources, .sp-see { margin-top: 28px; }
.sp-sources h2, .sp-see h2 { font-family: var(--font-heading); font-size: 18px; margin: 0 0 8px; }
.sp-sources ul, .sp-see ul { margin: 0; padding-left: 20px; line-height: 1.8; }
.sp-sources a, .sp-see a { color: var(--primary); }

.sp-toc-gap { margin-top: 18px; }

/* Пути API (/v3/finance/transaction/list) - одно длинное слово без пробелов: на узком экране
   переносятся внутри, а не расширяют страницу. */
.sp-header h1, .sp-answer p, .post-body code, .sp-table-wrap td, .sp-item strong, .sp-timeline h2 { overflow-wrap: anywhere; }
