a {
    color: #1772d0;
    text-decoration: none;
}

a:focus,
a:hover {
    color: #f09228;
    text-decoration: none;
}

#title {
    margin-top: 1.5em;
    text-wrap: balance;
}

.author-table {
    table-layout: fixed;
    margin-left: auto;
    margin-right: auto;
}

.author-table td {
    vertical-align: top;
    padding: 3px 1.5em;
}

/* A link with no target yet (href="") reads as plain text. */
a[href=""] {
    color: inherit;
    pointer-events: none;
}

.CodeMirror {
    font-size: .8em;
    height: auto;
}

.CodeMirror-scroll {
    overflow-y: hidden;
    overflow-x: auto;
}

#credit {
    margin-top: 2em;
    margin-bottom: 3em;
}

/* ---------- Teaser ---------- */
.teaser-inner {
    max-width: 560px;
    margin: 0 auto;
}

.hero {
    position: relative;
}

.hero img {
    display: block;
    width: 100%;
}

/* 721/1920, 171/1080, 416/1920, 416/1080 */
.hero-crop {
    position: absolute;
    left: 37.552%;
    top: 15.833%;
    width: 21.667%;
    height: 38.519%;
    border: 2px solid #f09228;
}

.teaser-crops {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.teaser-crops figure {
    flex: 1 1 0;
    margin: 0;
    min-width: 0;
    text-align: center;
}

.teaser-crops img {
    display: block;
    width: 100%;
    border: 1px solid #f09228;
}

.teaser-crops figcaption,
.crop-stat {
    font-size: .85em;
    line-height: 1.6;
}

.crop-stat {
    color: #666;
}

/* ---------- Paper figures ---------- */
.paper-figure {
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 1em auto 0;
}

.paper-figure.fig-md {
    max-width: 620px;
}

.paper-figure.fig-wide {
    max-width: none;
}

.figure-caption {
    margin-top: .6em;
    text-align: center;
    color: #555;
}

/* ---------- Figure gallery ---------- */
#gallery {
    margin-top: 2em;
}

/* All panels share one grid cell, so the stack is as tall as the tallest
   panel and switching never changes the page height. */
.panel-stack {
    display: grid;
}

.panel-view {
    grid-area: 1 / 1;
    align-self: center;
    visibility: hidden;
}

.panel-view.active {
    visibility: visible;
}

.thumbs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5em;
}

.thumb {
    width: 130px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    opacity: .6;
}

.thumb:hover,
.thumb.active {
    opacity: 1;
}

.thumb.active {
    border-color: #1772d0;
}

.thumb img {
    display: block;
    width: 100%;
    height: 70px;
    object-fit: contain;
}

.thumb span {
    display: block;
    margin-top: 3px;
    font-size: .85em;
    color: #555;
}
