/* Publications page. */

.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.pub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.pub-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--muted); font-size: .86rem; transition: .15s; }
.pub-stat:hover { border-color: var(--brand); transform: translateY(-1px); }
.pub-stat.is-active { border-color: var(--brand); box-shadow: inset 0 -3px var(--brand); }
.pub-stat__n { font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.pub-tools__search { flex: 1 1 260px; }
.pub-author { cursor: pointer; border-color: var(--brand); color: var(--brand); background: var(--surface); }
.pub-author[hidden] { display: none; }
.pub-author b { color: var(--text); }
.pub-author:hover { background: var(--brand); color: #fff; }
.pub-author:hover b { color: #fff; }

.histo { padding: 14px 16px 10px; margin-bottom: 26px; }
.histo__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.histo__legend { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.histo__head .count-note { margin-left: auto; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw--intl { background: var(--brand); }
.sw--dom { background: #0891b2; opacity: .55; }
.histo__bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; overflow-x: auto; padding-bottom: 22px; position: relative; }
.histo__bar { position: relative; flex: 1 0 14px; min-width: 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; border: 0; padding: 0; background: none; border-radius: 4px 4px 0 0; }
.histo__bar:hover { background: var(--surface-2); }
.histo__bar.is-out { opacity: .25; }
.histo__seg { display: block; width: 100%; }
.histo__seg--intl { background: var(--brand); border-radius: 3px 3px 0 0; }
.histo__seg--dom { background: #0891b2; opacity: .55; }
.histo__seg--dom:only-child, .histo__seg--dom:first-child { border-radius: 3px 3px 0 0; }
.histo__year { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font: 500 .62rem/1 var(--mono); color: var(--muted); white-space: nowrap; }
.histo__bar:not(:nth-child(5n+1)) .histo__year { visibility: hidden; }
.histo__bar:hover .histo__year { visibility: visible; color: var(--ink); }
.histo__tip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 3px 7px; border-radius: 6px; background: var(--ink); color: var(--bg); font: 600 .7rem/1.3 var(--mono); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.histo__bar:hover .histo__tip, .histo__bar:focus-visible .histo__tip { opacity: 1; }

.pub-region { margin-bottom: 36px; }
.pub-region:last-child { margin-bottom: 0; }
.pub-region__head { margin-bottom: 16px; }
.pub-region__head h2 { margin: 0; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.65rem); }
.pub-region__head .rule { margin-top: 8px; height: 3px; width: 48px; }
.pub-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pub-cols.is-single { grid-template-columns: minmax(0, 1fr); }
.pub-col { min-width: 0; padding: 0; overflow: hidden; }
.pub-col__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.pub-col__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.pub-col__title h3 { margin: 0; font-size: 1.05rem; font-weight: 750; color: var(--ink); }
.pub-col__count { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: .8rem; font-weight: 700; color: var(--ink); }
.pub-col__body { padding: 8px 20px 18px; }

.pub-year { margin-bottom: 18px; }
.pub-year:last-child { margin-bottom: 0; }
.pub-year__label { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; padding: 10px 0 6px; border-bottom: 2px solid var(--ink); font-size: 1.15rem; }
.pub-year__n { font-size: .8rem; font-weight: 500; }
.pubs { list-style: none; margin: 0; padding: 0; }
.pub { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 6px; }
.pub:last-child { border-bottom: 0; }
.pub:hover { background: var(--surface-2); }
.pub__body { min-width: 0; }
.pub__title { margin: 0 0 3px; font-weight: 650; color: var(--ink); line-height: 1.45; }
.pub__title a, .pub__text a { color: var(--ink); text-decoration: none; }
.pub__title a:hover, .pub__text a:hover { color: var(--brand); text-decoration: underline; }
.pub__authors { margin: 0 0 2px; font-size: .9rem; color: var(--text); }
.pub__venue { margin: 0; font-size: .86rem; color: var(--muted); font-style: italic; }
.pub__text { margin: 0; font-size: .92rem; }
.pub__actions { display: inline-flex; align-items: center; gap: 6px; }
.pub__actions .icon-btn { opacity: .5; }
.pub:hover .pub__actions .icon-btn, .pub__actions .icon-btn:focus-visible { opacity: 1; }
.pub__copy { opacity: .5; }
.pub:hover .pub__copy, .pub__copy:focus-visible { opacity: 1; }
.lab-author { color: var(--ink); font-weight: 700; }
.pub mark { background: color-mix(in srgb, #eab308 35%, transparent); color: inherit; border-radius: 3px; }
.pub-note { margin-top: 18px; font-size: .84rem; }

@media (max-width: 960px) {
  .pub-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .pub-stats { grid-template-columns: repeat(2, 1fr); }
}
