/* Landing page only. The explorer's style.css is a viewport-locked two-pane
   layout; this page is an ordinary scrolling document, so the shared values
   (font stack, greys, the #1a56db accent, the card's border and hover shadow)
   are repeated here rather than imported. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  background: #f5f5f5;
  color: #222;
  line-height: 1.5;
}

#home {
  max-width: 720px;
  /* 16px side gutter at phone width, wider once there is room to spare. */
  margin: 0 auto;
  padding: 72px 16px 64px;
}

.home-title { line-height: 1; }

.home-logo {
  height: 34px;
  width: auto;
  display: block;
}

.home-lede {
  margin-top: 18px;
  font-size: 15px;
  color: #555;
}

/* Wordmark inside a sentence. Same treatment as `.brand-logo-inline` in the
   explorer: height tracks the surrounding type, width stays auto so the drawn
   aspect ratio is never squashed, and the baseline nudge lines the wordmark's
   body up with the x-height. */
.home-logo-inline {
  height: 1em;
  width: auto;
  vertical-align: -0.12em;
}

.home-links {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-card {
  display: block;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.12s, border-color 0.12s, background 0.12s;
}

.home-card:hover {
  background: #f5f8ff;
  border-color: #b9cbee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.home-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1a56db;
}

/* Brand marks beside link text. Height tracks the type; width stays auto so a
   non-square mark (the HuggingFace logo is 95x88) is never squashed. Colours are
   each brand's own, so these do not inherit `currentColor` and do not change on
   hover. `.link-icon-hf` is deliberately given no `fill`: that logo is
   multicolour and paints itself. */
.link-icon {
  flex: 0 0 auto;
  height: 1.05em;
  width: auto;
}

.link-icon-github { fill: #181717; }
.link-icon-arxiv  { fill: #b31b1b; }

.home-card:hover .home-card-title { text-decoration: underline; }

/* The arrow marks a link that leaves the site. Decorative, so the underline on
   hover stops at the label and `aria-hidden` keeps it out of the accessible name. */
.home-card-out {
  font-weight: 400;
  text-decoration: none;
  display: inline-block;
  margin-left: -4px;
}

.home-card-note {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: #555;
}

@media (prefers-reduced-motion: reduce) {
  .home-card { transition: none; }
}

/* ── Upload and progress pages ── */

.upload-back { margin-bottom: 16px; font-size: 13px; }
.upload-back a, .upload-help a { color: #1a56db; }

.upload-msg {
  margin-top: 20px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #eef6ee;
  border: 1px solid #c6e3c6;
}
.upload-error { background: #fdecec; border-color: #f2c4c4; color: #8a1c1c; }

.upload-form {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.upload-drop {
  flex: 1 1 260px;
  background: #fff;
  border: 1px dashed #b9cbee;
  border-radius: 8px;
  padding: 16px;
}
.upload-drop input { max-width: 100%; }

.upload-btn {
  display: inline-block;
  background: #1a56db;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.upload-btn:hover { background: #1747b5; }
.upload-btn[hidden] { display: none; }

.upload-help { margin-top: 32px; color: #444; }
.upload-help h2 { font-size: 14px; margin: 20px 0 6px; color: #222; }
.upload-help ul { padding-left: 18px; }
.upload-help li { margin-bottom: 4px; }
.upload-help code { background: #eaeaea; padding: 0 4px; border-radius: 3px; }

.upload-progress { margin: 28px 0 16px; }
.upload-progress-bar {
  height: 8px;
  background: #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
}
.upload-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #5fc3b2;
  transition: width 0.4s;
}
.upload-progress p { margin-top: 8px; }

.upload-warnings {
  margin-bottom: 16px;
  padding: 10px 14px 10px 30px;
  background: #fff8e6;
  border: 1px solid #f0dca6;
  border-radius: 6px;
}

.upload-delete {
  margin-top: 32px;
  background: none;
  border: 1px solid #d9a3a3;
  color: #8a1c1c;
  border-radius: 6px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.upload-delete:hover { background: #fdecec; }

@media (prefers-reduced-motion: reduce) {
  .upload-progress-bar span { transition: none; }
}
