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

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

/* --- Header --- */

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-size: min(2.6rem, calc((100vw - 80px) / 21)) !important;
  line-height: 1.25 !important;
}

@media screen and (min-width: 769px) {
  .publication-title .title-line {
    white-space: nowrap;
  }
}

.title-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.3em;
  vertical-align: -0.12em;
}

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

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

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

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

.publication-footnote {
  color: #555;
  font-size: 0.9rem;
}

.publication-venue {
  margin: 1.1rem auto 0.4rem;
}

.venue-logo {
  display: block;
  width: 300px;
  max-width: 75%;
  height: auto;
  margin: 0 auto 0.5rem;
}

.venue-name {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  color: #2c3246;
}

.footer {
  padding: 2rem 1.5rem;
}

/* --- Blog post --- */

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

.teaser .hero-body {
  padding-top: 2.5rem;
  padding-bottom: 0.5rem;
}

.teaser .subtitle {
  line-height: 1.6;
}

.teaser + .post {
  padding-top: 1.5rem;
}

.accent-word {
  color: #c0271d;
  font-weight: bold;
}

.finding-label {
  font-family: 'Google Sans', sans-serif;
  font-weight: bold;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c0271d;
  margin-bottom: 0.3rem !important;
}

.post .content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.post .content h2.title {
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}

.post .content .finding-label + h2.title {
  margin-top: 0;
}

.post .content .finding-label {
  margin-top: 2.75rem;
}

.post .content > :first-child {
  margin-top: 0;
}

.post-figure {
  margin: 1.75rem 0 2rem !important;
  text-align: center;
}

.post-figure img {
  width: 100%;
  height: auto;
}

.post-figure a {
  cursor: zoom-in;
}

.post-figure.is-medium img {
  max-width: 520px;
}

.post-figure.is-narrow img {
  max-width: 600px;
}

.teaser-figure {
  margin: 1.75rem 0 0 !important;
}

.post-figure figcaption,
.post-caption {
  font-size: 0.9rem !important;
  line-height: 1.5;
  color: #555;
  text-align: left;
  margin-top: 0.6rem;
  font-style: normal !important;
}

.post-caption {
  margin-bottom: 2rem !important;
}

.post-caption.has-text-centered {
  text-align: center;
}

/* --- Domains at a glance --- */

.domain-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6rem;
  margin: 1.75rem 0 0.25rem;
}

.domain-card {
  background: #f7f8fa;
  border-radius: 10px;
  padding: 0.8rem 0.3rem 0.6rem;
  text-align: center;
}

.domain-card img {
  width: 44px;
  height: 44px;
}

.content .domain-card p {
  margin: 0;
  line-height: 1.3;
}

.domain-name {
  font-family: 'Google Sans', sans-serif;
  font-weight: bold;
  font-size: 0.85rem;
  margin-top: 0.35rem !important;
}

.domain-count {
  font-size: 0.85rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}

/* --- Tables --- */

.evidence-table {
  font-size: 0.95rem;
  margin-bottom: 0.5rem !important;
  font-variant-numeric: tabular-nums;
}

.evidence-table td,
.evidence-table th {
  text-align: center !important;
  vertical-align: middle;
  white-space: nowrap;
}

.evidence-table td:first-child,
.evidence-table th:first-child {
  text-align: left !important;
}

.results-table {
  font-size: 0.88rem;
}

.evidence-table .group-row td {
  background: #f5f5f5;
  font-family: 'Google Sans', sans-serif;
  font-weight: bold;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  text-align: center !important;
}

.evidence-table .mean-row td {
  font-weight: bold;
  border-bottom-width: 2px;
}

.evidence-table .mean-row.is-overall td {
  background: #fbf3f2;
}

.evidence-table .is-ours td {
  background: #fbf3f2;
}

.evidence-table .delta {
  color: #888;
  font-size: 0.85em;
  font-weight: normal;
}

.evidence-table .delta.is-up   { color: #1e6b2e; }
.evidence-table .delta.is-down { color: #c0271d; }

.mark-yes { color: #1e6b2e; font-weight: bold; }
.mark-no  { color: #c0271d; }

/* --- Explorer --- */

.ex-domains {
  margin: 1.25rem auto 1rem !important;
}

.ex-domains a {
  background: #fff;
}

.ex-tab-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.35rem;
}

.tabs.is-toggle li.is-active a {
  background: #363636;
  border-color: #363636;
}

.explorer .ex-panel {
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.25rem 0.9rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ex-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ex-domain-tag {
  font-family: 'Google Sans', sans-serif;
  font-weight: bold;
  background: #fbf3f2 !important;
  color: #c0271d !important;
}

.ex-counter {
  color: #777;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.ex-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 0.5rem;
  cursor: zoom-in;
}

.ex-image img {
  display: block;
  max-width: 100%;
  max-height: 34rem;
  height: auto;
}

.ex-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ex-reveal {
  min-width: 11rem;
}

.ex-reveal.is-revealed {
  background: #1e6b2e !important;
  animation: ex-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ex-pop {
  from { transform: scale(0.9); }
  to   { transform: scale(1); }
}

.ex-hint {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: #888;
  text-align: center;
}

/* --- Citation --- */

.bibtex {
  position: relative;
}

.copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

/* Section addresses: hover a heading to reveal its link */
h2.title[id] {
  scroll-margin-top: 1.5rem;
}

.anchor {
  margin-left: 0.5rem;
  font-size: 0.55em;
  vertical-align: middle;
  color: #b5b5b5 !important;
  text-decoration: none !important;
  opacity: 0;
  transition: opacity 0.15s;
}

h2.title:hover .anchor,
.anchor:focus {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ex-reveal.is-revealed { animation: none; }
}

@media screen and (max-width: 768px) {
  .post .content {
    font-size: 1rem;
  }
  .domain-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .publication-title {
    font-size: 2rem !important;
  }
  .ex-domains ul {
    flex-shrink: 1;
    flex-wrap: wrap;
  }
  .ex-domains li {
    margin-bottom: 0.25rem;
  }
  .ex-hint .icon,
  .ex-hint {
    display: none;
  }
  .anchor {
    opacity: 1;
  }
  .evidence-table th {
    white-space: normal;
  }
}
