body {
  font-family: 'Noto Sans', sans-serif;
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
}

.publication-banner {
  max-height: parent;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

p {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-venue {
  color: #555;
  width: fit-content;
  font-weight: bold;
}

.publication-awards {
  font-weight: bolder;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.bibtex pre {
  font-size: 14px;
  background-color: #f5f5f5;
  overflow-x: auto;
  text-align: left;
  white-space: pre;
}

.hero.is-light {
  background-color: #f7f7f9;
}

/* --- Additions beyond the template --- */

/* The Whiskers story: serif, boxed, scrollable so it doesn't dominate the page. */
.story-box {
  font-family: 'Castoro', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  background-color: #fdfaf3;
  border: 1px solid #e8e0cc;
  border-radius: 6px;
  padding: 1.5rem 2rem;
  max-height: 24em;
  overflow-y: auto;
  text-align: left;
}

.story-box p {
  font-family: 'Castoro', serif;
}
.story-box p:not(:last-child) {
  margin-bottom: 1rem;
}

.story-box h3 {
  font-family: 'Castoro', serif;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

/* Model continuations: same treatment, tinted per outcome. */
.continuation-box {
  font-family: 'Castoro', serif;
  font-size: 0.95rem;
  line-height: 1.6;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  max-height: 26em;
  overflow-y: auto;
  text-align: left;
}

.continuation-box p {
  font-family: 'Castoro', serif;
}
.continuation-box p:not(:last-child) {
  margin-bottom: 1rem;
}

.continuation-small {
  background-color: #fdf3f3;
  border: 1px solid #eccfcf;
}

.continuation-large {
  background-color: #f2f8f2;
  border: 1px solid #cfe3cf;
}

.state-slips {
  text-align: left;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.state-slips li {
  margin-bottom: 0.4rem;
}

/* Score table: de-emphasized reference row for the stale-baseline floor. */
.floor-row td {
  color: #888;
  font-style: italic;
}

/* Figure grid captions */
.figure-caption {
  font-size: 0.9rem;
  color: #555;
}

.references-list {
  text-align: left;
  font-size: 0.95rem;
}

.references-list li {
  margin-bottom: 0.6rem;
}

.not-a-paper {
  background-color: #fffbeb;
  border: 1px solid #f0e6c8;
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  color: #6b5d2e;
}

/* Table of contents */
.toc-host::after {
  content: "";
  display: table;
  clear: both;
}

.toc {
  float: left;
  width: 15rem;
  margin: 0.25rem 1.75rem 0.75rem 0;
  padding: 1rem 1.5rem 1.25rem;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  background-color: #fff;
  text-align: left;
  box-shadow: 0 1px 3px rgba(10, 10, 10, 0.06);
}

@media screen and (max-width: 768px) {
  .toc {
    float: none;
    width: auto;
    margin: 0 0 1.5rem;
  }
}

.toc-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a7a7a;
  margin-bottom: 0.6rem;
}

.toc-list {
  list-style: decimal;
  margin: 0;
  padding-left: 1.4rem;
}

.toc-list li {
  margin: 0.3rem 0;
  padding-left: 0.2rem;
}

.toc-list a {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
  color: #3273dc;
}

.toc-list a:hover {
  text-decoration: underline;
}

/* Lightbox */
img.zoomable {
  cursor: zoom-in;
}

.lightbox-locked {
  overflow: hidden;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.9);
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.lightbox-close:hover {
  color: #bbb;
}
