/* ========================================================================
   SkillHarm project page — Nerfies-style overrides on Bulma
   ======================================================================== */

:root {
  --skillharm-ink: #1a1a1a;
  --skillharm-muted: #4a4a4a;
  --skillharm-soft: #f7f7f9;
  --skillharm-border: #e5e7eb;
  --skillharm-accent: #b91c1c;   /* red, used sparingly for FPP/SMP tags */
  --skillharm-accent-soft: #fef2f2;
  --skillharm-link: #1b6ec2;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--skillharm-ink);
  background: #ffffff;
}

a {
  color: var(--skillharm-link);
}
a:hover {
  color: var(--skillharm-accent);
}

/* ---- Typography overrides ---- */
.title,
.subtitle,
.publication-title,
h1, h2, h3, h4, h5 {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  color: var(--skillharm-ink);
}

.section .title.is-3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.section-intro {
  color: var(--skillharm-muted);
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.content p {
  line-height: 1.7;
}

/* ---- SkillHarm / AutoSkillHarm wordmarks (Castoro-ish small caps) ---- */
.skillharm-mark,
.skillharm-mark-sm,
.autoskillharm-mark-sm {
  font-family: 'Castoro', serif;
  font-style: normal;
  letter-spacing: 0.01em;
}
.skillharm-mark .sc,
.autoskillharm-mark-sm .sc {
  font-feature-settings: "smcp";
  font-size: 0.82em;
  text-transform: lowercase;
}

/* ---- Hero ---- */
.hero {
  background: #ffffff;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--skillharm-border);
}
.publication-title {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1.5rem !important;
  font-size: 2.25rem !important;
}
.publication-authors {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.publication-authors .author-block {
  display: inline-block;
  margin-right: 0.25rem;
}
.publication-authors a {
  color: var(--skillharm-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.publication-authors a:hover {
  border-bottom-color: var(--skillharm-link);
}
.publication-affiliations {
  color: var(--skillharm-muted);
  margin-bottom: 0.4rem;
}
.publication-affiliations .affiliation-block {
  display: inline-block;
  margin: 0 0.6rem;
}
.publication-equal-contrib {
  color: var(--skillharm-muted);
  margin-bottom: 1.5rem;
}

/* ---- Link bar ---- */
.publication-links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.publication-links .link-block .button {
  padding-left: 1rem;
  padding-right: 1rem;
  background-color: #232325;
  border-color: #232325;
}
.publication-links .link-block .button:hover {
  background-color: var(--skillharm-accent);
  border-color: var(--skillharm-accent);
}

/* ---- Teaser & figures ---- */
.teaser {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.teaser-image img,
.pipeline-section img {
  border: 1px solid var(--skillharm-border);
  border-radius: 6px;
  background: #ffffff;
}
.figure-caption {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--skillharm-muted);
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ---- Abstract ---- */
.abstract-section {
  background: var(--skillharm-soft);
  border-top: 1px solid var(--skillharm-border);
  border-bottom: 1px solid var(--skillharm-border);
}

/* ---- Scenario cards ---- */
.scenario-columns {
  margin-top: 1rem;
}
.scenario-card {
  background: #ffffff;
  border: 1px solid var(--skillharm-border);
  border-radius: 8px;
  padding: 1.6rem 1.6rem 1.2rem;
  height: 100%;
}
.scenario-card .title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.scenario-card .tag.is-dark {
  background: var(--skillharm-accent);
  color: white;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.scenario-card p {
  color: var(--skillharm-ink);
  line-height: 1.6;
}
.scenario-takeaway {
  margin-top: 0.9rem;
  color: var(--skillharm-muted);
}

/* ---- Pipeline ---- */
.pipeline-section {
  background: #ffffff;
}

/* ---- Taxonomy ---- */
.taxonomy-section {
  background: var(--skillharm-soft);
  border-top: 1px solid var(--skillharm-border);
  border-bottom: 1px solid var(--skillharm-border);
}
.taxonomy-columns {
  margin-top: 1rem;
}
.taxonomy-card {
  background: #ffffff;
  border: 1px solid var(--skillharm-border);
  border-radius: 8px;
  padding: 1.4rem;
  height: 100%;
}
.taxonomy-card .title {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--skillharm-border);
}
.taxonomy-card ul {
  list-style: none;
  margin-left: 0;
  margin-top: 0;
}
.taxonomy-card li {
  padding: 0.45rem 0;
  color: var(--skillharm-ink);
  line-height: 1.5;
  font-size: 0.93rem;
}
.taxonomy-card li strong {
  color: var(--skillharm-ink);
}

/* ---- Results cards ---- */
.results-columns {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.result-card {
  text-align: center;
  padding: 1.3rem 0.5rem;
  background: var(--skillharm-accent-soft);
  border: 1px solid #fecaca;
  border-radius: 8px;
}
.result-number {
  font-family: 'Google Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--skillharm-accent);
  line-height: 1;
}
.result-label {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--skillharm-muted);
}

/* ---- BibTeX ---- */
.bibtex-section {
  background: var(--skillharm-soft);
  border-top: 1px solid var(--skillharm-border);
}
.bibtex-wrapper {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--skillharm-border);
  border-radius: 8px;
}
.bibtex-wrapper pre {
  background: transparent;
  border-radius: 8px;
  margin: 0;
  padding: 1.2rem 1.2rem 1.2rem 1.2rem;
  overflow-x: auto;
}
.bibtex-wrapper code {
  background: transparent;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.88rem;
  color: var(--skillharm-ink);
}
.bibtex-copy {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
}

/* ---- Footer ---- */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--skillharm-border);
  padding: 2.5rem 1.5rem;
  color: var(--skillharm-muted);
}
.footer .acknowledgments {
  margin-bottom: 0.75rem;
}
.footer .template-credit {
  font-size: 0.88rem;
}

/* ---- Responsive ---- */
@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.65rem !important;
  }
  .publication-affiliations .affiliation-block {
    display: block;
    margin: 0.2rem 0;
  }
}
