/* Layout: minimal padding, flex for mobile + desktop */
.page-body {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 0.75rem;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Headings */
.article-heading {
    font-size: 1.6rem;
    line-height: 1.25;
    margin: 0.25rem 0 0.5rem 0;
    font-weight: 700;
}

.article-subheading {
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0.5rem 0 0.25rem 0;
    font-weight: 600;
}

.article-subsubheading {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0.5rem 0 0.25rem 0;
    font-weight: 600;
}

/* Sections */
.article-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Paragraphs */
.article-paragraph {
    margin: 0.25rem 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #222;
}

/* Lists */
.article-list {
    margin: 0.25rem 0;
    padding-left: 1.25rem;
}

.article-list li {
    margin: 0.25rem 0;
    line-height: 1.5;
    font-size: 0.98rem;
}

.region-list { list-style: disc; }
.ordered-list { list-style: decimal; }
.filename-list { list-style: circle; }

/* Table: narrow, mobile-friendly */
.table-wrap {
    display: flex;
    flex-direction: column;
    overflow-x: auto; /* Safe on small screens */
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    table-layout: fixed;
}

.summary-table th,
.summary-table td {
    border: 1px solid #d7d7d7;
    padding: 0.5rem;
    vertical-align: top;
    word-wrap: break-word;
}

.summary-table th {
    font-weight: 600;
    background: #f6f6f6;
}

/* Reduce visual bulk on very small screens */
@media (max-width: 420px) {
    .article-heading { font-size: 1.35rem; }
    .article-subheading { font-size: 1.05rem; }
    .article-paragraph, .article-list li { font-size: 0.95rem; }
    .summary-table { font-size: 0.92rem; }
}

/* Desktop enhancements while keeping compact spacing */
@media (min-width: 800px) {
    .page-body {
        flex-direction: column; /* content stacks; keep readable width */
        gap: 1rem;
        padding: 0.75rem 0.5rem;
        max-width: 1000px;
    }

    .article-section {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}
