/* Basic layout: nav on left, content on right */

/* Delete when Live -- this is debugging/editing style to outline items */

/* * {
  outline: 2px solid red;
}

/* End Debug code */

/* Palette selection: coolers.co */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #f5f5f5;
    /* White smoke */
    --text: #000000;
    /* Black */
    --date-bg: #000000;
    /* Black */
    --accent: #1b9aaa;
    /* Blue (Munsell) */
    --highlight: #e56399;
    /* Thulian pink */
    --nav-bg: #4e5166;
    /* Davy's gray */
    --nav-text: #f5f5f5;
    /* White smoke */
    --header-bg: #8a0001;
    /* Rosewood */
    --header-text: #ffffff;
    /* White */
    --blendpoint: #b07b7b;
}

body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    width: 100vw;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
}

header {
    background-color: var(--header-bg);
    color: var(--header-text);
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(to bottom, var(--header-bg) 0%, var(--blendpoint) 100%);
}

header h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.page {
    display: flex;
    min-height: 100dvh; /* allow the page to grow taller if needed */
}

nav {
    flex: 0 0 240px;
    width: 240px;
    align-self: stretch; /* to make nav match .page */
    /* background-color: var(--nav-bg); */
    padding: 2rem 0 0 0;
    background: linear-gradient(to bottom, var(--blendpoint) 0%, var(--nav-bg) 25%);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    font-weight: bold;
    text-align: right;
    width: 100%;
    margin-bottom: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    padding: 0 20px 0 0;
    color: var(--nav-text);
    display: inline-block;
    transition: color 1.0s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.logo-box {
  background-color: white;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.logo {
    width: 200px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    outline: 1px solid var(--highlight);
}

.nav-divider {
    border: none;
    height: 2px;
    background-color: var(--accent);
    margin: 1.5rem 0.5rem 1.5rem 0.5rem;
}

main {
    flex-grow: 1;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 2rem 0 0 2rem;
    width: 100%;
    background: linear-gradient(to bottom, var(--blendpoint) 0%, var(--bg) 15%);
}

main a {
    text-decoration: none;
    font-weight: bold;
    color: var(--highlight);
    transition: color 1.0s ease;
}

main h2 {
    font-size: 1.4rem;
    margin: 0 3rem 1rem 0;
    line-height: 1.1;
}

main p {
    margin: 0 3rem 2rem 0;
    max-width: 66ch;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

.about-blurb summary {
    list-style: none;        /* Firefox */
    font-weight: bold;
    font-size: 1.4rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: color 1s ease;
}

.about-blurb summary::-webkit-details-marker {
    display: none;
}

.about-blurb summary:hover {
    color: var(--accent);
}

section p {
    max-width: 66ch;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.2;
    margin: 2rem 2rem 2rem 0;
}

section a {
    text-decoration: none;
    color: var(--nav-text);
    transition: color 1.0s ease;
}  

.monospace {
    font-family: monospace;
    font-size: 0.8rem;
}

.contact-list dt {
    font-weight: normal;
    margin-top: 1.0rem;
    margin-bottom: 0;
    padding: 0 1.5rem 0 0;
}

.contact-list dd {
    margin: 0 0 0 0rem;
    line-height: 1.0;
}

section {
    padding-bottom: 3rem;
}

.subtopic {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.talk-list {
    max-width: 660px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;
    display: grid;
    row-gap: 3px;
    padding: 0 2rem 0 0;
}

.talk {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: stretch;
    column-gap: 3px;
}

.talk:hover .abstract {
    max-height: 400px;
    opacity: 1;
    padding: 0.3rem 1rem 0.5rem 0.5rem;
}

.date {
    background-color: var(--date-bg);
    color: var(--header-text);
    text-align: right;
    line-height: 1;
    white-space: nowrap;
    padding: 6px;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    height: 100%;
}

.day {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--header-text);
}

.dow {   /* dow = Day of Week */
    color: var(--bg);
    font-weight: bold;
}

.dow.exception {
    color: #ff7700;
}

.month {
    color: var(--accent);
    font-weight: bold;
}

.details {
    background-color: var(--accent);
    color: var(--text);
    padding: 2px 0px 4px 8px;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    line-height: 1.2;
}

.speaker {
    padding: 0px 0 0 0;
}

.name {
    font-weight: bold;
}

.title {
    font-style: italic;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 6px 0 0 0;
}

.abstract {
    font-size: 0.85rem;
    line-height: 1.3;
    text-align: justify;
    color: white;
    /* top right bottom left */
    padding: 0.3rem 1rem 0.5rem 0.5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1.0s ease, opacity 1.0s ease, padding 1.0s ease;
}

.abstract p {
    margin: 0.5rem 0;
}

.abstract p:first-child {
    margin-top: 0;
}

.abstract p:last-child {
    margin-bottom: 0;
}

.zoominfo {
    color: #ffffff;
    font-size: 0.85rem;
    padding: 12px 0 0 0;
}

.highlight {
    font-weight: bold;
    color: var(--highlight);
    text-shadow: 0 0 6px rgba(255,255,255,1);
}


.signup-link {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.signup-link:hover {
    background-color: var(--highlight);
}

/* Media Queries */

@media (max-width: 600px) {
    .page {
        flex-direction: column;
    }

    nav {
        width: 100%;
        flex: none;
        min-height: auto;
        padding: 0;
        margin: 0;
        background: var(--nav-bg);
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;     
        flex-wrap: nowrap;
        gap: 0.25rem;
        padding: 0;
        margin: 0;
    }

    .nav-links li {
        display: inline-block;
        width: auto;
        margin: 0;
        padding: 0;
        font-weight: normal;
        font-size: 0.75rem;
        list-style: none;
    }

.nav-links li + li::before {
    content: "\2022";
    margin: 0 0.5rem;
    color: var(--accent);
}

.nav-links li:last-child {
    padding-right: 1.5rem;
}

    .nav-links a {
        display: inline-block;
        text-decoration: none;
        color: var(--nav-text);
        padding: 0.5rem;
        line-height: 1;
    }

    nav hr {
        display: none;
        height: 0;
    }

    nav .logo-box {
        display: none;
        height: 0;
    }

    nav .logo {
        display: none;
        height: 0;
    }

    main {
        padding-bottom: 2rem;
    }

    .abstract {
	display: none;
    }
}
