.regulation-toc {
    margin: 1em 0 0;
    padding-bottom: .35em;
    border-bottom: 1px solid #c6c6c6;
}

.regulation-toc a,
.article-regulation-chapters .btn-link {
    display: block;
    width: fit-content;
    padding: .35em 0;
    font-weight: 700;
}

.regulation-toc a,
.article-regulation-chapters .btn-link,
a.regulation-citation,
a.regulation-note-number {
    color: #174997;
}

.regulation-citation,
.regulation-note,
.regulation-chapter {
    scroll-margin-top: 1rem;
}

.regulation-chapter {
    margin: .9em 0 .4em;
    color: #1b2634;
    font-size: 1.15em;
    font-weight: 700;
    line-height: 1.4;
}

.regulation-toc + .regulation-chapter {
    margin-top: .7em;
}

h3.regulation-article,
.regulation-article > summary {
    box-sizing: border-box;
    margin: 0;
    padding: .85em 1em;
    background: #17458f;
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.4;
}

details.regulation-article {
    border: 1px solid #2876c1;
}

h3.regulation-article + h3.regulation-article,
details.regulation-article + details.regulation-article {
    margin-top: 1px;
}

.regulation-article > summary {
    display: flex;
    align-items: baseline;
    gap: .85em;
    cursor: pointer;
    list-style: none;
}

.regulation-article > summary::-webkit-details-marker {
    display: none;
}

.regulation-article > summary::before {
    content: "";
    flex: 0 0 .55em;
    width: .55em;
    height: .55em;
    border: solid currentColor;
    border-width: 0 .15em .15em 0;
    transform: translateY(-.15em) rotate(45deg);
}

.regulation-article[open] > summary {
    background: #c4080b;
}

.regulation-article[open] > summary::before {
    transform: rotate(225deg);
}

.regulation-article > summary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.regulation-article > summary a {
    color: inherit;
    text-decoration: underline;
}

.regulation-article-body {
    padding: .65em 1em;
    overflow-wrap: anywhere;
    line-height: 1.65;
}

.regulation-article-body > :last-child {
    margin-bottom: 0;
}

.regulation-article-body img {
    max-width: 100%;
    height: auto;
}

.regulation-note {
    margin: .65em 0;
}

hr.regulation-note-divider {
    margin: .9em 0 .7em;
    border: 0;
    border-top: 1px solid #c6c6c6;
}

.regulation-citation-highlight {
    background-color: #fff2bd;
}

.article-regulation-toolbox {
    box-sizing: border-box;
    width: 100%;
    padding: .75em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.article-regulation-tools-label {
    margin: 0 0 .35em;
    border: 0;
    font-size: inherit;
    font-weight: 700;
}

.article-regulation-tools {
    display: flex;
    flex-wrap: wrap;
    gap: .4em;
}

.article-regulation-chapters {
    margin: .65em 0 0;
}

.article-regulation-chapter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 .6em;
}

.article-regulation-chapters .btn-link {
    text-align: left;
    white-space: normal;
}

.article-regulation-editor .cke_skin_kama .cke_focus,
.article-regulation-tools .btn:focus,
.article-regulation-chapters .btn:focus,
.article-regulation-dialog .btn:focus {
    outline: none;
}

.article-regulation-tools .btn:focus-visible,
.article-regulation-chapters .btn:focus-visible,
.article-regulation-dialog .btn:focus-visible {
    outline: 2px solid #666;
    outline-offset: 2px;
}

.article-regulation-dialog .form-control:focus {
    border-color: #777;
    outline: none;
    box-shadow: none;
}

.article-regulation-dialog {
    box-sizing: border-box;
    width: 740px;
    max-width: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
    padding: 1.25em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.article-regulation-dialog h3 {
    margin-top: 0;
}

.article-regulation-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5em;
    margin-top: 1em;
}

.article-regulation-dialog iframe {
    width: 100%;
    height: min(60vh, 34rem);
    border: 1px solid #ccc;
}

.regulation-preview-document {
    margin: 1em;
    font: 16px/1.5 Arial, sans-serif;
    overflow-wrap: anywhere;
}
