/* Community Guidelines / Help Center - Vice Community */
/* Design from newswire-redesign (3) */

/* ── Page Header: directly under header, no gap, full width from sidebar to edge ── */
.guidelines-page-header {
    margin-top: 0;
    margin-left: 4.5vw;
    width: calc(100vw - 4.5vw);
    border-bottom: 0.069vw solid var(--wiki-border, #e2e5ea);
    background: var(--wiki-paper, #fff);
    padding: 1.4vw 1.5vw 1.1vw;
}

.guidelines-page-header-inner {
    max-width: none;
    margin: 0;
    margin-left: 2vw;
    display: flex;
    align-items: center;
    gap: 1.2vw;
    padding: 0;
}

.guidelines-page-header-icon {
    width: 3.2vw;
    height: 3.2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6vw;
    background: linear-gradient(135deg, #4f6ef7, #6c8cff);
    box-shadow: 0 0.3vw 1vw rgba(79, 110, 247, 0.25);
    flex-shrink: 0;
}

.guidelines-page-header-icon [data-lucide] {
    width: 1.6vw;
    height: 1.6vw;
    color: #fff;
}

.guidelines-page-header h1 {
    font-size: 1.5vw;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--wiki-text, #111318);
    margin: 0;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.guidelines-page-header p {
    font-size: 0.85vw;
    color: var(--wiki-muted, #667085);
    margin: 0;
}

/* ── Wrapper: grid area (Sections + center + ad) ── */
.guidelines-page-wrapper {
    margin-left: 4.5vw;
    margin-bottom: 2vw;
    margin-right: auto;
    width: calc(100vw - 4.5vw);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.guidelines-page-wrapper h2,
.guidelines-page-wrapper h3,
.guidelines-page-wrapper h4 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Grid Layout ── */
.guidelines-grid {
    max-width: none;
    margin: 0 auto 0 0;
    display: grid;
    grid-template-columns: 17.75vw 1fr 16vw; /* left, center, ad 16vw */
    gap: 1.4vw; /* больше отступ между левым и центральным */
    padding: 1.4vw 1.4vw 1.4vw 3.5vw;
}

/* ── Sidebar (Sections) — +12% scale ── */
.guidelines-sidebar-card {
    border-radius: 0.68vw;
    border: 0.069vw solid var(--wiki-border, #e2e5ea);
    background: var(--wiki-paper, #fff);
    overflow: hidden;
}

.guidelines-sidebar-header {
    border-bottom: 0.069vw solid var(--wiki-border, #e2e5ea);
    background: linear-gradient(90deg, #4f6ef7, #6c8cff);
    padding: 0.56vw 0.9vw;
    font-size: 0.8vw;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

.guidelines-nav {
    padding: 0.35vw;
}

.guidelines-nav-item {
    display: flex;
    align-items: center;
    gap: 0.56vw;
    width: 100%;
    padding: 0.56vw 0.68vw;
    border-radius: 0.45vw;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    color: var(--wiki-text-secondary, #374151);
}

.guidelines-nav-item:hover {
    background: var(--wiki-subtle-bg, #f8f9fb);
    color: #4f6ef7;
}

.guidelines-nav-item.active {
    background: var(--wiki-accent-bg, #f0f4ff);
    color: #4f6ef7;
}

.guidelines-nav-item .nav-icon {
    width: 0.95vw;
    height: 0.95vw;
    flex-shrink: 0;
    color: var(--wiki-muted, #667085);
}

.guidelines-nav-item.active .nav-icon {
    color: #4f6ef7;
}

.guidelines-nav-item .nav-label {
    flex: 1;
    font-size: 0.87vw;
    font-weight: 600;
}

.guidelines-nav-item .nav-count {
    min-width: 1.56vw;
    padding: 0.12vw 0.34vw;
    text-align: center;
    border-radius: 0.28vw;
    font-size: 0.67vw;
    font-weight: 700;
    background: var(--wiki-border-light, #f0f1f3);
    color: var(--wiki-muted, #667085);
}

.guidelines-nav-item.active .nav-count {
    background: #4f6ef7;
    color: #fff;
}

/* ── Info Card ── */
.guidelines-info-card {
    margin-top: 0.9vw;
    border-radius: 0.68vw;
    border: 0.069vw solid var(--wiki-border, #e2e5ea);
    background: var(--wiki-paper, #fff);
    padding: 0.9vw;
}

.guidelines-info-card p.info-title {
    font-size: 0.8vw;
    font-weight: 600;
    color: var(--wiki-text, #111318);
    margin: 0;
}

.guidelines-info-card p.info-text {
    font-size: 0.73vw;
    line-height: 1.6;
    color: var(--wiki-muted, #667085);
    margin: 0.17vw 0 0;
}

/* ── Content Panel (central container) — +12% scale ── */
.guidelines-content-panel {
    border-radius: 0.68vw;
    border: 0.069vw solid var(--wiki-border, #e2e5ea);
    background: var(--wiki-paper, #fff);
    overflow: hidden;
    margin-bottom: 0.9vw;
}

.guidelines-content-header {
    display: flex;
    align-items: center;
    gap: 0.68vw;
    padding: 0.78vw 1.12vw;
    border-bottom: 0.069vw solid var(--wiki-border, #e2e5ea);
}

.guidelines-content-header-icon {
    width: 2.46vw;
    height: 2.46vw;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5vw;
    background: var(--wiki-accent-bg, #f0f4ff);
}

.guidelines-content-header-icon [data-lucide] {
    width: 1.23vw;
    height: 1.23vw;
    color: #4f6ef7;
}

.guidelines-content-header h2 {
    font-size: 1.12vw;
    font-weight: 700;
    color: var(--wiki-text, #111318);
    margin: 0;
}

.guidelines-content-header .section-count {
    font-size: 0.76vw;
    color: var(--wiki-muted, #667085);
}

.guidelines-content-actions {
    display: flex;
    gap: 0.34vw;
    margin-left: auto;
}

.guidelines-content-actions button {
    border-radius: 0.39vw;
    border: 0.069vw solid var(--wiki-border, #e2e5ea);
    background: transparent;
    padding: 0.34vw 0.67vw;
    font-size: 0.76vw;
    font-weight: 500;
    color: var(--wiki-muted, #667085);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.guidelines-content-actions button:hover {
    border-color: rgba(79, 110, 247, 0.3);
    color: #4f6ef7;
}

/* ── Search Bar ── */
.guidelines-search {
    border-bottom: 0.069vw solid var(--wiki-border, #e2e5ea);
    padding: 0.45vw 1.12vw;
}

.guidelines-search-inner {
    display: flex;
    align-items: center;
    gap: 0.45vw;
    border-radius: 0.45vw;
    border: 0.069vw solid var(--wiki-border, #e2e5ea);
    background: var(--wiki-subtle-bg, #f8f9fb);
    padding: 0.39vw 0.67vw;
    transition: all 0.2s ease;
}

.guidelines-search-inner:focus-within {
    border-color: rgba(79, 110, 247, 0.4);
    background: var(--wiki-paper, #fff);
    box-shadow: 0 0 0 0.207vw rgba(79, 110, 247, 0.06);
}

.guidelines-search-inner [data-lucide] {
    width: 0.9vw;
    height: 0.9vw;
    color: #a0a8b8;
}

.guidelines-search-inner input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.87vw;
    color: var(--wiki-text, #111318);
    outline: none;
    font-family: inherit;
}

.guidelines-search-inner input::placeholder {
    color: #a0a8b8;
}

/* ── Accordion ── */
.guidelines-accordion-item {
    border-bottom: 0.069vw solid var(--wiki-border, #e2e5ea);
    transition: background 0.2s ease;
}

.guidelines-accordion-item:last-child {
    border-bottom: none;
}

.guidelines-accordion-item:hover {
    background: var(--wiki-subtle-bg, #fafbfc);
}

.guidelines-accordion-item.open {
    background: var(--wiki-subtle-bg, #f8f9fb);
}

.guidelines-accordion-trigger {
    display: flex;
    align-items: center;
    gap: 0.67vw;
    width: 100%;
    padding: 0.73vw 1.12vw;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.guidelines-accordion-trigger .acc-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.57vw;
    height: 1.57vw;
    border-radius: 0.34vw;
    background: var(--wiki-accent-bg, #f0f4ff);
    font-size: 0.69vw;
    font-weight: 700;
    color: #4f6ef7;
    flex-shrink: 0;
}

.guidelines-accordion-trigger .acc-title {
    flex: 1;
    font-size: 0.92vw;
    font-weight: 600;
    color: var(--wiki-text, #111318);
    transition: color 0.2s ease;
}

.guidelines-accordion-item.open .acc-title {
    color: #4f6ef7;
}

.guidelines-accordion-trigger .acc-chevron {
    width: 0.95vw;
    height: 0.95vw;
    color: var(--wiki-muted, #667085);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.guidelines-accordion-item.open .acc-chevron {
    transform: rotate(180deg);
    color: #4f6ef7;
}

.guidelines-accordion-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.guidelines-accordion-item.open .guidelines-accordion-body {
    max-height: 35vw;
    opacity: 1;
}

.guidelines-accordion-body-inner {
    padding: 0 1.12vw 0.9vw 3.36vw;
    font-size: 0.87vw;
    line-height: 1.8;
    color: var(--wiki-text-secondary, #374151);
}

/* HTML content from DB: paragraphs, lists, emphasis, links */
.guidelines-accordion-body-inner p {
    margin: 0 0 0.6vw;
}
.guidelines-accordion-body-inner p:last-child {
    margin-bottom: 0;
}
.guidelines-accordion-body-inner ul,
.guidelines-accordion-body-inner ol {
    margin: 0.5vw 0;
    padding-left: 1.5vw;
}
.guidelines-accordion-body-inner li {
    margin-bottom: 0.25vw;
}
.guidelines-accordion-body-inner b,
.guidelines-accordion-body-inner strong {
    font-weight: 600;
    color: var(--wiki-text, #111318);
}
.guidelines-accordion-body-inner a {
    color: var(--wiki-accent, #4f6ef7);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.1vw;
}
.guidelines-accordion-body-inner a:hover {
    color: #6c8cff;
}
.guidelines-accordion-body-inner code {
    font-family: ui-monospace, monospace;
    font-size: 0.85em;
    padding: 0.1vw 0.35vw;
    background: rgba(0,0,0,0.06);
    border-radius: 0.25vw;
}

/* ── Bottom Cards ── */
.guidelines-bottom-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.67vw;
}

.guidelines-bottom-card {
    display: flex;
    align-items: flex-start;
    gap: 0.56vw;
    border-radius: 0.68vw;
    border: 0.069vw solid var(--wiki-border, #e2e5ea);
    background: var(--wiki-paper, #fff);
    padding: 0.9vw;
}

.guidelines-bottom-card .bc-icon {
    width: 2.02vw;
    height: 2.02vw;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45vw;
    flex-shrink: 0;
}

.guidelines-bottom-card .bc-icon--green { background: #ecfdf5; }
.guidelines-bottom-card .bc-icon--amber { background: #fffbeb; }
.guidelines-bottom-card .bc-icon--blue  { background: var(--wiki-accent-bg, #f0f4ff); }

.guidelines-bottom-card .bc-icon [data-lucide] {
    width: 1.01vw;
    height: 1.01vw;
}

.guidelines-bottom-card .bc-icon--green [data-lucide] { color: #10b981; }
.guidelines-bottom-card .bc-icon--amber [data-lucide] { color: #f59e0b; }
.guidelines-bottom-card .bc-icon--blue  [data-lucide] { color: #4f6ef7; }

.guidelines-bottom-card h4 {
    font-size: 0.84vw;
    font-weight: 700;
    color: var(--wiki-text, #111318);
    margin: 0;
}

.guidelines-bottom-card p {
    font-size: 0.73vw;
    line-height: 1.5;
    color: var(--wiki-muted, #667085);
    margin: 0.12vw 0 0;
}

/* ── Right Ad — 16vw, отступ до центра = отступ до правого края (gap 1.4vw = padding-right) ── */
.guidelines-ad-wrapper {
    position: sticky;
    top: 6vw;
    align-self: start;
}

.guidelines-ad-wrapper .ad-slot {
    width: 16vw;
}

/* ── Sticky sidebar ── */
.guidelines-sticky-sidebar {
    position: sticky;
    top: 6vw;
}

