.header {
    width: 100%;
    top: 0;
}

.headerImage { 
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.navbar {
    background-color: #28A8A8;
}

/* Each schedule row is one .entry block with a hanging indent: the time is an
   inline-block of fixed width acting as the row's "number", and the negative
   text-indent pulls it back into the left margin so wrapped lines and expanded
   abstracts align under the entry text rather than under the time.

   A hanging indent is used rather than a two-column grid because a grid would
   require the time and the entry to survive as sibling grid items, which the
   generated wrappers around block HTML cannot be relied on to preserve.

   The width of the time column is a single knob, --time-col. "09:00" renders
   at roughly 2.2rem in the body font at 0.9em, so the remainder is the gap
   before the entry text; setting --time-col below that would let the entry
   text overlap the time, which min-width on .time guards against. */
.day {
    --time-col: 5rem;
}

/* Descendant, not child, selectors: entries are styled the same whether they
   sit directly under .day or inside a .session grouping. */
.day .entry {
    padding-left: var(--time-col);
    text-indent: calc(-1 * var(--time-col));
    margin-bottom: 0.05em;
    /* long unbroken strings wrap inside the column rather than overflowing it */
    overflow-wrap: break-word;
}

.day .entry > .time {
    display: inline-block;
    /* min-width rather than width: if the time renders wider than expected in
       some fallback font it pushes the text across instead of underlapping it */
    min-width: var(--time-col);
    text-indent: 0;
    white-space: nowrap;
}

/* Narrow screens: shrink the column rather than letting the entry stack
   underneath the time. */
@media (max-width: 576px) {
    .day {
        --time-col: 4rem;
    }

    .day .entry > .time {
        font-size: 0.8em;
    }
}

/* Schedule times. Tabular figures so every digit is the same width and the
   times stay aligned with one another. */
.time {
    font-variant-numeric: tabular-nums;
    font-size: 0.9em;
    color: #444;
}

/* Expandable abstracts that sit on the same line as the talk title.
   The parent .day div carries no markdown= attribute, so kramdown leaves its
   contents as raw HTML and does not wrap the lines in <p> -- a <p> would be
   implicitly closed by <details> and push the toggle onto its own line. */
details.abstract {
    display: inline;
}

details.abstract > summary {
    display: inline;
    cursor: pointer;
    list-style: none;
    color: #28A8A8;
}

/* the native disclosure marker does not render on an inline summary */
details.abstract > summary::-webkit-details-marker {
    display: none;
}

details.abstract > summary::before {
    content: "[";
}

details.abstract > summary::after {
    content: "]";
}

details.abstract > summary:hover {
    text-decoration: underline;
}

details.abstract > p {
    display: block;
    margin: 0.4em 0 0.4em 1em;
    text-indent: 0; /* do not inherit the hanging indent of the schedule row */
}

/* Poster list inside a schedule entry's disclosure. Same block treatment as an
   abstract paragraph, plus padding for the bullets, which would otherwise sit
   outside the list's box and under the entry text. */
details.abstract > ul.posterlist {
    display: block;
    margin: 0.4em 0 0.4em 1em;
    padding-left: 1em;
    text-indent: 0;
}

details.abstract > ul.posterlist > li {
    margin-bottom: 0.1em;
}

/* Accepted-paper list. Raw HTML rather than a markdown list so that kramdown
   does not wrap each item in a <p>, which the browser would implicitly close
   at the <details> and push the toggle onto its own line. */
ul.papers > li {
    margin-bottom: 0.1em;
}

/* Highlighted schedule rows. The background is painted on the whole .entry
   block, which includes the left padding the time sits in (the negative
   text-indent pulls the time back into that padding, not outside the box), so
   the time carries the same background as the rest of the row. It is repeated
   on .time only to keep the two in sync if .time is ever given its own
   background elsewhere. */
.day .entry.session,
.day .entry.session > .time {
    background-color: #e9f0f0;
}

/* The 0.05em margin between rows falls outside the background box, so two
   adjacent highlighted rows would be separated by a white sliver. Convert the
   gap to padding on highlighted rows: the row spacing is unchanged, but the
   space is now inside the painted box and the backgrounds meet. */
.day .entry.session {
    margin-bottom: 0;
    padding-bottom: 0.05em;
}
