/*
 * Общий CSS для 10 information-статей (Pattern A), см. план "Унификация 10 information-статей".
 * Заменяет 10 разных inline <style> блоков, ранее хранившихся прямо в oc_information_description.
 * Палитра/шрифты — НЕ новый дизайн, а то же оформление, что было в оригинальных inline-стилях
 * (сверено по всем 10 статьям): серо-синие заголовки #2c3e50, зелёные CTA-кнопки #28a745,
 * светло-серый/лавандовый градиент hero, светлые блоки кода. Просто вынесено в один файл вместо
 * 10 копий. home.css не трогаем — у него свой, отдельный дизайн главной страницы.
 */

/* ── Breadcrumbs (information.tpl) ──                                                        */
/* Разморожены в SEO 2026 Phase 6 (были мёртвым кодом, if(false) в information.tpl) — раньше   */
/* никогда не рендерились, поэтому у них не было своего стиля и они падали на голый Bootstrap   */
/* .breadcrumb (серая плашка, "/" через content). Живёт вне .article-content (сиблинг .row      */
/* внутри .container в information.tpl), поэтому без префикса .article-content — но всё равно   */
/* только на information-страницах, т.к. подключается тем же addStyle() в ControllerInformationInformation. */
.breadcrumb {
    background: transparent;
    list-style: none;
    margin: 0 0 10px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.breadcrumb > li {
    display: inline-block;
}

.breadcrumb > li + li:before {
    content: "/";
    padding: 0 10px;
    color: #ccc;
}

.breadcrumb > li a {
    color: #6c7a89;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb > li a:hover {
    color: #28a745;
}

.breadcrumb > li:first-child a {
    display: inline-flex;
    align-items: center;
}

.breadcrumb > li:first-child a svg {
    display: block;
}

.breadcrumb > li:last-child a {
    color: #2c3e50;
    font-weight: 600;
    pointer-events: none;
    cursor: default;
}

.article-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    line-height: 1.6;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.article-content h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-content > h2:first-of-type,
.article-content .hero + h2 {
    margin-top: 1em;
}

/* Hero */
.article-content .hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
}

.article-content .hero h2 {
    margin-top: 0;
    font-size: 2.2em;
    color: #2c3e50;
}

.article-content .hero p {
    font-size: 1.2em;
    color: #555;
    max-width: 760px;
    margin: 0 auto 15px;
}

/* Buttons */
.article-content .cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.article-content .cta-button:hover {
    background-color: #218838;
}

.article-content .cta-button.secondary {
    background-color: transparent;
    border: 2px solid #28a745;
    color: #28a745;
}

.article-content .cta-button.secondary:hover {
    background-color: #f0fff4;
}

/* "Coming soon" badge — Live API Playground stubs (Phase 8 not shipped yet). Softens the H2 so it
   reads as an announced roadmap item, not a broken/missing feature — see SEO-аудит Calendar, §7.3. */
.article-content .badge-coming-soon {
    display: inline-block;
    vertical-align: middle;
    font-size: 0.4em;
    font-weight: 600;
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 12px;
    padding: 3px 10px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Get Started / CTA block at the bottom of the article — plain block, same button as everywhere
   else on the page (no special colored banner in the original design). */
.article-content .cta-block {
    margin: 30px 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Bullet lists (Why Choose / Use Cases) */
.article-content ul.checklist,
.article-content ul.use-cases {
    margin-bottom: 15px;
    padding-left: 20px;
}

.article-content ul.checklist li,
.article-content ul.use-cases li {
    margin-bottom: 10px;
}

/* Two-column layout (category tables / country lists next to text) */
.article-content .two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.article-content .two-col ul {
    flex: 1;
    min-width: 240px;
}

/* Data tables: Key Endpoints, metrics, category/country lists */
.article-content table,
.article-content .metrics-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content table th,
.article-content table td,
.article-content .metrics-table th,
.article-content .metrics-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.article-content table th,
.article-content .metrics-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: bold;
}

.article-content table code {
    background-color: #f8f9fa;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Code / request-response examples */
.article-content pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-content code {
    font-family: 'Courier New', Courier, monospace;
}

.article-content .api-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.article-content .api-link:hover {
    text-decoration: underline;
}

/* FAQ */
.article-content .faq {
    margin: 40px 0;
}

.article-content .faq details {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.article-content .faq summary {
    font-weight: bold;
    cursor: pointer;
}

.article-content .faq p {
    margin: 10px 0 0;
}

/* Pricing block wrapper (used around the {{pricing_group}} partial) */
.article-content .pricing-block {
    margin: 20px 0 30px;
}

/* ── Карточки тарифов — тот же компактный .pricing-table/.pricing-plan, что был в         ──
   ── оригинальных inline <style> статей (НЕ крупный дизайн главной .pricing-grid/         ──
   ── .pricing-card). Значения (цена, лимиты) теперь берутся из модуля pricing_group        ──
   ── вместо хардкода, но вид карточки — как раньше.                                        ── */

.pricing-group-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.pricing-table {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.pricing-plan {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pricing-plan h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
}

.pricing-plan h3 a {
    color: inherit;
    text-decoration: none;
}

.pricing-plan p {
    margin: 0 0 10px;
}

.pricing-plan .buy-now {
    border: none;
    cursor: pointer;
}

/* ── Code Examples: вкладки языков (cURL/Python/JS/PHP/Go) + кнопка Copy ──                */
/* Новый компонент (SEO 2026, Phase 5/6, компонент №13 Master Spec) — до этого на сайте не   */
/* было ни одной страницы с переключаемыми примерами кода, только статичный один блок pre/code.*/
/* Поведение — assets/js/code-tabs.js. Разметка ожидается такой:                             */
/*   <div class="code-tabs">                                                                 */
/*     <div class="code-tabs-nav">                                                           */
/*       <button class="code-tab-btn" data-tab="curl">cURL</button> ...                      */
/*       <button class="code-tab-copy" type="button">Copy</button>                           */
/*     </div>                                                                                */
/*     <div class="code-tab-panel" data-panel="curl"><pre><code>...</code></pre></div> ...    */
/*   </div>                                                                                  */
.article-content .code-tabs {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.article-content .code-tabs-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 8px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.article-content .code-tab-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: #555;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    border-bottom: 2px solid transparent;
}

.article-content .code-tab-btn:hover {
    color: #2c3e50;
}

.article-content .code-tab-btn.active {
    color: #28a745;
    border-bottom: 2px solid #28a745;
    background: #fff;
}

.article-content .code-tab-copy {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    color: #555;
    font-size: 0.85em;
    cursor: pointer;
    align-self: center;
}

.article-content .code-tab-copy:hover {
    border-color: #28a745;
    color: #28a745;
}

.article-content .code-tab-copy.copied {
    border-color: #28a745;
    background: #28a745;
    color: #fff;
}

.article-content .code-tab-panel {
    display: none;
}

.article-content .code-tab-panel.active {
    display: block;
}

.article-content .code-tab-panel pre {
    margin: 0;
    border-radius: 0;
}

/* ── /financial-data-api-guide исключение: сохраняет собственную ToC/шаговую структуру ── */
.article-content .container-guid {
    font-family: 'Inter', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.article-content .container-guid h1 {
    color: #1a202c;
}

.article-content .container-guid h2,
.article-content .container-guid h3,
.article-content .container-guid h4 {
    color: #2d3748;
}

.article-content .container-guid p {
    color: #4a5568;
}

.article-content .container-guid a:not(.cta-button) {
    color: #2563eb;
    text-decoration: none;
}

.article-content .container-guid a:not(.cta-button):hover {
    text-decoration: underline;
}

.article-content .container-guid .toc {
    background: #f7fafc;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0 30px;
}

.article-content .container-guid .step {
    margin: 30px 0;
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
}
