/* Layout: lean spacing to avoid excessive padding/margins */
.page-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-size: 1.6rem;
    margin: 0.25rem 0 0.5rem 0;
    line-height: 1.25;
}

/* Sections use flex for consistency across desktop/mobile */
.section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Typography */
.paragraph {
    font-size: 1rem;
    line-height: 1.6;
    color: #222;
    margin: 0.25rem 0;
}

.subheading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin: 0.5rem 0 0.25rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #ddd;
}

.minor-heading {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0.25rem 0;
    color: #222;
}

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

.list.ordered {
    list-style: decimal;
}

.list li {
    margin: 0.35rem 0;
}

/* Tables (kept compact for mobile compatibility) */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 0.25rem 0;
}

.table.compact th,
.table.compact td {
    padding: 0.4rem 0.5rem;
}

.table th,
.table td {
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

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

/* Responsive: keep everything readable and narrow on small screens */
@media (max-width: 768px) {
    .page-body {
        padding: 0.5rem;
        max-width: 100%;
    }
    .page-title {
        font-size: 1.35rem;
    }
    .subheading {
        font-size: 1.15rem;
    }
    .paragraph,
    .list,
    .table {
        font-size: 0.98rem;
    }
    .table.compact th,
    .table.compact td {
        padding: 0.35rem 0.45rem;
    }
}
