@font-face {
  font-family: "Inter";
  src: url("/petal_web/static/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   Base
   ========================================================= */

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.citation-pre {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* =========================================================
   PETAL dark theme
   ========================================================= */

:root {
  --petal-dark-bg: #0f172a;
  --petal-dark-surface: #1e293b;
  --petal-dark-surface-hover: #263449;
  --petal-dark-border: #3b4a60;

  --petal-dark-text: #f8fafc;
  --petal-dark-text-secondary: #cbd5e1;
  --petal-dark-text-muted: #94a3b8;

  --petal-dark-accent: #a5b4fc;
  --petal-dark-accent-strong: #818cf8;
  --petal-dark-accent-hover: #c7d2fe;
}


/*
 * Main page background
 */
html.dark body {
  background-color: var(--petal-dark-bg);
  color: var(--petal-dark-text);
}


/*
 * Surfaces
 *
 * These replace Tailwind's default gray-800 / gray-900 dark
 * colors with a cleaner slate palette.
 */
html.dark .dark\:bg-gray-900 {
  background-color: var(--petal-dark-bg);
}

html.dark .dark\:bg-gray-800 {
  background-color: var(--petal-dark-surface);
}

html.dark .dark\:hover\:bg-gray-700:hover {
  background-color: var(--petal-dark-surface-hover);
}

/* Dark-mode form controls */
html.dark input,
html.dark select,
html.dark textarea {
  background-color: #172033;
  border-color: #475569;
  color: #f1f5f9;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #94a3b8;
}

/* File upload / drop areas */
html.dark input[type="file"] {
  color: #cbd5e1;
}


/*
 * Borders
 */
html.dark .dark\:border-gray-700,
html.dark .dark\:border-gray-600 {
  border-color: var(--petal-dark-border);
}


/*
 * Text
 */
html.dark .dark\:text-gray-100 {
  color: var(--petal-dark-text);
}

html.dark .dark\:text-gray-200,
html.dark .dark\:text-gray-300 {
  color: var(--petal-dark-text-secondary);
}

html.dark .dark\:text-gray-400 {
  color: var(--petal-dark-text-muted);
}


/*
dark mode
 */
html.dark .text-primary-500 {
  color: var(--petal-dark-accent);
}

html.dark a.text-primary-500:hover {
  color: var(--petal-dark-accent-hover);
}


/*
 * Primary buttons should remain stronger than ordinary links.
 */
html.dark .bg-primary-500 {
  background-color: var(--petal-dark-accent-strong);
}


/*
 * Pale accent backgrounds used behind icons, tags, etc.
 */
html.dark .bg-primary-500\/10 {
  background-color: rgb(129 140 248 / 0.14);
}


/* =========================================================
   Animation for file upload
   ========================================================= */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}


.hover\:animate-pulse:hover {
  animation: pulse 1.5s infinite;
}


/* =========================================================
   Transitions
   ========================================================= */

.transition {
  transition: all 0.2s ease-in-out;
}


/* =========================================================
   Footer
   ========================================================= */

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}


.footer-left {
  min-width: 220px;
}


.footer-title {
  margin: 0;
  font-weight: 600;
}


.footer-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}


.footer-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-left: auto;
}


.footer-logo {
  height: 38px;
  max-width: 180px;
  object-fit: contain;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }


  .footer-logos {
    justify-content: center;
    margin-left: 0;
  }
}