/*
 * 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.
 */

/* URL처럼 띄어쓰기 없는 긴 문자열이 말풍선 밖으로 넘치지 않게 줄바꿈한다. */
.conversation-message-body {
  overflow-wrap: anywhere;
}

.conversation-message-body > :where(p, div, ul, ol, pre, blockquote) {
  margin-block: 0;
}

.conversation-message-body > :where(p, div, ul, ol, pre, blockquote) + :where(p, div, ul, ol, pre, blockquote) {
  margin-top: 0.75rem;
}

@keyframes widget-message-bubble-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.widget-message-bubble-enter {
  animation: widget-message-bubble-enter 220ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: right bottom;
}

.widget-thought-record[open] .widget-thought-record-chevron {
  transform: rotate(180deg);
}

/* 생각 중 글자가 왼쪽부터 차례로 떠올랐다 가라앉으며 물결처럼 흐른다. */
.widget-thought-wave [aria-hidden] > span {
  display: inline-block;
  animation: widget-thought-wave 1.4s ease-in-out infinite;
}

.widget-thought-wave [aria-hidden] > span:nth-child(2) {
  animation-delay: 140ms;
}

.widget-thought-wave [aria-hidden] > span:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes widget-thought-wave {
  0%,
  60%,
  100% {
    opacity: 0.5;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-0.2em);
  }
}

@media (prefers-reduced-motion: reduce) {
  .widget-thought-wave [aria-hidden] > span {
    animation: none;
  }
}

.widget-line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.help-article-body > :where(p, ul, ol, pre, blockquote, table, hr, .help-callout) {
  margin-block: 1rem;
}

.help-article-body {
  overflow-x: auto;
}

.help-article-body > :first-child {
  margin-top: 0;
}

.help-article-body > :last-child {
  margin-bottom: 0;
}

.help-article-body :where(h1, h2, h3) {
  scroll-margin-top: 6rem;
  font-weight: 650;
}

.help-article-body h1 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.65rem;
  line-height: 1.3;
}

.help-article-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  line-height: 1.35;
}

.help-article-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.help-article-body a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.help-article-body .help-article-file {
  text-decoration: none;
}

.help-article-body :where(ul, ol) {
  padding-left: 1.25rem;
}

.help-article-body ul {
  list-style: disc;
}

.help-article-body ol {
  list-style: decimal;
}

.help-article-body li + li {
  margin-top: 0.35rem;
}

.help-article-body pre {
  overflow-x: auto;
  padding: 1rem;
}

.help-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
}

.help-article-body table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.95rem;
  line-height: 1.65;
}

.help-article-body th,
.help-article-body td {
  border: 1px solid var(--border);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.help-article-body :where(th, td):first-child {
  width: 1%;
  white-space: nowrap;
}

.help-article-body th {
  background: color-mix(in oklab, var(--muted) 72%, var(--background));
  color: var(--foreground);
  font-weight: 650;
}

.help-article-body tbody tr:nth-child(even) {
  background: color-mix(in oklab, var(--muted) 34%, transparent);
}

.help-article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
}

.help-article-body blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--muted-foreground);
}

.help-article-body .help-callout {
  border: 1px solid var(--help-callout-border, var(--border));
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--help-callout-bg, var(--muted));
  padding: 0.9rem 1rem;
  color: var(--foreground);
}

.help-article-body .help-callout-title {
  margin-bottom: 0.45rem;
  color: var(--help-callout-title, var(--foreground));
  font-size: 0.9rem;
  font-weight: 650;
}

.help-article-body .help-callout-body > :first-child {
  margin-top: 0;
}

.help-article-body .help-callout-body > :last-child {
  margin-bottom: 0;
}

.help-article-body .help-callout-note {
  --help-callout-bg: color-mix(in oklab, var(--muted) 72%, var(--background));
  --help-callout-border: var(--border);
  --help-callout-title: var(--foreground);
}

.help-article-body .help-callout-tip {
  --help-callout-bg: color-mix(in oklab, oklch(0.95 0.045 155) 70%, var(--background));
  --help-callout-border: oklch(0.68 0.12 155);
  --help-callout-title: oklch(0.34 0.1 155);
}

.help-article-body .help-callout-important {
  --help-callout-bg: color-mix(in oklab, oklch(0.95 0.04 270) 70%, var(--background));
  --help-callout-border: oklch(0.62 0.13 270);
  --help-callout-title: oklch(0.38 0.11 270);
}

.help-article-body .help-callout-warning {
  --help-callout-bg: color-mix(in oklab, oklch(0.96 0.06 85) 70%, var(--background));
  --help-callout-border: oklch(0.72 0.13 75);
  --help-callout-title: oklch(0.42 0.1 70);
}

.help-article-body .help-callout-caution {
  --help-callout-bg: color-mix(in oklab, oklch(0.95 0.045 25) 70%, var(--background));
  --help-callout-border: oklch(0.62 0.16 25);
  --help-callout-title: oklch(0.4 0.14 25);
}

.help-card-link,
.help-card-link :where(*) {
  cursor: pointer;
}
