/**
 * Hakan Uçar — TipTap / rich content front styles.
 * Cardia public/assets DOKUNULMAZ; bu dosya ayrı enjekte edilir.
 */
.hu-rich-content {
  font-family: var(--body-font, "Mulish", sans-serif);
  color: var(--text, #555555);
  font-size: 16px;
  line-height: 1.75;
}

.hu-rich-content > *:first-child {
  margin-top: 0;
}

.hu-rich-content > *:last-child {
  margin-bottom: 0;
}

.hu-rich-content p {
  margin: 0 0 1.1rem;
}

.hu-rich-content h2,
.hu-rich-content h3,
.hu-rich-content h4,
.hu-rich-content h5 {
  font-family: var(--header-font, "Nunito", sans-serif);
  color: var(--header, #001837);
  font-weight: 700;
  line-height: 1.35;
  margin: 1.75rem 0 0.85rem;
}

.hu-rich-content h2 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.hu-rich-content h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
}

.hu-rich-content h4 {
  font-size: 1.15rem;
}

.hu-rich-content a {
  color: var(--theme, #3772FF);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hu-rich-content a:hover {
  opacity: 0.85;
}

.hu-rich-content ul,
.hu-rich-content ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

.hu-rich-content li {
  margin: 0.35rem 0;
}

.hu-rich-content ul li::marker {
  color: var(--theme, #3772FF);
}

.hu-rich-content blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--white, #fff);
  border-radius: 5px;
  border-left: 5px solid var(--theme, #3772FF);
  color: var(--header, #001837);
}

.hu-rich-content blockquote p:last-child {
  margin-bottom: 0;
}

.hu-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 1.25rem 0;
}

.hu-rich-content figure {
  margin: 1.25rem 0;
}

.hu-rich-content figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text, #555555);
  opacity: 0.85;
}

.hu-rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.hu-rich-content th,
.hu-rich-content td {
  border: 1px solid var(--border, #D1D1D1);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.hu-rich-content th {
  background: rgba(55, 114, 255, 0.08);
  color: var(--header, #001837);
  font-family: var(--header-font, "Nunito", sans-serif);
  font-weight: 700;
}

.hu-rich-content hr {
  border: none;
  border-top: 1px solid var(--border, #D1D1D1);
  margin: 1.75rem 0;
}

.hu-rich-content pre,
.hu-rich-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

.hu-rich-content pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  margin: 1.25rem 0;
}

.hu-rich-content :not(pre) > code {
  background: rgba(0, 24, 55, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.hu-rich-content iframe {
  max-width: 100%;
  border: 0;
  border-radius: 12px;
  margin: 1.25rem 0;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  min-height: 220px;
}

.hu-rich-content .hu-rich-disclaimer,
.hu-rich-content .hu-rich-callout,
.hu-rich-content .hu-rich-sources,
.hu-rich-content .hu-rich-faq {
  font-size: 0.98rem;
}

.hu-rich-content .hu-tags a {
  color: var(--theme, #3772FF);
  text-decoration: none;
  font-weight: 600;
}

.hu-rich-content .hu-tags a:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .hu-rich-content {
    font-size: 15px;
    line-height: 1.7;
  }

  .hu-rich-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
