@font-face {
  font-family: "Maragsa-Display-400";
  src: url("../fonts/vendor/semantic/Maragsa-Display-400.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* Better loading performance */
}

/* ...existing code... */

body {
  background: #2e1065;
}

.table-wrapper input,
.table-wrapper textarea,
.table-wrapper button {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

.ui.text.container {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.table-wrapper {
  width: 90%;
  margin: 24px auto;
  padding: 0 16px;
  overflow-x: auto;
  box-sizing: border-box;
  filter: drop-shadow(0 8px 40px rgba(109,40,217,0.35));
}

/* Project-specific: purple theme for tables and UI */

:root {
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-400: #8b5cf6;
  --purple-500: #7c3aed;
  --purple-600: #6d28d9;
  --purple-700: #5b21b6;
  --muted-text: #5b4a6b;

  /* Heat map colors - locked (purple tones) */
  --locked-light: hsl(265, 90%, 98%);
  --locked-medium: hsl(265, 85%, 85%);
  --locked-dark: hsl(265, 90%, 65%);

  /* Heat map colors - unlocked (gold tones) */
  --unlocked-light: hsl(45, 95%, 98%);
  --unlocked-medium: hsl(45, 85%, 85%);
  --unlocked-dark: hsl(45, 90%, 65%);

  /* Dark mode versions */
  --locked-dark-light: hsl(265, 90%, 15%);
  --locked-dark-medium: hsl(265, 85%, 30%);
  --locked-dark-dark: hsl(265, 90%, 45%);

  --unlocked-dark-light: hsl(45, 95%, 15%);
  --unlocked-dark-medium: hsl(45, 85%, 30%);
  --unlocked-dark-dark: hsl(45, 90%, 45%);
}

/* Container / wrapper */
.table-wrapper {
  padding: 12px;
  margin-top: -50px;
}

/* Table base */
table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  background: transparent;
  color: #2b2340;
}

/* Header row */
thead th {
  background: linear-gradient(90deg, rgba(124,58,237,0.08), rgba(107,70,193,0.04));
  color: var(--purple-700);
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 2px solid var(--purple-200);
  text-align: left;
}

/* Body cells */
th, td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(124,58,237,0.06);
  vertical-align: middle;
  white-space: nowrap;
}

/* Zebra rows */
tbody tr:nth-child(odd) {
  background: rgba(124,58,237,0.02);
}
tbody tr:nth-child(even) {
  background: transparent;
}

/* Hover state */
table.selectable tr:hover {
  background: linear-gradient(90deg, rgba(124,58,237,0.06), rgba(124,58,237,0.02));
  cursor: pointer !important;
}

/* Totals cell */
tfoot td, .total-cell {
  background: linear-gradient(90deg, rgba(124,58,237,0.04), rgba(124,58,237,0.01));
  font-weight: 700;
  color: var(--purple-700);
}

/* Inputs inside table */
table input[type="number"],
table input[type="text"],
table textarea {
  background: #fff;
  border: 1px solid var(--purple-200);
  padding: 4px 6px;
  border-radius: 6px;
  color: #2b2340;
  outline: none;
  transition: box-shadow .12s ease, border-color .12s ease;
}
table input:focus,
table textarea:focus {
  border-color: var(--purple-500);
  box-shadow: 0 4px 12px rgba(124,58,237,0.12);
}

/* Lock button visuals */
th button {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 6px;
  color: var(--muted-text);
}
th button:hover {
  background: rgba(124,58,237,0.06);
  color: var(--purple-600);
}

/* Settings button adjustments */

/* Project title styling */
.project-header { text-align: center; }
.project-title {
  font-size: 2.5rem !important;
  font-family: "Maragsa-Display-400", serif !important;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: inherit;
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}

/* blinking underline "cursor" */
.title-caret {
  display: inline-block;
  width: 36px;              /* underline length */
  height: 3px;              /* underline thickness */
  background: currentColor; /* uses title color */
  margin-left: 10px;
  vertical-align: middle;
  animation: caret-blink 1s steps(1) infinite;
  opacity: 1;
  border-radius: 2px;
}

@keyframes caret-blink {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

/* ensure title looks good in dark mode */
.dark-mode .project-title { color: #fff; }

/* Dark mode overrides */
.dark-mode .ui.text.container,
.dark-mode .table-wrapper {
  background: transparent !important;
  color: #e0e0e0 !important;
}
.dark-mode table {
  background: #232336 !important;
  color: #e0e0e0 !important;
}
.dark-mode th, .dark-mode td {
  background: #232336 !important;
  color: #e0e0e0 !important;
  border-color: #444459 !important;
}
.dark-mode input:not(.project-title), .dark-mode textarea {
  background: #232336 !important;
  color: #e0e0e0 !important;
  border: 1px solid #444459 !important;
}
.dark-mode .project-title {
  background: linear-gradient(90deg, #5b21b6 0%, #3b0764 100%) !important;
  color: #fff !important;
}

/* Small utilities */
.hidden { display: none !important; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Scale root so all rem values shrink proportionally */
  html { font-size: 13px; }

  /* Homepage hero heading (inline 4rem — needs !important) */
  .ui.text.container section h1 { font-size: 2rem !important; }

  /* Decorative quote marks (inline 3rem) */
  section blockquote span { font-size: 1.6rem !important; }

  /* CTA banner: stack form below text, full-width inputs */
  .ol-cta-text {
    display: block;
    margin-bottom: 10px;
  }

  .ol-cta-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    margin-left: 0 !important;
    margin-top: 4px;
    gap: 8px;
  }

  .ol-cta-form input[type="email"] {
    width: 100% !important;
  }

  /* Zoom tables to viewport width */
  .ol-demo-table-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .ol-demo-scale-inner {
    transform: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    zoom: 0.4;
  }

  .ol-deliverables-wrapper {
    zoom: 0.4;
  }
}