
/* Publications page */
.pubs-ready > *:not(.pb):not(style):not(link) { display: none !important; }
.pb { font-family: var(--sans); font-size: 17px; line-height: 1.55; }
.pb .kicker { font-size: 12px; color: var(--muted); }
.pb-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.pb-feature a { text-decoration: none !important; color: var(--espresso); }
.pb-feature-book { display: flex; gap: 24px; align-items: center; padding: 24px; background: var(--mustard); border-radius: 8px; }
.pb-feature-book img { width: 96px; height: auto; flex: 0 0 auto; transform: rotate(-3deg); box-shadow: 0 12px 24px rgba(42,30,23,.3); border-radius: 2px !important; }
.pb-feature-book .kicker { color: var(--espresso); }
.pb-feature-latest { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px; background: var(--paper); border-radius: 8px; border: 2px solid var(--espresso); }
.pb-feature-text { display: flex; flex-direction: column; gap: 8px; }
.pb-feature-title { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.pb-feature-sub { font-size: 14px; color: var(--roast); }
.pb-feature a:hover .pb-feature-title { color: var(--link); }
.pb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 40px; }
.pb-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 18px 16px; border: 2px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--espresso); font: inherit; text-align: left; cursor: pointer; }
.pb-tile:hover { border-color: var(--espresso); }
.pb-tile[aria-pressed="true"] { border-color: var(--espresso); background: var(--espresso); color: var(--paper); }
.pb-tile-n { position: relative; font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.pb-tile-n::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; vertical-align: middle; border-radius: 50%; background: var(--dot, transparent); }
.pb-tile-l { font-size: 14px; font-weight: 500; }
.pb-h { margin: 0 !important; font-family: var(--serif); font-size: 26px !important; font-weight: 600; }
.pb-chart { padding: 24px 24px 16px; background: var(--paper); border-radius: 8px; margin-bottom: 32px; }
.pb-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.pb-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--roast); }
.pb-legend-item::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; background: var(--dot); vertical-align: -1px; }
.pb-bars { display: flex; align-items: stretch; gap: 4px; height: 170px; }
.pb-bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.pb-bar:disabled { cursor: default; }
.pb-stack { display: flex; flex-direction: column-reverse; border-radius: 3px 3px 0 0; overflow: hidden; min-height: 0; transition: opacity .2s ease; }
.pb-seg { display: block; min-height: 4px; }
.pb-bar:not(:disabled):hover .pb-stack { opacity: .8; }
.pb-bar.is-dim .pb-stack { opacity: .25; }
.pb-bar-y { height: 16px; font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; }
.pb-bar:focus-visible { outline: 3px solid var(--mustard); }
.pb-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 12px; }
.pb-search { flex: 1 1 320px; display: flex; }
.pb-search input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 16px; padding: 12px 18px; min-height: 48px; border: 2px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--espresso); }
.pb-search input:focus { border-color: var(--espresso); outline: none; }
.pb-check { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.pb-check input { width: 20px; height: 20px; accent-color: var(--espresso); }
.pb-status { margin: 0 0 24px !important; font-size: 15px; color: var(--muted); }
.pb-year { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 2px solid var(--espresso); }
.pb-year-n { margin: 0 !important; font-family: var(--serif); font-size: 44px !important; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variation-settings: "SOFT" 100, "WONK" 1; position: sticky; top: 24px; align-self: start; }
.pb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pb-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; background: var(--paper); border-radius: 8px; }
.pb-card-top { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-tag, .pb-badge { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.pb-badge { background: var(--latte-deep); color: var(--roast); }
.pb-title { margin: 4px 0 0 !important; font-family: var(--serif); font-size: 21px !important; font-weight: 500; line-height: 1.25; letter-spacing: -.005em; }
.pb-title a { color: var(--espresso); text-decoration: none !important; }
.pb-title a:hover { color: var(--link); }
.pb-authors, .pb-venue { margin: 0 !important; font-size: 14px; line-height: 1.5; color: var(--roast); }
.pb-authors .self { font-weight: 600; color: var(--espresso); }
.pb-venue a { color: var(--link); }
.pb-read { margin-top: auto; padding-top: 8px; align-self: flex-start; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.pb-read::after { content: " →"; }
.pb-empty { font-size: 17px; color: var(--muted); }
@media (max-width: 700px) {
  .pb-year { grid-template-columns: 1fr; gap: 12px; }
  .pb-year-n { position: static; font-size: 34px !important; }
  .pb-bars { height: 120px; gap: 2px; }
  .pb-bar-y { font-size: 9px; }
  .pb-cards { grid-template-columns: 1fr; }
}
