/* Common */
html[data-theme="light"] {
    --color-link: #de1559;
}

html[data-theme="dark"] {
    --color-link: #e6427a;
    --color-background: #222;
}


/* Brand */
header #header_left .brand > div {
    display: flex;
}

header #header_left .brand > div::before {
    content: '';
    width: 2rem;
    height: 2rem;
    margin-right: 0.6rem;
    background: var(--color-text);
    mask: url('logo.svg');
    mask-size: contain;
}


/* Navbar */
header .header-menu > ul.pure-menu-list .header-menu-item.insection {
    border-bottom-color: transparent;
}


/* Footer */
footer article {
    width: auto;
    margin: 0 1rem;
}


/* Buttons */
.btn {
    display: inline-block;
    margin-right: 0.2rem;
    margin-bottom: 0.3rem;
    padding: 0.3rem 0.9rem;
    color: var(--color-text);
    border: solid 3px var(--color-text);
    font-weight: bold;
}

.btn:hover {
    background: var(--color-text);
    color: var(--color-background);
}


/* Landing */
main:has(.landing),
.content-margin:has(.landing),
article section:has(.landing) {
  margin-top: 0;
}

.landing,
.landing::before {
    height: 22rem;
}

.landing::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    background: url('landing.jpg') no-repeat center;
    background-size: cover;
    z-index: -1;
}

@media (max-width: 1023.98px) {
    .landing,
    .landing::before {
        height: 16rem;
    }
}

.landing .message {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.2rem 0.6rem;
    color: #de1559;
    font-size: 0.9em;
    font-weight: bold;
    border: solid 3px;
}

.landing .message a {
    color: inherit;
    border-bottom: solid 1px;
}


/* Proceedings */
ul.proceedings {
    padding: 0;
}

ul.proceedings li {
    display: flex;
    flex-direction: column;
    margin: 1.4rem 0;
    list-style: none;
    line-height: 1.4;
}

ul.proceedings li .heading {
    font-weight: bold;
}

ul.proceedings .heading .icon-paper,
ul.proceedings .heading .icon-slides {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background: no-repeat center;
    background-size: contain;
}

ul.proceedings .heading .icon-paper {
    background: var(--color-link);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 426.7 426.7'%3E%3Cpath d='M256 0H85.3C61.8 0 43 19 43 42.7L42.7 384A42.5 42.5 0 0 0 85 426.7h256.2c23.6 0 42.7-19.1 42.7-42.7V128L256 0zm42.7 341.3H128v-42.6h170.7v42.6zm0-85.3H128v-42.7h170.7V256zm-64-106.7V32L352 149.3H234.7z' fill='%23000' /%3E%3C/svg%3E");
}

ul.proceedings .heading .icon-slides {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 459 459'%3E%3Cpath d='M408 0H51C23 0 0 23 0 51v357c0 28 23 51 51 51h357c28 0 51-23 51-51V51c0-28-23-51-51-51zm0 331.5H51v-204h357v204z' fill='%23ff8420' /%3E%3C/svg%3E");
}

ul.proceedings li .authors > span:not(:last-child)::after {
    content: ', ';
}

ul.proceedings li .authors > span:nth-last-child(2)::after {
    content: ' and ';
}

ul.proceedings li .abstract {
    margin: 0.2rem 0;
    font-size: 90%;
}

ul.proceedings li .authors + .citation { /* Add margin to citation in case of missing abstract */
    margin-top: 0.2rem;
}

ul.proceedings li .citation summary {
    font-size: 90%;
}

ul.proceedings li .citation .code {
    display: block;
    margin-top: 0.2rem;
    font-family: 'Consolas', monospace;
    font-size: 80%;
    white-space: nowrap;
    overflow-x: auto;
}


/* Program */
table.table-program {
    width: 100%;
    line-height: 1.4;
}

table.table-program tr td:first-child {
    white-space: nowrap;
    text-align: right;
}

table.table-program tr.type-break td {
    background: rgba(255, 0, 212, 0.2);
}

table.table-program tr.type-other td {
    background: rgba(255, 115, 0, 0.2);
}

table.table-program tr.type-session td {
    background: rgba(0, 229, 255, 0.2);
}

table.table-program tr.type-table td {
    background: rgba(0, 255, 128, 0.2);
}

table.table-program .text-muted {
    opacity: 0.5;
}

table.table-program p {
    margin: 0;
    margin-bottom: 0.4rem;
}

table.table-program small {
    font-size: 90%;
}
