:root {
  --text: #222;
  --muted: #555;
  --link: #1772d0;
  --line: #ddd;
  --soft: #f7f7f7;
  --max-width: 980px;
  font-family: "Noto Sans", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.content {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.content.narrow {
  width: min(860px, calc(100% - 32px));
}

.hero {
  padding: 44px 0 28px;
  text-align: center;
}

.venue {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: "Google Sans", "Noto Sans", Arial, Helvetica, sans-serif;
  font-size: 15px;
}

h1 {
  margin: 0;
  font-family: "Google Sans", "Noto Sans", Arial, Helvetica, sans-serif;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 600;
  line-height: 1.05;
  white-space: nowrap;
}

.subtitle {
  max-width: 780px;
  margin: 14px auto 22px;
  color: #333;
  font-family: "Google Sans", "Noto Sans", Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.35;
}

.authors,
.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 13px;
  margin: 0 auto;
}

.authors {
  max-width: 900px;
  font-family: "Google Sans", "Noto Sans", Arial, Helvetica, sans-serif;
  color: #222;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.affiliations {
  max-width: 820px;
  margin-top: 10px;
  color: var(--muted);
  font-family: "Google Sans", "Noto Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.authors a,
.author-link {
  color: hsl(204, 86%, 53%);
}

.note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  background: #363636;
  color: #fff;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.button .icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1;
}

.button .hf-icon img {
  display: block;
  width: 18px;
  height: 18px;
}

.button:hover {
  text-decoration: none;
  background: #111;
}

.button.disabled {
  cursor: default;
  opacity: 1;
}

.button.disabled:hover {
  background: #363636;
}

.teaser-section {
  padding: 10px 0 28px;
  font-family: "Google Sans", "Noto Sans", Arial, Helvetica, sans-serif;
}

.project-figure {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--soft);
}

.teaser-video {
  margin-bottom: 14px;
}

.section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: #fff;
}

h2 {
  margin: 0 0 18px;
  font-family: "Google Sans", "Noto Sans", Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

p {
  overflow-wrap: anywhere;
}

.section p {
  margin: 0 0 14px;
}

figure {
  margin: 0;
}

figcaption {
  max-width: 820px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.asset-placeholder {
  display: grid;
  min-height: 330px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  text-align: center;
}

.asset-placeholder span,
.asset-placeholder small {
  display: block;
  width: 100%;
}

.asset-placeholder span {
  color: #333;
  font-size: 19px;
  font-weight: 700;
}

.asset-placeholder small {
  margin-top: 3px;
  font-size: 13px;
}

.asset-placeholder.compact {
  min-height: 190px;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.domain-grid article {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 13px;
}

.domain-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.result-card {
  border: 1px solid var(--line);
  padding: 14px;
}

.table-note {
  max-width: 880px;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.results-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.35;
}

.results-table th,
.results-table td {
  border-bottom: 1px solid #e7e7e7;
  padding: 7px 8px;
  text-align: center;
  white-space: nowrap;
}

.results-table th:first-child,
.results-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  text-align: left;
}

.results-table thead th {
  border-bottom: 2px solid #222;
  background: #fff;
  font-weight: 700;
}

.results-table .group th {
  position: static;
  border-top: 1.5px solid #222;
  border-bottom: 1.5px solid #222;
  background: #f6f6f6;
  color: #333;
  font-style: italic;
  text-align: center;
}

.results-table .icl th,
.results-table .icl td {
  background: #ebebeb;
}

.results-table .icl th:first-child {
  background: #ebebeb;
}

.results-table .pos {
  color: #8991b7;
  font-weight: 700;
}

.results-table .neg {
  color: #d98b8e;
  font-weight: 700;
}

.results-table .animal {
  color: #017b9b;
}

.results-table .industry {
  color: #00a9a5;
}

.results-table .sports {
  color: #d96788;
}

.results-table .surgery {
  color: #c77a22;
}

.results-table .security {
  color: #8f6f55;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.example-grid figure {
  border: 1px solid var(--line);
  padding: 12px;
}

pre {
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 16px;
  color: #222;
  font-size: 13px;
  line-height: 1.45;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .domain-grid,
  .example-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 32px;
  }

  h1 {
    white-space: normal;
  }

  .domain-grid,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .asset-placeholder {
    min-height: 230px;
  }
}
