/*
Theme Name: Site Builder Generated Theme
Description: Сгенерирована плагином Site Builder. Шапка: newspaper-masthead, футер: card-columns, стиль: noir-gold.
Version: 1.2.4
Author: Site Builder Plugin
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ===== Reset & base layout ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sb-font-body, "Segoe UI", system-ui, -apple-system, sans-serif);
    font-size: var(--sb-font-size, 16px);
    line-height: var(--sb-line-height, 1.6);
    color: var(--sb-color-text, #222);
    background: var(--sb-color-bg, #fff);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sb-color-link, #2271b1); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Site wrapper ===== */
.sb-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.sb-site-content {
    flex: 1;
    padding: 32px 20px;
    max-width: var(--sb-content-max-width, 920px);
    width: 100%;
    margin: 0 auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sb-font-heading, var(--sb-font-body, sans-serif));
    line-height: 1.3;
    margin: 1.4em 0 0.6em;
}
h1 { font-size: 2.2em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.3em; }

/* ===== Content elements ===== */
.sb-content figure { margin: 24px 0; }
.sb-content figure img { border-radius: 4px; }
.sb-content figcaption {
    font-size: 0.9em;
    color: var(--sb-color-muted, #666);
    text-align: center;
    margin-top: 6px;
}
.sb-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.sb-content th, .sb-content td {
    padding: 8px 12px;
    border: 1px solid var(--sb-color-border, #e2e8f0);
    text-align: left;
}
.sb-content th {
    background: var(--sb-color-bg-alt, #f8f9fa);
    font-weight: 600;
}
.sb-content blockquote {
    border-left: 4px solid var(--sb-color-accent, #2271b1);
    margin: 20px 0;
    padding: 12px 20px;
    background: var(--sb-color-bg-alt, #f8f9fa);
    color: var(--sb-color-muted, #555);
}
.sb-content code {
    background: var(--sb-color-bg-alt, #f0f0f1);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}
.sb-content pre {
    background: var(--sb-color-bg-alt, #f0f0f1);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
}

/* ===== Variant-specific styles (header, footer, color scheme) injected below ===== */

/* noir-gold — dark luxe casino scheme.
   Near-black anchor, champagne-gold accent like felt trim and chip edging,
   warm off-white text. Dark-first, high contrast, restrained. */
:root {
    --sb-color-bg:              #0b0b0d;
    --sb-color-bg-alt:          #16161a;
    --sb-color-text:            #f4f1e8;
    --sb-color-muted:           #9a958a;
    --sb-color-link:            #d4af37;
    --sb-color-border:          #2a2a2f;
    --sb-color-accent:          #d4af37;

    --sb-font-body:             "Georgia", "Times New Roman", serif;
    --sb-font-heading:          "Georgia", "Times New Roman", serif;
    --sb-font-size:             16px;
    --sb-line-height:           1.7;
    --sb-content-max-width:     1080px;
}

body.sb-site {
    background: var(--sb-color-bg);
    color: var(--sb-color-text);
    font-family: var(--sb-font-body);
    font-size: var(--sb-font-size);
    line-height: var(--sb-line-height);
}

body.sb-site h1,
body.sb-site h2,
body.sb-site h3,
body.sb-site h4 {
    font-family: var(--sb-font-heading);
    color: var(--sb-color-text);
    letter-spacing: 0.01em;
}

body.sb-site a {
    color: var(--sb-color-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.sb-site a:hover {
    color: var(--sb-color-text);
}

/* Gold rule under H2 — a chip-trim touch that ties the scheme to the casino
   theme without adding markup. Kept inline-block so it hugs the heading. */
body.sb-site .sb-content h2 {
    padding-bottom: 6px;
    border-bottom: 2px solid var(--sb-color-accent);
    display: inline-block;
}

/* Readable selection on the dark base */
body.sb-site ::selection {
    background: var(--sb-color-accent);
    color: var(--sb-color-bg);
}


/* ===== Header variant: newspaper-masthead ===== */
/* templates/theme/headers/newspaper-masthead.css */

.sb-header-newspaper-masthead {
    position: relative;
    z-index: 1000;
    background: var(--sb-color-bg, #fff);
}

.sb-header-newspaper-masthead a {
    text-decoration: none;
}

.sb-header-newspaper-masthead a::after {
    display: none !important;
    content: none !important;
}

.sb-header-newspaper-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px 0;
}

/* Top utility row: date / edition markers flanking the masthead */
.sb-newspaper-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--sb-font-body, sans-serif);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sb-color-muted, #6b7280);
    padding-bottom: 10px;
}

.sb-newspaper-top-row span {
    white-space: nowrap;
}

/* Double rule above masthead */
.sb-header-newspaper-masthead::before,
.sb-newspaper-rule-top {
    content: '';
    display: block;
    height: 4px;
    border-top: 2px solid var(--sb-color-text, #111);
    border-bottom: 1px solid var(--sb-color-text, #111);
}

/* Masthead brand block */
.sb-header-newspaper-brand {
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 20px;
    padding: 18px 0;
    position: relative;
}

.sb-header-newspaper-brand a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-color-text, #111);
    font-family: var(--sb-font-heading, Georgia, serif);
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
}

.sb-header-newspaper-brand img {
    max-height: 100px;
    width: auto;
    display: block;
}

/* Double rule below masthead */
.sb-newspaper-rule-bottom {
    height: 4px;
    border-top: 1px solid var(--sb-color-text, #111);
    border-bottom: 2px solid var(--sb-color-text, #111);
    margin-bottom: 0;
}

/* Nav strip with vertical dividers */
.sb-header-newspaper-nav-row {
    align-items: center;
    padding: 4px 0;
    position: relative;
}

.sb-header-newspaper-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.sb-newspaper-item {
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.sb-newspaper-item:not(:first-child)::before {
    content: '|';
    color: var(--sb-color-border, #ccc);
    margin: 0 4px;
    font-weight: 300;
}

.sb-newspaper-link,
.sb-newspaper-pill-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--sb-color-text, #111);
    font-family: var(--sb-font-body, sans-serif);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s ease;
}

.sb-newspaper-link:hover,
.sb-newspaper-pill-link:hover {
    color: var(--sb-color-link, #a41e1e);
}

.sb-newspaper-item.current-menu-item .sb-newspaper-link,
.sb-newspaper-item.current-menu-item .sb-newspaper-pill-link {
    color: var(--sb-color-link, #a41e1e);
}

.sb-newspaper-pill {
    display: flex;
    align-items: center;
    position: relative;
}

.sb-newspaper-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sb-color-muted, #6b7280);
    padding: 4px;
    margin-left: -2px;
    transition: color 0.2s ease;
}

.sb-newspaper-trigger:hover {
    color: var(--sb-color-link, #a41e1e);
}

.sb-newspaper-caret {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sb-newspaper-item.sb-dropdown-open .sb-newspaper-caret {
    transform: rotate(180deg);
}

/* Dropdown styled like a boxed classified-ads column */
.sb-newspaper-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    transform: translateY(-6px);
    max-width: 560px;
    background: var(--sb-color-bg, #fff);
    border: 2px solid var(--sb-color-text, #111);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 999;
}

.sb-newspaper-item.sb-dropdown-open .sb-newspaper-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sb-newspaper-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 2px;
    max-height: 400px;
    overflow-y: auto;
}

.sb-newspaper-dropdown-grid::-webkit-scrollbar {
    width: 6px;
}

.sb-newspaper-dropdown-grid::-webkit-scrollbar-track {
    background: var(--sb-color-bg-alt, #f2f2f2);
}

.sb-newspaper-dropdown-grid::-webkit-scrollbar-thumb {
    background: var(--sb-color-text, #111);
}

.sb-newspaper-dropdown a {
    color: var(--sb-color-text, #111);
    padding: 9px 12px;
    display: block;
    font-family: var(--sb-font-body, sans-serif);
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px dotted var(--sb-color-border, #ccc);
    transition: color 0.15s ease;
}

.sb-newspaper-dropdown a:hover {
    color: var(--sb-color-link, #a41e1e);
}

/* View All button */
.sb-newspaper-view-all {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px !important;
    background: var(--sb-color-link, #a41e1e) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    grid-column: 1 / -1;
    margin-top: 4px;
    font-family: var(--sb-font-body, sans-serif) !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sb-newspaper-view-all:hover {
    background: var(--sb-color-link-hover, #8a1717) !important;
    transform: scale(1.02) !important;
}

.sb-newspaper-view-all svg {
    flex-shrink: 0;
}

/* Mobile toggle */
.sb-header-newspaper-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid var(--sb-color-text, #111);
    cursor: pointer;
    color: var(--sb-color-text, #111);
    font-family: var(--sb-font-heading, Georgia, serif);
    font-size: 20px;
    flex-shrink: 0;
}

.sb-header-newspaper-toggle {
    display: none;
}

@media (max-width: 900px) {
    .sb-header-newspaper-inner {
        padding: 18px 20px 0;
    }

    .sb-header-newspaper-toggle {
        display: block;
    }

    .sb-header-newspaper-brand {
        padding: 18px 0;
        justify-content: space-between;
    }

    .sb-header-newspaper-brand a {
        font-size: 36px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    .sb-header-newspaper-brand img {
        max-height: 75px;
    }

    .sb-header-newspaper-nav-row {
        justify-content: flex-start;
        padding: 10px 0;
    }

    .sb-header-newspaper-menu {
        display: none;
    }

    .sb-header-newspaper-menu.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .sb-newspaper-item {
        display: block;
        position: relative;
        border-bottom: 1px dotted var(--sb-color-border, #ccc);
    }

    .sb-newspaper-item:not(:first-child)::before {
        content: none;
    }

    .sb-newspaper-link,
    .sb-newspaper-pill-link {
        padding: 12px 4px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    .sb-newspaper-pill {
        justify-content: space-between;
    }

    .sb-newspaper-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: none;
        border: 1px solid var(--sb-color-border, #ccc);
        border-top: none;
        background: var(--sb-color-bg, #fff);
        padding: 0 8px 8px;
        display: none;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
        z-index: 1001;
    }

    .sb-newspaper-item.sb-dropdown-open .sb-newspaper-dropdown {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .sb-newspaper-dropdown-grid {
        grid-template-columns: 1fr;
        max-height: 60vh;
    }

    .sb-newspaper-dropdown a {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
}

@media (max-width: 600px) {
    .sb-header-newspaper-inner {
        padding: 18px 20px 0;
    }

    .sb-header-newspaper-brand a {
        font-size: 28px;
    }

    .sb-header-newspaper-brand img {
        max-height: 60px;
    }

    .sb-newspaper-top-row {
        font-size: 10px;
        padding-bottom: 8px;
    }

    .sb-newspaper-top-row span:nth-child(2) {
        display: none;
    }

    .sb-header-newspaper-toggle {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sb-newspaper-link,
    .sb-newspaper-pill-link,
    .sb-newspaper-dropdown,
    .sb-newspaper-trigger,
    .sb-newspaper-caret {
        transition: none !important;
    }
}

.sb-header-newspaper-brand h1 {
    margin: 0 !important;
}

body.sb-site h1 {
    padding-bottom: 0;
}

/* ===== Footer variant: card-columns ===== */
/* card-columns — 3 колонки, каждая в виде карточки с рамкой */
.sb-footer-card {
    background: var(--sb-color-bg, #fff);
    border-top: 1px solid var(--sb-color-border, #e5e7eb);
    padding: 48px 20px 24px;
    color: var(--sb-color-text, #111);
    margin-top: 48px;
}
.sb-footer-card-inner {
    max-width: var(--sb-content-max-width, 920px);
    margin: 0 auto;
}
.sb-footer-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.sb-regulators-title{
margin-top: 0;

}
h3{
font-size: 0.75em !mportant;}
.sb-footer-card-col {
    background: var(--sb-color-bg-alt, #f9fafb);
    border: 1px solid var(--sb-color-border, #e5e7eb);
    border-radius: 12px;
    padding: 22px 24px;
    font-size: 0.9em;
}
.sb-footer-card-col img {
    max-height: 40px;
    width: auto;
    margin-bottom: 10px;
    display: block;
}
.sb-footer-card-name {
    font-weight: 700;
    font-size: 1.2em;
    color: var(--sb-color-text);
    margin-bottom: 8px;
}
.sb-footer-card-tagline {
    margin: 0;
    color: var(--sb-color-muted, #6b7280);
    font-size: 0.95em;
    line-height: 1.6;
}
.sb-footer-card-heading {
    margin: 0 0 14px;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sb-color-muted, #6b7280);
    font-weight: 700;
}
.sb-footer-card .sb-menu {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 9px;
}
.sb-footer-card .sb-menu a {
    color: var(--sb-color-text);
    text-decoration: none;
    transition: color 0.15s;
}
.sb-footer-card .sb-menu a:hover {
    color: var(--sb-color-link);
    text-decoration: underline;
}
.sb-footer-card-contact { margin: 0 0 16px; }
.sb-footer-card-contact a {
    color: var(--sb-color-link);
    text-decoration: none;
    font-weight: 500;
}
.sb-footer-card-contact a:hover { text-decoration: underline; }
.sb-footer-card-copyright {
    padding-top: 20px;
    border-top: 1px solid var(--sb-color-border, #e5e7eb);
    color: var(--sb-color-muted, #6b7280);
    font-size: 0.85em;
    text-align: center;
}
@media (max-width: 800px) {
    .sb-footer-card-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 420px) {
    h1 {font-size: 1.8em;}
    h2 {font-size: 1.4em;}
}

