.rules-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.rules-toc {
    margin: 20px;
    padding: 10px 60px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.rules-toc-title {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.rules-toc-link {
    display: block;
    color: #111;
}

.rules-toc-chapter {
    margin-top: 0.5em;
    font-size: 18px;
    font-weight: bold;
}

.rules-toc-section {
    margin-left: 20px;
    font-size: 16px;
}

.rules-toc-article {
    display: none;
}

.rules-toc-paragraph,
.rules-toc-subparagraph,
.rules-toc-item {
    display: none;
}

.rules-document {
    margin: 0;
}

.rule-unit {
    text-align: start;
}

.rule-chapter {
    color: #f00;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
}

.rule-chapter:not(:last-child) {
    border-bottom: 1px solid #000;
}

.rule-section {
    margin-top: 1rem;
    font-size: 18px;
    font-weight: bold;
}

.rule-article {
    margin-top: 0.85rem;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.rule-paragraph {
    margin-left: 20px;
    margin-top: 0.45rem;
    margin-bottom: 0.45rem;
    color: #555;
    font-size: 14px;
    font-weight: normal;
}

.rule-subparagraph {
    margin-left: 40px;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    color: #777;
    font-size: 12px;
    font-style: italic;
    font-weight: normal;
}

.rule-item {
    margin-left: 60px;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    color: #777;
    font-size: 12px;
    font-weight: normal;
}

.rule-heading {
    display: inline;
}

.참조 {
    color: #3498db;
    text-decoration: none;
}

.rule-content {
    display: inline;
    font-weight: 400;
}

.rule-chapter > .rule-content,
.rule-section > .rule-content,
.rule-article > .rule-content {
    display: block;
    margin: 0.75rem 0 0.75rem 20px;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    text-align: start;
}

.rule-section > .rule-content {
    margin-top: 0.5rem;
    font-size: 14px;
}

@media (max-width: 768px) {
    .rules-toc {
        margin: 12px 0;
        padding: 10px 18px;
    }

    .rule-chapter {
        font-size: 24px;
    }
}
