﻿/* style.css - Presentable CSS for Mortality Definitions Page */

@charset "UTF-8";

/* Reset & Base Styles */
* {
    /*margin: 0;*/
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /*line-height: 1.6;*/
    color: #333;
    background-color: #f9f9fb;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-size: 1.8rem;
    color: #1a5d8c;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

h2.causegrouptitle {
    font-size: 1.6rem;
    color: #0a3d62;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1a5d8c;
    font-weight: 600;
}

dt {
    font-weight: bold;
    color: #1a5d8c;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

dd {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

em p {
    font-style: italic;
    color: #555;
    /*background-color: #e8f4fc;
    padding: 12px 16px;
    border-left: 4px solid #1a5d8c;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;*/
}

/* Layout */
#PageHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

#Title h1 {
    margin: 0;
}

.rightBlock a,
.f03 a,
#printBtnTop,
#printBtnBtm {
    color: #1a5d8c;
    text-decoration: none;
    font-weight: 500;
}

    .rightBlock a:hover,
    #printBtnTop:hover,
    #printBtnBtm:hover {
        text-decoration: underline;
    }

/* Navigation Bullets */
.leftBullet,
.rightBullet {
    float: left;
    width: 50%;
    padding: 0 1rem;
}

    .leftBullet ul,
    .rightBullet ul {
        /*list-style: none;*/
    }

    .leftBullet li,
    .rightBullet li {
        /*margin: 0.6rem 0;*/
    }

    .leftBullet a,
    .rightBullet a {
        color: #1a5d8c;
        text-decoration: none;
        font-weight: 500;
        display: block;
        /*padding: 0.4rem 0;*/
    }

        .leftBullet a:hover,
        .rightBullet a:hover {
            color: #0a3d62;
            text-decoration: underline;
        }

@media (max-width: 768px) {
    .leftBullet,
    .rightBullet {
        width: 100%;
        float: none;
    }
}

/* Definition List */
dl {
    clear: both;
    margin-top: 2rem;
}

    dl dt {
        margin-top: .6rem;
        font-size: 1rem;
        position: relative;
    }

        dl dt:first-child {
            margin-top: 0;
        }

    dl dd ul {
        margin-left: 1.5rem;
        margin-top: 0.5rem;
    }

        dl dd ul li {
            margin: 0.3rem 0;
        }

/* Tables */
table.causetable {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9rem;
}

    table.causetable th {
        background-color: #1a5d8c;
        color: white;
        padding: 12px 10px;
        text-align: left;
        font-weight: 600;
    }

    table.causetable td {
        padding: 10px;
        border-bottom: 1px solid #eee;
        vertical-align: top;
    }

    table.causetable tr:hover {
        background-color: #f5fbff;
    }

.causelevel1 {
    background-color: #e6f0fa !important;
    font-weight: bold;
    color: #0a3d62;
    /*font-size: 1.05rem;*/
}

    .causelevel1 td {
        padding-top: 14px;
        padding-bottom: 14px;
    }

/* Code Blocks */
td code,
pre {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* Navigation Tables */
table[width="100%"] {
    /*margin: 2rem 0;*/
    width: 100%;
}

    table[width="100%"] td {
        /*text-align: center;*/
        padding: 0.5rem;
    }

    table[width="100%"] a {
        color: #1a5d8c;
        text-decoration: none;
        font-weight: 500;
    }

        table[width="100%"] a:hover {
            text-decoration: underline;
        }

/* Footer */
#PageFooter {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

    #PageFooter a {
        color: #1a5d8c;
        text-decoration: none;
    }

        #PageFooter a:hover {
            text-decoration: underline;
        }

.version {
    text-align: center;
    margin-top: 2rem;
    color: #999;
    font-size: 0.85rem;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    #PageHeader,
    #PageFooter,
    .version {
        display: block !important;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    table.causetable {
        box-shadow: none;
        font-size: 10pt;
    }

    .causelevel1 {
        background: #eee !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    em p {
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    #PageHeader {
        flex-direction: column;
        text-align: center;
    }

        #PageHeader > div {
            margin-bottom: 0.5rem;
        }

    table.causetable {
        font-size: 0.85rem;
    }

        table.causetable th,
        table.causetable td {
            padding: 6px 4px;
        }
}
/* Target the inner (nested) list to indent it further right */
ul ul {
    padding-left: 40px; /* Increase this value (e.g., 60px) for more indentation */
    list-style-type: circle; /* Optional: Different bullet style for nesting */
}
#tblPPOR td, #tblPPOR th {
    border: 1px solid #000000;
    padding: 2px;
}

#tblPPOR {
    border-collapse: collapse;
}
