/* v2 / Poster: the conference poster as a live grid. Every tile is a claim plus the figure that shows it. */
main { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; padding: 2.75rem 0 2rem; border-bottom: 2px solid var(--global-text-color); }
.band .venue { margin: 0 0 .75rem; font-size: .95rem; font-weight: 600; color: var(--global-theme-color); }
.band h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; font-weight: 700; letter-spacing: -.025em; max-width: 22ch; }
.band .lede { margin: 1rem 0 0; max-width: 68ch; font-size: 1.08rem; line-height: 1.55; color: var(--global-text-color); }
.band .authors { margin: 1rem 0 0; font-size: .95rem; }
.band .aff { color: var(--global-text-color-light); }
.band .links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .45rem; font-weight: 500; font-size: .95rem; }
.qr { display: grid; justify-items: center; gap: .4rem; font-size: .8rem; color: var(--global-text-color-light); text-align: center; }
.qr .code { width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 8px; border: 1px solid var(--global-divider-color); }
.qr svg { width: 100%; height: 100%; display: block; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; margin-top: 22px; align-items: start; }
.tile {
  grid-column: span var(--span, 6); display: flex; flex-direction: column;
  background: var(--global-card-bg-color); border: 1px solid var(--global-divider-color); border-radius: 12px; padding: 1rem 1.1rem 1.1rem;
}
.tile header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: start; margin-bottom: .8rem; }
.tile .n { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--global-theme-color); color: var(--global-bg-color); font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.tile h2 { margin: .1rem 0 0; font-size: 1.04rem; line-height: 1.4; font-weight: 600; }
.tile .where { margin: 0 0 .15rem; font-size: .8rem; font-weight: 600; color: var(--global-text-color-light); }
.tile .body { flex: 1; min-height: 0; }
.tile .zf-caption { display: none; }
.tile .zf-body { padding: 0; border: 0; background: none; box-shadow: none; } /* the tile is already the card */
.tile .more { align-self: flex-start; margin-top: .9rem; font: 600 .88rem var(--site-font); color: var(--global-theme-color); background: none; border: 0; padding: 0; cursor: pointer; }
.tile .more:hover { text-decoration: underline; }
.fig-missing { padding: 3rem 1rem; text-align: center; color: var(--global-text-color-light); }

/* The closing band: what to take home. */
.wrap { margin-top: 22px; padding: 1.4rem 1.5rem; border-radius: 12px; background: var(--global-text-color); color: var(--global-bg-color); }
.wrap h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.wrap ul { margin: 0; padding-left: 1.2rem; columns: 2 22rem; column-gap: 2.5rem; }
.wrap li { margin: 0 0 .5rem; break-inside: avoid; line-height: 1.5; }
.wrap a { color: inherit; text-decoration: underline; }
.wrap .cite { margin-top: 1rem; font-size: .9rem; opacity: .85; }

/* Section reader. */
dialog#detail {
  width: min(980px, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); padding: 0; border: 1px solid var(--global-divider-color);
  border-radius: 14px; background: var(--global-bg-color); color: var(--global-text-color); box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
dialog#detail::backdrop { background: rgba(15, 13, 26, .55); }
.detail-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 1rem; padding: .9rem 1.25rem; background: var(--global-bg-color); border-bottom: 1px solid var(--global-divider-color); }
.detail-head h2 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.detail-head button { margin-left: auto; font: 500 .9rem var(--site-font); color: var(--global-text-color); background: none; border: 1px solid var(--global-divider-color); border-radius: 6px; padding: .3rem .75rem; cursor: pointer; }
.detail-body { padding: 1.25rem 1.5rem 2rem; }
.detail-body .takeaway { margin: 0 0 1.25rem; padding-left: 1rem; border-left: 3px solid var(--global-theme-color); font-weight: 500; font-size: 1.05rem; }
.detail-body figure.fig { margin: 1.5rem 0; }

.prose { font-size: 1rem; line-height: 1.7; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose strong { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .88rem; font-variant-numeric: tabular-nums; }
.prose th { text-align: left; font-weight: 600; padding: .45rem .5rem; border-bottom: 2px solid var(--global-divider-color); }
.prose td { padding: .5rem; border-top: 1px solid var(--global-divider-color); vertical-align: top; }
.prose .katex-display { overflow-x: auto; overflow-y: hidden; }

@media (max-width: 1100px) { .tile { grid-column: span 12 !important; } }
@media (min-width: 1101px) and (max-width: 1250px) { .tile { --span: 6 !important; } .tile.wide { grid-column: span 12; } }
@media (max-width: 700px) {
  .band { grid-template-columns: 1fr; }
  .qr { display: none; }
}
body.poster .site-nav .inner { max-width: 1320px; padding: 0 20px; }

/* Keep tiles poster-dense: maps and triangles shrink rather than fill the tile. */
.tile .zf-map, .tile .zf-tri { max-width: 460px; width: 100%; margin: 0 auto; }
.tile .zf-map svg { max-height: 300px; }

/* Wide tables scroll sideways on phones instead of overflowing the page. */
.prose table { display: block; overflow-x: auto; max-width: 100%; }
.tile, .wrap { scroll-margin-top: 72px; }
