/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@font-face {
  font-family: "Agustina";
  src: url("/assets/Agustina-63004df1.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.ctt-wordmark {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.ctt-wordmark--script {
  font-family: "Agustina", "Segoe Script", "Bradley Hand", cursive;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
}

.ctt-wordmark-brand {
  display: inline-block;
  white-space: nowrap;
  font-family: "Agustina", "Segoe Script", "Bradley Hand", cursive;
  font-size: x-large;
  font-weight: 900;
  line-height: 1.8;
  padding-block: 0.08em;
  background-image: linear-gradient(90deg, #111111 0%, #2a2a2a 42%, var(--brand-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.dark .ctt-wordmark-brand {
  background-image: linear-gradient(90deg, #ffffff 0%, var(--brand-purple) 100%);
}

/* Consistent select styling across browsers (single inset chevron). */
.ctt-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 14px;
  padding-right: 2.5rem;
}

.ctt-select::-ms-expand {
  display: none;
}

/* Minor nudge for dense action-row selects. */
.ctt-select--inset-2 {
  background-position: right calc(1rem + 2px) center;
}

.ctt-select--marketplace {
  background-position: right 1.25rem center;
}

.ctt-document-editor-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: end;
}

.ctt-document-editor-top-grid > * {
  min-width: 0;
}

.ctt-document-editor-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.ctt-document-editor-tool-group,
.ctt-document-editor-action-group {
  min-width: 0;
}

@media (min-width: 40rem) {
  .ctt-document-editor-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ctt-document-editor-title {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .ctt-document-editor-top-grid,
  .ctt-document-editor-action-grid {
    grid-template-columns:
      minmax(18rem, 1fr)
      minmax(12rem, 16rem)
      minmax(11rem, 15rem)
      minmax(8rem, 10rem);
  }

  .ctt-document-editor-top-grid--compact,
  .ctt-document-editor-action-grid--compact {
    grid-template-columns:
      minmax(18rem, 1fr)
      minmax(12rem, 16rem)
      minmax(11rem, 16rem);
  }

  .ctt-document-editor-title {
    grid-column: auto;
  }

  .ctt-document-editor-tool-group {
    grid-column: 1 / 3;
  }

  .ctt-document-editor-action-group {
    grid-column: 3 / -1;
    justify-content: flex-end;
  }
}

/* Alpine.js: hide x-cloak elements before Alpine initialises them */
[x-cloak] { display: none !important; }

/* Force grabbing cursor for the entire page while a kanban card is being dragged. */
html.ctt-dragging,
html.ctt-dragging *,
body.ctt-dragging,
body.ctt-dragging * {
  cursor: grabbing !important;
}

.ctt-draft-modal-overlay {
  z-index: 80;
  overflow-y: auto;
  padding-block: 1.5rem;
}

.ctt-draft-modal-panel {
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
}

.ctt-draft-modal-actions {
  position: sticky;
  bottom: -1.25rem;
  margin-inline: -1.25rem;
  margin-bottom: -1.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  background: var(--background);
  border-top: 1px solid var(--border);
}

.ctt-chat-composer-shell {
  min-height: max-content;
  max-height: 100%;
}

.ctt-chat-composer-shell--selector-open {
  z-index: 90;
}

.ctt-chat-document-selector {
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  margin: 0;
}

.ctt-chat-composer-card {
  min-height: 0;
}

.ctt-chat-composer-input {
  min-height: 2.5rem;
  min-height: calc(2lh + 1rem);
}

.ctt-chat-composer-actions,
.ctt-chat-composer-tip {
  flex-shrink: 0;
}
