/* =========================================================
   Global
========================================================= */
html, body{
  margin: 0;
  padding: 0;
  background: #f0f0f0;
  color: #111;
  font-family: "Times New Roman", Times, serif;
  padding-top: 20px;
}

/* =========================================================
   Header / Hero
========================================================= */
.paper-header{
  background: transparent;
  border: 0;
  padding: 0;
}

.paper-header-inner{
  max-width: 980px;
  margin: 0 auto;
  text-align: center;

  background: #e9e9e9;
  border: 1px solid #cfcfcf;
  border-bottom: 0;
  padding: 22px 12px 16px;
}

/* Hero wrapper (optional, keeps your spacing consistent) */
.hero{
  padding-top: 18px;
  padding-bottom: 14px;
}

/* Two logos centered */
.brand-logos{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto 8px;
  width: fit-content;
}

.brand-logo{
  width: 140px; /* TransCity logo */
  height: auto;
  display: block;
}

.brand-robot{
  width: 58px;  /* Robot logo */
  height: auto;
  display: block;
}

/* Title / subtitle */
.hero-title,
.paper-title{
  margin: 6px 0 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.08;
  color: #111;
  text-shadow: 2px 2px 0 #bdbdbd;
}

.hero-subtitle{
  margin: 0 0 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  color: #222;
}

/* Authors */
.paper-authors{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  margin: 0 0 8px;
}

.paper-affiliations{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 6px;
}

.paper-email{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  margin-top: 6px;
}

.author-link{
  color: #1f5fbf;
  text-decoration: none;
}
.author-link:hover{
  text-decoration: underline;
}

/* Top navigation buttons */
.hero-nav{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-nav a{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  text-decoration: none;
  color: #1f5fbf;
  background: #f6f6f6;
  border: 1px solid #d6d6d6;
  padding: 6px 10px;
}
.hero-nav a:hover{
  background: #eeeeee;
}

/* =========================================================
   Main paper container
========================================================= */
.container{
  max-width: 980px;
  margin: 0 auto 60px;
  padding: 18px 18px 36px;

  background: #fff;
  border: 1px solid #cfcfcf;
  border-top: 0; /* connect with header */
}

/* Headings & paragraphs */
h2{
  margin: 22px 0 8px;
  font-size: 24px;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
}

p{
  margin: 10px 0;
  font-size: 17px;
  line-height: 1.6;
}

/* =========================================================
   Figures (teaser / generic / sections)
========================================================= */
.teaser,
.figure{
  margin: 16px auto 10px;
  text-align: center;
}

.teaser img,
.figure img{
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
}

.teaser img{
  border: 2px solid #333;
  box-shadow: 0 0 0 10px #ffffff;
}

.figure img{
  border: 1px solid #cfcfcf;
}

/* Section layout: single column (text above, figure below) */
.section{
  margin-top: 26px;
}

.section-kicker{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #444;
  margin-bottom: 6px;
}

.section-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.section-figure{
  margin: 6px 0 0;
}

.section-figure img{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #cfcfcf;
  background: #fff;
}

/* Paper-style centered captions */
.teaser figcaption,
.figure figcaption,
.section-figure figcaption{
  text-align: center;
  max-width: 980px;
  margin: 10px auto 0;
  font-size: 17px;
  line-height: 1.35;
  color: #333;
  font-style: normal;
}

.fig-label{
  font-weight: 700;
}

/* =========================================================
   Cards (Links)
========================================================= */
.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr; }
}

.card{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f7f7f7;
  border: 1px solid #d9d9d9;
  text-decoration: none;
  color: #111;
}
.card:hover{
  background: #efefef;
}

.card-icon{
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 6px;
}

.card-title{
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.card-sub{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #444;
  margin-top: 2px;
}

/* =========================================================
   Notes / Code block / Footer
========================================================= */
.note{
  margin-top: 12px;
  font-size: 16px;
  color: #333;
}

pre{
  overflow: auto;
  border: 1px solid #cfcfcf;
  padding: 12px 14px;
  background: #f2f2f2;
  color: #111;
  line-height: 1.5;
  font-size: 13px;
}
pre code{ color: inherit; }

.footer{
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid #cfcfcf;
  text-align: center;
  color: #555;
  font-size: 14px;
}

/* =========================================================
   Placeholder block (if you still use it somewhere)
========================================================= */
.placeholder{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;

  padding: 14px;
  background: #fafafa;
  border: 2px dashed #cfcfcf;
}

.placeholder-left{
  display: flex;
  justify-content: flex-start;
}

.placeholder img{
  width: 110px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 700px){
  .placeholder{
    text-align: center;
  }
}

/* Citation header + copy button */
.citation-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copy-btn{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  background: #f6f6f6;
  border: 1px solid #d6d6d6;
  cursor: pointer;
}

.copy-btn:hover{ background: #eeeeee; }

.copy-btn:disabled{
  opacity: 0.7;
  cursor: default;
}

.copy-hint{
  margin-top: 8px;
  font-size: 13px;
  color: #444;
  min-height: 18px;
}

.fig-top img{
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.fig-top figcaption{
  font-size: 16px;
}
