/* ============================================================
   Theme: Neo-brutalism — bold borders, hard offset shadows, flat vibrant colors.
   Bold borders, hard offset shadows, flat vibrant colors, bento
   grid, fully responsive. This block only overrides earlier
   rules; delete it to revert to the previous look.
   ============================================================ */
.bento-shell {
  --bru-base: #fdf7ee;
  --bru-card: #ffffff;
  --bru-well: #faf3e6;
  --bru-pill: #ffffff;
  --bru-ink: #1a1a1a;
  --bru-body: #333333;
  --bru-muted: #6b6b6b;
  --bru-accent: #1a1a1a;
  --bru-r-lg: 18px;
  --bru-r-md: 12px;
  --bru-raised: 5px 5px 0 #1a1a1a;
  --bru-pink: #ff6b8a;
  --bru-purple: #a78bfa;
  --bru-mint: #5eead4;
  --bru-yellow: #fde047;
  --bru-raised-sm: 3px 3px 0 #1a1a1a;
  --bru-pressed: 0 0 0 rgba(26, 26, 26, 0);
  --bru-ring: #1a1a1a;
}

body {
  background-color: #fdf7ee;
  background-image: radial-gradient(rgba(26, 26, 26, 0.08) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: #333333;
}

.wrapper {
  max-width: none;
}

/* ---------- Bento shell + grid ---------- */
.bento-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 26px 70px;
}

.bento-grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
  grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "profile bio bio"
    "profile news news"
    "filters filters filters"
    "posts posts posts";
}

.bento-grid-article {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "article";
}

.bento-shell .sidebar { grid-area: profile; }
.bento-shell .bio-box { grid-area: bio; }
.bento-shell .bio-box { padding-bottom: 12px; }
.bento-shell .news-box { grid-area: news; }
.bento-shell .facts-card { grid-area: facts; }
.bento-shell .paper-filters { grid-area: filters; }
.bento-shell .content-box { grid-area: posts; }
.bento-grid-article > .content-box { grid-area: article; }

#papers { scroll-margin-top: 18px; }

/* ---------- Neu cards (profile / bio / news / facts / filters) ---------- */
.bento-shell .sidebar,
.bento-shell .bio-box,
.bento-shell .news-box,
.bento-shell .facts-card,
.bento-shell .paper-filters {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 26px 24px;
  background: var(--bru-card);
  background-color: #ffffff;
  border: 2px solid #1a1a1a;
  border-radius: var(--bru-r-lg);
  box-shadow: var(--bru-raised);
}

/* Profile card (was the fixed sidebar) */
.bento-shell .sidebar {
  position: static;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.bento-shell .about { margin: 0 0 8px; }

.bento-shell .about .cover-author-image {
  border-color: #1a1a1a;
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
  border: 3px solid #1a1a1a;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fde047;
  box-shadow: var(--bru-raised-sm);
}

.bento-shell .about .author-name {
  font-size: 17px;
  color: var(--bru-ink);
}

.bento-shell .about .author-name::after { background-color: #1a1a1a; }

.bento-shell .about p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--bru-body);
  padding: 0 4px;
}

.bento-shell .divider {
  border-bottom: 3px solid #1a1a1a;
  margin: 0.9rem 0;
}

.bento-shell .sidebar .about > a {
  color: var(--bru-accent);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 5px 0;
  border-radius: 8px;
}

.bento-shell .sidebar .about > a:hover { text-decoration: underline; }

/* Contact icon discs */
.bento-shell .contact ul {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 10px;
}

.bento-shell .contact ul li { margin-left: 0; }

.bento-shell .contact ul li a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bru-pill);
  background-color: #ffffff;
  color: var(--bru-body);
  font-size: 15px;
  padding: 0;
  box-shadow: var(--bru-raised-sm);
  border: 2px solid #1a1a1a;
}

.bento-shell .contact ul li a:hover {
  background-color: #fef08a;
  color: var(--bru-accent);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #1a1a1a;
}

.bento-shell .contact ul li a:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 rgba(26, 26, 26, 0);
}

.bento-shell footer .copyright {
  color: var(--bru-muted);
  font-size: 12px;
  margin-top: 14px;
}

.bento-shell footer .copyright p { margin: 2px 0; }

/* Bio hero card */
.bento-shell .bio-box {
  padding: 30px 32px 26px;
}

.bento-shell .bio-box .bio-name { color: var(--bru-ink); }
.bento-shell .bio-box .bio-role { color: var(--bru-muted); }
.bento-shell .bio-box .bio-summary { color: var(--bru-body); }
.bento-shell .bio-box .bio-prev { border-top: 3px solid #1a1a1a; }
.bento-shell .bio-box .bio-prev-label { color: var(--bru-muted); }
.bento-shell .bio-box .bio-prev-item a { color: var(--bru-ink); }

/* News card */
.bento-shell .news-box { padding: 22px 22px 20px; }

.bento-shell .news-header-line {
  border-bottom: 3px solid #1a1a1a;
  color: var(--bru-muted);
}

.bento-shell .news-header-line span {
  background: var(--bru-card);
  background-color: #ffffff;
  color: var(--bru-body);
  padding: 0 0.7em;
}

.bento-shell .news-box {
  display: flex;
  flex-direction: column;
}

.bento-shell .facts-card {
  display: flex;
  flex-direction: column;
  align-self: start;
}

.bento-shell .facts-card .facts-link {
  margin-top: auto;
}

.bento-shell .news-box .news-content {
  flex: 1;
  min-height: 100px;
  max-height: 200px;
  background: var(--bru-well);
  background-color: #faf3e6;
  border-radius: var(--bru-r-md);
  border: 2px solid #1a1a1a;
  box-shadow: var(--bru-pressed);
  padding: 12px 16px;
}

.bento-shell .news-list li {
  color: var(--bru-body);
  font-size: 0.9rem;
  padding: 5px 0;
  margin-bottom: 0;
  border-bottom: 2px dashed rgba(26, 26, 26, 0.3);
}

.bento-shell .news-list li:last-child { border-bottom: none; }

.bento-shell .news-list a { color: var(--bru-accent); font-weight: 700; }

.bento-shell .news-box .news-content::-webkit-scrollbar-thumb { background-color: #1a1a1a; }

/* Facts / highlights card (mirrors the reference stat tiles) */
.facts-card { font-size: 0.92rem; }

.facts-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.facts-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 14px;
  background: var(--bru-yellow);
  background-color: #fde047;
  border: 2px solid #1a1a1a;
  box-shadow: var(--bru-raised-sm);
  transform: rotate(-4deg);
  border: 2px solid #1a1a1a;
}

.facts-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--bru-ink);
}

.facts-sub {
  font-size: 0.78rem;
  color: var(--bru-muted);
}

.facts-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.facts-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 16px;
  background: var(--bru-pink);
  background-color: #ff6b8a;
  border: 2px solid #1a1a1a;
  box-shadow: var(--bru-raised-sm);
  color: #fff;
}
.facts-list li:nth-child(2) {
  background: var(--bru-purple);
  background-color: #a78bfa;
}
.facts-list li:nth-child(3) {
  background: var(--bru-yellow);
  background-color: #fde047;
  color: #1a1a1a;
}
.facts-list li:nth-child(3) .facts-label,
.facts-list li:nth-child(3) .facts-value {
  color: #1a1a1a;
}
.facts-list li .facts-label,
.facts-list li .facts-value {
  color: #fff;
}

.facts-disc {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  background: var(--bru-mint);
  background-color: #5eead4;
  box-shadow: var(--bru-pressed);
}

.facts-label {
  flex: 1;
  min-width: 0;
  color: var(--bru-body);
  font-weight: 400;
}

.facts-value {
  font-weight: 700;
  color: var(--bru-ink);
  white-space: nowrap;
}

.facts-link {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: underline;
  padding: 10px;
  border-radius: 14px;
}

.facts-link:hover { text-decoration: underline; }

/* ---------- Filter pill bar ---------- */
.bento-shell .paper-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 22px;
}

.conf-filter-btn {
  border: none;
  background: var(--bru-pill);
  background-color: #ffffff;
  color: var(--bru-body);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 9px 17px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--bru-raised-sm);
  border: 2px solid #1a1a1a;
  transition: transform 0.15s ease, box-shadow 0.2s ease, color 0.15s ease;
}

.conf-filter-btn:hover {
  background-color: #fef08a;
  transform: translate(-1px, -1px);
  color: var(--bru-ink);
  box-shadow: 4px 4px 0 #1a1a1a;
}

.conf-filter-btn.active {
  color: #fff;
  background: #1a1a1a;
  background-color: #1a1a1a;
  border: 2px solid #1a1a1a;
  box-shadow: 0 0 0 rgba(26, 26, 26, 0);
  transform: translate(2px, 2px);
}

.conf-filter-btn:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 2px;
}

.year-filter { position: relative; display: inline-block; }

.conf-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 158px;
  background: #ffffff;
  background-color: #ffffff;
  border: 2px solid #1a1a1a;
  border-radius: 16px;
  box-shadow: var(--bru-raised);
  z-index: 40;
  padding: 6px;
}

.conf-dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bru-body);
  text-decoration: none;
  border-radius: 10px;
}

.conf-dropdown a:hover { background: #fef08a; }

.conf-dropdown a.venue-cvpr { color: #6D28D9; }
.conf-dropdown a.venue-eg { color: #0369A1; }
.conf-dropdown a.venue-3dv { color: #B45309; }
.conf-dropdown a.venue-eccv { color: #B45309; }

/* ---------- Publications area ---------- */
.bento-shell .content-box {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Publication row-cards, like the reference component cards */
.bento-shell .post {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  height: auto;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  padding: 20px 22px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bru-card);
  background-color: #ffffff;
  border: 2px solid #1a1a1a;
  box-shadow: var(--bru-raised);
}

.bento-shell .post:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #1a1a1a;
}

.bento-shell .post .post-thumbnail {  width: 215px;
  flex-shrink: 0;
  align-self: center;
  height: 210px;
  margin: 0;
  border-radius: var(--bru-r-md);
  background-color: #ffffff;
  box-shadow: var(--bru-pressed);
  border: 2px solid #1a1a1a;
}

.bento-shell .post .post-content {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.bento-shell .post .post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bru-muted);
  margin-bottom: 6px;
}

.bento-shell .post .post-meta-dot { color: #1a1a1a; }

.bento-shell .post .post-content .post-title { margin: 0 0 8px; font-size: 22px; }

.bento-shell .post .post-content .post-title a { color: var(--bru-ink); }

.bento-shell .post .post-content .post-title a:hover { color: #1a1a1a; text-decoration: underline; }

.bento-shell .post .post-content p {
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  color: var(--bru-body);
  margin-bottom: 12px;
}

.bento-shell .post .post-links { margin-top: 0; }

.post.filtered-out { display: none !important; }

.bento-shell .post-featured {
  border: 2px solid #1a1a1a;
  box-shadow: 5px 5px 0 var(--bru-pink);
}

.bento-shell .post-number-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bru-muted);
  background: var(--bru-yellow);
  background-color: #fde047;
  border: 2px solid #1a1a1a;
  transform: rotate(-4deg);
  border-radius: 999px;
  padding: 3px 9px;
  box-shadow: var(--bru-raised-sm);
}

.bento-shell .post-pin-badge {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  color: #d95f7e;
  font-size: 17px;
}

.bento-shell article.post[data-post-link] { cursor: pointer; }

/* Conference pill keeps its venue color, lifted onto the neu card */
.bento-shell .post-conference-tag {
  box-shadow: 3px 3px 0 #1a1a1a;
  border: 2px solid #1a1a1a;
}

/* Action buttons as small neu pills */
.bento-shell .post-link-button {
  background: var(--bru-pill);
  background-color: #ffffff;
  border: 2px solid #1a1a1a;
  color: var(--bru-body);
  border-radius: 999px;
  box-shadow: var(--bru-raised-sm);
  font-weight: 700;
  font-size: 0.82em;
}
.bento-shell .post-link-button:hover {
  background-color: #fef08a;
}

.bento-shell .post-link-button:hover {
  background-color: #ffffff;
  border-color: var(--bru-ring);
  color: var(--bru-ink);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #1a1a1a;
}

.bento-shell .post-link-button:active { box-shadow: 0 0 0 rgba(26, 26, 26, 0); transform: translate(2px, 2px); }

.bento-shell .post-link-button:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 2px;
}

.bento-shell .post-link-button.copy-button {
  background-color: #ffffff;
  color: var(--bru-body);
}

.bento-shell .github-stars.counter-badge {
  background: var(--bru-well);
  background-color: #faf3e6;
  color: var(--bru-ink);
  border: 2px solid #1a1a1a;
  box-shadow: var(--bru-pressed);
}

/* Pagination pills */
.bento-shell .pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.bento-shell a.older-posts,
.bento-shell a.newer-posts {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bru-pill);
  background-color: #ffffff;
  border: 2px solid #1a1a1a;
  color: var(--bru-body);
  box-shadow: var(--bru-raised-sm);
}

.bento-shell a.older-posts:hover,
.bento-shell a.newer-posts:hover {
  color: var(--bru-accent);
  transform: translate(-2px, -2px);
}

.bento-shell .page-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--bru-muted);
}

.bento-shell .pagination p { margin: 0; }

/* Article / post pages inside the bento shell */
.bento-shell .article-page {
  background: var(--bru-card);
  background-color: #ffffff;
  border: 2px solid #1a1a1a;
  border-radius: var(--bru-r-lg);
  box-shadow: var(--bru-raised);
  overflow: hidden;
}

.bento-shell .page-footer { border-bottom: none; margin-bottom: 0; padding-bottom: 10px; }

.bento-shell .page-footer .page-share a,
.bento-shell .page-footer .page-tag a {
  background: var(--bru-pill);
  background-color: #ffffff;
  border: 2px solid #1a1a1a;
  color: var(--bru-body);
  border-radius: 999px;
  box-shadow: var(--bru-raised-sm);
}

.bento-shell .page-footer .page-share a:hover,
.bento-shell .page-footer .page-tag a:hover {
  color: var(--bru-accent);
  text-decoration: none;
}

/* Business-card thumbnail sits in an inset well on the profile card */
.bento-shell .bc-thumb { max-width: 150px; }

.bento-shell .bc-thumb-frame {
  border-radius: 10px;
  background: var(--bru-well);
  background-color: #faf3e6;
  box-shadow: var(--bru-pressed);
  border: 2px solid #1a1a1a;
}

.bento-shell .bc-thumb:hover .bc-thumb-frame {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #1a1a1a;
}

.bento-shell .bc-thumb-label { color: var(--bru-muted); }
.bento-shell .bc-thumb:hover .bc-thumb-label { color: var(--bru-body); }

/* ---------- Responsive: tablets ---------- */
@media only screen and (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 270px minmax(0, 1fr);
    grid-template-areas:
      "profile bio"
      "profile news"
      "filters filters"
      "posts posts";
  }

  .bento-grid-article {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "article";
  }

  .bento-shell .post { gap: 18px; padding: 18px; }

  .bento-shell .post .post-thumbnail { width: 180px; height: 170px; }
}

/* ---------- Responsive: phones ---------- */
@media only screen and (max-width: 760px) {
  .bento-shell { padding: 16px 14px 56px; }

  .bento-grid,
  .bento-grid-article {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "profile"
      "bio"
      "news"
      "filters"
      "posts";
    gap: 16px;
  }

  .bento-shell .sidebar,
  .bento-shell .bio-box,
  .bento-shell .news-box,
  .bento-shell .facts-card,
  .bento-shell .paper-filters {
    border-radius: 20px;
    padding: 20px 18px;
    box-shadow: 4px 4px 0 #1a1a1a;
  }

  .bento-shell .sidebar { position: static; }

  .bento-shell .bio-box { padding: 22px 20px 20px; }

  .bento-shell .bio-box .bio-name { font-size: 1.7rem; }

  .bento-shell .news-box .news-content {
    min-height: 0;
    max-height: 100px;
  }

  .bento-shell .content-box { gap: 16px; }

  .bento-shell .post {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 16px 20px;
    border-radius: 20px;
    box-shadow: 4px 4px 0 #1a1a1a;
  }

  .bento-shell .post .post-thumbnail {
    width: 100%;
    height: 200px;
  }

  .bento-shell .post .post-content .post-title { font-size: 19px; }

  .bento-shell .post .post-content p { font-size: 13.5px; }

  .bento-shell .paper-filters { gap: 8px; }

  .conf-filter-btn { padding: 8px 14px; font-size: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bento-shell .post:hover,
  .conf-filter-btn:hover,
  .bento-shell .post-link-button:hover,
  .bento-shell a.older-posts:hover,
  .bento-shell a.newer-posts:hover,
  .bento-shell .contact ul li a:hover {
    transform: none;
  }
}

.bento-shell ::selection { background: #fde047; color: #1a1a1a; }
.bento-shell ::-moz-selection { background: #fde047; color: #1a1a1a; }

/* Linked highlight rows: the anchor fills the row via display:contents */
.facts-list.facts-links a {
  display: contents;
  text-decoration: none;
  color: inherit;
}

/* BibTeX box on publication pages */
.bento-shell .bibtex-box {
  position: relative;
  border-radius: var(--bru-r-md);
  border-radius: 12px;
  background: #ffffff;
  background-color: #ffffff;
  border: 2px solid #1a1a1a;
  box-shadow: 5px 5px 0 #1a1a1a;
  padding: 0;
}
.bento-shell .bibtex-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 2px solid #1a1a1a;
  background: #ffffff;
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #1a1a1a;
}
.bento-shell .bibtex-copy:hover { background-color: #fef08a; }
.bento-shell .bibtex-copy:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 rgba(26, 26, 26, 0);
  background: #1a1a1a;
  color: #fff;
}
.bento-shell .bibtex-pre {
  margin: 0;
  padding: 22px 18px 16px;
  overflow-x: auto;
  background: transparent;
  color: #333333;
  font-size: 13px;
}
