/* ================================
   Page Settings
================================ */
@page {
    size: A4; /* Standard portrait page */
    margin: 20mm;
}
@page wide-page {
    size: A4 landscape; /* Used for extra-wide tables */
    margin: 20mm;
}

/* ================================
   Heading Alignment
================================ */
/* Center-align all h1/h2 (#/## in Markdown) */
h1, h2 {
    text-align: center;
}

/* Left-align all other headings and paragraphs */
h3, h4, h5, h6, p {
    text-align: left;
}

/* ================================
   Font Selection
================================ */
em {
    font-style: italic;
}
body {
    font-family: "Georgia", "Times New Roman", serif;
}

/* ================================
   Table Styling
================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    font-size: 12px;
    white-space: normal;
    break-inside: avoid;
    page-break-inside: avoid;
}
th, td {
    border: 1px solid #000;
    padding: 4px;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
}

/* Allow page-breaks within table content if necessary */
thead, tbody, tr, td, th {
    page-break-inside: auto;
    break-inside: auto;
}
tr {
    page-break-after: auto;
    break-after: auto;
}

/* Repeat table header on every printed page */
thead {
    display: table-header-group;
}

/* ================================
   List Styling
================================ */
/* Consistent list indentation */
ul, ol, ul ul, ol ul, ul ol, ol ol {
    margin-left: 1.5em;
    padding-left: 0;
}

/* Bullet types by depth */
ul {
    list-style-type: disc;
}
ul ul, ul ul ul {
    list-style-type: circle;
}

/* Numbering types by depth */
ol {
    list-style-type: decimal;
}
ol ol {
    list-style-type: lower-alpha;
}
ol ol ol {
    list-style-type: lower-roman;
}
