/* main.css */

/* --- Global Reset & Base --- */
* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #fafafa;
    color: #505050;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin: 60px auto;
    max-width: 1000px;
    padding: 0 1rem;
}

/* --- Typography --- */

/* Shared Serif Font */
h1, h2, h3, h4, 
.banner, 
td.date, 
td.title, 
td.title-special {
    font-family: 'Roboto Slab', serif;
}

h1, h2, h3, h4 {
    color: #813c54;
    margin: 1.5em 0 1em;
}

h1 { font-size: 2.67em; }
h2 { font-size: 2.00em; }
h3 { font-size: 1.67em; }
h4 { font-size: 1.33em; }

p {
    max-width: 900px;
    margin: 2.5rem auto 1rem auto;
    font-size: 1.25rem;
    line-height: 1.75;
    color: #2f2f2f;
    padding-left: 1.25rem;
}

p + p {
    margin-top: 0; 
}

.note-text {
    font-size: 1.1rem;
    text-align: center;
    padding-left: 0 !important;
    margin: 1rem auto;
    color: #666;
}

ul {
    list-style: none;
    margin: 24px auto;
    padding: 0;
    max-width: 800px;
    font-size: 1.25rem;
}

i, em { font-style: italic; }
b, strong { font-weight: bold; }

sup, sub {
    font-size: 0.8em;
    line-height: 0;
}
sup { vertical-align: super; }
sub { vertical-align: sub; }

/* --- Links --- */
a { color: #b8860b; text-decoration: none; }
a.current { color: #52739e; }
a.current:hover, a:active { color: #e82945; }
a:hover { color: #b2132e; }

/* --- Navigation --- */
nav.navigation {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-size: 1.5rem;
    padding: 0.5em 0;
}
nav.navigation a {
    white-space: nowrap;
    text-decoration: none;
}

/* --- Tables (General) --- */
table {
    max-width: 100%;
    width: 1000px;
    margin: 0 auto;
    border-collapse: collapse;
}

table + table {
    border-top: 1px solid #eee;
    margin-top: 12px;
    padding-top: 12px;
}

th, td {
    text-align: left;
}

/* --- Program Table Specifics --- */
td.room {
    padding: 4px 12px 4px 4px;
    width: 90%;
    vertical-align: bottom;
    font-size: 1.67em;
    color: #52739e;
    height: 32px;
}

td.date {
    white-space: nowrap;
    width: 140px;
    text-align: right;
    padding: 8px 20px 0 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}

td.title, td.title-special {
    padding: 4px 12px 2px 4px;
    width: 90%;
    font-size: 1.5em;
    height: auto;
}

td.title { color: #813c54; }
td.title-special { color: #52739e; }

/* Alignment grouping */
td.date, td.title, td.title-special {
    vertical-align: middle;
}

td.speaker {
    padding: 4px 12px 4px 4px;
    font-size: 1em;
}

td.abstract {
    padding: 4px 12px 12px 4px; /* Integrated padding-bottom here */
    font-size: 1em;
}

td.speaker:empty,
td.abstract:empty {
    padding: 0;
    height: 0;
    line-height: 0;
}

td.abstract img {
    display: block;
    margin: 4px auto 8px auto;
}

/* --- Banner --- */
.banner {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

.top-left {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: rgba(250, 250, 250, 0.6);
    font-size: clamp(2rem, 5vw, 5.3rem);
    line-height: 1.1;
    color: #505050;
}

.bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 1.2rem 1.5rem;
    text-align: right;
    font-size: clamp(1rem, 2vw, 2.3rem);
    line-height: 1.4;
    color: #fafafa;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    text-shadow: 0 0 6px rgba(0,0,0,0.9);
}

.title1 { color: #b2132e; text-shadow: 1px 1px 3px #c0c0c0; }
.title2 { color: #52739e; text-shadow: 1px 1px 3px #c0c0c0; }

/* --- Iframes & Images --- */
iframe.registration, iframe.directions {
    display: block;
    margin: 1.5rem auto 2.5rem auto;
    width: 100%;
    border: none;
}

iframe.registration {
    max-width: 1400px;
    height: 80vh;
    min-height: 600px;
    max-height: 1400px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

iframe.directions {
    max-width: 800px;
    height: 400px;
    border-radius: 6px;
}

img.center {
    display: block;
    width: 67%;
    margin: 1em auto 2em auto;
}

/* --- Posters --- */
table.posters { width: 800px; }
td.poster {
    white-space: nowrap;
    width: 50%;
    text-align: center;
    vertical-align: middle;
    padding: 0;
}

/* --- Speaker Profiles --- */
.speaker-profile {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.speaker-info h3 { margin-top: 0; color: #b2132e; }

.speaker-profile:target {
    background-color: #f3f0e8; 
    border: 1px solid #b8860b;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 3rem;
    margin: 4rem auto;
    max-width: 900px;
    transition: all 0.5s ease-in-out;
    transform: translateY(-10px);
}

.speaker-profile h2 {
    margin-top: 0;
    line-height: 1.3;
}

.speaker-bio, .abstract-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.abstract-text {
    font-size: 1.1rem;
    color: #505050;
}

.bio-box {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ccc;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    body { margin: 20px auto; }
    p { font-size: 1rem; line-height: 1.7; padding-left: 0; }
    .note-text { font-size: 0.85rem !important; padding: 0 15px; }
    
    nav.navigation { flex-wrap: wrap; gap: 0.75rem; font-size: 1rem; }
    
    table { width: 100%; }
    td.date { font-size: 0.85rem; padding-right: 0.5rem; }
    
    .top-left {
        background: rgba(255, 255, 255, 0.85); 
        padding: 0.5rem;
        top: 50%; 
        transform: translate(-50%, -100%);
        font-size: 1.5rem; 
        width: 85%;
        border-radius: 8px;
    }
}