@import "tailwindcss";

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: #3555a5; text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { display: block; max-width: 100%; }

.container {
  width: min(1152px, calc(100% - 36px));
  margin: 0 auto;
}
.centered { text-align: center; }
.paper-hero { padding: 46px 0 18px; }
.paper-title {
  max-width: 1120px;
  margin: 0 auto 24px;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-title {
  position: relative;
  display: inline-block;
  margin-right: 2px;
  color: #4d45b8;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -.055em;
  text-shadow: 2px 2px 0 #e8e5ff;
}
.brand-title::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 0;
  bottom: -3px;
  height: 4px;
  border-radius: 4px;
  background: #f29b75;
}
.authors {
  margin: 0;
  color: #3b55a0;
  font-size: 20px;
  font-weight: 700;
}
.authors span { white-space: nowrap; }
.authors sup { color: #333; font-size: 12px; }
.affiliations { margin: 8px 0 2px; font-size: 15px; color: #333; }
.author-note { margin: 0; font-size: 14px; color: #444; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin: 25px 0 28px;
}
.shield {
  display: inline-flex;
  height: 28px;
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  line-height: 28px;
  box-shadow: inset 0 1px rgba(255,255,255,.16);
}
.shield:hover { text-decoration: none; filter: brightness(1.05); }
.shield-left { padding: 0 9px; background: linear-gradient(#555, #333); }
.shield-right { padding: 0 9px; }
.shield-red { background: #b31b1b; }
.shield-dark { background: #24292e; }
.shield-green { background: #2e9c50; }
.shield-blue { background: #4267b2; }
.shield-yellow { color: #3b3211; background: #f5c84b; }
.shield-disabled { cursor: default; opacity: .88; }

.hero-comparison { margin: 0 auto 8px; }
.hero-comparison .comparison-table { width: 92%; }
.hero-comparison .example-label { display: none; }
.hero-comparison .comparison-example { margin-bottom: 30px; }
.hero-comparison .comparison-example:last-child { margin-bottom: 0; }

.content-section { padding: 34px 0 14px; }
.content-section.compact { padding-top: 30px; }
.content-section h2 {
  margin: 0 0 18px;
  font-family: "Times New Roman", Times, serif;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}
.text-block {
  width: 75%;
  margin: 0 auto;
  text-align: left;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.55;
}
.text-block p { margin: 0 0 12px; }
.main-figure {
  width: 75%;
  height: auto;
  margin: 25px auto 4px;
}
.method-figure { margin-top: 18px; }
.section-caption {
  width: 75%;
  margin: -7px auto 18px;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
}
.wide-figure {
  width: 88%;
  margin: 0 auto;
}
.comparison-table {
  width: 96%;
  margin: 0 auto;
}
.comparison-head,
.comparison-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.comparison-head {
  margin-bottom: 8px;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  font-weight: 700;
}
.comparison-head span {
  padding: 7px 10px;
  border-bottom: 2px solid #4d45b8;
}
.comparison-example { margin-bottom: 24px; }
.comparison-example:last-child { margin-bottom: 0; }
.example-label {
  margin: 0 0 5px;
  color: #666;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}
.comparison-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #111;
}
.comparison-media video {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #111;
}
.masked-media::after {
  content: "MASK";
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 3px 6px;
  color: #fff;
  background: rgba(190, 31, 42, .88);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  pointer-events: none;
}
.mobile-column-label { display: none; }
.subsection-title { margin-top: 36px !important; }
.result-figure {
  width: 70%;
  margin: 0 auto;
}
.citation {
  width: 75%;
  margin: 0 auto 35px;
  padding: 20px 24px;
  overflow-x: auto;
  background: #f5f5f5;
  border: 1px solid #e1e1e1;
  border-radius: 3px;
  text-align: left;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}
footer {
  padding: 27px 18px 38px;
  text-align: center;
  color: #777;
  font-size: 12px;
}

@media (max-width: 850px) {
  .paper-title { font-size: 34px; }
  .authors { font-size: 18px; }
  .text-block, .main-figure, .section-caption, .citation { width: 92%; }
  .wide-figure, .result-figure { width: 96%; }
  .comparison-table { width: 100%; }
}

@media (max-width: 520px) {
  .paper-hero { padding-top: 30px; }
  .paper-title { font-size: 28px; }
  .authors { font-size: 16px; line-height: 1.7; }
  .affiliations { font-size: 13px; }
  .comparison-head { display: none; }
  .comparison-row { grid-template-columns: 1fr; gap: 11px; }
  .comparison-example { margin-bottom: 34px; }
  .mobile-column-label {
    position: absolute;
    left: 7px;
    bottom: 7px;
    display: block;
    padding: 3px 7px;
    color: #fff;
    background: rgba(0,0,0,.68);
    font-family: "Times New Roman", Times, serif;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
  }
  .content-section h2 { font-size: 28px; }
  .text-block { font-size: 16px; }
}
