/* FTC Simulator additions to the Academic Project Page Template (index.css). */

.publication-title { line-height: 1.2; }

/* The authors and the logo read as one byline; the buttons stand apart below it. The logo's PNG has no margin
   of its own (the leaf touches its top, the descenders its bottom), so these gaps are the visible ones. */
.publication-authors { margin-bottom: 0.9rem; }
.publication-org { margin: 0 0 1.25rem; line-height: 0; }
.publication-org img { height: 48px; width: auto; display: inline-block; vertical-align: middle; }
/* Bulma's .hero.is-light gives links the text color; links in the light sections should look like links. */
#quickstart a { color: var(--primary-color); text-decoration: underline; }

#teaser { width: 100%; height: auto; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); background: #16181b; }
.teaser .subtitle { font-size: 1.05rem; line-height: 1.6; margin-top: 1rem; color: var(--text-secondary); }

/* Numbers from the test suite */
.facts { padding-top: 2.5rem; padding-bottom: 2rem; }
.fact { min-width: 150px; }
.fact-num { font-size: 1.9rem; font-weight: 800; color: var(--text-primary); line-height: 1.1; margin-bottom: 0.35rem; }
.fact-text { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.45; }
.fact-note { font-size: 0.9rem; color: var(--text-secondary); margin-top: 1rem; }

.results-carousel .item img { width: 100%; height: auto; display: block; border-radius: var(--border-radius) var(--border-radius) 0 0; }

/* How it works */
.feature { margin: 3rem 0 0; }
.feature p { font-size: 1.05rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 1.25rem; }
.feature .title.is-4 { margin-bottom: 0.75rem; }
.ftc-figure { margin: 0 auto; max-width: 820px; }
.ftc-figure img, .ftc-figure svg { width: 100%; height: auto; display: block; }
.ftc-figure figcaption { font-size: 0.92rem; color: var(--text-secondary); text-align: center; margin-top: 0.6rem; }
.ftc-figure .figure-link { display: block; cursor: zoom-in; }

/* The figures switch to a dark palette with the system's color scheme; this page is light only. */
.ftc-figure .ftcfig {
  --f-ink: #1f2328; --f-quiet: #59636e; --f-edge: #818b98; --f-grid: #d1d9e0; --f-tint: #f6f8fa;
  --f-accent: #0969da; --f-red: #cf222e; --f-warn: #bf8700; --f-good: #1a7f37;
}

.season-table { font-size: 0.95rem; }
.season-table th { white-space: nowrap; color: var(--text-primary); }
.season-table td { color: var(--text-secondary); }

/* Quick start: one command per block, each with its own copy button */
.command-label { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); margin: 1rem 0 0 !important; }
.command { position: relative; }
#quickstart .command pre { margin: 0.35rem 0 0.75rem; padding-right: 6.5rem; }
.copy-command-btn {
  position: absolute; top: 50%; right: 0.6rem; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--primary-color); color: #fff; border: 0; border-radius: 6px;
  padding: 0.35rem 0.7rem; font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.copy-command-btn:hover { background: var(--primary-hover); }
.copy-command-btn.copied { background: #10b981; }
.copy-command-btn.copied .copy-text::after { content: "ied!"; }
/* In a .hero (a flex column) Bulma's auto margins size the container to its content, so on a phone it grew to the
   longest code line and was cut off. A set width keeps it to the screen; max-width still applies on desktops. */
.hero > .container { width: 100%; }
.content p code, .feature p code { font-size: 0.88em; padding: 0.1em 0.35em; border-radius: 4px; }

@media screen and (max-width: 768px) {
  .publication-title { font-size: 1.9rem !important; }
  .publication-org img { height: 40px; }
  .fact { flex: 0 0 50%; }
  .content.has-text-justified { text-align: left !important; } /* Bulma's has-text-justified is !important */
  /* The copy button moves up beside the command's label, so it does not cover the command. */
  .command { display: flex; flex-direction: column; }
  .copy-command-btn { position: static; transform: none; order: -1; align-self: flex-end; margin: -1.85rem 0 0.35rem; }
  #quickstart .command pre { padding-right: 1.25rem; }
  /* The figures' labels are too small to read at phone width; tapping one opens it full size. */
  .ftc-figure figcaption::after { content: " Tap the figure to open it full size."; }
}

/* The arXiv button, disabled until arXiv announces the report: spaced as the link buttons are, and it does not lift
   or change color on hover. */
.link-block > button.button { margin: 8px 4px; font-family: inherit; }
.button.is-dark[disabled]:hover { transform: none; box-shadow: var(--shadow-md); background: var(--text-primary) !important; }

/* Font Awesome icons inlined as SVG (sized as its script sized them) */
.fa-icon { display: inline-block; height: 1em; width: auto; overflow: visible; vertical-align: -0.125em; }
