/* ── Guidelines list container ─────────────────────────── */
.guidelines-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 4px;

}

.guidelines-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 2px 0;
}

/* ── Guideline items ───────────────────────────────────── */
.guideline-item {
    margin-bottom: 0;
}

.guideline-header {
    display: flex;
    align-items: center;
    gap: 0;
    height: 36px;
    cursor: pointer;
    user-select: none;
    background: white;
    border-radius: 8px;
    font-family: var(--mainFont);
    font-size: 0.86rem;
    color: rgb(20, 20, 20);
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.material-symbols-rounded.guideline-square {
    font-size: 24px;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    color: rgb(20, 20, 20);
    padding: 6px 8px;
    flex-shrink: 0;
    transition: color 0.2s, font-variation-settings 0.15s;
}

.guideline-header:hover .guideline-square,
.guideline-header:active .guideline-square {
    font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-rounded.guideline-square--approved {
    color: #30C047;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-rounded.guideline-square--denied {
    color: #FC1D2F;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-rounded.guideline-circle {
    font-size: 16px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    color: rgb(20, 20, 20);
    padding: 8px;
    flex-shrink: 0;
    transition: color 0.2s, font-variation-settings 0.15s;
}

.guideline-sub-item:hover .guideline-circle {
    font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-rounded.guideline-circle--approved {
    color: #30C047;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-rounded.guideline-circle--denied {
    color: #FC1D2F;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.guideline-name {
    font-size: 0.86rem;
    font-weight: normal;
    color: rgb(20, 20, 20);
    flex: 1;
}

.guideline-chevron {
    font-size: 1rem;
    color: #ccc;
    line-height: 1;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    padding-right: 8px;
}

.guideline-header--open .guideline-chevron {
    transform: rotate(90deg);
}

.guideline-header:hover .guideline-name {
    font-weight: 600;
}

.guideline-header:hover .guideline-chevron {
    color: #999;
}

/* ── Collapsible body ──────────────────────────────────── */
.guideline-body {
    display: none;
    padding-bottom: 6px;
}

.guideline-body--open {
    display: block;
}

.guideline-desc {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.45;
    padding-left: 36px;
    padding-right: 8px;
}

.guideline-sub {
    margin-top: 3px;
    padding-left: 8px;
    color: #aaa;
    font-size: 0.74rem;
}

/* ── Secondary (sub) items inside a primary body ───────── */
.guideline-sub-item {
    padding-bottom: 6px;
    padding-left: 24px;
}

.guideline-sub-item:last-child {
    padding-bottom: 0;
}

.guideline-sub-header {
    display: flex;
    align-items: center;
    height: 28px;
}

.guideline-sub-name {
    font-size: 0.83rem;
    color: rgb(20, 20, 20);
    font-weight: normal;
}

.guideline-sub-item .guideline-desc {
    padding-left: 32px;
    padding-right: 8px;
}

.guideline-sub-item .guideline-feedback {
    padding-left: 32px;
    padding-right: 8px;
}

.guideline-feedback {
    font-size: 0.78rem;
    line-height: 1.4;
    padding-left: 36px;
    padding-right: 8px;
    margin-top: 5px;
    margin-bottom: 4px;
    display: none;
}

.guideline-feedback--visible {
    display: block;
}

.guideline-feedback-list {
    margin: 3px 0;
    padding-left: 0;
    list-style: none;
}

.guideline-feedback-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 2px;
    line-height: 1.4;
}

.guideline-feedback-list--good {
    color: #1d7a32;
}

.guideline-feedback-list--good li::before {
    content: '✓';
    position: absolute;
    left: 0;
}

.guideline-feedback-list--bad {
    color: #c0392b;
}

.guideline-feedback-list--bad li::before {
    content: '✕';
    position: absolute;
    left: 0;
}

/* ── Review limit info ─────────────────────────────────── */
.review-limit-info {
    font-size: 0.72rem;
    color: #bbb;
    text-align: left;
    line-height: 1.2;
    padding-left: 4px;
}

/* ── Disabled publish button ───────────────────────────── */
.settingsButton--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 800px) {
    .guidelines-list {
        width: 100%;
        margin: 8px;
    }
}