/* Jekyll version of jemdoc.css */

table#tlayout {
    border: none;
    border-collapse: separate;
    background: white;
}

body {
    background: white;
    font-family: Georgia, serif;
    padding-bottom: 8px;
    margin: 0;
}

#layout-menu {
    background: #f6f6f6;
    border: 1px solid #dddddd;
    padding-top: 0.5em;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 1.0em;
    width: auto;
    white-space: nowrap;
    text-align: left;
    vertical-align: top;
}

#layout-menu td {
    background: #f4f4f4;
    vertical-align: top;
}

#layout-content {
    padding-top: 0.0em;
    padding-left: 1.0em;
    padding-right: 1.0em;
    border: none;
    background: white;
    text-align: left;
    vertical-align: top;
}

#layout-menu a {
    line-height: 1.5em;
    margin-left: 0.5em;
}

tt {
    background: #ffffdd;
}

pre, tt {
    font-size: 90%;
    font-family: monaco, monospace;
}

a, a > tt {
    color: #224b8d;
    text-decoration: none;
}

a:hover {
    border-bottom: 1px gray dotted;
}

#layout-menu a.current:link, #layout-menu a.current:visited {
    color: #022b6d;
    border-bottom: 1px gray solid;
}

#layout-menu a:link, #layout-menu a:visited, #layout-menu a:hover {
    color: #527bbd;
    text-decoration: none;
}

#layout-menu a:hover {
    text-decoration: none;
}

div.menu-category {
    border-bottom: 1px solid gray;
    margin-top: 0.8em;
    padding-top: 0.2em;
    padding-bottom: 0.1em;
    font-weight: bold;
}

div.menu-item {
    padding-left: 16px;
    text-indent: -16px;
}

div#toptitle {
    padding-bottom: 0.2em;
    margin-bottom: 1.5em;
}

div#toptitle + h2, div#toptitle + h3 {
    margin-top: -0.7em;
}

div#subtitle {
    margin-top: 0.0em;
    margin-bottom: 0.0em;
    padding-top: 0em;
    padding-bottom: 0.1em;
}

em {
    font-style: italic;
}

strong {
    font-weight: bold;
}

h1, h2, h3 {
    color: #527bbd;
    margin-top: 0.7em;
    margin-bottom: 0.3em;
    padding-bottom: 0.2em;
    line-height: 1.0;
    padding-top: 0.5em;
    border-bottom: 1px solid #aaaaaa;
}

h1 {
    font-size: 165%;
}

h2 {
    padding-top: 0.8em;
    font-size: 125%;
}

h2 + h3 {
    padding-top: 0.2em;
}

h3 {
    font-size: 110%;
    border-bottom: none;
}

p {
    margin-top: 0.0em;
    margin-bottom: 0.8em;
    padding: 0;
    line-height: 1.3;
}

pre {
    padding: 0;
    margin: 0;
}

div#footer {
    font-size: small;
    border-top: 1px solid #c0c0c0;
    padding-top: 0.1em;
    margin-top: 4.0em;
    color: #c0c0c0;
}

div#footer a {
    color: #80a0b0;
}

div#footer-text {
    float: left;
    padding-bottom: 8px;
}

ul, ol, dl {
    margin-top: 0.2em;
    padding-top: 0;
    margin-bottom: 0.8em;
}

dt {
    margin-top: 0.5em;
    margin-bottom: 0;
}

dl {
    margin-left: 20px;
}

dd {
    color: #222222;
}

dd > *:first-child {
    margin-top: 0;
}

ul {
    list-style-position: outside;
    list-style-type: square;
}

p + ul, p + ol {
    margin-top: -0.5em;
}

li ul, li ol {
    margin-top: -0.3em;
}

ol {
    list-style-position: outside;
    list-style-type: decimal;
}

li p, dd p {
    margin-bottom: 0.3em;
}

ol ol {
    list-style-type: lower-alpha;
}

ol ol ol {
    list-style-type: lower-roman;
}

@media print {
    #layout-menu { display: none; }
}

img {
    border: none;
}

/* Profile container styles */
.profile-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #dddddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.profile-info {
    flex: 1;
    line-height: 1.6;
}

/* Homepage highlight cards */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 10px 0 18px 0;
}

.highlight-card {
    border: 1px solid #dddddd;
    background: #fbfbfb;
    border-radius: 8px;
    padding: 10px 12px;
}

.highlight-metric {
    font-weight: bold;
    font-size: 120%;
    color: #222222;
    line-height: 1.1;
}

.highlight-label {
    margin-top: 6px;
    color: #444444;
    font-size: 95%;
    line-height: 1.25;
}

/* Resume PDF embed */
.pdf-embed {
    margin-top: 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.pdf-embed iframe {
    width: 100%;
    height: 900px;
    border: 0;
}

.pdf-embed object {
    width: 100%;
    height: 900px;
    border: 0;
    display: block;
}

/* Responsive design for mobile devices */
@media screen and (max-width: 768px) {
    table#tlayout {
        display: block;
    }
    
    #tlayout tr {
        display: block;
    }
    
    #layout-menu {
        display: block;
        width: 100%;
        border: none;
        border-bottom: 1px solid #dddddd;
        padding: 1em;
    }
    
    #layout-content {
        display: block;
        width: 100%;
        padding: 1em;
    }
    
    /* Profile container responsive */
    .profile-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-image {
        width: 100%;
        max-width: 150px;
        display: flex;
        justify-content: center;
    }
    
    .profile-image img {
        width: 100%;
        max-width: 150px;
        height: auto;
        aspect-ratio: 1;
    }
    
    .profile-info {
        text-align: center;
    }

    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .pdf-embed iframe {
        height: 70vh;
    }

    .pdf-embed object {
        height: 70vh;
    }
    
    /* Make old table-based profile responsive (backward compatibility) */
    table[style*="width: 30%"] {
        width: 100% !important;
        display: block;
    }
    
    table[style*="width: 30%"] tr {
        display: block;
    }
    
    table[style*="width: 30%"] td {
        display: block;
        width: 100% !important;
        text-align: center !important;
        padding: 0.5em 0;
    }
    
    /* Make profile image responsive */
    img[style*="width: 200px"] {
        width: 150px !important;
        height: 150px !important;
        max-width: 100%;
    }
}
