* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    line-height: 1.4;
}

.poster {
    width: 42in;
    height: 30in;
    background: white;
    margin: 20px auto;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto 1fr auto;
    gap: 20px;
    position: relative;
}

/* =========================
   University of Michigan Theme (overlay only, no layout changes)
   ========================= */
:root {
    --um-blue: #00274C;
    --um-blue-2: #1A3C64;
    --um-maize: #FFCB05;
    --um-gray-100: #f5f7fa;
}

/* Header theming */
.header {
    background: linear-gradient(135deg, var(--um-blue) 0%, var(--um-blue-2) 100%) !important;
    color: #fff !important;
    border-bottom: 8px solid var(--um-maize);
    grid-column: 1 / -1 !important;  /* span full grid width */
    width: 100% !important;          /* ensure full width */
    margin: 0 !important;            /* remove side constraints */
    display: flex;
    flex-direction: column;
    align-items: center;    /* horizontal centering */
    justify-content: center;/* vertical centering */
    text-align: center;     /* center multiline text */
    padding: 24px 32px;     /* give the header breathing room */
    gap: 8px;
    min-height: 140px;      /* keep clear of the logo height */
}
.header h1,
.header .subtitle {
    margin: 0;
    font-size: 40px;
    text-align: center;
}

.authors {
    grid-column: 1 / -1;
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.authors h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.authors p {
    font-size: 18px;
    color: #666;
}

/* Authors card accent */
.authors {
    border-left: 6px solid var(--um-maize);
    background: linear-gradient(135deg, var(--um-gray-100), #e9eef6);
}

/* Section accents */
.section { border-top-color: var(--um-blue) !important; }
.section h2 {
    color: var(--um-blue) !important;
    border-bottom-color: var(--um-maize) !important;
}

.section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    border-top: 4px solid #667eea;
}

.section h2 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.section h3 {
    color: #764ba2;
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 15px;
}

.section p, .section li {
    font-size: 14px;
    margin-bottom: 8px;
    text-align: justify;
}

.section ul {
    padding-left: 20px;
}

.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.method-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #28a745;
}

.method-item h4 {
    color: #28a745;
    font-size: 16px;
    margin-bottom: 8px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.result-item {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #ffc107;
}

.result-item h4 {
    color: #856404;
    font-size: 16px;
    margin-bottom: 8px;
}

.datasets {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 3px solid #007bff;
}

.datasets h4 {
    color: #0056b3;
    font-size: 16px;
    margin-bottom: 8px;
}

.key-findings {
    background: #d4edda;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 3px solid #28a745;
}

.workflow {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.workflow-step {
    background: linear-gradient(135deg, var(--um-blue) 0%, var(--um-blue-2) 100%) !important;
    color: #fff !important;
    padding: 15px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.workflow-step::after {
    content: '→';
    position: absolute;
    right: -125px;
    color: var(--um-blue) !important;
    font-size: 100px;
    font-weight: bold;
}

.workflow-step:last-child::after {
    display: none;
}

.footer {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--um-blue), var(--um-blue-2)) !important;
    color: #fff !important;
    border-top: 8px solid var(--um-maize);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.footer h3 {
    margin-bottom: 10px;
    color: var(--um-maize) !important;
}

.footer p {
    font-size: 14px;
    opacity: 0.9;
}

.github-link {
    color: var(--um-maize) !important;
    text-decoration: none;
    font-weight: bold;
}

.github-link:hover {
    text-decoration: underline;
}

/* Pills, badges */
.highlight {
    background: var(--um-maize) !important;
    color: var(--um-blue) !important;
}
.metric {
    background: var(--um-blue) !important;
    color: #fff !important;
}

/* UM logo at top-left (replaces emoji) */
.logo {
    background-image: url("umich-logo.png") !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    z-index: 2;
    left: 80px;
    top: 60px;
    width: 110px;
    height: 110px;
    text-indent: -9999px; /* hide any fallback text */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

@media print {
    body {
        background: white;
    }
    .poster {
        margin: 0;
        box-shadow: none;
    }
}
