/* ============================================================
   Кастомные стили проекта Cash Bee.
   Подключается в base.html.twig после собранного Tailwind app.css.
   ============================================================ */

/* ------------------------------------------------------------
   Утилиты-добавки к Tailwind (которых не оказалось в собранном app.css)
   ------------------------------------------------------------ */
.mb-10 { margin-bottom: 2.5rem; }   /* 40px */

/* ------------------------------------------------------------
   .signup-steps — горизонтальный шаг-индикатор регистрации:
   круги с цифрами, соединённые тонкими линиями, с подписями.
   ------------------------------------------------------------ */
.signup-steps {
    display: flex;
    align-items: flex-start;
    list-style: none;
    padding-left: 0;
    /* margin не задаём — иначе перетирает Tailwind-утилиты mx-auto/mb-* */
}
.signup-steps li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    min-width: 0;
}
.signup-steps li::before {
    content: '';
    position: absolute;
    top: 20px;                          /* центр круга 40px */
    left: calc(-50% + 20px);            /* от правого края предыдущего круга */
    width: calc(100% - 40px);
    height: 2px;
    background: var(--color-surface-2, #ECECEC);
    z-index: 0;
}
.signup-steps li:first-child::before { display: none; }

/* ------------------------------------------------------------
   .page-content — типографика для HTML, приходящего из админки
   (статические страницы, статьи, новости).
   ------------------------------------------------------------ */
.page-content {
    color: var(--color-ink, #191815);
    font-size: 16px;
    line-height: 1.65;
}

.page-content > *:first-child { margin-top: 0; }
.page-content > *:last-child  { margin-bottom: 0; }

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    color: var(--color-ink-heading, #191815);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.page-content h1 { font-size: 32px; margin: 32px 0 16px; }
.page-content h2 { font-size: 28px; margin: 32px 0 16px; }
.page-content h3 { font-size: 22px; margin: 28px 0 12px; }
.page-content h4 { font-size: 18px; margin: 24px 0 10px; }

.page-content p { margin: 0 0 16px; }

.page-content ul,
.page-content ol {
    margin: 0 0 16px;
    padding-left: 1.5em;
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.page-content li         { margin: 6px 0; }
.page-content li::marker { color: var(--color-brand-green, #1EA66C); }

.page-content a {
    color: var(--color-brand-green, #1EA66C);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.page-content a:hover { text-decoration: none; }

.page-content strong,
.page-content b      { font-weight: 600; }
.page-content em,
.page-content i      { font-style: italic; }

.page-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--color-brand-green, #1EA66C);
    background: var(--color-surface, #F2F2F2);
    border-radius: 12px;
    color: var(--color-ink-muted, #585858);
}

.page-content code {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    background: var(--color-surface-2, #ECECEC);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.92em;
}

.page-content pre {
    background: var(--color-surface-2, #ECECEC);
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 16px 0;
}
.page-content pre code { background: transparent; padding: 0; }

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}

.page-content hr {
    border: 0;
    border-top: 1px solid var(--color-surface-2, #ECECEC);
    margin: 24px 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid var(--color-surface-2, #ECECEC);
    border-radius: 12px;
    overflow: hidden;
}
.page-content th,
.page-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-surface-2, #ECECEC);
}
.page-content th {
    background: var(--color-surface, #F2F2F2);
    font-weight: 500;
}
.page-content tr:last-child td { border-bottom: 0; }
