/* YES CMS 2.0.19.18 · official statute viewer and restrained legal text */
.standard-page-grid.official-statute-grid {
    display: block !important;
}

.statute-page-column {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
}

.statute-page-column .article-prose {
    max-width: none;
}

.official-statute-document {
    overflow: hidden;
    border: 1px solid rgba(18, 54, 84, .14);
    border-radius: 1rem;
    background: #fff;
}

.official-statute-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(18, 54, 84, .11);
    background: #f7f8fb;
}

.official-statute-toolbar > div:first-child {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.official-statute-toolbar > div:first-child > i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: .72rem;
    background: var(--brand, #393185);
    color: #fff;
    font-size: 1.1rem;
}

.official-statute-toolbar span,
.official-statute-toolbar strong,
.official-statute-toolbar small {
    display: block;
}

.official-statute-toolbar strong {
    color: #17212b;
    font-size: .96rem;
}

.official-statute-toolbar small {
    margin-top: .08rem;
    color: #667085;
    font-size: .79rem;
    line-height: 1.4;
}

.official-statute-actions {
    display: flex;
    flex: 0 0 auto;
    gap: .45rem;
}

.official-statute-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.official-statute-viewer {
    display: block;
    width: 100%;
    height: min(82vh, 980px);
    min-height: 720px;
    border: 0;
    background: #eceef2;
}

.official-statute-fallback {
    display: grid;
    justify-items: center;
    gap: .75rem;
    padding: 3rem 1rem;
    text-align: center;
}

.official-statute-fallback > i {
    color: var(--brand, #393185);
    font-size: 2rem;
}

/* English text version: conventional legal-document flow, without cards per clause. */
.statute-document {
    width: 100%;
    color: #202a36;
    font-size: .98rem;
    line-height: 1.72;
}

.statute-document > * {
    margin-top: 0 !important;
}

.statute-document-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.4rem !important;
    padding: .8rem .9rem;
    border-left: 4px solid var(--brand, #393185);
    background: rgba(57,49,133,.045);
}

.statute-document-icon {
    color: var(--brand, #393185);
    font-size: 1.15rem;
}

.statute-document-meta strong,
.statute-document-meta small { display: block; }
.statute-document-meta small { margin-top: .08rem; color: #667085; }

.statute-chapter-heading {
    margin: 2rem 0 1rem !important;
    padding-bottom: .45rem;
    border-bottom: 2px solid rgba(57,49,133,.2);
    text-align: center;
}

.statute-chapter-heading span {
    display: block;
    color: var(--brand, #393185);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.statute-chapter-heading h2 {
    margin: .15rem 0 0 !important;
    color: #17212b;
    font-size: 1.25rem !important;
}

.statute-section-heading {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 1.35rem 0 .55rem !important;
}

.statute-section-heading > span,
.statute-section-heading > i {
    color: var(--brand, #393185);
    font-size: .8rem;
    font-style: normal;
    font-weight: 800;
}

.statute-section-heading h2 {
    margin: 0 !important;
    color: #202a36;
    font-size: 1.05rem !important;
}

.statute-article {
    margin: 0 0 1rem;
    padding: 0 0 .85rem;
    border-bottom: 1px solid rgba(18,54,84,.1);
}

.statute-article > header {
    margin: 0 0 .35rem;
}

.statute-article > header span {
    color: #17212b;
    font-weight: 800;
}

.statute-article-body,
.statute-general-body,
.statute-preamble {
    display: grid;
    gap: .45rem;
    padding: 0;
}

.statute-article p,
.statute-general-body p,
.statute-preamble p,
.statute-clause p,
.statute-point p {
    margin: 0 !important;
    color: #344054;
    font-size: inherit;
    line-height: inherit;
}

.statute-clause,
.statute-point {
    display: grid;
    grid-template-columns: 2.35rem minmax(0,1fr);
    gap: .45rem;
    align-items: start;
}

.statute-clause > span,
.statute-point > span {
    color: #344054;
    font-weight: 700;
    text-align: right;
}

@media (max-width: 767.98px) {
    .official-statute-document { border-radius: .8rem; }
    .official-statute-toolbar { align-items: flex-start; flex-direction: column; padding: .72rem; }
    .official-statute-actions { width: 100%; }
    .official-statute-actions .btn { flex: 1 1 0; justify-content: center; }
    .official-statute-viewer { height: 72vh; min-height: 520px; }
    .statute-document { font-size: .93rem; line-height: 1.65; }
    .statute-clause, .statute-point { grid-template-columns: 1.85rem minmax(0,1fr); gap: .38rem; }
}
