.content main {
    max-width: min(1120px, calc(100vw - 64px));
}

@media (min-width: 1600px) {
    .content main {
        max-width: 1240px;
    }
}

@media (max-width: 768px) {
    .content main {
        max-width: calc(100vw - 32px);
    }
}

.content main .table-wrapper {
    overflow-x: auto;
    margin: 1.25rem 0;
}

.content main .ahri-mermaid {
    margin: 1.25rem 0;
    overflow-x: auto;
}

.content main .ahri-mermaid svg {
    max-width: 100%;
}

.content main table {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    table-layout: fixed;
    font-size: 0.875em;
    line-height: 1.35;
}

.content main th,
.content main td {
    padding: 0.45rem 0.65rem;
    vertical-align: top;
    overflow-wrap: break-word;
}

.content main th {
    white-space: normal;
}

.content main td code,
.content main th code {
    font-size: 0.95em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.content main table:not(:has(th:nth-child(3))) th:nth-child(1),
.content main table:not(:has(th:nth-child(3))) td:nth-child(1) {
    width: 20%;
}

.content main table:not(:has(th:nth-child(3))) th:nth-child(2),
.content main table:not(:has(th:nth-child(3))) td:nth-child(2) {
    width: 80%;
}

.content main table:has(th:nth-child(3)):not(:has(th:nth-child(4))) th:nth-child(1),
.content main table:has(th:nth-child(3)):not(:has(th:nth-child(4))) td:nth-child(1) {
    width: 22%;
}

.content main table:has(th:nth-child(3)):not(:has(th:nth-child(4))) th:nth-child(2),
.content main table:has(th:nth-child(3)):not(:has(th:nth-child(4))) td:nth-child(2) {
    width: 24%;
}

.content main table:has(th:nth-child(3)):not(:has(th:nth-child(4))) th:nth-child(3),
.content main table:has(th:nth-child(3)):not(:has(th:nth-child(4))) td:nth-child(3) {
    width: 54%;
}

.content main table:has(th:nth-child(4)):not(:has(th:nth-child(5))) th:nth-child(1),
.content main table:has(th:nth-child(4)):not(:has(th:nth-child(5))) td:nth-child(1) {
    width: 22%;
}

.content main table:has(th:nth-child(4)):not(:has(th:nth-child(5))) th:nth-child(2),
.content main table:has(th:nth-child(4)):not(:has(th:nth-child(5))) td:nth-child(2) {
    width: 22%;
}

.content main table:has(th:nth-child(4)):not(:has(th:nth-child(5))) th:nth-child(3),
.content main table:has(th:nth-child(4)):not(:has(th:nth-child(5))) td:nth-child(3) {
    width: 22%;
}

.content main table:has(th:nth-child(4)):not(:has(th:nth-child(5))) th:nth-child(4),
.content main table:has(th:nth-child(4)):not(:has(th:nth-child(5))) td:nth-child(4) {
    width: 34%;
}

.content main table:has(th:nth-child(5)):not(:has(th:nth-child(6))) {
    min-width: 900px;
}

.content main table:has(th:nth-child(5)):not(:has(th:nth-child(6))) th:nth-child(1),
.content main table:has(th:nth-child(5)):not(:has(th:nth-child(6))) td:nth-child(1),
.content main table:has(th:nth-child(5)):not(:has(th:nth-child(6))) th:nth-child(2),
.content main table:has(th:nth-child(5)):not(:has(th:nth-child(6))) td:nth-child(2) {
    width: 14%;
}

.content main table:has(th:nth-child(5)):not(:has(th:nth-child(6))) th:nth-child(3),
.content main table:has(th:nth-child(5)):not(:has(th:nth-child(6))) td:nth-child(3) {
    width: 28%;
}

.content main table:has(th:nth-child(5)):not(:has(th:nth-child(6))) th:nth-child(4),
.content main table:has(th:nth-child(5)):not(:has(th:nth-child(6))) td:nth-child(4) {
    width: 20%;
}

.content main table:has(th:nth-child(5)):not(:has(th:nth-child(6))) th:nth-child(5),
.content main table:has(th:nth-child(5)):not(:has(th:nth-child(6))) td:nth-child(5) {
    width: 24%;
}

.content main table:has(th:nth-child(6)):not(:has(th:nth-child(7))) {
    min-width: 980px;
}

.content main table:has(th:nth-child(6)):not(:has(th:nth-child(7))) th:nth-child(1),
.content main table:has(th:nth-child(6)):not(:has(th:nth-child(7))) td:nth-child(1) {
    width: 16%;
}

.content main table:has(th:nth-child(6)):not(:has(th:nth-child(7))) th:nth-child(2),
.content main table:has(th:nth-child(6)):not(:has(th:nth-child(7))) td:nth-child(2) {
    width: 13%;
}

.content main table:has(th:nth-child(6)):not(:has(th:nth-child(7))) th:nth-child(3),
.content main table:has(th:nth-child(6)):not(:has(th:nth-child(7))) td:nth-child(3) {
    width: 12%;
}

.content main table:has(th:nth-child(6)):not(:has(th:nth-child(7))) th:nth-child(4),
.content main table:has(th:nth-child(6)):not(:has(th:nth-child(7))) td:nth-child(4) {
    width: 22%;
}

.content main table:has(th:nth-child(6)):not(:has(th:nth-child(7))) th:nth-child(5),
.content main table:has(th:nth-child(6)):not(:has(th:nth-child(7))) td:nth-child(5) {
    width: 14%;
}

.content main table:has(th:nth-child(6)):not(:has(th:nth-child(7))) th:nth-child(6),
.content main table:has(th:nth-child(6)):not(:has(th:nth-child(7))) td:nth-child(6) {
    width: 23%;
}

.content main table:has(th:nth-child(7)) {
    min-width: 1120px;
}

.content main table:has(th:nth-child(8)) {
    min-width: 1240px;
}

.content main table:has(th:nth-child(9)) {
    min-width: 1360px;
}

.content main table:has(th:nth-child(7)) th:first-child,
.content main table:has(th:nth-child(7)) td:first-child {
    width: 18%;
}

.content main td>p:first-child,
.content main th>p:first-child {
    margin-top: 0;
}

.content main td>p:last-child,
.content main th>p:last-child {
    margin-bottom: 0;
}

@media (min-width: 769px) {
    .nav-chapters {
        display: none;
    }
}
